督查检查驳回整改
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
using System.Linq;
|
||||
using System.Timers;
|
||||
using System.Configuration;
|
||||
using System;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Model;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Timers;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
@@ -103,5 +104,43 @@ namespace BLL
|
||||
}
|
||||
#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
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user