private void PreapreDataSource() { try { comB_LoaiHD.DataSource = oLoaihopdong.GetList_Compact(); comB_LoaiHD.DisplayMember = "loai_hop_dong"; comB_LoaiHD.ValueMember = "id"; comB_ChucDanh.DataSource = oChucdanh.GetList(); comB_ChucDanh.DisplayMember = "ten_chuc_danh"; comB_ChucDanh.ValueMember = "id"; comB_ChucVu.DataSource = oChucvu.GetList(); comB_ChucVu.DisplayMember = "ten_chuc_vu"; comB_ChucVu.ValueMember = "id"; dtDonVi = oDonvi.GetInActiveDonVi(); comB_DonVi.DataSource = dtDonVi; comB_DonVi.DisplayMember = "ten_don_vi"; comB_DonVi.ValueMember = "id"; Fill_Info_DonVi(); comB_LoaiPhuCap.DataSource = dtLoaiPC; comB_LoaiPhuCap.DisplayMember = "ten_loai"; comB_LoaiPhuCap.ValueMember = "id"; EditInterface_LoaiPC(); } catch (Exception) { } }
private void PreapreDataSource() { try { comB_ChucDanh.DataSource = oChucdanh.GetList(); comB_ChucDanh.DisplayMember = "ten_chuc_danh"; comB_ChucDanh.ValueMember = "id"; comB_ChucVu.DataSource = oChucvu.GetList(); comB_ChucVu.DisplayMember = "ten_chuc_vu"; comB_ChucVu.ValueMember = "id"; comB_DonVi.DataSource = oDonvi.GetActiveDonVi(); comB_DonVi.DisplayMember = "ten_don_vi"; comB_DonVi.ValueMember = "id"; comB_LoaiPhuCap.DataSource = dtLoaiPC; comB_LoaiPhuCap.DisplayMember = "ten_loai"; comB_LoaiPhuCap.ValueMember = "id"; EditInterface_LoaiPC(); } catch (Exception) { } }
private void NVTheo_CD_CV_Load(object sender, EventArgs e) { try { DataTable dt_cd = oChucdanh.GetList(); DataTable dt_cv = oChucvu.GetList(); if (dt_cd != null && dt_cd.Rows.Count > 0) { dt_cd.Rows.RemoveAt(0); } if (dt_cv != null && dt_cv.Rows.Count > 0) { dt_cv.Rows.RemoveAt(0); } clb_ChucDanh.DataSource = dt_cd; clb_ChucDanh.ValueMember = "id"; clb_ChucDanh.DisplayMember = "ten_chuc_danh"; clb_ChucVu.DataSource = dt_cv; clb_ChucVu.ValueMember = "id"; clb_ChucVu.DisplayMember = "ten_chuc_vu"; } catch (Exception) { } }
private void PreapreDataSource() { try { comB_ChucVu.DataSource = oChucvu.GetList(); comB_ChucVu.DisplayMember = "ten_chuc_vu"; comB_ChucVu.ValueMember = "id"; comB_PhuongTien.DataSource = oQDDiDuong.GetList(); comB_PhuongTien.DisplayMember = "loai_phuong_tien"; comB_PhuongTien.ValueMember = "id"; } catch (Exception) { } }
private void PreapreDataSource() { try { comB_ChucDanh.DataSource = oChucdanh.GetList(); comB_ChucDanh.DisplayMember = "ten_chuc_danh"; comB_ChucDanh.ValueMember = "id"; comB_ChucVu.DataSource = oChucvu.GetList(); comB_ChucVu.DisplayMember = "ten_chuc_vu"; comB_ChucVu.ValueMember = "id"; } catch (Exception) { } }
public DoiThongTinDV() { InitializeComponent(); oDonVi = new DonVi(); oChucVu = new ChucVu(); oQuyetDinh = new Business.HDQD.QuyetDinh(); dtDonVi = oDonVi.GetActiveDonVi(); dtChucVu = oChucVu.GetList(); oFTP = new Business.FTP(); oFile = new Business.HDQD.QD_File(); dtFile = new DataTable(); Paths = new List <KeyValuePair <string, bool?> >(); TLPTenColCount = tableLP_ThayDoiTen.ColumnCount; TLPCVColCount = tableLP_ThayDoiCV.ColumnCount; TLPCapBacColCount = tableLP_ThayDoiCapBac.ColumnCount; }
public DoiThongTinDV() { InitializeComponent(); oDonVi = new DonVi(); oChucVu = new ChucVu(); oQuyetDinh = new Business.HDQD.QuyetDinh(); dtDonVi = oDonVi.GetActiveDonVi(); dtChucVu = oChucVu.GetList(); oFTP = new Business.FTP(); oFile = new Business.HDQD.QD_File(); dtFile = new DataTable(); Paths = new List<KeyValuePair<string, bool?>>(); TLPTenColCount = tableLP_ThayDoiTen.ColumnCount; TLPCVColCount = tableLP_ThayDoiCV.ColumnCount; TLPCapBacColCount = tableLP_ThayDoiCapBac.ColumnCount; }