Example #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";

                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)
            {
            }
        }
Example #2
0
        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)
            {
            }
        }
Example #3
0
        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)
            {
            }
        }
Example #4
0
        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)
            {
            }
        }
Example #5
0
        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)
            {
            }
        }
Example #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;
        }
Example #7
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;
        }