<?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 : arıza</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : arıza]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Jul 2026 20:00:10 +0000</pubDate>
  <lastBuildDate>Wed, 22 Jul 2026 18:15:30 +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=1628</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[arıza : Merhaba Kayra,&#304;lgili prosed&#252;r&#252;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1628&amp;PID=3769#3769</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> 1628<br /><strong>Gönderim Zamanı:</strong> 22&nbsp;Temmuz&nbsp;2026 Saat 18:15<br /><br />Merhaba Kayra,&nbsp;<br><br>İlgili prosedürü günceller misin&nbsp;<br><br><br><div>void OnListItemClick;</div><div>var</div><div>&nbsp; SecilenAnaMetin, SecilenAltMetin, ArananBelge: String;</div><div>&nbsp; q: TclSQLQuery;</div><div>&nbsp; KayitBulundu: Boolean;</div><div>{&nbsp;</div><div>&nbsp; SecilenAnaMetin = LsvBelgeRehber.clSelectedItemData(clCaption);</div><div>&nbsp; SecilenAltMetin = LsvBelgeRehber.clSelectedItemData(clText);</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (SecilenAnaMetin == GetText('LST_BOS'))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; RehberForm.Close;&nbsp;</div><div>&nbsp; &nbsp; Exit;</div><div>&nbsp; }</div><div><br></div><div>&nbsp; if (GlobalLookupType == 'BELGE')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_EdtBelgeNo.Text = SecilenAnaMetin;</div><div>&nbsp; &nbsp; ArananBelge = Trim(SecilenAnaMetin);</div><div>&nbsp; &nbsp; KayitBulundu = False;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ConnectToDatabase;</div><div>&nbsp; &nbsp; if (IsDBConnected)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; q = TclSQLQuery.Create(nil);</div><div>&nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; q.Connection = Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; q.SQL.Text = 'SELECT ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CONVERT(VARCHAR, HR.TARIH, 104), '''') AS TARIH, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CONVERT(VARCHAR, HR.BAS_TAR, 104), '''') AS BAS_TAR, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(HR.BAS_SAAT AS VARCHAR), '''') AS BAS_SAAT, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(HR.ACIKLAMA AS VARCHAR), '''') AS ACIKLAMA, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(HR.ACIKLAMA AS VARCHAR), '''') AS IHMAL_NEDENI, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(HR.BAKIM_BAGLANTI_ALAN AS VARCHAR), '''') AS BAGLANTI, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(M.MAKINE_KODU AS VARCHAR), '''') AS MAKINE_KODU, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(HR.BAKIM_YAPAN_OPERATOR AS VARCHAR), '''') AS OPERATOR, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(B.BAKIM_KODU AS VARCHAR), '''') AS ARIZA_KODU, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(B.BAKIM_ACIKLAMA AS VARCHAR), '''') AS ARIZA_ADI ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'FROM &#091;TBLURTBAKIMHR&#093; HR WITH (NOLOCK) ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'LEFT JOIN &#091;TBLURTMAKINESB&#093; M WITH (NOLOCK) ON HR.MAKINE_KODU_RECID = M.REC_NO ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'LEFT JOIN &#091;TBLURTBAKIMSB&#093; B WITH (NOLOCK) ON HR.BAKIM_KODU_RECID = B.REC_NO ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'WHERE LTRIM(RTRIM(HR.BELGE_NO)) = ' + Chr(39) + ArananBelge + Chr(39);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; q.Open;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (not q.Eof)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; KayitBulundu = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtTarih &lt;&gt; nil) { Arz_EdtTarih.Text = q.FieldByName('TARIH').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtMakineKodu &lt;&gt; nil) { Arz_EdtMakineKodu.Text = q.FieldByName('MAKINE_KODU').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtArizaKodu &lt;&gt; nil) { Arz_EdtArizaKodu.Text = q.FieldByName('ARIZA_KODU').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtBaglanti &lt;&gt; nil) { Arz_EdtBaglanti.Text = q.FieldByName('BAGLANTI').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtBaslangic &lt;&gt; nil) { Arz_EdtBaslangic.Text = q.FieldByName('BAS_TAR').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtBaslangicSaat &lt;&gt; nil) { Arz_EdtBaslangicSaat.Text = q.FieldByName('BAS_SAAT').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtGirisZamani &lt;&gt; nil) { Arz_EdtGirisZamani.Text = q.FieldByName('BAS_TAR').AsString + ' ' + q.FieldByName('BAS_SAAT').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtOperator &lt;&gt; nil) { Arz_EdtOperator.Text = q.FieldByName('OPERATOR').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtAciklama &lt;&gt; nil) { Arz_EdtAciklama.Text = q.FieldByName('ACIKLAMA').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_MemBakimIhmal &lt;&gt; nil) { Arz_MemBakimIhmal.Text = q.FieldByName('IHMAL_NEDENI').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (AT_EdtKod &lt;&gt; nil) { AT_EdtKod.Text = q.FieldByName('ARIZA_KODU').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (AT_EdtAd &lt;&gt; nil) { AT_EdtAd.Text = q.FieldByName('ARIZA_ADI').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (not KayitBulundu)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; q.Close;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; q.SQL.Text = 'SELECT ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CONVERT(VARCHAR, HR.TARIH, 104), '''') AS TARIH, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CONVERT(VARCHAR, HR.ARIZA_BAS_TAR, 104), '''') AS BAS_TAR, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(HR.ARIZA_BAS_SAAT AS VARCHAR), '''') AS BAS_SAAT, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(HR.ARIZA_ACIKLAMA AS VARCHAR), '''') AS ACIKLAMA, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(HR.ARIZA_ACIKLAMA AS VARCHAR), '''') AS IHMAL_NEDENI, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(AZ.ARIZA_KODU AS VARCHAR), '''') AS ARIZA_KODU, ' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(AZ.ARIZA_TIPI AS VARCHAR), '''') AS ARIZA_TIPI, ' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(AZ.ARIZA_ADI AS VARCHAR), '''') AS ARIZA_ADI, ' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(M.MAKINE_KODU AS VARCHAR), '''') AS MAKINE_KODU, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(OP.OPERATOR_KODU AS VARCHAR), '''') AS OPERATOR ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'FROM &#091;TBLURTBAKIMARIZAHR&#093; HR WITH (NOLOCK) ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'LEFT JOIN &#091;TBLURTMAKINESB&#093; M WITH (NOLOCK) ON HR.MAKINE_KODU_RECID = M.REC_NO ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'LEFT JOIN &#091;TBLURTOPERATORSB&#093; OP WITH (NOLOCK) ON HR.OPERATOR_KODU_RECID = OP.REC_NO ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'LEFT JOIN &#091;TBLURTBAKIMARIZATIP&#093; AZ WITH (NOLOCK) ON HR.ARIZATIP_KODU_RECID = AZ.REC_NO ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'WHERE LTRIM(RTRIM(HR.BELGE_NO)) = ' + Chr(39) + ArananBelge + Chr(39);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; q.Open;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (not q.Eof)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; KayitBulundu = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtTarih &lt;&gt; nil) { Arz_EdtTarih.Text = q.FieldByName('TARIH').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtMakineKodu &lt;&gt; nil) { Arz_EdtMakineKodu.Text = q.FieldByName('MAKINE_KODU').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtArizaKodu &lt;&gt; nil) { Arz_EdtArizaKodu.Text = q.FieldByName('ARIZA_KODU').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtBaslangic &lt;&gt; nil) { Arz_EdtBaslangic.Text = q.FieldByName('BAS_TAR').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtBaslangicSaat &lt;&gt; nil) { Arz_EdtBaslangicSaat.Text = q.FieldByName('BAS_SAAT').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtGirisZamani &lt;&gt; nil) { Arz_EdtGirisZamani.Text = q.FieldByName('BAS_TAR').AsString + ' ' + q.FieldByName('BAS_SAAT').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtOperator &lt;&gt; nil) { Arz_EdtOperator.Text = q.FieldByName('OPERATOR').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtAciklama &lt;&gt; nil) { Arz_EdtAciklama.Text = q.FieldByName('ACIKLAMA').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_MemBakimIhmal &lt;&gt; nil) { Arz_MemBakimIhmal.Text = q.FieldByName('IHMAL_NEDENI').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (AT_EdtKod &lt;&gt; nil) { AT_EdtKod.Text = q.FieldByName('ARIZA_KODU').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (AT_EdtAd &lt;&gt; nil) { AT_EdtAd.Text = q.FieldByName('ARIZA_ADI').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (AT_CmbTip &lt;&gt; nil) { SafeSetCombo(AT_CmbTip, q.FieldByName('ARIZA_TIPI').AsString); }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (not KayitBulundu)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Aranan Belge No: "' + ArananBelge + '" ne Bakım ne de Arıza veritabanında bulunamadı.');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; finally</div><div>&nbsp; &nbsp; &nbsp; &nbsp; q.Free;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else if (GlobalLookupType == 'ARIZA')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_EdtArizaKodu.Text = SecilenAnaMetin;</div><div>&nbsp; &nbsp; if (AT_EdtKod &lt;&gt; nil) { AT_EdtKod.Text = SecilenAnaMetin; }</div><div>&nbsp; &nbsp; if ((SecilenAltMetin &lt;&gt; '') &amp;&amp; (AT_EdtAd &lt;&gt; nil)) { AT_EdtAd.Text = SecilenAltMetin; }</div><div>&nbsp; }</div><div>&nbsp; else if (GlobalLookupType == 'MAKINE')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_EdtMakineKodu.Text = SecilenAnaMetin;</div><div>&nbsp; }</div><div>&nbsp; else if (GlobalLookupType == 'BAGLANTI')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_EdtBaglanti.Text = SecilenAnaMetin;</div><div>&nbsp; }</div><div>&nbsp; else if (GlobalLookupType == 'OPERATOR')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_EdtOperator.Text = SecilenAnaMetin;&nbsp;</div><div>&nbsp; }</div><div><br></div><div>&nbsp; RehberForm.Close;</div><div>}</div><div><br></div><div><br></div><div><br></div><div><br></div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496"</a> integrity="sha512-ZE9pZaUXND66v380QUtch/5sE9tPFh2zg45pR2PB0CVkCtOREv2AJKkSidISWkysEuQ0EH8faUU5du78bx87UQ==" 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>Wed, 22 Jul 2026 18:15:30 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1628&amp;PID=3769#3769</guid>
  </item> 
  <item>
   <title><![CDATA[arıza : var FormMain: TclGameForm; RehberForm,...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1628&amp;PID=3768#3768</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=480">kayra22</a><br /><strong>Konu:</strong> 1628<br /><strong>Gönderim Zamanı:</strong> 22&nbsp;Temmuz&nbsp;2026 Saat 17:22<br /><br /><div><br></div><div><br></div><div>var</div><div>&nbsp; FormMain: TclGameForm;</div><div>&nbsp; RehberForm, DetayForm: TclForm;&nbsp;</div><div>&nbsp; PnlNavBar, PnlHeaderTop, PnlMainCard, PnlArizaTanimlari: TclProPanel;</div><div>&nbsp; PnlBottomNav: TclProPanel;</div><div>&nbsp; BtnNav1, BtnNav2: TclProButton;</div><div>&nbsp; BtnScroll: TclHorzScrollBox;</div><div>&nbsp; ScrollForm: TclVertScrollBox;</div><div>&nbsp; LblNavTitle, LblSect1, LblGridTitle, LblPhotoTitle: TClProLabel;</div><div>&nbsp; BtnGeri, BtnYeni, BtnKaydet, BtnResimCek: TClProButton;</div><div>&nbsp; Arz_BtnRehberBelge, Arz_BtnRehberAriza, Arz_BtnRehberMakine, Arz_BtnRehberBaglanti, Arz_BtnRehberOperator: TClProButton;&nbsp;</div><div>&nbsp; Arz_GrpBelgeNo, Arz_GrpTarih, Arz_GrpArizaKodu, Arz_GrpMakineKodu, Arz_GrpBaglanti: TclProPanel;</div><div>&nbsp; Arz_GrpBaslangic, Arz_GrpGirisZamani, Arz_GrpPlanlananBitis, Arz_GrpKisiSayisi, Arz_GrpOperator, Arz_GrpAciklama: TclProPanel;</div><div>&nbsp; Arz_LblBelgeNo, Arz_LblTarih, Arz_LblArizaKodu, Arz_LblMakineKodu, Arz_LblBaglanti: TClProLabel;</div><div>&nbsp; Arz_LblBaslangic, Arz_LblGirisZamani, Arz_LblPlanlananBitis, Arz_LblKisiSayisi, Arz_LblOperator, Arz_LblAciklama: TClProLabel;</div><div>&nbsp; Arz_EdtBelgeNo, Arz_EdtTarih, Arz_EdtArizaKodu, Arz_EdtMakineKodu, Arz_EdtBaglanti: TclProEdit;</div><div>&nbsp; Arz_EdtBaslangic, Arz_EdtBaslangicSaat, Arz_EdtGirisZamani, Arz_EdtKisiSayisi, Arz_EdtOperator, Arz_EdtAciklama, EdtRehberArama: TclProEdit;</div><div>&nbsp; Arz_CmbPlanlananBitis: TclComboBox;</div><div>&nbsp; Arz_PnlBakimIhmalKutu, Arz_PnlPhotoKutu: TclProPanel;</div><div>&nbsp; Arz_LblBakimIhmal: TClProLabel;</div><div>&nbsp; Arz_MemBakimIhmal: TclMemo;</div><div>&nbsp; LsvBelgeRehber: TClProListView;&nbsp;</div><div>&nbsp; clProGrid: TCLProGrid;</div><div>&nbsp; Arz_ImgPhoto: TclImage;</div><div>&nbsp; Arz_BelgeNo, Arz_MakineArr, Arz_BakimIhmalArr, Arz_BasTarih, Arz_BasSaat, Arz_BitTarih, Arz_ArizaDurum, Arz_KayitTarih: array &#091;0..50&#093; of String;</div><div>&nbsp; Arz_ArzKodArr, Arz_BaglantiArr, Arz_KisiSayisiArr, Arz_OperatorArr, Arz_AciklamaArr: array &#091;0..50&#093; of String;</div><div>&nbsp; Arz_ArizaCount, TmpIndeks, SeciliKayitIndeks: Integer;</div><div>&nbsp; Arz_ArizaJson: String;</div><div>&nbsp; UiFontSize: Integer;</div><div>&nbsp; OkunanFontAdi: String;</div><div>&nbsp; ThemeKoyuRenk, ThemeAcikRenk: String;</div><div>&nbsp; ThemeBgColor, ThemeBorderColor, ThemeTextColor: String;</div><div>&nbsp; GlobalLookupType: String;&nbsp;</div><div>&nbsp; RehberJsonData: TclJsonQuery;</div><div>&nbsp; gAktifDilIndex: Integer;</div><div>&nbsp; gBaglantiDenendi: Integer;</div><div>&nbsp; IsDBConnected: Boolean;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Arıza Tanım Formu Değişkenleri</div><div>&nbsp; AT_PnlMain, AT_PnlInputs, AT_PnlRight, AT_PnlRow1, AT_PnlRow2, AT_PnlRow3, AT_PnlGridHeader: TclProPanel;</div><div>&nbsp; AT_LblKod, AT_LblTip, AT_LblAd: TClProLabel;</div><div>&nbsp; AT_EdtKod, AT_EdtAd: TclProEdit;</div><div>&nbsp; AT_CmbTip: TclComboBox;</div><div>&nbsp; AT_BtnAra: TClProButton;</div><div>&nbsp; AT_LblColKodu, AT_LblColTipi, AT_LblColAd: TClProLabel;</div><div>&nbsp; AT_LsvListe: TClProListView;</div><div>&nbsp; AT_LsvDP: TClProListViewDesignerPanel;</div><div>&nbsp; AT_LblDPKodu, AT_LblDPTipi, AT_LblDPAd: TClProLabel;</div><div><br></div><div>void ConnectToDatabase;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLServerConnect('SQL Server','192.168.1.39','sa','1','ATIKER_YAZILIM',50000);</div><div>&nbsp; &nbsp; IsDBConnected = True;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; IsDBConnected = False;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function TemizleJSON(Metin: String): String;</div><div>var</div><div>&nbsp; i: Integer;</div><div>&nbsp; c, YeniMetin: String;</div><div>{</div><div>&nbsp; YeniMetin = '';</div><div>&nbsp; for (i = 1 to Length(Metin))&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; c = Copy(Metin, i, 1);</div><div>&nbsp; &nbsp; if (c == Chr(34)) { c = ''; }&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; else if (c == Chr(92)) { c = '-'; }&nbsp;</div><div>&nbsp; &nbsp; else if (c == Chr(13)) { c = ' '; }&nbsp;</div><div>&nbsp; &nbsp; else if (c == Chr(10)) { c = ''; }&nbsp;&nbsp;</div><div>&nbsp; &nbsp; YeniMetin = YeniMetin + c;</div><div>&nbsp; }</div><div>&nbsp; Result = YeniMetin;</div><div>}</div><div><br></div><div>void SafeSetCombo(ACmb: TClComboBox; AValue: String);</div><div>var&nbsp;</div><div>&nbsp; i, idx: Integer;</div><div>{</div><div>&nbsp; if (AValue == '') { Exit; }</div><div>&nbsp; idx = -1;</div><div>&nbsp; for (i = 0 to ACmb.Items.Count - 1) {</div><div>&nbsp; &nbsp; if (ACmb.Items<em> == AValue) { idx = i; Break; }</div><div>&nbsp; }</div><div>&nbsp; if (idx == -1) {</div><div>&nbsp; &nbsp; ACmb.AddItem(AValue, AValue);</div><div>&nbsp; &nbsp; idx = ACmb.Items.Count - 1;</div><div>&nbsp; }</div><div>&nbsp; ACmb.ItemIndex = idx;</div><div>}</div><div><br></div><div>void OnKeyboardShow;</div><div>{</div><div>&nbsp; ScrollForm.Margins.Bottom = FormMain.clVKBoundsHeight;</div><div>}</div><div><br></div><div>void OnKeyboardHide;</div><div>{</div><div>&nbsp; ScrollForm.Margins.Bottom = 0;</div><div>}</div><div><br></div><div>function GetText(Key: String): String;</div><div>{</div><div>&nbsp; Result = Key;</div><div>&nbsp; if (gAktifDilIndex == 1) // ENGLISH</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; if (Key == 'NAV_TITLE') { Result = 'Fault Movements'; }</div><div>&nbsp; &nbsp; else if (Key == 'YENI') { Result = 'New'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'KAYDET') { Result = 'Save'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'SECT1') { Result = '1. GENERAL INFO'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'SECT2') { Result = '2. MOVEMENT LIST'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'SECT3') { Result = '3. VISUALS'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'SECT4') { Result = '4. Reason for Failure (Required)'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BELGE_NO') { Result = 'Doc No:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'TARIH') { Result = 'Date:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BAKIM_TIPI') { Result = 'Maint. Type:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BAKIM_TURU') { Result = 'Maint. Category:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BAKIM_KODU') { Result = 'Maint. Code:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'MAKINE_KODU') { Result = 'Machine Code:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BAGLANTI') { Result = 'Connection:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'CARI_KODU') { Result = 'Current Code:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BASLANGIC') { Result = 'Start Date/Time:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'GIRIS_ZAMANI') { Result = 'Entry Time:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'PLANLANAN') { Result = 'Planned End Time:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'KISI_SAYISI') { Result = 'Headcount:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'OPERATOR') { Result = 'Operator in Charge:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ACIKLAMA') { Result = 'Description:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'KAMERA') { Result = 'Open Camera'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'LST_BOS') { Result = 'No materials in the list'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ARA_BELGE') { Result = 'Search Document...'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ARA_BAKIM') { Result = 'Search Maint. Code...'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ARA_BAGLANTI') { Result = 'Search Connection...'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ARA_CARI') { Result = 'Search Current Code...'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ARA_MAKINE') { Result = 'Search Machine Code...'; }</div><div>&nbsp; &nbsp; else if (Key == 'ARIZA_KODU') { Result = 'Fault Code:'; }</div><div>&nbsp; &nbsp; else if (Key == 'ARA_ARIZA') { Result = 'Search Fault Code...'; }</div><div>&nbsp; &nbsp; else if (Key == 'ARA_OPERATOR') { Result = 'Search Operator...'; }</div><div>&nbsp; &nbsp; else if (Key == 'KAYDEDILDI') { Result = 'Saved'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'TAMAMLANDI') { Result = 'Completed'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_SEC') { Result = 'Select'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_BELGE_NO') { Result = 'Doc No'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_TARIH') { Result = 'Date'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_OPERATOR') { Result = 'Operator'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_MAKINE') { Result = 'Machine Code'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_ARIZA') { Result = 'Fault Code'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_BAS_TARIH') { Result = 'Start Date'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_BIT_TARIH') { Result = 'End Type'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_BAS_SAAT') { Result = 'Start Time'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_ACIKLAMA') { Result = 'Description'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_IHMAL') { Result = 'Neglect/Desc'; }</div><div>&nbsp; &nbsp; else if (Key == 'DETAY_TITLE') { Result = ' Details'; }</div><div>&nbsp; &nbsp; else if (Key == 'DETAY_BASLANGIC') { Result = 'Start:'; }</div><div>&nbsp; &nbsp; else if (Key == 'BITIS_TURU') { Result = 'End Type:'; }</div><div>&nbsp; &nbsp; else if (Key == 'YAPILAMAMA_NEDENI') { Result = 'Reason for Failure:'; }</div><div>&nbsp; &nbsp; else if (Key == 'KAPAT') { Result = 'Close'; }</div><div>&nbsp; &nbsp; else if (Key == 'ARA_GENEL') { Result = 'Search...'; }</div><div>&nbsp; }&nbsp;</div><div>&nbsp; else // TURKISH</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; if (Key == 'NAV_TITLE') { Result = 'Arıza Hareketleri'; }</div><div>&nbsp; &nbsp; else if (Key == 'YENI') { Result = 'Yeni'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'KAYDET') { Result = 'Kaydet'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'SECT1') { Result = '1. GENEL BİLGİLER'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'SECT2') { Result = '2. HAREKET LİSTESİ'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'SECT3') { Result = '3. GÖRSEL'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'SECT4') { Result = '4. Neden Bakım Yapılamadı? (Zorunlu)'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BELGE_NO') { Result = 'Belge No:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'TARIH') { Result = 'Tarih:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BAKIM_TIPI') { Result = 'Bakım Tipi:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BAKIM_TURU') { Result = 'Bakım Türü:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BAKIM_KODU') { Result = 'Bakım Kodu:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'MAKINE_KODU') { Result = 'Makine Kodu:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BAGLANTI') { Result = 'Bakım Bağlantısı:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'CARI_KODU') { Result = 'Bakım Cari Kodu:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'BASLANGIC') { Result = 'Başlangıç Trh/Saat:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'GIRIS_ZAMANI') { Result = 'Giriş Zamanı:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'PLANLANAN') { Result = 'Planlanan Bitiş Süresi:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'KISI_SAYISI') { Result = 'Kişi Sayısı:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'OPERATOR') { Result = 'Sorumlu Operatör:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ACIKLAMA') { Result = 'Genel Açıklama:'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'KAMERA') { Result = 'Kamera / Galeri Aç'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'LST_BOS') { Result = 'Listede malzeme yok'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ARA_BELGE') { Result = 'Belge Ara...'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ARA_BAKIM') { Result = 'Bakım Kodu Ara...'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ARA_BAGLANTI') { Result = 'Bağlantı Ara...'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ARA_CARI') { Result = 'Cari Kodu Ara...'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'ARA_MAKINE') { Result = 'Makine Kodu Ara...'; }</div><div>&nbsp; &nbsp; else if (Key == 'ARIZA_KODU') { Result = 'Ariza Kodu:'; }</div><div>&nbsp; &nbsp; else if (Key == 'ARA_ARIZA') { Result = 'Ariza Kodu Ara...'; }</div><div>&nbsp; &nbsp; else if (Key == 'ARA_OPERATOR') { Result = 'Operator Ara...'; }</div><div>&nbsp; &nbsp; else if (Key == 'KAYDEDILDI') { Result = 'Kaydedildi'; }&nbsp;</div><div>&nbsp; &nbsp; else if (Key == 'TAMAMLANDI') { Result = 'Tamamlandi'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_SEC') { Result = 'Seç'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_BELGE_NO') { Result = 'Belge No'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_TARIH') { Result = 'Tarih'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_OPERATOR') { Result = 'Operator'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_MAKINE') { Result = 'Makine Kodu'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_ARIZA') { Result = 'Arıza Kodu'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_BAS_TARIH') { Result = 'Baş. Tarih'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_BIT_TARIH') { Result = 'Bitiş Türü'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_BAS_SAAT') { Result = 'Baş. Saat'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_ACIKLAMA') { Result = 'Açıklama'; }</div><div>&nbsp; &nbsp; else if (Key == 'GRID_IHMAL') { Result = 'İhmal/Açıklama'; }</div><div>&nbsp; &nbsp; else if (Key == 'DETAY_TITLE') { Result = ' Detayı'; }</div><div>&nbsp; &nbsp; else if (Key == 'DETAY_BASLANGIC') { Result = 'Başlangıç:'; }</div><div>&nbsp; &nbsp; else if (Key == 'BITIS_TURU') { Result = 'Bitiş Türü:'; }</div><div>&nbsp; &nbsp; else if (Key == 'YAPILAMAMA_NEDENI') { Result = 'Yapılamama Nedeni:'; }</div><div>&nbsp; &nbsp; else if (Key == 'KAPAT') { Result = 'Kapat'; }</div><div>&nbsp; &nbsp; else if (Key == 'ARA_GENEL') { Result = 'Ara...'; }</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void AyarlariYukle;</div><div>var</div><div>&nbsp; OkunanDosyaYolu, TemaKodu, tmpStr : String;</div><div>&nbsp; YuklenenAyarlar: TclStringList;</div><div>&nbsp; OkunanBoyutIndex: Integer;</div><div>{</div><div>&nbsp; UiFontSize = 14;&nbsp;</div><div>&nbsp; OkunanFontAdi = 'Arial';</div><div>&nbsp; gAktifDilIndex = 0;&nbsp;</div><div><br></div><div>&nbsp; ThemeBgColor = '#EEF0F2';&nbsp;</div><div>&nbsp; ThemeBorderColor = '#D7DBE0';&nbsp;</div><div>&nbsp; ThemeTextColor = '#3A3F47';</div><div>&nbsp; ThemeKoyuRenk = '#2F4A63';&nbsp;</div><div>&nbsp; ThemeAcikRenk = '#4A7FB5';&nbsp;</div><div><br></div><div>&nbsp; OkunanDosyaYolu = clPathCombine('UygulamaAyarlari_V3.txt', Clomosy.AppFilesPath);</div><div>&nbsp; if (clFileExists(OkunanDosyaYolu, ''))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; YuklenenAyarlar = Clomosy.StringListNew;</div><div>&nbsp; &nbsp; YuklenenAyarlar.LoadFromFile(OkunanDosyaYolu, 0);</div><div>&nbsp; &nbsp; if (YuklenenAyarlar.Count &gt;= 3)&nbsp;</div><div>&nbsp; &nbsp; {&nbsp;</div><div>&nbsp; &nbsp; &nbsp; TemaKodu = Clomosy.StringListItemString(YuklenenAyarlar, 0);</div><div>&nbsp; &nbsp; &nbsp; if (TemaKodu == '') { TemaKodu = '0'; }</div><div>&nbsp; &nbsp; &nbsp; tmpStr = Clomosy.StringListItemString(YuklenenAyarlar, 1);</div><div>&nbsp; &nbsp; &nbsp; if (tmpStr &lt;&gt; '')</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; OkunanBoyutIndex = StrToInt(tmpStr);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (OkunanBoyutIndex == 0) { UiFontSize = 14; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else if (OkunanBoyutIndex == 1) { UiFontSize = 16; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else if (OkunanBoyutIndex == 2) { UiFontSize = 18; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; tmpStr = Clomosy.StringListItemString(YuklenenAyarlar, 2);</div><div>&nbsp; &nbsp; &nbsp; if (tmpStr &lt;&gt; '') { gAktifDilIndex = StrToInt(tmpStr); }</div><div>&nbsp; &nbsp; &nbsp; if (YuklenenAyarlar.Count &gt;= 6)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; tmpStr = Clomosy.StringListItemString(YuklenenAyarlar, 5);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (tmpStr &lt;&gt; '') { OkunanFontAdi = tmpStr; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; YuklenenAyarlar.Free;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (TemaKodu == '1') { ThemeKoyuRenk = '#111827'; ThemeAcikRenk = '#2563EB'; }&nbsp;</div><div>&nbsp; else if (TemaKodu == '2') { ThemeKoyuRenk = '#0F172A'; ThemeAcikRenk = '#0EA5E9'; }&nbsp;</div><div>&nbsp; else if (TemaKodu == '3') { ThemeKoyuRenk = '#14532D'; ThemeAcikRenk = '#22C55E'; }&nbsp;</div><div>&nbsp; else if (TemaKodu == '4') { ThemeKoyuRenk = '#312E81'; ThemeAcikRenk = '#8B5CF6'; }&nbsp;</div><div>&nbsp; else if (TemaKodu == '5') { ThemeKoyuRenk = '#78350F'; ThemeAcikRenk = '#F59E0B'; }&nbsp;</div><div>&nbsp; else if (TemaKodu == '6') { ThemeKoyuRenk = '#7F1D1D'; ThemeAcikRenk = '#EF4444'; }&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; FormMain.SetFormColor(ThemeBgColor, ThemeBgColor, clGVertical);</div><div>}</div><div><br></div><div>void StyleMainCard(APanel: TclProPanel);&nbsp;</div><div>{&nbsp;</div><div>&nbsp; APanel.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#FFFFFF');&nbsp;</div><div>&nbsp; APanel.clProSettings.BorderColor = clAlphaColor.clHexToColor(ThemeBorderColor);&nbsp;</div><div>&nbsp; APanel.clProSettings.BorderWidth = 1;</div><div>&nbsp; APanel.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; APanel.clProSettings.IsRound = True;&nbsp;</div><div>&nbsp; APanel.clProSettings.RoundHeight = 10;&nbsp;</div><div>&nbsp; APanel.clProSettings.RoundWidth = 10;&nbsp;</div><div>&nbsp; APanel.SetclProSettings(APanel.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StyleHeaderBar(APanel: TclProPanel);&nbsp;</div><div>{&nbsp;</div><div>&nbsp; APanel.clProSettings.BackgroundColor = clAlphaColor.clHexToColor(ThemeKoyuRenk);</div><div>&nbsp; APanel.clProSettings.BorderWidth = 0;&nbsp;</div><div>&nbsp; APanel.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; APanel.SetclProSettings(APanel.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StyleWhiteButton(AButton: TClProButton);</div><div>{&nbsp;</div><div>&nbsp; AButton.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#35618f');&nbsp;</div><div>&nbsp; AButton.clProSettings.FontColor = clAlphaColor.clWhite;&nbsp;</div><div>&nbsp; AButton.clProSettings.BorderWidth = 0;&nbsp;</div><div>&nbsp; AButton.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; AButton.clProSettings.IsRound = True;&nbsp;</div><div>&nbsp; AButton.clProSettings.RoundHeight = 8;</div><div>&nbsp; AButton.clProSettings.RoundWidth = 8;&nbsp;</div><div>&nbsp; AButton.clProSettings.FontSize = UiFontSize;&nbsp;</div><div>&nbsp; AButton.clProSettings.FontName = OkunanFontAdi;&nbsp;</div><div>&nbsp; AButton.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;&nbsp;</div><div>&nbsp; AButton.SetclProSettings(AButton.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StylePrimaryButton(AButton: TClProButton);&nbsp;</div><div>{&nbsp;</div><div>&nbsp; AButton.clProSettings.BackgroundColor = clAlphaColor.clHexToColor(ThemeAcikRenk);&nbsp;</div><div>&nbsp; AButton.clProSettings.FontColor = clAlphaColor.clWhite;&nbsp;</div><div>&nbsp; AButton.clProSettings.BorderColor = clAlphaColor.clHexToColor(ThemeAcikRenk);</div><div>&nbsp; AButton.clProSettings.BorderWidth = 1;&nbsp;</div><div>&nbsp; AButton.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; AButton.clProSettings.IsRound = True;&nbsp;</div><div>&nbsp; AButton.clProSettings.RoundHeight = 8;&nbsp;</div><div>&nbsp; AButton.clProSettings.RoundWidth = 8;&nbsp;</div><div>&nbsp; AButton.clProSettings.FontSize = UiFontSize;</div><div>&nbsp; AButton.clProSettings.FontName = OkunanFontAdi;&nbsp;</div><div>&nbsp; AButton.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;&nbsp;</div><div>&nbsp; AButton.SetclProSettings(AButton.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StyleRehberButton(AButton: TClProButton);&nbsp;</div><div>{&nbsp;</div><div>&nbsp; AButton.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#F1F5F9');&nbsp;</div><div>&nbsp; AButton.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor);&nbsp;</div><div>&nbsp; AButton.clProSettings.BorderColor = clAlphaColor.clHexToColor('#94A3B8');</div><div>&nbsp; AButton.clProSettings.BorderWidth = 1;&nbsp;</div><div>&nbsp; AButton.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; AButton.clProSettings.IsRound = True;&nbsp;</div><div>&nbsp; AButton.clProSettings.RoundHeight = 8;&nbsp;</div><div>&nbsp; AButton.clProSettings.RoundWidth = 8;&nbsp;</div><div>&nbsp; AButton.clProSettings.FontSize = UiFontSize;</div><div>&nbsp; AButton.clProSettings.FontName = OkunanFontAdi;&nbsp;</div><div>&nbsp; AButton.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;&nbsp;</div><div>&nbsp; AButton.SetclProSettings(AButton.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StyleInputPanel(APanel: TclProPanel);&nbsp;</div><div>{&nbsp;</div><div>&nbsp; APanel.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#FFFFFF');&nbsp;</div><div>&nbsp; APanel.clProSettings.BorderColor = clAlphaColor.clNull;&nbsp;</div><div>&nbsp; APanel.clProSettings.BorderWidth = 0;&nbsp;</div><div>&nbsp; APanel.clProSettings.IsFill = True;</div><div>&nbsp; APanel.SetclProSettings(APanel.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StyleInputLabel(ALabel: TClProLabel);&nbsp;</div><div>{&nbsp;</div><div>&nbsp; ALabel.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor);&nbsp;</div><div>&nbsp; ALabel.clProSettings.FontSize = UiFontSize;</div><div>&nbsp; ALabel.clProSettings.FontName = OkunanFontAdi;&nbsp;</div><div>&nbsp; ALabel.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;&nbsp;</div><div>&nbsp; ALabel.SetclProSettings(ALabel.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StyleInputEdit(AEdit: TclProEdit);&nbsp;</div><div>{&nbsp;</div><div>&nbsp; AEdit.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor);</div><div>&nbsp; AEdit.clProSettings.BorderColor = clAlphaColor.clHexToColor(ThemeBorderColor);&nbsp;</div><div>&nbsp; AEdit.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#FFFFFF');&nbsp;</div><div>&nbsp; AEdit.clProSettings.BorderWidth = 1;&nbsp;</div><div>&nbsp; AEdit.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; AEdit.clProSettings.IsRound = True;&nbsp;</div><div>&nbsp; AEdit.clProSettings.RoundHeight = 8;</div><div>&nbsp; AEdit.clProSettings.RoundWidth = 8;&nbsp;</div><div>&nbsp; AEdit.clProSettings.FontSize = UiFontSize;&nbsp;</div><div>&nbsp; AEdit.clProSettings.FontName = OkunanFontAdi;&nbsp;</div><div>&nbsp; AEdit.SetclProSettings(AEdit.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StyleReadonlyEdit(AEdit: TclProEdit);&nbsp;</div><div>{&nbsp;</div><div>&nbsp; AEdit.clProSettings.FontColor = clAlphaColor.clHexToColor('#0F172A');</div><div>&nbsp; AEdit.clProSettings.BorderColor = clAlphaColor.clHexToColor('#94A3B8');&nbsp;</div><div>&nbsp; AEdit.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#F8FAFC');</div><div>&nbsp; AEdit.clProSettings.BorderWidth = 1;&nbsp;</div><div>&nbsp; AEdit.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; AEdit.clProSettings.IsRound = True;&nbsp;</div><div>&nbsp; AEdit.clProSettings.RoundHeight = 8;</div><div>&nbsp; AEdit.clProSettings.RoundWidth = 8;&nbsp;</div><div>&nbsp; AEdit.clProSettings.FontSize = UiFontSize;&nbsp;</div><div>&nbsp; AEdit.clProSettings.FontName = OkunanFontAdi;&nbsp;</div><div>&nbsp; AEdit.SetclProSettings(AEdit.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StyleSectionTitle(ALabel: TClProLabel);&nbsp;</div><div>{&nbsp;</div><div>&nbsp; ALabel.clProSettings.FontColor = clAlphaColor.clHexToColor('#35618F');&nbsp;</div><div>&nbsp; ALabel.clProSettings.FontSize = UiFontSize + 1;&nbsp;</div><div>&nbsp; ALabel.clProSettings.FontName = OkunanFontAdi;&nbsp;</div><div>&nbsp; ALabel.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;&nbsp;</div><div>&nbsp; ALabel.SetclProSettings(ALabel.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StyleMalzemeBaslik(ALabel: TClProLabel);</div><div>{</div><div>&nbsp; ALabel.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor);</div><div>&nbsp; ALabel.clProSettings.FontSize = UiFontSize + 1;</div><div>&nbsp; ALabel.clProSettings.FontName = OkunanFontAdi;</div><div>&nbsp; ALabel.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; ALabel.SetclProSettings(ALabel.clProSettings);</div><div>}</div><div><br></div><div>void StyleInputFocus;&nbsp;</div><div>var FocusEdit: TclProEdit;&nbsp;</div><div>{&nbsp;</div><div>&nbsp; FocusEdit = TclProEdit(FormMain.ClSender);&nbsp;</div><div>&nbsp; FocusEdit.clProSettings.BorderColor = clAlphaColor.clHexToColor(ThemeAcikRenk);&nbsp;</div><div>&nbsp; FocusEdit.clProSettings.BorderWidth = 2;&nbsp;</div><div>&nbsp; FocusEdit.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#EFF6FF');&nbsp;</div><div>&nbsp; FocusEdit.SetclProSettings(FocusEdit.clProSettings);&nbsp;</div><div>}</div><div><br></div><div>void StyleInputBlur;&nbsp;</div><div>var BlurEdit: TclProEdit;&nbsp;</div><div>{&nbsp;</div><div>&nbsp; BlurEdit = TclProEdit(FormMain.ClSender);&nbsp;</div><div>&nbsp; StyleInputEdit(BlurEdit);&nbsp;</div><div>}</div><div><br></div><div>void BindInputFocus(AEdit: TclProEdit);&nbsp;</div><div>{&nbsp;</div><div>&nbsp; FormMain.AddNewEvent(AEdit, tbeOnEnter, 'StyleInputFocus');&nbsp;</div><div>&nbsp; FormMain.AddNewEvent(AEdit, tbeOnExit, 'StyleInputBlur');&nbsp;</div><div>}</div><div><br></div><div>void KlvKisiSayisi;</div><div>{</div><div>&nbsp; ScrollForm.ScrollTo(0, 10000);</div><div>&nbsp; ScrollForm.ScrollTo(0, -420);&nbsp;</div><div>}</div><div><br></div><div>void KlvAciklama;</div><div>{</div><div>&nbsp; ScrollForm.ScrollTo(0, 10000);</div><div>&nbsp; ScrollForm.ScrollTo(0, -587);&nbsp;</div><div>}</div><div><br></div><div>void KlvBakimIhmal;</div><div>{</div><div>&nbsp; ScrollForm.ScrollTo(0, 10000);</div><div>&nbsp; ScrollForm.ScrollTo(0, -50000);&nbsp;</div><div>}</div><div><br></div><div>void ApplyUiSettings;</div><div>{</div><div>&nbsp; LblNavTitle.Text = GetText('NAV_TITLE');</div><div>&nbsp; BtnYeni.Text = GetText('YENI');</div><div>&nbsp; BtnKaydet.Text = GetText('KAYDET');</div><div>&nbsp;&nbsp;</div><div>&nbsp; LblSect1.Text = GetText('SECT1');</div><div>&nbsp; LblGridTitle.Text = GetText('SECT2');</div><div>&nbsp; LblPhotoTitle.Text = GetText('SECT3');</div><div>&nbsp; Arz_LblBakimIhmal.Text = GetText('SECT4');</div><div>&nbsp;&nbsp;</div><div>&nbsp; Arz_LblBelgeNo.Text = GetText('BELGE_NO');</div><div>&nbsp; Arz_LblTarih.Text = GetText('TARIH');</div><div>&nbsp; Arz_LblArizaKodu.Text = GetText('ARIZA_KODU');&nbsp;</div><div>&nbsp; Arz_LblMakineKodu.Text = GetText('MAKINE_KODU');</div><div>&nbsp; Arz_LblBaglanti.Text = GetText('BAGLANTI');</div><div>&nbsp; Arz_LblBaslangic.Text = GetText('BASLANGIC');</div><div>&nbsp; Arz_LblGirisZamani.Text = GetText('GIRIS_ZAMANI');</div><div>&nbsp; Arz_LblPlanlananBitis.Text = GetText('PLANLANAN');</div><div>&nbsp; Arz_LblKisiSayisi.Text = GetText('KISI_SAYISI');</div><div>&nbsp; Arz_LblOperator.Text = GetText('OPERATOR');</div><div>&nbsp; Arz_LblAciklama.Text = GetText('ACIKLAMA');</div><div>&nbsp;&nbsp;</div><div>&nbsp; BtnResimCek.Text = GetText('KAMERA');</div><div><br></div><div>&nbsp; Arz_EdtBelgeNo.TextPrompt = '&#128269; Seçmek için dokunun...';</div><div>&nbsp; Arz_EdtArizaKodu.TextPrompt = '&#128269; Seçmek için dokunun...';</div><div>&nbsp; Arz_EdtMakineKodu.TextPrompt = '&#128269; Seçmek için dokunun...';</div><div>&nbsp; Arz_EdtBaglanti.TextPrompt = '&#128269; Seçmek için dokunun...';</div><div>&nbsp; Arz_EdtOperator.TextPrompt = '&#128269; Seçmek için dokunun...';</div><div>&nbsp; if (AT_EdtKod &lt;&gt; nil) { AT_EdtKod.TextPrompt = '&#128269; Seçmek için dokunun...'; }</div><div><br></div><div>&nbsp; Arz_CmbPlanlananBitis.Items.Clear;</div><div>&nbsp; Arz_CmbPlanlananBitis.AddItem('Saat', 'Saat');</div><div>&nbsp; Arz_CmbPlanlananBitis.AddItem('Gün', 'Gün');</div><div>&nbsp; Arz_CmbPlanlananBitis.AddItem('Ay', 'Ay');</div><div><br></div><div>&nbsp; LblNavTitle.clProSettings.FontSize = UiFontSize + 4;</div><div>&nbsp; LblNavTitle.clProSettings.FontName = OkunanFontAdi;</div><div>&nbsp; LblNavTitle.SetclProSettings(LblNavTitle.clProSettings);</div><div>}</div><div><br></div><div>void DiliVeArayuzuGuncelle;</div><div>{</div><div>&nbsp; AyarlariYukle;</div><div>&nbsp; if (Arz_EdtBelgeNo &lt;&gt; nil)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ApplyUiSettings;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>// ----- ALT NAVİGASYON TIKLAMA İŞLEMİ -----</div><div>void AT_GridDoldur; forward;</div><div><br></div><div>void NavBtnClick;</div><div>var ClickedBtn: TClProButton;</div><div>{&nbsp;</div><div>&nbsp; ClickedBtn = TClProButton(FormMain.ClSender);</div><div>&nbsp; PnlMainCard.Visible = False;</div><div>&nbsp; PnlArizaTanimlari.Visible = False;</div><div><br></div><div>&nbsp; BtnNav1.clProSettings.FontColor = clAlphaColor.clHexToColor('#94A3B8');&nbsp;</div><div>&nbsp; BtnNav1.clProSettings.TextSettings.Font.Style = &#091;&#093;;</div><div>&nbsp; BtnNav2.clProSettings.FontColor = clAlphaColor.clHexToColor('#94A3B8');&nbsp;</div><div>&nbsp; BtnNav2.clProSettings.TextSettings.Font.Style = &#091;&#093;;</div><div><br></div><div>&nbsp; ScrollForm.ScrollTo(0, 0);&nbsp;</div><div><br></div><div>&nbsp; if (ClickedBtn == BtnNav1)&nbsp;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; PnlMainCard.Visible = True;</div><div>&nbsp; &nbsp; BtnNav1.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeAcikRenk);&nbsp;</div><div>&nbsp; &nbsp; BtnNav1.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; }</div><div>&nbsp; else if (ClickedBtn == BtnNav2)&nbsp;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; PnlArizaTanimlari.Visible = True;</div><div>&nbsp; &nbsp; BtnNav2.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeAcikRenk);&nbsp;</div><div>&nbsp; &nbsp; BtnNav2.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; AT_GridDoldur;&nbsp;</div><div>&nbsp; }</div><div>&nbsp; BtnNav1.SetclProSettings(BtnNav1.clProSettings);</div><div>&nbsp; BtnNav2.SetclProSettings(BtnNav2.clProSettings);</div><div>}</div><div><br></div><div>void Arz_SetCurrentDateTime;</div><div>{</div><div>&nbsp; Arz_EdtTarih.Text = DateToStr(Now);</div><div>&nbsp; Arz_EdtBaslangic.Text = DateToStr(Now);</div><div>&nbsp; Arz_EdtBaslangicSaat.Text = TimeToStr(Now);</div><div>&nbsp; Arz_EdtGirisZamani.Text = DateToStr(Now) + ' ' + TimeToStr(Now);</div><div>}</div><div><br></div><div>void Arz_LoadDemoData;</div><div>{</div><div>&nbsp; SeciliKayitIndeks = -1;&nbsp;</div><div>&nbsp; Arz_ArizaCount = 1;</div><div><br></div><div>&nbsp; Arz_BelgeNo&#091;0&#093; = 'BLG-001';</div><div>&nbsp; Arz_KayitTarih&#091;0&#093; = '05.05.2026';</div><div>&nbsp; Arz_MakineArr&#091;0&#093; = 'MK-001 - CNC Dik Islem';</div><div>&nbsp; Arz_ArizaDurum&#091;0&#093; = GetText('TAMAMLANDI');</div><div>&nbsp; Arz_BakimIhmalArr&#091;0&#093; = 'Parça eksikti.';</div><div>&nbsp; Arz_BasTarih&#091;0&#093; = DateToStr(Now);</div><div>&nbsp; Arz_BasSaat&#091;0&#093; = TimeToStr(Now);&nbsp;</div><div>&nbsp; Arz_BitTarih&#091;0&#093; = 'Saat';</div><div>&nbsp; Arz_ArzKodArr&#091;0&#093; = 'KOD-123';</div><div>&nbsp; Arz_BaglantiArr&#091;0&#093; = 'Yok';</div><div>&nbsp; Arz_KisiSayisiArr&#091;0&#093; = '2';</div><div>&nbsp; Arz_OperatorArr&#091;0&#093; = 'OPRTR-001 - Ornek Operator';</div><div>&nbsp; Arz_AciklamaArr&#091;0&#093; = 'Genel kontrol saglandi.';</div><div>}</div><div><br></div><div>void Arz_ClearForm;</div><div>{</div><div>&nbsp; SeciliKayitIndeks = -1;</div><div>&nbsp; Arz_EdtBelgeNo.Text = '';</div><div>&nbsp; Arz_EdtArizaKodu.Text = '';</div><div>&nbsp; Arz_EdtMakineKodu.Text = '';&nbsp;</div><div>&nbsp; Arz_EdtBaglanti.Text = '';</div><div>&nbsp; Arz_CmbPlanlananBitis.ItemIndex = -1;</div><div>&nbsp; Arz_EdtKisiSayisi.Text = '0';</div><div>&nbsp; Arz_EdtOperator.Text = '';</div><div>&nbsp; Arz_EdtAciklama.Text = '';</div><div>&nbsp; Arz_MemBakimIhmal.Text = '';&nbsp;</div><div>&nbsp; Arz_SetCurrentDateTime;</div><div>}</div><div><br></div><div>void Arz_RefreshList;</div><div>var</div><div>&nbsp; RowIdx: Integer;</div><div>{</div><div>&nbsp; clProGrid.ColumnCount = 11;</div><div>&nbsp; clProGrid.RowCount = 52;</div><div><br></div><div>&nbsp; clProGrid.Cells&#091;0, 0&#093; = GetText('GRID_SEC');</div><div>&nbsp; clProGrid.Cells&#091;1, 0&#093; = GetText('GRID_BELGE_NO');</div><div>&nbsp; clProGrid.Cells&#091;2, 0&#093; = GetText('GRID_TARIH');</div><div>&nbsp; clProGrid.Cells&#091;3, 0&#093; = GetText('GRID_OPERATOR');</div><div>&nbsp; clProGrid.Cells&#091;4, 0&#093; = GetText('GRID_MAKINE');</div><div>&nbsp; clProGrid.Cells&#091;5, 0&#093; = GetText('GRID_ARIZA');</div><div>&nbsp; clProGrid.Cells&#091;6, 0&#093; = GetText('GRID_BAS_TARIH');</div><div>&nbsp; clProGrid.Cells&#091;7, 0&#093; = GetText('GRID_BIT_TARIH');</div><div>&nbsp; clProGrid.Cells&#091;8, 0&#093; = GetText('GRID_BAS_SAAT');</div><div>&nbsp; clProGrid.Cells&#091;9, 0&#093; = GetText('GRID_ACIKLAMA');</div><div>&nbsp; clProGrid.Cells&#091;10, 0&#093; = GetText('GRID_IHMAL');</div><div><br></div><div>&nbsp; RowIdx = 0;</div><div>&nbsp; while (RowIdx &lt; 50)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (RowIdx &lt; Arz_ArizaCount)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;0, RowIdx + 1&#093; = '&#128280;';&nbsp;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;1, RowIdx + 1&#093; = Arz_BelgeNo&#091;RowIdx&#093;;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;2, RowIdx + 1&#093; = Arz_KayitTarih&#091;RowIdx&#093;;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;3, RowIdx + 1&#093; = Arz_OperatorArr&#091;RowIdx&#093;;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;4, RowIdx + 1&#093; = Arz_MakineArr&#091;RowIdx&#093;;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;5, RowIdx + 1&#093; = Arz_ArzKodArr&#091;RowIdx&#093;;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;6, RowIdx + 1&#093; = Arz_BasTarih&#091;RowIdx&#093;;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;7, RowIdx + 1&#093; = Arz_BitTarih&#091;RowIdx&#093;;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;8, RowIdx + 1&#093; = Arz_BasSaat&#091;RowIdx&#093;;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;9, RowIdx + 1&#093; = Arz_AciklamaArr&#091;RowIdx&#093;;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;10, RowIdx + 1&#093; = Arz_BakimIhmalArr&#091;RowIdx&#093;;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;0, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;1, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;2, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;3, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;4, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;5, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;6, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;7, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;8, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;9, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Cells&#091;10, RowIdx + 1&#093; = '';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; RowIdx = RowIdx + 1;</div><div>&nbsp; }</div><div>&nbsp; clProGrid.Options.ColumnSize.Stretch = True;</div><div>}</div><div><br></div><div>void Arz_DetayFormAc;</div><div>var</div><div>&nbsp; DetayScroll: TclVertScrollBox;</div><div>&nbsp; DetayPnlMain: TclProPanel;</div><div>&nbsp; DetayLblTitle: TClProLabel;</div><div>&nbsp; DetayBtnKapat: TClProButton;</div><div>&nbsp; PnlRow1, PnlRow2, PnlRow3, PnlRow4, PnlRow5, PnlRow6, PnlRow7, PnlRow8, PnlRow9, PnlRow10, PnlRow11: TclProPanel;</div><div>&nbsp; LblK1, LblK2, LblK3, LblK4, LblK5, LblK6, LblK7, LblK8, LblK9, LblK10, LblK11: TClProLabel;</div><div>&nbsp; LblV1, LblV2, LblV3, LblV4, LblV5, LblV6, LblV7, LblV8, LblV9, LblV10, LblV11: TClProLabel;</div><div>{</div><div>&nbsp; if (SeciliKayitIndeks == -1) { Exit; }</div><div>&nbsp; DetayForm = TclForm.Create(Self);</div><div>&nbsp; DetayForm.SetFormColor(ThemeKoyuRenk, ThemeAcikRenk, clGVertical);</div><div>&nbsp; DetayScroll = DetayForm.AddNewVertScrollBox(DetayForm, 'DetayScroll');</div><div>&nbsp; DetayScroll.Align = alClient;</div><div>&nbsp; DetayPnlMain = DetayForm.AddNewProPanel(DetayScroll, 'DetayPnlMain');</div><div>&nbsp; DetayPnlMain.Align = alTop;</div><div>&nbsp; DetayPnlMain.Height = 1000;</div><div>&nbsp; DetayPnlMain.Margins.Left = 15;</div><div>&nbsp; DetayPnlMain.Margins.Right = 15;</div><div>&nbsp; DetayPnlMain.Margins.Top = 15;</div><div>&nbsp; DetayPnlMain.Margins.Bottom = 15;</div><div>&nbsp; StyleMainCard(DetayPnlMain);</div><div>&nbsp;&nbsp;</div><div>&nbsp; DetayLblTitle = DetayForm.AddNewProLabel(DetayPnlMain, 'DetayLblTitle', GetText('NAV_TITLE') + GetText('DETAY_TITLE'));</div><div>&nbsp; DetayLblTitle.Align = alTop;</div><div>&nbsp; DetayLblTitle.Height = 40;</div><div>&nbsp; DetayLblTitle.Margins.Left = 15;</div><div>&nbsp; DetayLblTitle.Margins.Top = 15;</div><div>&nbsp; StyleSectionTitle(DetayLblTitle);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow1 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow1');</div><div>&nbsp; PnlRow1.Align = alTop; PnlRow1.Height = 55; PnlRow1.Margins.Top = 8; PnlRow1.Margins.Left = 15; PnlRow1.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow1);</div><div>&nbsp; LblK1 = DetayForm.AddNewProLabel(PnlRow1, 'LblK1', GetText('BELGE_NO'));</div><div>&nbsp; LblK1.Align = alLeft; LblK1.Width = 120; LblK1.Margins.Left = 10; LblK1.Margins.Top = 15;</div><div>&nbsp; StyleInputLabel(LblK1);</div><div>&nbsp; LblV1 = DetayForm.AddNewProLabel(PnlRow1, 'LblV1', Arz_BelgeNo&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV1.Align = alClient; LblV1.Margins.Left = 5; LblV1.Margins.Top = 15; LblV1.Margins.Right = 10;</div><div>&nbsp; StyleMalzemeBaslik(LblV1);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow2 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow2');</div><div>&nbsp; PnlRow2.Align = alTop; PnlRow2.Height = 55; PnlRow2.Margins.Top = 8; PnlRow2.Margins.Left = 15; PnlRow2.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow2);</div><div>&nbsp; LblK2 = DetayForm.AddNewProLabel(PnlRow2, 'LblK2', GetText('TARIH'));</div><div>&nbsp; LblK2.Align = alLeft; LblK2.Width = 120; LblK2.Margins.Left = 10; LblK2.Margins.Top = 15;</div><div>&nbsp; StyleInputLabel(LblK2);</div><div>&nbsp; LblV2 = DetayForm.AddNewProLabel(PnlRow2, 'LblV2', Arz_KayitTarih&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV2.Align = alClient; LblV2.Margins.Left = 5; LblV2.Margins.Top = 15; LblV2.Margins.Right = 10;</div><div>&nbsp; StyleMalzemeBaslik(LblV2);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow3 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow3');</div><div>&nbsp; PnlRow3.Align = alTop; PnlRow3.Height = 55; PnlRow3.Margins.Top = 8; PnlRow3.Margins.Left = 15; PnlRow3.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow3);</div><div>&nbsp; LblK3 = DetayForm.AddNewProLabel(PnlRow3, 'LblK3', GetText('MAKINE_KODU'));</div><div>&nbsp; LblK3.Align = alLeft; LblK3.Width = 120; LblK3.Margins.Left = 10; LblK3.Margins.Top = 15;</div><div>&nbsp; StyleInputLabel(LblK3);</div><div>&nbsp; LblV3 = DetayForm.AddNewProLabel(PnlRow3, 'LblV3', Arz_MakineArr&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV3.Align = alClient; LblV3.Margins.Left = 5; LblV3.Margins.Top = 15; LblV3.Margins.Right = 10;</div><div>&nbsp; StyleMalzemeBaslik(LblV3);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow4 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow4');</div><div>&nbsp; PnlRow4.Align = alTop; PnlRow4.Height = 55; PnlRow4.Margins.Top = 8; PnlRow4.Margins.Left = 15; PnlRow4.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow4);</div><div>&nbsp; LblK4 = DetayForm.AddNewProLabel(PnlRow4, 'LblK4', GetText('OPERATOR'));</div><div>&nbsp; LblK4.Align = alLeft; LblK4.Width = 120; LblK4.Margins.Left = 10; LblK4.Margins.Top = 15;</div><div>&nbsp; StyleInputLabel(LblK4);</div><div>&nbsp; LblV4 = DetayForm.AddNewProLabel(PnlRow4, 'LblV4', Arz_OperatorArr&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV4.Align = alClient; LblV4.Margins.Left = 5; LblV4.Margins.Top = 15; LblV4.Margins.Right = 10;</div><div>&nbsp; StyleMalzemeBaslik(LblV4);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow5 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow5');</div><div>&nbsp; PnlRow5.Align = alTop; PnlRow5.Height = 55; PnlRow5.Margins.Top = 8; PnlRow5.Margins.Left = 15; PnlRow5.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow5);</div><div>&nbsp; LblK5 = DetayForm.AddNewProLabel(PnlRow5, 'LblK5', GetText('ARIZA_KODU'));</div><div>&nbsp; LblK5.Align = alLeft; LblK5.Width = 120; LblK5.Margins.Left = 10; LblK5.Margins.Top = 15;</div><div>&nbsp; StyleInputLabel(LblK5);</div><div>&nbsp; LblV5 = DetayForm.AddNewProLabel(PnlRow5, 'LblV5', Arz_ArzKodArr&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV5.Align = alClient; LblV5.Margins.Left = 5; LblV5.Margins.Top = 15; LblV5.Margins.Right = 10;</div><div>&nbsp; StyleMalzemeBaslik(LblV5);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow6 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow6');</div><div>&nbsp; PnlRow6.Align = alTop; PnlRow6.Height = 55; PnlRow6.Margins.Top = 8; PnlRow6.Margins.Left = 15; PnlRow6.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow6);</div><div>&nbsp; LblK6 = DetayForm.AddNewProLabel(PnlRow6, 'LblK6', GetText('BAGLANTI'));</div><div>&nbsp; LblK6.Align = alLeft; LblK6.Width = 120; LblK6.Margins.Left = 10; LblK6.Margins.Top = 15;</div><div>&nbsp; StyleInputLabel(LblK6);</div><div>&nbsp; LblV6 = DetayForm.AddNewProLabel(PnlRow6, 'LblV6', Arz_BaglantiArr&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV6.Align = alClient; LblV6.Margins.Left = 5; LblV6.Margins.Top = 15; LblV6.Margins.Right = 10;</div><div>&nbsp; StyleMalzemeBaslik(LblV6);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow7 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow7');</div><div>&nbsp; PnlRow7.Align = alTop; PnlRow7.Height = 55; PnlRow7.Margins.Top = 8; PnlRow7.Margins.Left = 15; PnlRow7.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow7);</div><div>&nbsp; LblK7 = DetayForm.AddNewProLabel(PnlRow7, 'LblK7', GetText('DETAY_BASLANGIC'));</div><div>&nbsp; LblK7.Align = alLeft; LblK7.Width = 120; LblK7.Margins.Left = 10; LblK7.Margins.Top = 15;</div><div>&nbsp; StyleInputLabel(LblK7);</div><div>&nbsp; LblV7 = DetayForm.AddNewProLabel(PnlRow7, 'LblV7', Arz_BasTarih&#091;SeciliKayitIndeks&#093; + ' ' + Arz_BasSaat&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV7.Align = alClient; LblV7.Margins.Left = 5; LblV7.Margins.Top = 15; LblV7.Margins.Right = 10;</div><div>&nbsp; StyleMalzemeBaslik(LblV7);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow8 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow8');</div><div>&nbsp; PnlRow8.Align = alTop; PnlRow8.Height = 55; PnlRow8.Margins.Top = 8; PnlRow8.Margins.Left = 15; PnlRow8.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow8);</div><div>&nbsp; LblK8 = DetayForm.AddNewProLabel(PnlRow8, 'LblK8', GetText('BITIS_TURU'));</div><div>&nbsp; LblK8.Align = alLeft; LblK8.Width = 120; LblK8.Margins.Left = 10; LblK8.Margins.Top = 15;</div><div>&nbsp; StyleInputLabel(LblK8);</div><div>&nbsp; LblV8 = DetayForm.AddNewProLabel(PnlRow8, 'LblV8', Arz_BitTarih&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV8.Align = alClient; LblV8.Margins.Left = 5; LblV8.Margins.Top = 15; LblV8.Margins.Right = 10;</div><div>&nbsp; StyleMalzemeBaslik(LblV8);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow9 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow9');</div><div>&nbsp; PnlRow9.Align = alTop; PnlRow9.Height = 55; PnlRow9.Margins.Top = 8; PnlRow9.Margins.Left = 15; PnlRow9.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow9);</div><div>&nbsp; LblK9 = DetayForm.AddNewProLabel(PnlRow9, 'LblK9', GetText('KISI_SAYISI'));</div><div>&nbsp; LblK9.Align = alLeft; LblK9.Width = 120; LblK9.Margins.Left = 10; LblK9.Margins.Top = 15;</div><div>&nbsp; StyleInputLabel(LblK9);</div><div>&nbsp; LblV9 = DetayForm.AddNewProLabel(PnlRow9, 'LblV9', Arz_KisiSayisiArr&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV9.Align = alClient; LblV9.Margins.Left = 5; LblV9.Margins.Top = 15; LblV9.Margins.Right = 10;</div><div>&nbsp; StyleMalzemeBaslik(LblV9);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow10 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow10');</div><div>&nbsp; PnlRow10.Align = alTop; PnlRow10.Height = 55; PnlRow10.Margins.Top = 8; PnlRow10.Margins.Left = 15; PnlRow10.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow10);</div><div>&nbsp; LblK10 = DetayForm.AddNewProLabel(PnlRow10, 'LblK10', GetText('ACIKLAMA'));</div><div>&nbsp; LblK10.Align = alLeft; LblK10.Width = 120; LblK10.Margins.Left = 10; LblK10.Margins.Top = 15;</div><div>&nbsp; StyleInputLabel(LblK10);</div><div>&nbsp; LblV10 = DetayForm.AddNewProLabel(PnlRow10, 'LblV10', Arz_AciklamaArr&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV10.Align = alClient; LblV10.Margins.Left = 5; LblV10.Margins.Top = 15; LblV10.Margins.Right = 10;</div><div>&nbsp; StyleMalzemeBaslik(LblV10);</div><div>&nbsp;&nbsp;</div><div>&nbsp; PnlRow11 = DetayForm.AddNewProPanel(DetayPnlMain, 'PnlRow11');</div><div>&nbsp; PnlRow11.Align = alTop; PnlRow11.Height = 120; PnlRow11.Margins.Top = 8; PnlRow11.Margins.Left = 15; PnlRow11.Margins.Right = 15;</div><div>&nbsp; StyleInputPanel(PnlRow11);</div><div>&nbsp; LblK11 = DetayForm.AddNewProLabel(PnlRow11, 'LblK11', GetText('YAPILAMAMA_NEDENI'));</div><div>&nbsp; LblK11.Align = alTop; LblK11.Height = 25; LblK11.Margins.Left = 10; LblK11.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(LblK11);</div><div>&nbsp; LblV11 = DetayForm.AddNewProLabel(PnlRow11, 'LblV11', Arz_BakimIhmalArr&#091;SeciliKayitIndeks&#093;);</div><div>&nbsp; LblV11.Align = alClient; LblV11.Margins.Left = 10; LblV11.Margins.Right = 10; LblV11.Margins.Bottom = 5;</div><div>&nbsp; StyleMalzemeBaslik(LblV11);</div><div>&nbsp;&nbsp;</div><div>&nbsp; DetayBtnKapat = DetayForm.AddNewProButton(DetayPnlMain, 'DetayBtnKapat', GetText('KAPAT'));</div><div>&nbsp; DetayBtnKapat.Align = alBottom; DetayBtnKapat.Height = 45; DetayBtnKapat.Margins.Left = 15; DetayBtnKapat.Margins.Right = 15; DetayBtnKapat.Margins.Bottom = 15;</div><div>&nbsp; StylePrimaryButton(DetayBtnKapat);</div><div>&nbsp; DetayForm.AddNewEvent(DetayBtnKapat, tbeOnClick, 'Arz_KapatDetay');</div><div>&nbsp; DetayForm.Run;</div><div>}</div><div><br></div><div>void Arz_ListedenSec;</div><div>var</div><div>&nbsp; SelRow: Integer;</div><div>{</div><div>&nbsp; SelRow = FormMain.ClSenderRow;</div><div>&nbsp; if (SelRow &gt; 0)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; SeciliKayitIndeks = SelRow - 1;</div><div>&nbsp; &nbsp; Arz_EdtBelgeNo.Text = Arz_BelgeNo&#091;SeciliKayitIndeks&#093;;</div><div>&nbsp; &nbsp; Arz_EdtArizaKodu.Text = Arz_ArzKodArr&#091;SeciliKayitIndeks&#093;;</div><div>&nbsp; &nbsp; Arz_EdtBaglanti.Text = Arz_BaglantiArr&#091;SeciliKayitIndeks&#093;;</div><div>&nbsp; &nbsp; Arz_EdtKisiSayisi.Text = Arz_KisiSayisiArr&#091;SeciliKayitIndeks&#093;;</div><div>&nbsp; &nbsp; Arz_EdtOperator.Text = Arz_OperatorArr&#091;SeciliKayitIndeks&#093;;</div><div>&nbsp; &nbsp; Arz_EdtAciklama.Text = Arz_AciklamaArr&#091;SeciliKayitIndeks&#093;;</div><div>&nbsp; &nbsp; Arz_EdtMakineKodu.Text = Arz_MakineArr&#091;SeciliKayitIndeks&#093;;</div><div>&nbsp; &nbsp; Arz_MemBakimIhmal.Text = Arz_BakimIhmalArr&#091;SeciliKayitIndeks&#093;;</div><div>&nbsp; &nbsp; Arz_EdtBaslangic.Text = Arz_BasTarih&#091;SeciliKayitIndeks&#093;;</div><div>&nbsp; &nbsp; Arz_EdtBaslangicSaat.Text = Arz_BasSaat&#091;SeciliKayitIndeks&#093;;</div><div>&nbsp; &nbsp; if (Arz_BitTarih&#091;SeciliKayitIndeks&#093; == 'Saat') { Arz_CmbPlanlananBitis.ItemIndex = 0; }</div><div>&nbsp; &nbsp; else if (Arz_BitTarih&#091;SeciliKayitIndeks&#093; == 'Gün') { Arz_CmbPlanlananBitis.ItemIndex = 1; }</div><div>&nbsp; &nbsp; else if (Arz_BitTarih&#091;SeciliKayitIndeks&#093; == 'Ay') { Arz_CmbPlanlananBitis.ItemIndex = 2; }</div><div>&nbsp; &nbsp; else { Arz_CmbPlanlananBitis.ItemIndex = -1; }</div><div>&nbsp; &nbsp; Arz_DetayFormAc;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void Arz_KapatDetay;</div><div>{</div><div>&nbsp; DetayForm.Close;</div><div>}</div><div><br></div><div>// ----- ARIZA TANIMLARI LİSTESİ VE SEÇİM İŞLEMLERİ -----</div><div><br></div><div>void OnLsvArizaTipSecildi;</div><div>var&nbsp;</div><div>&nbsp; S_Kodu, S_Tipi, S_Aciklama: String;&nbsp;</div><div>{</div><div>&nbsp; S_Kodu = AT_LsvListe.clSelectedItemData(clCaption);</div><div>&nbsp; S_Tipi = AT_LsvListe.clSelectedItemData(clText);</div><div>&nbsp; S_Aciklama = AT_LsvListe.clSelectedItemData(clText1);</div><div><br></div><div>&nbsp; AT_EdtKod.Text = S_Kodu;</div><div>&nbsp; AT_EdtAd.Text = S_Aciklama;</div><div>&nbsp; if (S_Tipi &lt;&gt; '') { SafeSetCombo(AT_CmbTip, S_Tipi); }</div><div>}</div><div><br></div><div>void AT_CmbTipChanged;</div><div>{</div><div>&nbsp; if (AT_EdtAd &lt;&gt; nil)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (AT_CmbTip.Text &lt;&gt; '')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; // Tip değiştiğinde yapılacak işlemler</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void AT_GridDoldur;</div><div>var&nbsp;</div><div>&nbsp; q: TclSQLQuery;</div><div>&nbsp; JsonStr, Val1, Val2, Val3: String;</div><div>{</div><div>&nbsp; ConnectToDatabase;</div><div>&nbsp; if (not IsDBConnected) { Exit; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; JsonStr = '&#091;';</div><div>&nbsp; q = TclSQLQuery.Create(nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; q.Connection = Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; q.SQL.Text = 'SELECT ARIZA_KODU, ARIZA_TIPI, ARIZA_ADI FROM TBLURTBAKIMARIZATIP WITH (NOLOCK) ORDER BY REC_UPDATE DESC';</div><div>&nbsp; &nbsp; q.Open;</div><div>&nbsp; &nbsp; while (not q.Eof)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if (JsonStr &lt;&gt; '&#091;') { JsonStr = JsonStr + ','; }</div><div>&nbsp; &nbsp; &nbsp; Val1 = TemizleJSON(q.FieldByName('ARIZA_KODU').AsString);</div><div>&nbsp; &nbsp; &nbsp; Val2 = TemizleJSON(q.FieldByName('ARIZA_TIPI').AsString);</div><div>&nbsp; &nbsp; &nbsp; Val3 = TemizleJSON(q.FieldByName('ARIZA_ADI').AsString);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; JsonStr = JsonStr + '{"clCaption":"' + Val1 + '", ' +</div><div>&nbsp; &nbsp; &nbsp; '"clText":"' + Val2 + '", ' +</div><div>&nbsp; &nbsp; &nbsp; '"clText1":"' + Val3 + '"}';</div><div>&nbsp; &nbsp; &nbsp; q.Next;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; q.Free;</div><div>&nbsp; }</div><div><br></div><div>&nbsp; if (JsonStr == '&#091;') {&nbsp;</div><div>&nbsp; &nbsp; JsonStr = '&#091;{"clCaption":"Kayıt Bulunamadı", "clText":"", "clText1":""}&#093;';&nbsp;</div><div>&nbsp; }</div><div>&nbsp; else { JsonStr = JsonStr + '&#093;'; }</div><div><br></div><div>&nbsp; if (AT_LsvListe &lt;&gt; nil) {</div><div>&nbsp; &nbsp; AT_LsvListe.clLoadProListViewDataFromDataset(Clomosy.ClDataSetFromJSON(JsonStr));</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void BuildArizaTanimPaneli;</div><div>{</div><div>&nbsp; PnlArizaTanimlari = FormMain.AddNewProPanel(ScrollForm, 'PnlArizaTanimlari');</div><div>&nbsp; PnlArizaTanimlari.Align = alTop;</div><div>&nbsp; PnlArizaTanimlari.Height = 1100;</div><div>&nbsp; PnlArizaTanimlari.Margins.Left = 15; PnlArizaTanimlari.Margins.Right = 15; PnlArizaTanimlari.Margins.Top = 15; PnlArizaTanimlari.Margins.Bottom = 25;</div><div>&nbsp; StyleMainCard(PnlArizaTanimlari);</div><div>&nbsp; PnlArizaTanimlari.Visible = False;&nbsp;</div><div><br></div><div>&nbsp; // --- ÜST KISIM: GİRİŞ ALANLARI ---</div><div>&nbsp; AT_PnlInputs = FormMain.AddNewProPanel(PnlArizaTanimlari, 'AT_PnlInputs');</div><div>&nbsp; AT_PnlInputs.Align = alTop;</div><div>&nbsp; AT_PnlInputs.Height = 220;</div><div><br></div><div>&nbsp; // 1. Satır: Arıza Kodu</div><div>&nbsp; AT_PnlRow1 = FormMain.AddNewProPanel(AT_PnlInputs, 'AT_PnlRow1');</div><div>&nbsp; AT_PnlRow1.Align = alTop; AT_PnlRow1.Height = 58; AT_PnlRow1.Margins.Top = 10; AT_PnlRow1.Margins.Left = 10; AT_PnlRow1.Margins.Right = 10;</div><div>&nbsp; StyleInputPanel(AT_PnlRow1);</div><div>&nbsp;&nbsp;</div><div>&nbsp; AT_LblKod = FormMain.AddNewProLabel(AT_PnlRow1, 'AT_LblKod', 'Arıza Kodu');</div><div>&nbsp; AT_LblKod.Align = alTop; AT_LblKod.Height = 18; AT_LblKod.Margins.Left = 10; AT_LblKod.Margins.Top = 6;</div><div>&nbsp; StyleInputLabel(AT_LblKod);</div><div><br></div><div>&nbsp; AT_BtnAra = FormMain.AddNewProButton(AT_PnlRow1, 'AT_BtnAra', '&#128269;');</div><div>&nbsp; AT_BtnAra.Align = alRight; AT_BtnAra.Width = 50; AT_BtnAra.Margins.Right = 10; AT_BtnAra.Margins.Bottom = 7;</div><div>&nbsp; StyleRehberButton(AT_BtnAra);</div><div>&nbsp; FormMain.AddNewEvent(AT_BtnAra, tbeOnClick, 'BtnRehberArizaClick');</div><div><br></div><div>&nbsp; AT_EdtKod = FormMain.AddNewProEdit(AT_PnlRow1, 'AT_EdtKod', '');</div><div>&nbsp; AT_EdtKod.Align = alClient; AT_EdtKod.Margins.Left = 10; AT_EdtKod.Margins.Right = 5; AT_EdtKod.Margins.Bottom = 7;</div><div>&nbsp; StyleReadonlyEdit(AT_EdtKod); AT_EdtKod.CanFocus = False;</div><div>&nbsp; FormMain.AddNewEvent(AT_EdtKod, tbeOnClick, 'BtnRehberArizaClick');</div><div><br></div><div>&nbsp; // 2. Satır: Arıza Tipi</div><div>&nbsp; AT_PnlRow2 = FormMain.AddNewProPanel(AT_PnlInputs, 'AT_PnlRow2');</div><div>&nbsp; AT_PnlRow2.Align = alTop; AT_PnlRow2.Height = 58; AT_PnlRow2.Margins.Top = 10; AT_PnlRow2.Margins.Left = 10; AT_PnlRow2.Margins.Right = 10;</div><div>&nbsp; StyleInputPanel(AT_PnlRow2);</div><div>&nbsp;&nbsp;</div><div>&nbsp; AT_LblTip = FormMain.AddNewProLabel(AT_PnlRow2, 'AT_LblTip', 'Arıza Tipi');</div><div>&nbsp; AT_LblTip.Align = alTop; AT_LblTip.Height = 18; AT_LblTip.Margins.Left = 10; AT_LblTip.Margins.Top = 6;</div><div>&nbsp; StyleInputLabel(AT_LblTip);</div><div><br></div><div>&nbsp; AT_CmbTip = FormMain.AddNewComboBox(AT_PnlRow2, 'AT_CmbTip');</div><div>&nbsp; AT_CmbTip.Align = alClient; AT_CmbTip.Margins.Left = 10; AT_CmbTip.Margins.Right = 10; AT_CmbTip.Margins.Bottom = 7;</div><div>&nbsp; AT_CmbTip.AddItem('Makine Bakımı', 'Makine Bakımı');</div><div>&nbsp; AT_CmbTip.AddItem('Kalıp Bakımı', 'Kalıp Bakımı');</div><div>&nbsp; FormMain.AddNewEvent(AT_CmbTip, tbeOnChange, 'AT_CmbTipChanged');</div><div><br></div><div>&nbsp; // 3. Satır: Açıklama (Arıza Adı)</div><div>&nbsp; AT_PnlRow3 = FormMain.AddNewProPanel(AT_PnlInputs, 'AT_PnlRow3');</div><div>&nbsp; AT_PnlRow3.Align = alTop; AT_PnlRow3.Height = 58; AT_PnlRow3.Margins.Top = 10; AT_PnlRow3.Margins.Left = 10; AT_PnlRow3.Margins.Right = 10;</div><div>&nbsp; StyleInputPanel(AT_PnlRow3);</div><div>&nbsp;&nbsp;</div><div>&nbsp; AT_LblAd = FormMain.AddNewProLabel(AT_PnlRow3, 'AT_LblAd', 'Açıklaması');</div><div>&nbsp; AT_LblAd.Align = alTop; AT_LblAd.Height = 18; AT_LblAd.Margins.Left = 10; AT_LblAd.Margins.Top = 6;</div><div>&nbsp; StyleInputLabel(AT_LblAd);</div><div><br></div><div>&nbsp; AT_EdtAd = FormMain.AddNewProEdit(AT_PnlRow3, 'AT_EdtAd', '');</div><div>&nbsp; AT_EdtAd.Align = alClient; AT_EdtAd.Margins.Left = 10; AT_EdtAd.Margins.Right = 10; AT_EdtAd.Margins.Bottom = 7;</div><div>&nbsp; StyleInputEdit(AT_EdtAd);</div><div><br></div><div>&nbsp; // --- ALT KISIM: TABLO (ProListView) ---</div><div>&nbsp; AT_PnlRight = FormMain.AddNewProPanel(PnlArizaTanimlari, 'AT_PnlRight');</div><div>&nbsp; AT_PnlRight.Align = alClient;</div><div>&nbsp; AT_PnlRight.Margins.Top = 10; AT_PnlRight.Margins.Left = 10; AT_PnlRight.Margins.Right = 10; AT_PnlRight.Margins.Bottom = 10;</div><div>&nbsp; AT_PnlRight.clProSettings.BorderColor = clAlphaColor.clHexToColor(ThemeBorderColor);</div><div>&nbsp; AT_PnlRight.clProSettings.BorderWidth = 1;</div><div>&nbsp; AT_PnlRight.SetclProSettings(AT_PnlRight.clProSettings);</div><div><br></div><div>&nbsp; AT_PnlGridHeader = FormMain.AddNewProPanel(AT_PnlRight, 'AT_PnlGridHeader');</div><div>&nbsp; AT_PnlGridHeader.Align = alTop; AT_PnlGridHeader.Height = 40;</div><div>&nbsp; AT_PnlGridHeader.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#F1F5F9');</div><div>&nbsp; AT_PnlGridHeader.SetclProSettings(AT_PnlGridHeader.clProSettings);</div><div><br></div><div>&nbsp; AT_LblColKodu = FormMain.AddNewProLabel(AT_PnlGridHeader, 'AT_LblColKodu', 'Arıza Kodu');</div><div>&nbsp; AT_LblColKodu.Align = alLeft; AT_LblColKodu.Width = 120; AT_LblColKodu.Margins.Left = 5;</div><div>&nbsp; AT_LblColKodu.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor); AT_LblColKodu.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;; AT_LblColKodu.SetclProSettings(AT_LblColKodu.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; AT_LblColTipi = FormMain.AddNewProLabel(AT_PnlGridHeader, 'AT_LblColTipi', 'Arıza Tipi');</div><div>&nbsp; AT_LblColTipi.Align = alLeft; AT_LblColTipi.Width = 150;</div><div>&nbsp; AT_LblColTipi.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor); AT_LblColTipi.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;; AT_LblColTipi.SetclProSettings(AT_LblColTipi.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; AT_LblColAd = FormMain.AddNewProLabel(AT_PnlGridHeader, 'AT_LblColAd', 'Açıklaması');</div><div>&nbsp; AT_LblColAd.Align = alClient;</div><div>&nbsp; AT_LblColAd.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor); AT_LblColAd.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;; AT_LblColAd.SetclProSettings(AT_LblColAd.clProSettings);</div><div><br></div><div>&nbsp; AT_LsvListe = FormMain.AddNewProListView(AT_PnlRight, 'AT_LsvListe');</div><div>&nbsp; AT_LsvListe.Align = alClient; AT_LsvListe.ListType = 'vertical'; AT_LsvListe.clProSettings.ColCount = 1; AT_LsvListe.clProSettings.ItemHeight = 40; AT_LsvListe.SetclProSettings(AT_LsvListe.clProSettings);</div><div><br></div><div>&nbsp; AT_LsvDP = FormMain.AddNewProListViewDesignerPanel(AT_LsvListe, 'AT_LsvDP');</div><div>&nbsp; AT_LsvDP.Align = alTop; AT_LsvDP.Height = 40; AT_LsvDP.Width = 600;</div><div>&nbsp; AT_LsvDP.clProSettings.BorderColor = clAlphaColor.clHexToColor(ThemeBorderColor);</div><div>&nbsp; AT_LsvDP.clProSettings.BorderWidth = 1;</div><div>&nbsp; AT_LsvDP.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; AT_LsvDP.SetclProSettings(AT_LsvDP.clProSettings);</div><div><br></div><div>&nbsp; AT_LblDPKodu = FormMain.AddNewProLabel(AT_LsvDP, 'clCaption', '');</div><div>&nbsp; AT_LblDPKodu.Align = alLeft; AT_LblDPKodu.Width = 120; AT_LblDPKodu.Margins.Left = 5;</div><div>&nbsp; AT_LblDPKodu.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor); AT_LblDPKodu.SetclProSettings(AT_LblDPKodu.clProSettings);</div><div><br></div><div>&nbsp; AT_LblDPTipi = FormMain.AddNewProLabel(AT_LsvDP, 'clText', '');</div><div>&nbsp; AT_LblDPTipi.Align = alLeft; AT_LblDPTipi.Width = 150;</div><div>&nbsp; AT_LblDPTipi.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor); AT_LblDPTipi.SetclProSettings(AT_LblDPTipi.clProSettings);</div><div><br></div><div>&nbsp; AT_LblDPAd = FormMain.AddNewProLabel(AT_LsvDP, 'clText1', '');</div><div>&nbsp; AT_LblDPAd.Align = alClient;</div><div>&nbsp; AT_LblDPAd.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor); AT_LblDPAd.SetclProSettings(AT_LblDPAd.clProSettings);</div><div><br></div><div>&nbsp; AT_LsvDP.AddPanelObject(AT_LblDPKodu, clCaption);</div><div>&nbsp; AT_LsvDP.AddPanelObject(AT_LblDPTipi, clText);</div><div>&nbsp; AT_LsvDP.AddPanelObject(AT_LblDPAd, clText1);</div><div>&nbsp; AT_LsvListe.SetDesignerPanel(AT_LsvDP);</div><div><br></div><div>&nbsp; FormMain.AddNewEvent(AT_LsvListe, tbeOnItemClick, 'OnLsvArizaTipSecildi');</div><div>}</div><div><br></div><div>void Arz_BtnYeniClick;</div><div>{</div><div>&nbsp; Arz_ClearForm;</div><div>}</div><div><br></div><div>void Arz_KaydetKayit;</div><div>var</div><div>&nbsp; KayitDosyasi: TclStringList;</div><div>&nbsp; DosyaYolu, YeniKayit, LTarih, LAy, LYil, TemizMakineKodu: String;</div><div>{</div><div>&nbsp; if (Arz_EdtBelgeNo.Text == '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage(GetText('MSG_BELGE_GIRIN'));</div><div>&nbsp; &nbsp; Exit;</div><div>&nbsp; }</div><div>&nbsp; if (Arz_EdtMakineKodu.Text == '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage(GetText('MSG_MAKINE_SECIN'));</div><div>&nbsp; &nbsp; Exit;</div><div>&nbsp; }</div><div>&nbsp; if (Arz_EdtArizaKodu.Text == '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Lütfen Arıza Kodu seçiniz!');</div><div>&nbsp; &nbsp; Exit;</div><div>&nbsp; }</div><div>&nbsp; if (Arz_CmbPlanlananBitis.ItemIndex == -1)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Lütfen Planlanan Bitiş (Periyot) seçiniz!');</div><div>&nbsp; &nbsp; Exit;</div><div>&nbsp; }</div><div>&nbsp; if (Trim(Arz_MemBakimIhmal.Text) == '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage(GetText('MSG_IHMAL_ZORUNLU'));</div><div>&nbsp; &nbsp; Exit;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; DosyaYolu = clPathCombine('BakimVerileri.txt', Clomosy.AppFilesPath);</div><div>&nbsp; KayitDosyasi = Clomosy.StringListNew;</div><div>&nbsp; if (clFileExists(DosyaYolu, ''))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; KayitDosyasi.LoadFromFile(DosyaYolu, 0);</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; LTarih = DateToStr(Now);</div><div>&nbsp; LAy = Copy(LTarih, 4, 2);</div><div>&nbsp; LYil = Copy(LTarih, 7, 4);</div><div>&nbsp;&nbsp;</div><div>&nbsp; TemizMakineKodu = clGetStringReplace(Arz_EdtMakineKodu.Text, '|', '-');</div><div>&nbsp;&nbsp;</div><div>&nbsp; YeniKayit = 'Arıza|' + Arz_EdtBelgeNo.Text + '|' + TemizMakineKodu + '|' + Arz_EdtArizaKodu.Text + '|' + LTarih + '|Bakım Yapılmadı|' + LAy + '|' + LYil + '|' + Arz_CmbPlanlananBitis.Text;</div><div>&nbsp;&nbsp;</div><div>&nbsp; KayitDosyasi.Add(YeniKayit);</div><div>&nbsp; KayitDosyasi.SaveToFile(DosyaYolu, 0);</div><div>&nbsp; KayitDosyasi.Free;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (SeciliKayitIndeks == -1)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (Arz_ArizaCount &gt;= 50)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(GetText('MSG_KAPASITE_DOLU'));</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; Arz_BelgeNo&#091;Arz_ArizaCount&#093; = Trim(Arz_EdtBelgeNo.Text);</div><div>&nbsp; &nbsp; Arz_MakineArr&#091;Arz_ArizaCount&#093; = TemizMakineKodu;</div><div>&nbsp; &nbsp; Arz_BakimIhmalArr&#091;Arz_ArizaCount&#093; = Trim(Arz_MemBakimIhmal.Text);</div><div>&nbsp; &nbsp; Arz_BasTarih&#091;Arz_ArizaCount&#093; = Arz_EdtBaslangic.Text;</div><div>&nbsp; &nbsp; Arz_BasSaat&#091;Arz_ArizaCount&#093; = Arz_EdtBaslangicSaat.Text;</div><div>&nbsp; &nbsp; if (Arz_CmbPlanlananBitis.ItemIndex == 0) { Arz_BitTarih&#091;Arz_ArizaCount&#093; = 'Saat'; }</div><div>&nbsp; &nbsp; else if (Arz_CmbPlanlananBitis.ItemIndex == 1) { Arz_BitTarih&#091;Arz_ArizaCount&#093; = 'Gün'; }</div><div>&nbsp; &nbsp; else if (Arz_CmbPlanlananBitis.ItemIndex == 2) { Arz_BitTarih&#091;Arz_ArizaCount&#093; = 'Ay'; }</div><div>&nbsp; &nbsp; else { Arz_BitTarih&#091;Arz_ArizaCount&#093; = ''; }</div><div>&nbsp; &nbsp; Arz_ArzKodArr&#091;Arz_ArizaCount&#093; = Arz_EdtArizaKodu.Text;</div><div>&nbsp; &nbsp; Arz_BaglantiArr&#091;Arz_ArizaCount&#093; = Arz_EdtBaglanti.Text;</div><div>&nbsp; &nbsp; Arz_KisiSayisiArr&#091;Arz_ArizaCount&#093; = Arz_EdtKisiSayisi.Text;</div><div>&nbsp; &nbsp; Arz_OperatorArr&#091;Arz_ArizaCount&#093; = Arz_EdtOperator.Text;</div><div>&nbsp; &nbsp; Arz_AciklamaArr&#091;Arz_ArizaCount&#093; = Arz_EdtAciklama.Text;</div><div>&nbsp; &nbsp; Arz_KayitTarih&#091;Arz_ArizaCount&#093; = DateToStr(Now);</div><div>&nbsp; &nbsp; Arz_ArizaDurum&#091;Arz_ArizaCount&#093; = GetText('KAYDEDILDI');</div><div>&nbsp; &nbsp; Arz_ArizaCount = Arz_ArizaCount + 1;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_BelgeNo&#091;SeciliKayitIndeks&#093; = Trim(Arz_EdtBelgeNo.Text);</div><div>&nbsp; &nbsp; Arz_MakineArr&#091;SeciliKayitIndeks&#093; = TemizMakineKodu;</div><div>&nbsp; &nbsp; Arz_BakimIhmalArr&#091;SeciliKayitIndeks&#093; = Trim(Arz_MemBakimIhmal.Text);</div><div>&nbsp; &nbsp; Arz_BasTarih&#091;SeciliKayitIndeks&#093; = Arz_EdtBaslangic.Text;</div><div>&nbsp; &nbsp; Arz_BasSaat&#091;SeciliKayitIndeks&#093; = Arz_EdtBaslangicSaat.Text;&nbsp;</div><div>&nbsp; &nbsp; if (Arz_CmbPlanlananBitis.ItemIndex == 0) { Arz_BitTarih&#091;SeciliKayitIndeks&#093; = 'Saat'; }</div><div>&nbsp; &nbsp; else if (Arz_CmbPlanlananBitis.ItemIndex == 1) { Arz_BitTarih&#091;SeciliKayitIndeks&#093; = 'Gün'; }</div><div>&nbsp; &nbsp; else if (Arz_CmbPlanlananBitis.ItemIndex == 2) { Arz_BitTarih&#091;SeciliKayitIndeks&#093; = 'Ay'; }</div><div>&nbsp; &nbsp; else { Arz_BitTarih&#091;SeciliKayitIndeks&#093; = ''; }</div><div>&nbsp; &nbsp; Arz_ArzKodArr&#091;SeciliKayitIndeks&#093; = Arz_EdtArizaKodu.Text;</div><div>&nbsp; &nbsp; Arz_BaglantiArr&#091;SeciliKayitIndeks&#093; = Arz_EdtBaglanti.Text;</div><div>&nbsp; &nbsp; Arz_KisiSayisiArr&#091;SeciliKayitIndeks&#093; = Arz_EdtKisiSayisi.Text;</div><div>&nbsp; &nbsp; Arz_OperatorArr&#091;SeciliKayitIndeks&#093; = Arz_EdtOperator.Text;</div><div>&nbsp; &nbsp; Arz_AciklamaArr&#091;SeciliKayitIndeks&#093; = Arz_EdtAciklama.Text;</div><div>&nbsp; }</div><div>&nbsp; Arz_RefreshList;</div><div>&nbsp; Arz_ClearForm;&nbsp;</div><div>}</div><div><br></div><div>void TakePhotoClick;</div><div>{</div><div>&nbsp; Clomosy.ImageChooser(FormMain, Arz_ImgPhoto);&nbsp;</div><div>}</div><div><br></div><div>void GoBack;</div><div>{</div><div>&nbsp; FormMain.Close;</div><div>}</div><div><br></div><div>void OnSearchRehber;</div><div>{</div><div>&nbsp; if (RehberJsonData == nil) { Exit; }</div><div>&nbsp; if (EdtRehberArama.Text == '')&nbsp;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; RehberJsonData.Filtered = False;</div><div>&nbsp; &nbsp; RehberJsonData.Filter = '';&nbsp;</div><div>&nbsp; }</div><div>&nbsp; else&nbsp;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; RehberJsonData.Filter = 'clCaption Like ' + Chr(39) + '%' + EdtRehberArama.Text + '%' + Chr(39);</div><div>&nbsp; &nbsp; RehberJsonData.Filtered = True;&nbsp;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void OnListItemClick;</div><div>var</div><div>&nbsp; SecilenAnaMetin, SecilenAltMetin: String;</div><div>&nbsp; q: TclSQLQuery;</div><div>{&nbsp;</div><div>&nbsp; SecilenAnaMetin = LsvBelgeRehber.clSelectedItemData(clCaption);</div><div>&nbsp; SecilenAltMetin = LsvBelgeRehber.clSelectedItemData(clText);</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (SecilenAnaMetin == GetText('LST_BOS'))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; RehberForm.Close;&nbsp;</div><div>&nbsp; &nbsp; Exit;</div><div>&nbsp; }</div><div><br></div><div>&nbsp; // =========================================================================</div><div>&nbsp; // BELGE NO SEÇİLDİĞİNDE VERİTABANINDAN DETAYLARIN ÇEKİLMESİ</div><div>&nbsp; // =========================================================================</div><div>&nbsp; if (GlobalLookupType == 'BELGE')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_EdtBelgeNo.Text = SecilenAnaMetin;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ConnectToDatabase;</div><div>&nbsp; &nbsp; if (IsDBConnected)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; q = TclSQLQuery.Create(nil);</div><div>&nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; q.Connection = Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; q.SQL.Text = 'SELECT ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CONVERT(VARCHAR, HR.TARIH, 104), '''') AS TARIH, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CONVERT(VARCHAR, HR.BAS_TAR, 104), '''') AS BAS_TAR, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(HR.BAS_SAAT, '''') AS BAS_SAAT, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CAST(HR.BAKIM_KISI_SAYISI AS VARCHAR), '''') AS KISI_SAYISI, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(HR.ACIKLAMA, '''') AS ACIKLAMA, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(HR.BAKIM_IHMAL_NEDENI, '''') AS IHMAL_NEDENI, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(CONVERT(VARCHAR, HR.BAKIM_BAGLANTI_ALAN, 104), '''') AS BAGLANTI, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(AZ.ARIZA_KODU, '''') AS ARIZA_KODU, ' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(M.MAKINE_KODU, '''') AS MAKINE_KODU, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'ISNULL(OP.OPERATOR_KODU, '''') AS OPERATOR ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'FROM &#091;TBLURTBAKIMHR&#093; HR WITH (NOLOCK) ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'LEFT JOIN &#091;TBLURTMAKINESB&#093; M WITH (NOLOCK) ON HR.MAKINE_KODU_RECID = M.REC_NO ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'LEFT JOIN &#091;TBLURTOPERATORSB&#093; OP WITH (NOLOCK) ON HR.OPERATOR_RECID = OP.REC_NO ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'LEFT JOIN &#091;TBLURTBAKIMARIZATIP&#093; AZ WITH (NOLOCK) ON HR.ARIZA_KODU_RECID = AZ.REC_NO ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'WHERE HR.BELGE_NO = ' + Chr(39) + SecilenAnaMetin + Chr(39);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; q.Open;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (not q.Eof)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtTarih &lt;&gt; nil) { Arz_EdtTarih.Text = q.FieldByName('TARIH').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtMakineKodu &lt;&gt; nil) { Arz_EdtMakineKodu.Text = q.FieldByName('MAKINE_KODU').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtArizaKodu &lt;&gt; nil) { Arz_EdtArizaKodu.Text = q.FieldByName('ARIZA_KODU').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtBaglanti &lt;&gt; nil) { Arz_EdtBaglanti.Text = q.FieldByName('BAGLANTI').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtBaslangic &lt;&gt; nil) { Arz_EdtBaslangic.Text = q.FieldByName('BAS_TAR').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtBaslangicSaat &lt;&gt; nil) { Arz_EdtBaslangicSaat.Text = q.FieldByName('BAS_SAAT').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtGirisZamani &lt;&gt; nil) { Arz_EdtGirisZamani.Text = q.FieldByName('BAS_TAR').AsString + ' ' + q.FieldByName('BAS_SAAT').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtKisiSayisi &lt;&gt; nil) { Arz_EdtKisiSayisi.Text = q.FieldByName('KISI_SAYISI').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtOperator &lt;&gt; nil) { Arz_EdtOperator.Text = q.FieldByName('OPERATOR').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_EdtAciklama &lt;&gt; nil) { Arz_EdtAciklama.Text = q.FieldByName('ACIKLAMA').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Arz_MemBakimIhmal &lt;&gt; nil) { Arz_MemBakimIhmal.Text = q.FieldByName('IHMAL_NEDENI').AsString; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; finally</div><div>&nbsp; &nbsp; &nbsp; &nbsp; q.Free;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else if (GlobalLookupType == 'ARIZA')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_EdtArizaKodu.Text = SecilenAnaMetin;</div><div>&nbsp; &nbsp; if (AT_EdtKod &lt;&gt; nil) { AT_EdtKod.Text = SecilenAnaMetin; }</div><div>&nbsp; &nbsp; if ((SecilenAltMetin &lt;&gt; '') &amp;&amp; (AT_EdtAd &lt;&gt; nil)) { AT_EdtAd.Text = SecilenAltMetin; }</div><div>&nbsp; }</div><div>&nbsp; else if (GlobalLookupType == 'MAKINE')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_EdtMakineKodu.Text = SecilenAnaMetin;</div><div>&nbsp; }</div><div>&nbsp; else if (GlobalLookupType == 'BAGLANTI')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_EdtBaglanti.Text = SecilenAnaMetin;</div><div>&nbsp; }</div><div>&nbsp; else if (GlobalLookupType == 'OPERATOR')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Arz_EdtOperator.Text = SecilenAnaMetin;&nbsp;</div><div>&nbsp; }</div><div><br></div><div>&nbsp; RehberForm.Close;</div><div>}</div><div><br></div><div>void BuildRehberForm;</div><div>var</div><div>&nbsp; RehberDP: TclProListViewDesignerPanel;</div><div>&nbsp; RehberLblMain, RehberLblSub: TclProLabel;</div><div>{</div><div>&nbsp; RehberForm = TclForm.Create(Self);&nbsp;</div><div>&nbsp; RehberForm.SetFormColor(ThemeKoyuRenk, ThemeAcikRenk, clGVertical);</div><div>&nbsp; EdtRehberArama = RehberForm.AddNewProEdit(RehberForm, 'EdtRehberArama', GetText('ARA_GENEL'));&nbsp;</div><div>&nbsp; EdtRehberArama.Align = alTop; EdtRehberArama.Margins.Top = 10; EdtRehberArama.Margins.Left = 10; EdtRehberArama.Margins.Right = 10; EdtRehberArama.Height = 40;</div><div>&nbsp; EdtRehberArama.clProSettings.FontSize = 14;</div><div>&nbsp; RehberForm.AddNewEvent(EdtRehberArama, tbeOnChange, 'OnSearchRehber');</div><div><br></div><div>&nbsp; LsvBelgeRehber = RehberForm.AddNewProListView(RehberForm, 'LsvBelgeRehber');&nbsp;</div><div>&nbsp; LsvBelgeRehber.Align = alClient; LsvBelgeRehber.Margins.Top = 10; LsvBelgeRehber.ListType = 'vertical';</div><div>&nbsp; LsvBelgeRehber.clProSettings.ItemHeight = 65;&nbsp;</div><div>&nbsp; LsvBelgeRehber.clProSettings.ItemSpace = 5;</div><div>&nbsp; LsvBelgeRehber.clProSettings.ColCount = 1;&nbsp;</div><div>&nbsp; LsvBelgeRehber.clProSettings.ViewType = lvIcon;&nbsp;</div><div>&nbsp; LsvBelgeRehber.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#FFFFFF');&nbsp;</div><div>&nbsp; LsvBelgeRehber.SetclProSettings(LsvBelgeRehber.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; RehberDP = RehberForm.AddNewProListViewDesignerPanel(LsvBelgeRehber, 'RehberDP');</div><div>&nbsp; RehberDP.Align = alTop; RehberDP.Height = 60; RehberDP.Width = 350;</div><div>&nbsp; RehberDP.clProSettings.BackgroundColor = clAlphaColor.clWhite;</div><div>&nbsp; RehberDP.clProSettings.BorderColor = clAlphaColor.clHexToColor(ThemeBorderColor);</div><div>&nbsp; RehberDP.clProSettings.BorderWidth = 1;</div><div>&nbsp; RehberDP.clProSettings.IsRound = True;</div><div>&nbsp; RehberDP.clProSettings.RoundHeight = 8;</div><div>&nbsp; RehberDP.clProSettings.RoundWidth = 8;</div><div>&nbsp; RehberDP.SetclProSettings(RehberDP.clProSettings);</div><div><br></div><div>&nbsp; RehberLblMain = RehberForm.AddNewProLabel(RehberDP, 'clCaption', '');</div><div>&nbsp; RehberLblMain.Align = alTop;</div><div>&nbsp; RehberLblMain.Height = 25; RehberLblMain.Margins.Left = 10; RehberLblMain.Margins.Top = 5;</div><div>&nbsp; RehberLblMain.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeTextColor);</div><div>&nbsp; RehberLblMain.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; RehberLblMain.clProSettings.FontSize = UiFontSize;</div><div>&nbsp; RehberLblMain.SetclProSettings(RehberLblMain.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; RehberLblSub = RehberForm.AddNewProLabel(RehberDP, 'clText', '');</div><div>&nbsp; RehberLblSub.Align = alTop; RehberLblSub.Height = 25; RehberLblSub.Margins.Left = 10;</div><div>&nbsp; RehberLblSub.clProSettings.FontColor = clAlphaColor.clHexToColor('#64748B');</div><div>&nbsp; RehberLblSub.clProSettings.FontSize = UiFontSize - 2;</div><div>&nbsp; RehberLblSub.SetclProSettings(RehberLblSub.clProSettings);</div><div><br></div><div>&nbsp; RehberDP.AddPanelObject(RehberLblMain, clCaption);</div><div>&nbsp; RehberDP.AddPanelObject(RehberLblSub, clText);</div><div>&nbsp; LsvBelgeRehber.SetDesignerPanel(RehberDP);</div><div>&nbsp;&nbsp;</div><div>&nbsp; RehberForm.AddNewEvent(LsvBelgeRehber, tbeOnItemClick, 'OnListItemClick');</div><div>}</div><div><br></div><div>void OpenRehber;</div><div>var&nbsp;</div><div>&nbsp; q: TclSQLQuery;</div><div>&nbsp; JsonStr, CleanMain, CleanSub: String;</div><div>{</div><div>&nbsp; ConnectToDatabase;</div><div>&nbsp; BuildRehberForm;</div><div>&nbsp; EdtRehberArama.Text = '';</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (not IsDBConnected)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Sunucuya bağlanılamadı! Lütfen internet/Wi-Fi bağlantınızı kontrol edin.');</div><div>&nbsp; &nbsp; JsonStr = '&#091;{"clCaption":"Sunucuya Ulaşılamıyor", "clText":"Veritabanı bağlantısı yok."}&#093;';</div><div>&nbsp; &nbsp; if (RehberJsonData &lt;&gt; nil) { RehberJsonData.Free; }</div><div>&nbsp; &nbsp; RehberJsonData = Clomosy.ClDataSetFromJSON(JsonStr);</div><div>&nbsp; &nbsp; LsvBelgeRehber.clLoadProListViewDataFromDataset(RehberJsonData);</div><div>&nbsp; &nbsp; RehberForm.Run;</div><div>&nbsp; &nbsp; Exit;</div><div>&nbsp; }</div><div><br></div><div>&nbsp; q = TclSQLQuery.Create(nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; q.Connection = Clomosy.DBSQLServerConnection;</div><div><br></div><div>&nbsp; &nbsp; // 1. BELGE SORGUSU (Tablo Alias'ları ile)</div><div>&nbsp; &nbsp; if (GlobalLookupType == 'BELGE')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; EdtRehberArama.TextPrompt = GetText('ARA_BELGE');</div><div>&nbsp; &nbsp; &nbsp; q.SQL.Text = 'SELECT TOP 200 ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'H.BELGE_NO AS MAIN_TEXT, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'M.MAKINE_KODU AS SUB_TEXT ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'FROM &#091;TBLURTBAKIMHR&#093; H WITH (NOLOCK) ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'INNER JOIN &#091;TBLURTMAKINESB&#093; M WITH (NOLOCK) ON H.MAKINE_KODU_RECID = M.REC_NO ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'ORDER BY H.BELGE_NO DESC';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; // 2. ARIZA SORGUSU</div><div>&nbsp; &nbsp; else if (GlobalLookupType == 'ARIZA')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; EdtRehberArama.TextPrompt = GetText('ARA_ARIZA');</div><div>&nbsp; &nbsp; &nbsp; q.SQL.Text = 'SELECT TOP 200 ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'ARIZA_KODU AS MAIN_TEXT, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'ARIZA_ADI AS SUB_TEXT ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'FROM &#091;TBLURTBAKIMARIZATIP&#093; WITH (NOLOCK) ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'ORDER BY ARIZA_KODU';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; // 3. MAKİNE SORGUSU</div><div>&nbsp; &nbsp; else if (GlobalLookupType == 'MAKINE')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; EdtRehberArama.TextPrompt = GetText('ARA_MAKINE');</div><div>&nbsp; &nbsp; &nbsp; q.SQL.Text = 'SELECT TOP 200 ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'MAKINE_KODU AS MAIN_TEXT, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'MAKINE_ADI AS SUB_TEXT ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'FROM &#091;TBLURTMAKINESB&#093; WITH (NOLOCK) ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'ORDER BY MAKINE_KODU';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; // 4. BAĞLANTI SORGUSU</div><div>&nbsp; &nbsp; else if (GlobalLookupType == 'BAGLANTI')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; EdtRehberArama.TextPrompt = GetText('ARA_BAGLANTI');</div><div>&nbsp; &nbsp; &nbsp; q.SQL.Text = 'SELECT TOP 200 ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'BAKIM_KODU AS MAIN_TEXT, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'BAKIM_ACIKLAMA AS SUB_TEXT ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'FROM &#091;TBLURTBAKIMSB&#093; WITH (NOLOCK) ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'WHERE BAKIM_TURU = 2 ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'ORDER BY BAKIM_KODU';</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; // 5. OPERATÖR SORGUSU</div><div>&nbsp; &nbsp; else if (GlobalLookupType == 'OPERATOR')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; EdtRehberArama.TextPrompt = GetText('ARA_OPERATOR');</div><div>&nbsp; &nbsp; &nbsp; q.SQL.Text = 'SELECT TOP 200 ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'(OPERATOR_KODU + '' - '' + ISNULL(OPERATOR_ADI, '''')) AS MAIN_TEXT, ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;''''' AS SUB_TEXT ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'FROM &#091;TBLURTOPERATORSB&#093; WITH (NOLOCK) ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'WHERE ISNULL(PASIF, 0) = 0 ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'ORDER BY OPERATOR_KODU';</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; q.Open;</div><div><br></div><div>&nbsp; &nbsp; JsonStr = '&#091;';</div><div>&nbsp; &nbsp; while (not q.Eof)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if (JsonStr &lt;&gt; '&#091;') { JsonStr = JsonStr + ','; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; CleanMain = q.FieldByName('MAIN_TEXT').AsString;</div><div>&nbsp; &nbsp; &nbsp; CleanMain = clGetStringReplace(CleanMain, '"', '\"');</div><div>&nbsp; &nbsp; &nbsp; CleanMain = clGetStringReplace(CleanMain, Chr(13), '');</div><div>&nbsp; &nbsp; &nbsp; CleanMain = clGetStringReplace(CleanMain, Chr(10), '');</div><div><br></div><div>&nbsp; &nbsp; &nbsp; CleanSub = q.FieldByName('SUB_TEXT').AsString;</div><div>&nbsp; &nbsp; &nbsp; CleanSub = clGetStringReplace(CleanSub, '"', '\"');</div><div>&nbsp; &nbsp; &nbsp; CleanSub = clGetStringReplace(CleanSub, Chr(13), '');</div><div>&nbsp; &nbsp; &nbsp; CleanSub = clGetStringReplace(CleanSub, Chr(10), '');</div><div><br></div><div>&nbsp; &nbsp; &nbsp; JsonStr = JsonStr + '{"clCaption":"' + CleanMain + '", "clText":"' + CleanSub + '"}';</div><div>&nbsp; &nbsp; &nbsp; q.Next;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; q.Free;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (JsonStr == '&#091;') { JsonStr = '&#091;{"clCaption":"' + GetText('LST_BOS') + '", "clText":""}&#093;'; }</div><div>&nbsp; else { JsonStr = JsonStr + '&#093;'; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (RehberJsonData &lt;&gt; nil) { RehberJsonData.Free; }</div><div>&nbsp; RehberJsonData = Clomosy.clDataSetFromJSON(JsonStr);</div><div>&nbsp; LsvBelgeRehber.clLoadProListViewDataFromDataset(RehberJsonData);</div><div>&nbsp; RehberForm.Run;</div><div>}</div><div><br></div><div><br></div><div>void BtnRehberBelgeClick; { GlobalLookupType = 'BELGE'; OpenRehber; }</div><div>void BtnRehberArizaClick; { GlobalLookupType = 'ARIZA'; OpenRehber; }</div><div>void BtnRehberMakineClick; { GlobalLookupType = 'MAKINE'; OpenRehber; }</div><div>void BtnRehberBaglantiClick; { GlobalLookupType = 'BAGLANTI'; OpenRehber; }</div><div>void BtnRehberOperatorClick; { GlobalLookupType = 'OPERATOR'; OpenRehber; }</div><div><br></div><div>{</div><div>&nbsp; IsDBConnected = False;</div><div>&nbsp; FormMain = TclGameForm.Create(Self);</div><div>&nbsp; FormMain.LytTopBar.Visible = False;</div><div>&nbsp; FormMain.BtnGoBack.Visible = False;</div><div>&nbsp; FormMain.BtnFormMenu.Visible = False;</div><div>&nbsp; FormMain.AddNewEvent(FormMain, tbeOnVirtualKeyboardShown, 'OnKeyboardShow');</div><div>&nbsp; FormMain.AddNewEvent(FormMain, tbeOnVirtualKeyboardHidden, 'OnKeyboardHide');</div><div>&nbsp; FormMain.AddNewEvent(FormMain, tbeOnFormActivate, 'DiliVeArayuzuGuncelle');</div><div><br></div><div>&nbsp; UiFontSize = 14;</div><div>&nbsp; OkunanFontAdi = 'Arial';&nbsp;</div><div>&nbsp; gAktifDilIndex = 0;</div><div>&nbsp; gBaglantiDenendi = 0;</div><div>&nbsp;&nbsp;</div><div>&nbsp; AyarlariYukle;</div><div>&nbsp; Arz_LoadDemoData;</div><div><br></div><div>&nbsp; PnlNavBar = FormMain.AddNewProPanel(FormMain, 'PnlNavBar');</div><div>&nbsp; PnlNavBar.Align = alTop;</div><div>&nbsp; PnlNavBar.Height = 70;</div><div>&nbsp; StyleHeaderBar(PnlNavBar);</div><div><br></div><div>&nbsp; BtnGeri = FormMain.AddNewProButton(PnlNavBar, 'BtnGeri', '&lt;');</div><div>&nbsp; BtnGeri.Align = alLeft; BtnGeri.Width = 48; BtnGeri.Margins.Top = 20;</div><div>&nbsp; BtnGeri.Margins.Bottom = 0;</div><div>&nbsp; BtnGeri.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; BtnGeri.clProSettings.BorderWidth = 0; BtnGeri.clProSettings.IsFill = False;</div><div>&nbsp; BtnGeri.clProSettings.FontSize = 20; BtnGeri.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; BtnGeri.clProSettings.FontName = OkunanFontAdi;</div><div>&nbsp; BtnGeri.SetclProSettings(BtnGeri.clProSettings);</div><div>&nbsp; FormMain.AddNewEvent(BtnGeri, tbeOnClick, 'GoBack');</div><div><br></div><div>&nbsp; LblNavTitle = FormMain.AddNewProLabel(PnlNavBar, 'LblNavTitle', '');</div><div>&nbsp; LblNavTitle.Align = alClient; LblNavTitle.Margins.Top = 30; LblNavTitle.Margins.Bottom = 0; LblNavTitle.Margins.Left = 10;</div><div>&nbsp; LblNavTitle.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; LblNavTitle.clProSettings.FontSize = UiFontSize + 4;</div><div>&nbsp; LblNavTitle.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; LblNavTitle.clProSettings.FontName = OkunanFontAdi;</div><div>&nbsp; LblNavTitle.SetclProSettings(LblNavTitle.clProSettings);</div><div><br></div><div>&nbsp; // --- ALT NAVİGASYON (BOTTOM NAV) ---</div><div>&nbsp; PnlBottomNav = FormMain.AddNewProPanel(FormMain, 'PnlBottomNav');</div><div>&nbsp; PnlBottomNav.Align = alBottom;&nbsp;</div><div>&nbsp; PnlBottomNav.Height = 60;&nbsp;</div><div>&nbsp; PnlBottomNav.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#FFFFFF');&nbsp;</div><div>&nbsp; PnlBottomNav.clProSettings.BorderColor = clAlphaColor.clHexToColor('#CBD5E1');&nbsp;</div><div>&nbsp; PnlBottomNav.clProSettings.BorderWidth = 2;&nbsp;</div><div>&nbsp; PnlBottomNav.SetclProSettings(PnlBottomNav.clProSettings);</div><div><br></div><div>&nbsp; BtnNav1 = FormMain.AddNewProButton(PnlBottomNav, 'BtnNav1', '&#128221; Hareket Kaydı');&nbsp;</div><div>&nbsp; BtnNav1.Align = alLeft;&nbsp;</div><div>&nbsp; BtnNav1.Width = FormMain.clWidth / 2;&nbsp;</div><div>&nbsp; BtnNav1.clProSettings.BackgroundColor = clAlphaColor.clNull;&nbsp;</div><div>&nbsp; BtnNav1.clProSettings.FontColor = clAlphaColor.clHexToColor(ThemeAcikRenk);&nbsp;</div><div>&nbsp; BtnNav1.clProSettings.BorderWidth = 0;&nbsp;</div><div>&nbsp; BtnNav1.clProSettings.FontName = OkunanFontAdi;&nbsp;</div><div>&nbsp; BtnNav1.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;&nbsp;</div><div>&nbsp; BtnNav1.SetclProSettings(BtnNav1.clProSettings);&nbsp;</div><div>&nbsp; FormMain.AddNewEvent(BtnNav1, tbeOnClick, 'NavBtnClick');</div><div>&nbsp;&nbsp;</div><div>&nbsp; BtnNav2 = FormMain.AddNewProButton(PnlBottomNav, 'BtnNav2', '&#128736; Arıza Tanımları');&nbsp;</div><div>&nbsp; BtnNav2.Align = alClient;&nbsp;</div><div>&nbsp; BtnNav2.clProSettings.BackgroundColor = clAlphaColor.clNull;&nbsp;</div><div>&nbsp; BtnNav2.clProSettings.FontColor = clAlphaColor.clHexToColor('#94A3B8');&nbsp;</div><div>&nbsp; BtnNav2.clProSettings.BorderWidth = 0;&nbsp;</div><div>&nbsp; BtnNav2.clProSettings.FontName = OkunanFontAdi;&nbsp;</div><div>&nbsp; BtnNav2.SetclProSettings(BtnNav2.clProSettings);&nbsp;</div><div>&nbsp; FormMain.AddNewEvent(BtnNav2, tbeOnClick, 'NavBtnClick');</div><div><br></div><div>&nbsp; ScrollForm = FormMain.AddNewVertScrollBox(FormMain, 'ScrollForm');</div><div>&nbsp; ScrollForm.Align = alClient;</div><div><br></div><div>&nbsp; PnlHeaderTop = FormMain.AddNewProPanel(ScrollForm, 'PnlHeaderTop');</div><div>&nbsp; PnlHeaderTop.Align = alTop;</div><div>&nbsp; PnlHeaderTop.Height = 56;</div><div>&nbsp; StyleHeaderBar(PnlHeaderTop);</div><div><br></div><div>&nbsp; BtnScroll = FormMain.AddNewHorzScrollBox(PnlHeaderTop, 'BtnScroll');&nbsp;</div><div>&nbsp; BtnScroll.Align = alClient;&nbsp;</div><div>&nbsp; BtnScroll.Margins.Left = 8;&nbsp;</div><div>&nbsp; BtnScroll.Margins.Right = 8;</div><div><br></div><div>&nbsp; BtnYeni = FormMain.AddNewProButton(BtnScroll, 'BtnYeni', '');</div><div>&nbsp; BtnYeni.Align = alLeft; BtnYeni.Width = 82; BtnYeni.Margins.Left = 4; BtnYeni.Margins.Top = 9; BtnYeni.Margins.Bottom = 9;</div><div>&nbsp; StyleWhiteButton(BtnYeni);</div><div>&nbsp; FormMain.AddNewEvent(BtnYeni, tbeOnClick, 'Arz_BtnYeniClick');</div><div><br></div><div>&nbsp; BtnKaydet = FormMain.AddNewProButton(BtnScroll, 'BtnKaydet', '');</div><div>&nbsp; BtnKaydet.Align = alLeft; BtnKaydet.Width = 88; BtnKaydet.Margins.Left = 8; BtnKaydet.Margins.Top = 9; BtnKaydet.Margins.Bottom = 9;</div><div>&nbsp; StyleWhiteButton(BtnKaydet);</div><div>&nbsp; FormMain.AddNewEvent(BtnKaydet, tbeOnClick, 'Arz_KaydetKayit');</div><div><br></div><div>&nbsp; PnlMainCard = FormMain.AddNewProPanel(ScrollForm, 'PnlMainCard');</div><div>&nbsp; PnlMainCard.Align = alTop;</div><div>&nbsp; PnlMainCard.Height = 2000;</div><div>&nbsp; PnlMainCard.Margins.Left = 15; PnlMainCard.Margins.Right = 15; PnlMainCard.Margins.Top = 15; PnlMainCard.Margins.Bottom = 25;</div><div>&nbsp; StyleMainCard(PnlMainCard);</div><div>&nbsp; PnlMainCard.Visible = True;</div><div>&nbsp;&nbsp;</div><div>&nbsp; LblSect1 = FormMain.AddNewProLabel(PnlMainCard, 'LblSect1', '');</div><div>&nbsp; LblSect1.Align = alTop; LblSect1.Height = 35; LblSect1.Margins.Left = 15; LblSect1.Margins.Top = 15;</div><div>&nbsp; StyleSectionTitle(LblSect1);</div><div><br></div><div>&nbsp; Arz_GrpBelgeNo = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpBelgeNo');</div><div>&nbsp; Arz_GrpBelgeNo.Align = alTop; Arz_GrpBelgeNo.Height = 65; Arz_GrpBelgeNo.Margins.Left = 15; Arz_GrpBelgeNo.Margins.Right = 15; Arz_GrpBelgeNo.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpBelgeNo);</div><div><br></div><div>&nbsp; Arz_LblBelgeNo = FormMain.AddNewProLabel(Arz_GrpBelgeNo, 'Arz_LblBelgeNo', '');</div><div>&nbsp; Arz_LblBelgeNo.Align = alTop; Arz_LblBelgeNo.Height = 18; Arz_LblBelgeNo.Margins.Left = 10; Arz_LblBelgeNo.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblBelgeNo);</div><div><br></div><div>&nbsp; Arz_BtnRehberBelge = FormMain.AddNewProButton(Arz_GrpBelgeNo, 'Arz_BtnRehberBelge', '&#128269;');</div><div>&nbsp; Arz_BtnRehberBelge.Align = alRight; Arz_BtnRehberBelge.Width = 45; Arz_BtnRehberBelge.Margins.Right = 5; Arz_BtnRehberBelge.Margins.Bottom = 5;</div><div>&nbsp; StyleRehberButton(Arz_BtnRehberBelge);</div><div>&nbsp; FormMain.AddNewEvent(Arz_BtnRehberBelge, tbeOnClick, 'BtnRehberBelgeClick');</div><div><br></div><div>&nbsp; Arz_EdtBelgeNo = FormMain.AddNewProEdit(Arz_GrpBelgeNo, 'Arz_EdtBelgeNo', '');</div><div>&nbsp; Arz_EdtBelgeNo.Align = alClient; Arz_EdtBelgeNo.Margins.Left = 10; Arz_EdtBelgeNo.Margins.Right = 5; Arz_EdtBelgeNo.Margins.Bottom = 5;</div><div>&nbsp; StyleReadonlyEdit(Arz_EdtBelgeNo); Arz_EdtBelgeNo.CanFocus = False;</div><div>&nbsp; FormMain.AddNewEvent(Arz_EdtBelgeNo, tbeOnClick, 'BtnRehberBelgeClick');</div><div><br></div><div>&nbsp; Arz_GrpTarih = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpTarih');</div><div>&nbsp; Arz_GrpTarih.Align = alTop; Arz_GrpTarih.Height = 65; Arz_GrpTarih.Margins.Left = 15; Arz_GrpTarih.Margins.Right = 15; Arz_GrpTarih.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpTarih);</div><div><br></div><div>&nbsp; Arz_LblTarih = FormMain.AddNewProLabel(Arz_GrpTarih, 'Arz_LblTarih', '');</div><div>&nbsp; Arz_LblTarih.Align = alTop; Arz_LblTarih.Height = 18; Arz_LblTarih.Margins.Left = 10; Arz_LblTarih.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblTarih);</div><div><br></div><div>&nbsp; Arz_EdtTarih = FormMain.AddNewProEdit(Arz_GrpTarih, 'Arz_EdtTarih', '');</div><div>&nbsp; Arz_EdtTarih.Align = alClient; Arz_EdtTarih.Margins.Left = 10; Arz_EdtTarih.Margins.Right = 10; Arz_EdtTarih.Margins.Bottom = 5;</div><div>&nbsp; StyleReadonlyEdit(Arz_EdtTarih); Arz_EdtTarih.CanFocus = False;</div><div><br></div><div>&nbsp; Arz_GrpArizaKodu = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpArizaKodu');</div><div>&nbsp; Arz_GrpArizaKodu.Align = alTop; Arz_GrpArizaKodu.Height = 65; Arz_GrpArizaKodu.Margins.Left = 15; Arz_GrpArizaKodu.Margins.Right = 15; Arz_GrpArizaKodu.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpArizaKodu);</div><div><br></div><div>&nbsp; Arz_LblArizaKodu = FormMain.AddNewProLabel(Arz_GrpArizaKodu, 'Arz_LblArizaKodu', '');</div><div>&nbsp; Arz_LblArizaKodu.Align = alTop; Arz_LblArizaKodu.Height = 18; Arz_LblArizaKodu.Margins.Left = 10; Arz_LblArizaKodu.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblArizaKodu);</div><div><br></div><div>&nbsp; Arz_BtnRehberAriza = FormMain.AddNewProButton(Arz_GrpArizaKodu, 'Arz_BtnRehberAriza', '&#128269;');</div><div>&nbsp; Arz_BtnRehberAriza.Align = alRight; Arz_BtnRehberAriza.Width = 45; Arz_BtnRehberAriza.Margins.Right = 5; Arz_BtnRehberAriza.Margins.Bottom = 5;</div><div>&nbsp; StyleRehberButton(Arz_BtnRehberAriza);</div><div>&nbsp; FormMain.AddNewEvent(Arz_BtnRehberAriza, tbeOnClick, 'BtnRehberArizaClick');</div><div><br></div><div>&nbsp; Arz_EdtArizaKodu = FormMain.AddNewProEdit(Arz_GrpArizaKodu, 'Arz_EdtArizaKodu', '');</div><div>&nbsp; Arz_EdtArizaKodu.Align = alClient; Arz_EdtArizaKodu.Margins.Left = 10; Arz_EdtArizaKodu.Margins.Right = 5; Arz_EdtArizaKodu.Margins.Bottom = 5;</div><div>&nbsp; StyleReadonlyEdit(Arz_EdtArizaKodu); Arz_EdtArizaKodu.CanFocus = False;</div><div>&nbsp; FormMain.AddNewEvent(Arz_EdtArizaKodu, tbeOnClick, 'BtnRehberArizaClick');</div><div><br></div><div>&nbsp; Arz_GrpMakineKodu = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpMakineKodu');</div><div>&nbsp; Arz_GrpMakineKodu.Align = alTop; Arz_GrpMakineKodu.Height = 65; Arz_GrpMakineKodu.Margins.Left = 15; Arz_GrpMakineKodu.Margins.Right = 15; Arz_GrpMakineKodu.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpMakineKodu);</div><div><br></div><div>&nbsp; Arz_LblMakineKodu = FormMain.AddNewProLabel(Arz_GrpMakineKodu, 'Arz_LblMakineKodu', '');</div><div>&nbsp; Arz_LblMakineKodu.Align = alTop; Arz_LblMakineKodu.Height = 18; Arz_LblMakineKodu.Margins.Left = 10; Arz_LblMakineKodu.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblMakineKodu);</div><div><br></div><div>&nbsp; Arz_BtnRehberMakine = FormMain.AddNewProButton(Arz_GrpMakineKodu, 'Arz_BtnRehberMakine', '&#128269;');</div><div>&nbsp; Arz_BtnRehberMakine.Align = alRight; Arz_BtnRehberMakine.Width = 45; Arz_BtnRehberMakine.Margins.Right = 5; Arz_BtnRehberMakine.Margins.Bottom = 5;</div><div>&nbsp; StyleRehberButton(Arz_BtnRehberMakine);</div><div>&nbsp; FormMain.AddNewEvent(Arz_BtnRehberMakine, tbeOnClick, 'BtnRehberMakineClick');</div><div><br></div><div>&nbsp; Arz_EdtMakineKodu = FormMain.AddNewProEdit(Arz_GrpMakineKodu, 'Arz_EdtMakineKodu', '');</div><div>&nbsp; Arz_EdtMakineKodu.Align = alClient; Arz_EdtMakineKodu.Margins.Left = 10; Arz_EdtMakineKodu.Margins.Right = 5; Arz_EdtMakineKodu.Margins.Bottom = 5;</div><div>&nbsp; StyleReadonlyEdit(Arz_EdtMakineKodu); Arz_EdtMakineKodu.CanFocus = False;</div><div>&nbsp; FormMain.AddNewEvent(Arz_EdtMakineKodu, tbeOnClick, 'BtnRehberMakineClick');</div><div><br></div><div>&nbsp; Arz_GrpBaglanti = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpBaglanti');</div><div>&nbsp; Arz_GrpBaglanti.Align = alTop; Arz_GrpBaglanti.Height = 65; Arz_GrpBaglanti.Margins.Left = 15; Arz_GrpBaglanti.Margins.Right = 15; Arz_GrpBaglanti.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpBaglanti);</div><div><br></div><div>&nbsp; Arz_LblBaglanti = FormMain.AddNewProLabel(Arz_GrpBaglanti, 'Arz_LblBaglanti', '');</div><div>&nbsp; Arz_LblBaglanti.Align = alTop; Arz_LblBaglanti.Height = 18; Arz_LblBaglanti.Margins.Left = 10; Arz_LblBaglanti.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblBaglanti);</div><div><br></div><div>&nbsp; Arz_BtnRehberBaglanti = FormMain.AddNewProButton(Arz_GrpBaglanti, 'Arz_BtnRehberBaglanti', '&#128269;');</div><div>&nbsp; Arz_BtnRehberBaglanti.Align = alRight; Arz_BtnRehberBaglanti.Width = 45; Arz_BtnRehberBaglanti.Margins.Right = 5; Arz_BtnRehberBaglanti.Margins.Bottom = 5;</div><div>&nbsp; StyleRehberButton(Arz_BtnRehberBaglanti);</div><div>&nbsp; FormMain.AddNewEvent(Arz_BtnRehberBaglanti, tbeOnClick, 'BtnRehberBaglantiClick');</div><div><br></div><div>&nbsp; Arz_EdtBaglanti = FormMain.AddNewProEdit(Arz_GrpBaglanti, 'Arz_EdtBaglanti', '');</div><div>&nbsp; Arz_EdtBaglanti.Align = alClient; Arz_EdtBaglanti.Margins.Left = 10; Arz_EdtBaglanti.Margins.Right = 5; Arz_EdtBaglanti.Margins.Bottom = 5;</div><div>&nbsp; StyleReadonlyEdit(Arz_EdtBaglanti); Arz_EdtBaglanti.CanFocus = False;</div><div>&nbsp; FormMain.AddNewEvent(Arz_EdtBaglanti, tbeOnClick, 'BtnRehberBaglantiClick');</div><div><br></div><div>&nbsp; Arz_GrpBaslangic = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpBaslangic');</div><div>&nbsp; Arz_GrpBaslangic.Align = alTop; Arz_GrpBaslangic.Height = 65; Arz_GrpBaslangic.Margins.Left = 15; Arz_GrpBaslangic.Margins.Right = 15; Arz_GrpBaslangic.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpBaslangic);</div><div><br></div><div>&nbsp; Arz_LblBaslangic = FormMain.AddNewProLabel(Arz_GrpBaslangic, 'Arz_LblBaslangic', '');</div><div>&nbsp; Arz_LblBaslangic.Align = alTop; Arz_LblBaslangic.Height = 18; Arz_LblBaslangic.Margins.Left = 10; Arz_LblBaslangic.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblBaslangic);</div><div><br></div><div>&nbsp; Arz_EdtBaslangicSaat = FormMain.AddNewProEdit(Arz_GrpBaslangic, 'Arz_EdtBaslangicSaat', '');</div><div>&nbsp; Arz_EdtBaslangicSaat.Align = alRight; Arz_EdtBaslangicSaat.Width = 80; Arz_EdtBaslangicSaat.Margins.Right = 10; Arz_EdtBaslangicSaat.Margins.Bottom = 5;</div><div>&nbsp; StyleReadonlyEdit(Arz_EdtBaslangicSaat); Arz_EdtBaslangicSaat.ReadOnly = True; Arz_EdtBaslangicSaat.CanFocus = False;</div><div><br></div><div>&nbsp; Arz_EdtBaslangic = FormMain.AddNewProEdit(Arz_GrpBaslangic, 'Arz_EdtBaslangic', '');</div><div>&nbsp; Arz_EdtBaslangic.Align = alClient; Arz_EdtBaslangic.Margins.Left = 10; Arz_EdtBaslangic.Margins.Right = 5; Arz_EdtBaslangic.Margins.Bottom = 5;</div><div>&nbsp; StyleReadonlyEdit(Arz_EdtBaslangic); Arz_EdtBaslangic.ReadOnly = True; Arz_EdtBaslangic.CanFocus = False;</div><div><br></div><div>&nbsp; Arz_GrpGirisZamani = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpGirisZamani');</div><div>&nbsp; Arz_GrpGirisZamani.Align = alTop; Arz_GrpGirisZamani.Height = 65; Arz_GrpGirisZamani.Margins.Left = 15; Arz_GrpGirisZamani.Margins.Right = 15; Arz_GrpGirisZamani.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpGirisZamani);</div><div><br></div><div>&nbsp; Arz_LblGirisZamani = FormMain.AddNewProLabel(Arz_GrpGirisZamani, 'Arz_LblGirisZamani', '');</div><div>&nbsp; Arz_LblGirisZamani.Align = alTop; Arz_LblGirisZamani.Height = 18; Arz_LblGirisZamani.Margins.Left = 10; Arz_LblGirisZamani.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblGirisZamani);</div><div><br></div><div>&nbsp; Arz_EdtGirisZamani = FormMain.AddNewProEdit(Arz_GrpGirisZamani, 'Arz_EdtGirisZamani', '');</div><div>&nbsp; Arz_EdtGirisZamani.Align = alClient; Arz_EdtGirisZamani.Margins.Left = 10; Arz_EdtGirisZamani.Margins.Right = 10; Arz_EdtGirisZamani.Margins.Bottom = 5;</div><div>&nbsp; StyleReadonlyEdit(Arz_EdtGirisZamani); Arz_EdtGirisZamani.ReadOnly = True; Arz_EdtGirisZamani.CanFocus = False;</div><div><br></div><div>&nbsp; Arz_GrpPlanlananBitis = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpPlanlananBitis');</div><div>&nbsp; Arz_GrpPlanlananBitis.Align = alTop; Arz_GrpPlanlananBitis.Height = 65; Arz_GrpPlanlananBitis.Margins.Left = 15; Arz_GrpPlanlananBitis.Margins.Right = 15; Arz_GrpPlanlananBitis.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpPlanlananBitis);</div><div><br></div><div>&nbsp; Arz_LblPlanlananBitis = FormMain.AddNewProLabel(Arz_GrpPlanlananBitis, 'Arz_LblPlanlananBitis', '');</div><div>&nbsp; Arz_LblPlanlananBitis.Align = alTop; Arz_LblPlanlananBitis.Height = 18; Arz_LblPlanlananBitis.Margins.Left = 10; Arz_LblPlanlananBitis.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblPlanlananBitis);</div><div><br></div><div>&nbsp; Arz_CmbPlanlananBitis = FormMain.AddNewComboBox(Arz_GrpPlanlananBitis, 'Arz_CmbPlanlananBitis');</div><div>&nbsp; Arz_CmbPlanlananBitis.Align = alClient; Arz_CmbPlanlananBitis.Margins.Left = 10; Arz_CmbPlanlananBitis.Margins.Right = 10; Arz_CmbPlanlananBitis.Margins.Bottom = 5;</div><div><br></div><div>&nbsp; Arz_GrpKisiSayisi = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpKisiSayisi');</div><div>&nbsp; Arz_GrpKisiSayisi.Align = alTop; Arz_GrpKisiSayisi.Height = 65; Arz_GrpKisiSayisi.Margins.Left = 15; Arz_GrpKisiSayisi.Margins.Right = 15; Arz_GrpKisiSayisi.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpKisiSayisi);</div><div><br></div><div>&nbsp; Arz_LblKisiSayisi = FormMain.AddNewProLabel(Arz_GrpKisiSayisi, 'Arz_LblKisiSayisi', '');</div><div>&nbsp; Arz_LblKisiSayisi.Align = alTop; Arz_LblKisiSayisi.Height = 18; Arz_LblKisiSayisi.Margins.Left = 10; Arz_LblKisiSayisi.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblKisiSayisi);</div><div><br></div><div>&nbsp; Arz_EdtKisiSayisi = FormMain.AddNewProEdit(Arz_GrpKisiSayisi, 'Arz_EdtKisiSayisi', '');</div><div>&nbsp; Arz_EdtKisiSayisi.Align = alClient; Arz_EdtKisiSayisi.Margins.Left = 10; Arz_EdtKisiSayisi.Margins.Right = 10; Arz_EdtKisiSayisi.Margins.Bottom = 5;</div><div>&nbsp; StyleInputEdit(Arz_EdtKisiSayisi);</div><div>&nbsp; BindInputFocus(Arz_EdtKisiSayisi);</div><div>&nbsp; FormMain.AddNewEvent(Arz_EdtKisiSayisi, tbeOnEnter, 'KlvKisiSayisi');</div><div><br></div><div>&nbsp; Arz_GrpOperator = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpOperator');</div><div>&nbsp; Arz_GrpOperator.Align = alTop; Arz_GrpOperator.Height = 65; Arz_GrpOperator.Margins.Left = 15; Arz_GrpOperator.Margins.Right = 15; Arz_GrpOperator.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpOperator);</div><div><br></div><div>&nbsp; Arz_LblOperator = FormMain.AddNewProLabel(Arz_GrpOperator, 'Arz_LblOperator', '');</div><div>&nbsp; Arz_LblOperator.Align = alTop; Arz_LblOperator.Height = 18; Arz_LblOperator.Margins.Left = 10; Arz_LblOperator.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblOperator);</div><div><br></div><div>&nbsp; Arz_BtnRehberOperator = FormMain.AddNewProButton(Arz_GrpOperator, 'Arz_BtnRehberOperator', '&#128269;');</div><div>&nbsp; Arz_BtnRehberOperator.Align = alRight; Arz_BtnRehberOperator.Width = 45; Arz_BtnRehberOperator.Margins.Right = 5; Arz_BtnRehberOperator.Margins.Bottom = 5;</div><div>&nbsp; StyleRehberButton(Arz_BtnRehberOperator);</div><div>&nbsp; FormMain.AddNewEvent(Arz_BtnRehberOperator, tbeOnClick, 'BtnRehberOperatorClick');</div><div><br></div><div>&nbsp; Arz_EdtOperator = FormMain.AddNewProEdit(Arz_GrpOperator, 'Arz_EdtOperator', '');</div><div>&nbsp; Arz_EdtOperator.Align = alClient; Arz_EdtOperator.Margins.Left = 10; Arz_EdtOperator.Margins.Right = 5; Arz_EdtOperator.Margins.Bottom = 5;</div><div>&nbsp; StyleReadonlyEdit(Arz_EdtOperator); Arz_EdtOperator.CanFocus = False;</div><div>&nbsp; FormMain.AddNewEvent(Arz_EdtOperator, tbeOnClick, 'BtnRehberOperatorClick');</div><div><br></div><div>&nbsp; Arz_GrpAciklama = FormMain.AddNewProPanel(PnlMainCard, 'Arz_GrpAciklama');</div><div>&nbsp; Arz_GrpAciklama.Align = alTop; Arz_GrpAciklama.Height = 65; Arz_GrpAciklama.Margins.Left = 15; Arz_GrpAciklama.Margins.Right = 15; Arz_GrpAciklama.Margins.Top = 10;</div><div>&nbsp; StyleInputPanel(Arz_GrpAciklama);</div><div><br></div><div>&nbsp; Arz_LblAciklama = FormMain.AddNewProLabel(Arz_GrpAciklama, 'Arz_LblAciklama', '');</div><div>&nbsp; Arz_LblAciklama.Align = alTop; Arz_LblAciklama.Height = 18; Arz_LblAciklama.Margins.Left = 10; Arz_LblAciklama.Margins.Top = 5;</div><div>&nbsp; StyleInputLabel(Arz_LblAciklama);</div><div><br></div><div>&nbsp; Arz_EdtAciklama = FormMain.AddNewProEdit(Arz_GrpAciklama, 'Arz_EdtAciklama', '');</div><div>&nbsp; Arz_EdtAciklama.Align = alClient; Arz_EdtAciklama.Margins.Left = 10; Arz_EdtAciklama.Margins.Right = 10; Arz_EdtAciklama.Margins.Bottom = 5;</div><div>&nbsp; StyleInputEdit(Arz_EdtAciklama);</div><div>&nbsp; BindInputFocus(Arz_EdtAciklama);</div><div>&nbsp; FormMain.AddNewEvent(Arz_EdtAciklama, tbeOnEnter, 'KlvAciklama');</div><div><br></div><div>&nbsp; LblGridTitle = FormMain.AddNewProLabel(PnlMainCard, 'LblGridTitle', '');</div><div>&nbsp; LblGridTitle.Align = alTop; LblGridTitle.Height = 35; LblGridTitle.Margins.Left = 15; LblGridTitle.Margins.Top = 15;</div><div>&nbsp; StyleSectionTitle(LblGridTitle);</div><div><br></div><div>&nbsp; clProGrid = FormMain.AddNewProGrid(PnlMainCard, 'clProGrid');</div><div>&nbsp; clProGrid.Align = alTop;</div><div>&nbsp; clProGrid.Height = 250;</div><div>&nbsp; clProGrid.Margins.Left = 15;</div><div>&nbsp; clProGrid.Margins.Right = 15;</div><div>&nbsp; clProGrid.Margins.Top = 5;</div><div>&nbsp; clProGrid.Options.ColumnSize.Stretch = True;</div><div>&nbsp; FormMain.AddNewEvent(clProGrid, tbeOnProGridCellClick, 'Arz_ListedenSec');</div><div><br></div><div>&nbsp; LblPhotoTitle = FormMain.AddNewProLabel(PnlMainCard, 'LblPhotoTitle', '');</div><div>&nbsp; LblPhotoTitle.Align = alTop; LblPhotoTitle.Height = 35; LblPhotoTitle.Margins.Left = 15; LblPhotoTitle.Margins.Top = 15;</div><div>&nbsp; StyleSectionTitle(LblPhotoTitle);</div><div><br></div><div>&nbsp; Arz_PnlPhotoKutu = FormMain.AddNewProPanel(PnlMainCard, 'Arz_PnlPhotoKutu');</div><div>&nbsp; Arz_PnlPhotoKutu.Align = alTop; Arz_PnlPhotoKutu.Height = 150; Arz_PnlPhotoKutu.Margins.Left = 15; Arz_PnlPhotoKutu.Margins.Right = 15; Arz_PnlPhotoKutu.Margins.Top = 5;</div><div>&nbsp; StyleInputPanel(Arz_PnlPhotoKutu);</div><div><br></div><div>&nbsp; BtnResimCek = FormMain.AddNewProButton(Arz_PnlPhotoKutu, 'BtnResimCek', '');</div><div>&nbsp; BtnResimCek.Align = alBottom; BtnResimCek.Height = 40; BtnResimCek.Margins.Left = 10; BtnResimCek.Margins.Right = 10; BtnResimCek.Margins.Bottom = 10;</div><div>&nbsp; StylePrimaryButton(BtnResimCek);</div><div>&nbsp; FormMain.AddNewEvent(BtnResimCek, tbeOnClick, 'TakePhotoClick');</div><div><br></div><div>&nbsp; Arz_ImgPhoto = FormMain.AddNewImage(Arz_PnlPhotoKutu, 'Arz_ImgPhoto');</div><div>&nbsp; Arz_ImgPhoto.Align = alClient; Arz_ImgPhoto.Margins.Left = 10; Arz_ImgPhoto.Margins.Top = 10; Arz_ImgPhoto.Margins.Right = 10; Arz_ImgPhoto.Margins.Bottom = 5;</div><div><br></div><div>&nbsp; Arz_LblBakimIhmal = FormMain.AddNewProLabel(PnlMainCard, 'Arz_LblBakimIhmal', '');</div><div>&nbsp; Arz_LblBakimIhmal.Align = alTop; Arz_LblBakimIhmal.Height = 35; Arz_LblBakimIhmal.Margins.Left = 15; Arz_LblBakimIhmal.Margins.Top = 15;</div><div>&nbsp; StyleSectionTitle(Arz_LblBakimIhmal);</div><div><br></div><div>&nbsp; Arz_PnlBakimIhmalKutu = FormMain.AddNewProPanel(PnlMainCard, 'Arz_PnlBakimIhmalKutu');</div><div>&nbsp; Arz_PnlBakimIhmalKutu.Align = alTop; Arz_PnlBakimIhmalKutu.Height = 150; Arz_PnlBakimIhmalKutu.Margins.Left = 15; Arz_PnlBakimIhmalKutu.Margins.Right = 15; Arz_PnlBakimIhmalKutu.Margins.Top = 5;</div><div>&nbsp; StyleInputPanel(Arz_PnlBakimIhmalKutu);</div><div><br></div><div>&nbsp; Arz_MemBakimIhmal = FormMain.AddNewMemo(Arz_PnlBakimIhmalKutu, 'Arz_MemBakimIhmal','');</div><div>&nbsp; Arz_MemBakimIhmal.Align = alClient; Arz_MemBakimIhmal.Margins.Left = 10; Arz_MemBakimIhmal.Margins.Top = 10; Arz_MemBakimIhmal.Margins.Right = 10; Arz_MemBakimIhmal.Margins.Bottom = 10;</div><div>&nbsp; FormMain.AddNewEvent(Arz_MemBakimIhmal, tbeOnEnter, 'KlvBakimIhmal');</div><div><br></div><div>&nbsp; // --- ARIZA TANIMLARI PANELİNİ İNŞA ET ---</div><div>&nbsp; BuildArizaTanimPaneli;</div><div><br></div><div>&nbsp; Arz_ClearForm;</div><div>&nbsp; ApplyUiSettings;</div><div>&nbsp; Arz_RefreshList;</div><div>&nbsp; FormMain.Run;</div><div>}</div><div>&nbsp;kodda belge no basıldığın da gelecek alanlar bozuk geliyor ancak sistemde sütun adları doğru&nbsp; &nbsp; -- 1. BELGE SORGUSU (Tablo Alias'ları eklendi)</div><div>SELECT TOP 200&nbsp;</div><div>&nbsp; &nbsp; H.BELGE_NO AS MAIN_TEXT,&nbsp;</div><div>&nbsp; &nbsp; M.MAKINE_KODU AS SUB_TEXT&nbsp;</div><div>FROM &#091;TBLURTBAKIMHR&#093; H WITH (NOLOCK)&nbsp;</div><div>INNER JOIN &#091;TBLURTMAKINESB&#093; M WITH (NOLOCK) ON H.MAKINE_KODU_RECID = M.REC_NO&nbsp;</div><div>ORDER BY H.BELGE_NO DESC;</div><div><br></div><div>-- 2. ARIZA SORGUSU</div><div>SELECT TOP 200&nbsp;</div><div>&nbsp; &nbsp; ARIZA_KODU AS MAIN_TEXT,&nbsp;</div><div>&nbsp; &nbsp; ARIZA_ADI AS SUB_TEXT&nbsp;</div><div>FROM &#091;TBLURTBAKIMARIZATIP&#093; WITH (NOLOCK)&nbsp;</div><div>ORDER BY ARIZA_KODU;</div><div><br></div><div>-- 3. MAKİNE SORGUSU</div><div>SELECT TOP 200&nbsp;</div><div>&nbsp; &nbsp; MAKINE_KODU AS MAIN_TEXT,&nbsp;</div><div>&nbsp; &nbsp; MAKINE_ADI AS SUB_TEXT&nbsp;</div><div>FROM &#091;TBLURTMAKINESB&#093; WITH (NOLOCK)&nbsp;</div><div>ORDER BY MAKINE_KODU;</div><div><br></div><div>-- 4. BAĞLANTI SORGUSU</div><div>SELECT TOP 200&nbsp;</div><div>&nbsp; &nbsp; BAKIM_KODU AS MAIN_TEXT,&nbsp;</div><div>&nbsp; &nbsp; BAKIM_ACIKLAMA AS SUB_TEXT&nbsp;</div><div>FROM &#091;TBLURTBAKIMSB&#093; WITH (NOLOCK)&nbsp;</div><div>WHERE BAKIM_TURU = 2&nbsp;</div><div>ORDER BY BAKIM_KODU;</div><div><br></div><div>-- 5. OPERATÖR SORGUSU</div><div>SELECT TOP 200&nbsp;</div><div>&nbsp; &nbsp; (OPERATOR_KODU + ' - ' + ISNULL(OPERATOR_ADI, '')) AS MAIN_TEXT,&nbsp;</div><div>&nbsp; &nbsp; '' AS SUB_TEXT&nbsp;</div><div>FROM &#091;TBLURTOPERATORSB&#093; WITH (NOLOCK)&nbsp;</div><div>WHERE ISNULL(PASIF, 0) = 0&nbsp;</div><div>ORDER BY OPERATOR_KODU;</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496"</a> integrity="sha512-ZE9pZaUXND66v380QUtch/5sE9tPFh2zg45pR2PB0CVkCtOREv2AJKkSidISWkysEuQ0EH8faUU5du78bx87UQ==" 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>Wed, 22 Jul 2026 17:22:05 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1628&amp;PID=3768#3768</guid>
  </item> 
 </channel>
</rss>