예제 #1
0
        public static bool Insert(HoSo dto)
        {
            try
            {
                VNSCDataContext VNSC = SQL_Connection.CreateSQlConnection();

                VNSC.HoSos.InsertOnSubmit(dto);
                VNSC.SubmitChanges();
                return true;
            }
            catch (System.Exception ex)
            {
                return false;
            }
        }
예제 #2
0
        private HoSo_DTO ConvertHoSo2HoSo_DTO(HoSo dto)
        {
            HoSo_DTO dto_Temp = new HoSo_DTO();

            dto_Temp.Ma = int.Parse(dto.Ma.Substring(0, 4));
            dto_Temp.NgayCapNhat = dto.NgayCapNhat;

            dto_Temp.MaIDV = (int)dto.MaIDV;
            dto_Temp.MaNhomTrachVu = dto.MaNhomTrachVu;
            dto_Temp.MaTrachVu = dto.MaTrachVu;
            dto_Temp.HoTen = dto.HoTen;
            dto_Temp.NgaySinh = (DateTime)dto.NgaySinh;
            dto_Temp.GioiTinh = dto.GioiTinh;
            dto_Temp.QueQuan = dto.QueQuan;
            dto_Temp.TrinhDoHocVan = dto.TrinhDoHocVan;
            dto_Temp.TonGiao = dto.TonGiao;
            dto_Temp.DiaChi = dto.DiaChi;
            dto_Temp.DienThoaiLienLac = dto.DienThoaiLienLac;
            dto_Temp.Email = dto.Email;

            dto_Temp.Nganh = dto.Nganh;
            dto_Temp.DonVi = dto.DonVi;
            dto_Temp.LienDoan = dto.LienDoan;
            dto_Temp.Dao = dto.Dao;
            dto_Temp.Chau = dto.Chau;
            dto_Temp.NgayTuyenHua = (DateTime)dto.NgayTuyenHua;
            dto_Temp.TruongNhanLoiHua = dto.TruongNhanLoiHua;
            dto_Temp.TrachVuTaiDonVi = dto.TrachVuTaiDonVi;
            dto_Temp.TrachVuNgoaiDonVi = dto.TrachVuNgoaiDonVi;
            dto_Temp.TenRung = dto.TenRung;
            dto_Temp.GhiChu = dto.GhiChu;

            dto_Temp.NgheNghiep = dto.NgheNghiep;
            dto_Temp.NutDay = (int)dto.NutDay;
            dto_Temp.PhuongHuong = (int)dto.PhuongHuong;
            dto_Temp.CuuThuong = (int)dto.CuuThuong;
            dto_Temp.TruyenTin = (int)dto.TruyenTin;
            dto_Temp.TroChoi = (int)dto.TroChoi;
            dto_Temp.LuaTrai = (int)dto.LuaTrai;
            dto_Temp.SoTruong = dto.SoTruong;

            return dto_Temp;
        }
예제 #3
0
        private bool KiemTraHoSoCaNhanBiTrungHoSoThamDu(HoSo dto_Temp)
        {
            List<SuKien_HoSo> list_Temp = SuKien_HoSo_BUS.TraCuuDSSuKien_HoSoTheoMaSuKien(iMaSuKien);
            for (int i = 0; i < list_Temp.Count; i++)
            {
                if (list_Temp[i].HoTen == dto_Temp.HoTen && list_Temp[i].NgaySinh == dto_Temp.NgaySinh && list_Temp[i].GioiTinh == dto_Temp.GioiTinh)
                {
                    string[] sTen = dto_Temp.HoTen.Split();
                    Form_Notice frm = new Form_Notice("Kiểm tra Hồ sơ trùng lắp:", sTen[sTen.Length - 1], false);

                    return true;
                }
            }

            return false;
        }
