提交定制会内容
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
namespace FineUIPro.Web.HSSE.Technique
|
||||
{
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web.UI;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Technique
|
||||
{
|
||||
public partial class Rectify : PageBase
|
||||
{
|
||||
#region 加载页面
|
||||
@@ -38,9 +38,11 @@
|
||||
string strSql = @"SELECT RectifyItem.RectifyItemId,RectifyItem.RectifyId,RectifyItem.HazardSourcePoint,(CASE WHEN LEN(RectifyItem.HazardSourcePoint) > 30 THEN LEFT(RectifyItem.HazardSourcePoint,30) + '...' ELSE RectifyItem.HazardSourcePoint END) AS ShortHazardSourcePoint, "
|
||||
+ @" RectifyItem.RiskAnalysis,(CASE WHEN LEN(RectifyItem.RiskPrevention) > 30 THEN LEFT(RectifyItem.RiskPrevention,30) + '...' ELSE RectifyItem.RiskPrevention END) AS ShortRiskPrevention,RectifyItem.RiskPrevention, "
|
||||
+ @" RectifyItem.SimilarRisk,(CASE WHEN LEN(RectifyItem.SimilarRisk) > 30 THEN LEFT(RectifyItem.SimilarRisk,30) + '...' ELSE RectifyItem.SimilarRisk END) AS ShortSimilarRisk,R.RectifyName,R.RectifyCode,RectifyItem.CompileMan,RectifyItem.CompileDate,"
|
||||
+ @" RectifyItem.AuditMan,RectifyItem.AuditDate,RectifyItem.IsPass"
|
||||
+ @" RectifyItem.AuditMan,RectifyItem.AuditDate,RectifyItem.IsPass,U.UserName AS CompileManName,UR.UserName AS AuditManName"
|
||||
+ @" FROM dbo.Technique_RectifyItem AS RectifyItem"
|
||||
+ @" LEFT JOIN dbo.Technique_Rectify AS R ON R.RectifyId=RectifyItem.RectifyId"
|
||||
+ @" LEFT JOIN dbo.Sys_User AS U ON U.UserId=RectifyItem.CompileMan"
|
||||
+ @" LEFT JOIN dbo.Sys_User AS UR ON U.UserId=RectifyItem.AuditMan"
|
||||
+ @" WHERE RectifyItem.RectifyId=@RectifyId";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>
|
||||
{
|
||||
@@ -96,7 +98,7 @@
|
||||
/// <param name="menuId"></param>
|
||||
private void BoundTree(TreeNodeCollection nodes, string menuId)
|
||||
{
|
||||
var dt = BLL.RectifyService.GetRectifyBySupRectifyId(menuId);
|
||||
var dt = BLL.RectifyService.GetRectifyBySupRectifyId(menuId, "0");
|
||||
if (dt.Count() > 0)
|
||||
{
|
||||
TreeNode tn = null;
|
||||
|
||||
@@ -89,6 +89,7 @@ namespace FineUIPro.Web.HSSE.Technique
|
||||
{
|
||||
Model.Technique_Rectify rectify = new Model.Technique_Rectify
|
||||
{
|
||||
RectifyType = "0",//安全
|
||||
RectifyCode = this.txtRectifyCode.Text.Trim(),
|
||||
RectifyName = this.txtRectifyName.Text.Trim()
|
||||
};
|
||||
@@ -105,7 +106,7 @@ namespace FineUIPro.Web.HSSE.Technique
|
||||
rectify.SupRectifyId = this.SupRectifyId;
|
||||
rectify.RectifyId = SQLHelper.GetNewID(typeof(Model.Technique_Rectify));
|
||||
BLL.RectifyService.AddRectify(rectify);
|
||||
|
||||
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, rectify.RectifyName, rectify.RectifyId, BLL.Const.RectifyMenuId, Const.BtnAdd);
|
||||
}
|
||||
else
|
||||
@@ -117,7 +118,7 @@ namespace FineUIPro.Web.HSSE.Technique
|
||||
}
|
||||
rectify.RectifyId = this.RectifyId;
|
||||
BLL.RectifyService.UpdateRectify(rectify);
|
||||
|
||||
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, rectify.RectifyName, rectify.RectifyId, BLL.Const.RectifyMenuId, Const.BtnModify);
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
|
||||
Reference in New Issue
Block a user