示例#1
0
        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";

                dtDSDonVi                = oDonvi.GetActiveDonVi();
                comB_DonVi.DataSource    = dtDSDonVi;
                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)
            {
            }
        }
示例#2
0
        private void PreapreDataSource()
        {
            dtDonVi = oDonvi.GetActiveDonVi();
            DataRow row = dtDonVi.NewRow();

            dtDonVi.Rows.InsertAt(row, 0);

            comb_DVTrucThuoc.DataSource    = dtDonVi;
            comb_DVTrucThuoc.DisplayMember = "ten_don_vi";
            comb_DVTrucThuoc.ValueMember   = "id";
        }
示例#3
0
        private void LoadCboDonViTrucThuoc()
        {
            DataTable     dvlist = donvi.GetActiveDonVi();
            BindingSource bs     = new BindingSource();

            bs.DataSource = dvlist;
            bs.AddNew();
            comB_TrucThuoc.DataSource    = bs;
            comB_TrucThuoc.DisplayMember = "ten_don_vi";
            comB_TrucThuoc.ValueMember   = "id";
        }
示例#4
0
        private void NVTheo_DV_Load(object sender, EventArgs e)
        {
            try
            {
                DataTable dt_dv = oDonVi.GetActiveDonVi();


                clb_DV.DataSource    = dt_dv;
                clb_DV.ValueMember   = "id";
                clb_DV.DisplayMember = "ten_don_vi";
            }
            catch (Exception)
            {
            }
        }
示例#5
0
        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;
        }
示例#6
0
        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;
        }
示例#7
0
        private void NVTheo_HocHam_HocVi_GioiTinh_Load(object sender, EventArgs e)
        {
            try
            {
                LoadListBoxFinish = false;

                DataTable dt_dv = oDonVi.GetActiveDonVi();
                DataRow   dr_dv = dt_dv.NewRow();
                dr_dv["ten_don_vi"] = "Tất cả";
                dr_dv["id"]         = -1;
                dt_dv.Rows.InsertAt(dr_dv, 0);

                clb_DonVi.DataSource    = dt_dv;
                clb_DonVi.ValueMember   = "id";
                clb_DonVi.DisplayMember = "ten_don_vi";


                DataTable dt_hocham = oVangBangChinhQuy.GetVanBangList();
                DataRow   dr_hocham = dt_hocham.NewRow();
                dr_hocham["ten_van_bang"] = "Tất cả";
                dr_hocham["id"]           = -1;
                dt_hocham.Rows.InsertAt(dr_hocham, 0);

                clb_HocHam.DataSource    = dt_hocham;
                clb_HocHam.ValueMember   = "id";
                clb_HocHam.DisplayMember = "ten_van_bang";

                DataTable dt_chucdanh = oChucDanh.GetListWithNoEmptyRow();
                DataRow   dr_chucdanh = dt_chucdanh.NewRow();
                dr_chucdanh["ten_chuc_danh"] = "Tất cả";
                dr_chucdanh["id"]            = -1;
                dt_chucdanh.Rows.InsertAt(dr_chucdanh, 0);

                clb_ChucDanh.DataSource    = dt_chucdanh;
                clb_ChucDanh.ValueMember   = "id";
                clb_ChucDanh.DisplayMember = "ten_chuc_danh";

                LoadListBoxFinish = true;
            }
            catch (Exception)
            {
            }
        }