示例#1
0
        private void RenderForm()
        {
            List <PaymentStoreResult> lstPaymentStore = new List <PaymentStoreResult>();

            lstPaymentStore = QuayGiaoDichBUS.getDataSourcePaymentCombo();
            gridLook_PaymentStore.Properties.DataSource    = lstPaymentStore;
            gridLook_PaymentStore.Properties.DisplayMember = "PaymentStoreName";
            gridLook_PaymentStore.Properties.ValueMember   = "PaymentStoreCode";
            List <PermissionResult> lstPermission = new List <PermissionResult>();

            lstPermission = NhomTaiKhoanBus.Instance.GetAllPermission();
            gridLook_Permission.Properties.DataSource    = lstPermission;
            gridLook_Permission.Properties.DisplayMember = "PermissionName";
            gridLook_Permission.Properties.ValueMember   = "PermissionCode";
            List <GenderResult> lstGender = new List <GenderResult>();

            lstGender = NhomTaiKhoanBus.Instance.GetAllGender();
            cbo_StaffGender.Properties.DataSource    = lstGender;
            cbo_StaffGender.Properties.DisplayMember = "GenderName";
            cbo_StaffGender.Properties.ValueMember   = "GenderCode";
            List <ChucVuDto> lstJobtitle = new List <ChucVuDto>();
            NhanVienBus      _nvBUS      = new NhanVienBus();

            lstJobtitle = _nvBUS.GetAllJobtitle();
            cbo_StaffJobtitle.Properties.DataSource    = lstJobtitle;
            cbo_StaffJobtitle.Properties.DisplayMember = "TenChucVu";
            cbo_StaffJobtitle.Properties.ValueMember   = "MaChucVu";
        }