private void load_data_2_cbo_truong() { US_CM_DM_TU_DIEN v_us_tu_dien = new US_CM_DM_TU_DIEN(); DS_CM_DM_TU_DIEN v_ds_tu_dien = new DS_CM_DM_TU_DIEN(); string v_str_loai_tu_dien = LOAI_TU_DIEN_ID.TO_CHUC_TRUONG.ToString(); v_us_tu_dien.fill_tu_dien_by_procedure("pr_CM_DM_TU_DIEN_Load_tu_dien_by_procedure", v_str_loai_tu_dien, v_ds_tu_dien); DataRow v_dr = v_ds_tu_dien.CM_DM_TU_DIEN.NewCM_DM_TU_DIENRow(); v_dr[CM_DM_TU_DIEN.ID] = "0"; v_dr[CM_DM_TU_DIEN.TEN] = "-- Tất cả trường--"; v_dr[CM_DM_TU_DIEN.MA_TU_DIEN] = "ALL"; v_ds_tu_dien.EnforceConstraints = false; v_ds_tu_dien.CM_DM_TU_DIEN.Rows.InsertAt(v_dr, 0); m_cbo_qlht_truong.DisplayMember = CM_DM_TU_DIEN.TEN; m_cbo_qlht_truong.ValueMember = CM_DM_TU_DIEN.MA_TU_DIEN; m_cbo_qlht_truong.DataSource = v_ds_tu_dien.CM_DM_TU_DIEN; m_e_trang_thai_cbo_truong = e_trang_thai_cbo_truong.DA_FILL_XONG; }
private void load_data_2_cbo_truong() { US_CM_DM_TU_DIEN v_us_tu_dien = new US_CM_DM_TU_DIEN(); DS_CM_DM_TU_DIEN v_ds_tu_dien = new DS_CM_DM_TU_DIEN(); string v_str_loai_tu_dien = LOAI_TU_DIEN_ID.TO_CHUC_TRUONG.ToString(); v_us_tu_dien.fill_tu_dien_by_procedure("pr_CM_DM_TU_DIEN_Load_tu_dien_by_procedure", v_str_loai_tu_dien, v_ds_tu_dien); DataRow v_dr = v_ds_tu_dien.CM_DM_TU_DIEN.NewCM_DM_TU_DIENRow(); v_dr[CM_DM_TU_DIEN.ID] = "0"; v_dr[CM_DM_TU_DIEN.TEN] = "-- Tất cả trường--"; v_dr[CM_DM_TU_DIEN.MA_TU_DIEN] = "ALL"; v_ds_tu_dien.EnforceConstraints = false; v_ds_tu_dien.CM_DM_TU_DIEN.Rows.InsertAt(v_dr, 0); m_cbo_qlht_truong.DisplayMember = CM_DM_TU_DIEN.TEN; m_cbo_qlht_truong.ValueMember = CM_DM_TU_DIEN.MA_TU_DIEN; m_cbo_qlht_truong.DataSource = v_ds_tu_dien.CM_DM_TU_DIEN; m_e_trang_thai_cbo_truong = e_trang_thai_cbo_truong.DA_FILL_XONG; }