<?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 : HATA</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : HATA]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 25 Jun 2026 17:20:22 +0000</pubDate>
  <lastBuildDate>Thu, 25 Jun 2026 14:16:01 +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=1558</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[HATA : Merhaba Mehmet,void DBBaglan;{...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1558&amp;PID=3594#3594</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> 1558<br /><strong>Gönderim Zamanı:</strong> 25&nbsp;Haziran&nbsp;2026 Saat 14:16<br /><br />Merhaba Mehmet,&nbsp;<br><br><div>void DBBaglan;</div><div>{</div><div>&nbsp; if (Clomosy.PlatformIsMobile)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; LDBPath = Clomosy.AppFilesPath + 'PristineTask.db3';</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; LDBPath = Clomosy.AppFilesPath + 'PristineTask.db3';</div><div>&nbsp; }</div><div><br></div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteConnect(LDBPath, '');</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Veritabanı bağlantı hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}<br><br>ilgili prosedürü günceller misin?&nbsp;<br>Hata varsa tekrar yazar mısın?</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v833ccba57c9e4d2798f2e76cebdd09a11778172276447" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v833ccba57c9e4d2798f2e76cebdd09a11778172276447"</a> integrity="sha512-57MDmcccJXYtNnH+ZiBwzC4jb2rvgVCEokYN+L/nLlmO8rfYT/gIpW2A569iJ/3b+0UEasghjuZH/ma3wIs/EQ==" 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>Thu, 25 Jun 2026 14:16:01 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1558&amp;PID=3594#3594</guid>
  </item> 
  <item>
   <title><![CDATA[HATA : var LDBPath: String;void DBBaglan;{...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1558&amp;PID=3593#3593</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=465">MehmetOzcan</a><br /><strong>Konu:</strong> 1558<br /><strong>Gönderim Zamanı:</strong> 25&nbsp;Haziran&nbsp;2026 Saat 14:01<br /><br /><div>var</div><div>&nbsp; LDBPath: String;</div><div><br></div><div>void DBBaglan;</div><div>{</div><div>&nbsp; if (Clomosy.PlatformIsMobile)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; LDBPath = Clomosy.AppFilesPath + 'PristineTask.db3';</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; LDBPath = 'C:\PristineTask\PristineTask.db3';</div><div>&nbsp; }</div><div><br></div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteConnect(LDBPath, '');</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Veritabanı bağlantı hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void TblKullanicilariOlustur;</div><div>var</div><div>&nbsp; LTabloVarMi: Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT name FROM sqlite_master WHERE type="table" AND name="TblKullanicilar";';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; LTabloVarMi = not Clomosy.DBSQLiteQuery.Eof;</div><div><br></div><div>&nbsp; &nbsp; if not (LTabloVarMi)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE TblKullanicilar (ID INTEGER PRIMARY KEY AUTOINCREMENT, AdSoyad TEXT NOT NULL, Eposta TEXT NOT NULL, Sifre TEXT NOT NULL, Rol TEXT NOT NULL)';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblKullanicilar (AdSoyad, Eposta, Sifre, Rol) VALUES (''Müdür Ömer'', ''mudur@pristine.com'', ''1'', ''Yonetici'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('TblKullanicilar hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void TblPersonelOlustur;</div><div>var</div><div>&nbsp; LTabloVarMi: Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT name FROM sqlite_master WHERE type="table" AND name="TblPersonel";';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; LTabloVarMi = not Clomosy.DBSQLiteQuery.Eof;</div><div><br></div><div>&nbsp; &nbsp; if not (LTabloVarMi)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE TblPersonel (ID INTEGER PRIMARY KEY AUTOINCREMENT, KullaniciID INTEGER NOT NULL, AdSoyad TEXT NOT NULL, Eposta TEXT NOT NULL, Sifre TEXT NOT NULL, Rol TEXT NOT NULL, Durum TEXT NOT NULL, GirisSaati TEXT, BugunkuGiris TEXT, BugunkuCikis TEXT)';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblPersonel (KullaniciID, AdSoyad, Eposta, Sifre, Rol, Durum, GirisSaati, BugunkuGiris, BugunkuCikis) VALUES (2, ''Ayşe Kaya'', ''ayse@pristine.com'', ''2'', ''Temizlik Personeli'', ''Görevde'', ''08:00'', ''10:41'', ''-'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblPersonel (KullaniciID, AdSoyad, Eposta, Sifre, Rol, Durum, GirisSaati, BugunkuGiris, BugunkuCikis) VALUES (3, ''Mehmet Demir'', ''mehmet@pristine.com'', ''3'', ''Lobi Personeli'', ''Görevde'', ''08:00'', ''08:05'', ''-'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblPersonel (KullaniciID, AdSoyad, Eposta, Sifre, Rol, Durum, GirisSaati, BugunkuGiris, BugunkuCikis) VALUES (4, ''Fatma Şahin'', ''fatma@pristine.com'', ''4'', ''Kıdemli Personel'', ''Gecikti'', ''08:00'', ''10:15'', ''-'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('TblPersonel hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void TblQRKodlarOlustur;</div><div>var</div><div>&nbsp; LTabloVarMi: Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT name FROM sqlite_master WHERE type="table" AND name="TblQRKodlar";';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; LTabloVarMi = not Clomosy.DBSQLiteQuery.Eof;</div><div><br></div><div>&nbsp; &nbsp; if not (LTabloVarMi)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE TblQRKodlar (ID INTEGER PRIMARY KEY AUTOINCREMENT, Lokasyon TEXT NOT NULL, QRKodu TEXT NOT NULL)';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblQRKodlar (Lokasyon, QRKodu) VALUES (''2. Kat WC'', ''QR-2KAT-WC'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblQRKodlar (Lokasyon, QRKodu) VALUES (''Ana Giriş'', ''QR-ANA-GIRIS'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblQRKodlar (Lokasyon, QRKodu) VALUES (''Lobi WC'', ''QR-LOBI-WC'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblQRKodlar (Lokasyon, QRKodu) VALUES (''Oda 312'', ''QR-ODA-312'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('TblQRKodlar hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void TblSabitGorevlerOlustur;</div><div>var</div><div>&nbsp; LTabloVarMi: Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT name FROM sqlite_master WHERE type="table" AND name="TblSabitGorevler";';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; LTabloVarMi = not Clomosy.DBSQLiteQuery.Eof;</div><div><br></div><div>&nbsp; &nbsp; if not (LTabloVarMi)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE TblSabitGorevler (ID INTEGER PRIMARY KEY AUTOINCREMENT, PersonelID INTEGER NOT NULL, Lokasyon TEXT NOT NULL, QRKodu TEXT NOT NULL, PlanlananSaat TEXT NOT NULL)';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (1, ''2. Kat WC'', ''QR-2KAT-WC'', ''09:00'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (1, ''2. Kat WC'', ''QR-2KAT-WC'', ''14:00'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (2, ''Ana Giriş'', ''QR-ANA-GIRIS'', ''08:00'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (2, ''Ana Giriş'', ''QR-ANA-GIRIS'', ''13:00'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (3, ''2. Kat WC'', ''QR-2KAT-WC'', ''11:00'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (3, ''Ana Giriş'', ''QR-ANA-GIRIS'', ''16:00'')';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('TblSabitGorevler hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void TblGorevlerOlustur;</div><div>var</div><div>&nbsp; LTabloVarMi: Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT name FROM sqlite_master WHERE type="table" AND name="TblGorevler";';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; LTabloVarMi = not Clomosy.DBSQLiteQuery.Eof;</div><div><br></div><div>&nbsp; &nbsp; if not (LTabloVarMi)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE TblGorevler (ID INTEGER PRIMARY KEY AUTOINCREMENT, AtananPersonelID INTEGER NOT NULL, Lokasyon TEXT NOT NULL, Aciklama TEXT, QRKodu TEXT, PlanlananSaat TEXT, BaslangicSaati TEXT, BitisSaati TEXT, Durum TEXT NOT NULL, KanitFotoPath TEXT, DurumNotu TEXT, Tarih TEXT NOT NULL, AcilMi INTEGER DEFAULT 0)';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('TblGorevler hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void TblSikayetlerOlustur;</div><div>var</div><div>&nbsp; LTabloVarMi: Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT name FROM sqlite_master WHERE type="table" AND name="TblSikayetler";';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; LTabloVarMi = not Clomosy.DBSQLiteQuery.Eof;</div><div><br></div><div>&nbsp; &nbsp; if not (LTabloVarMi)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE TblSikayetler (ID INTEGER PRIMARY KEY AUTOINCREMENT, Baslik TEXT NOT NULL, Aciklama TEXT NOT NULL, Tarih TEXT NOT NULL, Durum TEXT NOT NULL, AtananPersonelID INTEGER)';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSikayetler (Baslik, Aciklama, Tarih, Durum, AtananPersonelID) VALUES (''Oda 312'', ''Banyo kiri giderilmemiş, lavabo etrafında temizlik eksikliği tespit edildi.'', ''22 Haz 14:20'', ''Açık'', 1)';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSikayetler (Baslik, Aciklama, Tarih, Durum, AtananPersonelID) VALUES (''Lobi WC'', ''Temizlik vakti geçmiş, rutin kontrol çizelgesine göre müdahale yapılmamış.'', ''20 Haz 16:45'', ''Açık'', 2)';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSikayetler (Baslik, Aciklama, Tarih, Durum, AtananPersonelID) VALUES (''Oda 415'', ''Çarşaflar değiştirilmemiş, havlu eksiği bulunmakta.'', ''18 Haz 09:15'', ''Çözüldü'', 1)';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('TblSikayetler hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void GunlukGorevleriOlustur;</div><div>var</div><div>&nbsp; LBugun: String;</div><div>&nbsp; LVarMi: Boolean;</div><div>&nbsp; LQry: TClSQLiteQuery;</div><div>&nbsp; LQry2: TClSQLiteQuery;</div><div>{</div><div>&nbsp; LBugun = FormatDateTime('yyyy-mm-dd', Now);</div><div><br></div><div>&nbsp; try</div><div>&nbsp; &nbsp; LQry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'SELECT ID FROM TblGorevler WHERE Tarih=' + QuotedStr(LBugun) + ' AND AcilMi=0 LIMIT 1'</div><div>&nbsp; &nbsp; );</div><div>&nbsp; &nbsp; LQry.OpenOrExecute;</div><div>&nbsp; &nbsp; LVarMi = LQry.Found;</div><div>&nbsp; &nbsp; LQry.Free;</div><div><br></div><div>&nbsp; &nbsp; if not (LVarMi)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; LQry2 = Clomosy.DBSQLiteQueryWith('SELECT * FROM TblSabitGorevler');</div><div>&nbsp; &nbsp; &nbsp; LQry2.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; while (not LQry2.Eof)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text =</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'INSERT INTO TblGorevler (AtananPersonelID, Lokasyon, Aciklama, QRKodu, PlanlananSaat, BaslangicSaati, BitisSaati, Durum, DurumNotu, Tarih, AcilMi) VALUES (' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IntToStr(LQry2.FieldByName('PersonelID').AsInteger) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QuotedStr(LQry2.FieldByName('Lokasyon').AsString) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QuotedStr('Sabit görev') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QuotedStr(LQry2.FieldByName('QRKodu').AsString) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QuotedStr(LQry2.FieldByName('PlanlananSaat').AsString) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QuotedStr('-') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QuotedStr('-') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QuotedStr('Bekliyor') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QuotedStr('-') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QuotedStr(LBugun) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '0)';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LQry2.Next;</div><div>&nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; &nbsp; LQry2.Free;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Günlük görev oluşturma hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void VeritabaniKur;</div><div>{</div><div>&nbsp; DBBaglan;</div><div>&nbsp; TblKullanicilariOlustur;</div><div>&nbsp; TblPersonelOlustur;</div><div>&nbsp; TblQRKodlarOlustur;</div><div>&nbsp; TblSabitGorevlerOlustur;</div><div>&nbsp; TblGorevlerOlustur;</div><div>&nbsp; TblSikayetlerOlustur;</div><div>&nbsp; GunlukGorevleriOlustur;</div><div>}</div><div>function PersonelDogrula(AEposta, ASifre: String): Integer;</div><div>var</div><div>&nbsp; LQry: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; LQry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'SELECT ID FROM TblPersonel WHERE Eposta=' + QuotedStr(AEposta) +</div><div>&nbsp; &nbsp; &nbsp; ' AND Sifre=' + QuotedStr(ASifre)</div><div>&nbsp; &nbsp; );</div><div>&nbsp; &nbsp; LQry.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; if (LQry.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = LQry.FieldByName('ID').AsInteger;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = 0;</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; LQry.Free;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Personel dogrulama hatasi: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = 0;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function KullaniciDogrula(AEposta, ASifre: String): String;</div><div>var</div><div>&nbsp; LQry: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; LQry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'SELECT Rol FROM TblKullanicilar WHERE Eposta=' + QuotedStr(AEposta) +</div><div>&nbsp; &nbsp; &nbsp; ' AND Sifre=' + QuotedStr(ASifre)</div><div>&nbsp; &nbsp; );</div><div>&nbsp; &nbsp; LQry.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; if (LQry.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = LQry.FieldByName('Rol').AsString;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = '';</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; LQry.Free;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Giriş doğrulama hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = '';</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function PersonelListesiGetir: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Result = Clomosy.DBSQLiteQueryWith('SELECT * FROM TblPersonel ORDER BY AdSoyad ASC');</div><div>&nbsp; &nbsp; Result.OpenOrExecute;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Personel listesi hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function PersonelEkle(AAdSoyad, AEposta, ASifre, ARol: String): Boolean;</div><div>var</div><div>&nbsp; LYeniID: Integer;</div><div>&nbsp; LQry: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text =</div><div>&nbsp; &nbsp; &nbsp; 'INSERT INTO TblPersonel (KullaniciID, AdSoyad, Eposta, Sifre, Rol, Durum, GirisSaati, BugunkuGiris, BugunkuCikis) VALUES (0, ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(AAdSoyad) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(AEposta) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(ASifre) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(ARol) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr('Cevrimdisi') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr('08:00') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr('-') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr('-') + ')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; // Yeni eklenen personelin ID'sini al</div><div>&nbsp; &nbsp; LQry = Clomosy.DBSQLiteQueryWith('SELECT last_insert_rowid() AS YeniID');</div><div>&nbsp; &nbsp; LQry.OpenOrExecute;</div><div>&nbsp; &nbsp; LYeniID = LQry.FieldByName('YeniID').AsInteger;</div><div>&nbsp; &nbsp; LQry.Free;</div><div><br></div><div>&nbsp; &nbsp; // Sabit gorevleri otomatik ekle</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (' + IntToStr(LYeniID) + ', ''1. Kat Lavabo'', ''QR-1KAT-LAVABO'', ''08:30'')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (' + IntToStr(LYeniID) + ', ''2. Kat Lavabo'', ''QR-2KAT-LAVABO'', ''10:00'')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (' + IntToStr(LYeniID) + ', ''3. Kat Lavabo'', ''QR-3KAT-LAVABO'', ''14:00'')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (' + IntToStr(LYeniID) + ', ''1. Kat Koridor'', ''QR-1KAT-KORIDOR'', ''09:00'')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (' + IntToStr(LYeniID) + ', ''2. Kat Koridor'', ''QR-2KAT-KORIDOR'', ''11:00'')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TblSabitGorevler (PersonelID, Lokasyon, QRKodu, PlanlananSaat) VALUES (' + IntToStr(LYeniID) + ', ''3. Kat Koridor'', ''QR-3KAT-KORIDOR'', ''15:00'')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; Result = True;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Personel ekleme hatasi: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; }</div><div>}</div><div>function PersonelSil(APersonelID: Integer): Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'DELETE FROM TblPersonel WHERE ID=' + IntToStr(APersonelID);</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'DELETE FROM TblSabitGorevler WHERE PersonelID=' + IntToStr(APersonelID);</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'DELETE FROM TblGorevler WHERE AtananPersonelID=' + IntToStr(APersonelID);</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; Result = True;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Personel silme hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function PersonelGorevleriGetir(APersonelID: Integer): TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Result = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'SELECT * FROM TblGorevler WHERE AtananPersonelID=' +</div><div>&nbsp; &nbsp; &nbsp; IntToStr(APersonelID) +</div><div>&nbsp; &nbsp; &nbsp; ' AND Tarih=' + QuotedStr(FormatDateTime('yyyy-mm-dd', Now)) +</div><div>&nbsp; &nbsp; &nbsp; ' ORDER BY PlanlananSaat ASC'</div><div>&nbsp; &nbsp; );</div><div>&nbsp; &nbsp; Result.OpenOrExecute;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Görev listesi hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function AcilGorevEkle(APersonelID: Integer; ALokasyon, AAciklama: String): Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text =</div><div>&nbsp; &nbsp; &nbsp; 'INSERT INTO TblGorevler (AtananPersonelID, Lokasyon, Aciklama, QRKodu, PlanlananSaat, BaslangicSaati, BitisSaati, Durum, DurumNotu, Tarih, AcilMi) VALUES (' +</div><div>&nbsp; &nbsp; &nbsp; IntToStr(APersonelID) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(ALokasyon) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(AAciklama) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr('') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(FormatDateTime('hh:nn', Now)) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr('-') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr('-') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr('Bekliyor') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr('-') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(FormatDateTime('yyyy-mm-dd', Now)) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; '1)';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; Result = True;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Acil görev ekleme hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function GorevBaslat(AGorevID: Integer): Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text =</div><div>&nbsp; &nbsp; &nbsp; 'UPDATE TblGorevler SET Durum=' + QuotedStr('DevamEdiyor') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; 'BaslangicSaati=' + QuotedStr(FormatDateTime('hh:nn', Now)) +</div><div>&nbsp; &nbsp; &nbsp; ' WHERE ID=' + IntToStr(AGorevID);</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; Result = True;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Görev başlatma hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function GorevTamamla(AGorevID: Integer; ADurumNotu, AKanitFotoPath: String): Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text =</div><div>&nbsp; &nbsp; &nbsp; 'UPDATE TblGorevler SET Durum=' + QuotedStr('Tamamlandi') + ', ' +</div><div>&nbsp; &nbsp; &nbsp; 'BitisSaati=' + QuotedStr(FormatDateTime('hh:nn', Now)) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; 'DurumNotu=' + QuotedStr(ADurumNotu) + ', ' +</div><div>&nbsp; &nbsp; &nbsp; 'KanitFotoPath=' + QuotedStr(AKanitFotoPath) +</div><div>&nbsp; &nbsp; &nbsp; ' WHERE ID=' + IntToStr(AGorevID);</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; Result = True;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Görev tamamlama hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function QRKoduDogrula(AQRKodu: String): String;</div><div>var</div><div>&nbsp; LQry: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; LQry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'SELECT Lokasyon FROM TblQRKodlar WHERE QRKodu=' + QuotedStr(AQRKodu)</div><div>&nbsp; &nbsp; );</div><div>&nbsp; &nbsp; LQry.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; if (LQry.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = LQry.FieldByName('Lokasyon').AsString;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = '';</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; LQry.Free;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('QR doğrulama hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = '';</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function SikayetListesiGetir: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Result = Clomosy.DBSQLiteQueryWith('SELECT * FROM TblSikayetler ORDER BY ID DESC');</div><div>&nbsp; &nbsp; Result.OpenOrExecute;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Şikayet listesi hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function AktifPersonelSayisi: Integer;</div><div>var</div><div>&nbsp; LQry: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; LQry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'SELECT COUNT(*) AS Sayi FROM TblPersonel WHERE Durum=' + QuotedStr('Görevde')</div><div>&nbsp; &nbsp; );</div><div>&nbsp; &nbsp; LQry.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; if (LQry.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = LQry.FieldByName('Sayi').AsInteger;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = 0;</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; LQry.Free;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Aktif personel sayısı hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = 0;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function AcikSikayetSayisi: Integer;</div><div>var</div><div>&nbsp; LQry: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; LQry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'SELECT COUNT(*) AS Sayi FROM TblSikayetler WHERE Durum=' + QuotedStr('Açık')</div><div>&nbsp; &nbsp; );</div><div>&nbsp; &nbsp; LQry.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; if (LQry.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = LQry.FieldByName('Sayi').AsInteger;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = 0;</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; LQry.Free;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Açık şikayet sayısı hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = 0;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function TamamlananGorevSayisi: Integer;</div><div>var</div><div>&nbsp; LQry: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; LQry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'SELECT COUNT(*) AS Sayi FROM TblGorevler WHERE Durum=' + QuotedStr('Tamamlandi') +</div><div>&nbsp; &nbsp; &nbsp; ' AND Tarih=' + QuotedStr(FormatDateTime('yyyy-mm-dd', Now))</div><div>&nbsp; &nbsp; );</div><div>&nbsp; &nbsp; LQry.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; if (LQry.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = LQry.FieldByName('Sayi').AsInteger;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = 0;</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; LQry.Free;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Tamamlanan görev sayısı hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = 0;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>function PersonelAktifKonumGetir(APersonelID: Integer): String;</div><div>var</div><div>&nbsp; LQry: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; LQry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'SELECT Lokasyon FROM TblGorevler WHERE AtananPersonelID=' +</div><div>&nbsp; &nbsp; &nbsp; IntToStr(APersonelID) +</div><div>&nbsp; &nbsp; &nbsp; ' AND (Durum=' + QuotedStr('DevamEdiyor') +</div><div>&nbsp; &nbsp; &nbsp; ' OR Durum=' + QuotedStr('Bekliyor') + ')' +</div><div>&nbsp; &nbsp; &nbsp; ' AND Tarih=' + QuotedStr(FormatDateTime('yyyy-mm-dd', Now)) +</div><div>&nbsp; &nbsp; &nbsp; ' ORDER BY PlanlananSaat ASC LIMIT 1'</div><div>&nbsp; &nbsp; );</div><div>&nbsp; &nbsp; LQry.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; if (LQry.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = LQry.FieldByName('Lokasyon').AsString;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = 'Görev Yok';</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; LQry.Free;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Aktif konum hatası: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = '-';</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>}</div><div>Veri tabanı dosyası belirtilen dosya yolunda olusmuyor . Yardımcı olabilirmisiniz</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v833ccba57c9e4d2798f2e76cebdd09a11778172276447" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v833ccba57c9e4d2798f2e76cebdd09a11778172276447"</a> integrity="sha512-57MDmcccJXYtNnH+ZiBwzC4jb2rvgVCEokYN+L/nLlmO8rfYT/gIpW2A569iJ/3b+0UEasghjuZH/ma3wIs/EQ==" 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>Thu, 25 Jun 2026 14:01:34 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1558&amp;PID=3593#3593</guid>
  </item> 
 </channel>
</rss>