예제 #4
0
        private void UC_SuKien_HoSoThamDu_Load(object sender, EventArgs e)
        {
            LoadPic();

            list_IDV = new List<int>();
            list_NhomTrachVu = new List<string>();
            list_TrachVu = new List<string>();

            cbIDV_LLCN.Items.Add(" ");
            LayDSIDV_ComboBox(cbIDV_LLCN);

            if (!LayDSNhomTrachVu_ComboBox(cbNhomTrachVu_LLCN))
            {
                this.Visible = false;
                Form_Notice frm = new Form_Notice("Chưa khởi tạo Nhóm trách vụ!", false);
                return;
            }
            else
            {
                this.Visible = true;
            }

            if (!LayDSTrachVu_ComboBox(cbTrachVu_LLCN))
            {
                this.Visible = false;
                Form_Notice frm = new Form_Notice("Chưa khởi tạo Trách vụ!", false);
                return;
            }
            else
            {
                this.Visible = true;
            }

            list_dto = new List<SuKien_HoSo>();

            list_UC_HuanLuyen = new List<UC_HuanLuyen>();
            list_UC_HuanLuyen_Insert = new List<UC_HuanLuyen>();
            list_UC_HuanLuyen_Delete = new List<int>();
            list_UC_HuanLuyen_Update = new List<UC_HuanLuyen>();

            dto_HoSo = new HoSo();

            dto_SuKien_HoSo = new SuKien_HoSo();
            dto_SuKien_HuanLuyen = new SuKien_HuanLuyen();
            dto_SuKien_HoSo_HuanLuyen = new SuKien_HoSo_HuanLuyen();

            list_FolderAvatar = new List<string>();
            list_FolderAvatar.Add("DB");
            list_FolderAvatar.Add("Avatar");

            if (String.Format("{0:tt}", DateTime.Now) == "AM")
            {
                sNgayCapNhat = String.Format("{0:dd/MM/yyyy}", DateTime.Now) + " - " + String.Format("{0:hh:mm:ss}", DateTime.Now) + " Sáng";
                lbNgayCapNhat.Text = sNgayCapNhat.Substring(0, 18) + sNgayCapNhat.Substring(21);
            }
            else
            {
                sNgayCapNhat = String.Format("{0:dd/MM/yyyy}", DateTime.Now) + " - " + String.Format("{0:hh:mm:ss}", DateTime.Now) + " Chiều";
                lbNgayCapNhat.Text = sNgayCapNhat.Substring(0, 18) + sNgayCapNhat.Substring(21);
            }

            if (sSelect == "SỬA")
            {
                setSuKien_HoSoTheoMaSuKien_HoSo(sMaSuKien_HoSo);
            }

            if (bCopyHoSoCaNhanToHoSoThamDu)
            {
                setSuKien_HoSoTheoMaHoSo(sMaHoSo);
                if (!KiemTraHoSoCaNhanBiTrungHoSoThamDu(dto_HoSo))
                {
                    pbHoanTat_HL_Click(sender, e);
                }
                else
                {
                    this.Dispose();
                }
            }

            if (bImportHoSoClientToHoSoThamDu)
            {
                setSuKien_HoSoImport(dto_SuKien_HoSo_Import, list_SuKien_HuanLuyen);
                if (!KiemTraHoSoCaNhanBiTrungHoSoThamDu(dto_HoSo))
                {
                    pbHoanTat_HL_Click(sender, e);
                }
                else
                {
                    this.Dispose();
                }
            }

            this.Size = new System.Drawing.Size(1024, 600);

            pnLyLich.Size = new System.Drawing.Size(550, 545);
            pnLyLich.Location = SubFunction.SetCenterLocation(this.Size, pnLyLich.Size);

            gbLyLichCaNhan.Size = new System.Drawing.Size(550, 545);
            gbLyLichCaNhan.Location = SubFunction.SetWidthCenter(pnLyLich.Size, gbLyLichCaNhan.Size, 0);

            gbLyLichHuongDao.Size = new System.Drawing.Size(550, 545);
            gbLyLichHuongDao.Location = SubFunction.SetWidthCenter(pnLyLich.Size, gbLyLichHuongDao.Size, 0);

            gbNgheNghiep_KiNang.Size = new System.Drawing.Size(550, 545);
            gbNgheNghiep_KiNang.Location = SubFunction.SetWidthCenter(pnLyLich.Size, gbNgheNghiep_KiNang.Size, 0);

            gbHuanLuyen.Size = new System.Drawing.Size(550, 545);
            gbHuanLuyen.Location = SubFunction.SetWidthCenter(pnLyLich.Size, gbHuanLuyen.Size, 0);

            pn_gbHuanLuyen.Size = new System.Drawing.Size(540, 430);
            pn_gbHuanLuyen.Location = SubFunction.SetWidthCenter(gbHuanLuyen.Size, pn_gbHuanLuyen.Size, 50);

            pnNgayCapNhat.Left = pnLyLich.Left;
            pnNgayCapNhat.Top = pnLyLich.Top - 22;

            size_PicRec.Width = 90;
            size_PicRec.Height = 120;
            pnAvatar.Left = pnLyLich.Right + 5;
            pnAvatar.Top = pnLyLich.Top + 10;
        }
