Ejemplo n.º 1
0
        private void PopulateCLBMedicine()
        {
            DataTable medicineTable = MedicineRepo.GetAllMedicine();

            for (int ax = 1; ax < medicineTable.Rows.Count; ax++)
            {
                clbMedicine.Items.Add(medicineTable.Rows[ax]["medicinename"].ToString());
            }
        }
Ejemplo n.º 2
0
        public ManageMedicine(Login l)
        {
            this.l = l;
            InitializeComponent();
            mr = new MedicineRepo();

            List <Medicine> listOfMdc = mr.GetAllMedicine();

            MdcnDataTableGridView.DataSource = listOfMdc;
        }
Ejemplo n.º 3
0
        public SaleMedicineForm(Login l)
        {
            this.l = l;
            InitializeComponent();
            mr = new MedicineRepo();
            sr = new SaleMedicineRepo();
            List <Medicine> listOfMdc = mr.GetAllMedicine();

            allMdcnGridView.DataSource = listOfMdc;
        }
Ejemplo n.º 4
0
        public EmployeeForm(Login l)
        {
            this.l = l;
            er     = new EmployeeRepo();
            mr     = new MedicineRepo();
            InitializeComponent();
            Employee_Info(l);

            List <Medicine> listOfMdc = mr.GetAllMedicine();

            MdcnDataGridView.DataSource = listOfMdc;
        }
        private void PopulateCLBMedicine()
        {
            DataTable medicineTable = MedicineRepo.GetAllMedicine();

            for (int ax = 1; ax < medicineTable.Rows.Count; ax++)
            {
                clbMedicine.Items.Add(medicineTable.Rows[ax]["medicinename"].ToString());
            }

            DataTable allMedicineTable = PatientDiseaseRepo.GetIndividualMedicine(Convert.ToInt32(txtPersonID.Text));

            for (int ax = 0; ax < allMedicineTable.Rows.Count; ax++)
            {
                if (clbMedicine.Items.Contains(allMedicineTable.Rows[ax]["medicinename"].ToString()))
                {
                    clbMedicine.SetItemChecked(clbMedicine.Items.IndexOf(allMedicineTable.Rows[ax]["medicinename"].ToString()), true);
                }
            }
        }
Ejemplo n.º 6
0
 public FormSoldItem()
 {
     InitializeComponent();
     this.SRepo = new SaleRepo();
     this.MRepo = new MedicineRepo();
 }