From 8697c026526a13301bdaa10955967f4dad3784ea Mon Sep 17 00:00:00 2001
From: gaofei <181547018@qq.com>
Date: Mon, 26 Jun 2023 17:30:09 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=91=98=E5=B7=A5=E8=80=83?=
=?UTF-8?q?=E6=A0=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DataBase/版本日志/SGGLDB_V2023-06-26.sql | 2 +
SGGL/BLL/Common/Const.cs | 5 +
.../ActionPlanListApproveService.cs | 54 +++++++
.../HSSE/ActionPlan/ActionPlanListService.cs | 4 +
SGGL/BLL/SysManage/DepartService.cs | 19 +++
SGGL/FineUIPro.Web/ErrLog.txt | 40 +++++
SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 8 +
.../Person/DepartPersonCheck.aspx.cs | 7 +-
.../ZHGL/Plan/ActionPlanListEdit.aspx | 61 +++++++-
.../ZHGL/Plan/ActionPlanListEdit.aspx.cs | 139 +++++++++++++++++-
.../Plan/ActionPlanListEdit.aspx.designer.cs | 81 ++++++++++
SGGL/FineUIPro.Web/ZHGL/Plan/DepartEdit.aspx | 48 ++++++
.../ZHGL/Plan/DepartEdit.aspx.cs | 136 +++++++++++++++++
.../ZHGL/Plan/DepartEdit.aspx.designer.cs | 96 ++++++++++++
SGGL/Model/Model.cs | 34 ++++-
15 files changed, 724 insertions(+), 10 deletions(-)
create mode 100644 DataBase/版本日志/SGGLDB_V2023-06-26.sql
create mode 100644 SGGL/FineUIPro.Web/ZHGL/Plan/DepartEdit.aspx
create mode 100644 SGGL/FineUIPro.Web/ZHGL/Plan/DepartEdit.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/ZHGL/Plan/DepartEdit.aspx.designer.cs
diff --git a/DataBase/版本日志/SGGLDB_V2023-06-26.sql b/DataBase/版本日志/SGGLDB_V2023-06-26.sql
new file mode 100644
index 00000000..91ed80fd
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2023-06-26.sql
@@ -0,0 +1,2 @@
+alter table [dbo].[ActionPlan_ActionPlanListApprove] add DepartId nvarchar(50) null
+GO
\ No newline at end of file
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 43ffea3a..5cb82257 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -3543,6 +3543,11 @@
///
public static string ActionPlanList_Review2 = "5";
+ ///
+ /// 公司部门评审
+ ///
+ public static string ActionPlanList_DepartReview = "6";
+
///
/// 审批完成
///
diff --git a/SGGL/BLL/HSSE/ActionPlan/ActionPlanListApproveService.cs b/SGGL/BLL/HSSE/ActionPlan/ActionPlanListApproveService.cs
index e18b6d9f..fb8ab31e 100644
--- a/SGGL/BLL/HSSE/ActionPlan/ActionPlanListApproveService.cs
+++ b/SGGL/BLL/HSSE/ActionPlan/ActionPlanListApproveService.cs
@@ -6,6 +6,12 @@ namespace BLL
{
public class ActionPlanListApproveService
{
+ public static Model.ActionPlan_ActionPlanListApprove GetActionPlanListApproveByActionPlanListApproveId(string ActionPlanListApproveId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ return db.ActionPlan_ActionPlanListApprove.FirstOrDefault(x => x.ActionPlanListApproveId == ActionPlanListApproveId);
+ }
+
public static Model.ActionPlan_ActionPlanListApprove GetSee(string ActionPlanListId, string userId)
{
Model.SGGLDB db = Funs.DB;
@@ -108,6 +114,7 @@ namespace BLL
newApprove.ApproveMan = approve.ApproveMan;
newApprove.ApproveDate = approve.ApproveDate;
newApprove.ApproveIdea = approve.ApproveIdea;
+ newApprove.DepartId = approve.DepartId;
newApprove.IsAgree = approve.IsAgree;
newApprove.ApproveType = approve.ApproveType;
newApprove.Edition = approve.Edition;
@@ -179,6 +186,35 @@ namespace BLL
return res.ToList();
}
+ ///
+ /// 获取安全实施计划模板列表
+ ///
+ ///
+ ///
+ ///
+ public static IList getDepartListData(string ActionPlanListId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ var res = from x in db.ActionPlan_ActionPlanListApprove
+ where x.ActionPlanListId == ActionPlanListId && x.DepartId != null
+ orderby x.ApproveDate
+ select x;
+
+ //select new
+ //{
+ // x.ActionPlanListApproveId,
+ // x.ActionPlanListId,
+ // x.ApproveMan,
+ // x.ApproveDate,
+ // x.IsAgree,
+ // x.ApproveIdea,
+ // x.ApproveType,
+ // x.SignType,
+ // //= x.IsAgree == true ? "是" : "否",
+ //};
+ return res.ToList();
+ }
+
///
/// 获取未代办的记录数量
///
@@ -233,6 +269,22 @@ namespace BLL
db.SubmitChanges();
}
}
+
+ ///
+ /// 根据安全实施计划编号删除对应的所有安全实施计划审批信息
+ ///
+ /// 安全实施计划编号
+ public static void DeleteActionPlanListApprovesByActionPlanListApproveId(string ActionPlanListApproveId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ var q = (from x in Funs.DB.ActionPlan_ActionPlanListApprove where x.ActionPlanListApproveId == ActionPlanListApproveId select x).FirstOrDefault();
+ if (q!=null)
+ {
+ db.ActionPlan_ActionPlanListApprove.DeleteOnSubmit(q);
+ db.SubmitChanges();
+ }
+ }
+
///
/// 根据安全实施计划编号获取一个安全实施计划审批信息
///
@@ -277,6 +329,7 @@ namespace BLL
newApprove.ApproveIdea = approve.ApproveIdea;
newApprove.IsAgree = approve.IsAgree;
newApprove.ApproveType = approve.ApproveType;
+ newApprove.DepartId = approve.DepartId;
newApprove.SignType = approve.SignType;
newApprove.Edition = approve.Edition;
db.ActionPlan_ActionPlanListApprove.InsertOnSubmit(newApprove);
@@ -299,6 +352,7 @@ namespace BLL
newApprove.ApproveMan = approve.ApproveMan;
newApprove.ApproveDate = approve.ApproveDate;
newApprove.ApproveIdea = approve.ApproveIdea;
+ newApprove.DepartId = approve.DepartId;
newApprove.IsAgree = approve.IsAgree;
newApprove.ApproveType = approve.ApproveType;
newApprove.SignType = approve.SignType;
diff --git a/SGGL/BLL/HSSE/ActionPlan/ActionPlanListService.cs b/SGGL/BLL/HSSE/ActionPlan/ActionPlanListService.cs
index d7527ef5..4f59e73b 100644
--- a/SGGL/BLL/HSSE/ActionPlan/ActionPlanListService.cs
+++ b/SGGL/BLL/HSSE/ActionPlan/ActionPlanListService.cs
@@ -143,6 +143,10 @@ namespace BLL
{
return "评审负责人办理";
}
+ else if (state.ToString() == BLL.Const.ActionPlanList_DepartReview)
+ {
+ return "公司部门评审";
+ }
else if (state.ToString() == BLL.Const.ActionPlanList_Complete)
{
return "审批完成";
diff --git a/SGGL/BLL/SysManage/DepartService.cs b/SGGL/BLL/SysManage/DepartService.cs
index 600aff5d..f482d3b3 100644
--- a/SGGL/BLL/SysManage/DepartService.cs
+++ b/SGGL/BLL/SysManage/DepartService.cs
@@ -124,5 +124,24 @@ namespace BLL
}
}
#endregion
+
+ #region 表下拉框
+ ///
+ /// 表下拉框
+ ///
+ /// 下拉框名字
+ /// 是否显示请选择
+ public static void InitDepartNameDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
+ {
+ dropName.DataValueField = "DepartName";
+ dropName.DataTextField = "DepartName";
+ dropName.DataSource = BLL.DepartService.GetDepartList();
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+ #endregion
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt
index e69de29b..9ef62bf2 100644
--- a/SGGL/FineUIPro.Web/ErrLog.txt
+++ b/SGGL/FineUIPro.Web/ErrLog.txt
@@ -0,0 +1,40 @@
+
+错误信息开始=====>
+错误类型:HttpCompileException
+错误信息:e:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\ZHGL\Plan\ActionPlanListEdit.aspx(78): error CS1061: “ASP.zhgl_plan_actionplanlistedit_aspx”不包含“gvDepart_RowCommand”的定义,并且找不到可接受类型为“ASP.zhgl_plan_actionplanlistedit_aspx”的第一个参数的扩展方法“gvDepart_RowCommand”(是否缺少 using 指令或程序集引用?)
+错误堆栈:
+ 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
+ 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
+ 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
+ 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
+ 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+ 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
+ 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
+出错时间:06/19/2023 16:36:07
+出错文件:http://localhost:8667/ZHGL/Plan/ActionPlanListEdit.aspx?actionPlanListId=58122847-39ce-4e36-880d-173df5d1e77e
+IP地址:::1
+
+出错时间:06/19/2023 16:36:08
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.ZHGL.Plan.ActionPlanList.EditData() 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\ZHGL\Plan\ActionPlanList.aspx.cs:行号 188
+ 在 FineUIPro.Web.ZHGL.Plan.ActionPlanList.Grid1_RowDoubleClick(Object sender, GridRowClickEventArgs e) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\ZHGL\Plan\ActionPlanList.aspx.cs:行号 143
+ 在 FineUIPro.Grid.OnRowDoubleClick(GridRowClickEventArgs e)
+ 在 (Grid , GridRowClickEventArgs )
+ 在 FineUIPro.Grid.RaisePostBackEvent(String eventArgument)
+ 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
+ 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:06/20/2023 16:09:03
+出错文件:http://localhost:8667/ZHGL/Plan/ActionPlanList.aspx
+IP地址:::1
+
+出错时间:06/20/2023 16:09:03
+
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 44199c5a..3028b72f 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1590,6 +1590,7 @@
+
@@ -13641,6 +13642,13 @@
ActionPlanListView.aspx
+
+ DepartEdit.aspx
+ ASPXCodeBehind
+
+
+ DepartEdit.aspx
+
MainContract.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/Person/DepartPersonCheck.aspx.cs b/SGGL/FineUIPro.Web/Person/DepartPersonCheck.aspx.cs
index 2a6f2377..78969d2e 100644
--- a/SGGL/FineUIPro.Web/Person/DepartPersonCheck.aspx.cs
+++ b/SGGL/FineUIPro.Web/Person/DepartPersonCheck.aspx.cs
@@ -214,7 +214,12 @@ namespace FineUIPro.Web.Person
startTime = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-1" + "-1");
endTime = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-3" + "-31");
}
- else if (DateTime.Now >= Convert.ToDateTime(DateTime.Now.Year + "-7" + "-1") && DateTime.Now.Date <= Convert.ToDateTime(DateTime.Now.Year + "-9" + "-30"))
+ //else if (DateTime.Now >= Convert.ToDateTime(DateTime.Now.Year + "-7" + "-1") && DateTime.Now.Date <= Convert.ToDateTime(DateTime.Now.Year + "-9" + "-30"))
+ //{
+ // startTime = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-4" + "-1");
+ // endTime = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-6" + "-30");
+ //}
+ else if (DateTime.Now >= Convert.ToDateTime(DateTime.Now.Year + "-6" + "-1") && DateTime.Now.Date <= Convert.ToDateTime(DateTime.Now.Year + "-6" + "-30"))
{
startTime = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-4" + "-1");
endTime = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-6" + "-30");
diff --git a/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx b/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx
index 849b6e8a..3445cdab 100644
--- a/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx
+++ b/SGGL/FineUIPro.Web/ZHGL/Plan/ActionPlanListEdit.aspx
@@ -64,7 +64,7 @@
-
+
@@ -73,6 +73,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+