Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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;
        }