コード例 #1
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;
            }
        }
コード例 #2
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;
            }
        }
コード例 #3
0
        public frmImportWH()
        {

            repClinic = new ClinicRepository();
            repMedicine = new MedicineRepository();
            repwhDetail = new WareHouseDetailRepository();
            repwhPaper = new WareHousePaperRepository();
            repwhPaperDetail = new WareHousePaperDetailRepository();

            InitializeComponent();
            repClinic = new ClinicRepository();
            FillToComboboxClinic(0);
            dateImport.Value = DateTime.Now.Date;


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