private void SiparisKaydet() { string hasta_adsoyad = textbox_hasta_adsoyad.Text, protez_id = combobox_protez.SelectedValue.ToString(), hastane_id = combobox_hastane.SelectedValue.ToString(), doktor_id = combobox_doktor.SelectedValue.ToString(), renk_id = combobox_renk.SelectedValue.ToString(), siparis_tarihi = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"), teslimat_tarihi = datepicker_teslimat.Value.ToString("yyyy-MM-dd"); if (hasta_adsoyad != "") { if (Sc.ADD_TABLE("Siparis", new String[] { "siparis_tarihi", "personel_id", "doktor_id", "protez_id", "hasta_ad_soyad", "teslim_tarihi", "renk_id" }, new String[] { DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"), User.id.ToString(), doktor_id, protez_id, hasta_adsoyad, teslimat_tarihi, renk_id })) { DataTable talimatCount = Sc.GET_DATATABLE("select * from Protez_Talimatlari where protez_id=@parametre1", new String[] { protez_id }); string sipari_id = Sc.GET_TEKDEGER("select top 1 id from Siparis order by id desc", new string[] { }); int sira = 1; for (int i = 0; i < talimatCount.Rows.Count; i++) { DataTable prosesCount = Sc.GET_DATATABLE("select * from Talimat_Prosesleri where talimat_id=@parametre1", new String[] { talimatCount.Rows[i]["talimat_id"].ToString() }); for (int k = 0; k < prosesCount.Rows.Count; k++) { Sc.ADD_TABLE("Anlik_Prosesler", new String[] { "talimat_id", "proses_id", "proses_sirasi", "siparis_id" }, new String[] { talimatCount.Rows[i]["talimat_id"].ToString(), prosesCount.Rows[k]["proses_id"].ToString(), sira.ToString(), sipari_id }); sira++; } } MessageBox.Show("Kayıt Başarılı!", "Kayıt", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); textbox_fisno.Text = DateTime.Now.Year.ToString() + "-"; datepicker_siparis.MaxDate = DateTime.Now; datepicker_teslimat.MinDate = DateTime.Now.AddDays(1); textbox_hasta_adsoyad.Text = ""; combobox_protez.SelectedIndex = 0; combobox_hastane.SelectedIndex = 0; combobox_renk.SelectedIndex = 0; Items.panelSiparis.dataGridview.DataSource = Sc.GET_DATATABLE(SqlConnector.TableSiparis + " where convert(DATE, s.siparis_tarihi)='" + DateTime.Now.ToString("yyyy/MM/dd") + "'"); } else { MessageBox.Show("İşlem Başarısız!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Lüten Boş Yerleri Doldurunuz!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbox_hasta_adsoyad.Focus(); } }
private void DepartmanKaydet() { String isim = textbox_isim.Text; if (isim != "") { String _QueryIsim = "select * from Departman Where isim=@parametre1"; if (Sc.GET_DATATABLE(_QueryIsim, new String[] { isim }).Rows.Count > 0) { MessageBox.Show("Girilen İsim Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbox_isim.Focus(); } else if (Sc.ADD_TABLE("Departman", new String[] { "isim", "durum" }, new String[] { isim, "1" })) { MessageBox.Show("Kayıt Başarılı!", "Kayıt", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); textbox_isim.Text = ""; textbox_isim.Focus(); Items.panelDepartman.dataGridUst.DataSource = Sc.GET_DATATABLE(SqlConnector.TableDepartman); } else { MessageBox.Show("İşlem Başarısız!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Lüten Boş Yerleri Doldurunuz!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbox_isim.Focus(); } }
private void HastaneKaydet() { string ad = textBox_isim.Text; string kod = textBox_kod.Text; string adres = textBox_adres.Text; if (ad != "" && kod != "" && adres != "") { string _QueryIsim = "select * from Hastane Where ad=@parametre1"; string _QueryKod = "select * from Hastane Where kod=@parametre1"; if (Sc.GET_DATATABLE(_QueryIsim, new String[] { ad }).Rows.Count > 0) { MessageBox.Show("Girilen Hatane Adı Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textBox_isim.Focus(); } else if (Sc.GET_DATATABLE(_QueryKod, new String[] { kod }).Rows.Count > 0) { MessageBox.Show("Girilen Hatane Kodu Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textBox_isim.Focus(); } else if (Sc.ADD_TABLE("Hastane", new String[] { "kod", "ad", "adres" }, new String[] { kod, ad, adres })) { MessageBox.Show("Kayıt Başarılı!", "Kayıt", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); textBox_isim.Text = ""; textBox_kod.Text = ""; textBox_adres.Text = ""; textBox_isim.Focus(); Items.panelHastaneDoktor.dataGridUst.DataSource = Sc.GET_DATATABLE(SqlConnector.TableHastane); } else { MessageBox.Show("İşlem Başarısız!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Lüten Boş Yerleri Doldurunuz!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); if (textBox_isim.Text == "") { textBox_isim.Focus(); } else if (textBox_kod.Text == "") { textBox_kod.Focus(); } else if (textBox_adres.Text == "") { textBox_adres.Focus(); } } }
private void DoktorKaydet() { string ad = textBox_isim.Text; string soyad = textBox_soyisim.Text; string hastane = comboBox1.SelectedText; string hastane_id = comboBox1.SelectedValue.ToString(); if (ad != "" && soyad != "") { string _QueryIsim = "select * from Doktorlar Where isim=@parametre1 AND soyisim=@parametre2 AND hastane_id=@parametre3"; if (Sc.GET_DATATABLE(_QueryIsim, new String[] { ad, soyad, hastane }).Rows.Count > 0) { MessageBox.Show("Girilen Doktor Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textBox_isim.Focus(); } else if (Sc.ADD_TABLE("Doktorlar", new String[] { "isim", "soyisim", "hastane_id", "aktif" }, new String[] { ad, soyad, hastane_id, "true" })) { MessageBox.Show("Kayıt Başarılı!", "Kayıt", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); textBox_isim.Text = ""; textBox_soyisim.Text = ""; comboBox1.Text = ""; textBox_isim.Focus(); if (hastane_id == _Select_hastane_id) { Items.panelHastaneDoktor.dataGridAlt.DataSource = Sc.GET_DATATABLE(SqlConnector.TableDoktorByHastaneid, new string[] { comboBox1.SelectedValue.ToString() }); } } else { MessageBox.Show("İşlem Başarısız!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Lüten Boş Yerleri Doldurunuz!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); if (textBox_isim.Text == "") { textBox_isim.Focus(); } else if (textBox_soyisim.Text == "") { textBox_soyisim.Focus(); } else if (comboBox1.Text == "") { comboBox1.Focus(); } } }
private void RenkKaydet() { String kod = textbox_kod.Text, isim = textbox_isim.Text; if (kod != "" && isim != "") { String _QueryKod = "select * from Renk Where kod=@parametre1"; String _QueryIsim = "select * from Renk Where isim=@parametre1"; if (Sc.GET_DATATABLE(_QueryKod, new String[] { kod }).Rows.Count > 0) { MessageBox.Show("Girilen Kod Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbox_kod.Focus(); } else if (Sc.GET_DATATABLE(_QueryIsim, new String[] { isim }).Rows.Count > 0) { MessageBox.Show("Girilen İsim Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbox_isim.Focus(); } else if (Sc.ADD_TABLE("Renk", new String[] { "kod", "isim", "durum" }, new String[] { kod, isim, "1" })) { MessageBox.Show("Kayıt Başarılı!", "Kayıt", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); textbox_kod.Text = ""; textbox_isim.Text = ""; textbox_kod.Focus(); Items.panelYetkiRenk.dataGridview.DataSource = Sc.GET_DATATABLE(SqlConnector.TableRenk); } else { MessageBox.Show("İşlem Başarısız!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Lüten Boş Yerleri Doldurunuz!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); if (kod == "") { textbox_kod.Focus(); } else if (isim == "") { textbox_isim.Focus(); } } }
private void MalzemeKaydet() { string isim = textbox_isim.Text; string fiyat = textbox_fiyat.Text; if (isim != "" && fiyat != "") { string _QueryIsim = "select * from Malzemeler Where adi=@parametre1"; if (Sc.GET_DATATABLE(_QueryIsim, new String[] { isim }).Rows.Count > 0) { MessageBox.Show("Girilen İsim Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbox_isim.Focus(); } else if (Sc.ADD_TABLE("Malzemeler", new String[] { "adi", "fiyat", "durum" }, new String[] { isim, double.Parse(fiyat.Replace(" ", "").Replace(".", ",")).ToString(), "1" })) { MessageBox.Show("Kayıt Başarılı!", "Kayıt", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); textbox_isim.Text = ""; textbox_fiyat.Text = ""; textbox_isim.Focus(); Items.panelMalzemeler.dataGridview.DataSource = Sc.GET_DATATABLE(SqlConnector.TableMalzemeler); } else { MessageBox.Show("İşlem Başarısız!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Lüten Boş Yerleri Doldurunuz!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); if (textbox_isim.Text == "") { textbox_isim.Focus(); } else if (textbox_fiyat.Text == "") { textbox_fiyat.Focus(); } } }
private void PersonelKaydet() { String Tc = TextBox_Tc.Text; String isim = textBox_isim.Text; String Soyisim = textBox_soyisim.Text; String kullaniciadi = textBox_kullaniciadi.Enabled ? textBox_kullaniciadi.Text : ""; String sifre = textBox_sifre.Enabled ? textBox_sifre.Text : ""; String eposta = textBox_eposta.Text; String adres = textBox_adres.Text; String maas = textBox_maas.Text; String telefon = textBox_telefon.Text; string ssk_no = textBox_ssk_no.Text; string sskbas = DateTime_sskbas.Value.ToString("yyyy/MM/dd"); string isegiris = DateTime_isegiris.Value.ToString("yyyy/MM/dd"); string cinsiyet = Combo_cinsiyet.SelectedValue == "Erkek" ? "E" : "K"; string departman = Combo_departman.SelectedValue.ToString(); string yetki = Combo_yetki.SelectedValue.ToString(); string güvenlik = combo_güvenlik.SelectedItem.ToString(); string güvenlikcvp = textBox_güvenlik.Text; if (Tc != "" && isim != "" && Soyisim != "" && kullaniciadi != "" && sifre != "" && eposta != "" && ssk_no != "" && cinsiyet != "" && departman != "" && yetki != "" && maas != "" && telefon != "") { String _QueryTc = "select * from Personel Where tc=@parametre1"; String _Querykullaniciadi = "select * from Personel Where kullanici_adi=@parametre1"; String _Queryeposta = "select * from Personel Where e_posta=@parametre1"; String _Queryessk_no = "select * from Personel Where ssk_no=@parametre1"; String _Queryetelefon = "select * from Personel Where telefon=@parametre1"; if (Sc.GET_DATATABLE(_QueryTc, new String[] { Tc }).Rows.Count > 0) { MessageBox.Show("Girilen Tc Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); TextBox_Tc.Focus(); } else if (Sc.GET_DATATABLE(_Querykullaniciadi, new String[] { kullaniciadi }).Rows.Count > 0) { MessageBox.Show("Girilen Kullanıcı Adı Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textBox_kullaniciadi.Focus(); } else if (Sc.GET_DATATABLE(_Queryeposta, new String[] { eposta }).Rows.Count > 0) { MessageBox.Show("Girilen E-posta Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textBox_eposta.Focus(); } else if (Sc.GET_DATATABLE(_Queryessk_no, new String[] { ssk_no }).Rows.Count > 0) { MessageBox.Show("Girilen SSK Numarası Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textBox_ssk_no.Focus(); } else if (Sc.GET_DATATABLE(_Queryetelefon, new String[] { telefon }).Rows.Count > 0) { MessageBox.Show("Girilen Telefon Numarası Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textBox_telefon.Focus(); } else if (Sc.ADD_TABLE("Personel", new String[] { "tc", "ad", "soyad", "maas", "telefon", "ssk_no", "ssk_bas_tarih", "ise_giris_tarih", "adres", "cinsiyet", "departman_no", "e_posta", "kullanici_adi", "sifre", "yetki_id", "durumu", "guvenlik_soru", "guvenlik_soru_cevap" }, new String[] { Tc, isim, Soyisim, maas, telefon, ssk_no, sskbas, isegiris, adres, cinsiyet, departman, eposta, kullaniciadi, sifre, yetki, "1", güvenlik, güvenlikcvp })) { MessageBox.Show("Kayıt Başarılı!", "Kayıt", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); TextBox_Tc.Text = ""; TextBox_Tc.Focus(); textBox_isim.Text = ""; textBox_soyisim.Text = ""; textBox_maas.Text = ""; textBox_telefon.Text = ""; textBox_ssk_no.Text = ""; DateTime_sskbas.Value = DateTime.Now; DateTime_isegiris.Value = DateTime.Now; textBox_adres.Text = ""; Combo_cinsiyet.SelectedIndex = 0; Combo_departman.SelectedIndex = 0; textBox_eposta.Text = ""; textBox_kullaniciadi.Text = ""; textBox_sifre.Text = ""; Combo_yetki.SelectedIndex = 0; combo_güvenlik.SelectedIndex = 0; textBox_güvenlik.Text = ""; Items.panelPersonel.dataGridview.DataSource = Sc.GET_DATATABLE(SqlConnector.TablePersonel); } else { MessageBox.Show("İşlem Başarısız!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Lüten Boş Yerleri Doldurunuz!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void ProtezKaydet() { String kod = textbot_protez_kod.Text, isim = textbot_protez_isim.Text; if (isim != "" && kod != "") { String _QueryKod = "select * from Protez Where kod=@parametre1"; String _QueryIsim = "select * from Protez Where adi=@parametre1"; if (Sc.GET_DATATABLE(_QueryKod, new String[] { kod }).Rows.Count > 0) { MessageBox.Show("Girilen Kod Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbot_protez_kod.Focus(); } else if (Sc.GET_DATATABLE(_QueryIsim, new String[] { isim }).Rows.Count > 0) { MessageBox.Show("Girilen İsim Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbot_protez_isim.Focus(); } else if (Sc.ADD_TABLE("Protez", new String[] { "kod", "adi", "durum" }, new String[] { kod, isim, "1" })) { String SelectTalimatId = Sc.GET_TEKDEGER("select Id from Protez where kod=@parametre1", new String[] { kod }); for (int i = 0; i < datagridview_talimat.RowCount; i++) { if ((Boolean)datagridview_talimat.Rows[i].Cells[0].EditedFormattedValue) { Sc.ADD_TABLE("Protez_Talimatlari", new String[] { "protez_id", "talimat_id", "sira" }, new String[] { SelectTalimatId, datagridview_talimat.Rows[i].Cells["Id"].Value.ToString(), datagridview_talimat.Rows[i].Cells["sira"].Value.ToString() }); } } MessageBox.Show("Kayıt Başarılı!", "Kayıt", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); textbot_protez_kod.Text = ""; textbot_protez_isim.Text = ""; textbot_protez_kod.Focus(); datagridview_talimat.DataSource = Sc.GET_DATATABLE(SqlConnector.TableTalimat); Items.panelProtez.dataGridUst.DataSource = Sc.GET_DATATABLE(SqlConnector.TableProtez); if (Items.panelProtez.dataGridUst.RowCount > 0) { Protezler.SelectedProtezid = Items.panelProtez.dataGridUst.Rows[0].Cells[0].Value.ToString(); Items.panelProtez.dataGridAlt.DataSource = Sc.GET_DATATABLE(SqlConnector.TableTalimatByProtezid, new String[] { Protezler.SelectedProtezid }); Items.panelProtez.dataGridAlt.Columns[0].Visible = false; } } else { MessageBox.Show("İşlem Başarısız!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Lüten Boş Yerleri Doldurunuz!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); if (textbot_protez_kod.Text == "") { textbot_protez_kod.Focus(); } else if (textbot_protez_isim.Text == "") { textbot_protez_isim.Focus(); } } }
private void TalimatKaydet() { String kod = textbox_talimat_kod.Text, isim = textbox_talimat_isim.Text; if (isim != "" && kod != "") { String _QueryKod = "select * from Talimat Where talimat_kodu=@parametre1"; String _QueryIsim = "select * from Talimat Where talimat_adi=@parametre1"; if (Sc.GET_DATATABLE(_QueryKod, new String[] { kod }).Rows.Count > 0) { MessageBox.Show("Girilen Kod Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbox_talimat_kod.Focus(); } else if (Sc.GET_DATATABLE(_QueryIsim, new String[] { isim }).Rows.Count > 0) { MessageBox.Show("Girilen İsim Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbox_talimat_isim.Focus(); } else if (Sc.ADD_TABLE("Talimat", new String[] { "talimat_kodu", "talimat_adi" }, new String[] { kod, isim })) { String SelectTalimatId = Sc.GET_TEKDEGER("select Id from Talimat where talimat_kodu=@parametre1", new String[] { kod }); for (int i = 0; i < datagridview_proses.RowCount; i++) { if ((Boolean)datagridview_proses.Rows[i].Cells[0].EditedFormattedValue) { Sc.ADD_TABLE("Talimat_Prosesleri", new String[] { "proses_id", "talimat_id", "sira", "durum" }, new String[] { (String)datagridview_proses.Rows[i].Cells[2].Value.ToString(), (String)SelectTalimatId.ToString(), datagridview_proses.Rows[i].Cells[1].Value.ToString(), "1" }); } } MessageBox.Show("Kayıt Başarılı!", "Kayıt", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); textbox_talimat_kod.Text = ""; textbox_talimat_isim.Text = ""; textbox_talimat_kod.Focus(); datagridview_proses.DataSource = Sc.GET_DATATABLE(SqlConnector.TableProses); Items.panelTalimat.dataGridUst.DataSource = Sc.GET_DATATABLE(SqlConnector.TableTalimat); } else { MessageBox.Show("İşlem Başarısız!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Lüten Boş Yerleri Doldurunuz!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); if (textbox_talimat_kod.Text == "") { textbox_talimat_kod.Focus(); } else if (textbox_talimat_isim.Text == "") { textbox_talimat_isim.Focus(); } } }
private void ProsesKaydet() { String kod = textbox_proses_kod.Text, isim = textbox_proses_isim.Text; if (isim != "" && kod != "") { String _QueryKod = "select * from Proses Where kod=@parametre1"; String _QueryIsim = "select * from Proses Where isim=@parametre1"; if (Sc.GET_DATATABLE(_QueryKod, new String[] { kod }).Rows.Count > 0) { MessageBox.Show("Girilen Kod Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbox_proses_kod.Focus(); } else if (Sc.GET_DATATABLE(_QueryIsim, new String[] { isim }).Rows.Count > 0) { MessageBox.Show("Girilen İsim Kayıtlı!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); textbox_proses_isim.Focus(); } else if (Sc.ADD_PROSES(textbox_proses_kod.Text, textbox_proses_isim.Text)) { String SelectProsesId = Sc.GET_TEKDEGER("select Id from Proses where kod=@parametre1", new String[] { kod }); for (int i = 0; i < datagridview_malzeme.RowCount; i++) { if ((Boolean)datagridview_malzeme.Rows[i].Cells[0].EditedFormattedValue) { Sc.ADD_TABLE("Proses_Malzemeleri", new String[] { "proses_id", "malzeme_id", "adet", "durum" }, new String[] { SelectProsesId, datagridview_malzeme.Rows[i].Cells["id"].Value.ToString(), datagridview_malzeme.Rows[i].Cells["adet"].Value.ToString(), "1" }); } } MessageBox.Show("Kayıt Başarılı!", "Kayıt", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); textbox_proses_kod.Text = ""; textbox_proses_isim.Text = ""; textbox_proses_kod.Focus(); datagridview_malzeme.DataSource = Sc.GET_DATATABLE(SqlConnector.TableMalzemeler); Items.panelProses.dataGridUst.DataSource = Sc.GET_DATATABLE(SqlConnector.TableProses); if (Items.panelProses.dataGridUst.RowCount > 0) { Prosesler.SelectedProsesID = Items.panelProses.dataGridUst.Rows[0].Cells[0].Value.ToString(); Items.panelProses.dataGridAlt.DataSource = Sc.GET_DATATABLE(SqlConnector.TableMalzemelerByProsesid, new String[] { Prosesler.SelectedProsesID }); Items.panelProses.dataGridAlt.Columns[0].Visible = false; } } else { MessageBox.Show("İşlem Başarısız!", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Lüten Boş Yerleri Doldurunuz!", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); if (textbox_proses_kod.Text == "") { textbox_proses_kod.Focus(); } else if (textbox_proses_isim.Text == "") { textbox_proses_isim.Focus(); } } }