This commit is contained in:
parent
0736adf719
commit
8ca97d0c9a
|
@ -195,13 +195,15 @@ 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);
|
Model.Check_CheckControl newCheckControl = db.Check_CheckControl.First(e => e.CheckControlCode == CheckControl.CheckControlCode);
|
||||||
newCheckControl.DocCode = CheckControl.DocCode;
|
newCheckControl.DocCode = CheckControl.DocCode;
|
||||||
newCheckControl.ProposeUnitId = CheckControl.ProposeUnitId;
|
newCheckControl.ProposeUnitId = CheckControl.ProposeUnitId;
|
||||||
|
@ -223,9 +225,13 @@ namespace BLL
|
||||||
newCheckControl.ReAttachUrl = CheckControl.ReAttachUrl;
|
newCheckControl.ReAttachUrl = CheckControl.ReAttachUrl;
|
||||||
newCheckControl.State = CheckControl.State;
|
newCheckControl.State = CheckControl.State;
|
||||||
newCheckControl.SaveHandleMan = CheckControl.SaveHandleMan;
|
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))
|
||||||
|
|
Loading…
Reference in New Issue