diff --git a/SGGL/BLL/BoSheng/BOSHENGMonitorService.cs b/SGGL/BLL/BoSheng/BOSHENGMonitorService.cs index 30bf9248..5487933e 100644 --- a/SGGL/BLL/BoSheng/BOSHENGMonitorService.cs +++ b/SGGL/BLL/BoSheng/BOSHENGMonitorService.cs @@ -125,7 +125,7 @@ namespace BLL if (type == "0") { - //isOk = AddPerson(projectId, arr, sysUser); + isOk = AddPerson(projectId, arr, sysUser); } else if (type == "1") { @@ -216,7 +216,7 @@ namespace BLL try { List insertPersons = new List(); - List insertSitePersons = new List(); + //List insertSitePersons = new List(); foreach (var item in arr) { string getID = item["ID"].ToString(); @@ -292,39 +292,39 @@ namespace BLL db.SubmitChanges(); } } - var getSitePerson = db.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == item["IdentifyID"].ToString()); - if (!string.IsNullOrEmpty(getID)) - { - if (getSitePerson == null) - { - Model.SitePerson_Person newPerson = new Model.SitePerson_Person - { - PersonId = SQLHelper.GetNewID(), - ProjectId = projectId, - PersonName = item["Name"].ToString(), - Sex = item["Sex"].ToString(), - Birthday = Funs.GetNewDateTime(item["BirthDay"].ToString()), - Address = item["Address"].ToString(), - Nation = item["Nation"].ToString(), - IdentityCard = item["IdentifyID"].ToString(), - UnitId = BLL.UnitService.GetUnitIdByUnitName(item["DepartName"].ToString()), - Telephone = item["Telephone"].ToString(), - MaritalStatus = item["MaritalStatus"].ToString(), - }; - insertSitePersons.Add(newPerson); - } - } + //var getSitePerson = db.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == item["IdentifyID"].ToString()); + //if (!string.IsNullOrEmpty(getID)) + //{ + // if (getSitePerson == null) + // { + // Model.SitePerson_Person newPerson = new Model.SitePerson_Person + // { + // PersonId = SQLHelper.GetNewID(), + // ProjectId = projectId, + // PersonName = item["Name"].ToString(), + // Sex = item["Sex"].ToString(), + // Birthday = Funs.GetNewDateTime(item["BirthDay"].ToString()), + // Address = item["Address"].ToString(), + // Nation = item["Nation"].ToString(), + // IdentityCard = item["IdentifyID"].ToString(), + // UnitId = BLL.UnitService.GetUnitIdByUnitName(item["DepartName"].ToString()), + // Telephone = item["Telephone"].ToString(), + // MaritalStatus = item["MaritalStatus"].ToString(), + // }; + // insertSitePersons.Add(newPerson); + // } + //} if (insertPersons.Count() > 0) { db.Bo_Sheng_Person.InsertAllOnSubmit(insertPersons); db.SubmitChanges(); } - if (insertSitePersons.Count() > 0) - { - db.SitePerson_Person.InsertAllOnSubmit(insertSitePersons); - db.SubmitChanges(); - } + //if (insertSitePersons.Count() > 0) + //{ + // db.SitePerson_Person.InsertAllOnSubmit(insertSitePersons); + // db.SubmitChanges(); + //} } } catch (Exception ex) diff --git a/SGGL/FineUIPro.Web/Web.config b/SGGL/FineUIPro.Web/Web.config index 963148f2..9fc55c34 100644 --- a/SGGL/FineUIPro.Web/Web.config +++ b/SGGL/FineUIPro.Web/Web.config @@ -12,7 +12,7 @@ - + @@ -77,7 +77,7 @@ - + diff --git a/SGGL/WebAPI/WebAPI.csproj.user b/SGGL/WebAPI/WebAPI.csproj.user index bd497c6b..5fe155da 100644 --- a/SGGL/WebAPI/WebAPI.csproj.user +++ b/SGGL/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@  - Release|Any CPU + Debug|Any CPU true