督查检查驳回
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
namespace BLL
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
@@ -1842,5 +1844,43 @@
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 集团督查检查驳回整改
|
||||
|
||||
/// <summary>
|
||||
/// 集团督查检查驳回整改
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
public static ResponeData RejectRectify(DCGLCheckRectifyReject data)
|
||||
{
|
||||
using (Model.SUBQHSEDB db = new Model.SUBQHSEDB(Funs.ConnString))
|
||||
{
|
||||
var respone = new ResponeData();
|
||||
var rectifItem = db.DCGL_Check_CheckRectifyItem.FirstOrDefault(x => x.CheckRectifyItemId == data.CheckRectifyItemId);
|
||||
rectifItem.RealEndDate = null;
|
||||
rectifItem.Verification = data.Reason;
|
||||
db.SubmitChanges();
|
||||
var rectify = db.DCGL_Check_CheckRectify.FirstOrDefault(x => x.CheckRectifyId == rectifItem.CheckRectifyId);
|
||||
if (rectify != null)
|
||||
{
|
||||
var getNoUpdateItem = db.DCGL_Check_CheckRectifyItem.FirstOrDefault(x => x.CheckRectifyId == rectifItem.CheckRectifyId && !x.RealEndDate.HasValue);
|
||||
if (getNoUpdateItem == null)
|
||||
{
|
||||
rectify.HandleState = "3";
|
||||
}
|
||||
else
|
||||
{
|
||||
rectify.HandleState = "2";
|
||||
}
|
||||
db.SubmitChanges();
|
||||
}
|
||||
return respone;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user