private void load_data_2_cbo_nguoi_dai_dien() { m_e_trang_thai_cbo_ndd = e_trang_thai_cbo_nguoi_dai_dien.DANG_FILL_DATA; US_V_DM_NGUOI_DAI_DIEN v_us_nguoi_dai_dien = new US_V_DM_NGUOI_DAI_DIEN(); DS_V_DM_NGUOI_DAI_DIEN v_ds_nguoi_dai_dien = new DS_V_DM_NGUOI_DAI_DIEN(); v_us_nguoi_dai_dien.dcID_DON_VI = CIPConvert.ToDecimal(m_cbo_don_vi_noi_bo.SelectedValue); v_us_nguoi_dai_dien.load_ds_nguoi_dai_dien_by_id_to_chuc(v_ds_nguoi_dai_dien); m_cbo_nguoi_dai_dien.DataSource = v_ds_nguoi_dai_dien.V_DM_NGUOI_DAI_DIEN; m_cbo_nguoi_dai_dien.DisplayMember = V_DM_NGUOI_DAI_DIEN.NDD_HO_TEN; m_cbo_nguoi_dai_dien.ValueMember = V_DM_NGUOI_DAI_DIEN.ID; m_e_trang_thai_cbo_ndd = e_trang_thai_cbo_nguoi_dai_dien.DA_FILL_XONG; if (m_cbo_nguoi_dai_dien.Items.Count > 0) { load_thong_tin_nguoi_dai_dien(); } else { m_txt_dien_thoai_ndd.Text = ""; m_pic_call_ndd.Visible = false; } }
private void load_data_2_cbo_nguoi_dai_dien() { m_e_trang_thai_cbo_ndd = e_trang_thai_cbo_nguoi_dai_dien.DANG_FILL_DATA; US_V_DM_NGUOI_DAI_DIEN v_us_nguoi_dai_dien = new US_V_DM_NGUOI_DAI_DIEN(); DS_V_DM_NGUOI_DAI_DIEN v_ds_nguoi_dai_dien = new DS_V_DM_NGUOI_DAI_DIEN(); v_us_nguoi_dai_dien.dcID_DON_VI = CIPConvert.ToDecimal(m_cbo_don_vi_noi_bo.SelectedValue); v_us_nguoi_dai_dien.load_ds_nguoi_dai_dien_by_id_to_chuc(v_ds_nguoi_dai_dien); m_cbo_nguoi_dai_dien.DataSource = v_ds_nguoi_dai_dien.V_DM_NGUOI_DAI_DIEN; m_cbo_nguoi_dai_dien.DisplayMember = V_DM_NGUOI_DAI_DIEN.NDD_HO_TEN; m_cbo_nguoi_dai_dien.ValueMember = V_DM_NGUOI_DAI_DIEN.ID; m_e_trang_thai_cbo_ndd = e_trang_thai_cbo_nguoi_dai_dien.DA_FILL_XONG; if (m_cbo_nguoi_dai_dien.Items.Count > 0) load_thong_tin_nguoi_dai_dien(); else { m_txt_dien_thoai_ndd.Text = ""; m_pic_call_ndd.Visible = false; } }