예제 #5
0
        private void setSuKien_HoSoTheoMaHoSo(string sMa)
        {
            dto_HoSo = HoSo_BUS.TraCuuHoSoTheoMa(sMa);

            //tbMa_LLCN.Text = sMa;

            if (dto_HoSo.MaIDV == null)
            {
                cbIDV_LLCN.SelectedIndex = 0;
            }
            else
            {
                cbIDV_LLCN.Text = IDV_BUS.TraCuuIDVTheoMa((int)dto_HoSo.MaIDV).DienGiai;
            }
            cbNhomTrachVu_LLCN.Text = NhomTrachVu_BUS.TraCuuNhomTrachVuTheoMa(dto_HoSo.MaNhomTrachVu).Ten;
            cbTrachVu_LLCN.Text = TrachVu_BUS.TraCuuTrachVuTheoMa(dto_HoSo.MaTrachVu).Ten;

            sAvatarPath = Path.Combine(File_Function.getFinalFolder(list_FolderAvatar), setAvatarPath(sMa, dto_HoSo.NgayCapNhat));
            if (File.Exists(sAvatarPath))
            {
                pbAvatar.Image = Image.FromFile(sAvatarPath);
                bNewAvatar = true;
            }

            tbHoTen_LLCN.Text = dto_HoSo.HoTen;
            dtpNgaySinh_LLCN.Value = (DateTime)dto_HoSo.NgaySinh;

            if (dto_HoSo.GioiTinh == "Nam")
            {
                rbNam.Checked = true;
            }

            if (dto_HoSo.GioiTinh == "Nữ")
            {
                rbNu.Checked = true;
            }

            tbQueQuan_LLCN.Text = dto_HoSo.QueQuan;
            tbTrinhDoHocVan_LLCN.Text = dto_HoSo.TrinhDoHocVan;
            tbTonGiao_LLCN.Text = dto_HoSo.TonGiao;
            tbDiaChi_LLCN.Text = dto_HoSo.DiaChi;
            tbDienThoaiLienLac_LLCN.Text = dto_HoSo.DienThoaiLienLac;
            tbEmail_LLCN.Text = dto_HoSo.Email;

            if (dto_HoSo.Nganh == "Ấu")
            {
                rbAu.Checked = true;
            }

            if (dto_HoSo.Nganh == "Thiếu")
            {
                rbThieu.Checked = true;
            }

            if (dto_HoSo.Nganh == "Kha")
            {
                rbKha.Checked = true;
            }

            if (dto_HoSo.Nganh == "Tráng")
            {
                rbTrang.Checked = true;
            }

            if (dto_HoSo.Nganh == "Khác")
            {
                rbKhac.Checked = true;
            }

            tbDonVi_LLHD.Text = dto_HoSo.DonVi;
            tbLienDoan_LLHD.Text = dto_HoSo.LienDoan;
            tbDao_LLHD.Text = dto_HoSo.Dao;
            tbChau_LLHD.Text = dto_HoSo.Chau;
            dtpNgayTuyenHua_LLHD.Value = (DateTime)dto_HoSo.NgayTuyenHua;
            tbTruongNhanLoiHua_LLHD.Text = dto_HoSo.TruongNhanLoiHua;
            tbTrachVuTaiDonVi_LLHD.Text = dto_HoSo.TrachVuTaiDonVi;
            tbTrachVuNgoaiDonVi_LLHD.Text = dto_HoSo.TrachVuNgoaiDonVi;
            tbTenRung_LLHD.Text = dto_HoSo.TenRung;
            tbGhiChu_LLHD.Text = dto_HoSo.GhiChu;

            tbNgheNghiep_NNKN.Text = dto_HoSo.NgheNghiep;

            if (dto_HoSo.NutDay == 1) //1
            {
                chbNutDay_NNKN.Checked = true;
            }

            if (dto_HoSo.PhuongHuong == 1) //2
            {
                chbPhuongHuong_NNKN.Checked = true;
            }

            if (dto_HoSo.CuuThuong == 1) //3
            {
                chbCuuThuong_NNKN.Checked = true;
            }

            if (dto_HoSo.TruyenTin == 1) //4
            {
                chbTruyenTin_NNKN.Checked = true;
            }

            if (dto_HoSo.TroChoi == 1) //5
            {
                chbTroChoi_NNKN.Checked = true;
            }

            if (dto_HoSo.LuaTrai == 1) //6
            {
                chbLuaTrai_NNKN.Checked = true;
            }

            tbSoTruong_NNKN.Text = dto_HoSo.SoTruong;

            List<HoSo_HuanLuyen> list_HoSo_HuanLuyen = HoSo_HuanLuyen_BUS.TraCuuDSHuanLuyenTheoMaHoSo(sMa);
            foreach (HoSo_HuanLuyen dto_Temp in list_HoSo_HuanLuyen)
            {
                HuanLuyen dto_HuanLuyen_Temp = HuanLuyen_BUS.TraCuuHuanLuyenTheoMa(dto_Temp.MaHuanLuyen);
                UC_HuanLuyen uc_HuanLuyen = new UC_HuanLuyen(dto_HuanLuyen_Temp.Ma, dto_HuanLuyen_Temp.Nganh, dto_HuanLuyen_Temp.Khoa, dto_HuanLuyen_Temp.TenKhoa, dto_HuanLuyen_Temp.KhoaTruong, (DateTime)dto_HuanLuyen_Temp.Nam, dto_HuanLuyen_Temp.MHL, dto_HuanLuyen_Temp.TinhTrang, true);

                int iNewLocation = list_UC_HuanLuyen.Count * 180 + pn_gbHuanLuyen.AutoScrollPosition.Y;
                uc_HuanLuyen.Location = new Point(8, iNewLocation);

                list_UC_HuanLuyen.Add(uc_HuanLuyen);
                pn_gbHuanLuyen.Controls.Add(list_UC_HuanLuyen[list_UC_HuanLuyen.Count - 1]);
                list_UC_HuanLuyen[list_UC_HuanLuyen.Count - 1].VisibleChanged += new EventHandler(AfterDeleteHL);

                list_UC_HuanLuyen_Update.Add(uc_HuanLuyen);
            }
        }
