From 3935d557ef0d0ca014a4d1d110ffb5bb3da20af7 Mon Sep 17 00:00:00 2001 From: geh <1923421292@qq.com> Date: Fri, 26 Dec 2025 14:50:58 +0800 Subject: [PATCH] 1 --- .../ProjectHighlightsSiteService.cs | 1 - .../Project_CQMSDataService.cs | 1 - .../Project_HSSEData_HSSEService.cs | 1 - .../JDGL/SGManPower/SGWarningDetailsEdit.aspx | 21 ++- .../SGManPower/SGWarningDetailsEdit.aspx.cs | 25 +++- .../SGWarningDetailsEdit.aspx.designer.cs | 133 ++++++++++-------- SGGL/FineUIPro.Web/WorkBench.aspx.cs | 22 +-- 7 files changed, 124 insertions(+), 80 deletions(-) diff --git a/SGGL/BLL/CQMS/ProjectHighlightsSite/ProjectHighlightsSiteService.cs b/SGGL/BLL/CQMS/ProjectHighlightsSite/ProjectHighlightsSiteService.cs index 5ddb1f0a..ff005289 100644 --- a/SGGL/BLL/CQMS/ProjectHighlightsSite/ProjectHighlightsSiteService.cs +++ b/SGGL/BLL/CQMS/ProjectHighlightsSite/ProjectHighlightsSiteService.cs @@ -1,5 +1,4 @@ using FineUIPro; -using Microsoft.SqlServer.Dts.Runtime; using Model; using Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_CQMSDataService.cs b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_CQMSDataService.cs index 05341fc6..4f247167 100644 --- a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_CQMSDataService.cs +++ b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_CQMSDataService.cs @@ -7,7 +7,6 @@ using System.Linq; using System.Text; using Model; using Newtonsoft.Json; -using Microsoft.SqlServer.Dts.Runtime; namespace BLL { diff --git a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSEService.cs b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSEService.cs index 4be6d4c5..25dba54a 100644 --- a/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSEService.cs +++ b/SGGL/BLL/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSEService.cs @@ -3,7 +3,6 @@ using System.Collections; using System.Collections.Generic; using System.Linq; using FineUIPro; -using Microsoft.SqlServer.Dts.Runtime; using Model; using Newtonsoft.Json; diff --git a/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx index 084bf104..b9d3953e 100644 --- a/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx +++ b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx @@ -6,6 +6,18 @@ Title +
@@ -66,9 +78,12 @@ - - + + + + + + diff --git a/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.cs b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.cs index 28db7cdb..f54a4bb5 100644 --- a/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.cs @@ -188,6 +188,21 @@ namespace FineUIPro.Web.JDGL.SGManPower var table = this.GetPagedDataTable(Grid1, tb); Grid1.DataSource = table; Grid1.DataBind(); + + // for (int i = 0; i < Grid1.Rows.Count; i++) + // { + // DataRowView dataRow = (DataRowView)Grid1.Rows[i].DataItem; + // if (dataRow != null && dataRow["Bias"] != null) + // { + // if (decimal.TryParse(dataRow["Bias"].ToString(), out decimal bias)) + // { + // if (bias > 0.1m) + // { + // Grid1.Rows[i].RowCssClass = "yellow"; + // } + // } + // } + // } } #endregion @@ -310,6 +325,14 @@ namespace FineUIPro.Web.JDGL.SGManPower #endregion - + // 在页面中添加格式化方法 + protected string ConvertBiasPercent(object biasValue) + { + if (biasValue != null && decimal.TryParse(biasValue.ToString(), out decimal value)) + { + return (value * 100).ToString("F2") + "%"; + } + return "0.00%"; + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.designer.cs index 0ba1832a..4fa3be51 100644 --- a/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/JDGL/SGManPower/SGWarningDetailsEdit.aspx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// <自动生成> +// 此代码由工具生成。 // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// //------------------------------------------------------------------------------ namespace FineUIPro.Web.JDGL.SGManPower @@ -15,173 +15,182 @@ namespace FineUIPro.Web.JDGL.SGManPower { /// - /// form1 control. + /// form1 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; /// - /// PageManager1 control. + /// PageManager1 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; /// - /// Panel1 control. + /// Panel1 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; /// - /// Grid1 control. + /// Grid1 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; /// - /// Toolbar1 control. + /// Toolbar1 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; /// - /// drpUnit control. + /// drpUnit 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpUnit; /// - /// txtStartTime control. + /// txtStartTime 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtStartTime; /// - /// txtEndTime control. + /// txtEndTime 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtEndTime; /// - /// drpUnitWork control. + /// drpUnitWork 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpUnitWork; /// - /// drpWorkPost control. + /// drpWorkPost 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpWorkPost; /// - /// ToolbarFill1 control. + /// ToolbarFill1 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; /// - /// btnQuery control. + /// btnQuery 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnQuery; /// - /// lbUnitName control. + /// lbUnitName 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lbUnitName; /// - /// lbUnitWorkName control. + /// lbUnitWorkName 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lbUnitWorkName; /// - /// lbtfWorkPostName control. + /// lbtfWorkPostName 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lbtfWorkPostName; /// - /// ToolbarSeparator1 control. + /// lbBias 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbBias; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; /// - /// ToolbarText1 control. + /// ToolbarText1 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; /// - /// ddlPageSize control. + /// ddlPageSize 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; /// - /// Menu1 control. + /// Menu1 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; } diff --git a/SGGL/FineUIPro.Web/WorkBench.aspx.cs b/SGGL/FineUIPro.Web/WorkBench.aspx.cs index 23efab53..5cd0360d 100644 --- a/SGGL/FineUIPro.Web/WorkBench.aspx.cs +++ b/SGGL/FineUIPro.Web/WorkBench.aspx.cs @@ -144,17 +144,17 @@ namespace FineUIPro.Web string returnDbHtml = ""; var getDataList = Funs.DB.Sp_WorkBench_GetToDoItems(userId, sType).ToList(); //调人力预警接口 - // if (sType != "2") - // { - // var sgList = SGManPowerService.CheckAndSendPersonWarning(userId); - // if (sgList != null) - // { - // foreach (var item in sgList) - // { - // getDataList.Add(item); - // } - // } - // } + if (sType != "2") + { + var sgList = SGManPowerService.CheckAndSendPersonWarning(userId); + if (sgList != null) + { + foreach (var item in sgList) + { + getDataList.Add(item); + } + } + } //把getDataList和sgList的数据合并 foreach (var item in getDataList) {