This commit is contained in:
夏菊 2025-06-19 20:29:05 +08:00
parent 0736adf719
commit 8ca97d0c9a
1 changed files with 29 additions and 23 deletions

View File

@ -195,37 +195,43 @@ namespace BLL
else else
return null; return null;
} }
/// <summary> /// <summary>
/// 修改质量检查与控制 /// 修改质量检查与控制
/// </summary> /// </summary>
/// <param name="CheckControl"></param> /// <param name="CheckControl"></param>
public static void UpdateCheckControl(Model.Check_CheckControl CheckControl) public static void UpdateCheckControl(Model.Check_CheckControl CheckControl)
{ {
Model.SGGLDB db = Funs.DB; using (var db = new Model.SGGLDB(Funs.ConnString))
Model.Check_CheckControl newCheckControl = db.Check_CheckControl.First(e => e.CheckControlCode == CheckControl.CheckControlCode); {
newCheckControl.DocCode = CheckControl.DocCode; Model.Check_CheckControl newCheckControl = db.Check_CheckControl.First(e => e.CheckControlCode == CheckControl.CheckControlCode);
newCheckControl.ProposeUnitId = CheckControl.ProposeUnitId; newCheckControl.DocCode = CheckControl.DocCode;
newCheckControl.UnitWorkId = CheckControl.UnitWorkId; newCheckControl.ProposeUnitId = CheckControl.ProposeUnitId;
newCheckControl.UnitId = CheckControl.UnitId; newCheckControl.UnitWorkId = CheckControl.UnitWorkId;
newCheckControl.CheckDate = CheckControl.CheckDate; newCheckControl.UnitId = CheckControl.UnitId;
newCheckControl.IsSubmit = CheckControl.IsSubmit; newCheckControl.CheckDate = CheckControl.CheckDate;
newCheckControl.SubmitMan = CheckControl.SubmitMan; newCheckControl.IsSubmit = CheckControl.IsSubmit;
newCheckControl.IsOK = CheckControl.IsOK; newCheckControl.SubmitMan = CheckControl.SubmitMan;
newCheckControl.CNProfessionalCode = CheckControl.CNProfessionalCode; newCheckControl.IsOK = CheckControl.IsOK;
newCheckControl.QuestionType = CheckControl.QuestionType; newCheckControl.CNProfessionalCode = CheckControl.CNProfessionalCode;
newCheckControl.CheckSite = CheckControl.CheckSite; newCheckControl.QuestionType = CheckControl.QuestionType;
newCheckControl.QuestionDef = CheckControl.QuestionDef; newCheckControl.CheckSite = CheckControl.CheckSite;
newCheckControl.LimitDate = CheckControl.LimitDate; newCheckControl.QuestionDef = CheckControl.QuestionDef;
newCheckControl.RectifyOpinion = CheckControl.RectifyOpinion; newCheckControl.LimitDate = CheckControl.LimitDate;
newCheckControl.AttachUrl = CheckControl.AttachUrl; newCheckControl.RectifyOpinion = CheckControl.RectifyOpinion;
newCheckControl.HandleWay = CheckControl.HandleWay; newCheckControl.AttachUrl = CheckControl.AttachUrl;
newCheckControl.RectifyDate = CheckControl.RectifyDate; newCheckControl.HandleWay = CheckControl.HandleWay;
newCheckControl.ReAttachUrl = CheckControl.ReAttachUrl; newCheckControl.RectifyDate = CheckControl.RectifyDate;
newCheckControl.State = CheckControl.State; newCheckControl.ReAttachUrl = CheckControl.ReAttachUrl;
newCheckControl.SaveHandleMan = CheckControl.SaveHandleMan; newCheckControl.State = CheckControl.State;
newCheckControl.SaveHandleMan = CheckControl.SaveHandleMan;
newCheckControl.IsUpdate = null;
db.SubmitChanges(); db.SubmitChanges();
}
} }
public static List<Model.Check_CheckControl> GetListDataForApi(string state, string name, string projectId, int index, int page) public static List<Model.Check_CheckControl> GetListDataForApi(string state, string name, string projectId, int index, int page)
{ {
using (var db = new Model.SGGLDB(Funs.ConnString)) using (var db = new Model.SGGLDB(Funs.ConnString))