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";
        }
Exemple #2
0
        private void RenderForm()
        {
            List <PaymentStoreResult> lstPaymentStore = new List <PaymentStoreResult>();

            lstPaymentStore = QuayGiaoDichBUS.getDataSourcePaymentCombo();
            cbo_PaymentStore.Properties.DataSource    = lstPaymentStore;
            cbo_PaymentStore.Properties.DisplayMember = "PaymentStoreName";
            cbo_PaymentStore.Properties.ValueMember   = "PaymentStoreCode";
            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";
        }
Exemple #3
0
        private void BindingGrid()
        {
            List <PaymentStoreResult> lstPaymentStore = new List <PaymentStoreResult>();

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

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

            lstGender = NhomTaiKhoanBus.Instance.GetAllGender();
            cbo_StaffGender_Grid.DataSource    = lstGender;
            cbo_StaffGender_Grid.DisplayMember = "GenderName";
            cbo_StaffGender_Grid.ValueMember   = "GenderCode";
        }