示例#1
0
 public QLNS_DonVi_CNVC()
 {
     InitializeComponent();
     oDonVi = new Business.DonVi();
     oCNVC = new Business.CNVC.CNVC();
     
 }
示例#2
0
 public QLNS_TapTin()
 {
     InitializeComponent();
     oCNVC       = new Business.CNVC.CNVC();
     oFile       = new Business.CNVC.CNVC_File();
     oFTP        = new Business.FTP();
     dtFileGroup = new DataTable();
     dtFiles     = new DataTable();
 }
示例#3
0
 public QLNS_TapTin()
 {
     InitializeComponent();
     oCNVC = new Business.CNVC.CNVC();
     oFile = new Business.CNVC.CNVC_File();
     oFTP = new Business.FTP();
     dtFileGroup = new DataTable();
     dtFiles = new DataTable();
 }
示例#4
0
 public NgayCong()
 {
     InitializeComponent();
     oDonVi     = new Business.DonVi();
     oCNCV      = new Business.CNVC.CNVC();
     oChucDanh  = new Business.ChucDanh();
     oChucVu    = new Business.ChucVu();
     dtChucDanh = new DataTable();
     dtDonVi    = new DataTable();
     dtChucVu   = new DataTable();
     dtNgayCong = new DataTable();
     dtNV       = new DataTable();
 }
示例#5
0
 public NgayCong()
 {
     InitializeComponent();
     oDonVi = new Business.DonVi();
     oCNCV = new Business.CNVC.CNVC();
     oChucDanh = new Business.ChucDanh();
     oChucVu = new Business.ChucVu();
     dtChucDanh = new DataTable();
     dtDonVi = new DataTable();
     dtChucVu = new DataTable();
     dtNgayCong = new DataTable();
     dtNV = new DataTable();
 }
示例#6
0
        public static bool is_Tach_DV = false; //true = tach; false = gop

        //public M_A()
        //{
        //    InitializeComponent();
        //    oDonvi = new DonVi();
        //    oCNVC = new Business.CNVC.CNVC();
        //    dsDonVi_new = new List<DonVi>();
        //    dsCNVC = new List<string>();
        //    ds_tenCNVC = new List<string>();

        //    dtDonVi = new DataTable();
        //}

        public M_A(bool p_is_Tach_DV)
        {
            InitializeComponent();
            oDonvi      = new DonVi();
            oCNVC       = new Business.CNVC.CNVC();
            dsDonVi_new = new List <DonVi>();
            dsCNVC      = new List <string>();
            ds_tenCNVC  = new List <string>();

            dtDonVi = new DataTable();

            is_Tach_DV = p_is_Tach_DV;
        }
示例#7
0
文件: M_A.cs 项目: Fucmeo/ou-qlns
        public static bool is_Tach_DV = false; //true = tach; false = gop
        
        //public M_A()
        //{
        //    InitializeComponent();
        //    oDonvi = new DonVi();
        //    oCNVC = new Business.CNVC.CNVC();
        //    dsDonVi_new = new List<DonVi>();
        //    dsCNVC = new List<string>();
        //    ds_tenCNVC = new List<string>();

        //    dtDonVi = new DataTable();
        //}

        public M_A(bool p_is_Tach_DV)
        {
            InitializeComponent();
            oDonvi = new DonVi();
            oCNVC = new Business.CNVC.CNVC();
            dsDonVi_new = new List<DonVi>();
            dsCNVC = new List<string>();
            ds_tenCNVC = new List<string>();

            dtDonVi = new DataTable();

            is_Tach_DV = p_is_Tach_DV;
        }
示例#8
0
 public NgayPhep()
 {
     InitializeComponent();
     oDonVi = new Business.DonVi();
     oCNCV = new Business.CNVC.CNVC();
     oChucDanh = new Business.ChucDanh();
     oChucVu = new Business.ChucVu();
     dtChucDanh = new DataTable();
     dtDonVi = new DataTable();
     dtChucVu = new DataTable();
     dtNV = new DataTable();
     dtSelectedNV = new DataTable();
     dtSelectedNV.Columns.Add("ma_nv", typeof(string));
 }
示例#9
0
 public NgayPhep()
 {
     InitializeComponent();
     oDonVi       = new Business.DonVi();
     oCNCV        = new Business.CNVC.CNVC();
     oChucDanh    = new Business.ChucDanh();
     oChucVu      = new Business.ChucVu();
     dtChucDanh   = new DataTable();
     dtDonVi      = new DataTable();
     dtChucVu     = new DataTable();
     dtNV         = new DataTable();
     dtSelectedNV = new DataTable();
     dtSelectedNV.Columns.Add("ma_nv", typeof(string));
 }