예제 #6
0
        private void NewHoSo()
        {
            dto_HoSo = new HoSo();

            dto_HoSo.Ma = tbMa_LLCN.Text.Substring(0, 4);
            dto_HoSo.NgayCapNhat = sNgayCapNhat;

            if (cbIDV_LLCN.SelectedIndex > 0)
            {
                dto_HoSo.MaIDV = list_IDV[cbIDV_LLCN.SelectedIndex - 1];
            }

            dto_HoSo.MaNhomTrachVu = list_NhomTrachVu[cbNhomTrachVu_LLCN.SelectedIndex];
            dto_HoSo.MaTrachVu = list_TrachVu[cbTrachVu_LLCN.SelectedIndex];

            dto_HoSo.HoTen = tbHoTen_LLCN.Text;
            dto_HoSo.NgaySinh = dtpNgaySinh_LLCN.Value;

            if (rbNam.Checked)
            {
                dto_HoSo.GioiTinh = rbNam.Text;
            }

            if (rbNu.Checked)
            {
                dto_HoSo.GioiTinh = rbNu.Text;
            }

            dto_HoSo.QueQuan = tbQueQuan_LLCN.Text;
            dto_HoSo.TrinhDoHocVan = tbTrinhDoHocVan_LLCN.Text;
            dto_HoSo.TonGiao = tbTonGiao_LLCN.Text;
            dto_HoSo.DiaChi = tbDiaChi_LLCN.Text;
            dto_HoSo.DienThoaiLienLac = tbDienThoaiLienLac_LLCN.Text;
            dto_HoSo.Email = tbEmail_LLCN.Text;

            if (rbAu.Checked)
            {
                dto_HoSo.Nganh = rbAu.Text;
            }

            if (rbThieu.Checked)
            {
                dto_HoSo.Nganh = rbThieu.Text;
            }

            if (rbKha.Checked)
            {
                dto_HoSo.Nganh = rbKha.Text;
            }

            if (rbTrang.Checked)
            {
                dto_HoSo.Nganh = rbTrang.Text;
            }

            if (rbKhac.Checked)
            {
                dto_HoSo.Nganh = rbKhac.Text;
            }

            dto_HoSo.DonVi = tbDonVi_LLHD.Text;
            dto_HoSo.LienDoan = tbLienDoan_LLHD.Text;
            dto_HoSo.Dao = tbDao_LLHD.Text;
            dto_HoSo.Chau = tbChau_LLHD.Text;
            dto_HoSo.NgayTuyenHua = dtpNgayTuyenHua_LLHD.Value;
            dto_HoSo.TruongNhanLoiHua = tbTruongNhanLoiHua_LLHD.Text;
            dto_HoSo.TrachVuTaiDonVi = tbTrachVuTaiDonVi_LLHD.Text;
            dto_HoSo.TrachVuNgoaiDonVi = tbTrachVuNgoaiDonVi_LLHD.Text;
            dto_HoSo.TenRung = tbTenRung_LLHD.Text;
            dto_HoSo.GhiChu = tbGhiChu_LLHD.Text;

            dto_HoSo.NgheNghiep = tbNgheNghiep_NNKN.Text;
            if (chbNutDay_NNKN.Checked) //1
            {
                dto_HoSo.NutDay = 1;
            }
            else
            {
                dto_HoSo.NutDay = 0;
            }

            if (chbPhuongHuong_NNKN.Checked) //2
            {
                dto_HoSo.PhuongHuong = 1;
            }
            else
            {
                dto_HoSo.PhuongHuong = 0;
            }

            if (chbCuuThuong_NNKN.Checked) //3
            {
                dto_HoSo.CuuThuong = 1;
            }
            else
            {
                dto_HoSo.CuuThuong = 0;
            }

            if (chbTruyenTin_NNKN.Checked) //4
            {
                dto_HoSo.TruyenTin = 1;
            }
            else
            {
                dto_HoSo.TruyenTin = 0;
            }

            if (chbTroChoi_NNKN.Checked) //5
            {
                dto_HoSo.TroChoi = 1;
            }
            else
            {
                dto_HoSo.TroChoi = 0;
            }

            if (chbLuaTrai_NNKN.Checked) //6
            {
                dto_HoSo.LuaTrai = 1;
            }
            else
            {
                dto_HoSo.LuaTrai = 0;
            }

            dto_HoSo.SoTruong = tbSoTruong_NNKN.Text;
        }
