private void DepartmanKisiYetkilendirForm_Load(object sender, EventArgs e) { var DepartmanlarListesi = DepartmanController.TumDepartmanlariGetir(); DataTable dtBitenStokList = new DataTable("departmanListesi"); dtBitenStokList.Columns.Add("DepartmanId", typeof(int)); dtBitenStokList.Columns.Add("DepartmanAdi", typeof(string)); dtBitenStokList.Columns.Add("SirketAdi", typeof(string)); foreach (var item in DepartmanlarListesi) { dtBitenStokList.Rows.Add(item.Departman.DepartmanId, item.Departman.DepartmanAdi /*,item.Departman.Sirketler.SirketAdi*/); } grid_DepartmanListesi.DataSource = dtBitenStokList; // gridView_DepartmanListesi.Columns["departmanId"].Visible = false; var kullanicilariListele = PersonelController.KullanicilariListele(); DataTable dtKullancilar = new DataTable("personeller"); dtKullancilar.Columns.Add("Ad", typeof(string)); dtKullancilar.Columns.Add("Soyad", typeof(string)); dtKullancilar.Columns.Add("PersonelId", typeof(int)); foreach (var item in kullanicilariListele) { dtKullancilar.Rows.Add(item.Ad, item.Soyad, item.PersonelId); } grid_personelListesi.DataSource = dtKullancilar; }
public void DepartmanEkle() { string departman_adi = "xxxxx"; int departman_id = 0; DepartmanController.DepartmanEkle(departman_adi, departman_id); }
private void DepartmanDuzenleForm_Load(object sender, EventArgs e) { if (LoginForm._session == eRoller.SatisSorumlusu.ToString()) { btn_Ekle.Enabled = false; btn_DepartmanSil.Enabled = false; } Tools.ComboBoxSirketGetir(cmb_Sirket); var result = DepartmanController.DepartmanDetayiGetir(_departmanId); txt_DepartmanAdi.Text = result.Departman.DepartmanAdi; cmb_Sirket.SelectedValue = result.Departman.Sirketler.SirketId; cmb_Departman.SelectedValue = result.Departman.DepartmanId; var kullanicilariListele = PersonelController.KullanicilariListele(); DataTable dtKullancilar = new DataTable("personeller"); dtKullancilar.Columns.Add("Ad", typeof(string)); dtKullancilar.Columns.Add("Soyad", typeof(string)); dtKullancilar.Columns.Add("PersonelId", typeof(int)); foreach (var item in kullanicilariListele) { dtKullancilar.Rows.Add(item.Ad, item.Soyad, item.PersonelId); } grid_Kisiler.DataSource = dtKullancilar; }
public FormDepartmanEkleSil(int mevcutKullanici) { InitializeComponent(); _dc = new DepartmanController(); islemYapanKullanici = mevcutKullanici; ComboDoldur(); }
private void GetValue() { var result = DepartmanController.DepartmanDemirbaslariList(_departmanId); grid_DepartmanDemirbaslari.DataSource = result; gridView_DepartmanDemirbaslari.Columns["DemirbasDepartmanId"].Visible = false; gridView_DepartmanDemirbaslari.IndicatorWidth = 30; }
private void DepartmanZimmetGetirForm_Load(object sender, EventArgs e) { var departmanAdi = DepartmanController.DepartmanDetayiGetir(_departmanId); var personelAdi = DepartmanPersonelController.DepartmanSorumlulariListele().FirstOrDefault(x => x.Departman.DepartmanId == _departmanId); lbl_DepartmanAdi.Text = "Departman Adı: " + departmanAdi.Departman.DepartmanAdi; lbl_DepartmanSorumlu.Text = "Departman Sorumlusu: " + personelAdi.Personel.Ad + " " + personelAdi.Personel.Soyad; GetValue(); }
public RandevuFrm(int hastaID) { InitializeComponent(); _hastaneController = new HastaneController(); _poliklinikController = new PoliklinikController(); _departmanController = new DepartmanController(); _poliklinikDepartmanController = new PoliklinikDepartmanController(); _doktorController = new DoktorController(); _randevuController = new RandevuController(); _hastaID = hastaID; }
public FormPersonelGoruntule(int olusturanPersonel) { InitializeComponent(); _unC = new UnvanController(); _depC = new DepartmanController(); _pc = new PersonelController(); _pgDTOc = new PersonelGoruntuleDTOController(); _persID = olusturanPersonel; _cc = new CariUyeController(); _pitc = new PersonelIsTanimController(); _cubc = new CariUyeBilgileriController(); }
private void btn_Yetkilendir_Click(object sender, EventArgs e) { try { if (personelId == 0 || departmanId == 0) { throw new Exception("Kişi veya Oda Seçmediniz Lütfen Kontrol Edin !"); } DepartmanController.DepartmanYetkilendir(personelId, departmanId); MessageBox.Show("Yetkilendirme Başarılı !", "Bilgi !", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { MessageBox.Show(ex.Message, "Hata Meydana Geldi !", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void DemirbasDepartmanTanimlaForm_Load(object sender, EventArgs e) { var departmanlarListesi = DepartmanController.TumDepartmanlariGetir(); DataTable dtBitenStokList = new DataTable("departmanlarListesi"); dtBitenStokList.Columns.Add("departmanId", typeof(int)); dtBitenStokList.Columns.Add("departmanAdi", typeof(string)); foreach (var item in departmanlarListesi) { dtBitenStokList.Rows.Add(item.Departman.DepartmanId, item.Departman.DepartmanAdi); } grid_Departman.DataSource = dtBitenStokList; //gridView_Departman.Columns["DepartmanId"].Visible = false; Tools.DemirbaslariGrideDoldur(grid_Demirbas, gridView_Demirbas); }
public FormPersonelEkle(int olusturanPersenel) { InitializeComponent(); _pcDtoCon = new PersonelCariDtoController(); _pcDto = new PersonelCariDTO(); _uc = new UnvanController(); _dc = new DepartmanController(); _pc = new PersonelController(); _btc = new BankaTanimController(); _pcDto.OlusturanPersonelID = olusturanPersenel; Helper.BindComboBox <Unvan>(_uc.GetUnvan(), cmbUnvan, "GorevAdi", "Id"); Helper.BindComboBox <Departman>(_dc.AktifDepartmanlariGetir(), cmbDepartman, "DepartmanAdi", "Id"); Helper.BindComboBox <Personel>(_pc.AktifPersonelleriGetir(), cmbYonetici, "FullName", "Id"); Helper.BindComboBox <BankaTanim>(_btc.AktifBankaGetir(), cmbBankaAdi, "BankaAdi", "ID"); cmbUnvan.SelectedIndex = -1; cmbDepartman.SelectedIndex = -1; cmbYonetici.SelectedIndex = -1; cmbBankaAdi.SelectedIndex = -1; }
private void btn_DepartmanEkle_Click(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(txt_DepartmanAdi.Text)) { throw new ValidationException("Departman Adını Boş Geçemezsiniz !"); } DepartmanController.DepartmanEkle(txt_DepartmanAdi.Text, Convert.ToInt32(cmb_Departman.SelectedValue)); MessageBox.Show("Oda Başarıyla Eklendi !", "İşlem Başarılı !", MessageBoxButtons.OK, MessageBoxIcon.Information); DepartmanKisiYetkilendirForm adForm = new DepartmanKisiYetkilendirForm(); adForm.Show(); this.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Hata Meydana Geldi !", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btn_DepartmanSil_ItemClick(object sender, ItemClickEventArgs e) { try { DialogResult sonuc = MessageBox.Show("Departman Silinecektir !", "Uyarı !", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (sonuc == DialogResult.Yes) { DepartmanController.DepartmanSil(_departmanId); MessageBox.Show("Departman Silindi !\nDepartmanlar Listesine Yönlendiriliyorsunuz !", "Bilgi !", MessageBoxButtons.OK, MessageBoxIcon.Information); Thread.Sleep(500); DepartmanListele rlForm = new DepartmanListele(); this.Close(); rlForm.Show(); } } catch (Exception ex) { MessageBox.Show("Departmana Bağlı Zimmetler Vardır Departma Silinemez !", "Bilgi !", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void DepartmanListele_Load(object sender, EventArgs e) { if (LoginForm._session == eRoller.SatisSorumlusu.ToString()) { btn_DepartmanTanimla.Enabled = false; } var result = DepartmanController.TumDepartmanlariGetir(); var departmanListesi = DepartmanController.TumDepartmanlariGetir(); DataTable dtBitenStokList = new DataTable("departmanListesi"); dtBitenStokList.Columns.Add("DepartmanId", typeof(int)); dtBitenStokList.Columns.Add("DepartmanAdi", typeof(string)); dtBitenStokList.Columns.Add("SirketAdi", typeof(string)); foreach (var item in departmanListesi) { dtBitenStokList.Rows.Add(item.Departman.DepartmanId, item.Departman.DepartmanAdi /*,item.Departman.Sirketler.SirketAdi*/); } grid_DepartmanListesi.DataSource = dtBitenStokList; // gridView_DepartmanListesi.Columns["departmanId"].Visible = false; }
private void btn_DepartmanDuzenle_Click(object sender, EventArgs e) { try { if (personelId == 0) { throw new Exception("Kişi Seçmediniz !"); } if (string.IsNullOrEmpty(txt_DepartmanAdi.Text)) { throw new Exception("Oda Adı Boş Geçilemez !"); } DepartmanController.DepartmanGuncelle(this._departmanId, txt_DepartmanAdi.Text, personelId); MessageBox.Show("Güncelleme Başarılı !", "Bilgi !", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { MessageBox.Show(ex.Message, "Bilgi !", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public DoktorFrm(int doktorID) { InitializeComponent(); doktorController = new DoktorController(); randevuController = new RandevuController(); hastaController = new HastaController(); muayeneController = new MuayeneController(); departmanController = new DepartmanController(); departman = new DepartmanEntities(); doktor = new DoktorEntities(); randevu = new RandevuEntities(); hasta = new HastaEntities(); randevus = new List <RandevuHastaDTO>(); muaneler = new List <HastaMuaneleriDTO>(); doktor = doktorController.GetDoktor(doktorID); departman = departmanController.IDyeGoreDepartmanGetir(doktor.DepartmanID); labelDoktor.Text = departman.DepartmanAdi + " Uzmanı Dr. " + doktor.Adi + " " + doktor.Soyadi; gBoxMuaneSorgula.Hide(); gBoxHesapBilgileri.Hide(); gBoxCalismaGunu.Hide(); }
/// <summary> /// Göstereceğiniz ComboBox Kontrolüne Bölumleri Listeler /// </summary> /// <param name="cmb">Combobox Kontrolü</param> public static void ComboBoxBolumGetir(ComboBox cmb, int departmanId) { cmb.DataSource = DepartmanController.TumDepartmanlariGetir(); cmb.DisplayMember = "DepartmanAdi"; //cmb.ValueMember = "DepartmanId"; }
public void DepartmanDetayiGetir() { DepartmanController.DepartmanDetayiGetir(0); }
public static void ComboBoxDepartmanGetir(ComboBox cmb) { cmb.DataSource = DepartmanController.DepartmanlariGetir(); cmb.DisplayMember = "departmanAdi"; cmb.ValueMember = "departmanID"; }