Example #1
0
        private void button_OK_Click(object sender, EventArgs e)
        {
            if (IsEmriEkle.id != null)
            {
                WL_COMPLETE wL4 = managerWL_COMPLETE.Find(x => x.WRKID == IsEmriEkle.id);
                wL4.COMPLETION_DATE = dateTimePicker1.Value;
                wL4.COMPLETION_TİME = TimeSpan.FromHours(dateTimePicker2.Value.Hour);
                wL4.DELIVERY_TYPE   = comboBox1.Text;
                wL4.DELIVERY_NOTE   = richTextBox_Teslim.Text;

                int sonuc = managerWL_COMPLETE.Update(wL4);
                if (sonuc > 0)
                {
                    UcEmirGor uc = new UcEmirGor();
                    MessageBox.Show("Kayıt Eklendi");
                    if (IsEmriEkle.id != null)
                    {
                        WRKORD w = managerWRKORD.Find(x => x.WRKORD_ID == IsEmriEkle.id);

                        w.STATUS_ = "TAMAMLANDI";
                        IsEmriEkle.Instance.comboBox5.Text = "TAMAMLANDI";
                        uc.Listele();
                        managerWRKORD.Update(w);
                    }
                }
                else
                {
                    MessageBox.Show("Hata Meydana Geldi");
                }
            }
            else
            {
                MessageBox.Show("Lütfen Tüm Alanları Doldurunuz");
            }
        }