예제 #7
0
        private void UC_HoSoCaNhan_Load(object sender, EventArgs e)
        {
            list_IDV = new List<int>();
            list_NhomTrachVu = new List<string>();
            list_TrachVu = new List<string>();

            cbIDV_LLCN.Items.Add(" ");
            LayDSIDV_ComboBox(cbIDV_LLCN);

            if (!LayDSNhomTrachVu_ComboBox(cbNhomTrachVu_LLCN))
            {
                this.Visible = false;
                Form_Notice frm = new Form_Notice("Chưa khởi tạo Nhóm trách vụ!", false);
                return;
            }
            else
            {
                this.Visible = true;
            }

            if (!LayDSTrachVu_ComboBox(cbTrachVu_LLCN))
            {
                this.Visible = false;
                Form_Notice frm = new Form_Notice("Chưa khởi tạo Trách vụ!", false);
                return;
            }
            else
            {
                this.Visible = true;
            }

            LoadPic();
            this.Size = new System.Drawing.Size(800, 600);

            pnQuanLy.Size = new System.Drawing.Size(770, 485);
            pnQuanLy.Location = SubFunction.SetWidthCenter(this.Size, pnQuanLy.Size, 100);

            lbTitle.Left = lbSelect.Left;
            lbSelect.Text = "";

            pnLyLich.Size = new System.Drawing.Size(550, 545);
            pnLyLich.Location = SubFunction.SetWidthCenter(this.Size, pnLyLich.Size, 50);

            gbLyLichCaNhan.Size = new System.Drawing.Size(550, 545);
            gbLyLichCaNhan.Location = SubFunction.SetWidthCenter(pnLyLich.Size, gbLyLichCaNhan.Size, 0);

            gbLyLichHuongDao.Size = new System.Drawing.Size(550, 545);
            gbLyLichHuongDao.Location = SubFunction.SetWidthCenter(pnLyLich.Size, gbLyLichHuongDao.Size, 0);

            gbNgheNghiep_KiNang.Size = new System.Drawing.Size(550, 545);
            gbNgheNghiep_KiNang.Location = SubFunction.SetWidthCenter(pnLyLich.Size, gbNgheNghiep_KiNang.Size, 0);

            gbHuanLuyen.Size = new System.Drawing.Size(550, 545);
            gbHuanLuyen.Location = SubFunction.SetWidthCenter(pnLyLich.Size, gbHuanLuyen.Size, 0);

            pn_gbHuanLuyen.Size = new System.Drawing.Size(540, 430);
            pn_gbHuanLuyen.Location = SubFunction.SetWidthCenter(gbHuanLuyen.Size, pn_gbHuanLuyen.Size, 50);

            tbPage.Location = new Point(pnPage.Left + 2, pnPage.Top - 1);
            tbPage.LostFocus += new EventHandler(tbPage_LostFocus);

            size_PicRec.Width = 90;
            size_PicRec.Height = 120;
            pnAvatar.Left = pnLyLich.Right + 5;
            pnAvatar.Top = pnLyLich.Top + 10;

            pbAvatar.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.pbAvatar_MouseWheel);

            iZoom = 1;

            list_dto = new List<HoSo>();

            list_UC_HuanLuyen = new List<UC_HuanLuyen>();
            list_UC_HuanLuyen_Insert = new List<UC_HuanLuyen>();
            list_UC_HuanLuyen_Delete = new List<int>();
            list_UC_HuanLuyen_Update = new List<UC_HuanLuyen>();

            dto_HoSo = new HoSo();
            dto_HuanLuyen = new HuanLuyen();
            dto_LuuTru = new LuuTru();
            dto_HoSo_HuanLuyen = new HoSo_HuanLuyen();
            dto_HoSo_LuuTru = new HoSo_LuuTru();

            list_FolderAvatar = new List<string>();
            list_FolderAvatar.Add("DB");
            list_FolderAvatar.Add("Avatar");

            iRows = 20;

            refreshListView();

            Form_Main.CurrentControlName = "UC_HoSoCaNhan";
        }
