<?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 : RE: proje</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : RE: proje]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 09 May 2026 15:12:21 +0000</pubDate>
  <lastBuildDate>Sat, 09 May 2026 11:39:19 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1496</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[RE: proje : stok listesinde sorun var baz&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1496&amp;PID=3437#3437</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=437">yagmur</a><br /><strong>Konu:</strong> 1496<br /><strong>Gönderim Zamanı:</strong> 09&nbsp;Mayıs&nbsp;2026 Saat 11:39<br /><br /><div><br></div><div>stok listesinde sorun var bazı ürünleri eklemiyor veya eklenen ürünü düşmüyor</div><div><br></div><div><br></div><div>Var&nbsp;</div><div>&nbsp; Form1: TclForm;</div><div>&nbsp; PnlLogin, PnlSignUp, PnlWelcome, PnlDashboard, PnlAddProduct, PnlOutProduct, PnlListStock: TclPanel;</div><div>&nbsp; EdtLName, EdtLPass, EdtSName, EdtSPass: TclProEdit;</div><div>&nbsp; BtnDoLogin, BtnRegister, BtnGoToSignUp, BtnContinue: TclProButton;</div><div>&nbsp; BtnGotoAddPage, BtnGotoOutPage, BtnGotoListPage: TclProButton;</div><div>&nbsp; BtnBackFromAdd, BtnBackFromOut, BtnBackFromList: TclProButton;</div><div>&nbsp; BtnLogoutWelcome, BtnLogoutDash, BtnLogoutAdd, BtnLogoutOut, BtnLogoutList: TclProButton;</div><div>&nbsp; BtnOutProduct, BtnSaveProduct: TclProButton;</div><div>&nbsp; EdtAddName, EdtAddPrice, EdtAddAmount: TclProEdit;</div><div>&nbsp; EdtOutName, EdtOutAmount, EdtSearch: TclProEdit;</div><div>&nbsp; Qry: TClSQLiteQuery;</div><div>&nbsp; i: integer;</div><div>&nbsp; stPnl: TclPanel;</div><div>&nbsp; stLbl: TCLLabel;</div><div>&nbsp; lblAppTitle, lblWelcomeMsg: TclLabel;</div><div><br></div><div>// --- STOK LİSTESİ VE ARAMA ---</div><div>void RefreshStockList;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; if (EdtSearch.Text == '')</div><div>&nbsp; &nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith('SELECT * FROM Stocks ORDER BY pName ASC');</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith('SELECT * FROM Stocks WHERE pName LIKE ' + QuotedStr('%'+EdtSearch.Text+'%') + ' ORDER BY pName ASC');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; Qry.First;</div><div>&nbsp; &nbsp; i = i + 100;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; while (not Qry.EOF)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; stPnl = Form1.AddNewPanel(PnlListStock, 'stRow' + IntToStr(i));</div><div>&nbsp; &nbsp; &nbsp; stPnl.Height = 75; stPnl.Align = alTop; stPnl.Margins.Top = 8;</div><div>&nbsp; &nbsp; &nbsp; stPnl.StyleLookup = 'pushpanel';</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; stLbl = Form1.AddNewLabel(stPnl, 'stLbl' + IntToStr(i),&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry.FieldByName('pName').AsString + ' | Fiyat: ' + Qry.FieldByName('pPrice').AsString + ' TL | Stok: ' + Qry.FieldByName('pAmount').AsString);</div><div>&nbsp; &nbsp; &nbsp; stLbl.Align = alClient; stLbl.Margins.Left = 20;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // clRed yerine Hex kodu kullandık (#FF0000)</div><div>&nbsp; &nbsp; &nbsp; if (Qry.FieldByName('pAmount').AsInteger &lt; 10)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; stLbl.TextSettings.FontColor = '#FF0000';&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; stLbl.Text = '&#9888;&#65039; ' + stLbl.Text + ' (KRITIK!)';</div><div>&nbsp; &nbsp; &nbsp; } else {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; stLbl.TextSettings.FontColor = '#000000';</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; Qry.Next;</div><div>&nbsp; &nbsp; &nbsp; i = i + 1;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Liste yuklenemedi!');</div><div>&nbsp; }</div><div>}</div><div><br></div><div>// --- ÜRÜN GİRİŞ/ÇIKIŞ ---</div><div>void AddNewProduct;</div><div>{</div><div>&nbsp; if ((EdtAddName.Text &lt;&gt; '') &amp;&amp; (EdtAddAmount.Text &lt;&gt; ''))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO Stocks (pName, pPrice, pAmount) VALUES (' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; QuotedStr(EdtAddName.Text) + ', ' + EdtAddPrice.Text + ', ' + EdtAddAmount.Text + ')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Urun basariyla eklendi!');</div><div>&nbsp; &nbsp; &nbsp; EdtAddName.Text = ''; EdtAddPrice.Text = ''; EdtAddAmount.Text = '';</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Kayit hatasi!');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; } else ShowMessage('Lutfen alanlari doldurun!');</div><div>}</div><div><br></div><div>void SubProduct;</div><div>{</div><div>&nbsp; if ((EdtOutName.Text &lt;&gt; '') &amp;&amp; (EdtOutAmount.Text &lt;&gt; ''))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith('SELECT pAmount FROM Stocks WHERE pName = ' + QuotedStr(EdtOutName.Text));</div><div>&nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; if (not Qry.Eof)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if (Qry.FieldByName('pAmount').AsInteger &gt;= StrToInt(EdtOutAmount.Text))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'UPDATE Stocks SET pAmount = pAmount - ' + EdtOutAmount.Text + ' WHERE pName = ' + QuotedStr(EdtOutName.Text);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Stok guncellendi!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; EdtOutName.Text = ''; EdtOutAmount.Text = '';</div><div>&nbsp; &nbsp; &nbsp; } else ShowMessage('Yetersiz stok!');</div><div>&nbsp; &nbsp; } else ShowMessage('Urun bulunamadi!');</div><div>&nbsp; }</div><div>}</div><div><br></div><div>// --- NAVİGASYON ---</div><div>void ShowLogin; { PnlSignUp.Visible = False; PnlWelcome.Visible = False; PnlDashboard.Visible = False; PnlAddProduct.Visible = False; PnlOutProduct.Visible = False; PnlListStock.Visible = False; PnlLogin.Visible = True; }</div><div>void ShowWelcome; { PnlLogin.Visible = False; PnlSignUp.Visible = False; PnlWelcome.Visible = True; lblWelcomeMsg.Text = 'Sayin ' + EdtLName.Text + ',' + #13 + 'Sisteme Hos Geldiniz'; }</div><div>void ShowDashboard; { PnlWelcome.Visible = False; PnlAddProduct.Visible = False; PnlOutProduct.Visible = False; PnlListStock.Visible = False; PnlDashboard.Visible = True; }</div><div>void ShowAddPage; { PnlDashboard.Visible = False; PnlAddProduct.Visible = True; }</div><div>void ShowOutPage; { PnlDashboard.Visible = False; PnlOutProduct.Visible = True; }</div><div>void ShowListPage; { PnlDashboard.Visible = False; PnlListStock.Visible = True; RefreshStockList; }</div><div>void ShowSignUp; { PnlLogin.Visible = False; PnlSignUp.Visible = True; }</div><div><br></div><div>// --- AUTH ---</div><div>void DoLogin;&nbsp;</div><div>{</div><div>&nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT * FROM Users WHERE userName=' + QuotedStr(EdtLName.Text) + ' AND userPassword=' + QuotedStr(EdtLPass.Text);</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; if (not Clomosy.DBSQLiteQuery.Eof) ShowWelcome;</div><div>&nbsp; else ShowMessage('Hatali Giris!');</div><div>}</div><div><br></div><div>void DoRegister;&nbsp;</div><div>{</div><div>&nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO Users (userName, userPassword) VALUES (' + QuotedStr(EdtSName.Text) + ', ' + QuotedStr(EdtSPass.Text) + ')';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; ShowMessage('Kayit Basarili!'); ShowLogin;</div><div>}</div><div><br></div><div>void SetupDatabase;&nbsp;</div><div>{</div><div>&nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'ClomoStockV21.db3', '');</div><div>&nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE IF NOT EXISTS Users(userName TEXT, userPassword TEXT)';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE IF NOT EXISTS Stocks(pName TEXT, pPrice INTEGER, pAmount INTEGER)';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>}</div><div><br></div><div>// --- ANA PROGRAM ---</div><div>{</div><div>&nbsp; Form1 = TclForm.Create(Self);</div><div>&nbsp; SetupDatabase;</div><div>&nbsp; i = 0;</div><div><br></div><div>&nbsp; // 1. LOGIN</div><div>&nbsp; PnlLogin = Form1.AddNewPanel(Form1, 'PnlLogin'); PnlLogin.Align = alClient;</div><div>&nbsp; EdtLName = Form1.AddNewProEdit(PnlLogin, 'EdtLName', 'Kullanici Adi'); EdtLName.Align = alTop; EdtLName.Margins.Top = 50;</div><div>&nbsp; EdtLPass = Form1.AddNewProEdit(PnlLogin, 'EdtLPass', 'Sifre'); EdtLPass.Align = alTop; EdtLPass.Password = True;</div><div>&nbsp; BtnDoLogin = Form1.AddNewProButton(PnlLogin, 'BtnDoLogin', 'GIRIS YAP'); BtnDoLogin.Align = alTop; Form1.AddNewEvent(BtnDoLogin, tbeOnClick, 'DoLogin');</div><div>&nbsp; BtnGoToSignUp = Form1.AddNewProButton(PnlLogin, 'BtnGoToSignUp', 'HESAP OLUSTUR'); BtnGoToSignUp.Align = alTop; Form1.AddNewEvent(BtnGoToSignUp, tbeOnClick, 'ShowSignUp');</div><div><br></div><div>&nbsp; // 2. SIGNUP</div><div>&nbsp; PnlSignUp = Form1.AddNewPanel(Form1, 'PnlSignUp'); PnlSignUp.Align = alClient; PnlSignUp.Visible = False;</div><div>&nbsp; EdtSName = Form1.AddNewProEdit(PnlSignUp, 'EdtSName', 'Yeni Kullanici'); EdtSName.Align = alTop;</div><div>&nbsp; EdtSPass = Form1.AddNewProEdit(PnlSignUp, 'EdtSPass', 'Yeni Sifre'); EdtSPass.Align = alTop;</div><div>&nbsp; BtnRegister = Form1.AddNewProButton(PnlSignUp, 'BtnRegister', 'KAYIT OL'); BtnRegister.Align = alTop; Form1.AddNewEvent(BtnRegister, tbeOnClick, 'DoRegister');</div><div><br></div><div>&nbsp; // 3. WELCOME</div><div>&nbsp; PnlWelcome = Form1.AddNewPanel(Form1, 'PnlWelcome'); PnlWelcome.Align = alClient; PnlWelcome.Visible = False;</div><div>&nbsp; lblAppTitle = Form1.AddNewLabel(PnlWelcome, 'lblAppTitle', 'ClomoStock');</div><div>&nbsp; lblAppTitle.Align = alTop; lblAppTitle.Height = 50; lblAppTitle.TextSettings.Font.Size = 30;</div><div>&nbsp; lblWelcomeMsg = Form1.AddNewLabel(PnlWelcome, 'lblWelcomeMsg', '');</div><div>&nbsp; lblWelcomeMsg.Align = alTop; lblWelcomeMsg.Height = 50;</div><div>&nbsp; BtnContinue = Form1.AddNewProButton(PnlWelcome, 'BtnContinue', 'DEVAM ET');</div><div>&nbsp; BtnContinue.Align = alTop; Form1.AddNewEvent(BtnContinue, tbeOnClick, 'ShowDashboard');</div><div><br></div><div>&nbsp; // 4. DASHBOARD</div><div>&nbsp; PnlDashboard = Form1.AddNewPanel(Form1, 'PnlDashboard'); PnlDashboard.Align = alClient; PnlDashboard.Visible = False;</div><div>&nbsp; BtnGotoAddPage = Form1.AddNewProButton(PnlDashboard, 'BtnA', 'URUN GIRISI'); BtnGotoAddPage.Align = alTop; Form1.AddNewEvent(BtnGotoAddPage, tbeOnClick, 'ShowAddPage');</div><div>&nbsp; BtnGotoOutPage = Form1.AddNewProButton(PnlDashboard, 'BtnO', 'URUN CIKISI'); BtnGotoOutPage.Align = alTop; Form1.AddNewEvent(BtnGotoOutPage, tbeOnClick, 'ShowOutPage');</div><div>&nbsp; BtnGotoListPage = Form1.AddNewProButton(PnlDashboard, 'BtnL', 'STOK LISTESI'); BtnGotoListPage.Align = alTop; Form1.AddNewEvent(BtnGotoListPage, tbeOnClick, 'ShowListPage');</div><div><br></div><div>&nbsp; // 5. URUN GIRIS</div><div>&nbsp; PnlAddProduct = Form1.AddNewPanel(Form1, 'PnlAddProduct'); PnlAddProduct.Align = alClient; PnlAddProduct.Visible = False;</div><div>&nbsp; EdtAddName = Form1.AddNewProEdit(PnlAddProduct, 'EdtAN', 'Urun Adi'); EdtAddName.Align = alTop;</div><div>&nbsp; EdtAddPrice = Form1.AddNewProEdit(PnlAddProduct, 'EdtAP', 'Fiyat'); EdtAddPrice.Align = alTop;</div><div>&nbsp; EdtAddAmount = Form1.AddNewProEdit(PnlAddProduct, 'EdtAA', 'Adet'); EdtAddAmount.Align = alTop;</div><div>&nbsp; BtnSaveProduct = Form1.AddNewProButton(PnlAddProduct, 'BtnSv', 'KAYDET'); BtnSaveProduct.Align = alTop; Form1.AddNewEvent(BtnSaveProduct, tbeOnClick, 'AddNewProduct');</div><div>&nbsp; BtnBackFromAdd = Form1.AddNewProButton(PnlAddProduct, 'BtnBa', 'GERI'); BtnBackFromAdd.Align = alBottom; Form1.AddNewEvent(BtnBackFromAdd, tbeOnClick, 'ShowDashboard');</div><div><br></div><div>&nbsp; // 6. URUN CIKIS</div><div>&nbsp; PnlOutProduct = Form1.AddNewPanel(Form1, 'PnlOutProduct'); PnlOutProduct.Align = alClient; PnlOutProduct.Visible = False;</div><div>&nbsp; EdtOutName = Form1.AddNewProEdit(PnlOutProduct, 'EdtON', 'Urun Adi'); EdtOutName.Align = alTop;</div><div>&nbsp; EdtOutAmount = Form1.AddNewProEdit(PnlOutProduct, 'EdtOA', 'Adet'); EdtOutAmount.Align = alTop;</div><div>&nbsp; BtnOutProduct = Form1.AddNewProButton(PnlOutProduct, 'BtnOp', 'CIKIS YAP'); BtnOutProduct.Align = alTop; Form1.AddNewEvent(BtnOutProduct, tbeOnClick, 'SubProduct');</div><div>&nbsp; BtnBackFromOut = Form1.AddNewProButton(PnlOutProduct, 'BtnBo', 'GERI'); BtnBackFromOut.Align = alBottom; Form1.AddNewEvent(BtnBackFromOut, tbeOnClick, 'ShowDashboard');</div><div><br></div><div>&nbsp; // 7. LISTE</div><div>&nbsp; PnlListStock = Form1.AddNewPanel(Form1, 'PnlListStock'); PnlListStock.Align = alClient; PnlListStock.Visible = False;</div><div>&nbsp; EdtSearch = Form1.AddNewProEdit(PnlListStock, 'EdtSearch', 'Ara...'); EdtSearch.Align = alTop;</div><div>&nbsp; Form1.AddNewEvent(EdtSearch, tbeOnChange, 'RefreshStockList');</div><div>&nbsp; BtnBackFromList = Form1.AddNewProButton(PnlListStock, 'BtnBl', 'GERI'); BtnBackFromList.Align = alBottom; Form1.AddNewEvent(BtnBackFromList, tbeOnClick, 'ShowDashboard');</div><div><br></div><div>&nbsp; Form1.Run;</div><div>}</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516"</a> integrity="sha512-8DS7rgIrAmghBFwoOTujcf6D9rXvH8xm8JQ1Ja01h9QX8EzXldiszufYa4IFfKdLUKTTrnSFXLDkUEOTrZQ8Qg==" 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>Sat, 09 May 2026 11:39:19 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1496&amp;PID=3437#3437</guid>
  </item> 
 </channel>
</rss>