Ejemplo n.º 1
0
        private void Personel()
        {
            try
            {
                if (!IsEmriPersonel.IsEmriOk)
                {
                    if (!Utility.Sor("İş emri okutulmadı devam edilsin mi?"))
                    {
                        return;
                    }
                }

                string pers = Utility.Engine.SqlTemizle(textPersonel.Text);
                if (!string.IsNullOrEmpty(pers))
                {
                    IsEmriPersonel.Personel = pers;
                    if (IsEmriPersonel.PersonelOk && IsEmriPersonel.SavePersonel())
                    {
                        IsEmriPersonel = new isemri_personel();
                        GetList();
                    }
                    textIsEmri.Text        = "";
                    textPersonel.Text      = "";
                    textIsEmri.BackColor   = Color.Yellow;
                    textPersonel.BackColor = Color.White;
                    textIsEmri.Focus();
                    return;
                }
            }
            catch (Exception exc)
            {
                Utility.Hata("Genel Hata:" + exc.Message, "HATA!");
            }
        }
Ejemplo n.º 2
0
 private void IsEmri()
 {
     try
     {
         string isemir = Utility.Engine.SqlTemizle(textIsEmri.Text);
         if (!string.IsNullOrEmpty(isemir))
         {
             IsEmriPersonel = new isemri_personel(isemir, null);
             if (IsEmriPersonel.IsEmriOk)
             {
                 textIsEmri.BackColor   = Color.Salmon;
                 textPersonel.BackColor = Color.Yellow;
                 textPersonel.Focus();
             }
             else
             {
                 textIsEmri.Focus();
                 textIsEmri.SelectAll();
                 return;
             }
             return;
         }
     }
     catch (Exception exc)
     {
         Utility.Hata("Genel Hata:" + exc.Message, "HATA!");
     }
 }