예제 #8
0
		private void detach_HoSos(HoSo entity)
		{
			this.SendPropertyChanging();
			entity.TrachVu = null;
		}
예제 #9
0
		private void attach_HoSos(HoSo entity)
		{
			this.SendPropertyChanging();
			entity.TrachVu = this;
		}
예제 #10
0
 partial void DeleteHoSo(HoSo instance);
예제 #11
0
 partial void UpdateHoSo(HoSo instance);
예제 #12
0
 partial void InsertHoSo(HoSo instance);
예제 #13
0
        public static bool UpdateHoSoInfo(HoSo dto)
        {
            try
            {
                VNSCDataContext VNSC = SQL_Connection.CreateSQlConnection();
                HoSo sk = VNSC.HoSos.Single(P => P.Ma == dto.Ma);
                sk.NgayCapNhat = dto.NgayCapNhat;

                sk.MaIDV = dto.MaIDV;
                sk.MaNhomTrachVu = dto.MaNhomTrachVu;
                sk.MaTrachVu = dto.MaTrachVu;
                sk.HoTen = dto.HoTen;
                sk.NgaySinh = dto.NgaySinh;
                sk.GioiTinh = dto.GioiTinh;
                sk.QueQuan = dto.QueQuan;
                sk.TrinhDoHocVan = dto.TrinhDoHocVan;
                sk.TonGiao = dto.TonGiao;
                sk.DiaChi = dto.DiaChi;
                sk.DienThoaiLienLac = dto.DienThoaiLienLac;
                sk.Email = dto.Email;

                sk.Nganh = dto.Nganh;
                sk.DonVi = dto.DonVi;
                sk.LienDoan = dto.LienDoan;
                sk.Dao = dto.Dao;
                sk.Chau = dto.Chau;
                sk.NgayTuyenHua = dto.NgayTuyenHua;
                sk.TruongNhanLoiHua = dto.TruongNhanLoiHua;
                sk.TrachVuTaiDonVi = dto.TrachVuTaiDonVi;
                sk.TrachVuNgoaiDonVi = dto.TrachVuNgoaiDonVi;
                sk.TenRung = dto.TenRung;
                sk.GhiChu = dto.GhiChu;

                sk.NgheNghiep = dto.NgheNghiep;
                sk.NutDay = dto.NutDay;
                sk.PhuongHuong = dto.PhuongHuong;
                sk.CuuThuong = dto.CuuThuong;
                sk.TruyenTin = dto.TruyenTin;
                sk.TroChoi = dto.TroChoi;
                sk.LuaTrai = dto.LuaTrai;
                sk.SoTruong = dto.SoTruong;

                VNSC.SubmitChanges();
                return true;
            }
            catch (System.Exception ex)
            {
                return false;
            }
        }
