Ejemplo n.º 1
0
 public THI_SINH_InsResult THI_SINH_Ins(THI_SINH_SearchResult data)
 {
     try
     {
         using (var db = new OOAD_EDUManagementDataContext())
         {
             return db.THI_SINH_Ins(data.SBD,
                                   data.suDungDeThiChung,
                                   data.duThiLienThong,
                                   data.maChuyenNganh,
                                   data.maCumThi,
                                   data.maDoiTuongUuTien,
                                   data.maDonViDKDT,
                                   data.maDotTuyenSinh,
                                   data.maKhoi,
                                   data.maKhuVuc,
                                   data.maNganh,
                                   data.maPhong,
                                   data.maQuan_HuyenThuongTru,
                                   data.maTinhLop10,
                                   data.maTinhLop11,
                                   data.maTinhLop12,
                                   data.maTinh_TPThuongTru,
                                   data.maTruongLop10,
                                   data.maTruongLop11,
                                   data.maTruongLop12,
                                   data.maTruongThi,
                                   data.maMonDoatGiai,
                                   data.kiThiGiai,
                                   data.loaiGiai_HuyChuong,
                                   data.CMND_HoChieu,
                                   data.diaChiNhan_KQ,
                                   data.email,
                                   data.maGioiTinh,
                                   data.hoChuLot,
                                   data.hoKhau,
                                   data.maDanToc,
                                   data.maQuocTich,
                                   data.nam_TN_THPT,
                                   data.diem_TN_THPT,
                                   data.loai_TN_THPT,
                                   data.nam_TN_TCN_CD,
                                   data.truong_TN_TCN_CD,
                                   data.ngaySinh == null ? "" : data.ngaySinh.Value.ToString(Constants.FormatDate),
                                   data.noiSinh,
                                   data.soDienThoai,
                                   data.ten,
                                   data.anhHoSo,
                                   data.maNguoiLap,
                                   data.thoiGianLap == null ? "" : data.thoiGianLap.Value.ToString(Constants.FormatDate),
                                   data.maNguoiDuyet,
                                   data.thoiGianDuyet == null ? "" : data.thoiGianDuyet.Value.ToString(Constants.FormatDate),
                                   data.maTrangThaiDuyet,
                                   data.trangThaiDuLieu).FirstOrDefault();
         }
     }
     catch (Exception e)
     {
         return new THI_SINH_InsResult() { RESULT = "-1", ERRORDESC = e.Message };
     }
 }