BKI_DichVuMatDat.NghiepVu.f361_quan_ly_quyet_dinh_de.load_data_2_sle_chon_quyet_dinh C# (CSharp) Method

load_data_2_sle_chon_quyet_dinh() private method

private load_data_2_sle_chon_quyet_dinh ( ) : void
return void
        private void load_data_2_sle_chon_quyet_dinh()
        {
            m_sle_loai_quyet_dinh.Properties.DataSource = load_data_2_cm_dm_tu_dien(CONST_ID_LOAI_TU_DIEN.LOAI_QUYET_DINH).CM_DM_TU_DIEN;
            m_sle_loai_quyet_dinh.Properties.ValueMember = CM_DM_TU_DIEN.ID;
            m_sle_loai_quyet_dinh.Properties.DisplayMember = CM_DM_TU_DIEN.TEN;

            m_sle_loai_quyet_dinh.Properties.PopulateViewColumns();
            m_sle_loai_quyet_dinh.Properties.View.Columns[CM_DM_TU_DIEN.ID].Visible = false;
            m_sle_loai_quyet_dinh.Properties.View.Columns[CM_DM_TU_DIEN.ID_LOAI_TU_DIEN].Visible = false;
            m_sle_loai_quyet_dinh.Properties.View.Columns[CM_DM_TU_DIEN.TEN_NGAN].Visible = false;

            m_sle_loai_quyet_dinh.Properties.View.Columns[CM_DM_TU_DIEN.MA_TU_DIEN].Width = 75;
            m_sle_loai_quyet_dinh.Properties.View.Columns[CM_DM_TU_DIEN.TEN].Width = 120;

            m_sle_loai_quyet_dinh.Properties.View.Columns[CM_DM_TU_DIEN.MA_TU_DIEN].Caption = "Mã loại quyết định";
            m_sle_loai_quyet_dinh.Properties.View.Columns[CM_DM_TU_DIEN.TEN].Caption = "Loại quyết định";
            m_sle_loai_quyet_dinh.Properties.View.Columns[CM_DM_TU_DIEN.GHI_CHU].Caption = "Ghi chú";

            m_sle_loai_quyet_dinh.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
            m_sle_loai_quyet_dinh.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFit;
        }