示例#10
0
        bool bNhaGiaoChecked, bCongTacChecked, bNangBacChecked; // bien giu gia tri filter cũ

        public QLNS_ThamNien(string p_manv = null)
        {
            InitializeComponent();
            
            dtp_state = DTPs_State.None;
            oCNVC = new Business.CNVC.CNVC();
            oCNVC.MaNV = p_manv;
            dOldFrom = dOldTo = null;
            InitTable();
            if (oCNVC.MaNV != null)
            {
                GetThamNienData();
                RegenerateChart();
            }
        }
示例#11
0
        bool bNhaGiaoChecked, bCongTacChecked, bNangBacChecked; // bien giu gia tri filter cũ

        public QLNS_ThamNien(string p_manv = null)
        {
            InitializeComponent();

            dtp_state  = DTPs_State.None;
            oCNVC      = new Business.CNVC.CNVC();
            oCNVC.MaNV = p_manv;
            dOldFrom   = dOldTo = null;
            InitTable();
            if (oCNVC.MaNV != null)
            {
                GetThamNienData();
                RegenerateChart();
            }
        }
示例#12
0
        public NV_BoNoiVu()
        {
            InitializeComponent();
            oCNVC_QuanHeToChuc = new Business.CNVC.CNVC_QuanHeToChuc();
            oCNVC_QHGiaDinh = new Business.CNVC.CNVC_QHGiaDinh();
            oCNVC_QTr_CongTac_OU = new Business.CNVC.CNVC_QTr_CongTac_OU();
            oDonVi = new Business.DonVi();
            oCNVC_DaoTaoBoiDuong = new Business.CNVC.CNVC_DaoTaoBoiDuong();
            oCNVC = new Business.CNVC.CNVC();
            oCNVC_CMND_HoChieu = new Business.CNVC.CNVC_CMND_HoChieu();
            oCNVC_ThongTinPhu = new Business.CNVC.CNVC_ThongTinPhu();
            oCNVC_ThongTinTuyenDung = new Business.CNVC.CNVC_ThongTinTuyenDung();
            oQuocGia = new Business.QuocGia();
            oTinhTP = new Business.TinhTP();
            oTinhLuong = new Business.Luong.TinhLuong();
            oCNVC_ChinhTri = new Business.CNVC.CNVC_ChinhTri();
            oCNVC_ChinhTriExt = new Business.CNVC.CNVC_ChinhTriExt();
            oCNVC_ChuyenMonTongQuat = new Business.CNVC.CNVC_ChuyenMonTongQuat();
            oCNVC_DienBienSK = new Business.CNVC.CNVC_DienBienSK();
            oCNVC_LSBiBat = new Business.CNVC.CNVC_LSBiBat();

            dt_DienBienLuong = new DataTable();
            dt_CNVC_QHGiaDinh_BanThan = new DataTable();
            dt_CNVC_QHGiaDinh_VoHoacChong = new DataTable();
            dt_CNVC_QTr_CongTac_OU_ChinhTri_ChucVu = new DataTable();
            dt_DaoTaoBoiDuong = new DataTable();
            dt_PC = new DataTable();
            dt_SucKhoe = new DataTable();
            dt_Chinh_Tri_HCCB = new DataTable();
            dt_ChinhTri = new DataTable();
            dt_CMND_HoChieu = new DataTable();
            dt_CMND = new DataTable();
            dt_ThongTinPhu = new DataTable();
            dt_ThongTinTuyenDung = new DataTable();
            dtTinhTP = new DataTable();
            dtQuocGia = new DataTable();
            dt_ThongTinChinh = new DataTable();
            dt_Qtr_Ctac_OU = new DataTable();
            dt_ChucDanh_ChucVu = new DataTable();
            dt_Luong = new DataTable();
            dt_ThongTinLuong = new DataTable();
            dt_ChuyenMonTongQuat = new DataTable();
            dt_ChinhTriExt = new DataTable();
            dt_CNVC_LSBiBat = new DataTable();
            dt_CNVC_QuanHeToChuc = new DataTable();
            dt_CNVC_QHGiaDinh_nuoc_ngoai = new DataTable();
        }
