数据库变更CNPC_XJYJ
This commit is contained in:
@@ -13,7 +13,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class PersonInOutService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -128,7 +128,7 @@ namespace BLL
|
||||
/// <param name="changeTime"></param>
|
||||
public static void AddPersonInOut(Model.SitePerson_PersonInOut personInOut)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.SitePerson_PersonInOut newPersonInOut = new Model.SitePerson_PersonInOut
|
||||
{
|
||||
@@ -194,7 +194,7 @@ namespace BLL
|
||||
public static void AddPersonInOut(List<Model.SitePerson_PersonInOut> personInOuts)
|
||||
{
|
||||
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
|
||||
db.SitePerson_PersonInOut.InsertAllOnSubmit(personInOuts);
|
||||
@@ -225,7 +225,7 @@ namespace BLL
|
||||
/// <param name="PersonInOut"></param>
|
||||
public static void InsertPersonInOutNowNow(Model.SitePerson_PersonInOut PersonInOut)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
string proCode = ProjectService.GetContractNoByProjectId(PersonInOut.ProjectId);
|
||||
var getRealNameP = db.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
||||
@@ -285,7 +285,7 @@ namespace BLL
|
||||
/// <param name="PersonInOut"></param>
|
||||
public static void InsertPersonInOutNowNow(Model.SitePerson_PersonInOutNow PersonInOut)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getNow = db.SitePerson_PersonInOutNow.FirstOrDefault(x => x.PersonInOutId == PersonInOut.PersonInOutId);
|
||||
if (getNow == null)
|
||||
@@ -349,7 +349,7 @@ namespace BLL
|
||||
/// <param name="person">人员实体</param>
|
||||
public static void UpdatePersonInfo(Model.SitePerson_PersonInOut personInOut)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var getPersonInOut = db.SitePerson_PersonInOut.FirstOrDefault(x => x.PersonInOutId == personInOut.PersonInOutId);
|
||||
if (getPersonInOut != null)
|
||||
{
|
||||
@@ -410,7 +410,7 @@ namespace BLL
|
||||
/// <param name="personId"></param>
|
||||
public static void DeletePersonInOutByPersonId(string personId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var personInOut = from x in db.SitePerson_PersonInOut where x.PersonId == personId select x;
|
||||
if (personInOut.Count() > 0)
|
||||
{
|
||||
@@ -424,7 +424,7 @@ namespace BLL
|
||||
/// <param name="personId"></param>
|
||||
public static void DeletePersonInOutById(string id)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var realName = db.RealName_PersonInOutNow.FirstOrDefault(x => x.PersonInOutId == id);
|
||||
if (realName != null)
|
||||
@@ -453,7 +453,7 @@ namespace BLL
|
||||
/// <param name="personId"></param>
|
||||
public static void UpdateRealNameInOut(string personId, string oldCardNo, string newIdCardNo)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var personInOuts = from x in db.RealName_PersonInOutNow
|
||||
where x.PersonId == personId && x.IdcardNumber == oldCardNo
|
||||
select x;
|
||||
@@ -473,7 +473,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.WorkPostStatisticItem> getWorkPostStatistic(List<Model.SitePerson_PersonInOut> getAllPersonInOutList)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
List<Model.WorkPostStatisticItem> reports = new List<Model.WorkPostStatisticItem>();
|
||||
|
||||
var getUnitIdList = getAllPersonInOutList.Select(x => x.UnitId).Distinct();
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class PersonService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
#region 劳务人员列表
|
||||
/// <summary>
|
||||
@@ -356,7 +356,7 @@ namespace BLL
|
||||
/// <param name="person">人员实体</param>
|
||||
public static void AddPerson(Model.SitePerson_Person person)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.SitePerson_Person newPerson = new Model.SitePerson_Person
|
||||
{
|
||||
@@ -430,7 +430,7 @@ namespace BLL
|
||||
/// <param name="person">人员实体</param>
|
||||
public static void UpdatePerson(Model.SitePerson_Person person)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.SitePerson_Person newPerson = db.SitePerson_Person.FirstOrDefault(e => e.PersonId == person.PersonId);
|
||||
if (newPerson != null)
|
||||
@@ -505,7 +505,7 @@ namespace BLL
|
||||
/// <param name="person"></param>
|
||||
public static void PersonOut(string personId, DateTime date)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var person = db.SitePerson_Person.FirstOrDefault(x => x.PersonId == personId);
|
||||
if (person != null)
|
||||
@@ -634,7 +634,7 @@ namespace BLL
|
||||
/// <param name="cardNo"></param>
|
||||
public static void SaveSendCard(string personId, string cardNo, int personIndex)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.SitePerson_Person card = db.SitePerson_Person.FirstOrDefault(e => e.CardNo == cardNo);
|
||||
if (card != null)
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public class SitePerson_CheckingService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据人员考勤主键获取人员考勤管理信息
|
||||
@@ -26,7 +26,7 @@ namespace BLL
|
||||
/// <param name="personInfo">人员考勤管理实体</param>
|
||||
public static void AddPersonInfo(Model.SitePerson_Checking personInfo)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_Checking newPersonInfo = new Model.SitePerson_Checking
|
||||
{
|
||||
CheckingId = personInfo.CheckingId,
|
||||
@@ -52,7 +52,7 @@ namespace BLL
|
||||
/// <param name="personInfo">人员考勤管理实体</param>
|
||||
public static void UpdatePersonInfo(Model.SitePerson_Checking personInfo)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_Checking newPersonInfo = db.SitePerson_Checking.First(e => e.CheckingId == personInfo.CheckingId);
|
||||
newPersonInfo.CardNo = personInfo.CardNo;
|
||||
newPersonInfo.PersonId = personInfo.PersonId;
|
||||
@@ -83,7 +83,7 @@ namespace BLL
|
||||
/// <param name="checkingId">人员考勤主键</param>
|
||||
public static void DeletePersonInfoByCheckingId(string checkingId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_Checking personInfo = db.SitePerson_Checking.FirstOrDefault(e => e.CheckingId == checkingId);
|
||||
if (personInfo != null)
|
||||
{
|
||||
@@ -109,7 +109,7 @@ namespace BLL
|
||||
/// <param name="checkingId">人员考勤主键</param>
|
||||
public static void DeletePersonInOutByCheckingId(string PersonInOutId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_PersonInOut personInOut = db.SitePerson_PersonInOut.FirstOrDefault(e => e.PersonInOutId == PersonInOutId);
|
||||
if (personInOut != null)
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace BLL
|
||||
/// <param name="dayReportDetail">工作日报明细实体</param>
|
||||
public static void AddDayReportDetail(Model.SitePerson_DayReportDetail dayReportDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_DayReportDetail newDayReportDetail = new Model.SitePerson_DayReportDetail
|
||||
{
|
||||
DayReportDetailId = dayReportDetail.DayReportDetailId,
|
||||
@@ -53,7 +53,7 @@ namespace BLL
|
||||
/// <param name="dayReportDetail">工作日报明细实体</param>
|
||||
public static void UpdateReportDetail(Model.SitePerson_DayReportDetail dayReportDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_DayReportDetail newDayReportDetail = db.SitePerson_DayReportDetail.FirstOrDefault(e => e.DayReportDetailId == dayReportDetail.DayReportDetailId);
|
||||
if (newDayReportDetail != null)
|
||||
{
|
||||
@@ -76,7 +76,7 @@ namespace BLL
|
||||
/// <param name="dayReportId">工作日报主键</param>
|
||||
public static void DeleteDayReportDetailsByDayReportId(string dayReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var dayReportDetail = (from x in db.SitePerson_DayReportDetail where x.DayReportId == dayReportId select x).ToList();
|
||||
if (dayReportDetail.Count() > 0)
|
||||
{
|
||||
@@ -115,7 +115,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.SitePerson_DayReportDetail> getDayReportDetails(string projectId, DateTime sDate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
List<Model.SitePerson_DayReportDetail> reportDetails = new List<Model.SitePerson_DayReportDetail>();
|
||||
var getAllPersonInOutList = from x in db.SitePerson_PersonInOut
|
||||
where x.ProjectId == projectId && x.ChangeTime.Value.Year == sDate.Year
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace BLL
|
||||
/// <param name="dayReport">工作日报实体</param>
|
||||
public static void AddDayReport(Model.SitePerson_DayReport dayReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_DayReport newDayReport = new Model.SitePerson_DayReport
|
||||
{
|
||||
DayReportId = dayReport.DayReportId,
|
||||
@@ -44,7 +44,7 @@ namespace BLL
|
||||
/// <param name="dayReport">工作日报实体</param>
|
||||
public static void UpdateDayReport(Model.SitePerson_DayReport dayReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_DayReport newDayReport = db.SitePerson_DayReport.First(e => e.DayReportId == dayReport.DayReportId);
|
||||
newDayReport.ProjectId = dayReport.ProjectId;
|
||||
newDayReport.CompileMan = dayReport.CompileMan;
|
||||
@@ -60,7 +60,7 @@ namespace BLL
|
||||
/// <param name="dayReportId">工作日报主键</param>
|
||||
public static void DeleteDayReportByDayReportId(string dayReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_DayReport dayReport = db.SitePerson_DayReport.FirstOrDefault(e => e.DayReportId == dayReportId);
|
||||
if (dayReport != null)
|
||||
{
|
||||
@@ -134,7 +134,7 @@ namespace BLL
|
||||
/// <returns>工作日报信息</returns>
|
||||
public static List<Model.SitePerson_DayReport> GetDayReportsByCompileDateAndUnitId(DateTime startTime, DateTime endTime, string projectId, string unitId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
return (from x in db.SitePerson_DayReport
|
||||
join y in db.SitePerson_DayReportDetail
|
||||
@@ -152,7 +152,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.SitePerson_DayReport> getDayReports(string projectId, DateTime? sDate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
List<Model.SitePerson_DayReport> reports = new List<Model.SitePerson_DayReport>();
|
||||
var getAllPersonInOutList = from x in db.SitePerson_PersonInOutNumber
|
||||
where x.ProjectId == projectId
|
||||
@@ -195,7 +195,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<object> getMonthChart()
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
|
||||
var sDate = DateTime.Now.AddMonths(-6);
|
||||
var eDate = DateTime.Now;
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public class SitePerson_DayReportUnitDetailService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -17,7 +17,7 @@ namespace BLL
|
||||
/// <param name="dayReportUnitDetail">工作日报明细实体</param>
|
||||
public static void AddDayReportUnitDetail(Model.SitePerson_DayReportUnitDetail dayReportUnitDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_DayReportUnitDetail newDayReportUnitDetail = new Model.SitePerson_DayReportUnitDetail();
|
||||
string newKeyID = SQLHelper.GetNewID(typeof(Model.SitePerson_DayReportUnitDetail));
|
||||
newDayReportUnitDetail.DayReportUnitDetailId = newKeyID;
|
||||
@@ -37,7 +37,7 @@ namespace BLL
|
||||
/// <param name="dayReportDetail">工作日报明细实体</param>
|
||||
public static void UpdateDayReportUnitDetail(Model.SitePerson_DayReportUnitDetail dayReportUnitDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_DayReportUnitDetail newDayReportUnitDetail = db.SitePerson_DayReportUnitDetail.FirstOrDefault(e => e.DayReportUnitDetailId == dayReportUnitDetail.DayReportUnitDetailId);
|
||||
if (newDayReportUnitDetail != null)
|
||||
{
|
||||
@@ -59,7 +59,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.SitePerson_DayReportUnitDetail> getDayReportUnitDetails(string projectId, string unitId, DateTime sDate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
List<Model.SitePerson_DayReportUnitDetail> reportDetails = new List<Model.SitePerson_DayReportUnitDetail>();
|
||||
var getAllPersonInOutList = from x in db.SitePerson_PersonInOut
|
||||
where x.ProjectId == projectId && x.ChangeTime.Value.Year == sDate.Year
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace BLL
|
||||
/// <param name="monthReportDetail">工作日报明细实体</param>
|
||||
public static void AddMonthReportDetail(Model.SitePerson_MonthReportDetail monthReportDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_MonthReportDetail newMonthReportDetail = new Model.SitePerson_MonthReportDetail
|
||||
{
|
||||
MonthReportDetailId = monthReportDetail.MonthReportDetailId,
|
||||
@@ -50,7 +50,7 @@ namespace BLL
|
||||
/// <param name="monthReportDetail">工作日报明细实体</param>
|
||||
public static void UpdateReportDetail(Model.SitePerson_MonthReportDetail monthReportDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_MonthReportDetail newMonthReportDetail = db.SitePerson_MonthReportDetail.FirstOrDefault(e => e.MonthReportDetailId == monthReportDetail.MonthReportDetailId);
|
||||
if (newMonthReportDetail != null)
|
||||
{
|
||||
@@ -73,7 +73,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">工作日报主键</param>
|
||||
public static void DeleteMonthReportDetailsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var monthReportDetail = (from x in db.SitePerson_MonthReportDetail where x.MonthReportId == monthReportId select x).ToList();
|
||||
if (monthReportDetail.Count() > 0)
|
||||
{
|
||||
@@ -112,7 +112,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.SitePerson_MonthReportDetail> getMonthReportDetails(string projectId, DateTime sDate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
List<Model.SitePerson_MonthReportDetail> reportDetails = new List<Model.SitePerson_MonthReportDetail>();
|
||||
var getAllPersonInOutList = from x in db.SitePerson_PersonInOut
|
||||
where x.ProjectId == projectId && x.ChangeTime.Value.Year == sDate.Year
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace BLL
|
||||
/// <param name="monthReport">工作月报实体</param>
|
||||
public static void AddMonthReport(Model.SitePerson_MonthReport monthReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_MonthReport newMonthReport = new Model.SitePerson_MonthReport
|
||||
{
|
||||
MonthReportId = monthReport.MonthReportId,
|
||||
@@ -46,7 +46,7 @@ namespace BLL
|
||||
/// <param name="monthReport">工作月报实体</param>
|
||||
public static void UpdateMonthReport(Model.SitePerson_MonthReport monthReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_MonthReport newMonthReport = db.SitePerson_MonthReport.FirstOrDefault(e => e.MonthReportId == monthReport.MonthReportId);
|
||||
if (newMonthReport != null)
|
||||
{
|
||||
@@ -65,7 +65,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">工作月报主键</param>
|
||||
public static void DeleteMonthReportByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_MonthReport monthReport = db.SitePerson_MonthReport.FirstOrDefault(e => e.MonthReportId == monthReportId);
|
||||
if (monthReport != null)
|
||||
{
|
||||
@@ -116,7 +116,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.SitePerson_MonthReport> getMonthReports(string projectId, DateTime? sDate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
List<Model.SitePerson_MonthReport> reports = new List<Model.SitePerson_MonthReport>();
|
||||
var getAllPersonInOutList = from x in db.SitePerson_PersonInOutNumber
|
||||
where x.ProjectId == projectId
|
||||
@@ -158,7 +158,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.SitePerson_MonthReport> getTotalMonthReports(string projectId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
List<Model.SitePerson_MonthReport> reports = new List<Model.SitePerson_MonthReport>();
|
||||
var getAllPersonInOutList = from x in db.SitePerson_PersonInOutNumber
|
||||
where x.ProjectId == projectId
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public class SitePerson_MonthReportUnitDetailService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 增加工作日报明细信息
|
||||
@@ -16,7 +16,7 @@ namespace BLL
|
||||
/// <param name="monthReportUnitDetail">工作日报明细实体</param>
|
||||
public static void AddMonthReportUnitDetail(Model.SitePerson_MonthReportUnitDetail monthReportUnitDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_MonthReportUnitDetail newMonthReportUnitDetail = new Model.SitePerson_MonthReportUnitDetail();
|
||||
string newKeyID = SQLHelper.GetNewID(typeof(Model.SitePerson_MonthReportUnitDetail));
|
||||
newMonthReportUnitDetail.MonthReportUnitDetailId = newKeyID;
|
||||
@@ -36,7 +36,7 @@ namespace BLL
|
||||
/// <param name="monthReportDetail">工作日报明细实体</param>
|
||||
public static void UpdateMonthReportUnitDetail(Model.SitePerson_MonthReportUnitDetail monthReportUnitDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.SitePerson_MonthReportUnitDetail newMonthReportUnitDetail = db.SitePerson_MonthReportUnitDetail.FirstOrDefault(e => e.MonthReportUnitDetailId == monthReportUnitDetail.MonthReportUnitDetailId);
|
||||
if (newMonthReportUnitDetail != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user