private void FrmDepartmanListesi_Load(object sender, EventArgs e)
 {
     liste = DepartmanBLL.DepartmanGetir();
     dataGridView1.DataSource            = liste;
     dataGridView1.Columns[0].Visible    = false;
     dataGridView1.Columns[1].HeaderText = "Departman Adı";
 }
 private void btnKaydet_Click(object sender, EventArgs e)
 {
     if (txtDepartmanAd.Text.Trim() == "")
     {
         MessageBox.Show("Lütfen Departman Adı giriniz.");
     }
     else
     {
         DEPARTMAN dpt = new DEPARTMAN();
         if (isUpdate)
         {
             DialogResult result = MessageBox.Show("Eminmisiniz", "dikkat", MessageBoxButtons.YesNo);
             if (result == DialogResult.Yes)
             {
                 dpt.DepartmanAd = txtDepartmanAd.Text;
                 dpt.ID          = detay.ID;
                 DepartmanBLL.DepartmanGuncelle(dpt);
                 MessageBox.Show("Güncellendi");
                 this.Close();
             }
         }
         else
         {
             dpt.DepartmanAd = txtDepartmanAd.Text;
             DepartmanBLL.DepartmanEkle(dpt);
             MessageBox.Show("Departman Eklendi");
             txtDepartmanAd.Clear();
         }
     }
 }
        public frmEmployeeAdd(int flag)
        {
            flag1 = flag;

            employees     = new Employees();
            _employeeBLL  = new EmployeeBLL();
            _departmanBLL = new DepartmanBLL();
            InitializeComponent();
        }
        private void btnEkle_Click(object sender, EventArgs e)
        {
            FrmDepartmanBilgileri frm = new FrmDepartmanBilgileri();

            this.Hide();
            frm.isUpdate = false;
            frm.ShowDialog();
            this.Visible             = true;
            liste                    = DepartmanBLL.DepartmanGetir();
            dataGridView1.DataSource = liste;
        }
        private void btnSil_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Silinsinmi?", "Dikkat", MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                DepartmanBLL.DepartmanSil(detay.ID);
                MessageBox.Show("Silindi");
                liste = DepartmanBLL.DepartmanGetir();
                dataGridView1.DataSource = liste;
            }
        }
        public frmHastaRandevularım(Hasta hasta)
        {
            InitializeComponent();

            _hasta        = new Hasta();
            _hasta        = hasta;
            _randevuBLL   = new RandevuBLL();
            _seansBLL     = new SeansBLL();
            _doktorBLL    = new DoktorBLL();
            _hastaneBLL   = new HastaneBLL();
            _departmanBLL = new DepartmanBLL();
        }
Esempio n. 7
0
 public frmHastaEkrani(int hastaID)
 {
     InitializeComponent();
     conn           = new SqlConnection(Properties.Settings.Default.HST);
     _doktorDAL     = new DoktorDAL();
     _hastaneeDAL   = new HastaneeDAL();
     _departmanDAL  = new DepartmanDAL();
     _poliklinikDAL = new PoliklinikDAL();
     _hastaDAL      = new HastaDAL();
     hasta          = new HastaEntity();
     hastaneeBLL    = new HastaneeBLL();
     _departmanBLL  = new DepartmanBLL();
     _poliklinikBLL = new PoliklinikBLL();
     _randevuDAL    = new RandevuDAL();
     this.hastaID   = hastaID;
 }
Esempio n. 8
0
 public frmRandevu(Hasta _hasta)
 {
     InitializeComponent();
     _hastaneBLL     = new HastaneBLL();
     hdDTO           = new List <HastaneDepDTO>();
     _depBLL         = new DepartmanBLL();
     _dokBLL         = new DoktorBLL();
     _seansBLL       = new SeansBLL();
     _hastaBLL       = new HastaBLL();
     _randevuBLL     = new RandevuBLL();
     _gununTarihiBLL = new GununTarihiBLL();
     hasta           = new Hasta();
     hasta           = _hasta;
     hastaneler      = _hastaneBLL.GetHastaneler();
     departmanlar    = _depBLL.GetDepartmanlar();
 }
Esempio n. 9
0
 public mhrsRandevularim(Hastalar hasta)
 {
     InitializeComponent();
     _doktorlarBLL     = new DoktorlarBLL();
     _randevularBLL    = new RandevularBLL();
     _seanslarBLL      = new SeanslarBLL();
     _hastaneDetayBLL  = new HastaneDetayBLL();
     _hastanelerBLL    = new HastanelerBLL();
     _polikliniklerBLL = new PolikliniklerBLL();
     _departmanBLL     = new DepartmanBLL();
     _hastane          = new Hastaneler();
     _doktor           = new Doktorlar();
     _hasta            = hasta;
     _poliklinikler    = new Poliklinikler();
     _departmanlar     = new Departmanlar();
 }
Esempio n. 10
0
        public mhrsRandevuAl(Hastalar hasta)
        {
            InitializeComponent();
            _sehirlerBLL      = new SehirlerBLL();
            _ilcelerBLL       = new IlcelerBLL();
            _hastanelerBLL    = new HastanelerBLL();
            _polikliniklerBLL = new PolikliniklerBLL();
            _departmanBLL     = new DepartmanBLL();
            _hastaneDetay     = new HastaneDetayBLL();
            _seanslarBLL      = new SeanslarBLL();
            _randevularBLL    = new RandevularBLL();
            _randevu          = new Randevular();
            _hasta            = hasta;


            cmbSehir.DataSource    = _sehirlerBLL.SehirleriGetir();
            cmbSehir.DisplayMember = "SehirAdi";
            cmbSehir.ValueMember   = "SehirID";

            dtpTarih.Value = DateTime.Now.AddDays(1);
        }
Esempio n. 11
0
        public frmDepartman()
        {
            departmanBLL = new DepartmanBLL();

            InitializeComponent();
        }