示例#13
0
        public NV_BoNoiVu()
        {
            InitializeComponent();
            oCNVC_QuanHeToChuc   = new Business.CNVC.CNVC_QuanHeToChuc();
            oCNVC_QHGiaDinh      = new Business.CNVC.CNVC_QHGiaDinh();
            oCNVC_QTr_CongTac_OU = new Business.CNVC.CNVC_QTr_CongTac_OU();
            oDonVi = new Business.DonVi();
            oCNVC_DaoTaoBoiDuong = new Business.CNVC.CNVC_DaoTaoBoiDuong();
            oCNVC = new Business.CNVC.CNVC();
            oCNVC_CMND_HoChieu      = new Business.CNVC.CNVC_CMND_HoChieu();
            oCNVC_ThongTinPhu       = new Business.CNVC.CNVC_ThongTinPhu();
            oCNVC_ThongTinTuyenDung = new Business.CNVC.CNVC_ThongTinTuyenDung();
            oQuocGia                = new Business.QuocGia();
            oTinhTP                 = new Business.TinhTP();
            oTinhLuong              = new Business.Luong.TinhLuong();
            oCNVC_ChinhTri          = new Business.CNVC.CNVC_ChinhTri();
            oCNVC_ChinhTriExt       = new Business.CNVC.CNVC_ChinhTriExt();
            oCNVC_ChuyenMonTongQuat = new Business.CNVC.CNVC_ChuyenMonTongQuat();
            oCNVC_DienBienSK        = new Business.CNVC.CNVC_DienBienSK();
            oCNVC_LSBiBat           = new Business.CNVC.CNVC_LSBiBat();

            dt_DienBienLuong                       = new DataTable();
            dt_CNVC_QHGiaDinh_BanThan              = new DataTable();
            dt_CNVC_QHGiaDinh_VoHoacChong          = new DataTable();
            dt_CNVC_QTr_CongTac_OU_ChinhTri_ChucVu = new DataTable();
            dt_DaoTaoBoiDuong                      = new DataTable();
            dt_PC                        = new DataTable();
            dt_SucKhoe                   = new DataTable();
            dt_Chinh_Tri_HCCB            = new DataTable();
            dt_ChinhTri                  = new DataTable();
            dt_CMND_HoChieu              = new DataTable();
            dt_CMND                      = new DataTable();
            dt_ThongTinPhu               = new DataTable();
            dt_ThongTinTuyenDung         = new DataTable();
            dtTinhTP                     = new DataTable();
            dtQuocGia                    = new DataTable();
            dt_ThongTinChinh             = new DataTable();
            dt_Qtr_Ctac_OU               = new DataTable();
            dt_ChucDanh_ChucVu           = new DataTable();
            dt_Luong                     = new DataTable();
            dt_ThongTinLuong             = new DataTable();
            dt_ChuyenMonTongQuat         = new DataTable();
            dt_ChinhTriExt               = new DataTable();
            dt_CNVC_LSBiBat              = new DataTable();
            dt_CNVC_QuanHeToChuc         = new DataTable();
            dt_CNVC_QHGiaDinh_nuoc_ngoai = new DataTable();
        }
示例#14
0
 private void InitObject(string p_manv = null)
 {
     dtp_state = DTPs_State.None;
     //rd_state = RDs_State.All;
     oCNVC                = new Business.CNVC.CNVC();
     oChucDanh            = new Business.ChucDanh();
     oCNVC_QTr_CongTac_OU = new Business.CNVC.CNVC_QTr_CongTac_OU();
     oChucVu              = new Business.ChucVu();
     oDonVi               = new Business.DonVi();
     oCNVC.MaNV           = p_manv;
     dOldFrom             = dOldTo = null;
     dt_original          = new DataTable();
     dt_binding           = new DataTable();
     dt_TimeFilter        = new DataTable();
     dt_CateFilter        = new DataTable();
     dt_DonVi             = new DataTable();
     dt_ChucDanh          = new DataTable();
     dt_ChucVu            = new DataTable();
 }
示例#15
0
 private void InitObject(string p_manv = null)
 {
     dtp_state = DTPs_State.None;
     //rd_state = RDs_State.All;
     oCNVC = new Business.CNVC.CNVC();
     oChucDanh = new Business.ChucDanh();
     oCNVC_QTr_CongTac_OU = new Business.CNVC.CNVC_QTr_CongTac_OU();
     oChucVu = new Business.ChucVu();
     oDonVi = new Business.DonVi();
     oCNVC.MaNV = p_manv;
     dOldFrom = dOldTo = null;
     dt_original = new DataTable();
     dt_binding = new DataTable();
     dt_TimeFilter = new DataTable();
     dt_CateFilter = new DataTable();
     dt_DonVi = new DataTable();
     dt_ChucDanh = new DataTable();
     dt_ChucVu = new DataTable();
 }
示例#16
0
 public ThongTinCNVC()
 {
     InitializeComponent();
     oCNVC  = new Business.CNVC.CNVC();
     dtCNVC = new DataTable();
 }
示例#17
0
 public QLNS_DonVi_CNVC()
 {
     InitializeComponent();
     oDonVi = new Business.DonVi();
     oCNVC  = new Business.CNVC.CNVC();
 }
