<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : Unitler arasında data library oluşturulması</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Clomosy ile de&#287;i&#351;ken kullan&#305;m&#305; : Unitler arasında data library oluşturulması]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 04:35:57 +0000</pubDate>
  <lastBuildDate>Fri, 05 Dec 2025 16:42:38 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1240</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[Unitler arasında data library oluşturulması : Evet do&#287;ru ne kadar da CurrentOrderListArrAmount&amp;#039;n&#305;n...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1240&amp;PID=2747#2747</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1240<br /><strong>Gönderim Zamanı:</strong> 05&nbsp;Aralık&nbsp;2025 Saat 16:42<br /><br /><div>Evet doğru ne kadar da CurrentOrderListArrAmount&nbsp;'nın içerisinde nil kontrolü olsada access hatası veriyordu onu bir üst koşul (IsCurrentOrderListNil) ekleyerek çözdüm.</div><div><br>if(not uDataLib.IsCurrentOrderListNil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Yeni oluşturuluyor');</div><div>&nbsp; &nbsp; &nbsp; addToOrderlistArr;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (uDataLib.CurrentOrderListArrAmount == 0)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('bulundu');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('miktar ' + IntToStr(uDataLib.CurrentOrderListArrAmount) + 'oldugundan yeni oluşuyor');</div><div>&nbsp; &nbsp; &nbsp; addToOrderlistArr;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('oluştu');</div><div><br></div><div>&nbsp; &nbsp; }</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Fri, 05 Dec 2025 16:42:38 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1240&amp;PID=2747#2747</guid>
  </item> 
  <item>
   <title><![CDATA[Unitler arasında data library oluşturulması : Hatan&#305;n sebebi;genellikle olu&#351;turulmam&#305;&#351;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1240&amp;PID=2746#2746</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1240<br /><strong>Gönderim Zamanı:</strong> 05&nbsp;Aralık&nbsp;2025 Saat 14:00<br /><br />Hatanın sebebi;<br>genellikle oluşturulmamış bir nesnenin özelliğine erişmeye çalışıldığın da meydana gelmektedir.<br>Yüksek ihtimalle hatanın geldiği yer addToOrderlistArr fonksiyonunda ki fiyat temizleme işlemişinden.<a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous"><div>Eğer TempItemPriceLbl.Text boşsa veya beklenen formatta değilse (mesela&nbsp; TL yoksa), Length 0 veya küçük dönebilir. Delete fonksiyonuna negatif veya geçersiz bir başlangıç indeksi vermek Access Violation hatasına sebep olabilir.&nbsp;</div><div><br></div>]]>
   </description>
   <pubDate>Fri, 05 Dec 2025 14:00:15 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1240&amp;PID=2746#2746</guid>
  </item> 
  <item>
   <title><![CDATA[Unitler arasında data library oluşturulması : OrderChecklistBtn&amp;#039; una t&#305;klad&#305;&#287;&#305;mda...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1240&amp;PID=2745#2745</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1240<br /><strong>Gönderim Zamanı:</strong> 05&nbsp;Aralık&nbsp;2025 Saat 11:39<br /><br />OrderChecklistBtn' una tıkladığımda AccessViolation hatası alıyorum.<br><div>Access violation at address 00D336F8 in modüle</div><div>'ClomosyLearn.exe' (offset A836F8). Read of address 00000018.</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Fri, 05 Dec 2025 11:39:22 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1240&amp;PID=2745#2745</guid>
  </item> 
  <item>
   <title><![CDATA[Unitler arasında data library oluşturulması : uDataLib diye kendime veri ak&#305;&#351;&#305;nda...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1240&amp;PID=2744#2744</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1240<br /><strong>Gönderim Zamanı:</strong> 05&nbsp;Aralık&nbsp;2025 Saat 11:35<br /><br />uDataLib diye kendime veri akışında kullanmak üzere bir unit oluşturdum ve ben bu unit içerisinde json object tutup diğer unitlerden o objeye erişmek istiyorum.<br><br>Örnek olarak ürünler ve kategoriler diye iki farklı unitim var ve kullanıcı iki farklı kategoriden ya da aynı kategoriye gir çık yaptığında o siparişler listesini tutmak istiyorum.<br><br>//uDataLib<br><div>var</div><div>&nbsp; // Global Sipariş Sepeti Objesi</div><div>&nbsp; CurrentOrderList: TCLJSONObject;</div><div>&nbsp; CurrentOrderListArr: TCLJSONArray;</div><div>&nbsp;&nbsp;</div><div>// ======================================================================</div><div>// GÜVENLİ ERİŞİM FONKSİYONLARI (Getter Pattern)</div><div>// ======================================================================</div><div><br></div><div>function GetCurrentOrderListArr: TCLJSONArray;</div><div>{</div><div>&nbsp; if (CurrentOrderList == nil)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; CurrentOrderList = TCLJSONObject.Create;</div><div>&nbsp; &nbsp; CurrentOrderList.AddArray('items', GetCurrentOrderListArr);</div><div>&nbsp; }</div><div>&nbsp; if (CurrentOrderListArr == nil)&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; CurrentOrderListArr = TCLJSONArray.Create;</div><div>&nbsp; }</div><div>&nbsp; Result = CurrentOrderListArr;</div><div>}</div><div><br></div><div>function GetCurrentOrderList: TCLJSONObject;</div><div>{</div><div>&nbsp; if (CurrentOrderList == nil)&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; CurrentOrderList = TCLJSONObject.Create;</div><div>&nbsp; &nbsp; CurrentOrderList.AddArray('items', GetCurrentOrderListArr);</div><div>&nbsp; }</div><div>&nbsp; Result = CurrentOrderList;</div><div>}</div><div><br></div><div>void FreeOrderContainers</div><div>{</div><div>&nbsp; &nbsp; if (CurrentOrderList &lt;&gt; nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CurrentOrderList.Free;</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; // Pointerları tamamen sıfırla</div><div>&nbsp; &nbsp; CurrentOrderList&nbsp; &nbsp; &nbsp; &nbsp;= nil;</div><div>&nbsp; &nbsp; CurrentOrderListArr&nbsp; &nbsp; = nil;</div><div>}</div><div><br></div><div><br></div><div>// ======================================================================</div><div>// DİĞER FONKSİYONLAR</div><div>// ======================================================================</div><div><br></div><div>function IsCurrentOrderListNil: Boolean;</div><div>{</div><div>&nbsp; Result = CurrentOrderList &lt;&gt; nil;&nbsp;</div><div>}</div><div><br></div><div>function CurrentOrderListArrAmount: Integer;</div><div>{</div><div>&nbsp; Result = 0;</div><div>&nbsp; if (CurrentOrderListArr &lt;&gt; nil)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Result = CurrentOrderListArr.Count;</div><div>&nbsp; }</div><div>}<br><br>//uItemsPage<br><div>// uDataLib'i eklemeyi unutmayın</div><div>uses uDataLib, uAddItems, uEditItems, uHomePage, uWaiterAndChefDetails;</div><div><br></div><div>var</div><div>&nbsp; MainForm:TclForm;</div><div>&nbsp; TitlePnl,NavbarPnl,AdminOpacityPnl,AdminItemsPopUp:TclProPanel;</div><div>&nbsp; TitleLbl,ItemNameLbl,ItemPriceLbl,ItemPieceLbl,ItemPieceValueLbl,OrderChecklistLbl,PieceLbl:TClProLabel;</div><div>&nbsp; HomeBtn,BackBtn,AdminManagementBtn,ItemsCloseBtn,EditItemsBtn,AddItemsBtn,OrderChecklistBtn,ShowStockBtn,IncreaseBtn,DecreaseBtn:TClProButton;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ItemsCount:Integer;</div><div>&nbsp; ItemImage:TClImage;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; role:String;</div><div>&nbsp; StokStatus,StockVisibility:Boolean;</div><div>&nbsp; vScroll : TCLVertScrollBox;</div><div><br></div><div>&nbsp; CategoryId : Integer;</div><div>&nbsp; CurrentCategoryName : String;</div><div>&nbsp;&nbsp;</div><div>&nbsp; TableId, TableName : String;</div><div><br></div><div>void SetObjectMargins(AObject,AValue)&nbsp;</div><div>{</div><div>&nbsp; AObject.Margins.Top = AValue;</div><div>&nbsp; AObject.Margins.Bottom = AValue;</div><div>&nbsp; AObject.Margins.Left = AValue;</div><div>&nbsp; AObject.Margins.Right = AValue;</div><div>}</div><div><br></div><div>void TitlePnlV</div><div>{</div><div>&nbsp; TitlePnl = MainForm.AddNewProPanel(MainForm,'TitlePnl');</div><div>&nbsp; TitlePnl.Align = alMostTop;</div><div>&nbsp; TitlePnl.Height = (MainForm.clHeight*18)/100;</div><div>&nbsp; TitlePnl.Width = (MainForm.clWidth*100)/100;</div><div>&nbsp; TitlePnl.Margins.Top = (MainForm.clHeight * -0.0715);&nbsp;</div><div>&nbsp; TitlePnl.Margins.Left = (MainForm.clWidth * -0.0254);&nbsp;</div><div>&nbsp; TitlePnl.Margins.Right = (MainForm.clWidth * -0.0254);&nbsp;</div><div>&nbsp; TitlePnl.clProSettings.BorderWidth = 3;</div><div>&nbsp; TitlePnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; TitlePnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; TitlePnl.SetclProSettings(TitlePnl.clProSettings);</div><div><br></div><div>&nbsp; TitleLbl = MainForm.AddNewProLabel(TitlePnl,'TitleLbl','');</div><div>&nbsp; TitleLbl.Text = CurrentCategoryName;&nbsp;</div><div>&nbsp; TitleLbl.Align = alCenter;</div><div>&nbsp; TitleLbl.Width = (MainForm.clWidth * 0.6107);&nbsp;&nbsp;</div><div>&nbsp; TitleLbl.Height = (MainForm.clHeight * 0.1073);&nbsp;</div><div>&nbsp; TitleLbl.Margins.Top = (MainForm.clHeight * 0.0715);&nbsp;</div><div>&nbsp; TitleLbl.clProSettings.FontSize = 35;</div><div>&nbsp; TitleLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; TitleLbl.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; TitleLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; TitleLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; TitleLbl.SetclProSettings(TitleLbl.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; AdminManagementBtn = MainForm.AddNewProButton(TitlePnl,'AdminManagementBtn','');</div><div>&nbsp; AdminManagementBtn.Align = alCenter;</div><div>&nbsp; AdminManagementBtn.Width = (MainForm.clWidth * 0.2036);&nbsp;</div><div>&nbsp; AdminManagementBtn.Height = (MainForm.clHeight * 0.0953);&nbsp;</div><div>&nbsp; AdminManagementBtn.margins.Bottom = (MainForm.clHeight * 0.0358);&nbsp;</div><div>&nbsp; AdminManagementBtn.margins.Left = (MainForm.clWidth * 0.9924);&nbsp;</div><div>&nbsp; AdminManagementBtn.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; AdminManagementBtn.Visible=False;</div><div>&nbsp; AdminManagementBtn.clProSettings.PictureSource = '<a href="https://resmim.net/cdn/2025/11/10/jaGer6.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/11/10/jaGer6.png</a>';</div><div>&nbsp; MainForm.AddNewEvent(AdminManagementBtn,tbeOnClick,'OpenAdminItemsPopUpV');</div><div>&nbsp; AdminManagementBtn.SetclProSettings(AdminManagementBtn.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; ShowStockBtn = MainForm.AddNewProButton(TitlePnl,'ShowStockBtn','');</div><div>&nbsp; ShowStockBtn.Align = alCenter;</div><div>&nbsp; ShowStockBtn.Width = (MainForm.clWidth * 0.2036);&nbsp;</div><div>&nbsp; ShowStockBtn.Height = (MainForm.clHeight * 0.0953);&nbsp;</div><div>&nbsp; ShowStockBtn.margins.Bottom = (MainForm.clHeight * 0.0358);&nbsp;</div><div>&nbsp; ShowStockBtn.margins.Right = (MainForm.clWidth * 0.9669);&nbsp;</div><div>&nbsp; ShowStockBtn.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; ShowStockBtn.clProSettings.PictureSource = '<a href="https://resmim.net/cdn/2025/11/12/jpbk0o.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/11/12/jpbk0o.png</a>';</div><div>&nbsp; MainForm.AddNewEvent(ShowStockBtn,tbeOnClick,'ChangeImage');</div><div>&nbsp; ShowStockBtn.SetclProSettings(ShowStockBtn.clProSettings);</div><div>}</div><div><br></div><div>void BtnGoBackClick;</div><div>{</div><div>&nbsp; MainForm.Close;&nbsp;</div><div>}</div><div><br></div><div>void BtnHomeClick;</div><div>{</div><div>&nbsp; Clomosy.RunUnit('uHomePage');&nbsp;</div><div>}</div><div><br></div><div>// Helper Setters</div><div>void SetTableV(FTableName : String)</div><div>{</div><div>&nbsp; TableName = FTableName;</div><div>}</div><div>void SetTableIdV(FTableId : String)</div><div>{</div><div>&nbsp; TableId = FTableId;</div><div>}</div><div>void SetTitleLblV(FCategoryName : String)</div><div>{</div><div>&nbsp; CurrentCategoryName = FCategoryName;</div><div>}</div><div><br></div><div>void SetCategoryIDV(FCategoryId : String)</div><div>{</div><div>&nbsp; CategoryId = StrToIntDef(FCategoryId, 0);</div><div>}</div><div><br></div><div>void NavbarPnlV</div><div>{</div><div>&nbsp; NavbarPnl = MainForm.AddNewProPanel(MainForm,'NavbarPnl');</div><div>&nbsp; NavbarPnl.Align = alMostBottom;</div><div>&nbsp; NavbarPnl.Height = (MainForm.clHeight*8)/100;</div><div>&nbsp; NavbarPnl.Width = (MainForm.clWidth*100)/100;</div><div>&nbsp; NavbarPnl.Margins.Left = (MainForm.clWidth * -0.0254);&nbsp;</div><div>&nbsp; NavbarPnl.Margins.Right = (MainForm.clWidth * -0.0254);&nbsp;</div><div>&nbsp; NavbarPnl.Margins.Bottom = (MainForm.clHeight * -0.0119);&nbsp;</div><div>&nbsp; NavbarPnl.clProSettings.BorderWidth = 3;</div><div>&nbsp; NavbarPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; NavbarPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; NavbarPnl.SetclProSettings(NavbarPnl.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; HomeBtn = MainForm.AddNewProButton(NavbarPnl,'HomeBtn','');</div><div>&nbsp; HomeBtn.Align = alCenter;</div><div>&nbsp; HomeBtn.Height = (NavbarPnl.Height*105)/100;</div><div>&nbsp; HomeBtn.Width = (NavbarPnl.Width*30)/100;</div><div>&nbsp; HomeBtn.Margins.Top = (MainForm.clHeight * -0.0596);&nbsp;</div><div>&nbsp; HomeBtn.clProSettings.PictureSource = uHomePage.IconSelect('HomePageBtnUI');</div><div>&nbsp; HomeBtn.SetclProSettings(HomeBtn.clProSettings);</div><div>&nbsp; MainForm.AddNewEvent(HomeBtn,tbeOnClick,'BtnHomeClick');</div><div>&nbsp;&nbsp;</div><div>&nbsp; BackBtn = MainForm.AddNewProButton(NavbarPnl,'BackBtn','');</div><div>&nbsp; BackBtn.Align = alCenter;</div><div>&nbsp; BackBtn.Height = (NavbarPnl.Height*105)/100;</div><div>&nbsp; BackBtn.Width = (NavbarPnl.Width*30)/100;</div><div>&nbsp; BackBtn.Margins.Top = (MainForm.clHeight * -0.0596);&nbsp;</div><div>&nbsp; BackBtn.Margins.Right = (MainForm.clWidth * -0.6361);&nbsp;</div><div>&nbsp; BackBtn.clProSettings.PictureSource = uHomePage.IconSelect('BackArrowBtnUI');</div><div>&nbsp; BackBtn.SetclProSettings(BackBtn.clProSettings);</div><div>&nbsp; MainForm.AddNewEvent(BackBtn,tbeOnClick,'BtnGoBackClick');</div><div>&nbsp;&nbsp;</div><div>&nbsp; OrderChecklistBtn = MainForm.AddNewProButton(NavbarPnl,'OrderChecklistBtn','');</div><div>&nbsp; OrderChecklistBtn.Align = alCenter;</div><div>&nbsp; OrderChecklistBtn.Height = (NavbarPnl.Height*105)/100;</div><div>&nbsp; OrderChecklistBtn.Width = (NavbarPnl.Width*30)/100;</div><div>&nbsp; OrderChecklistBtn.Margins.Top = (MainForm.clHeight * -0.0596);&nbsp;</div><div>&nbsp; OrderChecklistBtn.Margins.Left = (MainForm.clWidth * -0.6361);&nbsp;</div><div>&nbsp; OrderChecklistBtn.clProSettings.PictureSource = uHomePage.IconSelect('OrderChecklistBtnUI');</div><div>&nbsp; OrderChecklistBtn.SetclProSettings(OrderChecklistBtn.clProSettings);</div><div>&nbsp; MainForm.AddNewEvent(OrderChecklistBtn,tbeOnClick,'goToOrderList');</div><div>&nbsp;&nbsp;</div><div>&nbsp; OrderChecklistLbl = MainForm.AddNewProLabel(OrderChecklistBtn,'OrderChecklistLbl','0');</div><div>&nbsp; OrderChecklistLbl.Align = alCenter;</div><div>&nbsp; OrderChecklistLbl.Height = (MainForm.clHeight * 0.0238);&nbsp;</div><div>&nbsp; OrderChecklistLbl.Width = (MainForm.clWidth * 0.0509);&nbsp;</div><div>&nbsp; OrderChecklistLbl.clProSettings.FontSize = 12;</div><div>&nbsp; OrderChecklistLbl.Margins.Left = (MainForm.clWidth * 0.0636);&nbsp;</div><div>&nbsp; OrderChecklistLbl.Margins.Bottom = (MainForm.clHeight * 0.0298);&nbsp;</div><div>&nbsp; OrderChecklistLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; OrderChecklistLbl.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; OrderChecklistLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; OrderChecklistLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; OrderChecklistLbl.SetclProSettings(OrderChecklistLbl.clProSettings);</div><div>}</div><div><br></div><div>void MainPnlV&nbsp; &nbsp;</div><div>{</div><div>&nbsp; &nbsp;vScroll = MainForm.AddNewVertScrollBox(MainForm,'vScroll');</div><div>&nbsp; &nbsp;vScroll.Align = alCenter;</div><div>&nbsp; &nbsp;vScroll.Height = (MainForm.clHeight*80)/100;</div><div>&nbsp; &nbsp;vScroll.Width = (MainForm.clWidth*95)/100;</div><div>&nbsp; &nbsp;vScroll.Margins.Bottom = (MainForm.clHeight * 0.0715);&nbsp;</div><div>}</div><div><br></div><div>function GetItemImage(FId: String): TclMemoryStream</div><div>var&nbsp;</div><div>&nbsp; LRest: TCLRest;</div><div>{</div><div>&nbsp; LRest = uDataLib.GetImageWithRes('items/' + FId + '/image');&nbsp;</div><div>&nbsp; LRest.Execute;</div><div>&nbsp; if ( LRest.StreamResponse.size &lt; 100){</div><div>&nbsp; &nbsp; Result = nil;</div><div>&nbsp; }else</div><div>&nbsp; Result = LRest.StreamResponse;</div><div>}</div><div><br></div><div>void FillItemsPnlV(FQry: TCLJSONQuery)</div><div>var&nbsp;</div><div>&nbsp; I: Integer;</div><div>&nbsp; TempItemNameLbl, TempItemPriceLbl, TempItemPieceValueLbl: TclProLabel;</div><div>&nbsp; TempItemImage: TClImage;&nbsp;</div><div>&nbsp; LMemStream: TCLMemoryStream;</div><div>{</div><div>&nbsp; I = 1;</div><div>&nbsp; try</div><div>&nbsp; &nbsp; LMemStream = TCLMemoryStream.Create;</div><div>&nbsp; &nbsp; with FQry do</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if (Found)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; First;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; while (not EOF)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempItemNameLbl = MainForm.clFindComponent('ItemNameLbl' + IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempItemPriceLbl = MainForm.clFindComponent('ItemPriceLbl' + IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempItemPieceValueLbl = MainForm.clFindComponent('ItemPieceValueLbl' + IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempItemImage = MainForm.clFindComponent('ItemImage' + IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (TempItemNameLbl &lt;&gt; nil){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempItemNameLbl.Text = FieldByName('name').AsString;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempItemNameLbl.Cltagint = FieldByName('id').AsInteger;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (TempItemPriceLbl &lt;&gt; nil)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempItemPriceLbl.Text = FieldByName('price').AsString + ' TL';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (TempItemPieceValueLbl &lt;&gt; nil)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempItemPieceValueLbl.Text = FieldByName('stock').AsString;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (TempItemImage &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LMemStream = GetItemImage(FieldByName('id').AsString);&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (LMemStream &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempItemImage.Bitmap.LoadFromStream(LMemStream);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LMemStream.Free;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MainForm.setImage(TempItemImage,'<a href="https://clomosy.com/learn/clomosy.png" target="_blank" rel="nofollow">https://clomosy.com/learn/clomosy.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LMemStream.Free;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Inc(I);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('FillItems Satır Hatası ' + IntToStr(I) + ': ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Inc(I);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('FillItemsPnlV Genel Hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void ItemsPnlV&nbsp;</div><div>&nbsp; var</div><div>&nbsp; &nbsp; I:integer;</div><div>&nbsp; {</div><div>&nbsp; for (I = 1 to ItemsCount)&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ItemsPnl = MainForm.addnewpropanel(vScroll,'ItemsPnl'+IntToStr(I));</div><div>&nbsp; &nbsp; ItemsPnl.Align = alTop;</div><div>&nbsp; &nbsp; ItemsPnl.Height = (MainForm.clHeight * 0.0930);&nbsp;</div><div>&nbsp; &nbsp; SetObjectMargins(ItemsPnl,7);</div><div>&nbsp; &nbsp; ItemsPnl.Margins.Left = (MainForm.clWidth * 0.0382);&nbsp;</div><div>&nbsp; &nbsp; ItemsPnl.Margins.Right = (MainForm.clWidth * 0.0382);&nbsp;</div><div>&nbsp; &nbsp; ItemsPnl.clProSettings.BorderWidth = 2;</div><div>&nbsp; &nbsp; ItemsPnl.clProSettings.RoundHeight=3.5;</div><div>&nbsp; &nbsp; ItemsPnl.clProSettings.RoundWidth=3.5;</div><div>&nbsp; &nbsp; ItemsPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; &nbsp; ItemsPnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; &nbsp; ItemsPnl.SetclProSettings(ItemsPnl.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ItemImage = MainForm.AddNewImage(ItemsPnl,'ItemImage'+IntToStr(I));</div><div>&nbsp; &nbsp; ItemImage.Align = alCenter;</div><div>&nbsp; &nbsp; ItemImage.Height = (MainForm.clHeight * 0.0775);&nbsp;</div><div>&nbsp; &nbsp; ItemImage.Width = (MainForm.clWidth * 0.1654);&nbsp;</div><div>&nbsp; &nbsp; ItemImage.Margins.Right = (MainForm.clWidth * 0.6743);</div><div>&nbsp; &nbsp; MainForm.setImage(ItemImage,'<a href="https://clomosy.com/learn/clomosy.png" target="_blank" rel="nofollow">https://clomosy.com/learn/clomosy.png</a>');&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ItemNameLbl = MainForm.AddNewProLabel(ItemsPnl,'ItemNameLbl'+IntToStr(I),'...');</div><div>&nbsp; &nbsp; ItemNameLbl.Align = alCenter;</div><div>&nbsp; &nbsp; ItemNameLbl.Width = (MainForm.clWidth * 0.3817);&nbsp;</div><div>&nbsp; &nbsp; ItemNameLbl.Height = (MainForm.clHeight * 0.0358);&nbsp;</div><div>&nbsp; &nbsp; ItemNameLbl.Margins.Bottom = (MainForm.clHeight * 0.0417);&nbsp;</div><div>&nbsp; &nbsp; ItemNameLbl.Margins.Right = (MainForm.clWidth * 0.0382);&nbsp;</div><div>&nbsp; &nbsp; ItemNameLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; ItemNameLbl.clProSettings.FontSize = 14;</div><div>&nbsp; &nbsp; ItemNameLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; ItemNameLbl.clProSettings.FontHorzAlign = palleading;</div><div>&nbsp; &nbsp; ItemNameLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; ItemNameLbl.SetclProSettings(ItemNameLbl.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ItemPriceLbl = MainForm.AddNewProLabel(ItemsPnl,'ItemPriceLbl'+IntToStr(I),'...');</div><div>&nbsp; &nbsp; ItemPriceLbl.Align = alCenter;</div><div>&nbsp; &nbsp; ItemPriceLbl.Width = (MainForm.clWidth * 0.3053);&nbsp;</div><div>&nbsp; &nbsp; ItemPriceLbl.Height = (MainForm.clHeight * 0.0358);&nbsp;</div><div>&nbsp; &nbsp; ItemPriceLbl.Margins.Top = (MainForm.clHeight * 0.0417);&nbsp;</div><div>&nbsp; &nbsp; ItemPriceLbl.Margins.Right = (MainForm.clWidth * 0.1145);&nbsp;</div><div>&nbsp; &nbsp; ItemPriceLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; ItemPriceLbl.clProSettings.FontSize = 14;</div><div>&nbsp; &nbsp; ItemPriceLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; ItemPriceLbl.clProSettings.FontHorzAlign = palleading;</div><div>&nbsp; &nbsp; ItemPriceLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; ItemPriceLbl.SetclProSettings(ItemPriceLbl.clProSettings);</div><div>&nbsp; &nbsp; ItemPriceLbl.Cltagstr= 'ItemPriceLbl'+IntToStr(I);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ItemPieceLbl = MainForm.AddNewProLabel(ItemsPnl,'ItemPieceLbl'+IntToStr(I),'ADET:');</div><div>&nbsp; &nbsp; ItemPieceLbl.Align = alCenter;</div><div>&nbsp; &nbsp; ItemPieceLbl.Width = (MainForm.clWidth * 0.1018);&nbsp;</div><div>&nbsp; &nbsp; ItemPieceLbl.Height = (MainForm.clHeight * 0.0358);&nbsp;</div><div>&nbsp; &nbsp; ItemPieceLbl.Margins.Top = (MainForm.clHeight * 0.0536);&nbsp;</div><div>&nbsp; &nbsp; ItemPieceLbl.Margins.Left = (MainForm.clWidth * 0.3944);&nbsp;</div><div>&nbsp; &nbsp; ItemPieceLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; ItemPieceLbl.clProSettings.FontSize = 14;</div><div>&nbsp; &nbsp; ItemPieceLbl.Visible=True;</div><div>&nbsp; &nbsp; ItemPieceLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; ItemPieceLbl.clProSettings.FontHorzAlign = palleading;</div><div>&nbsp; &nbsp; ItemPieceLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; ItemPieceLbl.SetclProSettings(ItemPieceLbl.clProSettings);</div><div>&nbsp; &nbsp; ItemPieceLbl.Cltagstr= 'ItemPieceLbl'+IntToStr(I);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ItemPieceValueLbl = MainForm.AddNewProLabel(ItemsPnl,'ItemPieceValueLbl'+IntToStr(I),'0');</div><div>&nbsp; &nbsp; ItemPieceValueLbl.Align = alCenter;</div><div>&nbsp; &nbsp; ItemPieceValueLbl.Width = (MainForm.clWidth * 0.2036);&nbsp;</div><div>&nbsp; &nbsp; ItemPieceValueLbl.Height = (MainForm.clHeight * 0.0358);&nbsp;</div><div>&nbsp; &nbsp; ItemPieceValueLbl.Margins.Top = (MainForm.clHeight * 0.0536);&nbsp;</div><div>&nbsp; &nbsp; ItemPieceValueLbl.Margins.Left = (MainForm.clWidth * 0.7125);&nbsp;</div><div>&nbsp; &nbsp; ItemPieceValueLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; ItemPieceValueLbl.clProSettings.FontSize = 14;</div><div>&nbsp; &nbsp; ItemPieceValueLbl.Visible=True;</div><div>&nbsp; &nbsp; ItemPieceValueLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; ItemPieceValueLbl.clProSettings.FontHorzAlign = palleading;</div><div>&nbsp; &nbsp; ItemPieceValueLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; ItemPieceValueLbl.SetclProSettings(ItemPieceValueLbl.clProSettings);</div><div>&nbsp; &nbsp; ItemPieceValueLbl.Cltagstr= 'ItemPieceValueLbl'+IntToStr(I);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; IncreaseBtn = MainForm.AddNewProButton(ItemsPnl,'IncreaseBtn'+IntToStr(I),'+');&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; IncreaseBtn.Align=alCenter;</div><div>&nbsp; &nbsp; IncreaseBtn.Width = (MainForm.clWidth * 0.1272);&nbsp;</div><div>&nbsp; &nbsp; IncreaseBtn.Height = (MainForm.clHeight * 0.0596);&nbsp;</div><div>&nbsp; &nbsp; IncreaseBtn.Margins.Bottom = (MainForm.clHeight * 0.0238);&nbsp;</div><div>&nbsp; &nbsp; IncreaseBtn.Margins.Left = (MainForm.clWidth * 0.7125);&nbsp;</div><div>&nbsp; &nbsp; IncreaseBtn.Visible = False;</div><div>&nbsp; &nbsp; IncreaseBtn.clProSettings.BorderWidth = 2;</div><div>&nbsp; &nbsp; IncreaseBtn.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; &nbsp; IncreaseBtn.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; &nbsp; IncreaseBtn.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; IncreaseBtn.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; MainForm.AddNewEvent(IncreaseBtn,tbeOnClick,'ItemIncreaseV');</div><div>&nbsp; &nbsp; IncreaseBtn.SetclProSettings(IncreaseBtn.clProSettings);</div><div>&nbsp; &nbsp; IncreaseBtn.Cltagstr= 'PieceLbl'+IntToStr(I);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; DecreaseBtn = MainForm.AddNewProButton(ItemsPnl,'DecreaseBtn'+IntToStr(I),'-');</div><div>&nbsp; &nbsp; DecreaseBtn.Align=alCenter;</div><div>&nbsp; &nbsp; DecreaseBtn.Width = (MainForm.clWidth * 0.1272);&nbsp;</div><div>&nbsp; &nbsp; DecreaseBtn.Height = (MainForm.clHeight * 0.0596);&nbsp;</div><div>&nbsp; &nbsp; DecreaseBtn.Margins.Bottom = (MainForm.clHeight * 0.0238);&nbsp;</div><div>&nbsp; &nbsp; DecreaseBtn.Margins.Left = (MainForm.clWidth * 0.4453);&nbsp;</div><div>&nbsp; &nbsp; DecreaseBtn.Visible = False;</div><div>&nbsp; &nbsp; DecreaseBtn.clProSettings.BorderWidth = 2;</div><div>&nbsp; &nbsp; DecreaseBtn.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1e1e1e');</div><div>&nbsp; &nbsp; DecreaseBtn.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; &nbsp; DecreaseBtn.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; DecreaseBtn.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; DecreaseBtn.SetclProSettings(DecreaseBtn.clProSettings);</div><div>&nbsp; &nbsp; MainForm.AddNewEvent(DecreaseBtn,tbeOnClick,'ItemDecreaseV');</div><div>&nbsp; &nbsp; DecreaseBtn.Cltagstr= 'PieceLbl'+IntToStr(I);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; PieceLbl = MainForm.AddNewProLabel(ItemsPnl,'PieceLbl'+IntToStr(I),'x0');</div><div>&nbsp; &nbsp; PieceLbl.Align=alCenter;</div><div>&nbsp; &nbsp; PieceLbl.Width = (MainForm.clWidth * 0.1018);&nbsp;</div><div>&nbsp; &nbsp; PieceLbl.Height = (MainForm.clHeight * 0.0477);&nbsp;</div><div>&nbsp; &nbsp; PieceLbl.Margins.Left = (MainForm.clWidth * 0.6361);&nbsp;</div><div>&nbsp; &nbsp; PieceLbl.Margins.top = (MainForm.clHeight * 0.0596);&nbsp;</div><div>&nbsp; &nbsp; PieceLbl.Visible= False;</div><div>&nbsp; &nbsp; PieceLbl.clProSettings.FontSize = 16;</div><div>&nbsp; &nbsp; PieceLbl.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; PieceLbl.clProSettings.FontHorzAlign = palLeading;</div><div>&nbsp; &nbsp; PieceLbl.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; PieceLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; PieceLbl.SetclProSettings(PieceLbl.clProSettings);&nbsp;&nbsp;</div><div>&nbsp; &nbsp; PieceLbl.Cltagstr= 'PieceLbl'+IntToStr(I);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void AdminItemsPopUpV</div><div>{</div><div>&nbsp; AdminOpacityPnl= MainForm.AddNewProPanel(MainForm,'AdminOpacityPnl');</div><div>&nbsp; AdminOpacityPnl.Align=alCenter;</div><div>&nbsp; AdminOpacityPnl.Width= (MainForm.clWidth);</div><div>&nbsp; AdminOpacityPnl.Height = (MainForm.clHeight*1.2);</div><div>&nbsp; AdminOpacityPnl.Visible=False;</div><div>&nbsp; AdminOpacityPnl.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; AdminOpacityPnl.opacity=0.6;</div><div>&nbsp; AdminOpacityPnl.SetclProSettings(AdminOpacityPnl.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; AdminItemsPopUp= MainForm.AddNewProPanel(MainForm,'AdminItemsPopUp');</div><div>&nbsp; AdminItemsPopUp.Align=alCenter;</div><div>&nbsp; AdminItemsPopUp.Width = (MainForm.clWidth * 0.8957);&nbsp;</div><div>&nbsp; AdminItemsPopUp.Height = (MainForm.clHeight * 0.4195);&nbsp;</div><div>&nbsp; AdminItemsPopUp.margins.bottom = (MainForm.clHeight * 0.0596);&nbsp;</div><div>&nbsp; AdminItemsPopUp.Visible=False;</div><div>&nbsp; AdminItemsPopUp.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3a3a3a');</div><div>&nbsp; AdminItemsPopUp.clProSettings.BorderWidth = 2;</div><div>&nbsp; AdminItemsPopUp.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#2a2a2a');</div><div>&nbsp; AdminItemsPopUp.SetclProSettings(AdminItemsPopUp.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; ItemsCloseBtn = MainForm.AddNewProButton(AdminItemsPopUp,'ItemsCloseBtn','');</div><div>&nbsp; ItemsCloseBtn.Align = alMostTop;</div><div>&nbsp; ItemsCloseBtn.Width = (MainForm.clWidth * 0.1018);&nbsp;</div><div>&nbsp; ItemsCloseBtn.Height = (MainForm.clHeight * 0.0477);&nbsp;</div><div>&nbsp; ItemsCloseBtn.margins.top = (MainForm.clHeight * 0.0119);&nbsp;</div><div>&nbsp; ItemsCloseBtn.margins.right = (MainForm.clWidth * -0.7506);&nbsp;</div><div>&nbsp; ItemsCloseBtn.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; ItemsCloseBtn.clProSettings.PictureSource = '<a href="https://resmim.net/cdn/2025/11/04/jno9tH.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/11/04/jno9tH.png</a>';</div><div>&nbsp; MainForm.AddNewEvent(ItemsCloseBtn,tbeOnClick,'CloseAdminItemsPopUpV');</div><div>&nbsp; ItemsCloseBtn.SetclProSettings(ItemsCloseBtn.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; AddItemsBtn = MainForm.AddNewProButton(AdminItemsPopUp,'AddItemsBtn','ÜRÜN EKLEME');</div><div>&nbsp; AddItemsBtn.Align=alTop;</div><div>&nbsp; AddItemsBtn.Height = (MainForm.clHeight * 0.1073);&nbsp;</div><div>&nbsp; AddItemsBtn.Width = (MainForm.clWidth * 0.8651);&nbsp;</div><div>&nbsp; SetObjectMargins(AddItemsBtn,15);</div><div>&nbsp; AddItemsBtn.margins.top = (MainForm.clHeight * 0.0358);&nbsp;</div><div>&nbsp; AddItemsBtn.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; AddItemsBtn.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; AddItemsBtn.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; AddItemsBtn.clProSettings.FontSize = 25;</div><div>&nbsp; AddItemsBtn.clProSettings.RoundHeight=5;</div><div>&nbsp; AddItemsBtn.clProSettings.RoundWidth=5;</div><div>&nbsp; AddItemsBtn.clProSettings.WordWrap=true;</div><div>&nbsp; MainForm.AddNewEvent(AddItemsBtn,tbeOnClick,'gotouAddItems');</div><div>&nbsp; AddItemsBtn.SetclProSettings(AddItemsBtn.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; EditItemsBtn = MainForm.AddNewProButton(AdminItemsPopUp,'EditItemsBtn','ÜRÜN DÜZENLEME');</div><div>&nbsp; EditItemsBtn.Align=alTop;</div><div>&nbsp; EditItemsBtn.Height = (MainForm.clHeight * 0.1073);&nbsp;</div><div>&nbsp; EditItemsBtn.Width = (MainForm.clWidth * 0.8651);&nbsp;</div><div>&nbsp; SetObjectMargins(EditItemsBtn,15);</div><div>&nbsp; EditItemsBtn.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; EditItemsBtn.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4caf50');</div><div>&nbsp; EditItemsBtn.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; EditItemsBtn.clProSettings.FontSize = 25;</div><div>&nbsp; EditItemsBtn.clProSettings.RoundHeight=5;</div><div>&nbsp; EditItemsBtn.clProSettings.RoundWidth=5;</div><div>&nbsp; MainForm.AddNewEvent(EditItemsBtn,tbeOnClick,'gotouEditItems');</div><div>&nbsp; EditItemsBtn.SetclProSettings(EditItemsBtn.clProSettings);</div><div>}</div><div><br></div><div>void ChangeItemAmountV(APieces : Integer)</div><div>&nbsp; var</div><div>&nbsp; &nbsp;TempPieceLbl : TclProLabel;</div><div>&nbsp; &nbsp;LPieceStr, LComponentName : String;</div><div>&nbsp; &nbsp;LPieceInt : Integer;</div><div>&nbsp; {</div><div>&nbsp; LComponentName = TclProButton(MainForm.Clsender).clTagStr;</div><div>&nbsp; TempPieceLbl = MainForm.clFindComponent(LComponentName) as TclProLabel;&nbsp;</div><div>&nbsp; if (TempPieceLbl &lt;&gt; nil)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; LPieceStr = TempPieceLbl.Text;</div><div>&nbsp; &nbsp; Delete(LPieceStr,1,1); //Delete x letter from piecesLbl</div><div>&nbsp; &nbsp; LPieceInt = StrToInt(LPieceStr);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if((APieces == -1)&amp;&amp;(LPieceInt&gt;0))</div><div>&nbsp; &nbsp; &nbsp; Dec(LPieceInt);</div><div>&nbsp; &nbsp; else if(APieces == 1)</div><div>&nbsp; &nbsp; &nbsp; Inc(LPieceInt);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; LPieceStr = IntToStr(LPieceInt);</div><div>&nbsp; &nbsp; Insert('x', LPieceStr,0);// Add x&nbsp;</div><div>&nbsp; &nbsp; TempPieceLbl.Text = LPieceStr;</div><div>&nbsp; }</div><div>&nbsp; else ShowMessage(LComponentName +'is null');</div><div>}</div><div><br></div><div>void ItemDecreaseV</div><div>&nbsp; var</div><div>&nbsp; &nbsp; J: integer;</div><div>&nbsp; &nbsp; TempPieceLbl: TclProLabel;</div><div>&nbsp; &nbsp; PieceValue, Total: integer;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ChangeItemAmountV(-1);</div><div>&nbsp; &nbsp; Total = 0;</div><div>&nbsp; &nbsp; for (J = 1 to ItemsCount) {</div><div>&nbsp; &nbsp; &nbsp; TempPieceLbl = MainForm.clFindComponent('PieceLbl' + IntToStr(J));</div><div>&nbsp; &nbsp; &nbsp; if (TempPieceLbl &lt;&gt; nil) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PieceValue = StrToInt(Copy(TempPieceLbl.Text, 2, Length(TempPieceLbl.Text) - 1));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Total = Total + PieceValue;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; OrderChecklistLbl.Text = IntToStr(Total);</div><div>&nbsp; }</div><div><br></div><div>void ItemIncreaseV&nbsp;</div><div>&nbsp; var</div><div>&nbsp; &nbsp; J: integer;</div><div>&nbsp; &nbsp; TempPieceLbl: TclProLabel;</div><div>&nbsp; &nbsp; PieceValue, Total: integer;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ChangeItemAmountV(1);</div><div>&nbsp; &nbsp; Total = 0;</div><div>&nbsp; &nbsp; for (J = 1 to ItemsCount) {</div><div>&nbsp; &nbsp; &nbsp; TempPieceLbl = MainForm.clFindComponent('PieceLbl' + IntToStr(J));</div><div>&nbsp; &nbsp; &nbsp; if (TempPieceLbl &lt;&gt; nil) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PieceValue = StrToInt(Copy(TempPieceLbl.Text, 2, Length(TempPieceLbl.Text) - 1));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Total = Total + PieceValue;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; OrderChecklistLbl.Text = IntToStr(Total);</div><div>&nbsp; }</div><div><br></div><div>void addToOrderlistArr</div><div>var&nbsp;</div><div>&nbsp; Item: TCLJSONObject;</div><div>&nbsp; TempItemNameLbl, TempItemPriceLbl, TempItemPieceLbl: TclProLabel;</div><div>&nbsp; I, UnitPrice: Integer;</div><div>&nbsp; LItemPriceStr, LPieceStr : String;</div><div>&nbsp; OrderListRef: TCLJSONObject;</div><div>&nbsp; OrderListArrRef: TCLJSONArray;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; // Eski verileri temizle</div><div>&nbsp; &nbsp; uDataLib.FreeOrderContainers;</div><div><br></div><div>&nbsp; &nbsp; // Güvenli referansları al</div><div>&nbsp; &nbsp; OrderListRef = uDataLib.GetCurrentOrderList;</div><div>&nbsp; &nbsp; OrderListArrRef = uDataLib.GetCurrentOrderListArr;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; OrderListRef.AddPair('table_id', TCLJSONValue.Str(TableId));</div><div><br></div><div>&nbsp; &nbsp; for (I = 1 to ItemsCount)&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; TempItemNameLbl = MainForm.clFindComponent('ItemNameLbl' + IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; TempItemPieceLbl = MainForm.clFindComponent('PieceLbl' + IntToStr(I)); // adet</div><div>&nbsp; &nbsp; &nbsp; TempItemPriceLbl = MainForm.clFindComponent('ItemPriceLbl' + IntToStr(I)); // UnitPrice</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (TempItemPieceLbl &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LPieceStr = TempItemPieceLbl.Text;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Delete(LPieceStr, 1, 1);// 'x' harfini sil</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (StrToInt(LPieceStr) &gt; 0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Item = TCLJSONObject.Create;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Item.AddPair('amount', TCLJSONValue.Int(StrToInt(LPieceStr)));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (TempItemNameLbl &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Item.AddPair('item_name', TCLJSONValue.Str(TempItemNameLbl.Text));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Item.AddPair('item_id', TCLJSONValue.Int(TempItemNameLbl.Cltagint));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (TempItemPriceLbl &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LItemPriceStr = TempItemPriceLbl.Text;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Delete(LItemPriceStr, Length(LItemPriceStr) - 1, 2); // ' TL' sil</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Item.AddPair('unit_price', TCLJSONValue.Int(StrToInt(Trim(LItemPriceStr))));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // --- DÜZELTME BURADA YAPILDI ---</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OrderListArrRef.AddObject(Item);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Item.Free;&nbsp; &lt;-- BU SATIR SİLİNDİ! ASLA BURADA FREE YAPMAYIN.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Neden? Çünkü AddObject ile sahiplik diziye geçti. Dizi silinince Item da silinecek.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('addToOrderlistArr Hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void goToOrderList</div><div>var</div><div>&nbsp; OrderListRef: TCLJSONObject;</div><div>&nbsp; OrderListArrRef: TCLJSONArray;</div><div>{</div><div>&nbsp; OrderListRef = uDataLib.GetCurrentOrderList;</div><div>&nbsp; OrderListArrRef = uDataLib.GetCurrentOrderListArr;</div><div><br></div><div>&nbsp; // Liste boşsa yeniden doldurmayı dene</div><div>&nbsp; if (uDataLib.CurrentOrderListArrAmount == 0)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; addToOrderlistArr;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Referansları güncelle (addToOrderlistArr içinde Free/Create yapılmış olabilir)</div><div>&nbsp; OrderListRef = uDataLib.GetCurrentOrderList;</div><div>&nbsp; OrderListArrRef = uDataLib.GetCurrentOrderListArr;</div><div><br></div><div>&nbsp; if (OrderListArrRef.Count &gt; 0)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Clomosy.RunUnit('uWaiterAndChefDetails');</div><div>&nbsp; &nbsp; uWaiterAndChefDetails.SetTitleV(TableName);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Sipariş Listesi : '+OrderListRef.ToJSONString);</div><div>&nbsp; &nbsp; uWaiterAndChefDetails.SetCreatingOrder(OrderListRef);&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; uWaiterAndChefDetails.DetailsPnlV(OrderListArrRef);</div><div>&nbsp; &nbsp; uWaiterAndChefDetails.FillDetailsPnlV(OrderListArrRef);</div><div>&nbsp; &nbsp; uWaiterAndChefDetails.CalculateTotalPrice(OrderListArrRef);</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Sipariş listesi boş. Lütfen devam etmeden önce ürün ekleyin.');&nbsp;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void gotouEditItems</div><div>{</div><div>&nbsp; uEditItems.SetCategoryIDV(CategoryId);</div><div>&nbsp; Clomosy.RunUnit('uEditItems');</div><div>}</div><div>void gotouAddItems</div><div>{</div><div>&nbsp; uAddItems.SetCategoryIDV(CategoryId);</div><div>&nbsp; Clomosy.RunUnit('uAddItems');</div><div>}</div><div><br></div><div>void OpenAdminItemsPopUpV</div><div>{</div><div>&nbsp; AdminItemsPopUp.visible=true;</div><div>&nbsp; AdminOpacityPnl.visible=true;</div><div>}</div><div><br></div><div>void CloseAdminItemsPopUpV</div><div>{</div><div>&nbsp; AdminItemsPopUp.visible=False;</div><div>&nbsp; AdminOpacityPnl.visible=False;</div><div>}</div><div><br></div><div>void CheckAdmin</div><div>{</div><div>&nbsp; if role == 'Admin'</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AdminManagementBtn.Visible=true;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void ChangeImage</div><div>var</div><div>&nbsp; I: integer;</div><div>&nbsp; TempItemPieceLbl, TempItemPieceValueLbl, TempPieceLbl: TclProLabel;</div><div>&nbsp; TempIncreaseBtn, TempDecreaseBtn: TclProButton;</div><div>{</div><div>&nbsp; if (StokStatus == False)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; MainForm.setImage(ShowStockBtn,'<a href="https://resmim.net/cdn/2025/11/12/jpbk0o.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/11/12/jpbk0o.png</a>');&nbsp;</div><div>&nbsp; &nbsp; for (I = 1 to ItemsCount)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; TempItemPieceLbl= MainForm.clFindComponent('ItemPieceLbl'+IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; if (TempItemPieceLbl &lt;&gt; nil) TempItemPieceLbl.Visible = false;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; TempItemPieceValueLbl= MainForm.clFindComponent('ItemPieceValueLbl'+IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; if (TempItemPieceValueLbl &lt;&gt; nil) TempItemPieceValueLbl.Visible = false;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; TempIncreaseBtn= MainForm.clFindComponent('IncreaseBtn'+IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; if (TempIncreaseBtn &lt;&gt; nil) TempIncreaseBtn.Visible = true;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; TempDecreaseBtn= MainForm.clFindComponent('DecreaseBtn'+IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; if (TempDecreaseBtn &lt;&gt; nil) TempDecreaseBtn.Visible = true;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; TempPieceLbl= MainForm.clFindComponent('PieceLbl'+IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; if (TempPieceLbl &lt;&gt; nil) TempPieceLbl.Visible = true;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else&nbsp;&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; MainForm.setImage(ShowStockBtn,'<a href="https://resmim.net/cdn/2025/11/13/jpAsex.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/11/13/jpAsex.png</a>');&nbsp;</div><div>&nbsp; &nbsp; for (I = 1 to ItemsCount)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; TempItemPieceLbl= MainForm.clFindComponent('ItemPieceLbl'+IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; if (TempItemPieceLbl &lt;&gt; nil) TempItemPieceLbl.Visible = true;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; TempItemPieceValueLbl= MainForm.clFindComponent('ItemPieceValueLbl'+IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; if (TempItemPieceValueLbl &lt;&gt; nil) TempItemPieceValueLbl.Visible = true;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; TempIncreaseBtn= MainForm.clFindComponent('IncreaseBtn'+IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; if (TempIncreaseBtn &lt;&gt; nil) TempIncreaseBtn.Visible = false;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; TempDecreaseBtn= MainForm.clFindComponent('DecreaseBtn'+IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; if (TempDecreaseBtn &lt;&gt; nil) TempDecreaseBtn.Visible = false;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; TempPieceLbl= MainForm.clFindComponent('PieceLbl'+IntToStr(I));</div><div>&nbsp; &nbsp; &nbsp; if (TempPieceLbl &lt;&gt; nil) TempPieceLbl.Visible = false;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; StokStatus = not StokStatus;</div><div>}</div><div><br></div><div>void GetItemsCompletedV(Sender)</div><div>var</div><div>&nbsp; jsonResponse: String;</div><div>&nbsp; FQry: TCLJSONQuery;</div><div>{</div><div>&nbsp; jsonResponse = TCLRest(Sender).Response;</div><div>&nbsp;&nbsp;</div><div>&nbsp; FQry = TCLJSONQuery.Create(nil);</div><div>&nbsp;&nbsp;</div><div>&nbsp; try</div><div>&nbsp; &nbsp; FQry = Clomosy.ClDataSetFromJSON(jsonResponse);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (FQry.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ItemsCount = FQry.RecordCount;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ItemsPnlV;</div><div>&nbsp; &nbsp; &nbsp; FillItemsPnlV(FQry);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Bu kategoride ürün bulunamadı.');</div><div>&nbsp; &nbsp; &nbsp; ItemsCount = 0;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Veri işleme hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>&nbsp; TCLRest(Sender).ClearBody;</div><div>&nbsp; TCLRest(Sender).free;</div><div>}</div><div><br></div><div>void GetItems</div><div>var LRest : TCLRest;</div><div>{</div><div>&nbsp; LRest = uDataLib.GetWithRes('items?categoryId='+ IntToStr(CategoryId));</div><div>&nbsp; LRest.OnCompleted = 'GetItemsCompletedV';</div><div>&nbsp; LRest.ExecuteAsync;</div><div>}</div><div><br></div><div>{</div><div>&nbsp; MainForm = tclForm.Create(self);</div><div>&nbsp; ItemsCount = 0;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; StokStatus = False;</div><div>&nbsp; StockVisibility = false;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //Default olarak hızlı satış</div><div>&nbsp; SetTableIdV('0');</div><div>&nbsp; SetTableV('Hızlı Satış');</div><div>&nbsp;&nbsp;</div><div>&nbsp; TitlePnlV;</div><div>&nbsp; MainPnlV;</div><div>&nbsp; NavbarPnlV;</div><div>&nbsp; CheckAdmin;</div><div>&nbsp; AdminItemsPopUpV;</div><div>&nbsp;&nbsp;</div><div>&nbsp; GetItems;</div><div><br></div><div>&nbsp; MainForm.SetFormColor('#121212','',clGNone);</div><div>&nbsp; MainForm.FormWaiting.Visible = False;</div><div>&nbsp; MainForm.BtnFormMenu.Visible = False;</div><div>&nbsp; MainForm.BtnGoBack.Visible = False;</div><div>&nbsp; MainForm.run;</div><div>}</div></div>]]>
   </description>
   <pubDate>Fri, 05 Dec 2025 11:35:40 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1240&amp;PID=2744#2744</guid>
  </item> 
 </channel>
</rss>