diff --git a/DataBase/版本日志/SGGLDB_V2023-02-28.sql b/DataBase/版本日志/SGGLDB_V2023-02-28.sql
new file mode 100644
index 00000000..d10bdb6d
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2023-02-28.sql
@@ -0,0 +1,12 @@
+alter table [PHTGL_ActionPlanReview] add DepartId varchar(50)
+alter table PHTGL_BidApproveUserReview add DepartId varchar(50)
+alter table PHTGL_BidDocumentsReview add DepartId varchar(50)
+alter table PHTGL_SetSubReview add DepartId varchar(50)
+alter table PHTGL_ContractReview add DepartId varchar(50)
+
+update [PHTGL_ActionPlanReview] set DepartId =(select DepartId from Base_Depart where DepartName ='ʩ' )
+update PHTGL_BidApproveUserReview set DepartId =(select DepartId from Base_Depart where DepartName ='ʩ' )
+update PHTGL_BidDocumentsReview set DepartId =(select DepartId from Base_Depart where DepartName ='ʩ' )
+update PHTGL_SetSubReview set DepartId =(select DepartId from Base_Depart where DepartName ='ʩ' )
+update PHTGL_ContractReview set DepartId =(select DepartId from Base_Depart where DepartName ='ʩ' )
+
\ No newline at end of file
diff --git a/SGGL/BLL/API/HTGL/APIHTGLPersonService.cs b/SGGL/BLL/API/HTGL/APIHTGLPersonService.cs
index 69ae292d..e90de5b6 100644
--- a/SGGL/BLL/API/HTGL/APIHTGLPersonService.cs
+++ b/SGGL/BLL/API/HTGL/APIHTGLPersonService.cs
@@ -102,7 +102,7 @@ namespace BLL
}
// db.SubmitChanges();
- Person_PersonsService.UpdatePerson(getPerson);
+ Person_PersonsService.UpdatePerson_Persons(getPerson);
}
else
{
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanReviewService.cs b/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanReviewService.cs
index d3c046c6..1e3b9951 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanReviewService.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/ActionPlanReviewService.cs
@@ -36,6 +36,7 @@ namespace BLL
table.PreliminaryMan = newtable.PreliminaryMan;
table.ProjectManager = newtable.ProjectManager;
table.DeputyGeneralManager = newtable.DeputyGeneralManager;
+ table.DepartId = newtable.DepartId;
Funs.DB.PHTGL_ActionPlanReview.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
@@ -57,6 +58,8 @@ namespace BLL
table.PreliminaryMan = newtable.PreliminaryMan;
table.ProjectManager = newtable.ProjectManager;
table.DeputyGeneralManager = newtable.DeputyGeneralManager;
+ table.DepartId = newtable.DepartId;
+
Funs.DB.SubmitChanges();
}
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReviewService.cs b/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReviewService.cs
index cc2b0e26..4f02c3a8 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReviewService.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReviewService.cs
@@ -28,6 +28,8 @@ namespace BLL
table.ProjectManager = newtable.ProjectManager;
table.Approval_Construction = newtable.Approval_Construction;
table.DeputyGeneralManager = newtable.DeputyGeneralManager;
+ table.DepartId = newtable.DepartId;
+
Funs.DB.PHTGL_BidApproveUserReview.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
@@ -50,6 +52,8 @@ namespace BLL
table.ProjectManager = newtable.ProjectManager;
table.Approval_Construction = newtable.Approval_Construction;
table.DeputyGeneralManager = newtable.DeputyGeneralManager;
+ table.DepartId = newtable.DepartId;
+
Funs.DB.SubmitChanges();
}
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/BidDocumentsReviewService.cs b/SGGL/BLL/PHTGL/BiddingManagement/BidDocumentsReviewService.cs
index 72296aac..5c828adc 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/BidDocumentsReviewService.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/BidDocumentsReviewService.cs
@@ -35,6 +35,8 @@ namespace BLL
table.BidDocumentsName = newtable.BidDocumentsName;
table.BidDocumentsCode = newtable.BidDocumentsCode;
table.Bidding_SendTime = newtable.Bidding_SendTime;
+ table.DepartId = newtable.DepartId;
+
Funs.DB.PHTGL_BidDocumentsReview.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
@@ -65,6 +67,8 @@ namespace BLL
table.BidDocumentsName = newtable.BidDocumentsName;
table.BidDocumentsCode = newtable.BidDocumentsCode;
table.Bidding_SendTime = newtable.Bidding_SendTime;
+ table.DepartId = newtable.DepartId;
+
Funs.DB.SubmitChanges();
}
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/SetSubReviewService.cs b/SGGL/BLL/PHTGL/BiddingManagement/SetSubReviewService.cs
index 1a71e076..1c931c37 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/SetSubReviewService.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/SetSubReviewService.cs
@@ -60,6 +60,8 @@ namespace BLL
table.ProjectManager = newtable.ProjectManager;
table.Approval_Construction = newtable.Approval_Construction;
table.IsOwenerApprove = newtable.IsOwenerApprove;
+ table.DepartId = newtable.DepartId;
+
Funs.DB.PHTGL_SetSubReview.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
@@ -84,6 +86,8 @@ namespace BLL
table.ProjectManager = newtable.ProjectManager;
table.Approval_Construction = newtable.Approval_Construction;
table.IsOwenerApprove = newtable.IsOwenerApprove;
+ table.DepartId = newtable.DepartId;
+
Funs.DB.SubmitChanges();
}
diff --git a/SGGL/BLL/PHTGL/ContractCompile/ContractReviewService.cs b/SGGL/BLL/PHTGL/ContractCompile/ContractReviewService.cs
index 74222c2c..f7be72f6 100644
--- a/SGGL/BLL/PHTGL/ContractCompile/ContractReviewService.cs
+++ b/SGGL/BLL/PHTGL/ContractCompile/ContractReviewService.cs
@@ -151,6 +151,7 @@ namespace BLL
table.Countersign_Law2 = newtable.Countersign_Law2;
table.Idea = newtable.Idea;
table.Approval_GeneralLaw = newtable.Approval_GeneralLaw;
+ table.DepartId = newtable.DepartId;
Funs.DB.PHTGL_ContractReview.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
@@ -186,6 +187,7 @@ namespace BLL
table.Countersign_Law2 = newtable.Countersign_Law2;
table.Idea = newtable.Idea;
table.Approval_GeneralLaw = newtable.Approval_GeneralLaw;
+ table.DepartId = newtable.DepartId;
Funs.DB.SubmitChanges();
}
diff --git a/SGGL/BLL/Person/Person_PersonsService.cs b/SGGL/BLL/Person/Person_PersonsService.cs
index db55b90a..e64293cc 100644
--- a/SGGL/BLL/Person/Person_PersonsService.cs
+++ b/SGGL/BLL/Person/Person_PersonsService.cs
@@ -1,5 +1,6 @@
using FineUIPro;
using Microsoft.Office.Interop.Excel;
+using Microsoft.Office.Interop.Word;
using Model;
using System;
using System.Collections;
@@ -812,6 +813,98 @@ namespace BLL
}
}
+ public static void UpdatePerson_Persons(Model.Person_Persons newtable)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ Model.Person_Persons table = db.Person_Persons.FirstOrDefault(x => x.PersonId == newtable.PersonId);
+ if (table != null)
+ {
+ table.PersonId = newtable.PersonId;
+ table.UnitId = newtable.UnitId;
+ table.DepartId = newtable.DepartId;
+ table.WorkPostId = newtable.WorkPostId;
+ table.JobNum = newtable.JobNum;
+ table.PersonName = newtable.PersonName;
+ table.Account = newtable.Account;
+ table.Password = newtable.Password;
+ table.IsOffice = newtable.IsOffice;
+ table.RoleIds = newtable.RoleIds;
+ table.IdentityCard = newtable.IdentityCard;
+ table.IdcardType = newtable.IdcardType;
+ table.IdcardStartDate = newtable.IdcardStartDate;
+ table.IdcardEndDate = newtable.IdcardEndDate;
+ table.IdcardForever = newtable.IdcardForever;
+ table.IdcardAddress = newtable.IdcardAddress;
+ table.Telephone = newtable.Telephone;
+ table.Sex = newtable.Sex;
+ table.Birthday = newtable.Birthday;
+ table.Address = newtable.Address;
+ table.PhotoUrl = newtable.PhotoUrl;
+ table.HeadImage = newtable.HeadImage;
+ table.QRCodeAttachUrl = newtable.QRCodeAttachUrl;
+ table.IDCardUrl = newtable.IDCardUrl;
+ table.IDCardBackUrl = newtable.IDCardBackUrl;
+ table.SignatureUrl = newtable.SignatureUrl;
+ table.IsForeign = newtable.IsForeign;
+ table.MaritalStatus = newtable.MaritalStatus;
+ table.PoliticsStatus = newtable.PoliticsStatus;
+ table.PostTitleId = newtable.PostTitleId;
+ table.PostTitleDate = newtable.PostTitleDate;
+ table.PositionId = newtable.PositionId;
+ table.Nation = newtable.Nation;
+ table.EduLevel = newtable.EduLevel;
+ table.ForeignLanguage = newtable.ForeignLanguage;
+ table.CountryCode = newtable.CountryCode;
+ table.ProvinceCode = newtable.ProvinceCode;
+ table.IsPost = newtable.IsPost;
+ table.Graduate = newtable.Graduate;
+ table.Major = newtable.Major;
+ table.IntoDate = newtable.IntoDate;
+ table.WorkDate = newtable.WorkDate;
+ table.RetirementDate = newtable.RetirementDate;
+ table.ValidityDate = newtable.ValidityDate;
+ table.OpenId = newtable.OpenId;
+ table.CurrentProjectId = newtable.CurrentProjectId;
+ table.CurrentProjectRoleId = newtable.CurrentProjectRoleId;
+ table.CurrentProjectWorkPostId = newtable.CurrentProjectWorkPostId;
+ table.LoginProjectId = newtable.LoginProjectId;
+ table.LastMenuType = newtable.LastMenuType;
+ table.LastIsOffice = newtable.LastIsOffice;
+ table.LastProjectId = newtable.LastProjectId;
+ table.DataFrom = newtable.DataFrom;
+ table.OldDataId = newtable.OldDataId;
+ table.IsCardNoOK = newtable.IsCardNoOK;
+ table.RelativeName = newtable.RelativeName;
+ table.RelativeTel = newtable.RelativeTel;
+ table.Email = newtable.Email;
+ table.CertificateId = newtable.CertificateId;
+ table.PersonType = newtable.PersonType;
+ table.MultiProject = newtable.MultiProject;
+ table.HomePageType = newtable.HomePageType;
+ if (string.IsNullOrEmpty(newtable.QRCodeAttachUrl))
+ {
+ ///生成二维码
+ table.QRCodeAttachUrl = BLL.CreateQRCodeService.CreateCode_Simple("person$" + newtable.IdentityCard);
+ }
+ db.SubmitChanges();
+ }
+ }
+
+
+
+ }
+ public static void DeletePerson_PersonsById(string PersonId)
+ {
+
+ Model.Person_Persons table = db.Person_Persons.FirstOrDefault(x => x.PersonId == PersonId);
+ if (table != null)
+ {
+ db.Person_Persons.DeleteOnSubmit(table);
+ db.SubmitChanges();
+ }
+
+ }
///