예제 #14
0
 public static bool UpdateHoSoInfo(HoSo dto)
 {
     return HoSo_DAO.UpdateHoSoInfo(dto);
 }
예제 #15
0
 public static bool Insert(HoSo dto)
 {
     return HoSo_DAO.Insert(dto);
 }
예제 #16
0
        private bool KiemTraHoSoCaNhanBiTrungHoSoThamDu(HoSo dto_Temp)
        {
            List<SuKien_HoSo> list_Temp = SuKien_HoSo_BUS.LayDSSuKien_HoSo();
            for (int i = 1; i < list_Temp.Count; i++)
            {
                if (list_Temp[i].HoTen == dto_Temp.HoTen && list_Temp[i].NgaySinh == dto_Temp.NgaySinh && list_Temp[i].GioiTinh == dto_Temp.GioiTinh)
                {
                    if (list_Temp[i].MaID == null)
                    {
                        Form_Notice frm = new Form_Notice("Kiểm tra Hồ sơ " + list_Temp[i].Ma + " bị trùng!", false);
                    }
                    else
                    {
                        Form_Notice frm = new Form_Notice("Kiểm tra Hồ sơ " + list_Temp[i].Ma + ID_BUS.TraCuuIDTheoMa((int)list_Temp[i].MaID).ID1 + " bị trùng!", false);
                    }

                    return true;
                }
            }

            return false;
        }