示例#18
0
        private void DisplayInfo()
        {
            try
            {
                // thông tin Họ tên NV.
                cnvc      = new Business.CNVC.CNVC();
                cnvc.MaNV = oHopdong.Ma_NV;
                DataTable dtHoTenNV = cnvc.Search_Ho_Ten();
                //thongTinCNVC1.txt_Ho.Text = dtHoTenNV.Rows[0]["ho"].ToString();
                //thongTinCNVC1.txt_Ten.Text = dtHoTenNV.Rows[0]["ten"].ToString();
                thongTinCNVC1.txt_HoTen.Text = dtHoTenNV.Rows[0]["ho"].ToString().Trim() + " " + dtHoTenNV.Rows[0]["ten"].ToString().Trim();
                thongTinCNVC1.txt_MaNV.Text  = oHopdong.Ma_NV;

                txt_MaHD.Text   = oHopdong.Ma_Tuyen_Dung.Substring(0, oHopdong.Ma_Tuyen_Dung.Length - 9);
                rTB_GhiChu.Text = oHopdong.Ghi_Chu;

                if (oHopdong.Ngay_Ky != null)
                {
                    dTP_NgayKy.Checked = true;
                    dTP_NgayKy.Value   = oHopdong.Ngay_Ky.Value;
                }
                if (oHopdong.Ngay_Hieu_Luc != null)
                {
                    dtp_TuNgay.Checked = true;
                    dtp_TuNgay.Value   = oHopdong.Ngay_Hieu_Luc.Value;
                }
                if (oHopdong.Ngay_Het_Han != null)
                {
                    dtp_DenNgay.Checked = true;
                    dtp_DenNgay.Value   = oHopdong.Ngay_Het_Han.Value;
                }

                //Xử lý combo box
                if (oHopdong.Chuc_Danh_ID != null)
                {
                    comB_ChucDanh.SelectedValue = oHopdong.Chuc_Danh_ID;
                }
                if (oHopdong.Chuc_Vu_ID != null)
                {
                    comB_ChucVu.SelectedValue = oHopdong.Chuc_Vu_ID;
                }
                if (oHopdong.Don_Vi_ID != null)
                {
                    comB_DonVi.SelectedValue = oHopdong.Don_Vi_ID;
                }
                if (oHopdong.Ma_Loai_HD != null)
                {
                    comB_LoaiHD.SelectedValue = oHopdong.Ma_Loai_HD;
                }
                //if (oHopdong.ThuViec_ChinhThuc == true) //chính thức
                //    comB_ThuViecChinhThuc.Text = "Chính thức";
                //else
                //    comB_ThuViecChinhThuc.Text = "Thử việc";

                cb_ThoiHan.Checked = oHopdong.Co_Thoi_Han.Value;

                try
                {
                    cb_ThamNienNB.Checked  = oHopdong.Tham_nien_nang_bac;
                    cb_ThamNienNG.Checked  = oHopdong.Tham_nien_nha_giao;
                    cb_DongBaoHiem.Checked = oHopdong.Dong_bao_hiem;
                }
                catch { }

                #region Luong Info
                txt_Tien.Text      = oHopdong.Luong_Khoan.ToString();
                nup_PhanTram.Value = Convert.ToDecimal(oHopdong.PhanTramHuong.Value);
                if (oHopdong.Khoan_or_HeSo == true)
                {
                    comb_Luong.Text = "Hệ số";
                }
                else
                {
                    comb_Luong.Text = "Khoán";
                }

                if (oHopdong.BacHeSo_ID != null)
                {
                    var result = (from c in dtBacHeSo.AsEnumerable()
                                  where c.Field <int>("id") == oHopdong.BacHeSo_ID //&& c.Field<bool>("tinh_trang") == true
                                  select c.Field <string>("ma_ngach")
                                  );

                    string ma_ngach = result.ElementAt(0).ToString();

                    comb_Ngach.SelectedValue = ma_ngach;
                    comb_Bac.SelectedValue   = oHopdong.BacHeSo_ID;

                    var result1 = (from c in dtBacHeSo.AsEnumerable()
                                   where c.Field <int>("id") == oHopdong.BacHeSo_ID
                                   select c.Field <double>("he_so"));

                    double m_he_so = result1.ElementAt <double>(0);

                    txt_HeSo.Text = m_he_so.ToString();
                }
                #endregion

                #region Phu Cap Info
                cb_CoPhuCap.Checked = !oHopdong.Co_Phu_Cap;

                if (oHopdong.Co_Phu_Cap == true)
                {
                    dtPhuCap = oCNVCPhuCap.GetList_PhuCap_byCNVC(oHopdong.Ma_Tuyen_Dung, oHopdong.Ma_NV);
                    PrepareDTGVSource(dtPhuCap);
                }

                #endregion
            }
            catch (Exception ex)
            {
                MessageBox.Show("Có lỗi xảy ra!\n" + ex.Message, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#19
0
 public ThongTinCNVC()
 {
     InitializeComponent();
     oCNVC = new Business.CNVC.CNVC();
     dtCNVC = new DataTable();
 }