Пример #1
0
 public frmSearchCustomer()
 {
     InitializeComponent();
     customerDataTable = new DataTable();
     customerBUS = new BUSCustomer();
     customerObject = new DTOCustomer();
     customerMultiSelect = new GridCheckMarksSelection(grdvListCustomer);
     ruleBUS = new BUSRule();
     CustomerSno.VisibleIndex = 1;
 }
Пример #2
0
 public frmSearchStaff()
 {
     InitializeComponent();
     rolePermissionDataTable = new DataTable();
     rolePermissionBUS = new BUSRolePermission();
     rolePermissionObject = new DTORolePermission();
     _StaffDT = new DataTable();
     staffBUS = new BUSStaff();
     staffObject = new DTOStaff();
     staffMultiSelect = new GridCheckMarksSelection(grdvListStaff);
     ruleBUS = new BUSRule();
     StaffSno.VisibleIndex = 1;
 }
Пример #3
0
        private void frmRule_Load(object sender, EventArgs e)
        {
            ruleBUS = new BUSRule();

            spMinimumAge.EditValue = ruleBUS.GetRuleByLabel("DoTuoiNhanVienToiThieu");
            spMaximumAge.EditValue = ruleBUS.GetRuleByLabel("DoTuoiNhanVienToiDa");
            //
            spTax.EditValue = ruleBUS.GetRuleByLabel("ThueTNDN");
            //
            txtNameSystem.Text = ruleBUS.GetRuleByLabel("TenKhachSan");
            txtAddress.Text = ruleBUS.GetRuleByLabel("DiaChi");
            txtTaxId.Text = ruleBUS.GetRuleByLabel("MaSoThue");
            txtEmail.Text = ruleBUS.GetRuleByLabel("Email");
            txtPhone.Text = ruleBUS.GetRuleByLabel("Fax");
            txtWebsite.Text = ruleBUS.GetRuleByLabel("Website");
            txtFaxNumber.Text = ruleBUS.GetRuleByLabel("MaSoThue");
            //
            btnCancelUpdate.Visible = false;
            btnSave.Enabled = false;
        }