1
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
namespace BLL
|
||||
{
|
||||
using Model;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
//using System.Net.Http.Headers;
|
||||
@@ -2052,6 +2053,44 @@
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 集团督查检查驳回整改
|
||||
|
||||
/// <summary>
|
||||
/// 集团督查检查驳回整改
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
public static ResponeData RejectRectify(DCGLCheckRectifyReject data)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(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
|
||||
|
||||
|
||||
#region 督查大队:重点工程项目质量专项整治行动开展情况台账上报
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user