示例#1
0
        private void dtgv_DSHD_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dtgv_DSHD.CurrentRow != null)
            {
                DataGridViewRow row = dtgv_DSHD.CurrentRow;
                oHopDong                 = new Business.HDQD.CNVC_HopDong();
                oHopDong.ID              = Convert.ToInt16(row.Cells["id"].Value.ToString());
                oHopDong.Ma_NV           = row.Cells["ma_nv"].Value.ToString();
                oHopDong.Ma_Tuyen_Dung   = row.Cells["ma_hop_dong"].Value.ToString();
                oHopDong.La_QD_Tiep_Nhan = false;
                oHopDong.Ma_Loai_HD      = Convert.ToInt16(row.Cells["ma_loai_hd"].Value.ToString());
                oHopDong.Loai_Hop_Dong   = row.Cells["loai_hop_dong"].Value.ToString();
                oHopDong.Co_Thoi_Han     = Convert.ToBoolean(row.Cells["co_thoi_han"].Value.ToString());
                if (row.Cells["ngay_ky"].Value.ToString() != "")
                {
                    oHopDong.Ngay_Ky = Convert.ToDateTime(row.Cells["ngay_ky"].Value.ToString());
                }
                if (row.Cells["ngay_hieu_luc"].Value.ToString() != "")
                {
                    oHopDong.Ngay_Hieu_Luc = Convert.ToDateTime(row.Cells["ngay_hieu_luc"].Value.ToString());
                }
                if (row.Cells["ngay_het_han"].Value.ToString() != "")
                {
                    oHopDong.Ngay_Het_Han = Convert.ToDateTime(row.Cells["ngay_het_han"].Value.ToString());
                }
                if (row.Cells["chuc_vu_chinh_id"].Value.ToString() != "")
                {
                    oHopDong.Chuc_Vu_ID = Convert.ToInt16(row.Cells["chuc_vu_chinh_id"].Value.ToString());
                }
                oHopDong.Chuc_Vu = row.Cells["ten_chuc_vu"].Value.ToString();

                if (row.Cells["chuc_danh_chinh_id"].Value.ToString() != "")
                {
                    oHopDong.Chuc_Danh_ID = Convert.ToInt16(row.Cells["chuc_danh_chinh_id"].Value.ToString());
                }
                oHopDong.Chuc_Danh = row.Cells["ten_chuc_danh"].Value.ToString();

                if (row.Cells["don_vi_chinh_id"].Value.ToString() != "")
                {
                    oHopDong.Don_Vi_ID = Convert.ToInt16(row.Cells["don_vi_chinh_id"].Value.ToString());
                }
                oHopDong.Don_Vi     = row.Cells["ten_don_vi"].Value.ToString();
                oHopDong.Tinh_Trang = Convert.ToBoolean(row.Cells["tinh_trang"].Value.ToString());
                oHopDong.Ghi_Chu    = row.Cells["ghi_chu"].Value.ToString();

                if (row.Cells["tham_nien_nang_bac"].Value.ToString() != "")
                {
                    oHopDong.Tham_nien_nang_bac = Convert.ToBoolean(row.Cells["tham_nien_nang_bac"].Value.ToString());
                }
                else
                {
                    oHopDong.Tham_nien_nang_bac = false;
                }
                if (row.Cells["tham_nien_gd"].Value.ToString() != "")
                {
                    oHopDong.Tham_nien_nha_giao = Convert.ToBoolean(row.Cells["tham_nien_gd"].Value.ToString());
                }
                else
                {
                    oHopDong.Tham_nien_nha_giao = false;
                }

                if (row.Cells["dong_bao_hiem"].Value.ToString() != "")
                {
                    oHopDong.Dong_bao_hiem = Convert.ToBoolean(row.Cells["dong_bao_hiem"].Value.ToString());
                }
                else
                {
                    oHopDong.Dong_bao_hiem = false;
                }

                #region Luong Info
                oHopDong.Khoan_or_HeSo = Convert.ToBoolean(row.Cells["tinh_trang"].Value.ToString());
                if (row.Cells["luong_khoan"].Value.ToString() != "")
                {
                    oHopDong.Luong_Khoan = Convert.ToDouble(row.Cells["luong_khoan"].Value.ToString());
                }
                if (row.Cells["ngach_bac_heso_id"].Value.ToString() != "")
                {
                    oHopDong.BacHeSo_ID = Convert.ToInt16(row.Cells["ngach_bac_heso_id"].Value.ToString());
                }
                if (row.Cells["phan_tram_huong"].Value.ToString() != "")
                {
                    oHopDong.PhanTramHuong = Convert.ToDouble(row.Cells["phan_tram_huong"].Value.ToString());
                }
                #endregion

                oHopDong.Co_Phu_Cap = Convert.ToBoolean(row.Cells["co_phu_cap"].Value.ToString());

                UCs.HopDong hopdong = new HopDong(oHopDong);
                Forms.Popup popup   = new Forms.Popup(hopdong, "QUẢN LÝ NHÂN SỰ - HỢP ĐỒNG");
                popup.Show();
            }
        }
