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!");
            }
        }