Exemplo n.º 1
0
        //public QLNS_DienBienSK()
        //{
        //    InitializeComponent();
        //    suckhoe = new Business.CNVC.CNVC_DienBienSK();
        //}

        public QLNS_DienBienSK(string p_ma_nv)
        {
            InitializeComponent();
            suckhoe      = new Business.CNVC.CNVC_DienBienSK();
            ma_nv        = p_ma_nv;
            suckhoe.MaNV = p_ma_nv;
        }
Exemplo n.º 2
0
 private void btn_Xoa_Click(object sender, EventArgs e)
 {
     if (dtgv_DienBienSK.CurrentRow != null)
     {
         if (MessageBox.Show("Bạn thực sự muốn xoá thông tin diễn biến sức khỏe này?", "Hỏi", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             //vanbang = ToDepartmentObject(dtg_DepartmentList.CurrentRow);
             suckhoe = new Business.CNVC.CNVC_DienBienSK(Convert.ToInt16(dtgv_DienBienSK.CurrentRow.Cells[0].Value.ToString()));
             try
             {
                 if (suckhoe.Delete())
                 {
                     MessageBox.Show("Xoá thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                 }
                 else
                 {
                     MessageBox.Show("Xóa thất bại", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
                 }
                 RefreshDataSource();
                 MessageBox.Show("Xoá thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
             }
         }
     }
     return;
 }
Exemplo n.º 3
0
        //public QLNS_DienBienSK()
        //{
        //    InitializeComponent();
        //    suckhoe = new Business.CNVC.CNVC_DienBienSK();
        //}

        public QLNS_DienBienSK(string p_ma_nv)
        {
            InitializeComponent();
            suckhoe = new Business.CNVC.CNVC_DienBienSK();
            ma_nv = p_ma_nv;
            suckhoe.MaNV = p_ma_nv;
        }
Exemplo n.º 4
0
        private void RefreshDataSource()
        {
            suckhoe      = new Business.CNVC.CNVC_DienBienSK();
            suckhoe.MaNV = ma_nv;
            DataTable dt = suckhoe.GetData();

            if (dt != null)
            {
                PrepareDataSource(dt);
                EditDtgInterface();
            }
        }
Exemplo n.º 5
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();
        }
Exemplo n.º 6
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();
        }
Exemplo n.º 7
0
        private void btn_Luu_Click(object sender, EventArgs e)
        {
            #region thao tac them
            if (AddFlag)
            {
                if (MessageBox.Show("Bạn thực sự muốn thêm diễn biến sức khỏe của nhân viên này ?", "Hỏi", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    suckhoe               = new Business.CNVC.CNVC_DienBienSK();
                    suckhoe.MaNV          = ma_nv;
                    suckhoe.BoMo          = txt_BoMo.Text;
                    suckhoe.CNGAN_SGPT    = txt_SGPT.Text;
                    suckhoe.CNGAN_SGOT    = txt_SGOT.Text;
                    suckhoe.ViemGan_HBSAB = txt_HbsAb.Text;
                    suckhoe.ViemGan_HBSAG = txt_HBsAG.Text;
                    suckhoe.ViemGan_HCVAB = txt_HCVAb.Text;
                    suckhoe.TSH           = txt_TSH.Text;
                    suckhoe.FT4           = txt_FT4.Text;
                    suckhoe.AFP           = txt_AFP.Text;
                    suckhoe.CEA           = txt_CEA.Text;
                    suckhoe.PSA           = txt_PSA.Text;
                    suckhoe.HP_Dinh_Luong = txt_HPDinhLuong.Text;
                    suckhoe.TPTNT         = txt_TPTNT.Text;
                    suckhoe.PhanLoai      = txt_PhanLoai.Text;
                    suckhoe.CanNang       = txt_CanNang.Text;
                    suckhoe.ThoiDiem      = Convert.ToDateTime(dTP_ThoiDiem.Value.ToShortDateString());
                    suckhoe.DeNghi        = rtb_DeNghi.Text;
                    suckhoe.KetLuan       = rtb_KetLuan.Text;

                    suckhoe.Add();
                    MessageBox.Show("Thêm thành công!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    ResetInterface(true);
                    RefreshDataSource();
                }
            }
            #endregion

            #region thao tac sua
            else                // thao tac sua
            {
                if (MessageBox.Show("Bạn thực sự muốn sửa diễn biến sức khỏe này của nhân viên?", "Hỏi", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    suckhoe               = new Business.CNVC.CNVC_DienBienSK();
                    suckhoe.MaNV          = ma_nv;
                    suckhoe.BoMo          = txt_BoMo.Text;
                    suckhoe.CNGAN_SGPT    = txt_SGPT.Text;
                    suckhoe.CNGAN_SGOT    = txt_SGOT.Text;
                    suckhoe.ViemGan_HBSAB = txt_HbsAb.Text;
                    suckhoe.ViemGan_HBSAG = txt_HBsAG.Text;
                    suckhoe.ViemGan_HCVAB = txt_HCVAb.Text;
                    suckhoe.TSH           = txt_TSH.Text;
                    suckhoe.FT4           = txt_FT4.Text;
                    suckhoe.AFP           = txt_AFP.Text;
                    suckhoe.CEA           = txt_CEA.Text;
                    suckhoe.PSA           = txt_PSA.Text;
                    suckhoe.HP_Dinh_Luong = txt_HPDinhLuong.Text;
                    suckhoe.TPTNT         = txt_TPTNT.Text;
                    suckhoe.PhanLoai      = txt_PhanLoai.Text;
                    suckhoe.CanNang       = txt_CanNang.Text;
                    suckhoe.ThoiDiem      = Convert.ToDateTime(dTP_ThoiDiem.Value.ToShortDateString());
                    suckhoe.DeNghi        = rtb_DeNghi.Text;
                    suckhoe.KetLuan       = rtb_KetLuan.Text;

                    suckhoe.ID = Convert.ToInt16(dtgv_DienBienSK.CurrentRow.Cells[0].Value.ToString());
                    suckhoe.Update();

                    MessageBox.Show("Sửa thành công!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    ResetInterface(true);
                    RefreshDataSource();
                }
            }
            #endregion
        }
Exemplo n.º 8
0
        private void btn_Luu_Click(object sender, EventArgs e)
        {
            #region thao tac them
            if (AddFlag)
            {
                if (MessageBox.Show("Bạn thực sự muốn thêm diễn biến sức khỏe của nhân viên này ?", "Hỏi", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    suckhoe = new Business.CNVC.CNVC_DienBienSK();
                    suckhoe.MaNV = ma_nv;
                    suckhoe.BoMo = txt_BoMo.Text;
                    suckhoe.CNGAN_SGPT = txt_SGPT.Text;
                    suckhoe.CNGAN_SGOT = txt_SGOT.Text;
                    suckhoe.ViemGan_HBSAB = txt_HbsAb.Text;
                    suckhoe.ViemGan_HBSAG = txt_HBsAG.Text;
                    suckhoe.ViemGan_HCVAB = txt_HCVAb.Text;
                    suckhoe.TSH = txt_TSH.Text;
                    suckhoe.FT4 = txt_FT4.Text;
                    suckhoe.AFP = txt_AFP.Text;
                    suckhoe.CEA = txt_CEA.Text;
                    suckhoe.PSA = txt_PSA.Text;
                    suckhoe.HP_Dinh_Luong = txt_HPDinhLuong.Text;
                    suckhoe.TPTNT = txt_TPTNT.Text;
                    suckhoe.PhanLoai = txt_PhanLoai.Text;
                    suckhoe.CanNang = txt_CanNang.Text;
                    suckhoe.ThoiDiem = Convert.ToDateTime(dTP_ThoiDiem.Value.ToShortDateString());
                    suckhoe.DeNghi = rtb_DeNghi.Text;
                    suckhoe.KetLuan = rtb_KetLuan.Text;

                    suckhoe.Add();
                    MessageBox.Show("Thêm thành công!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    ResetInterface(true);
                    RefreshDataSource();
                }

            }
            #endregion

            #region thao tac sua
            else                // thao tac sua
            {
                if (MessageBox.Show("Bạn thực sự muốn sửa diễn biến sức khỏe này của nhân viên?", "Hỏi", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    suckhoe = new Business.CNVC.CNVC_DienBienSK();
                    suckhoe.MaNV = ma_nv;
                    suckhoe.BoMo = txt_BoMo.Text;
                    suckhoe.CNGAN_SGPT = txt_SGPT.Text;
                    suckhoe.CNGAN_SGOT = txt_SGOT.Text;
                    suckhoe.ViemGan_HBSAB = txt_HbsAb.Text;
                    suckhoe.ViemGan_HBSAG = txt_HBsAG.Text;
                    suckhoe.ViemGan_HCVAB = txt_HCVAb.Text;
                    suckhoe.TSH = txt_TSH.Text;
                    suckhoe.FT4 = txt_FT4.Text;
                    suckhoe.AFP = txt_AFP.Text;
                    suckhoe.CEA = txt_CEA.Text;
                    suckhoe.PSA = txt_PSA.Text;
                    suckhoe.HP_Dinh_Luong = txt_HPDinhLuong.Text;
                    suckhoe.TPTNT = txt_TPTNT.Text;
                    suckhoe.PhanLoai = txt_PhanLoai.Text;
                    suckhoe.CanNang = txt_CanNang.Text;
                    suckhoe.ThoiDiem = Convert.ToDateTime(dTP_ThoiDiem.Value.ToShortDateString());
                    suckhoe.DeNghi = rtb_DeNghi.Text;
                    suckhoe.KetLuan = rtb_KetLuan.Text;

                    suckhoe.ID = Convert.ToInt16(dtgv_DienBienSK.CurrentRow.Cells[0].Value.ToString());
                    suckhoe.Update();

                    MessageBox.Show("Sửa thành công!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    ResetInterface(true);
                    RefreshDataSource();
                }
            }
            #endregion
        }
Exemplo n.º 9
0
 private void btn_Xoa_Click(object sender, EventArgs e)
 {
     if (dtgv_DienBienSK.CurrentRow != null)
     {
         if (MessageBox.Show("Bạn thực sự muốn xoá ngành này? TOÀN BỘ CÁC SINH VIÊN THUỘC NGÀNH NÀY SẼ BỊ XOÁ THEO.", "Hỏi", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             //vanbang = ToDepartmentObject(dtg_DepartmentList.CurrentRow);
             suckhoe = new Business.CNVC.CNVC_DienBienSK(Convert.ToInt16(dtgv_DienBienSK.CurrentRow.Cells[0].Value.ToString()));
             try
             {
                 suckhoe.Delete();
                 RefreshDataSource();
                 MessageBox.Show("Xoá thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
             }
         }
     }
     return;
 }
Exemplo n.º 10
0
 private void RefreshDataSource()
 {
     suckhoe = new Business.CNVC.CNVC_DienBienSK();
     suckhoe.MaNV = ma_nv;
     DataTable dt = suckhoe.GetData();
     if (dt != null)
     {
         PrepareDataSource(dt);
         EditDtgInterface();
     }
 }
Exemplo n.º 11
0
        bool AddFlag;   // xac dinh thao tac add hay edit
        //string ma_nv = "";

        public QLNS_DienBienSK()
        {
            InitializeComponent();
            suckhoe      = new Business.CNVC.CNVC_DienBienSK();
            dtDienBienSK = new DataTable();
        }