private void setValues(Home home) { this.home = home; FromDatePicker.Value = DateTime.Today; ToDatePicker.Value = DateTime.Today.AddDays(-1); mO = new MedicienOperations(); }
private void setValues(Home home, Medicine med) { this.home = home; this.med = med; this.medsOper = new MedicienOperations(); medUpdated = new Medicine(); medUpdated.OldmedsList = med.OldmedsList; oldMedsGridView.DataSource = getOldMdsDataTabel(); }
private void setOpjs(Home home) { this.home = home; medicens = new ArrayList(); medsOperations = new MedicienOperations(); medsTable = new DataTable(); oldMedsTable = new DataTable(); }
private void setObjcts() { table = new DataTable(); medOp = new MedicienOperations(); order = new Orders(); med = new Medicine(); mao = new MedAndOrder(); ordersOp = new OrdersOperations(); mao.Medicen = med; }
private void setValues(Home home) { mO = new MedicienOperations(); co = new CustomersOperations(); oO = new OrdersOperations(); dTotalSales = 0; dPaid = 0; dDept = 0; listOfDaysSales = new List <Orders>(); SalesDatePicker.Value = DateTime.Today; this.home = home; }
private void setFields(Home home, ArrayList companiesList) { currentSelectedIndex = -1; companyOperationObj = new CompaniesOperations(); medicenOperations = new MedicienOperations(); middlePanel.Visible = false; if (companiesList == null) { this.companiesList = this.companyOperationObj.getAllCompanies(CompaniesOperations.ALL_COMPANIES); } else { this.companiesList = companiesList; } this.home = home; enabelAllFields(false); showUpdateOrderPanel(false); }