定制版企业安全报表增加内容
This commit is contained in:
@@ -110,6 +110,20 @@
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="txtKeyWorkNum" runat="server" Label="重点工作任务数" LabelWidth="130px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtKeyWorkOKNum" runat="server" Label="重点工作完成数" LabelWidth="130px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtKeyWorkOKRate" runat="server" Label="综合完成率">
|
||||
</f:Label>
|
||||
<f:Label runat="server" ID="Label1">
|
||||
</f:Label>
|
||||
<f:Label runat="server" ID="Label2">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" runat="server"
|
||||
|
||||
@@ -15,6 +15,12 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
string loginform = ConfigurationManager.AppSettings["LoginForm"];
|
||||
if (!string.IsNullOrWhiteSpace(loginform) &&loginform == "Login_ZJ.aspx")
|
||||
{//判断是否是重机客户,如果是重定向页面
|
||||
Response.Redirect("MillionsMonthlyReportZJ.aspx");
|
||||
}
|
||||
|
||||
BLL.ConstValue.InitConstValueDropDownList(this.drpMonth, ConstValue.Group_0009, false);
|
||||
BLL.ConstValue.InitConstValueDropDownList(this.drpYear, ConstValue.Group_0008, false);
|
||||
|
||||
@@ -85,6 +91,18 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
this.lbHandleMan.Hidden = false;
|
||||
lbHandleMan.Text = "下一步办理人:" + report.UserName;
|
||||
}
|
||||
if (report.KeyWorkNum != null)
|
||||
{
|
||||
txtKeyWorkNum.Text = report.KeyWorkNum.ToString();
|
||||
}
|
||||
if (report.KeyWorkOKNum != null)
|
||||
{
|
||||
txtKeyWorkOKNum.Text = report.KeyWorkOKNum.ToString();
|
||||
}
|
||||
if (!string.IsNullOrEmpty(report.KeyWorkOKRate))
|
||||
{
|
||||
txtKeyWorkOKRate.Text = report.KeyWorkOKRate;
|
||||
}
|
||||
lbRecordableIncidentRate.Text = "百万工时总可记录事件率:" + (report.RecordableIncidentRate ?? 0).ToString();
|
||||
lbLostTimeRate.Text = "百万工时损失工时率:" + (report.LostTimeRate ?? 0).ToString();
|
||||
lbLostTimeInjuryRate.Text = "百万工时损失工时伤害事故率:" + (report.LostTimeInjuryRate ?? 0).ToString();
|
||||
|
||||
+45
@@ -300,6 +300,51 @@ namespace FineUIPro.Web.ZHGL.Information {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbAccidentMortality;
|
||||
|
||||
/// <summary>
|
||||
/// txtKeyWorkNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtKeyWorkNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtKeyWorkOKNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtKeyWorkOKNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtKeyWorkOKRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtKeyWorkOKRate;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -185,6 +185,23 @@
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" Title="治本攻坚三年行动" BodyPadding="5px" ID="GroupPanel1" EnableCollapse="True"
|
||||
Collapsed="false">
|
||||
<Items>
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" runat="server">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox runat="server" ID="txtKeyWorkNum" Label="重点工作任务数" NoDecimal="true" LabelWidth="130px" NoNegative="true" Required="true" ShowRedStar="true" AutoPostBack="true" OnTextChanged="txtKeyWorkNum_TextChanged"></f:NumberBox>
|
||||
<f:NumberBox runat="server" ID="txtKeyWorkOKNum" Label="重点工作完成数" NoDecimal="true" LabelWidth="130px" NoNegative="true" Required="true" ShowRedStar="true" AutoPostBack="true" OnTextChanged="txtKeyWorkNum_TextChanged"></f:NumberBox>
|
||||
<f:TextBox ID="txtKeyWorkOKRate" runat="server" Label="综合完成率" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
|
||||
@@ -176,6 +176,18 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
{
|
||||
this.txtSoleDutyNum.Text = Convert.ToString(report.SoleDutyNum);
|
||||
}
|
||||
if (report.KeyWorkNum != null)
|
||||
{
|
||||
this.txtKeyWorkNum.Text = report.KeyWorkNum.ToString();
|
||||
}
|
||||
if (report.KeyWorkOKNum != null)
|
||||
{
|
||||
this.txtKeyWorkOKNum.Text = report.KeyWorkOKNum.ToString();
|
||||
}
|
||||
if (!string.IsNullOrEmpty(report.KeyWorkOKRate))
|
||||
{
|
||||
this.txtKeyWorkOKRate.Text = report.KeyWorkOKRate;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -276,6 +288,9 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
report.NightLicenseNum = Funs.GetNewInt(this.txtNightLicenseNum.Text.Trim());
|
||||
report.CommissionerNum = Funs.GetNewInt(this.txtCommissionerNum.Text.Trim());
|
||||
report.SoleDutyNum = Funs.GetNewInt(this.txtSoleDutyNum.Text.Trim());
|
||||
report.KeyWorkNum = Funs.GetNewIntOrZero(this.txtKeyWorkNum.Text.Trim());
|
||||
report.KeyWorkOKNum = Funs.GetNewIntOrZero(this.txtKeyWorkOKNum.Text.Trim());
|
||||
report.KeyWorkOKRate = this.txtKeyWorkOKRate.Text.Trim();
|
||||
if (String.IsNullOrEmpty(MillionsMonthlyReportId))
|
||||
{
|
||||
Information_MillionsMonthlyReport old = MillionsMonthlyReportService.GetMillionsMonthlyReportByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue), Funs.GetNewIntOrZero(drpMonth.SelectedValue));
|
||||
@@ -1254,5 +1269,17 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void txtKeyWorkNum_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
decimal keyWorkNum = Funs.GetNewDecimalOrZero(this.txtKeyWorkNum.Text.Trim());
|
||||
decimal keyWorkOKNum = Funs.GetNewDecimalOrZero(this.txtKeyWorkOKNum.Text.Trim());
|
||||
string rate = string.Empty;
|
||||
if (keyWorkNum > 0)
|
||||
{
|
||||
rate = (decimal.Round(keyWorkOKNum / keyWorkNum, 4) * 100).ToString("0.##") + "%";
|
||||
}
|
||||
this.txtKeyWorkOKRate.Text = rate;
|
||||
}
|
||||
}
|
||||
}
|
||||
+45
@@ -381,6 +381,51 @@ namespace FineUIPro.Web.ZHGL.Information {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtSoleDutyNum;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// txtKeyWorkNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtKeyWorkNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtKeyWorkOKNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtKeyWorkOKNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtKeyWorkOKRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtKeyWorkOKRate;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user