Ejemplo n.º 1
0
        public frmImportDetail(int importId)
        {
            repClinic = new ClinicRepository();
            repDefine = new DefineRepository();
            repMedicine = new MedicineRepository();
            repwh = new WareHouseRepository();
            repwhDetail = new WareHouseDetailRepository();
            _repwhIo = new WareHouseIORepository();
            _repwhIoDetail = new WareHouseIODetailRepository();

            InitializeComponent();
            repClinic = new ClinicRepository();
            cbClinic.DataSource = repClinic.GetAll();
            dateImport.Value = DateTime.Now.Date;

            try
            {
                InitGrid();
                LoadData(importId);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Ejemplo n.º 2
0
        public frmExport()
        {
            repClinic = new ClinicRepository();
            repDefine = new DefineRepository();
            repMedicine = new MedicineRepository();
            repwh = new WareHouseRepository();
            repwhDetail = new WareHouseDetailRepository();
            _repwhIo = new WareHouseIORepository();
            _repwhIoDetail = new WareHouseIODetailRepository();
            // whExport = new WareHouseExportAllocateRepository();
            InitializeComponent();
            repClinic = new ClinicRepository();
            FillToComboboxClinic(0);
            dateImport.Value = DateTime.Now.Date;

            try
            {
                InitGrid();
                //bindingSource3.DataSource = repMedicine.GetAll();
            }
            catch (Exception ex)
            {

                throw;
            }
        }
Ejemplo n.º 3
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     WareHouseRepository whRepository = new WareHouseRepository();
     int clinicId = 0;
     if (cboClinic.SelectedValue != null)
         int.TryParse(cboClinic.SelectedValue.ToString(), out clinicId);
     grd.DataSource = whRepository.GetInventory(clinicId, dpkFromDate.Value.Date, dpkToDate.Value.Date);
 }
Ejemplo n.º 4
0
        public frmMedicinePlan()
        {
            repClinic = new ClinicRepository();
            repwh = new WareHouseRepository();
            repMedicinePlan = new MedicinePlanRepository();
            repMedicinePlanDetail = new MedicinePlanDetailRepository();
            InitializeComponent();

            try
            {
                InitGrid();
                BindData();
            }
            catch (Exception ex)
            {

                throw;
            }
        }