private void FrmPrincipal_Load(object sender, EventArgs e) { uowPrincipal = new UnitOfWork <Principal>(dbContext); BindPrincipalGridView(); SetUIGridView(); commonHelper.BindLocationComboBox(dbContext, cbProvince, Constant.LocationType.Province); isAdd = true; SetUIButtonGroup(); txtPrincipalCode.Focus(); }
private void FrmSalesman_Load(object sender, EventArgs e) { uowSalesman = new UnitOfWork <Salesman>(dbContext); BindRoleGridView(); SetUIGridView(); commonHelper.BindLocationComboBox(dbContext, cbProvince, Constant.LocationType.Province); isAdd = true; SetUIButtonGroup(); txtSalesmanCode.Focus(); }
private void FrmSalesOrder_Load(object sender, EventArgs e) { _uow = new UnitOfWork <SalesOrder>(dbContext); BindComboBoxCustomer(); BindComboBoxSalesman(); BindComboBoxTermOfPayment(); BindComboBoxSalesArea(); BindComboBoxProduct(); commonHelper.BindLocationComboBox(dbContext, cbProvince, Constant.LocationType.Province); isAdd = true; SetUIButtonGroup(); cbCustomer.Focus(); CheckSourceRefData(); dtpExpiredDate.Format = DateTimePickerFormat.Custom; dtpExpiredDate.CustomFormat = "MM/yyyy"; dtpExpiredDate.ShowUpDown = true; }