示例#2
0
        private void dtgv_DSHD_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dtgv_DSHD.CurrentRow != null)
            {
                DataGridViewRow row = dtgv_DSHD.CurrentRow;
                oHopDong = new Business.HDQD.CNVC_HopDong();
                oHopDong.ID = Convert.ToInt16(row.Cells["id"].Value.ToString());
                oHopDong.Ma_NV = row.Cells["ma_nv"].Value.ToString();
                oHopDong.Ma_Tuyen_Dung = row.Cells["ma_hop_dong"].Value.ToString();
                oHopDong.La_QD_Tiep_Nhan = false;
                oHopDong.Ma_Loai_HD = Convert.ToInt16(row.Cells["ma_loai_hd"].Value.ToString());
                oHopDong.Loai_Hop_Dong = row.Cells["loai_hop_dong"].Value.ToString();
                oHopDong.Co_Thoi_Han = Convert.ToBoolean(row.Cells["co_thoi_han"].Value.ToString());
                if (row.Cells["ngay_ky"].Value.ToString() != "")
                    oHopDong.Ngay_Ky = Convert.ToDateTime(row.Cells["ngay_ky"].Value.ToString());
                if (row.Cells["ngay_hieu_luc"].Value.ToString() != "")
                    oHopDong.Ngay_Hieu_Luc = Convert.ToDateTime(row.Cells["ngay_hieu_luc"].Value.ToString());
                if (row.Cells["ngay_het_han"].Value.ToString() != "")
                    oHopDong.Ngay_Het_Han = Convert.ToDateTime(row.Cells["ngay_het_han"].Value.ToString());
                if (row.Cells["chuc_vu_chinh_id"].Value.ToString() != "")
                    oHopDong.Chuc_Vu_ID = Convert.ToInt16(row.Cells["chuc_vu_chinh_id"].Value.ToString());
                oHopDong.Chuc_Vu = row.Cells["ten_chuc_vu"].Value.ToString();

                if (row.Cells["chuc_danh_chinh_id"].Value.ToString() != "")
                    oHopDong.Chuc_Danh_ID = Convert.ToInt16(row.Cells["chuc_danh_chinh_id"].Value.ToString());
                oHopDong.Chuc_Danh = row.Cells["ten_chuc_danh"].Value.ToString();

                if (row.Cells["don_vi_chinh_id"].Value.ToString() != "")
                    oHopDong.Don_Vi_ID = Convert.ToInt16(row.Cells["don_vi_chinh_id"].Value.ToString());
                oHopDong.Don_Vi = row.Cells["ten_don_vi"].Value.ToString();
                oHopDong.Tinh_Trang = Convert.ToBoolean(row.Cells["tinh_trang"].Value.ToString());
                oHopDong.Ghi_Chu = row.Cells["ghi_chu"].Value.ToString();

                if (row.Cells["tham_nien_nang_bac"].Value.ToString() != "")
                    oHopDong.Tham_nien_nang_bac = Convert.ToBoolean(row.Cells["tham_nien_nang_bac"].Value.ToString());
                else
                    oHopDong.Tham_nien_nang_bac = false;
                if (row.Cells["tham_nien_gd"].Value.ToString() != "")
                    oHopDong.Tham_nien_nha_giao = Convert.ToBoolean(row.Cells["tham_nien_gd"].Value.ToString());
                else
                    oHopDong.Tham_nien_nha_giao = false;

                if (row.Cells["dong_bao_hiem"].Value.ToString() != "")
                    oHopDong.Dong_bao_hiem = Convert.ToBoolean(row.Cells["dong_bao_hiem"].Value.ToString());
                else
                    oHopDong.Dong_bao_hiem = false;

                #region Luong Info
                oHopDong.Khoan_or_HeSo = Convert.ToBoolean(row.Cells["tinh_trang"].Value.ToString());
                if (row.Cells["luong_khoan"].Value.ToString() != "")
                    oHopDong.Luong_Khoan = Convert.ToDouble(row.Cells["luong_khoan"].Value.ToString());
                if (row.Cells["ngach_bac_heso_id"].Value.ToString() != "")
                    oHopDong.BacHeSo_ID = Convert.ToInt16(row.Cells["ngach_bac_heso_id"].Value.ToString());
                if (row.Cells["phan_tram_huong"].Value.ToString() != "")
                    oHopDong.PhanTramHuong = Convert.ToDouble(row.Cells["phan_tram_huong"].Value.ToString());
                #endregion

                oHopDong.Co_Phu_Cap = Convert.ToBoolean(row.Cells["co_phu_cap"].Value.ToString());

                UCs.HopDong hopdong = new HopDong(oHopDong);
                Forms.Popup popup = new Forms.Popup(hopdong, "QUẢN LÝ NHÂN SỰ - HỢP ĐỒNG");
                popup.Show();
            }
        }
示例#3
0
 private void btn_Them_Click(object sender, EventArgs e)
 {
     UCs.HopDong hopdong = new HopDong();
     Forms.Popup popup   = new Forms.Popup(hopdong, "QUẢN LÝ NHÂN SỰ - HỢP ĐỒNG");
     popup.ShowDialog();
 }
示例#4
0
 private void btn_Them_Click(object sender, EventArgs e)
 {
     UCs.HopDong hopdong = new HopDong();
     Forms.Popup popup = new Forms.Popup(hopdong, "QUẢN LÝ NHÂN SỰ - HỢP ĐỒNG");
     popup.ShowDialog();
 }