예제 #1
0
 public EczaciFrm(int eczaciID)
 {
     InitializeComponent();
     _receteController = new ReceteController();
     receteIlaclari    = new List <ReceteIlaclariDTO>();
     hastaReceteleri   = new List <HastayaGoreReceteDTO>();
     eczaciController  = new EczaciController();
     eczaci            = new EczaciEntities();
     eczaci            = eczaciController.GetEczaci(eczaciID);
     labelEczaci.Text  = "Eczaci " + eczaci.Adi + " " + eczaci.Soyadi;
 }
예제 #2
0
        public MuayeneFrm(RandevuHastaDTO randevudakiHasta)
        {
            InitializeComponent();
            teshisController      = new TeshisController();
            tahlilController      = new TahlilController();
            randevuController     = new RandevuController();
            muayeneController     = new MuayeneController();
            receteController      = new ReceteController();
            dctController         = new DoktorCalismaTakvimiController();
            recete                = new ReceteEntities();
            ilacController        = new IlacController();
            muayene               = new MuayeneEntities();
            this.randevudakiHasta = randevudakiHasta;
            lblHasta.Text         = randevudakiHasta.HastaFullAd;

            gBoxTeshis.Hide();
            gBoxTahlil.Hide();
        }
예제 #3
0
        public MuayeneFrm(MuayeneEntities muane, HastaEntities hasta)
        {
            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.Sizable;
            teshisController     = new TeshisController();
            tahlilController     = new TahlilController();
            randevuController    = new RandevuController();
            muayeneController    = new MuayeneController();
            receteController     = new ReceteController();
            recete         = new ReceteEntities();
            ilacController = new IlacController();
            muayene        = new MuayeneEntities();

            lblHasta.Text = hasta.Adi + " " + hasta.Soyadi;

            foreach (Control item in this.Controls)
            {
                item.Enabled = false;
            }

            txtNot.Text = muane.Not;
            if (muane.TeshisID == 0)
            {
                rButtonTahlil.Checked = true;
                gBoxTahlil.Show();
                cmbTahlil.SelectedIndex = muane.TahlilID;
            }
            else if (muane.TahlilID == 0)
            {
                rButtonTeshis.Checked = true;
                gBoxTeshis.Show();
                cmbTeshis.SelectedIndex = muane.TeshisID;
                cmbIlac.DataSource      = null;
            }
            else
            {
                MessageBox.Show("Sıkıntı var");
            }
        }