修改安全实施计划
This commit is contained in:
@@ -6,6 +6,7 @@ namespace BLL
|
||||
{
|
||||
public class ActionPlanListApproveService
|
||||
{
|
||||
public const string ActionPlanListEdit = "ActionPlanListEdit";
|
||||
public static Model.ActionPlan_ActionPlanListApprove GetActionPlanListApproveByActionPlanListApproveId(string ActionPlanListApproveId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
@@ -37,6 +38,16 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取未推送oa 的审批记录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.ActionPlan_ActionPlanListApprove> GetApproves_NopushOa()
|
||||
{
|
||||
var q = (from x in Funs.DB.ActionPlan_ActionPlanListApprove where x.IsPushOa == 0 && x.ApproveMan != "" select x).ToList();
|
||||
return q;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 部门评审小组审批信息
|
||||
/// </summary>
|
||||
@@ -47,6 +58,16 @@ namespace BLL
|
||||
return (from x in Funs.DB.ActionPlan_ActionPlanListApprove where x.ActionPlanListId == ActionPlanListId && x.ApproveType == BLL.Const.ActionPlanList_Reviewing && x.Edition == edtion select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 公司部门评审小组审批信息
|
||||
/// </summary>
|
||||
/// <param name="MainPlanId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.ActionPlan_ActionPlanListApprove> GetDepartReviewings(string ActionPlanListId, int edtion)
|
||||
{
|
||||
return (from x in Funs.DB.ActionPlan_ActionPlanListApprove where x.ActionPlanListId == ActionPlanListId && x.ApproveType == BLL.Const.ActionPlanList_DepartReview && x.Edition == edtion select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 部门评审小组审批信息
|
||||
/// </summary>
|
||||
@@ -57,6 +78,16 @@ namespace BLL
|
||||
return (from x in Funs.DB.ActionPlan_ActionPlanListApprove where x.ActionPlanListId == ActionPlanListId && x.ApproveType == BLL.Const.ActionPlanList_Reviewing && x.Edition == edtion && x.ApproveDate != null select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 公司部门评审小组审批信息
|
||||
/// </summary>
|
||||
/// <param name="MainPlanId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.ActionPlan_ActionPlanListApprove> GetDepartReviewingEnds(string ActionPlanListId, int edtion)
|
||||
{
|
||||
return (from x in Funs.DB.ActionPlan_ActionPlanListApprove where x.ActionPlanListId == ActionPlanListId && x.ApproveType == BLL.Const.ActionPlanList_DepartReview && x.Edition == edtion && x.ApproveDate != null select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 部门评审小组审批人员Id集合
|
||||
/// </summary>
|
||||
@@ -192,11 +223,11 @@ namespace BLL
|
||||
/// <param name="satartRowIndex"></param>
|
||||
/// <param name="maximumRows"></param>
|
||||
/// <returns></returns>
|
||||
public static IList<Model.ActionPlan_ActionPlanListApprove> getDepartListData(string ActionPlanListId)
|
||||
public static IList<Model.ActionPlan_ActionPlanListApprove> getDepartListData(string ActionPlanListId, int? edition)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var res = from x in db.ActionPlan_ActionPlanListApprove
|
||||
where x.ActionPlanListId == ActionPlanListId && x.DepartId != null
|
||||
where x.ActionPlanListId == ActionPlanListId && x.DepartId != null && x.Edition == edition
|
||||
orderby x.ApproveDate
|
||||
select x;
|
||||
|
||||
@@ -278,7 +309,7 @@ namespace BLL
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var q = (from x in Funs.DB.ActionPlan_ActionPlanListApprove where x.ActionPlanListApproveId == ActionPlanListApproveId select x).FirstOrDefault();
|
||||
if (q!=null)
|
||||
if (q != null)
|
||||
{
|
||||
db.ActionPlan_ActionPlanListApprove.DeleteOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
@@ -332,6 +363,7 @@ namespace BLL
|
||||
newApprove.DepartId = approve.DepartId;
|
||||
newApprove.SignType = approve.SignType;
|
||||
newApprove.Edition = approve.Edition;
|
||||
newApprove.IsPushOa = approve.IsPushOa;
|
||||
db.ActionPlan_ActionPlanListApprove.InsertOnSubmit(newApprove);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
@@ -357,6 +389,7 @@ namespace BLL
|
||||
newApprove.ApproveType = approve.ApproveType;
|
||||
newApprove.SignType = approve.SignType;
|
||||
newApprove.Edition = approve.Edition;
|
||||
newApprove.IsPushOa = approve.IsPushOa;
|
||||
db.ActionPlan_ActionPlanListApprove.InsertOnSubmit(newApprove);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user