20230920 HSE管理月报
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1111,8 +1111,8 @@
|
||||
<Content Include="HSSE\Manager\MonthReportCEdit2.aspx" />
|
||||
<Content Include="HSSE\Manager\MonthReportCEdit3.aspx" />
|
||||
<Content Include="HSSE\Manager\MonthReportCEdit4.aspx" />
|
||||
<Content Include="HSSE\Manager\MonthReportCEdit5.aspx" />
|
||||
<Content Include="HSSE\Manager\MonthReportCEdit6.aspx" />
|
||||
<Content Include="HSSE\Manager\MonthReportCEdit5.aspx" />
|
||||
<Content Include="HSSE\Manager\MonthReportCEdit7.aspx" />
|
||||
<Content Include="HSSE\Manager\MonthReportCEdit8.aspx" />
|
||||
<Content Include="HSSE\Manager\MonthReportCEdit9.aspx" />
|
||||
@@ -11942,13 +11942,6 @@
|
||||
<Compile Include="HSSE\Manager\MonthReportCEdit4.aspx.designer.cs">
|
||||
<DependentUpon>MonthReportCEdit4.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\Manager\MonthReportCEdit5.aspx.cs">
|
||||
<DependentUpon>MonthReportCEdit5.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\Manager\MonthReportCEdit5.aspx.designer.cs">
|
||||
<DependentUpon>MonthReportCEdit5.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\Manager\MonthReportCEdit6.aspx.cs">
|
||||
<DependentUpon>MonthReportCEdit6.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11956,6 +11949,13 @@
|
||||
<Compile Include="HSSE\Manager\MonthReportCEdit6.aspx.designer.cs">
|
||||
<DependentUpon>MonthReportCEdit6.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\Manager\MonthReportCEdit5.aspx.cs">
|
||||
<DependentUpon>MonthReportCEdit5.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\Manager\MonthReportCEdit5.aspx.designer.cs">
|
||||
<DependentUpon>MonthReportCEdit5.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\Manager\MonthReportCEdit7.aspx.cs">
|
||||
<DependentUpon>MonthReportCEdit7.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -31,9 +31,9 @@
|
||||
</f:Label>
|
||||
<f:Label ID="lblWorkRange" runat="server" Label="工作范围" LabelWidth="160px">
|
||||
</f:Label>
|
||||
<f:Label ID="lblDuration" runat="server" Label="项目建设工期(月)" LabelWidth="160px">
|
||||
<f:Label ID="lblDuration" runat="server" Label="项目建设合同工期" LabelWidth="160px">
|
||||
</f:Label>
|
||||
<f:Label ID="lblStartDate" runat="server" Label="项目施工计划开工时间" LabelWidth="160px">
|
||||
<f:Label ID="lblStartDate" runat="server" Label="项目施工开工时间" LabelWidth="160px">
|
||||
</f:Label>
|
||||
<f:Label ID="lblEndDate" runat="server" Label="工程中间交接时间" LabelWidth="160px">
|
||||
</f:Label>
|
||||
|
||||
@@ -4,38 +4,38 @@
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<title>10.项目现场HSE影像照片</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel60" Layout="Anchor" Title="10.项目现场影像照片"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:HtmlEditor runat="server" Label="" ID="txtPhotoContents" ShowLabel="false"
|
||||
Editor="UMEditor" BasePath="~/res/umeditor/" ToolbarSet="Full" Height="420" LabelAlign="Right">
|
||||
</f:HtmlEditor>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel60" Layout="Anchor" Title="10.项目现场HSE影像照片(现场HSE防护设施形象、文明施工形象、HSE管理活动等相关照片)"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:HtmlEditor runat="server" Label="" ID="txtPhotoContents" ShowLabel="false"
|
||||
Editor="UMEditor" BasePath="~/res/umeditor/" ToolbarSet="Full" Height="420" LabelAlign="Right">
|
||||
</f:HtmlEditor>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -8,75 +8,87 @@
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel9" Layout="Anchor" Title="2.本月项目现场HSE人力投入情况" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvPersonSort" ShowBorder="true" ShowHeader="false" Title="本月项目现场HSE人力投入情况"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="PersonSortId"
|
||||
DataKeyNames="PersonSortId,UnitId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
Height="420px" EnableColumnLines="true" EnableSummary="true"
|
||||
SummaryPosition="Flow">
|
||||
<Columns>
|
||||
<f:TemplateField Width="250px" HeaderText="单位" HeaderTextAlign="Center" TextAlign="Left"
|
||||
ColumnID="UnitId">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# ConvertUnitName(Eval("UnitId")) %>'
|
||||
ToolTip='<%# ConvertUnitName(Eval("UnitId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="90px" ColumnID="SumPersonNum" DataField="SumPersonNum" FieldType="Int"
|
||||
HeaderText="总人数" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="nbSumPersonNum" NoDecimal="true" NoNegative="true" MinValue="0"
|
||||
runat="server">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="HSEPersonNum" DataField="HSEPersonNum" FieldType="Int"
|
||||
HeaderText="专职HSE管理人员数量" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="nbHSEPersonNum" NoDecimal="true" NoNegative="true" MinValue="0"
|
||||
runat="server">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="ContractRange" DataField="ContractRange" FieldType="String"
|
||||
HeaderText="承包范围" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="txtContractRange">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="Remark" DataField="Remark" FieldType="String"
|
||||
HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="txtRemark">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel9" Layout="Anchor" Title="2.本月项目现场HSE人力投入情况" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvPersonSort" ShowBorder="true" ShowHeader="false" Title="本月项目现场HSE人力投入情况"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="PersonSortId"
|
||||
DataKeyNames="PersonSortId,UnitId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
Height="420px" EnableColumnLines="true" EnableSummary="true"
|
||||
SummaryPosition="Flow">
|
||||
<Columns>
|
||||
<f:TemplateField Width="250px" HeaderText="单位" HeaderTextAlign="Center" TextAlign="Left"
|
||||
ColumnID="UnitId">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# ConvertUnitName(Eval("UnitId")) %>'
|
||||
ToolTip='<%# ConvertUnitName(Eval("UnitId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:GroupField HeaderText="总人数" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="90px" ColumnID="SumPersonNum" DataField="SumPersonNum" FieldType="Int"
|
||||
HeaderText="本部" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="nbSumPersonNum" NoDecimal="true" NoNegative="true" MinValue="0"
|
||||
runat="server">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="SumOutPersonNum" DataField="SumOutPersonNum" FieldType="Int"
|
||||
HeaderText="外聘" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="nbSumOutPersonNum" NoDecimal="true" NoNegative="true" MinValue="0"
|
||||
runat="server">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:RenderField Width="160px" ColumnID="HSEPersonNum" DataField="HSEPersonNum" FieldType="Int"
|
||||
HeaderText="专职HSE管理人员数量" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="nbHSEPersonNum" NoDecimal="true" NoNegative="true" MinValue="0"
|
||||
runat="server">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="ContractRange" DataField="ContractRange" FieldType="String"
|
||||
HeaderText="承包范围" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="txtContractRange">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="Remark" DataField="Remark" FieldType="String"
|
||||
HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="txtRemark">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -86,6 +86,7 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
JObject summary = new JObject();
|
||||
summary.Add("UnitId", "合计:");
|
||||
summary.Add("SumPersonNum", (from x in personSorts select x.SumPersonNum ?? 0).Sum());
|
||||
summary.Add("SumOutPersonNum", (from x in personSorts select x.SumOutPersonNum ?? 0).Sum());
|
||||
summary.Add("HSEPersonNum", (from x in personSorts select x.HSEPersonNum ?? 0).Sum());
|
||||
this.gvPersonSort.SummaryData = summary;
|
||||
}
|
||||
@@ -94,7 +95,7 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
this.gvPersonSort.SummaryData = null;
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
GetPersonSort();
|
||||
}
|
||||
@@ -118,7 +119,8 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
where x.ProjectId == this.ProjectId && (x.UnitType == "1" || x.UnitType == "2")
|
||||
orderby x.UnitType
|
||||
select x; //1为总包,2为施工分包
|
||||
int totalSumPersonNum = 0;
|
||||
int totalSumPersonNum = 0;//总部
|
||||
int totalSumOutPersonNum = 0;//外聘
|
||||
int totalHSEPersonNum = 0;
|
||||
if (units.Count() > 0)
|
||||
{
|
||||
@@ -128,12 +130,14 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
{
|
||||
PersonSortId = SQLHelper.GetNewID(typeof(Model.Manager_PersonSortC)),
|
||||
UnitId = u.UnitId,
|
||||
SumPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId),
|
||||
SumPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId, false),//本部
|
||||
SumOutPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId, true),//外聘
|
||||
HSEPersonNum = BLL.PersonService.GetHSEPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId),
|
||||
ContractRange = u.ContractRange
|
||||
};
|
||||
personSorts.Add(personSort);
|
||||
totalSumPersonNum += Convert.ToInt32(personSort.SumPersonNum);
|
||||
totalSumOutPersonNum += Convert.ToInt32(personSort.SumOutPersonNum);
|
||||
totalHSEPersonNum += Convert.ToInt32(personSort.HSEPersonNum);
|
||||
}
|
||||
}
|
||||
@@ -144,6 +148,7 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
JObject summary = new JObject();
|
||||
summary.Add("UnitId", "合计:");
|
||||
summary.Add("SumPersonNum", totalSumPersonNum);
|
||||
summary.Add("SumOutPersonNum", totalSumOutPersonNum);
|
||||
summary.Add("HSEPersonNum", totalHSEPersonNum);
|
||||
this.gvPersonSort.SummaryData = summary;
|
||||
}
|
||||
@@ -224,6 +229,7 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
MonthReportId = monthReportId,
|
||||
UnitId = this.gvPersonSort.Rows[i].DataKeys[1].ToString(),
|
||||
SumPersonNum = Funs.GetNewIntOrZero(values.Value<string>("SumPersonNum").ToString()),
|
||||
SumOutPersonNum = Funs.GetNewIntOrZero(values.Value<string>("SumOutPersonNum").ToString()),
|
||||
HSEPersonNum = Funs.GetNewIntOrZero(values.Value<string>("HSEPersonNum").ToString()),
|
||||
ContractRange = values.Value<string>("ContractRange").ToString(),
|
||||
Remark = values.Value<string>("Remark").ToString()
|
||||
|
||||
@@ -75,6 +75,15 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSumPersonNum;
|
||||
|
||||
/// <summary>
|
||||
/// nbSumOutPersonNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSumOutPersonNum;
|
||||
|
||||
/// <summary>
|
||||
/// nbHSEPersonNum 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel10" Layout="Anchor" Title="3.本月项目现场HSE人工日统计" runat="server" AutoScroll="true">
|
||||
<f:GroupPanel ID="GroupPanel10" Layout="Anchor" Title="3.本月项目现场HSE工时/工日统计" runat="server" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Grid ID="gvHSEDay" ShowBorder="true" ShowHeader="false" Title="本月项目现场HSE人工日统计"
|
||||
<f:Grid ID="gvHSEDay" ShowBorder="true" ShowHeader="false" Title="本月项目现场HSE工时/工日统计"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="MonthHSEDay" Width="1200px"
|
||||
DataKeyNames="MonthHSEDay" EnableMultiSelect="false" ShowGridHeader="true" Height="320px"
|
||||
EnableColumnLines="true" >
|
||||
@@ -68,9 +68,9 @@
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField EnableLock="true" HeaderText="安全人工时" TextAlign="Center">
|
||||
<f:GroupField EnableLock="true" HeaderText="HSE人工时" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:GroupField EnableLock="true" HeaderText="本月安全人工时" TextAlign="Center">
|
||||
<f:GroupField EnableLock="true" HeaderText="本月HSE人工时" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="100px" ColumnID="HseManhours" DataField="HseManhours" FieldType="Int"
|
||||
HeaderText="五环" HeaderTextAlign="Center" TextAlign="Left">
|
||||
@@ -90,7 +90,7 @@
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:RenderField Width="155px" ColumnID="TotalHseManhours" DataField="TotalHseManhours"
|
||||
ExpandUnusedSpace="true" FieldType="Int" HeaderText="累计安全人工时" HeaderTextAlign="Center"
|
||||
ExpandUnusedSpace="true" FieldType="Int" HeaderText="累计HSE人工时" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="nbTotalHseManhours" NoDecimal="true" NoNegative="true" MinValue="0"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+20
-776
@@ -48,33 +48,6 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel11;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel12;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// txtMainActivitiesDef 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtMainActivitiesDef;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel1 控件。
|
||||
/// </summary>
|
||||
@@ -84,87 +57,6 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// gvHazardSort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvHazardSort;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewHazardSort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewHazardSort;
|
||||
|
||||
/// <summary>
|
||||
/// txtHazardName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHazardName;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitAndArea 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitAndArea;
|
||||
|
||||
/// <summary>
|
||||
/// txtStationDef 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtStationDef;
|
||||
|
||||
/// <summary>
|
||||
/// txtHandleWay 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHandleWay;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel2;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel3;
|
||||
|
||||
/// <summary>
|
||||
/// gvTrainSort 控件。
|
||||
/// </summary>
|
||||
@@ -175,31 +67,13 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.Grid gvTrainSort;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// txtTrainType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewTrainSort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewTrainSort;
|
||||
|
||||
/// <summary>
|
||||
/// txtTrainContent 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTrainContent;
|
||||
protected global::FineUIPro.TextBox txtTrainType;
|
||||
|
||||
/// <summary>
|
||||
/// nbTeachHour 控件。
|
||||
@@ -210,15 +84,6 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbTeachHour;
|
||||
|
||||
/// <summary>
|
||||
/// txtTeachMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTeachMan;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox4 控件。
|
||||
/// </summary>
|
||||
@@ -238,85 +103,22 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.NumberBox nbPersonNum;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel4 控件。
|
||||
/// NumberBox1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel4;
|
||||
protected global::FineUIPro.NumberBox NumberBox1;
|
||||
|
||||
/// <summary>
|
||||
/// gvTrainActivitySort 控件。
|
||||
/// GroupPanel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvTrainActivitySort;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar4;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewTrainActivitySort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewTrainActivitySort;
|
||||
|
||||
/// <summary>
|
||||
/// txtActivityName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtActivityName;
|
||||
|
||||
/// <summary>
|
||||
/// txtTrainDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTrainDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtTrainEffect 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTrainEffect;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel5;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel6;
|
||||
protected global::FineUIPro.GroupPanel GroupPanel2;
|
||||
|
||||
/// <summary>
|
||||
/// gvCheckSort 控件。
|
||||
@@ -408,213 +210,6 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lb111;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel7;
|
||||
|
||||
/// <summary>
|
||||
/// gvCheckDetailSort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvCheckDetailSort;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar6;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewCheckDetailSort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewCheckDetailSort;
|
||||
|
||||
/// <summary>
|
||||
/// checktype 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox checktype;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckTime;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox3;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox1;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel8;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel15 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel15;
|
||||
|
||||
/// <summary>
|
||||
/// Form3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form3;
|
||||
|
||||
/// <summary>
|
||||
/// txtMeetingNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMeetingNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtYearMeetingNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtYearMeetingNum;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel16 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel16;
|
||||
|
||||
/// <summary>
|
||||
/// gvMeetingSort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvMeetingSort;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar7;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewMeetingSort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewMeetingSort;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox2;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox1;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox5;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox6;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox7;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox8;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel20 控件。
|
||||
/// </summary>
|
||||
@@ -634,157 +229,13 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.GroupPanel GroupPanel21;
|
||||
|
||||
/// <summary>
|
||||
/// Form5 控件。
|
||||
/// txtWorkDef 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form5;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// Label4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label4;
|
||||
|
||||
/// <summary>
|
||||
/// Label5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label5;
|
||||
|
||||
/// <summary>
|
||||
/// txtComplexEmergencyNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtComplexEmergencyNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtYearComplexEmergencyNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtYearComplexEmergencyNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtTotalComplexEmergencyNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtTotalComplexEmergencyNum;
|
||||
|
||||
/// <summary>
|
||||
/// Label6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label6;
|
||||
|
||||
/// <summary>
|
||||
/// txtSpecialEmergencyNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtSpecialEmergencyNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtYearSpecialEmergencyNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtYearSpecialEmergencyNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtTotalSpecialEmergencyNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtTotalSpecialEmergencyNum;
|
||||
|
||||
/// <summary>
|
||||
/// Label7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label7;
|
||||
|
||||
/// <summary>
|
||||
/// txtDrillRecordNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtDrillRecordNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtYearDrillRecordNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtYearDrillRecordNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtTotalDrillRecordNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtTotalDrillRecordNum;
|
||||
protected global::FineUIPro.TextArea txtWorkDef;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel22 控件。
|
||||
@@ -804,33 +255,6 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtEmergencyManagementWorkDef;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel24 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel24;
|
||||
|
||||
/// <summary>
|
||||
/// txtLicenseRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtLicenseRemark;
|
||||
|
||||
/// <summary>
|
||||
/// txtEquipmentRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtEquipmentRemark;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel27 控件。
|
||||
/// </summary>
|
||||
@@ -841,175 +265,31 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.GroupPanel GroupPanel27;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel28 控件。
|
||||
/// gvRewardSortAndPunish 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel28;
|
||||
protected global::FineUIPro.Grid gvRewardSortAndPunish;
|
||||
|
||||
/// <summary>
|
||||
/// gvRewardSort 控件。
|
||||
/// NumberBox5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvRewardSort;
|
||||
protected global::FineUIPro.NumberBox NumberBox5;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar11 控件。
|
||||
/// NumberBox4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar11;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewRewardSort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewRewardSort;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox21 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox21;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox22 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox22;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox23 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox23;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox2;
|
||||
|
||||
/// <summary>
|
||||
/// Form7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form7;
|
||||
|
||||
/// <summary>
|
||||
/// txtRewardNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtRewardNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtYearRewardNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtYearRewardNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtRewardMoney 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtRewardMoney;
|
||||
|
||||
/// <summary>
|
||||
/// txtYearRewardMoney 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtYearRewardMoney;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel29 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel29;
|
||||
|
||||
/// <summary>
|
||||
/// gvPunishSort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvPunishSort;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar12;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewPunishSort 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewPunishSort;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox24 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox24;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox26 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox26;
|
||||
protected global::FineUIPro.NumberBox NumberBox4;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox3 控件。
|
||||
@@ -1021,67 +301,31 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.NumberBox NumberBox3;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox27 控件。
|
||||
/// NumberBox2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox27;
|
||||
protected global::FineUIPro.NumberBox NumberBox2;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox28 控件。
|
||||
/// NumberBox6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox28;
|
||||
protected global::FineUIPro.NumberBox NumberBox6;
|
||||
|
||||
/// <summary>
|
||||
/// Form8 控件。
|
||||
/// NumberBox7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form8;
|
||||
|
||||
/// <summary>
|
||||
/// txtPunishNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtPunishNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtYearPunishNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtYearPunishNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtPunishMoney 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtPunishMoney;
|
||||
|
||||
/// <summary>
|
||||
/// txtYearPunishMoney 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtYearPunishMoney;
|
||||
protected global::FineUIPro.NumberBox NumberBox7;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel33 控件。
|
||||
|
||||
@@ -1,127 +1,134 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MonthReportCEdit5.aspx.cs"
|
||||
Inherits="FineUIPro.Web.HSSE.Manager.MonthReportCEdit5" %>
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MonthReportCEdit5.aspx.cs" Inherits="FineUIPro.Web.HSSE.Manager.MonthReportCEdit5" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<title>本月项目HSE费用管理</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel34" Layout="Anchor" Title="5.本月项目HSE内业管理" runat="server">
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel37" Layout="Anchor" Title="5.1 本月文件、方案修编情况说明(修编文件、方案名称,修编基本情况等)"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvMonthPlan" ShowBorder="true" ShowHeader="false" Title="本月文件、方案修编情况说明"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="PlanId"
|
||||
DataKeyNames="PlanId" EnableMultiSelect="false" ShowGridHeader="true" Height="220px"
|
||||
EnableColumnLines="true" OnRowCommand="gvMonthPlan_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar15" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNewMonthPlan" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNewMonthPlan_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="300px" ColumnID="PlanName" DataField="PlanName" FieldType="String"
|
||||
HeaderText="本月修编的方案/文件名称" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox36">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="CompileMan" DataField="CompileMan" FieldType="String"
|
||||
HeaderText="修编人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox37">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="CompileDate" DataField="CompileDate" FieldType="String"
|
||||
HeaderText="发布时间" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox38">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel38" Layout="Anchor" Title="5.2 HSE资质、方案审查记录" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvReviewRecord" ShowBorder="true" ShowHeader="false" Title="详细审查记录" runat="server"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="ReviewRecordId" DataKeyNames="ReviewRecordId"
|
||||
EnableMultiSelect="false" ShowGridHeader="true" Height="220px" EnableColumnLines="true"
|
||||
OnRowCommand="gvReviewRecord_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar16" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNewReviewRecord" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNewReviewRecord_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="300px" ColumnID="ReviewRecordName" DataField="ReviewRecordName"
|
||||
FieldType="String" HeaderText="本月审查方案、资质文件名称" HeaderTextAlign="Center" TextAlign="Left"
|
||||
ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox39">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="ReviewMan" DataField="ReviewMan" FieldType="String"
|
||||
HeaderText="审查人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox40">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="ReviewDate" DataField="ReviewDate" FieldType="String"
|
||||
HeaderText="审查时间" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox41">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel1" Layout="Anchor" Title="5.本月项目HSE费用管理" runat="server">
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel2" Layout="Anchor" Title="5.1 本月项目HSE费用投入统计(单位:万元)" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvFiveExpenseC" ShowBorder="true" ShowHeader="false" Title="本月项目HSE费用投入统计" runat="server"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="FiveExpenseId" DataKeyNames="FiveExpenseId"
|
||||
EnableMultiSelect="false" ShowGridHeader="true" Height="380px" EnableColumnLines="true" EnableSummary="true" SummaryPosition="Flow">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="150px" ColumnID="InvestmentProject" DataField="InvestmentProject" FieldType="String"
|
||||
HeaderText="投入项目" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="txtCheckType">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:GroupField HeaderText="五环工程" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="150px" ColumnID="PlanCostMonth" DataField="PlanCostMonth" FieldType="String"
|
||||
HeaderText="本月" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox1">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="PlanCostYear" DataField="PlanCostYear" FieldType="String"
|
||||
HeaderText="项目累计" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox2">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField HeaderText="施工分包商" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="150px" ColumnID="ActualCostMonth" DataField="ActualCostMonth" FieldType="String"
|
||||
HeaderText="本月" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox3">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="ActualCostYear" DataField="ActualCostYear" FieldType="String"
|
||||
HeaderText="项目累计" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox4">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel27" Layout="Anchor" Title="5.2 本月项目分包商HSE费用支付统计(单位:万元)" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvSubExpenseC" ShowBorder="true" ShowHeader="false" Title="本月项目分包商HSE费用支付统计"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="SubExpenseId"
|
||||
DataKeyNames="SubExpenseId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
Height="300px" EnableColumnLines="true" EnableSummary="true" SummaryPosition="Flow">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="260px" ColumnID="SubUnit" DataField="SubUnit" FieldType="String"
|
||||
HeaderText="单位名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox5">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="ContractAmount" DataField="ContractAmount" FieldType="String"
|
||||
HeaderText="HSE措施费合同额" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox4" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="MonthApprovalAmount" DataField="MonthApprovalAmount" FieldType="String"
|
||||
HeaderText="本月审批金额" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox3" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="ProjectApprovalAmount" DataField="ProjectApprovalAmount"
|
||||
FieldType="String" HeaderText="项目累计审批金额" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox2" NoDecimal="true" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Manager
|
||||
{
|
||||
@@ -15,7 +13,7 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
/// <summary>
|
||||
/// 月报告查主键
|
||||
/// </summary>
|
||||
public string MonthReportId
|
||||
public string newKeyID
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -52,19 +50,14 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
|
||||
#region 定义集合
|
||||
/// <summary>
|
||||
/// 5.1.2 本月文件、方案修编情况说明集合
|
||||
/// 6.1 五环HSE费用投入集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_PlanC> plans = new List<Model.Manager_Month_PlanC>();
|
||||
private static List<Model.Manager_Month_FiveExpenseC> fiveExpenses = new List<Model.Manager_Month_FiveExpenseC>();
|
||||
|
||||
/// <summary>
|
||||
/// 5.2.2 详细审查记录集合
|
||||
/// 6.2 分包商HSE费用投入集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_ReviewRecordC> reviewRecords = new List<Model.Manager_Month_ReviewRecordC>();
|
||||
|
||||
/// <summary>
|
||||
/// 5.3 HSSE文件管理集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_FileManageC> fileManages = new List<Model.Manager_Month_FileManageC>();
|
||||
private static List<Model.Manager_Month_SubExpenseC> subExpenses = new List<Model.Manager_Month_SubExpenseC>();
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -75,10 +68,9 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
plans.Clear();
|
||||
reviewRecords.Clear();
|
||||
fileManages.Clear();
|
||||
this.MonthReportId = Request.Params["monthReportId"];
|
||||
fiveExpenses.Clear();
|
||||
subExpenses.Clear();
|
||||
this.newKeyID = Request.Params["monthReportId"];
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
DateTime months = Convert.ToDateTime(Request.Params["months"]);
|
||||
startTime = Convert.ToDateTime(Request.Params["startTime"]);
|
||||
@@ -93,408 +85,320 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
}
|
||||
if (monthReport != null)
|
||||
{
|
||||
this.MonthReportId = monthReport.MonthReportId;
|
||||
this.newKeyID = monthReport.MonthReportId;
|
||||
this.ProjectId = monthReport.ProjectId;
|
||||
months = Convert.ToDateTime(monthReport.Months);
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
//5.1.2 本月文件、方案修编情况说明
|
||||
plans = (from x in db.Manager_Month_PlanC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList();
|
||||
if (plans.Count > 0)
|
||||
|
||||
fiveExpenses = BLL.FiveExpenseCService.GetFiveExpenseByMonthReportId(this.newKeyID);
|
||||
if (fiveExpenses.Count > 0)
|
||||
{
|
||||
this.gvMonthPlan.DataSource = plans;
|
||||
this.gvMonthPlan.DataBind();
|
||||
this.gvFiveExpenseC.DataSource = fiveExpenses;
|
||||
this.gvFiveExpenseC.DataBind();
|
||||
OutputSummaryData();
|
||||
}
|
||||
else
|
||||
{
|
||||
GetPlanSort();
|
||||
GetFiveExpenseList();
|
||||
}
|
||||
//5.2.2 详细审查记录
|
||||
reviewRecords = (from x in db.Manager_Month_ReviewRecordC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList();
|
||||
if (reviewRecords.Count > 0)
|
||||
|
||||
subExpenses = BLL.SubExpenseCService.GetSubExpenseByMonthReportId(this.newKeyID);
|
||||
if (subExpenses.Count>0)
|
||||
{
|
||||
this.gvReviewRecord.DataSource = reviewRecords;
|
||||
this.gvReviewRecord.DataBind();
|
||||
this.gvSubExpenseC.DataSource = subExpenses;
|
||||
this.gvSubExpenseC.DataBind();
|
||||
OutputSubSummaryData();
|
||||
}
|
||||
else
|
||||
{
|
||||
GetReviewRecordSort();
|
||||
GetSubExpenseList();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//施工HSE实施计划数量
|
||||
//List<Model.ActionPlan_ActionPlanList> actionPlans = BLL.ActionPlanListService.GetActionPlanListsByDate(startTime, endTime, this.ProjectId);
|
||||
//int actionPlanNum = actionPlans.Count;
|
||||
////HSE管理规定数量
|
||||
//List<Model.ActionPlan_ManagerRule> hSERules = BLL.ActionPlan_ManagerRuleService.GetManagerRuleListsByDate(startTime, endTime, this.ProjectId);
|
||||
//int hSERuleNum = hSERules.Count;
|
||||
//int constructSolutionNum = BLL.ConstructSolutionService.GetConstructSolutionCountByDate(this.ProjectId, startTime, endTime);
|
||||
//int subUnitQualityAuditDetailNum = BLL.SubUnitQualityAuditDetailService.GetCountByDate(this.ProjectId, startTime, endTime);
|
||||
//int equipmentQualityAuditDetailNum = BLL.EquipmentQualityAuditDetailService.GetCountByDate(this.ProjectId, startTime, endTime);
|
||||
//int personQualityAuditDetailNum = BLL.PersonQualityService.GetCountByDate(this.ProjectId, startTime, endTime);
|
||||
//int generalEquipmentQualityNum = BLL.GeneralEquipmentQualityService.GetSumCountByDate(this.ProjectId, startTime, endTime);
|
||||
GetPlanSort();
|
||||
GetReviewRecordSort();
|
||||
GetFiveExpenseList(); //费用投入
|
||||
GetSubExpenseList(); //本月项目分包商HSE费用支付统计
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HSE管理文件、方案修编
|
||||
#region 本月项目分包商HSE费用支付统计
|
||||
/// <summary>
|
||||
/// 显示本月文件、方案修编情况说明
|
||||
/// 费用投入
|
||||
/// </summary>
|
||||
private void GetPlanSort()
|
||||
private void GetFiveExpenseList()
|
||||
{
|
||||
List<Model.ActionPlan_ActionPlanList> actionList = BLL.ActionPlanListService.GetActionPlanListsByDate(startTime, endTime, this.ProjectId);
|
||||
//施工计划
|
||||
if (actionList.Count > 0)
|
||||
#region 五环(本月)
|
||||
decimal? sMonthType1 = 0, sMonthType2 = 0, sMonthType3 = 0, sMonthType4 = 0, sMonthType5 = 0, sMonthType6 = 0;
|
||||
decimal? tMonthType1 = 0;
|
||||
List<Model.CostGoods_PayRegistration> payRegistrations = BLL.PayRegistrationService.GetPayRegistrationByPayDate(startTime, endTime, this.ProjectId, BLL.Const.UnitId_CWCEC);
|
||||
if (payRegistrations != null)
|
||||
{
|
||||
foreach (Model.ActionPlan_ActionPlanList item in actionList)
|
||||
foreach (var item in payRegistrations)
|
||||
{
|
||||
Model.Manager_Month_PlanC plan = new Model.Manager_Month_PlanC
|
||||
{
|
||||
PlanId = item.ActionPlanListId,
|
||||
PlanName = item.ActionPlanListName
|
||||
};
|
||||
List<Model.Sys_User> userSelect = (from x in Funs.DB.Sys_User
|
||||
join y in Funs.DB.Sys_FlowOperate
|
||||
on x.UserId equals y.OperaterId
|
||||
join z in Funs.DB.Project_ProjectUser
|
||||
on y.OperaterId equals z.UserId
|
||||
where (z.RoleId.Contains(BLL.Const.HSSEEngineer) || z.RoleId.Contains(BLL.Const.HSSEManager)) && y.MenuId == BLL.Const.ProjectActionPlanListMenuId && y.DataId == item.ActionPlanListId
|
||||
select x).Distinct().ToList();
|
||||
if (userSelect.Count() > 0)
|
||||
{
|
||||
List<Model.Sys_User> users = userSelect.Distinct().ToList();
|
||||
string names = string.Empty;
|
||||
foreach (var user in users)
|
||||
{
|
||||
names += user.UserName + ",";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(names))
|
||||
{
|
||||
names = names.Substring(0, names.LastIndexOf(","));
|
||||
}
|
||||
plan.CompileMan = names;
|
||||
}
|
||||
if (item.CompileDate != null)
|
||||
{
|
||||
plan.CompileDate = string.Format("{0:yyyy-MM-dd}", item.CompileDate);
|
||||
}
|
||||
plans.Add(plan);
|
||||
sMonthType1 += item.SMonthType1_1 + item.SMonthType1_2 + item.SMonthType1_3 + item.SMonthType1_4 + item.SMonthType1_5 + item.SMonthType1_6 + item.SMonthType1_7 + item.SMonthType1_8 + item.SMonthType1_9 + item.SMonthType1_10 + item.SMonthType1_11 + item.SMonthType1_12 + item.SMonthType1_13 + item.SMonthType1_14 + item.SMonthType1_15 + item.SMonthType1_16;
|
||||
sMonthType2 += item.SMonthType2_1 + item.SMonthType2_2 + item.SMonthType2_3 + item.SMonthType2_4;
|
||||
sMonthType3 += item.SMonthType3_1 + item.SMonthType3_2 + item.SMonthType3_3 + item.SMonthType3_4 + item.SMonthType3_5 + item.SMonthType3_6;
|
||||
sMonthType4 += item.SMonthType4_1 + item.SMonthType4_2 + item.SMonthType4_3 + item.SMonthType4_4 + item.SMonthType4_5 + item.SMonthType4_6 + item.SMonthType4_7 + item.SMonthType4_8 + item.SMonthType4_9 + item.SMonthType4_10 + item.SMonthType4_11 + item.SMonthType4_12 + item.SMonthType4_13 + item.SMonthType4_14 + item.SMonthType4_15 + item.SMonthType4_16 + item.SMonthType4_17 + item.SMonthType4_18 + item.SMonthType4_19 + item.SMonthType4_20 + item.SMonthType4_21 + item.SMonthType4_22 + item.SMonthType4_23 + item.SMonthType4_24 + item.SMonthType4_25 + item.SMonthType4_26 + item.SMonthType4_27 + item.SMonthType4_28 + item.SMonthType4_29 + item.SMonthType4_30 + item.SMonthType4_31 + item.SMonthType4_32 + item.SMonthType4_33 + item.SMonthType4_34 + item.SMonthType4_35 + item.SMonthType4_35 + item.SMonthType4_36 + item.SMonthType4_37 + item.SMonthType4_38 + item.SMonthType4_39 + item.SMonthType4_40;
|
||||
sMonthType5 += item.SMonthType5_1 + item.SMonthType5_2 + item.SMonthType5_3 + item.SMonthType5_4 + item.SMonthType5_5 + item.SMonthType5_6;
|
||||
sMonthType6 += item.SMonthType6_1 + item.SMonthType6_2 + item.SMonthType6_3;
|
||||
tMonthType1 += item.TMonthType1_1 + item.TMonthType1_2 + item.TMonthType1_3 + item.TMonthType1_4 + item.TMonthType1_5 + item.TMonthType1_6 + item.TMonthType1_7 + item.TMonthType1_8 + item.TMonthType1_9 + item.TMonthType1_10 + item.TMonthType1_11;
|
||||
}
|
||||
}
|
||||
//管理规定
|
||||
List<Model.ActionPlan_ManagerRule> hseRuleList = BLL.ActionPlan_ManagerRuleService.GetManagerRuleListsByDate(startTime, endTime, this.ProjectId);
|
||||
if (hseRuleList.Count > 0)
|
||||
{
|
||||
foreach (Model.ActionPlan_ManagerRule rule in hseRuleList)
|
||||
{
|
||||
Model.Manager_Month_PlanC plan = new Model.Manager_Month_PlanC
|
||||
{
|
||||
PlanId = rule.ManagerRuleId,
|
||||
PlanName = rule.ManageRuleName
|
||||
};
|
||||
List<Model.Sys_User> users = (from x in Funs.DB.Sys_User
|
||||
join y in Funs.DB.Sys_FlowOperate
|
||||
on x.UserId equals y.OperaterId
|
||||
join z in Funs.DB.Project_ProjectUser
|
||||
on y.OperaterId equals z.UserId
|
||||
where (z.RoleId.Contains(BLL.Const.HSSEEngineer) || z.RoleId.Contains(BLL.Const.HSSEManager)) && y.MenuId == BLL.Const.ActionPlan_ManagerRuleMenuId && y.DataId == rule.ManagerRuleId
|
||||
select x).Distinct().ToList();
|
||||
if (users.Count() > 0)
|
||||
{
|
||||
string names = string.Empty;
|
||||
foreach (var user in users)
|
||||
{
|
||||
names += user.UserName + ",";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(names))
|
||||
{
|
||||
names = names.Substring(0, names.LastIndexOf(","));
|
||||
}
|
||||
plan.CompileMan = names;
|
||||
}
|
||||
if (rule.CompileDate != null)
|
||||
{
|
||||
plan.CompileDate = string.Format("{0:yyyy-MM-dd}", rule.CompileDate);
|
||||
}
|
||||
plans.Add(plan);
|
||||
}
|
||||
}
|
||||
this.gvMonthPlan.DataSource = plans;
|
||||
this.gvMonthPlan.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 增加本月文件、方案修编情况说明
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewMonthPlan_Click(object sender, EventArgs e)
|
||||
{
|
||||
jerqueSaveMonthPlanList();
|
||||
Model.Manager_Month_PlanC monthPlanSort = new Model.Manager_Month_PlanC
|
||||
#region 五环(项目)
|
||||
decimal? sProjectType1 = 0, sProjectType2 = 0, sProjectType3 = 0, sProjectType4 = 0, sProjectType5 = 0, sProjectType6 = 0;
|
||||
decimal? tProjectType1 = 0;
|
||||
List<Model.CostGoods_PayRegistration> payRegistrationsPro = BLL.PayRegistrationService.GetPayRegistrationByPayDate(projectStartTime, endTime, this.ProjectId, BLL.Const.UnitId_CWCEC);
|
||||
if (payRegistrationsPro != null)
|
||||
{
|
||||
PlanId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PlanC))
|
||||
foreach (var item in payRegistrationsPro)
|
||||
{
|
||||
sProjectType1 += item.SMonthType1_1 + item.SMonthType1_2 + item.SMonthType1_3 + item.SMonthType1_4 + item.SMonthType1_5 + item.SMonthType1_6 + item.SMonthType1_7 + item.SMonthType1_8 + item.SMonthType1_9 + item.SMonthType1_10 + item.SMonthType1_11 + item.SMonthType1_12 + item.SMonthType1_13 + item.SMonthType1_14 + item.SMonthType1_15 + item.SMonthType1_16;
|
||||
sProjectType2 += item.SMonthType2_1 + item.SMonthType2_2 + item.SMonthType2_3 + item.SMonthType2_4;
|
||||
sProjectType3 += item.SMonthType3_1 + item.SMonthType3_2 + item.SMonthType3_3 + item.SMonthType3_4 + item.SMonthType3_5 + item.SMonthType3_6;
|
||||
sProjectType4 += item.SMonthType4_1 + item.SMonthType4_2 + item.SMonthType4_3 + item.SMonthType4_4 + item.SMonthType4_5 + item.SMonthType4_6 + item.SMonthType4_7 + item.SMonthType4_8 + item.SMonthType4_9 + item.SMonthType4_10 + item.SMonthType4_11 + item.SMonthType4_12 + item.SMonthType4_13 + item.SMonthType4_14 + item.SMonthType4_15 + item.SMonthType4_16 + item.SMonthType4_17 + item.SMonthType4_18 + item.SMonthType4_19 + item.SMonthType4_20 + item.SMonthType4_21 + item.SMonthType4_22 + item.SMonthType4_23 + item.SMonthType4_24 + item.SMonthType4_25 + item.SMonthType4_26 + item.SMonthType4_27 + item.SMonthType4_28 + item.SMonthType4_29 + item.SMonthType4_30 + item.SMonthType4_31 + item.SMonthType4_32 + item.SMonthType4_33 + item.SMonthType4_34 + item.SMonthType4_35 + item.SMonthType4_35 + item.SMonthType4_36 + item.SMonthType4_37 + item.SMonthType4_38 + item.SMonthType4_39 + item.SMonthType4_40;
|
||||
sProjectType5 += item.SMonthType5_1 + item.SMonthType5_2 + item.SMonthType5_3 + item.SMonthType5_4 + item.SMonthType5_5 + item.SMonthType5_6;
|
||||
sProjectType6 += item.SMonthType6_1 + item.SMonthType6_2 + item.SMonthType6_3;
|
||||
tProjectType1 += item.TMonthType1_1 + item.TMonthType1_2 + item.TMonthType1_3 + item.TMonthType1_4 + item.TMonthType1_5 + item.TMonthType1_6 + item.TMonthType1_7 + item.TMonthType1_8 + item.TMonthType1_9 + item.TMonthType1_10 + item.TMonthType1_11;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 施工分包(本月)
|
||||
decimal? sConMonthType1 = 0, sConMonthType2 = 0, sConMonthType3 = 0, sConMonthType4 = 0, sConMonthType5 = 0, sConMonthType6 = 0;
|
||||
decimal? tConMonthType1 = 0;
|
||||
List<Model.CostGoods_PayRegistration> payRegistrationsConMonth = BLL.PayRegistrationService.GetConPayRegistrationByPayDate(startTime, endTime, this.ProjectId);
|
||||
if (payRegistrationsConMonth != null)
|
||||
{
|
||||
foreach (var item in payRegistrationsConMonth)
|
||||
{
|
||||
sConMonthType1 += item.SMonthType1_1 + item.SMonthType1_2 + item.SMonthType1_3 + item.SMonthType1_4 + item.SMonthType1_5 + item.SMonthType1_6 + item.SMonthType1_7 + item.SMonthType1_8 + item.SMonthType1_9 + item.SMonthType1_10 + item.SMonthType1_11 + item.SMonthType1_12 + item.SMonthType1_13 + item.SMonthType1_14 + item.SMonthType1_15 + item.SMonthType1_16;
|
||||
sConMonthType2 += item.SMonthType2_1 + item.SMonthType2_2 + item.SMonthType2_3 + item.SMonthType2_4;
|
||||
sConMonthType3 += item.SMonthType3_1 + item.SMonthType3_2 + item.SMonthType3_3 + item.SMonthType3_4 + item.SMonthType3_5 + item.SMonthType3_6;
|
||||
sConMonthType4 += item.SMonthType4_1 + item.SMonthType4_2 + item.SMonthType4_3 + item.SMonthType4_4 + item.SMonthType4_5 + item.SMonthType4_6 + item.SMonthType4_7 + item.SMonthType4_8 + item.SMonthType4_9 + item.SMonthType4_10 + item.SMonthType4_11 + item.SMonthType4_12 + item.SMonthType4_13 + item.SMonthType4_14 + item.SMonthType4_15 + item.SMonthType4_16 + item.SMonthType4_17 + item.SMonthType4_18 + item.SMonthType4_19 + item.SMonthType4_20 + item.SMonthType4_21 + item.SMonthType4_22 + item.SMonthType4_23 + item.SMonthType4_24 + item.SMonthType4_25 + item.SMonthType4_26 + item.SMonthType4_27 + item.SMonthType4_28 + item.SMonthType4_29 + item.SMonthType4_30 + item.SMonthType4_31 + item.SMonthType4_32 + item.SMonthType4_33 + item.SMonthType4_34 + item.SMonthType4_35 + item.SMonthType4_35 + item.SMonthType4_36 + item.SMonthType4_37 + item.SMonthType4_38 + item.SMonthType4_39 + item.SMonthType4_40;
|
||||
sConMonthType5 += item.SMonthType5_1 + item.SMonthType5_2 + item.SMonthType5_3 + item.SMonthType5_4 + item.SMonthType5_5 + item.SMonthType5_6;
|
||||
sConMonthType6 += item.SMonthType6_1 + item.SMonthType6_2 + item.SMonthType6_3;
|
||||
tConMonthType1 += item.TMonthType1_1 + item.TMonthType1_2 + item.TMonthType1_3 + item.TMonthType1_4 + item.TMonthType1_5 + item.TMonthType1_6 + item.TMonthType1_7 + item.TMonthType1_8 + item.TMonthType1_9 + item.TMonthType1_10 + item.TMonthType1_11;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 施工分包(项目)
|
||||
decimal? sConProjectType1 = 0, sConProjectType2 = 0, sConProjectType3 = 0, sConProjectType4 = 0, sConProjectType5 = 0, sConProjectType6 = 0;
|
||||
decimal? tConProjectType1 = 0;
|
||||
List<Model.CostGoods_PayRegistration> payRegistrationsConPro = BLL.PayRegistrationService.GetConPayRegistrationByPayDate(projectStartTime, endTime, this.ProjectId);
|
||||
if (payRegistrationsConPro != null)
|
||||
{
|
||||
foreach (var item in payRegistrationsConPro)
|
||||
{
|
||||
sConProjectType1 += item.SMonthType1_1 + item.SMonthType1_2 + item.SMonthType1_3 + item.SMonthType1_4 + item.SMonthType1_5 + item.SMonthType1_6 + item.SMonthType1_7 + item.SMonthType1_8 + item.SMonthType1_9 + item.SMonthType1_10 + item.SMonthType1_11 + item.SMonthType1_12 + item.SMonthType1_13 + item.SMonthType1_14 + item.SMonthType1_15 + item.SMonthType1_16;
|
||||
sConProjectType2 += item.SMonthType2_1 + item.SMonthType2_2 + item.SMonthType2_3 + item.SMonthType2_4;
|
||||
sConProjectType3 += item.SMonthType3_1 + item.SMonthType3_2 + item.SMonthType3_3 + item.SMonthType3_4 + item.SMonthType3_5 + item.SMonthType3_6;
|
||||
sConProjectType4 += item.SMonthType4_1 + item.SMonthType4_2 + item.SMonthType4_3 + item.SMonthType4_4 + item.SMonthType4_5 + item.SMonthType4_6 + item.SMonthType4_7 + item.SMonthType4_8 + item.SMonthType4_9 + item.SMonthType4_10 + item.SMonthType4_11 + item.SMonthType4_12 + item.SMonthType4_13 + item.SMonthType4_14 + item.SMonthType4_15 + item.SMonthType4_16 + item.SMonthType4_17 + item.SMonthType4_18 + item.SMonthType4_19 + item.SMonthType4_20 + item.SMonthType4_21 + item.SMonthType4_22 + item.SMonthType4_23 + item.SMonthType4_24 + item.SMonthType4_25 + item.SMonthType4_26 + item.SMonthType4_27 + item.SMonthType4_28 + item.SMonthType4_29 + item.SMonthType4_30 + item.SMonthType4_31 + item.SMonthType4_32 + item.SMonthType4_33 + item.SMonthType4_34 + item.SMonthType4_35 + item.SMonthType4_35 + item.SMonthType4_36 + item.SMonthType4_37 + item.SMonthType4_38 + item.SMonthType4_39 + item.SMonthType4_40;
|
||||
sConProjectType5 += item.SMonthType5_1 + item.SMonthType5_2 + item.SMonthType5_3 + item.SMonthType5_4 + item.SMonthType5_5 + item.SMonthType5_6;
|
||||
sConProjectType6 += item.SMonthType6_1 + item.SMonthType6_2 + item.SMonthType6_3;
|
||||
tConProjectType1 += item.TMonthType1_1 + item.TMonthType1_2 + item.TMonthType1_3 + item.TMonthType1_4 + item.TMonthType1_5 + item.TMonthType1_6 + item.TMonthType1_7 + item.TMonthType1_8 + item.TMonthType1_9 + item.TMonthType1_10 + item.TMonthType1_11;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
int i = 0;
|
||||
Model.Manager_Month_FiveExpenseC fiveExpense1 = new Model.Manager_Month_FiveExpenseC
|
||||
{
|
||||
FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)),
|
||||
SortIndex = i,
|
||||
InvestmentProject = "基础管理",
|
||||
PlanCostMonth = sMonthType1,//五环工程(本月)
|
||||
PlanCostYear = sProjectType1, //五环工程(项目累计)
|
||||
ActualCostMonth = sConMonthType1,//施工分包商(本月)
|
||||
ActualCostYear = sConProjectType1//施工分包商(项目累计)
|
||||
};
|
||||
plans.Add(monthPlanSort);
|
||||
this.gvMonthPlan.DataSource = plans;
|
||||
this.gvMonthPlan.DataBind();
|
||||
}
|
||||
fiveExpenses.Add(fiveExpense1);
|
||||
i++;
|
||||
|
||||
/// <summary>
|
||||
/// 检查并保存其他HSE管理活动集合
|
||||
/// </summary>
|
||||
private void jerqueSaveMonthPlanList()
|
||||
{
|
||||
plans.Clear();
|
||||
JArray mergedData = gvMonthPlan.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
Model.Manager_Month_FiveExpenseC fiveExpense2 = new Model.Manager_Month_FiveExpenseC
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_PlanC monthPlanSort = new Model.Manager_Month_PlanC
|
||||
{
|
||||
PlanId = this.gvMonthPlan.Rows[i].DataKeys[0].ToString(),
|
||||
SortIndex = i,
|
||||
PlanName = values.Value<string>("PlanName").ToString(),
|
||||
CompileMan = values.Value<string>("CompileMan").ToString(),
|
||||
CompileDate = values.Value<string>("CompileDate").ToString()
|
||||
};
|
||||
plans.Add(monthPlanSort);
|
||||
}
|
||||
}
|
||||
|
||||
protected void gvMonthPlan_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
jerqueSaveMonthPlanList();
|
||||
string rowID = this.gvMonthPlan.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "Delete")
|
||||
{
|
||||
foreach (var item in plans)
|
||||
{
|
||||
if (item.PlanId == rowID)
|
||||
{
|
||||
plans.Remove(item);
|
||||
break;
|
||||
}
|
||||
}
|
||||
gvMonthPlan.DataSource = plans;
|
||||
gvMonthPlan.DataBind();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 审查记录修编情况修编、审核
|
||||
/// </summary>
|
||||
private void GetReviewRecordSort()
|
||||
{
|
||||
//施工方案
|
||||
List<Model.Solution_ConstructSolution> constructSolution = BLL.ConstructSolutionService.GetConstructSolutionListByDate(this.ProjectId, startTime, endTime);
|
||||
if (constructSolution.Count > 0)
|
||||
{
|
||||
foreach (Model.Solution_ConstructSolution item in constructSolution)
|
||||
{
|
||||
Model.Manager_Month_ReviewRecordC reviewRecord = new Model.Manager_Month_ReviewRecordC
|
||||
{
|
||||
ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC)),
|
||||
ReviewRecordName = item.ConstructSolutionName
|
||||
};
|
||||
List<Model.Sys_User> users = (from x in Funs.DB.Sys_User
|
||||
join y in Funs.DB.Sys_FlowOperate
|
||||
on x.UserId equals y.OperaterId
|
||||
join z in Funs.DB.Project_ProjectUser
|
||||
on y.OperaterId equals z.UserId
|
||||
where (z.RoleId.Contains(BLL.Const.HSSEEngineer) || z.RoleId.Contains(BLL.Const.HSSEManager)) && y.MenuId == BLL.Const.ProjectConstructSolutionMenuId && y.DataId == item.ConstructSolutionId
|
||||
select x).Distinct().ToList();
|
||||
if (users.Count() > 0)
|
||||
{
|
||||
string names = string.Empty;
|
||||
foreach (var user in users)
|
||||
{
|
||||
names += user.UserName + ",";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(names))
|
||||
{
|
||||
names = names.Substring(0, names.LastIndexOf(","));
|
||||
}
|
||||
reviewRecord.ReviewMan = names;
|
||||
}
|
||||
|
||||
if (item.CompileDate != null)
|
||||
{
|
||||
reviewRecord.ReviewDate = string.Format("{0:yyyy-MM-dd}", item.CompileDate);
|
||||
}
|
||||
reviewRecords.Add(reviewRecord);
|
||||
}
|
||||
}
|
||||
//分包商审核记录
|
||||
List<Model.QualityAudit_SubUnitQualityAuditDetail> subUnitDetails = BLL.SubUnitQualityAuditDetailService.GetListByDate(this.ProjectId, startTime, endTime);
|
||||
if (subUnitDetails.Count > 0)
|
||||
{
|
||||
foreach (Model.QualityAudit_SubUnitQualityAuditDetail item in subUnitDetails)
|
||||
{
|
||||
Model.Manager_Month_ReviewRecordC reviewRecord = new Model.Manager_Month_ReviewRecordC
|
||||
{
|
||||
ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC)),
|
||||
ReviewRecordName = item.AuditContent
|
||||
};
|
||||
Model.Sys_User user = BLL.UserService.GetUserByUserId(item.AuditMan);
|
||||
if (user != null)
|
||||
{
|
||||
reviewRecord.ReviewMan = user.UserName;
|
||||
}
|
||||
if (item.AuditDate != null)
|
||||
{
|
||||
reviewRecord.ReviewDate = string.Format("{0:yyyy-MM-dd}", item.AuditDate);
|
||||
}
|
||||
reviewRecords.Add(reviewRecord);
|
||||
}
|
||||
}
|
||||
//特种设备审核记录
|
||||
List<Model.QualityAudit_EquipmentQualityAuditDetail> equipmentDetails = BLL.EquipmentQualityAuditDetailService.GetListByDate(this.ProjectId, startTime, endTime);
|
||||
if (equipmentDetails.Count > 0)
|
||||
{
|
||||
foreach (Model.QualityAudit_EquipmentQualityAuditDetail item in equipmentDetails)
|
||||
{
|
||||
Model.Manager_Month_ReviewRecordC reviewRecord = new Model.Manager_Month_ReviewRecordC
|
||||
{
|
||||
ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC)),
|
||||
ReviewRecordName = item.AuditContent
|
||||
};
|
||||
Model.Sys_User user = BLL.UserService.GetUserByUserId(item.AuditMan);
|
||||
if (user != null)
|
||||
{
|
||||
reviewRecord.ReviewMan = user.UserName;
|
||||
}
|
||||
if (item.AuditDate != null)
|
||||
{
|
||||
reviewRecord.ReviewDate = string.Format("{0:yyyy-MM-dd}", item.AuditDate);
|
||||
}
|
||||
reviewRecords.Add(reviewRecord);
|
||||
}
|
||||
}
|
||||
//特岗人员资质
|
||||
List<Model.QualityAudit_PersonQuality> personDetails = BLL.PersonQualityService.GetListByDate(this.ProjectId, startTime, endTime);
|
||||
if (personDetails.Count > 0)
|
||||
{
|
||||
foreach (Model.QualityAudit_PersonQuality item in personDetails)
|
||||
{
|
||||
Model.Manager_Month_ReviewRecordC reviewRecord = new Model.Manager_Month_ReviewRecordC
|
||||
{
|
||||
ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC))
|
||||
};
|
||||
string personName = string.Empty;
|
||||
Model.SitePerson_Person person = BLL.PersonService.GetPersonById(item.PersonId);
|
||||
if (person != null)
|
||||
{
|
||||
personName = person.PersonName;
|
||||
}
|
||||
reviewRecord.ReviewRecordName = personName + "(" + item.CertificateName + ")";
|
||||
reviewRecord.ReviewMan = item.ApprovalPerson;
|
||||
if (item.AuditDate != null)
|
||||
{
|
||||
reviewRecord.ReviewDate = string.Format("{0:yyyy-MM-dd}", item.AuditDate);
|
||||
}
|
||||
reviewRecords.Add(reviewRecord);
|
||||
}
|
||||
}
|
||||
//一般机具资质
|
||||
List<Model.QualityAudit_GeneralEquipmentQuality> generalEquipmentDetails = BLL.GeneralEquipmentQualityService.GetListByDate(this.ProjectId, startTime, endTime);
|
||||
if (generalEquipmentDetails.Count > 0)
|
||||
{
|
||||
foreach (Model.QualityAudit_GeneralEquipmentQuality item in generalEquipmentDetails)
|
||||
{
|
||||
Model.Manager_Month_ReviewRecordC reviewRecord = new Model.Manager_Month_ReviewRecordC
|
||||
{
|
||||
ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC))
|
||||
};
|
||||
string generalEquipmentName = string.Empty;
|
||||
Model.Base_SpecialEquipment specialEquipment = BLL.SpecialEquipmentService.GetSpecialEquipmentById(item.SpecialEquipmentId);
|
||||
if (specialEquipment != null)
|
||||
{
|
||||
generalEquipmentName = specialEquipment.SpecialEquipmentName;
|
||||
}
|
||||
reviewRecord.ReviewRecordName = generalEquipmentName + "(" + item.EquipmentCount.ToString() + ")";
|
||||
Model.Sys_User user = BLL.UserService.GetUserByUserId(item.CompileMan);
|
||||
if (user != null)
|
||||
{
|
||||
reviewRecord.ReviewMan = user.UserName;
|
||||
}
|
||||
if (item.InDate != null)
|
||||
{
|
||||
reviewRecord.ReviewDate = string.Format("{0:yyyy-MM-dd}", item.InDate);
|
||||
}
|
||||
reviewRecords.Add(reviewRecord);
|
||||
}
|
||||
}
|
||||
this.gvReviewRecord.DataSource = reviewRecords;
|
||||
this.gvReviewRecord.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加本月文件、方案修编情况说明
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewReviewRecord_Click(object sender, EventArgs e)
|
||||
{
|
||||
jerqueSaveReviewRecordList();
|
||||
Model.Manager_Month_ReviewRecordC reviewRecordSort = new Model.Manager_Month_ReviewRecordC
|
||||
{
|
||||
ReviewRecordId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ReviewRecordC))
|
||||
FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)),
|
||||
SortIndex = i,
|
||||
InvestmentProject = "安全技术",
|
||||
PlanCostMonth = sMonthType2,//五环工程(本月)
|
||||
PlanCostYear = sProjectType2, //五环工程(项目累计)
|
||||
ActualCostMonth = sConMonthType2,//施工分包商(本月)
|
||||
ActualCostYear = sConProjectType2//施工分包商(项目累计)
|
||||
};
|
||||
reviewRecords.Add(reviewRecordSort);
|
||||
this.gvReviewRecord.DataSource = reviewRecords;
|
||||
this.gvReviewRecord.DataBind();
|
||||
}
|
||||
fiveExpenses.Add(fiveExpense2);
|
||||
i++;
|
||||
|
||||
Model.Manager_Month_FiveExpenseC fiveExpense3 = new Model.Manager_Month_FiveExpenseC
|
||||
{
|
||||
FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)),
|
||||
SortIndex = i,
|
||||
InvestmentProject = "职业健康",
|
||||
PlanCostMonth = sMonthType3,//五环工程(本月)
|
||||
PlanCostYear = sProjectType3, //五环工程(项目累计)
|
||||
ActualCostMonth = sConMonthType3,//施工分包商(本月)
|
||||
ActualCostYear = sConProjectType3//施工分包商(项目累计)
|
||||
};
|
||||
fiveExpenses.Add(fiveExpense3);
|
||||
i++;
|
||||
|
||||
Model.Manager_Month_FiveExpenseC fiveExpense4 = new Model.Manager_Month_FiveExpenseC
|
||||
{
|
||||
FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)),
|
||||
SortIndex = i,
|
||||
InvestmentProject = "安全防护",
|
||||
PlanCostMonth = sMonthType4,//五环工程(本月)
|
||||
PlanCostYear = sProjectType4, //五环工程(项目累计)
|
||||
ActualCostMonth = sConMonthType4,//施工分包商(本月)
|
||||
ActualCostYear = sConProjectType4//施工分包商(项目累计)
|
||||
};
|
||||
fiveExpenses.Add(fiveExpense4);
|
||||
i++;
|
||||
|
||||
Model.Manager_Month_FiveExpenseC fiveExpense5 = new Model.Manager_Month_FiveExpenseC
|
||||
{
|
||||
FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)),
|
||||
SortIndex = i,
|
||||
InvestmentProject = "化工试车",
|
||||
PlanCostMonth = sMonthType5,//五环工程(本月)
|
||||
PlanCostYear = sProjectType5, //五环工程(项目累计)
|
||||
ActualCostMonth = sConMonthType5,//施工分包商(本月)
|
||||
ActualCostYear = sConProjectType5//施工分包商(项目累计)
|
||||
};
|
||||
fiveExpenses.Add(fiveExpense5);
|
||||
i++;
|
||||
|
||||
Model.Manager_Month_FiveExpenseC fiveExpense6 = new Model.Manager_Month_FiveExpenseC
|
||||
{
|
||||
FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)),
|
||||
SortIndex = i,
|
||||
InvestmentProject = "教育培训",
|
||||
PlanCostMonth = sMonthType6,//五环工程(本月)
|
||||
PlanCostYear = sProjectType6, //五环工程(项目累计)
|
||||
ActualCostMonth = sConMonthType6,//施工分包商(本月)
|
||||
ActualCostYear = sConProjectType6//施工分包商(项目累计)
|
||||
};
|
||||
fiveExpenses.Add(fiveExpense6);
|
||||
i++;
|
||||
|
||||
Model.Manager_Month_FiveExpenseC fiveExpense7 = new Model.Manager_Month_FiveExpenseC
|
||||
{
|
||||
FiveExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_FiveExpenseC)),
|
||||
SortIndex = i,
|
||||
InvestmentProject = "文明施工环境保护",
|
||||
PlanCostMonth = tMonthType1,//五环工程(本月)
|
||||
PlanCostYear = tMonthType1, //五环工程(项目累计)
|
||||
ActualCostMonth = tConMonthType1,//施工分包商(本月)
|
||||
ActualCostYear = tConProjectType1//施工分包商(项目累计)
|
||||
};
|
||||
fiveExpenses.Add(fiveExpense7);
|
||||
|
||||
this.gvFiveExpenseC.DataSource = fiveExpenses;
|
||||
this.gvFiveExpenseC.DataBind();
|
||||
|
||||
OutputSummaryData();
|
||||
}
|
||||
/// <summary>
|
||||
/// 检查并保存其他HSE管理活动集合
|
||||
/// 求和
|
||||
/// </summary>
|
||||
private void jerqueSaveReviewRecordList()
|
||||
private void OutputSummaryData()
|
||||
{
|
||||
reviewRecords.Clear();
|
||||
JArray mergedData = gvReviewRecord.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
JObject summary = new JObject();
|
||||
|
||||
decimal TotalPlanCostMonth = 0, TotalPlanCostYear = 0, TotalActualCostMonth = 0, TotalActualCostYear = 0;
|
||||
foreach (JObject mergedRow in gvFiveExpenseC.GetMergedData())
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_ReviewRecordC reviewRecordSort = new Model.Manager_Month_ReviewRecordC
|
||||
if (!string.IsNullOrEmpty(values["PlanCostMonth"].ToString()))
|
||||
{
|
||||
ReviewRecordId = this.gvReviewRecord.Rows[i].DataKeys[0].ToString(),
|
||||
SortIndex = i,
|
||||
ReviewRecordName = values.Value<string>("ReviewRecordName").ToString(),
|
||||
ReviewMan = values.Value<string>("ReviewMan").ToString(),
|
||||
ReviewDate = values.Value<string>("ReviewDate").ToString()
|
||||
};
|
||||
reviewRecords.Add(reviewRecordSort);
|
||||
TotalPlanCostMonth += values.Value<decimal>("PlanCostMonth");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["PlanCostYear"].ToString()))
|
||||
{
|
||||
TotalPlanCostYear += values.Value<decimal>("PlanCostYear");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["ActualCostMonth"].ToString()))
|
||||
{
|
||||
TotalActualCostMonth += values.Value<decimal>("ActualCostMonth");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["ActualCostYear"].ToString()))
|
||||
{
|
||||
TotalActualCostYear += values.Value<decimal>("ActualCostYear");
|
||||
}
|
||||
}
|
||||
summary.Add("InvestmentProject", "合计");
|
||||
summary.Add("PlanCostMonth", TotalPlanCostMonth.ToString("F2"));
|
||||
summary.Add("PlanCostYear", TotalPlanCostYear.ToString("F2"));
|
||||
summary.Add("ActualCostMonth", TotalActualCostMonth.ToString("F2"));
|
||||
summary.Add("ActualCostYear", TotalActualCostYear.ToString("F2"));
|
||||
|
||||
gvFiveExpenseC.SummaryData = summary;
|
||||
}
|
||||
|
||||
protected void gvReviewRecord_RowCommand(object sender, GridCommandEventArgs e)
|
||||
#endregion
|
||||
|
||||
#region 本月项目分包商HSE费用支付统计
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
private void GetSubExpenseList()
|
||||
{
|
||||
jerqueSaveReviewRecordList();
|
||||
string rowID = this.gvReviewRecord.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "Delete")
|
||||
var units = from x in Funs.DB.Project_ProjectUnit
|
||||
where x.ProjectId == this.ProjectId && x.UnitType == "2"
|
||||
orderby x.UnitType
|
||||
select x;
|
||||
if (units.Count() > 0)
|
||||
{
|
||||
foreach (var item in reviewRecords)
|
||||
foreach (Model.Project_ProjectUnit u in units)
|
||||
{
|
||||
if (item.ReviewRecordId == rowID)
|
||||
Model.Manager_Month_SubExpenseC subExpense = new Model.Manager_Month_SubExpenseC
|
||||
{
|
||||
reviewRecords.Remove(item);
|
||||
break;
|
||||
}
|
||||
SubExpenseId = SQLHelper.GetNewID(typeof(Model.Manager_Month_SubExpenseC)),
|
||||
SubUnit =BLL.UnitService.GetUnitNameByUnitId(u.UnitId),
|
||||
ContractAmount = BLL.SubPayRegistrationService.GetSubPaySMonthTypeByUnitId(u.UnitId, startTime,endTime),
|
||||
MonthApprovalAmount = BLL.SubPayRegistrationService.GetSubPayRegistrationByUnitId(u.UnitId, startTime, endTime),
|
||||
ProjectApprovalAmount = BLL.SubPayRegistrationService.GetSubPayRegistrationByUnitId(u.UnitId, projectStartTime, endTime),
|
||||
};
|
||||
|
||||
subExpenses.Add(subExpense);
|
||||
}
|
||||
gvReviewRecord.DataSource = reviewRecords;
|
||||
gvReviewRecord.DataBind();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
this.gvSubExpenseC.DataSource = subExpenses;
|
||||
this.gvSubExpenseC.DataBind();
|
||||
OutputSubSummaryData();
|
||||
}
|
||||
/// <summary>
|
||||
/// 求和
|
||||
/// </summary>
|
||||
private void OutputSubSummaryData()
|
||||
{
|
||||
JObject summary = new JObject();
|
||||
|
||||
decimal TotalContractAmount = 0, TotalMonthApprovalAmount = 0, TotalProjectApprovalAmount = 0;
|
||||
foreach (JObject mergedRow in gvSubExpenseC.GetMergedData())
|
||||
{
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
if (!string.IsNullOrEmpty(values["ContractAmount"].ToString()))
|
||||
{
|
||||
TotalContractAmount += values.Value<decimal>("ContractAmount");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["MonthApprovalAmount"].ToString()))
|
||||
{
|
||||
TotalMonthApprovalAmount += values.Value<decimal>("MonthApprovalAmount");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["ProjectApprovalAmount"].ToString()))
|
||||
{
|
||||
TotalProjectApprovalAmount += values.Value<decimal>("ProjectApprovalAmount");
|
||||
}
|
||||
}
|
||||
summary.Add("SubUnit", "合计");
|
||||
summary.Add("ContractAmount", TotalContractAmount.ToString("F2"));
|
||||
summary.Add("MonthApprovalAmount", TotalMonthApprovalAmount.ToString("F2"));
|
||||
summary.Add("ProjectApprovalAmount", TotalProjectApprovalAmount.ToString("F2"));
|
||||
|
||||
gvSubExpenseC.SummaryData = summary;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -510,8 +414,8 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
if (oldMonthReport != null)
|
||||
{
|
||||
BLL.MonthReportCService.UpdateMonthReport(oldMonthReport);
|
||||
OperatePlanSort(MonthReportId);
|
||||
OperateReviewRecordSort(MonthReportId);
|
||||
OperateFiveExpenseSort(oldMonthReport.MonthReportId);
|
||||
OperateSubExpenseSort(oldMonthReport.MonthReportId);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, oldMonthReport.MonthReportCode, oldMonthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnModify);
|
||||
}
|
||||
else
|
||||
@@ -520,49 +424,105 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
string newKeyID = SQLHelper.GetNewID(typeof(Model.Manager_MonthReportC));
|
||||
monthReport.MonthReportId = newKeyID;
|
||||
monthReport.ProjectId = this.CurrUser.LoginProjectId;
|
||||
this.MonthReportId = newKeyID;
|
||||
this.newKeyID = newKeyID;
|
||||
monthReport.MonthReportCode = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectManagerMonthCMenuId, this.ProjectId, this.CurrUser.UnitId);
|
||||
monthReport.Months = Funs.GetNewDateTime(Request.Params["months"]);
|
||||
monthReport.ReportMan = this.CurrUser.UserId;
|
||||
monthReport.MonthReportDate = DateTime.Now;
|
||||
BLL.MonthReportCService.AddMonthReport(monthReport);
|
||||
OperatePlanSort(MonthReportId);
|
||||
OperateReviewRecordSort(MonthReportId);
|
||||
OperateFiveExpenseSort(newKeyID);
|
||||
OperateSubExpenseSort(newKeyID);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, monthReport.MonthReportCode, monthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
#region 保存本月项目HSE费用投入统计
|
||||
/// <summary>
|
||||
/// 5.1.2 本月文件、方案修编情况说明
|
||||
/// 本月项目HSE费用投入统计
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperatePlanSort(string monthReportId)
|
||||
private void OperateFiveExpenseSort(string monthReportId)
|
||||
{
|
||||
BLL.PlanCService.DeletePlanByMonthReportId(monthReportId);
|
||||
jerqueSaveMonthPlanList();
|
||||
foreach (Model.Manager_Month_PlanC plan in plans)
|
||||
BLL.FiveExpenseCService.DeleteFiveExpenseByMonthReportId(monthReportId);
|
||||
jerqueSaveFiveExpenseList();
|
||||
foreach (Model.Manager_Month_FiveExpenseC fiveExpendse in fiveExpenses)
|
||||
{
|
||||
plan.MonthReportId = monthReportId;
|
||||
BLL.PlanCService.AddPlan(plan);
|
||||
fiveExpendse.MonthReportId = monthReportId;
|
||||
BLL.FiveExpenseCService.AddFiveExpense(fiveExpendse);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 5.2.2 详细审查记录
|
||||
/// 保存本月项目HSE费用投入统计数据
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperateReviewRecordSort(string monthReportId)
|
||||
private void jerqueSaveFiveExpenseList()
|
||||
{
|
||||
BLL.ReviewRecordCService.DeleteReviewRecordByMonthReportId(monthReportId);
|
||||
jerqueSaveReviewRecordList();
|
||||
foreach (Model.Manager_Month_ReviewRecordC reviewRecord in reviewRecords)
|
||||
fiveExpenses.Clear();
|
||||
JArray mergedData = gvFiveExpenseC.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
reviewRecord.MonthReportId = monthReportId;
|
||||
BLL.ReviewRecordCService.AddReviewRecord(reviewRecord);
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_FiveExpenseC trainSort = new Model.Manager_Month_FiveExpenseC
|
||||
{
|
||||
FiveExpenseId = this.gvFiveExpenseC.Rows[i].DataKeys[0].ToString(),
|
||||
SortIndex = i,
|
||||
InvestmentProject = values.Value<string>("InvestmentProject").ToString(),
|
||||
PlanCostMonth = Funs.GetNewDecimal(values.Value<string>("PlanCostMonth").ToString()),
|
||||
PlanCostYear = Funs.GetNewDecimal(values.Value<string>("PlanCostYear").ToString()),
|
||||
ActualCostMonth = Funs.GetNewDecimal(values.Value<string>("ActualCostMonth").ToString()),
|
||||
ActualCostYear = Funs.GetNewDecimal(values.Value<string>("ActualCostYear").ToString())
|
||||
};
|
||||
fiveExpenses.Add(trainSort);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存本月项目分包商HSE费用支付统计
|
||||
/// <summary>
|
||||
/// 本月项目分包商HSE费用支付统计
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperateSubExpenseSort(string monthReportId)
|
||||
{
|
||||
BLL.SubExpenseCService.DeleteSubExpenseByMonthReportId(monthReportId);
|
||||
jerqueSaveSubExpenseList();
|
||||
foreach (Model.Manager_Month_SubExpenseC subExpendse in subExpenses)
|
||||
{
|
||||
subExpendse.MonthReportId = monthReportId;
|
||||
BLL.SubExpenseCService.AddSubExpense(subExpendse);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存本月项目分包商HSE费用支付统计数据
|
||||
/// </summary>
|
||||
private void jerqueSaveSubExpenseList()
|
||||
{
|
||||
subExpenses.Clear();
|
||||
JArray mergedData = gvSubExpenseC.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_SubExpenseC trainSort = new Model.Manager_Month_SubExpenseC
|
||||
{
|
||||
SubExpenseId = this.gvSubExpenseC.Rows[i].DataKeys[0].ToString(),
|
||||
SortIndex = i,
|
||||
SubUnit = values.Value<string>("SubUnit").ToString(),
|
||||
ContractAmount = Funs.GetNewDecimal(values.Value<string>("ContractAmount").ToString()),
|
||||
MonthApprovalAmount = Funs.GetNewDecimal(values.Value<string>("MonthApprovalAmount").ToString()),
|
||||
ProjectApprovalAmount = Funs.GetNewDecimal(values.Value<string>("ProjectApprovalAmount").ToString())
|
||||
};
|
||||
subExpenses.Add(trainSort);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+28
-37
@@ -40,139 +40,130 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel34 控件。
|
||||
/// GroupPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel34;
|
||||
protected global::FineUIPro.GroupPanel GroupPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel37 控件。
|
||||
/// GroupPanel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel37;
|
||||
protected global::FineUIPro.GroupPanel GroupPanel2;
|
||||
|
||||
/// <summary>
|
||||
/// gvMonthPlan 控件。
|
||||
/// gvFiveExpenseC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvMonthPlan;
|
||||
protected global::FineUIPro.Grid gvFiveExpenseC;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar15 控件。
|
||||
/// txtCheckType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar15;
|
||||
protected global::FineUIPro.TextBox txtCheckType;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewMonthPlan 控件。
|
||||
/// TextBox1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewMonthPlan;
|
||||
protected global::FineUIPro.TextBox TextBox1;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox36 控件。
|
||||
/// TextBox2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox36;
|
||||
protected global::FineUIPro.TextBox TextBox2;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox37 控件。
|
||||
/// TextBox3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox37;
|
||||
protected global::FineUIPro.TextBox TextBox3;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox38 控件。
|
||||
/// TextBox4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox38;
|
||||
protected global::FineUIPro.TextBox TextBox4;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel38 控件。
|
||||
/// GroupPanel27 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel38;
|
||||
protected global::FineUIPro.GroupPanel GroupPanel27;
|
||||
|
||||
/// <summary>
|
||||
/// gvReviewRecord 控件。
|
||||
/// gvSubExpenseC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvReviewRecord;
|
||||
protected global::FineUIPro.Grid gvSubExpenseC;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar16 控件。
|
||||
/// TextBox5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar16;
|
||||
protected global::FineUIPro.TextBox TextBox5;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewReviewRecord 控件。
|
||||
/// NumberBox4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewReviewRecord;
|
||||
protected global::FineUIPro.NumberBox NumberBox4;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox39 控件。
|
||||
/// NumberBox3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox39;
|
||||
protected global::FineUIPro.NumberBox NumberBox3;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox40 控件。
|
||||
/// NumberBox2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox40;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox41 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox41;
|
||||
protected global::FineUIPro.NumberBox NumberBox2;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
|
||||
@@ -1,353 +1,224 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MonthReportCEdit6.aspx.cs" Inherits="FineUIPro.Web.HSSE.Manager.MonthReportCEdit6" %>
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MonthReportCEdit6.aspx.cs"
|
||||
Inherits="FineUIPro.Web.HSSE.Manager.MonthReportCEdit6" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>本月项目HSE费用管理</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
.font_style
|
||||
{
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tablehtml td.label1, .tablehtml td.label2
|
||||
{
|
||||
width: 80px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tablehtml td.label
|
||||
{
|
||||
width: 120px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tablehtml td.label3
|
||||
{
|
||||
width: 80px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tablehtml
|
||||
{
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.tablehtml td
|
||||
{
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.tablehtml td.label .redstar
|
||||
{
|
||||
color: red;
|
||||
}
|
||||
|
||||
.tablehtml td > div
|
||||
{
|
||||
display: block;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.tablehtml .f-field
|
||||
{
|
||||
width: 100%;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.tablehtml .f-field-textbox, .tablehtml .f-field-label
|
||||
{
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
border-width: 0;
|
||||
padding: 7px 6px;
|
||||
}
|
||||
|
||||
.tablehtml .f-field-checkbox-icon
|
||||
{
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
.tablehtml .f-field-body-checkboxlabel
|
||||
{
|
||||
margin-left: 26px;
|
||||
}
|
||||
|
||||
.tablehtml td.label
|
||||
{
|
||||
width: 100px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tablehtml td.content
|
||||
{
|
||||
width: 200px;
|
||||
}
|
||||
</style>
|
||||
<title>HSE责任事故/事件描述</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Panel ID="Panel1" runat="server" Width="970px" ShowBorder="True" EnableCollapse="true"
|
||||
CssClass="mytable" Layout="Table" TableConfigColumns="3" ShowHeader="True" Title="6 本月项目HSE费用管理(单位:万元)">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel1" IsFluid="true" CssClass="blockpanel" runat="server"
|
||||
ShowBorder="false" ShowHeader="false">
|
||||
<table class="tablehtml">
|
||||
<tr>
|
||||
<td class="f-widget-content label1" rowspan="2">
|
||||
序号
|
||||
</td>
|
||||
<td class="f-widget-content label2" rowspan="2">
|
||||
投入项目
|
||||
</td>
|
||||
<td class="f-widget-content label" colspan="2">
|
||||
五环工程
|
||||
</td>
|
||||
<td class="f-widget-content label" colspan="2">
|
||||
施工分包商
|
||||
</td>
|
||||
<td class="f-widget-content label" colspan="2">
|
||||
建安产值
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f-widget-content label1" >
|
||||
本月
|
||||
</td>
|
||||
<td class="f-widget-content label2" >
|
||||
项目累计
|
||||
</td>
|
||||
<td class="f-widget-content label" >
|
||||
本月
|
||||
</td>
|
||||
<td class="f-widget-content label" >
|
||||
项目累计
|
||||
</td>
|
||||
<td class="f-widget-content label" >
|
||||
本月
|
||||
</td>
|
||||
<td class="f-widget-content label" >
|
||||
项目累计
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f-widget-content label">
|
||||
1
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
基础管理
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainCost1" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainProjectCost1" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubCost1" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubProjectCost1" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" rowspan="8">
|
||||
<f:NumberBox ID="nbJianAnCost" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" rowspan="8">
|
||||
<f:NumberBox ID="nbJianAnProjectCost" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f-widget-content label">
|
||||
2
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
安全技术
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainCost2" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainProjectCost2" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubCost2" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubProjectCost2" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f-widget-content label">
|
||||
3
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
职业健康
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainCost3" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainProjectCost3" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubCost3" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubProjectCost3" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f-widget-content label">
|
||||
4
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
安全防护
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainCost4" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainProjectCost4" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubCost4" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubProjectCost4" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f-widget-content label">
|
||||
5
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
化工试车
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainCost5" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainProjectCost5" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubCost5" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubProjectCost5" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f-widget-content label">
|
||||
6
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
教育培训
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainCost6" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainProjectCost6" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubCost6" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubProjectCost6" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f-widget-content label">
|
||||
7
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
文明施工环境保护
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainCost7" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainProjectCost7" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubCost7" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubProjectCost7" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f-widget-content label" colspan="2">
|
||||
合计
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainCost" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbMainProjectCost" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubCost" NoDecimal="false" NoNegative="true" MinValue="0" runat="server" >
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
<td class="f-widget-content" >
|
||||
<f:NumberBox ID="nbSubProjectCost" NoDecimal="false" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel34" Layout="Anchor" Title="6.HSE责任事故/事件描述" runat="server">
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel37" Layout="Anchor" Title="6.1 HSE责任事故/事件管理绩效数据统计(表一)"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel1" Layout="Anchor" Title="(1) 本月伤害事故统计"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvInjuryAccident" ShowBorder="true" ShowHeader="false" Title="(1) 本月伤害事故统计"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="InjuryAccidentId"
|
||||
DataKeyNames="InjuryAccidentId" EnableMultiSelect="false" ShowGridHeader="true" Height="280px"
|
||||
EnableColumnLines="true" EnableSummary="true" SummaryPosition="Flow">
|
||||
<Columns>
|
||||
<f:RenderField Width="100px" ColumnID="UnitName" DataField="UnitName" FieldType="String"
|
||||
HeaderText="责任单位" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="AttemptedIncidents" DataField="AttemptedIncidents" FieldType="String"
|
||||
HeaderText="未遂事件起数" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox1" runat="server" NoDecimal="true" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="FirstAidDressing" DataField="FirstAidDressing" FieldType="String"
|
||||
HeaderText="急救包扎事故人数" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox2" runat="server" NoDecimal="true" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:GroupField EnableLock="true" HeaderText="可记录事件" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="90px" ColumnID="MedicalTreatment" DataField="MedicalTreatment" FieldType="Int"
|
||||
HeaderText="医疗处置事故人数" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox3" runat="server" NoDecimal="true" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="WorkLimitation" DataField="WorkLimitation" FieldType="Int"
|
||||
HeaderText="工作受限事故人数" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox4" runat="server" NoDecimal="true" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:GroupField EnableLock="true" HeaderText="工时损失事故" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:GroupField EnableLock="true" HeaderText="损工事故" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="90px" ColumnID="LossPerson" DataField="LossPerson" FieldType="Int"
|
||||
HeaderText="人数" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox5" runat="server" NoDecimal="true" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="LossWorkTime" DataField="LossWorkTime" FieldType="Int"
|
||||
HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox6" runat="server" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="LossEconomy" DataField="LossEconomy" FieldType="Int"
|
||||
HeaderText="经济损失" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox7" runat="server" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField EnableLock="true" HeaderText="死亡事故" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="90px" ColumnID="DeathPerson" DataField="DeathPerson" FieldType="Int"
|
||||
HeaderText="人数" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox8" runat="server" NoDecimal="true" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="DeathWorkTime" DataField="DeathWorkTime" FieldType="Int"
|
||||
HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox9" runat="server" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="DeathEconomy" DataField="DeathEconomy" FieldType="Int"
|
||||
HeaderText="经济损失" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox10" runat="server" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel2" Layout="Anchor" Title="(2)本月无伤害事故统计"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvNoInjuryAccident" ShowBorder="true" ShowHeader="false" Title="(2)本月无伤害事故统计"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="NoInjuryAccidentId"
|
||||
DataKeyNames="NoInjuryAccidentId" EnableMultiSelect="false" ShowGridHeader="true" Height="150px"
|
||||
EnableColumnLines="true">
|
||||
<Columns>
|
||||
<f:RenderField Width="300px" ColumnID="AccidentType" DataField="AccidentType" FieldType="String"
|
||||
HeaderText="事故类型" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox ID="TextBox1" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="EconomicLosses" DataField="EconomicLosses" FieldType="String"
|
||||
HeaderText="经济损失" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox11" runat="server" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:GroupField EnableLock="true" HeaderText="事故起数" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="200px" ColumnID="WHAccidentCount" DataField="WHAccidentCount" FieldType="Int"
|
||||
HeaderText="五环" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox12" runat="server" NoDecimal="true" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="SubAccidentCount" DataField="SubAccidentCount" FieldType="Int"
|
||||
HeaderText="分包" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox13" runat="server" NoDecimal="true" NoNegative="true"></f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel3" Layout="Anchor" Title="6.2 事故/事件描述(文字描述)"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:TextArea ID="txtDef" runat="server"></f:TextArea>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel4" Layout="Anchor" Title="6.3 本月项目HSE绩效指标:"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvPerformanceIndicator" ShowBorder="true" ShowHeader="false" Title="本月项目HSE绩效指标"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="PerformanceIndicatorId"
|
||||
DataKeyNames="PerformanceIndicatorId" EnableMultiSelect="false" ShowGridHeader="true" Height="520px"
|
||||
EnableColumnLines="true" SortField="SortIndex">
|
||||
<%--<Toolbars>
|
||||
<f:Toolbar ID="Toolbar15" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNewMonthPlan" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNewMonthPlan_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>--%>
|
||||
<Columns>
|
||||
<%--<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />--%>
|
||||
<f:RenderField Width="60px" ColumnID="SortIndex" DataField="SortIndex" FieldType="String"
|
||||
HeaderText="序号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="IndicatorType" DataField="IndicatorType" FieldType="String"
|
||||
HeaderText="指标类别" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="500px" ColumnID="IndicatorName" DataField="IndicatorName" FieldType="String"
|
||||
HeaderText="指标名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="IndicatorValue" DataField="IndicatorValue" FieldType="String"
|
||||
HeaderText="指标值" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox ID="TextBox4" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
<script>
|
||||
function onGridDataLoad(event) {
|
||||
this.mergeColumns(['SortIndex', 'IndicatorType']);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -52,14 +52,19 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
|
||||
#region 定义集合
|
||||
/// <summary>
|
||||
/// 6.1 五环HSE费用投入集合
|
||||
/// 本月伤害事故统计
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_FiveExpenseC> fiveExpenses = new List<Model.Manager_Month_FiveExpenseC>();
|
||||
private static List<Model.Manager_Month_InjuryAccidentC> injuryAccidents = new List<Model.Manager_Month_InjuryAccidentC>();
|
||||
|
||||
/// <summary>
|
||||
/// 6.2 分包商HSE费用投入集合
|
||||
/// 无伤害事故统计
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_SubExpenseC> subExpenses = new List<Model.Manager_Month_SubExpenseC>();
|
||||
private static List<Model.Manager_Month_NoInjuryAccidentC> noInjuryAccidents = new List<Model.Manager_Month_NoInjuryAccidentC>();
|
||||
|
||||
/// <summary>
|
||||
/// HSE绩效指标
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_PerformanceIndicatorC> performanceIndicators = new List<Model.Manager_Month_PerformanceIndicatorC>();
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -70,8 +75,9 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
fiveExpenses.Clear();
|
||||
subExpenses.Clear();
|
||||
injuryAccidents.Clear();
|
||||
noInjuryAccidents.Clear();
|
||||
performanceIndicators.Clear();
|
||||
this.MonthReportId = Request.Params["monthReportId"];
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
DateTime months = Convert.ToDateTime(Request.Params["months"]);
|
||||
@@ -90,155 +96,326 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
this.MonthReportId = monthReport.MonthReportId;
|
||||
this.ProjectId = monthReport.ProjectId;
|
||||
months = Convert.ToDateTime(monthReport.Months);
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
this.nbMainCost1.Text = (monthReport.MainCost1 ?? 0).ToString();
|
||||
this.nbMainProjectCost1.Text = (monthReport.MainProjectCost1 ?? 0).ToString();
|
||||
this.nbSubCost1.Text = (monthReport.SubCost1 ?? 0).ToString();
|
||||
this.nbSubProjectCost1.Text = (monthReport.SubProjectCost1 ?? 0).ToString();
|
||||
this.nbMainCost2.Text = (monthReport.MainCost2 ?? 0).ToString();
|
||||
this.nbMainProjectCost2.Text = (monthReport.MainProjectCost2 ?? 0).ToString();
|
||||
this.nbSubCost2.Text = (monthReport.SubCost2 ?? 0).ToString();
|
||||
this.nbSubProjectCost2.Text = (monthReport.SubProjectCost2 ?? 0).ToString();
|
||||
this.nbMainCost3.Text = (monthReport.MainCost3 ?? 0).ToString();
|
||||
this.nbMainProjectCost3.Text = (monthReport.MainProjectCost3 ?? 0).ToString();
|
||||
this.nbSubCost3.Text = (monthReport.SubCost3 ?? 0).ToString();
|
||||
this.nbSubProjectCost3.Text = (monthReport.SubProjectCost3 ?? 0).ToString();
|
||||
this.nbMainCost4.Text = (monthReport.MainCost4 ?? 0).ToString();
|
||||
this.nbMainProjectCost4.Text = (monthReport.MainProjectCost4 ?? 0).ToString();
|
||||
this.nbSubCost4.Text = (monthReport.SubCost4 ?? 0).ToString();
|
||||
this.nbSubProjectCost4.Text = (monthReport.SubProjectCost4 ?? 0).ToString();
|
||||
this.nbMainCost5.Text = (monthReport.MainCost5 ?? 0).ToString();
|
||||
this.nbMainProjectCost5.Text = (monthReport.MainProjectCost5 ?? 0).ToString();
|
||||
this.nbSubCost5.Text = (monthReport.SubCost5 ?? 0).ToString();
|
||||
this.nbSubProjectCost5.Text = (monthReport.SubProjectCost5 ?? 0).ToString();
|
||||
this.nbMainCost6.Text = (monthReport.MainCost6 ?? 0).ToString();
|
||||
this.nbMainProjectCost6.Text = (monthReport.MainProjectCost6 ?? 0).ToString();
|
||||
this.nbSubCost6.Text = (monthReport.SubCost6 ?? 0).ToString();
|
||||
this.nbSubProjectCost6.Text = (monthReport.SubProjectCost6 ?? 0).ToString();
|
||||
this.nbMainCost7.Text = (monthReport.MainCost7 ?? 0).ToString();
|
||||
this.nbMainProjectCost7.Text = (monthReport.MainProjectCost7 ?? 0).ToString();
|
||||
this.nbSubCost7.Text = (monthReport.SubCost7 ?? 0).ToString();
|
||||
this.nbSubProjectCost7.Text = (monthReport.SubProjectCost7 ?? 0).ToString();
|
||||
this.nbMainCost.Text = (monthReport.MainCost ?? 0).ToString();
|
||||
this.nbMainProjectCost.Text = (monthReport.MainProjectCost ?? 0).ToString();
|
||||
this.nbSubCost.Text = (monthReport.SubCost ?? 0).ToString();
|
||||
this.nbSubProjectCost.Text = (monthReport.SubProjectCost ?? 0).ToString();
|
||||
this.nbJianAnCost.Text = (monthReport.JianAnCost ?? 0).ToString();
|
||||
this.nbJianAnProjectCost.Text = (monthReport.JianAnProjectCost ?? 0).ToString();
|
||||
txtDef.Text = monthReport.AccidentDef;
|
||||
|
||||
#region 本月伤害事故统计
|
||||
injuryAccidents = BLL.InjuryAccidentCService.GetInjuryAccidentCByMonthReportId(this.MonthReportId);
|
||||
if (injuryAccidents.Count > 0)
|
||||
{
|
||||
this.gvInjuryAccident.DataSource = injuryAccidents;
|
||||
this.gvInjuryAccident.DataBind();
|
||||
OutputSummaryData();
|
||||
}
|
||||
else
|
||||
{
|
||||
GetInjuryAccident();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 本月无伤害事故统计
|
||||
noInjuryAccidents = BLL.NoInjuryAccidentCService.GetNoInjuryAccidentByMonthReportId(this.MonthReportId);
|
||||
if (noInjuryAccidents.Count > 0)
|
||||
{
|
||||
this.gvNoInjuryAccident.DataSource = noInjuryAccidents;
|
||||
this.gvNoInjuryAccident.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
GetNoInjuryAccident();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HSE绩效指标
|
||||
performanceIndicators = BLL.PerformanceIndicatorCService.GetPerformanceIndicatorByMonthReportId(this.MonthReportId);
|
||||
if (performanceIndicators.Count > 0)
|
||||
{
|
||||
this.gvPerformanceIndicator.DataSource = performanceIndicators;
|
||||
this.gvPerformanceIndicator.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
GetPerformanceIndicator();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
else
|
||||
{
|
||||
GetFiveExpenseList(); //费用投入
|
||||
GetInjuryAccident();
|
||||
GetNoInjuryAccident();
|
||||
GetPerformanceIndicator();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 费用投入
|
||||
#region 本月伤害事故统计
|
||||
/// <summary>
|
||||
/// 费用投入
|
||||
/// 本月伤害事故统计
|
||||
/// </summary>
|
||||
private void GetFiveExpenseList()
|
||||
private void GetInjuryAccident()
|
||||
{
|
||||
Model.Manager_MonthReportC mr = BLL.MonthReportCService.GetLastMonthReportByDate(endTime, this.ProjectId);
|
||||
decimal? sMonthType1 = 0, sMonthType2 = 0, sMonthType3 = 0, sMonthType4 = 0, sMonthType5 = 0, sMonthType6 = 0;
|
||||
decimal? tMonthType1 = 0, tMonthType2 = 0;
|
||||
List<Model.CostGoods_PayRegistration> payRegistrations = BLL.PayRegistrationService.GetPayRegistrationByPayDate(startTime, endTime, this.ProjectId);
|
||||
if (payRegistrations != null)
|
||||
List<Model.Accident_AccidentReport> reports = AccidentReportService.GetAccidentReportsByAccidentTime(startTime, endTime, this.ProjectId);
|
||||
List<Model.Accident_AccidentReport> deathReports = AccidentReportService.GetAccidentReportsByAccidentType("1", startTime, endTime, this.ProjectId);
|
||||
int i = 0;
|
||||
Model.Manager_Month_InjuryAccidentC injury = new Model.Manager_Month_InjuryAccidentC
|
||||
{
|
||||
foreach (var item in payRegistrations)
|
||||
{
|
||||
sMonthType1 += item.SMonthType1_1 + item.SMonthType1_2 + item.SMonthType1_3 + item.SMonthType1_4 + item.SMonthType1_5 + item.SMonthType1_6 + item.SMonthType1_7 + item.SMonthType1_8 + item.SMonthType1_9 + item.SMonthType1_10 + item.SMonthType1_11 + item.SMonthType1_12 + item.SMonthType1_13 + item.SMonthType1_14 + item.SMonthType1_15 + item.SMonthType1_16;
|
||||
sMonthType2 += item.SMonthType2_1 + item.SMonthType2_2 + item.SMonthType2_3 + item.SMonthType2_4;
|
||||
sMonthType3 += item.SMonthType3_1 + item.SMonthType3_2 + item.SMonthType3_3 + item.SMonthType3_4 + item.SMonthType3_5 + item.SMonthType3_6;
|
||||
sMonthType4 += item.SMonthType4_1 + item.SMonthType4_2 + item.SMonthType4_3 + item.SMonthType4_4 + item.SMonthType4_5 + item.SMonthType4_6 + item.SMonthType4_7 + item.SMonthType4_8 + item.SMonthType4_9 + item.SMonthType4_10 + item.SMonthType4_11 + item.SMonthType4_12 + item.SMonthType4_13 + item.SMonthType4_14 + item.SMonthType4_15 + item.SMonthType4_16 + item.SMonthType4_17 + item.SMonthType4_18 + item.SMonthType4_19 + item.SMonthType4_20 + item.SMonthType4_21 + item.SMonthType4_22 + item.SMonthType4_23 + item.SMonthType4_24 + item.SMonthType4_25 + item.SMonthType4_26 + item.SMonthType4_27 + item.SMonthType4_28 + item.SMonthType4_29 + item.SMonthType4_30 + item.SMonthType4_31 + item.SMonthType4_32 + item.SMonthType4_33 + item.SMonthType4_34 + item.SMonthType4_35 + item.SMonthType4_35 + item.SMonthType4_36 + item.SMonthType4_37 + item.SMonthType4_38 + item.SMonthType4_39 + item.SMonthType4_40;
|
||||
sMonthType5 += item.SMonthType5_1 + item.SMonthType5_2 + item.SMonthType5_3 + item.SMonthType5_4 + item.SMonthType5_5 + item.SMonthType5_6;
|
||||
sMonthType6 += item.SMonthType6_1 + item.SMonthType6_2 + item.SMonthType6_3;
|
||||
tMonthType1 += item.TMonthType1_1 + item.TMonthType1_2 + item.TMonthType1_3 + item.TMonthType1_4 + item.TMonthType1_5 + item.TMonthType1_6 + item.TMonthType1_7 + item.TMonthType1_8 + item.TMonthType1_9 + item.TMonthType1_10 + item.TMonthType1_11;
|
||||
//tMonthType2 += item.TMonthType2_1 + item.TMonthType2_2 + item.TMonthType2_3 + item.TMonthType2_4 + item.TMonthType2_5 + item.TMonthType2_6 + item.TMonthType2_7 + item.TMonthType2_8 + item.TMonthType2_9;
|
||||
}
|
||||
this.nbMainCost1.Text = sMonthType1.ToString();
|
||||
this.nbMainCost2.Text = sMonthType2.ToString();
|
||||
this.nbMainCost3.Text = sMonthType3.ToString();
|
||||
this.nbMainCost4.Text = sMonthType4.ToString();
|
||||
this.nbMainCost5.Text = sMonthType5.ToString();
|
||||
this.nbMainCost6.Text = sMonthType6.ToString();
|
||||
this.nbMainCost7.Text = tMonthType1.ToString();
|
||||
this.nbMainCost.Text = (sMonthType1 + sMonthType2 + sMonthType3 + sMonthType4 + sMonthType5 + sMonthType6 + tMonthType1).ToString();
|
||||
}
|
||||
if (mr != null)
|
||||
{
|
||||
this.nbMainProjectCost1.Text = ((mr.MainProjectCost1 ?? 0) + sMonthType1).ToString();
|
||||
this.nbMainProjectCost2.Text = ((mr.MainProjectCost2 ?? 0) + sMonthType2).ToString();
|
||||
this.nbMainProjectCost3.Text = ((mr.MainProjectCost3 ?? 0) + sMonthType3).ToString();
|
||||
this.nbMainProjectCost4.Text = ((mr.MainProjectCost4 ?? 0) + sMonthType4).ToString();
|
||||
this.nbMainProjectCost5.Text = ((mr.MainProjectCost5 ?? 0) + sMonthType5).ToString();
|
||||
this.nbMainProjectCost6.Text = ((mr.MainProjectCost6 ?? 0) + sMonthType6).ToString();
|
||||
this.nbMainProjectCost7.Text = ((mr.MainProjectCost7 ?? 0) + tMonthType1).ToString();
|
||||
this.nbMainProjectCost.Text = ((mr.MainProjectCost ?? 0) + (sMonthType1 + sMonthType2 + sMonthType3 + sMonthType4 + sMonthType5 + sMonthType6 + tMonthType1)).ToString();
|
||||
}
|
||||
else
|
||||
InjuryAccidentId = SQLHelper.GetNewID(typeof(Model.Manager_Month_InjuryAccidentC)),
|
||||
UnitName = "五环",
|
||||
AttemptedIncidents = BLL.AccidentHandleService.GetAccidentHandleByAccidentDate(startTime, endTime, this.ProjectId, BLL.Const.UnitId_CWCEC),//未遂事件起数
|
||||
FirstAidDressing = null, //
|
||||
MedicalTreatment = null,//
|
||||
WorkLimitation = null,//
|
||||
LossPerson = (from x in reports where x.UnitId==Const.UnitId_CWCEC select x.PeopleNum).Sum(),
|
||||
LossWorkTime = (from x in reports where x.UnitId == Const.UnitId_CWCEC select x.WorkingHoursLoss).Sum(),
|
||||
LossEconomy = (from x in reports where x.UnitId == Const.UnitId_CWCEC select x.EconomicLoss).Sum() + (from x in reports where x.UnitId == Const.UnitId_CWCEC select x.EconomicOtherLoss).Sum(),
|
||||
DeathPerson = (from x in deathReports where x.UnitId == Const.UnitId_CWCEC select x.PeopleNum).Sum(),
|
||||
DeathWorkTime = (from x in deathReports where x.UnitId == Const.UnitId_CWCEC select x.WorkingHoursLoss).Sum(),
|
||||
DeathEconomy = (from x in deathReports where x.UnitId == Const.UnitId_CWCEC select x.EconomicLoss).Sum() + (from x in deathReports where x.UnitId == Const.UnitId_CWCEC select x.EconomicOtherLoss).Sum(),
|
||||
};
|
||||
injuryAccidents.Add(injury);
|
||||
i++;
|
||||
Model.Manager_Month_InjuryAccidentC injury2 = new Model.Manager_Month_InjuryAccidentC
|
||||
{
|
||||
InjuryAccidentId = SQLHelper.GetNewID(typeof(Model.Manager_Month_InjuryAccidentC)),
|
||||
UnitName = "分包商",
|
||||
AttemptedIncidents = BLL.AccidentHandleService.GetAccidentHandleByAccidentDate(startTime, endTime, this.ProjectId, BLL.Const.UnitId_Con),//未遂事件起数,//未遂事件起数
|
||||
FirstAidDressing = null, //
|
||||
MedicalTreatment = null,//
|
||||
WorkLimitation = null,//
|
||||
LossPerson = (from x in reports
|
||||
join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId
|
||||
where y.UnitType == Const.ProjectUnitType_2 select x.PeopleNum).Sum(),
|
||||
LossWorkTime = (from x in reports
|
||||
join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId
|
||||
where y.UnitType == Const.ProjectUnitType_2
|
||||
select x.WorkingHoursLoss).Sum(),
|
||||
LossEconomy = (from x in reports
|
||||
join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId
|
||||
where y.UnitType == Const.ProjectUnitType_2
|
||||
select x.EconomicLoss).Sum() + (from x in reports
|
||||
join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId
|
||||
where y.UnitType == Const.ProjectUnitType_2
|
||||
select x.EconomicOtherLoss).Sum(),
|
||||
DeathPerson = (from x in deathReports
|
||||
join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId
|
||||
where y.UnitType == Const.ProjectUnitType_2
|
||||
select x.PeopleNum).Sum(),
|
||||
DeathWorkTime = (from x in deathReports
|
||||
join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId
|
||||
where y.UnitType == Const.ProjectUnitType_2
|
||||
select x.WorkingHoursLoss).Sum(),
|
||||
DeathEconomy = (from x in deathReports
|
||||
join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId
|
||||
where y.UnitType == Const.ProjectUnitType_2
|
||||
select x.EconomicLoss).Sum() + (from x in deathReports
|
||||
join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId
|
||||
where y.UnitType == Const.ProjectUnitType_2
|
||||
select x.EconomicOtherLoss).Sum(),
|
||||
};
|
||||
injuryAccidents.Add(injury2);
|
||||
|
||||
this.nbMainProjectCost1.Text = sMonthType1.ToString();
|
||||
this.nbMainProjectCost2.Text = sMonthType2.ToString();
|
||||
this.nbMainProjectCost3.Text = sMonthType3.ToString();
|
||||
this.nbMainProjectCost4.Text = sMonthType4.ToString();
|
||||
this.nbMainProjectCost5.Text = sMonthType5.ToString();
|
||||
this.nbMainProjectCost6.Text = sMonthType6.ToString();
|
||||
this.nbMainProjectCost7.Text = tMonthType1.ToString();
|
||||
this.nbMainProjectCost.Text = (sMonthType1 + sMonthType2 + sMonthType3 + sMonthType4 + sMonthType5 + sMonthType6 + tMonthType1).ToString();
|
||||
}
|
||||
this.gvInjuryAccident.DataSource = injuryAccidents;
|
||||
this.gvInjuryAccident.DataBind();
|
||||
|
||||
decimal? subMonthType1 = 0, subMonthType2 = 0, subMonthType3 = 0, subMonthType4 = 0, subMonthType5 = 0, subMonthType6 = 0, subMonthType7 = 0;
|
||||
List<Model.CostGoods_SubPayRegistration> subPayRegistrations = BLL.SubPayRegistrationService.GetSubPayRegistrationByPayDate(startTime, endTime, this.ProjectId);
|
||||
if (subPayRegistrations != null)
|
||||
OutputSummaryData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 求和
|
||||
/// </summary>
|
||||
private void OutputSummaryData()
|
||||
{
|
||||
JObject summary = new JObject();
|
||||
|
||||
int TotalAttemptedIncidents = 0, TotalFirstAidDressing = 0, TotalMedicalTreatment = 0, TotalWorkLimitation = 0, TotalLossPerson = 0, TotalDeathPerson = 0;
|
||||
decimal TotalLossWorkTime = 0, TotalLossEconomy = 0, TotalDeathWorkTime = 0, TotalDeathEconomy = 0;
|
||||
foreach (JObject mergedRow in gvInjuryAccident.GetMergedData())
|
||||
{
|
||||
foreach (var item in subPayRegistrations)
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
if (!string.IsNullOrEmpty(values["AttemptedIncidents"].ToString()))
|
||||
{
|
||||
subMonthType1 += item.SMainApproveType1 + item.SMainApproveType2 + item.SMainApproveType3 + item.SMainApproveType4 + item.SMainApproveType5;
|
||||
subMonthType2 += item.SMainApproveType6;
|
||||
subMonthType3 += item.SMainApproveType7;
|
||||
subMonthType4 += item.SMainApproveType8 + item.SMainApproveType9 + item.SMainApproveType10 + item.SMainApproveType11 + item.SMainApproveType12 + item.SMainApproveType13 + item.SMainApproveType14 + item.SMainApproveType15 + item.SMainApproveType16 + item.SMainApproveType17 + item.SMainApproveType18 + item.SMainApproveType19 + item.SMainApproveType20 + item.SMainApproveType21;
|
||||
subMonthType5 += item.SMainApproveType22 + item.SMainApproveType23 + item.SMainApproveType24 + item.SMainApproveType25 + item.SMainApproveType26 + item.SMainApproveType27;
|
||||
subMonthType6 += item.SMainApproveType28;
|
||||
subMonthType6 += item.SMainApproveType29;
|
||||
TotalAttemptedIncidents += values.Value<int>("AttemptedIncidents");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["FirstAidDressing"].ToString()))
|
||||
{
|
||||
TotalFirstAidDressing += values.Value<int>("FirstAidDressing");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["MedicalTreatment"].ToString()))
|
||||
{
|
||||
TotalMedicalTreatment += values.Value<int>("MedicalTreatment");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["WorkLimitation"].ToString()))
|
||||
{
|
||||
TotalWorkLimitation += values.Value<int>("WorkLimitation");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["LossPerson"].ToString()))
|
||||
{
|
||||
TotalLossPerson += values.Value<int>("LossPerson");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["LossWorkTime"].ToString()))
|
||||
{
|
||||
TotalLossWorkTime += values.Value<decimal>("LossWorkTime");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["LossEconomy"].ToString()))
|
||||
{
|
||||
TotalLossEconomy += values.Value<decimal>("LossEconomy");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["DeathPerson"].ToString()))
|
||||
{
|
||||
TotalDeathPerson += values.Value<int>("DeathPerson");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["DeathWorkTime"].ToString()))
|
||||
{
|
||||
TotalDeathWorkTime += values.Value<decimal>("DeathWorkTime");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(values["DeathEconomy"].ToString()))
|
||||
{
|
||||
TotalDeathEconomy += values.Value<decimal>("DeathEconomy");
|
||||
}
|
||||
this.nbSubCost1.Text = subMonthType1.ToString();
|
||||
this.nbSubCost2.Text = subMonthType2.ToString();
|
||||
this.nbSubCost3.Text = subMonthType3.ToString();
|
||||
this.nbSubCost4.Text = subMonthType4.ToString();
|
||||
this.nbSubCost5.Text = subMonthType5.ToString();
|
||||
this.nbSubCost6.Text = subMonthType6.ToString();
|
||||
this.nbSubCost7.Text = subMonthType7.ToString();
|
||||
this.nbSubCost.Text = (subMonthType1 + subMonthType2 + subMonthType3 + subMonthType4 + subMonthType5 + subMonthType6 + subMonthType7).ToString();
|
||||
}
|
||||
if (mr != null)
|
||||
{
|
||||
this.nbSubProjectCost1.Text = ((mr.SubProjectCost1 ?? 0) + subMonthType1).ToString();
|
||||
this.nbSubProjectCost2.Text = ((mr.SubProjectCost2 ?? 0) + subMonthType2).ToString();
|
||||
this.nbSubProjectCost3.Text = ((mr.SubProjectCost3 ?? 0) + subMonthType3).ToString();
|
||||
this.nbSubProjectCost4.Text = ((mr.SubProjectCost4 ?? 0) + subMonthType4).ToString();
|
||||
this.nbSubProjectCost5.Text = ((mr.SubProjectCost5 ?? 0) + subMonthType5).ToString();
|
||||
this.nbSubProjectCost6.Text = ((mr.SubProjectCost6 ?? 0) + subMonthType6).ToString();
|
||||
this.nbSubProjectCost7.Text = ((mr.SubProjectCost7 ?? 0) + subMonthType7).ToString();
|
||||
this.nbSubProjectCost.Text = ((mr.SubProjectCost ?? 0) + (subMonthType1 + subMonthType2 + subMonthType3 + subMonthType4 + subMonthType5 + subMonthType6 + subMonthType7)).ToString();
|
||||
this.nbJianAnProjectCost.Text = (mr.JianAnProjectCost ?? 0).ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.nbSubProjectCost1.Text = subMonthType1.ToString();
|
||||
this.nbSubProjectCost2.Text = subMonthType2.ToString();
|
||||
this.nbSubProjectCost3.Text = subMonthType3.ToString();
|
||||
this.nbSubProjectCost4.Text = subMonthType4.ToString();
|
||||
this.nbSubProjectCost5.Text = subMonthType5.ToString();
|
||||
this.nbSubProjectCost6.Text = subMonthType6.ToString();
|
||||
this.nbSubProjectCost7.Text = subMonthType7.ToString();
|
||||
this.nbSubProjectCost.Text = (subMonthType1 + subMonthType2 + subMonthType3 + subMonthType4 + subMonthType5 + subMonthType6 + subMonthType7).ToString();
|
||||
}
|
||||
summary.Add("UnitName", "项目合计");
|
||||
summary.Add("AttemptedIncidents", TotalAttemptedIncidents.ToString("F2"));
|
||||
summary.Add("FirstAidDressing", TotalFirstAidDressing.ToString("F2"));
|
||||
summary.Add("MedicalTreatment", TotalMedicalTreatment.ToString("F2"));
|
||||
summary.Add("WorkLimitation", TotalWorkLimitation.ToString("F2"));
|
||||
summary.Add("LossPerson", TotalLossPerson.ToString("F2"));
|
||||
summary.Add("LossWorkTime", TotalLossWorkTime.ToString("F2"));
|
||||
summary.Add("LossEconomy", TotalLossEconomy.ToString("F2"));
|
||||
summary.Add("DeathPerson", TotalDeathPerson.ToString("F2"));
|
||||
summary.Add("DeathWorkTime", TotalDeathWorkTime.ToString("F2"));
|
||||
summary.Add("DeathEconomy", TotalDeathEconomy.ToString("F2"));
|
||||
|
||||
gvInjuryAccident.SummaryData = summary;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 本月无伤害事故统计
|
||||
/// <summary>
|
||||
/// 本月无伤害事故统计
|
||||
/// </summary>
|
||||
private void GetNoInjuryAccident()
|
||||
{
|
||||
Model.Manager_Month_NoInjuryAccidentC noInjury = new Model.Manager_Month_NoInjuryAccidentC
|
||||
{
|
||||
NoInjuryAccidentId = SQLHelper.GetNewID(typeof(Model.Manager_Month_NoInjuryAccidentC)),
|
||||
AccidentType = null,
|
||||
EconomicLosses = null,
|
||||
WHAccidentCount = null,
|
||||
SubAccidentCount = null,
|
||||
};
|
||||
noInjuryAccidents.Add(noInjury);
|
||||
|
||||
this.gvNoInjuryAccident.DataSource = noInjuryAccidents;
|
||||
this.gvNoInjuryAccident.DataBind();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region HSE绩效指标
|
||||
/// <summary>
|
||||
/// HSE绩效指标
|
||||
/// </summary>
|
||||
private void GetPerformanceIndicator()
|
||||
{
|
||||
int i = 0;
|
||||
Model.Manager_Month_PerformanceIndicatorC performanceIndicator = new Model.Manager_Month_PerformanceIndicatorC
|
||||
{
|
||||
PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)),
|
||||
IndicatorType = "指导性指标",
|
||||
IndicatorName = "不安全行为指数(不安全行为数/审核小时数)",
|
||||
IndicatorValue = null,
|
||||
SortIndex = 1,
|
||||
};
|
||||
performanceIndicators.Add(performanceIndicator);
|
||||
i++;
|
||||
|
||||
var units = from x in Funs.DB.Project_ProjectUnit
|
||||
where x.ProjectId == this.ProjectId && x.UnitType == "2"
|
||||
orderby x.UnitType
|
||||
select x;
|
||||
if (units.Count() > 0)
|
||||
{
|
||||
foreach (Model.Project_ProjectUnit u in units)
|
||||
{
|
||||
Model.Manager_Month_PerformanceIndicatorC performanceIndicator2 = new Model.Manager_Month_PerformanceIndicatorC
|
||||
{
|
||||
PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)),
|
||||
IndicatorType = "过程性指标",
|
||||
IndicatorName = "HSE隐患按时整改率 | " + BLL.UnitService.GetUnitNameByUnitId(u.UnitId),
|
||||
IndicatorValue = null,
|
||||
SortIndex = 2,
|
||||
};
|
||||
performanceIndicators.Add(performanceIndicator2);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
Model.Manager_Month_PerformanceIndicatorC performanceIndicator3 = new Model.Manager_Month_PerformanceIndicatorC
|
||||
{
|
||||
PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)),
|
||||
IndicatorType = "结果性指标",
|
||||
IndicatorName = "百万工时总可记录事件率(总可记录事件人数/总工时)*10^6",
|
||||
IndicatorValue = null,
|
||||
SortIndex = 3,
|
||||
};
|
||||
performanceIndicators.Add(performanceIndicator3);
|
||||
i++;
|
||||
Model.Manager_Month_PerformanceIndicatorC performanceIndicator4 = new Model.Manager_Month_PerformanceIndicatorC
|
||||
{
|
||||
PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)),
|
||||
IndicatorType = "结果性指标",
|
||||
IndicatorName = "百万工时损失工时率(总损失工时/总工时)*10^6",
|
||||
IndicatorValue = null,
|
||||
SortIndex = 4,
|
||||
};
|
||||
performanceIndicators.Add(performanceIndicator4);
|
||||
i++;
|
||||
Model.Manager_Month_PerformanceIndicatorC performanceIndicator5 = new Model.Manager_Month_PerformanceIndicatorC
|
||||
{
|
||||
PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)),
|
||||
IndicatorType = "结果性指标",
|
||||
IndicatorName = "百万工时损失工时伤害事故率(损失工时伤害事故人数/总工时)*10^6",
|
||||
IndicatorValue = null,
|
||||
SortIndex = 5,
|
||||
};
|
||||
performanceIndicators.Add(performanceIndicator5);
|
||||
i++;
|
||||
Model.Manager_Month_PerformanceIndicatorC performanceIndicator6 = new Model.Manager_Month_PerformanceIndicatorC
|
||||
{
|
||||
PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)),
|
||||
IndicatorType = "结果性指标",
|
||||
IndicatorName = "百万工时事故发生频率(损失工时伤害事故起数/总工时)*10^6",
|
||||
IndicatorValue = null,
|
||||
SortIndex = 6,
|
||||
};
|
||||
performanceIndicators.Add(performanceIndicator6);
|
||||
i++;
|
||||
Model.Manager_Month_PerformanceIndicatorC performanceIndicator7 = new Model.Manager_Month_PerformanceIndicatorC
|
||||
{
|
||||
PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)),
|
||||
IndicatorType = "结果性指标",
|
||||
IndicatorName = "百万工时死亡事故频率(死亡事故起数/总工时)*10^6",
|
||||
IndicatorValue = null,
|
||||
SortIndex = 7,
|
||||
};
|
||||
performanceIndicators.Add(performanceIndicator7);
|
||||
i++;
|
||||
Model.Manager_Month_PerformanceIndicatorC performanceIndicator8 = new Model.Manager_Month_PerformanceIndicatorC
|
||||
{
|
||||
PerformanceIndicatorId = SQLHelper.GetNewID(typeof(Model.Manager_Month_PerformanceIndicatorC)),
|
||||
IndicatorType = "结果性指标",
|
||||
IndicatorName = "百万工时事故死亡率(死亡事故人数/总工时)*10^6",
|
||||
IndicatorValue = null,
|
||||
SortIndex = 8,
|
||||
};
|
||||
performanceIndicators.Add(performanceIndicator8);
|
||||
|
||||
this.gvPerformanceIndicator.DataSource = performanceIndicators;
|
||||
this.gvPerformanceIndicator.DataBind();
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 保存按钮
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
@@ -250,42 +427,11 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
Model.Manager_MonthReportC oldMonthReport = BLL.MonthReportCService.GetMonthReportByMonths(Convert.ToDateTime(Request.Params["months"]), this.CurrUser.LoginProjectId);
|
||||
if (oldMonthReport != null)
|
||||
{
|
||||
oldMonthReport.MainCost1 = Funs.GetNewDecimalOrZero(this.nbMainCost1.Text.Trim());
|
||||
oldMonthReport.MainProjectCost1 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost1.Text.Trim());
|
||||
oldMonthReport.SubCost1 = Funs.GetNewDecimalOrZero(this.nbSubCost1.Text.Trim());
|
||||
oldMonthReport.SubProjectCost1 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost1.Text.Trim());
|
||||
oldMonthReport.MainCost2 = Funs.GetNewDecimalOrZero(this.nbMainCost2.Text.Trim());
|
||||
oldMonthReport.MainProjectCost2 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost2.Text.Trim());
|
||||
oldMonthReport.SubCost2 = Funs.GetNewDecimalOrZero(this.nbSubCost2.Text.Trim());
|
||||
oldMonthReport.SubProjectCost2 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost2.Text.Trim());
|
||||
oldMonthReport.MainCost3 = Funs.GetNewDecimalOrZero(this.nbMainCost3.Text.Trim());
|
||||
oldMonthReport.MainProjectCost3 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost3.Text.Trim());
|
||||
oldMonthReport.SubCost3 = Funs.GetNewDecimalOrZero(this.nbSubCost3.Text.Trim());
|
||||
oldMonthReport.SubProjectCost3 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost3.Text.Trim());
|
||||
oldMonthReport.MainCost4 = Funs.GetNewDecimalOrZero(this.nbMainCost4.Text.Trim());
|
||||
oldMonthReport.MainProjectCost4 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost4.Text.Trim());
|
||||
oldMonthReport.SubCost4 = Funs.GetNewDecimalOrZero(this.nbSubCost4.Text.Trim());
|
||||
oldMonthReport.SubProjectCost4 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost4.Text.Trim());
|
||||
oldMonthReport.MainCost5 = Funs.GetNewDecimalOrZero(this.nbMainCost5.Text.Trim());
|
||||
oldMonthReport.MainProjectCost5 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost5.Text.Trim());
|
||||
oldMonthReport.SubCost5 = Funs.GetNewDecimalOrZero(this.nbSubCost5.Text.Trim());
|
||||
oldMonthReport.SubProjectCost5 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost5.Text.Trim());
|
||||
oldMonthReport.MainCost6 = Funs.GetNewDecimalOrZero(this.nbMainCost6.Text.Trim());
|
||||
oldMonthReport.MainProjectCost6 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost6.Text.Trim());
|
||||
oldMonthReport.SubCost6 = Funs.GetNewDecimalOrZero(this.nbSubCost6.Text.Trim());
|
||||
oldMonthReport.SubProjectCost6 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost6.Text.Trim());
|
||||
oldMonthReport.MainCost7 = Funs.GetNewDecimalOrZero(this.nbMainCost7.Text.Trim());
|
||||
oldMonthReport.MainProjectCost7 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost7.Text.Trim());
|
||||
oldMonthReport.SubCost7 = Funs.GetNewDecimalOrZero(this.nbSubCost7.Text.Trim());
|
||||
oldMonthReport.SubProjectCost7 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost7.Text.Trim());
|
||||
oldMonthReport.MainCost = Funs.GetNewDecimalOrZero(this.nbMainCost.Text.Trim());
|
||||
oldMonthReport.MainProjectCost = Funs.GetNewDecimalOrZero(this.nbMainProjectCost.Text.Trim());
|
||||
oldMonthReport.SubCost = Funs.GetNewDecimalOrZero(this.nbSubCost.Text.Trim());
|
||||
oldMonthReport.SubProjectCost = Funs.GetNewDecimalOrZero(this.nbSubProjectCost.Text.Trim());
|
||||
oldMonthReport.JianAnCost = Funs.GetNewDecimalOrZero(this.nbJianAnCost.Text.Trim());
|
||||
oldMonthReport.JianAnProjectCost = Funs.GetNewDecimalOrZero(this.nbJianAnProjectCost.Text.Trim());
|
||||
oldMonthReport.AccidentDef = this.txtDef.Text.Trim();
|
||||
BLL.MonthReportCService.UpdateMonthReport(oldMonthReport);
|
||||
|
||||
OperateInjuryAccidentSort(MonthReportId);
|
||||
OperateNoInjuryAccidentSort(MonthReportId);
|
||||
OperatePerformanceIndicatorSort(MonthReportId);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, oldMonthReport.MonthReportCode, oldMonthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnModify);
|
||||
}
|
||||
else
|
||||
@@ -299,49 +445,146 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
monthReport.Months = Funs.GetNewDateTime(Request.Params["months"]);
|
||||
monthReport.ReportMan = this.CurrUser.UserId;
|
||||
monthReport.MonthReportDate = DateTime.Now;
|
||||
monthReport.MainCost1 = Funs.GetNewDecimalOrZero(this.nbMainCost1.Text.Trim());
|
||||
monthReport.MainProjectCost1 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost1.Text.Trim());
|
||||
monthReport.SubCost1 = Funs.GetNewDecimalOrZero(this.nbSubCost1.Text.Trim());
|
||||
monthReport.SubProjectCost1 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost1.Text.Trim());
|
||||
monthReport.MainCost2 = Funs.GetNewDecimalOrZero(this.nbMainCost2.Text.Trim());
|
||||
monthReport.MainProjectCost2 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost2.Text.Trim());
|
||||
monthReport.SubCost2 = Funs.GetNewDecimalOrZero(this.nbSubCost2.Text.Trim());
|
||||
monthReport.SubProjectCost2 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost2.Text.Trim());
|
||||
monthReport.MainCost3 = Funs.GetNewDecimalOrZero(this.nbMainCost3.Text.Trim());
|
||||
monthReport.MainProjectCost3 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost3.Text.Trim());
|
||||
monthReport.SubCost3 = Funs.GetNewDecimalOrZero(this.nbSubCost3.Text.Trim());
|
||||
monthReport.SubProjectCost3 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost3.Text.Trim());
|
||||
monthReport.MainCost4 = Funs.GetNewDecimalOrZero(this.nbMainCost4.Text.Trim());
|
||||
monthReport.MainProjectCost4 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost4.Text.Trim());
|
||||
monthReport.SubCost4 = Funs.GetNewDecimalOrZero(this.nbSubCost4.Text.Trim());
|
||||
monthReport.SubProjectCost4 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost4.Text.Trim());
|
||||
monthReport.MainCost5 = Funs.GetNewDecimalOrZero(this.nbMainCost5.Text.Trim());
|
||||
monthReport.MainProjectCost5 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost5.Text.Trim());
|
||||
monthReport.SubCost5 = Funs.GetNewDecimalOrZero(this.nbSubCost5.Text.Trim());
|
||||
monthReport.SubProjectCost5 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost5.Text.Trim());
|
||||
monthReport.MainCost6 = Funs.GetNewDecimalOrZero(this.nbMainCost6.Text.Trim());
|
||||
monthReport.MainProjectCost6 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost6.Text.Trim());
|
||||
monthReport.SubCost6 = Funs.GetNewDecimalOrZero(this.nbSubCost6.Text.Trim());
|
||||
monthReport.SubProjectCost6 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost6.Text.Trim());
|
||||
monthReport.MainCost7 = Funs.GetNewDecimalOrZero(this.nbMainCost7.Text.Trim());
|
||||
monthReport.MainProjectCost7 = Funs.GetNewDecimalOrZero(this.nbMainProjectCost7.Text.Trim());
|
||||
monthReport.SubCost7 = Funs.GetNewDecimalOrZero(this.nbSubCost7.Text.Trim());
|
||||
monthReport.SubProjectCost7 = Funs.GetNewDecimalOrZero(this.nbSubProjectCost7.Text.Trim());
|
||||
monthReport.MainCost = Funs.GetNewDecimalOrZero(this.nbMainCost.Text.Trim());
|
||||
monthReport.MainProjectCost = Funs.GetNewDecimalOrZero(this.nbMainProjectCost.Text.Trim());
|
||||
monthReport.SubCost = Funs.GetNewDecimalOrZero(this.nbSubCost.Text.Trim());
|
||||
monthReport.SubProjectCost = Funs.GetNewDecimalOrZero(this.nbSubProjectCost.Text.Trim());
|
||||
monthReport.JianAnCost = Funs.GetNewDecimalOrZero(this.nbJianAnCost.Text.Trim());
|
||||
monthReport.JianAnProjectCost = Funs.GetNewDecimalOrZero(this.nbJianAnProjectCost.Text.Trim());
|
||||
monthReport.AccidentDef = this.txtDef.Text.Trim();
|
||||
BLL.MonthReportCService.AddMonthReport(monthReport);
|
||||
|
||||
OperateInjuryAccidentSort(this.MonthReportId);
|
||||
OperateNoInjuryAccidentSort(this.MonthReportId);
|
||||
OperatePerformanceIndicatorSort(this.MonthReportId);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, monthReport.MonthReportCode, monthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
#region 本月伤害事故统计
|
||||
/// <summary>
|
||||
/// 本月伤害事故统计
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperateInjuryAccidentSort(string monthReportId)
|
||||
{
|
||||
BLL.InjuryAccidentCService.DeleteInjuryAccidengtByMonthReportId(monthReportId);
|
||||
jerqueSaveInjuryAccidentCList();
|
||||
foreach (Model.Manager_Month_InjuryAccidentC injury in injuryAccidents)
|
||||
{
|
||||
injury.MonthReportId = monthReportId;
|
||||
BLL.InjuryAccidentCService.AddInjuryAccidentC(injury);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查并保存本月伤害事故统计
|
||||
/// </summary>
|
||||
private void jerqueSaveInjuryAccidentCList()
|
||||
{
|
||||
injuryAccidents.Clear();
|
||||
JArray mergedData = gvInjuryAccident.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_InjuryAccidentC monthPlanSort = new Model.Manager_Month_InjuryAccidentC
|
||||
{
|
||||
InjuryAccidentId = this.gvInjuryAccident.Rows[i].DataKeys[0].ToString(),
|
||||
UnitName = values.Value<string>("UnitName").ToString(),
|
||||
AttemptedIncidents = Funs.GetNewInt(values.Value<string>("AttemptedIncidents").ToString()),
|
||||
FirstAidDressing = Funs.GetNewInt(values.Value<string>("FirstAidDressing").ToString()),
|
||||
MedicalTreatment = Funs.GetNewInt(values.Value<string>("MedicalTreatment").ToString()),
|
||||
WorkLimitation = Funs.GetNewInt(values.Value<string>("WorkLimitation").ToString()),
|
||||
LossPerson = Funs.GetNewInt(values.Value<string>("LossPerson").ToString()),
|
||||
LossWorkTime = Funs.GetNewDecimal(values.Value<string>("LossWorkTime").ToString()),
|
||||
LossEconomy = Funs.GetNewDecimal(values.Value<string>("LossEconomy").ToString()),
|
||||
DeathPerson = Funs.GetNewInt(values.Value<string>("DeathPerson").ToString()),
|
||||
DeathWorkTime = Funs.GetNewDecimal(values.Value<string>("DeathWorkTime").ToString()),
|
||||
DeathEconomy = Funs.GetNewDecimal(values.Value<string>("DeathEconomy").ToString()),
|
||||
};
|
||||
injuryAccidents.Add(monthPlanSort);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 本月无伤害事故统计
|
||||
/// <summary>
|
||||
/// 本月伤害事故统计
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperateNoInjuryAccidentSort(string monthReportId)
|
||||
{
|
||||
BLL.NoInjuryAccidentCService.DeleteNoInjuryAccidentByMonthReportId(monthReportId);
|
||||
jerqueSaveNoInjuryAccidentCList();
|
||||
foreach (Model.Manager_Month_NoInjuryAccidentC noInjury in noInjuryAccidents)
|
||||
{
|
||||
noInjury.MonthReportId = monthReportId;
|
||||
BLL.NoInjuryAccidentCService.AddNoInjuryAccident(noInjury);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查并保存本月无伤害事故统计
|
||||
/// </summary>
|
||||
private void jerqueSaveNoInjuryAccidentCList()
|
||||
{
|
||||
noInjuryAccidents.Clear();
|
||||
JArray mergedData = gvNoInjuryAccident.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_NoInjuryAccidentC noInjuryAccident = new Model.Manager_Month_NoInjuryAccidentC
|
||||
{
|
||||
NoInjuryAccidentId = this.gvNoInjuryAccident.Rows[i].DataKeys[0].ToString(),
|
||||
AccidentType = values.Value<string>("AccidentType").ToString(),
|
||||
EconomicLosses = Funs.GetNewDecimal(values.Value<string>("EconomicLosses").ToString()),
|
||||
WHAccidentCount = Funs.GetNewInt(values.Value<string>("WHAccidentCount").ToString()),
|
||||
SubAccidentCount = Funs.GetNewInt(values.Value<string>("SubAccidentCount").ToString()),
|
||||
};
|
||||
noInjuryAccidents.Add(noInjuryAccident);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HSE绩效指标
|
||||
/// <summary>
|
||||
/// HSE绩效指标
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperatePerformanceIndicatorSort(string monthReportId)
|
||||
{
|
||||
BLL.PerformanceIndicatorCService.DeletePerformanceIndicatorByMonthReportId(monthReportId);
|
||||
jerqueSavePerformanceIndicatorCList();
|
||||
foreach (Model.Manager_Month_PerformanceIndicatorC performanceIndicator in performanceIndicators)
|
||||
{
|
||||
performanceIndicator.MonthReportId = monthReportId;
|
||||
BLL.PerformanceIndicatorCService.AddPerformanceIndicator(performanceIndicator);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查并保存HSE绩效指标
|
||||
/// </summary>
|
||||
private void jerqueSavePerformanceIndicatorCList()
|
||||
{
|
||||
performanceIndicators.Clear();
|
||||
JArray mergedData = gvPerformanceIndicator.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_PerformanceIndicatorC performanceIndicator = new Model.Manager_Month_PerformanceIndicatorC
|
||||
{
|
||||
PerformanceIndicatorId = this.gvPerformanceIndicator.Rows[i].DataKeys[0].ToString(),
|
||||
IndicatorType = values.Value<string>("IndicatorType").ToString(),
|
||||
IndicatorName = values.Value<string>("IndicatorName").ToString(),
|
||||
IndicatorValue = values.Value<string>("IndicatorValue").ToString(),
|
||||
SortIndex = Funs.GetNewInt(values.Value<string>("SortIndex").ToString()),
|
||||
};
|
||||
performanceIndicators.Add(performanceIndicator);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+227
-317
@@ -31,13 +31,238 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel34 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel34;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel37 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel37;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// gvInjuryAccident 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvInjuryAccident;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox1;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox2;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox3;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox4;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox5;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox6;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox7;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox8;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox9 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox9;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox10 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox10;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel2;
|
||||
|
||||
/// <summary>
|
||||
/// gvNoInjuryAccident 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvNoInjuryAccident;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox1;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox11 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox11;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox12;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox13 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox13;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel3;
|
||||
|
||||
/// <summary>
|
||||
/// txtDef 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtDef;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel4;
|
||||
|
||||
/// <summary>
|
||||
/// gvPerformanceIndicator 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvPerformanceIndicator;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox4;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
@@ -56,320 +281,5 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainCost1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainCost1;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainProjectCost1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainProjectCost1;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubCost1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubCost1;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubProjectCost1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubProjectCost1;
|
||||
|
||||
/// <summary>
|
||||
/// nbJianAnCost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbJianAnCost;
|
||||
|
||||
/// <summary>
|
||||
/// nbJianAnProjectCost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbJianAnProjectCost;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainCost2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainCost2;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainProjectCost2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainProjectCost2;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubCost2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubCost2;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubProjectCost2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubProjectCost2;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainCost3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainCost3;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainProjectCost3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainProjectCost3;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubCost3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubCost3;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubProjectCost3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubProjectCost3;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainCost4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainCost4;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainProjectCost4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainProjectCost4;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubCost4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubCost4;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubProjectCost4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubProjectCost4;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainCost5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainCost5;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainProjectCost5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainProjectCost5;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubCost5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubCost5;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubProjectCost5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubProjectCost5;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainCost6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainCost6;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainProjectCost6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainProjectCost6;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubCost6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubCost6;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubProjectCost6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubProjectCost6;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainCost7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainCost7;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainProjectCost7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainProjectCost7;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubCost7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubCost7;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubProjectCost7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubProjectCost7;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainCost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainCost;
|
||||
|
||||
/// <summary>
|
||||
/// nbMainProjectCost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbMainProjectCost;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubCost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubCost;
|
||||
|
||||
/// <summary>
|
||||
/// nbSubProjectCost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox nbSubProjectCost;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,102 +4,139 @@
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<title>下月HSE工作计划</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel43" Layout="Anchor" Title="7.HSE事故/事件描述" runat="server">
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel44" Layout="Anchor" Title="7.1 管理绩效数据统计(表一)" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvAccidentDesciption" ShowBorder="true" ShowHeader="false" Title="管理绩效数据统计"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="AccidentDesId"
|
||||
DataKeyNames="AccidentDesId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
Height="220px" EnableColumnLines="true" >
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="300px" ColumnID="Matter" DataField="Matter" FieldType="String"
|
||||
HeaderText="事项" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox45">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="300px" ColumnID="MonthDataNum" DataField="MonthDataNum" FieldType="String"
|
||||
HeaderText="本月数据" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox4" NoDecimal="true" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="300px" ColumnID="YearDataNum" DataField="YearDataNum" FieldType="String"
|
||||
HeaderText="年度累计数据" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:NumberBox ID="NumberBox5" NoDecimal="true" NoNegative="true" MinValue="0" runat="server">
|
||||
</f:NumberBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel45" Layout="Anchor" Title="7.2 管理绩效数据统计(表二,如项目发生事故,请继续填写下表,否则填无)"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvAccidentDesciptionItem" ShowBorder="true" ShowHeader="false" Title="管理绩效数据统计"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="AccidentDesItemId"
|
||||
DataKeyNames="AccidentDesItemId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
Height="220px" EnableColumnLines="true" >
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="300px" ColumnID="Matter" DataField="Matter" FieldType="String"
|
||||
HeaderText="事项" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox46">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="500px" ColumnID="Datas" DataField="Datas" FieldType="String"
|
||||
HeaderText="数据" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox47">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel46" Layout="Anchor" Title="7.3 事故/事件描述(文字描述)" runat="server">
|
||||
<Items>
|
||||
<f:TextArea runat="server" ID="txtAccidentDes">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel43" Layout="Anchor" Title="7.下月HSE工作计划" runat="server">
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel44" Layout="Anchor" Title="7.1 新增危险源识别及控制" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvHazardC" ShowBorder="true" ShowHeader="false" Title="新增危险源识别及控制"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="HazardId"
|
||||
DataKeyNames="HazardId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
Height="220px" EnableColumnLines="true" OnRowCommand="gvHazardC_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNewHazardC" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNewHazardC_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="180px" ColumnID="WorkArea" DataField="WorkArea" FieldType="String"
|
||||
HeaderText="活动/过程/地点" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox1">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="EnvironmentalFactors" DataField="EnvironmentalFactors" FieldType="String"
|
||||
HeaderText="危险源环境因素描述" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox2">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="180px" ColumnID="Consequence" DataField="Consequence" FieldType="String"
|
||||
HeaderText="可能导致的后果" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox3">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="ControlMeasures" DataField="ControlMeasures" FieldType="String"
|
||||
HeaderText="控制措施" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox4">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="IsMajor" DataField="IsMajor" FieldType="String"
|
||||
HeaderText="是否重大危险源/重要环境因素" HeaderTextAlign="Center" TextAlign="Left" RendererFunction="renderGender">
|
||||
<Editor>
|
||||
<f:DropDownList ID="drpIsMajor" runat="server">
|
||||
<f:ListItem Value="True" Text="是" />
|
||||
<f:ListItem Value="False" Text="否" />
|
||||
</f:DropDownList>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel45" Layout="Anchor" Title="7.2 其他HSE工作计划"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvOtherWorkPlanC" ShowBorder="true" ShowHeader="false" Title="其他HSE工作计划"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="OtherWorkPlanId"
|
||||
DataKeyNames="OtherWorkPlanId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
Height="220px" EnableColumnLines="true" OnRowCommand="gvOtherWorkPlanC_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar19" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnOtherWorkPlanC" ToolTip="新增" Icon="Add" runat="server" OnClick="btnOtherWorkPlanC_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="300px" ColumnID="WorkContent" DataField="WorkContent" FieldType="String"
|
||||
HeaderText="计划工作内容描述" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox6">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
<script type="text/jscript">
|
||||
function renderGender(value) {
|
||||
var returnValue = null;
|
||||
if (value == "True") {
|
||||
returnValue = "是";
|
||||
}
|
||||
else if (value == "False") {
|
||||
returnValue = "否";
|
||||
} else {
|
||||
returnValue = "";
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Manager
|
||||
{
|
||||
@@ -42,24 +38,16 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
}
|
||||
}
|
||||
|
||||
private static DateTime startTime;
|
||||
|
||||
private static DateTime endTime;
|
||||
|
||||
private static DateTime yearStartTime;
|
||||
|
||||
private static DateTime projectStartTime;
|
||||
|
||||
#region 定义集合
|
||||
/// <summary>
|
||||
/// 7.1 管理绩效数据统计集合(表一)
|
||||
/// 新增危险源识别及控制
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_AccidentDesciptionC> accidentDesciptions = new List<Model.Manager_Month_AccidentDesciptionC>();
|
||||
private static List<Model.Manager_Month_HazardC> hazardCs = new List<Model.Manager_Month_HazardC>();
|
||||
|
||||
/// <summary>
|
||||
/// 7.2 管理绩效数据统计集合(表二)
|
||||
/// 其他HSE工作计划
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_AccidentDesciptionItemC> AccidentDesciptionItems = new List<Model.Manager_Month_AccidentDesciptionItemC>();
|
||||
private static List<Model.Manager_Month_OtherWorkPlanC> otherWorkPlanCs = new List<Model.Manager_Month_OtherWorkPlanC>();
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -70,295 +58,173 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
accidentDesciptions.Clear();
|
||||
AccidentDesciptionItems.Clear();
|
||||
hazardCs.Clear();
|
||||
otherWorkPlanCs.Clear();
|
||||
this.MonthReportId = Request.Params["monthReportId"];
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
DateTime months = Convert.ToDateTime(Request.Params["months"]);
|
||||
startTime = Convert.ToDateTime(Request.Params["startTime"]);
|
||||
endTime = Convert.ToDateTime(Request.Params["endTime"]);
|
||||
yearStartTime = Convert.ToDateTime(Request.Params["yearStartTime"]);
|
||||
Model.Manager_MonthReportC monthReport = BLL.MonthReportCService.GetMonthReportByMonths(months, this.CurrUser.LoginProjectId);
|
||||
Model.Manager_MonthReportC mr = BLL.MonthReportCService.GetLastMonthReportByDate(endTime, this.ProjectId);
|
||||
Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(ProjectId);
|
||||
if (project.StartDate != null)
|
||||
{
|
||||
projectStartTime = Convert.ToDateTime(project.StartDate);
|
||||
}
|
||||
if (monthReport != null)
|
||||
{
|
||||
this.MonthReportId = monthReport.MonthReportId;
|
||||
this.ProjectId = monthReport.ProjectId;
|
||||
months = Convert.ToDateTime(monthReport.Months);
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
//7.1 管理绩效数据统计(表一)
|
||||
accidentDesciptions = (from x in db.Manager_Month_AccidentDesciptionC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList();
|
||||
if (accidentDesciptions.Count > 0)
|
||||
//新增危险源识别及控制
|
||||
hazardCs = BLL.HazardCService.GetHazardByMonthReportId(this.MonthReportId);
|
||||
if (hazardCs.Count > 0)
|
||||
{
|
||||
this.gvAccidentDesciption.DataSource = accidentDesciptions;
|
||||
this.gvAccidentDesciption.DataBind();
|
||||
this.gvHazardC.DataSource = hazardCs;
|
||||
this.gvHazardC.DataBind();
|
||||
}
|
||||
else
|
||||
//其他HSE工作计划
|
||||
otherWorkPlanCs = BLL.OtherWorkPlanCService.GetOtherWorkPlanByMonthReportId(this.MonthReportId);
|
||||
if (otherWorkPlanCs.Count > 0)
|
||||
{
|
||||
GetAccidentDesciption();//管理绩效数据统计(表一)
|
||||
this.gvOtherWorkPlanC.DataSource = otherWorkPlanCs;
|
||||
this.gvOtherWorkPlanC.DataBind();
|
||||
}
|
||||
//7.2 管理绩效数据统计(表二)
|
||||
AccidentDesciptionItems = (from x in db.Manager_Month_AccidentDesciptionItemC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList();
|
||||
if (AccidentDesciptionItems.Count > 0)
|
||||
{
|
||||
this.gvAccidentDesciptionItem.DataSource = AccidentDesciptionItems;
|
||||
this.gvAccidentDesciptionItem.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
GetAccidentDesciptionItem();//管理绩效数据统计(表二)
|
||||
}
|
||||
this.txtAccidentDes.Text = monthReport.AccidentDes;
|
||||
}
|
||||
else
|
||||
{
|
||||
GetAccidentDesciption();//管理绩效数据统计(表一)
|
||||
GetAccidentDesciptionItem();//管理绩效数据统计(表二)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 事故
|
||||
#region 下月HSE工作计划
|
||||
#region 新增危险源识别及控制
|
||||
/// <summary>
|
||||
///加载显示初始值
|
||||
/// 新增危险源识别及控制
|
||||
/// </summary>
|
||||
private void GetAccidentDesciption()
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewHazardC_Click(object sender, EventArgs e)
|
||||
{
|
||||
System.Web.UI.WebControls.ListItem[] list = BLL.AccidentDesciptionCService.GetAccidentDesciptionList();
|
||||
var accidentPersonRecords = from x in Funs.DB.Accident_AccidentPersonRecord
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.AccidentDate >= startTime && x.AccidentDate < endTime
|
||||
select x;
|
||||
var yearAccidentPersonRecords = from x in Funs.DB.Accident_AccidentPersonRecord
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.AccidentDate >= yearStartTime && x.AccidentDate < endTime
|
||||
select x;
|
||||
var accidentHandles = from x in Funs.DB.Accident_AccidentHandle
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.AccidentDate >= startTime && x.AccidentDate < endTime
|
||||
select x;
|
||||
var yearAccidentHandles = from x in Funs.DB.Accident_AccidentHandle
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.AccidentDate >= yearStartTime && x.AccidentDate < endTime
|
||||
select x;
|
||||
if (list.Count() > 0)
|
||||
jerqueSaveHazardCList();
|
||||
Model.Manager_Month_HazardC hazardC = new Model.Manager_Month_HazardC
|
||||
{
|
||||
for (int i = 0; i < list.Count(); i++)
|
||||
{
|
||||
Model.Manager_Month_AccidentDesciptionC des = new Model.Manager_Month_AccidentDesciptionC
|
||||
{
|
||||
AccidentDesId = SQLHelper.GetNewID(typeof(Model.Manager_Month_AccidentDesciptionC)),
|
||||
Matter = list[i].Value
|
||||
};
|
||||
if (des.Matter == "百万工时伤害率" || des.Matter == "伤害严重率")
|
||||
{
|
||||
//百万工时伤害率:轻重死总累计人数*1000000/累计总人工时(保留2位小数)
|
||||
//伤害严重率:事故损失工时数/9*1000000/累计总人工时(保留2位小数)
|
||||
if (accidentHandles.Count() > 0)
|
||||
{
|
||||
decimal totalHseManhours = 0;
|
||||
Model.Manager_MonthReportC monthReport = BLL.MonthReportCService.GetMonthReportByMonths(Convert.ToDateTime(Request.Params["months"]), this.CurrUser.LoginProjectId);
|
||||
if (monthReport != null)
|
||||
{
|
||||
if (monthReport.TotalHseManhours != null)
|
||||
{
|
||||
totalHseManhours = monthReport.TotalHseManhours ?? 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.SitePerson_MonthReport mReport = BLL.Funs.DB.SitePerson_MonthReport.FirstOrDefault(x => x.CompileDate == Convert.ToDateTime(Request.Params["months"])); //当月人工时月报
|
||||
if (mReport != null)
|
||||
{
|
||||
totalHseManhours = (from x in Funs.DB.SitePerson_MonthReportDetail
|
||||
join y in Funs.DB.SitePerson_MonthReportUnitDetail
|
||||
on x.MonthReportDetailId equals y.MonthReportDetailId
|
||||
where x.MonthReportId == mReport.MonthReportId
|
||||
select y.PersonWorkTime ?? 0).Sum();
|
||||
}
|
||||
}
|
||||
if (des.Matter == "百万工时伤害率")
|
||||
{
|
||||
int a = (from x in accidentHandles
|
||||
select x.MinorInjuriesPersonNum ?? 0).Sum();
|
||||
int b = (from x in accidentHandles
|
||||
select x.InjuriesPersonNum ?? 0).Sum();
|
||||
int c = (from x in accidentHandles
|
||||
select x.DeathPersonNum ?? 0).Sum();
|
||||
if (totalHseManhours != 0)
|
||||
{
|
||||
des.MonthDataNum = decimal.Round((Convert.ToDecimal(a + b + c) * 1000000 / totalHseManhours), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
des.MonthDataNum = 0;
|
||||
}
|
||||
int ya = (from x in yearAccidentHandles
|
||||
select x.MinorInjuriesPersonNum ?? 0).Sum();
|
||||
int yb = (from x in yearAccidentHandles
|
||||
select x.InjuriesPersonNum ?? 0).Sum();
|
||||
int yc = (from x in yearAccidentHandles
|
||||
select x.DeathPersonNum ?? 0).Sum();
|
||||
if (totalHseManhours != 0)
|
||||
{
|
||||
des.YearDataNum = decimal.Round((Convert.ToDecimal(ya + yb + yc) * 1000000 / totalHseManhours), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
des.YearDataNum = 0;
|
||||
}
|
||||
}
|
||||
else if (des.Matter == "伤害严重率")
|
||||
{
|
||||
decimal workHoursLoss = (from x in accidentHandles
|
||||
select x.WorkHoursLoss ?? 0).Sum();
|
||||
if (totalHseManhours != 0)
|
||||
{
|
||||
des.MonthDataNum = decimal.Round((Convert.ToDecimal(workHoursLoss) / 9 * 1000000 / totalHseManhours), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
des.MonthDataNum = 0;
|
||||
}
|
||||
decimal yearWorkHoursLoss = (from x in yearAccidentHandles
|
||||
select x.WorkHoursLoss ?? 0).Sum();
|
||||
if (totalHseManhours != 0)
|
||||
{
|
||||
des.YearDataNum = decimal.Round((Convert.ToDecimal(yearWorkHoursLoss) / 9 * 1000000 / totalHseManhours), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
des.YearDataNum = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
des.MonthDataNum = (from x in accidentPersonRecords
|
||||
join y in Funs.DB.Base_AccidentType
|
||||
on x.AccidentTypeId equals y.AccidentTypeId
|
||||
where y.AccidentTypeName.Contains(des.Matter)
|
||||
select x).Count();
|
||||
des.YearDataNum = (from x in yearAccidentPersonRecords
|
||||
join y in Funs.DB.Base_AccidentType
|
||||
on x.AccidentTypeId equals y.AccidentTypeId
|
||||
where y.AccidentTypeName.Contains(des.Matter)
|
||||
select x).Count();
|
||||
}
|
||||
accidentDesciptions.Add(des);
|
||||
}
|
||||
}
|
||||
this.gvAccidentDesciption.DataSource = accidentDesciptions;
|
||||
this.gvAccidentDesciption.DataBind();
|
||||
HazardId = SQLHelper.GetNewID(typeof(Model.Manager_Month_HazardC))
|
||||
};
|
||||
hazardCs.Add(hazardC);
|
||||
this.gvHazardC.DataSource = hazardCs;
|
||||
this.gvHazardC.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查并保存事故(表一)集合
|
||||
/// 新增危险源识别及控制行点击事件
|
||||
/// </summary>
|
||||
private void jerqueSaveAccidentDesciptionList()
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void gvHazardC_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
accidentDesciptions.Clear();
|
||||
JArray mergedData = gvAccidentDesciption.GetMergedData();
|
||||
jerqueSaveHazardCList();
|
||||
string rowID = this.gvHazardC.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "Delete")
|
||||
{
|
||||
foreach (var item in hazardCs)
|
||||
{
|
||||
if (item.HazardId == rowID)
|
||||
{
|
||||
hazardCs.Remove(item);
|
||||
break;
|
||||
}
|
||||
}
|
||||
gvHazardC.DataSource = hazardCs;
|
||||
gvHazardC.DataBind();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 新增危险源识别及控制
|
||||
/// </summary>
|
||||
private void jerqueSaveHazardCList()
|
||||
{
|
||||
hazardCs.Clear();
|
||||
JArray mergedData = gvHazardC.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_AccidentDesciptionC accidentDesciptionSort = new Model.Manager_Month_AccidentDesciptionC
|
||||
Model.Manager_Month_HazardC hazardC = new Model.Manager_Month_HazardC
|
||||
{
|
||||
AccidentDesId = this.gvAccidentDesciption.Rows[i].DataKeys[0].ToString(),
|
||||
SortIndex = i,
|
||||
Matter = values.Value<string>("Matter").ToString(),
|
||||
MonthDataNum = Funs.GetNewDecimalOrZero(values.Value<string>("MonthDataNum").ToString()),
|
||||
YearDataNum = Funs.GetNewDecimalOrZero(values.Value<string>("YearDataNum").ToString())
|
||||
HazardId = this.gvHazardC.Rows[i].DataKeys[0].ToString(),
|
||||
WorkArea = values.Value<string>("WorkArea").ToString(),
|
||||
EnvironmentalFactors = values.Value<string>("EnvironmentalFactors").ToString(),
|
||||
Consequence = values.Value<string>("Consequence").ToString(),
|
||||
ControlMeasures = values.Value<string>("ControlMeasures").ToString()
|
||||
};
|
||||
accidentDesciptions.Add(accidentDesciptionSort);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载显示初始值
|
||||
/// </summary>
|
||||
private void GetAccidentDesciptionItem()
|
||||
{
|
||||
System.Web.UI.WebControls.ListItem[] list = BLL.AccidentDesciptionItemCService.GetMatterList();
|
||||
var accidentHandles = from x in Funs.DB.Accident_AccidentHandle
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.AccidentDate >= startTime && x.AccidentDate < endTime
|
||||
select x;
|
||||
if (list.Count() > 0)
|
||||
{
|
||||
for (int i = 0; i < list.Count(); i++)
|
||||
if (!string.IsNullOrEmpty(values.Value<string>("IsMajor").ToString()))
|
||||
{
|
||||
Model.Manager_Month_AccidentDesciptionItemC item = new Model.Manager_Month_AccidentDesciptionItemC
|
||||
{
|
||||
AccidentDesItemId = SQLHelper.GetNewID(typeof(Model.Manager_Month_AccidentDesciptionItemC)),
|
||||
Matter = list[i].Value
|
||||
};
|
||||
if (accidentHandles.Count() > 0)
|
||||
{
|
||||
if (item.Matter == "轻伤人数")
|
||||
{
|
||||
item.Datas = (from x in accidentHandles
|
||||
select x.MinorInjuriesPersonNum ?? 0).Sum().ToString();
|
||||
}
|
||||
else if (item.Matter == "重伤人数")
|
||||
{
|
||||
item.Datas = (from x in accidentHandles
|
||||
select x.InjuriesPersonNum ?? 0).Sum().ToString();
|
||||
}
|
||||
else if (item.Matter == "死亡人数")
|
||||
{
|
||||
item.Datas = (from x in accidentHandles
|
||||
select x.DeathPersonNum ?? 0).Sum().ToString();
|
||||
}
|
||||
else if (item.Matter == "直接经济损失")
|
||||
{
|
||||
item.Datas = (from x in accidentHandles
|
||||
select x.MoneyLoss ?? 0).Sum().ToString();
|
||||
}
|
||||
else if (item.Matter == "事故失时数")
|
||||
{
|
||||
item.Datas = (from x in accidentHandles
|
||||
select x.WorkHoursLoss ?? 0).Sum().ToString();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
item.Datas = "无";
|
||||
}
|
||||
AccidentDesciptionItems.Add(item);
|
||||
hazardC.IsMajor = Convert.ToBoolean(values.Value<string>("IsMajor").ToString());
|
||||
}
|
||||
hazardCs.Add(hazardC);
|
||||
}
|
||||
this.gvAccidentDesciptionItem.DataSource = AccidentDesciptionItems;
|
||||
this.gvAccidentDesciptionItem.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 其他HSE工作计划
|
||||
/// <summary>
|
||||
/// 增加其他HSE工作计划
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOtherWorkPlanC_Click(object sender, EventArgs e)
|
||||
{
|
||||
jerqueSaveOtherWorkPlanCList();
|
||||
Model.Manager_Month_OtherWorkPlanC otherWorkPlanC = new Model.Manager_Month_OtherWorkPlanC
|
||||
{
|
||||
OtherWorkPlanId = SQLHelper.GetNewID(typeof(Model.Manager_Month_OtherWorkPlanC))
|
||||
};
|
||||
otherWorkPlanCs.Add(otherWorkPlanC);
|
||||
this.gvOtherWorkPlanC.DataSource = otherWorkPlanCs;
|
||||
this.gvOtherWorkPlanC.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查并保存事故(表二)集合
|
||||
/// 删除其他HSE工作计划
|
||||
/// </summary>
|
||||
private void jerqueSaveAccidentDesciptionItemList()
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void gvOtherWorkPlanC_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
AccidentDesciptionItems.Clear();
|
||||
JArray mergedData = gvAccidentDesciptionItem.GetMergedData();
|
||||
jerqueSaveOtherWorkPlanCList();
|
||||
string rowID = this.gvOtherWorkPlanC.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "Delete")
|
||||
{
|
||||
foreach (var item in otherWorkPlanCs)
|
||||
{
|
||||
if (item.OtherWorkPlanId == rowID)
|
||||
{
|
||||
otherWorkPlanCs.Remove(item);
|
||||
break;
|
||||
}
|
||||
}
|
||||
gvOtherWorkPlanC.DataSource = otherWorkPlanCs;
|
||||
gvOtherWorkPlanC.DataBind();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 其他HSE工作计划
|
||||
/// </summary>
|
||||
private void jerqueSaveOtherWorkPlanCList()
|
||||
{
|
||||
otherWorkPlanCs.Clear();
|
||||
JArray mergedData = gvOtherWorkPlanC.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_AccidentDesciptionItemC accidentDesciptionItemSort = new Model.Manager_Month_AccidentDesciptionItemC
|
||||
Model.Manager_Month_OtherWorkPlanC otherWorkPlanC = new Model.Manager_Month_OtherWorkPlanC
|
||||
{
|
||||
AccidentDesItemId = this.gvAccidentDesciptionItem.Rows[i].DataKeys[0].ToString(),
|
||||
OtherWorkPlanId = this.gvOtherWorkPlanC.Rows[i].DataKeys[0].ToString(),
|
||||
SortIndex = i,
|
||||
Matter = values.Value<string>("Matter").ToString(),
|
||||
Datas = values.Value<string>("Datas").ToString()
|
||||
WorkContent = values.Value<string>("WorkContent").ToString()
|
||||
};
|
||||
AccidentDesciptionItems.Add(accidentDesciptionItemSort);
|
||||
otherWorkPlanCs.Add(otherWorkPlanC);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 保存按钮
|
||||
/// <summary>
|
||||
@@ -371,10 +237,9 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
Model.Manager_MonthReportC oldMonthReport = BLL.MonthReportCService.GetMonthReportByMonths(Convert.ToDateTime(Request.Params["months"]), this.CurrUser.LoginProjectId);
|
||||
if (oldMonthReport != null)
|
||||
{
|
||||
oldMonthReport.AccidentDes = this.txtAccidentDes.Text.Trim();
|
||||
BLL.MonthReportCService.UpdateMonthReport(oldMonthReport);
|
||||
OperateAccidentDesciptionSort(MonthReportId);
|
||||
OperateAccidentDesciptionItemSort(MonthReportId);
|
||||
OperateHazardCSort(MonthReportId);
|
||||
OperateOtherWorkPlanCSort(MonthReportId);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, oldMonthReport.MonthReportCode, oldMonthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnModify);
|
||||
}
|
||||
else
|
||||
@@ -388,10 +253,9 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
monthReport.Months = Funs.GetNewDateTime(Request.Params["months"]);
|
||||
monthReport.ReportMan = this.CurrUser.UserId;
|
||||
monthReport.MonthReportDate = DateTime.Now;
|
||||
monthReport.AccidentDes = this.txtAccidentDes.Text.Trim();
|
||||
BLL.MonthReportCService.AddMonthReport(monthReport);
|
||||
OperateAccidentDesciptionSort(MonthReportId);
|
||||
OperateAccidentDesciptionItemSort(MonthReportId);
|
||||
OperateHazardCSort(MonthReportId);
|
||||
OperateOtherWorkPlanCSort(MonthReportId);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, monthReport.MonthReportCode, monthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
@@ -399,32 +263,32 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 7.1 管理绩效数据统计 表一
|
||||
/// 新增危险源识别及控制
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperateAccidentDesciptionSort(string monthReportId)
|
||||
private void OperateHazardCSort(string monthReportId)
|
||||
{
|
||||
BLL.AccidentDesciptionCService.DeleteAccidentDesciptionByMonthReportId(monthReportId);
|
||||
jerqueSaveAccidentDesciptionList();
|
||||
foreach (Model.Manager_Month_AccidentDesciptionC des in accidentDesciptions)
|
||||
BLL.HazardCService.DeleteHazardByMonthReportId(monthReportId);
|
||||
jerqueSaveHazardCList();
|
||||
foreach (Model.Manager_Month_HazardC des in hazardCs)
|
||||
{
|
||||
des.MonthReportId = monthReportId;
|
||||
BLL.AccidentDesciptionCService.AddAccidentDesciption(des);
|
||||
BLL.HazardCService.AddHazard(des);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 7.2 管理绩效数据统计 表二
|
||||
/// 7.2 其他HSE工作计划
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperateAccidentDesciptionItemSort(string monthReportId)
|
||||
private void OperateOtherWorkPlanCSort(string monthReportId)
|
||||
{
|
||||
BLL.AccidentDesciptionItemCService.DeleteAccidentDesciptionItemByMonthReportId(monthReportId);
|
||||
jerqueSaveAccidentDesciptionItemList();
|
||||
foreach (Model.Manager_Month_AccidentDesciptionItemC item in AccidentDesciptionItems)
|
||||
BLL.OtherWorkPlanCService.DeleteOtherWorkPlanByMonthReportId(monthReportId);
|
||||
jerqueSaveOtherWorkPlanCList();
|
||||
foreach (Model.Manager_Month_OtherWorkPlanC item in otherWorkPlanCs)
|
||||
{
|
||||
item.MonthReportId = monthReportId;
|
||||
BLL.AccidentDesciptionItemCService.AddAccidentDesciptionItem(item);
|
||||
BLL.OtherWorkPlanCService.AddOtherWorkPlan(item);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
+52
-25
@@ -58,40 +58,76 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.GroupPanel GroupPanel44;
|
||||
|
||||
/// <summary>
|
||||
/// gvAccidentDesciption 控件。
|
||||
/// gvHazardC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvAccidentDesciption;
|
||||
protected global::FineUIPro.Grid gvHazardC;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox45 控件。
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox45;
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox4 控件。
|
||||
/// btnNewHazardC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox4;
|
||||
protected global::FineUIPro.Button btnNewHazardC;
|
||||
|
||||
/// <summary>
|
||||
/// NumberBox5 控件。
|
||||
/// TextBox1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox NumberBox5;
|
||||
protected global::FineUIPro.TextBox TextBox1;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox2;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox3;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox4;
|
||||
|
||||
/// <summary>
|
||||
/// drpIsMajor 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpIsMajor;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel45 控件。
|
||||
@@ -103,49 +139,40 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.GroupPanel GroupPanel45;
|
||||
|
||||
/// <summary>
|
||||
/// gvAccidentDesciptionItem 控件。
|
||||
/// gvOtherWorkPlanC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvAccidentDesciptionItem;
|
||||
protected global::FineUIPro.Grid gvOtherWorkPlanC;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox46 控件。
|
||||
/// Toolbar19 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox46;
|
||||
protected global::FineUIPro.Toolbar Toolbar19;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox47 控件。
|
||||
/// btnOtherWorkPlanC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox47;
|
||||
protected global::FineUIPro.Button btnOtherWorkPlanC;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel46 控件。
|
||||
/// TextBox6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel46;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDes 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAccidentDes;
|
||||
protected global::FineUIPro.TextBox TextBox6;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
|
||||
@@ -4,227 +4,84 @@
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<title>8.HSE合规义务识别与评价</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel48" Layout="Anchor" Title="8.下月工作计划" runat="server">
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel49" Layout="Anchor" Title="8.1 危险源动态识别及控制" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvHazard" ShowBorder="true" ShowHeader="false" Title="其他工作情况" runat="server"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="HazardId" DataKeyNames="HazardId"
|
||||
EnableMultiSelect="false" ShowGridHeader="true" Height="220px" EnableColumnLines="true"
|
||||
OnRowCommand="gvHazard_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar19" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNewHazard" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNewHazard_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="250px" ColumnID="WorkArea" DataField="WorkArea" FieldType="String"
|
||||
HeaderText="下月计划施工的区域" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox49">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="250px" ColumnID="Subcontractor" DataField="Subcontractor" FieldType="String"
|
||||
HeaderText="所属分包商" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox50">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="250px" ColumnID="DangerousSource" DataField="DangerousSource"
|
||||
FieldType="String" HeaderText="可能存在的危险源" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox51">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="250px" ColumnID="ControlMeasures" DataField="ControlMeasures"
|
||||
ExpandUnusedSpace="true" FieldType="String" HeaderText="计划采取的控制措施" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox52">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel51" Layout="Anchor" Title="8.2 HSE检查" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvCheck" ShowBorder="true" ShowHeader="false" Title="HSE检查" runat="server"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="CheckId" DataKeyNames="CheckId"
|
||||
EnableMultiSelect="false" ShowGridHeader="true" Height="220px" EnableColumnLines="true"
|
||||
OnRowCommand="gvCheck_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar21" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNewCheck" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNewCheck_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="300px" ColumnID="CheckType" DataField="CheckType" FieldType="String"
|
||||
HeaderText="下月计划开展的检查类型" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox58">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Inspectors" DataField="Inspectors" FieldType="String"
|
||||
HeaderText="参检人员" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox59">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="CheckDate" DataField="CheckDate" FieldType="String"
|
||||
HeaderText="计划开展时间" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox60">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="Remark" DataField="Remark" FieldType="String"
|
||||
HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox62">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel54" Layout="Anchor" Title="8.3 应急管理(对下月应急管理工作进行描述)" runat="server">
|
||||
<Items>
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea runat="server" ID="txtNextEmergencyResponse" Label="">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel58" Layout="Anchor" Title="8.4 HSE管理文件/方案修编计划" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvManageDocPlan" ShowBorder="true" ShowHeader="false" Title="HSE管理文件/方案修编计划"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="ManageDocPlanId"
|
||||
DataKeyNames="ManageDocPlanId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
Height="220px" EnableColumnLines="true" OnRowCommand="gvManageDocPlan_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar26" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNewManageDocPlan" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNewManageDocPlan_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="400px" ColumnID="ManageDocPlanName" DataField="ManageDocPlanName"
|
||||
FieldType="String" HeaderText="下月计划修编的方案/文件名称" HeaderTextAlign="Center" TextAlign="Left"
|
||||
ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox78">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="CompileMan" DataField="CompileMan" FieldType="String"
|
||||
HeaderText="修编人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox79">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="CompileDate" DataField="CompileDate" FieldType="String"
|
||||
HeaderText="计划完成时间" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox80">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel ID="GroupPanel59" Layout="Anchor" Title="8.5 其他HSE工作计划" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="gvOtherWorkPlan" ShowBorder="true" ShowHeader="false" Title="其他HSE工作计划"
|
||||
runat="server" AllowCellEditing="true" ClicksToEdit="1" DataIDField="OtherWorkPlanId"
|
||||
DataKeyNames="OtherWorkPlanId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
Height="220px" EnableColumnLines="true" OnRowCommand="gvOtherWorkPlan_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar27" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNewOtherWorkPlan" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNewOtherWorkPlan_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="400px" ColumnID="WorkContent" DataField="WorkContent" FieldType="String"
|
||||
HeaderText="计划工作内容描述" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox81">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server">
|
||||
</f:PageManager>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel48" Layout="Anchor" Title="8.HSE合规义务识别与评价" runat="server">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="HSE合规义务识别与评价" runat="server"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="ComplianceObligationsId" DataKeyNames="ComplianceObligationsId"
|
||||
EnableMultiSelect="false" ShowGridHeader="true" Height="220px" EnableColumnLines="true"
|
||||
OnRowCommand="Grid1_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar19" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNew_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="250px" ColumnID="InformationContent" DataField="InformationContent" FieldType="String"
|
||||
HeaderText="HSE合规义务信息内容" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox1">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="250px" ColumnID="ResponseMeasures" DataField="ResponseMeasures" FieldType="String"
|
||||
HeaderText="响应措施内容" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox2">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="250px" ColumnID="ImplementationStatus" DataField="ImplementationStatus"
|
||||
FieldType="String" HeaderText="实施情况" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox3">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="250px" ColumnID="EvaluationConclusion" DataField="EvaluationConclusion"
|
||||
ExpandUnusedSpace="true" FieldType="String" HeaderText="评价结论" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox runat="server" ID="TextBox4">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
<f:Label runat="server" ID="lb111" Text="备注:1、如本月存在新发的法律法规、地方政府规章、合同变更等情况,必须进行合规义务识别。2、如下月存在易造成群死群伤的重大安全风险,也需针对管理活动进行合规义务识别。">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
using System;
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Manager
|
||||
{
|
||||
@@ -41,65 +39,11 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
private static DateTime startTime;
|
||||
|
||||
private static DateTime endTime;
|
||||
|
||||
private static DateTime yearStartTime;
|
||||
|
||||
private static DateTime projectStartTime;
|
||||
|
||||
#region 定义集合
|
||||
/// <summary>
|
||||
/// 9.1 危险源动态识别及控制集合
|
||||
/// HSE合规义务识别与评价表
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_HazardC> hazards = new List<Model.Manager_Month_HazardC>();
|
||||
|
||||
/// <summary>
|
||||
/// 9.2 HSSE培训集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_TrainC> trains = new List<Model.Manager_Month_TrainC>();
|
||||
|
||||
/// <summary>
|
||||
/// 9.3 HSSE检查集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_CheckC> checks = new List<Model.Manager_Month_CheckC>();
|
||||
|
||||
/// <summary>
|
||||
/// 9.4 HSSE会议集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_MeetingC> meetings = new List<Model.Manager_Month_MeetingC>();
|
||||
|
||||
/// <summary>
|
||||
/// 9.5 HSSE活动集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_ActivitiesC> activitiess = new List<Model.Manager_Month_ActivitiesC>();
|
||||
|
||||
/// <summary>
|
||||
/// 9.6.1 应急预案修编集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_EmergencyPlanC> emergencyPlans = new List<Model.Manager_Month_EmergencyPlanC>();
|
||||
|
||||
/// <summary>
|
||||
/// 9.6.2 应急演练活动集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_EmergencyExercisesC> emergencyExercisess = new List<Model.Manager_Month_EmergencyExercisesC>();
|
||||
|
||||
/// <summary>
|
||||
/// 9.7 HSE费用投入计划集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_CostInvestmentPlanC> costInvestmentPlans = new List<Model.Manager_Month_CostInvestmentPlanC>();
|
||||
|
||||
/// <summary>
|
||||
/// 9.8 HSE管理文件/方案修编计划集合
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_ManageDocPlanC> manageDocPlans = new List<Model.Manager_Month_ManageDocPlanC>();
|
||||
|
||||
/// <summary>
|
||||
/// 9.9 其他HSE工作计划
|
||||
/// </summary>
|
||||
private static List<Model.Manager_Month_OtherWorkPlanC> otherWorkPlans = new List<Model.Manager_Month_OtherWorkPlanC>();
|
||||
private static List<Model.Manager_Month_ComplianceObligationsC> complianceObligationsCs = new List<Model.Manager_Month_ComplianceObligationsC>();
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -110,316 +54,87 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
hazards.Clear();
|
||||
trains.Clear();
|
||||
checks.Clear();
|
||||
meetings.Clear();
|
||||
activitiess.Clear();
|
||||
emergencyPlans.Clear();
|
||||
emergencyExercisess.Clear();
|
||||
costInvestmentPlans.Clear();
|
||||
manageDocPlans.Clear();
|
||||
otherWorkPlans.Clear();
|
||||
complianceObligationsCs.Clear();
|
||||
this.MonthReportId = Request.Params["monthReportId"];
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
DateTime months = Convert.ToDateTime(Request.Params["months"]);
|
||||
startTime = Convert.ToDateTime(Request.Params["startTime"]);
|
||||
endTime = Convert.ToDateTime(Request.Params["endTime"]);
|
||||
yearStartTime = Convert.ToDateTime(Request.Params["yearStartTime"]);
|
||||
Model.Manager_MonthReportC monthReport = BLL.MonthReportCService.GetMonthReportByMonths(months, this.CurrUser.LoginProjectId);
|
||||
Model.Manager_MonthReportC mr = BLL.MonthReportCService.GetLastMonthReportByDate(endTime, this.ProjectId);
|
||||
Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(ProjectId);
|
||||
if (project.StartDate != null)
|
||||
{
|
||||
projectStartTime = Convert.ToDateTime(project.StartDate);
|
||||
}
|
||||
|
||||
if (monthReport != null)
|
||||
{
|
||||
this.MonthReportId = monthReport.MonthReportId;
|
||||
this.ProjectId = monthReport.ProjectId;
|
||||
months = Convert.ToDateTime(monthReport.Months);
|
||||
this.txtNextEmergencyResponse.Text = monthReport.NextEmergencyResponse;
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
//9.1 危险源动态识别及控制
|
||||
hazards = (from x in db.Manager_Month_HazardC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList();
|
||||
if (hazards.Count > 0)
|
||||
|
||||
complianceObligationsCs = (from x in Funs.DB.Manager_Month_ComplianceObligationsC where x.MonthReportId == this.MonthReportId select x).ToList();
|
||||
if (complianceObligationsCs.Count>0)
|
||||
{
|
||||
this.gvHazard.DataSource = hazards;
|
||||
this.gvHazard.DataBind();
|
||||
}
|
||||
//9.3 HSSE检查
|
||||
checks = (from x in db.Manager_Month_CheckC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList();
|
||||
if (checks.Count > 0)
|
||||
{
|
||||
this.gvCheck.DataSource = checks;
|
||||
this.gvCheck.DataBind();
|
||||
}
|
||||
//9.8 HSE管理文件/方案修编计划
|
||||
manageDocPlans = (from x in db.Manager_Month_ManageDocPlanC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList();
|
||||
if (manageDocPlans.Count > 0)
|
||||
{
|
||||
this.gvManageDocPlan.DataSource = manageDocPlans;
|
||||
this.gvManageDocPlan.DataBind();
|
||||
}
|
||||
//9.9其他HSE工作计划
|
||||
otherWorkPlans = (from x in db.Manager_Month_OtherWorkPlanC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList();
|
||||
if (otherWorkPlans.Count > 0)
|
||||
{
|
||||
this.gvOtherWorkPlan.DataSource = otherWorkPlans;
|
||||
this.gvOtherWorkPlan.DataBind();
|
||||
this.Grid1.DataSource = complianceObligationsCs;
|
||||
this.Grid1.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 危险源动态识别及控制
|
||||
/// <summary>
|
||||
/// 增加危险源动态识别及控制
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewHazard_Click(object sender, EventArgs e)
|
||||
#region HSE合规义务识别与评价
|
||||
///// <summary>
|
||||
///// 增加HSE合规义务识别与评价
|
||||
///// </summary>
|
||||
///// <param name="sender"></param>
|
||||
///// <param name="e"></param>
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
jerqueSaveMonthHazardList();
|
||||
Model.Manager_Month_HazardC hazardSort = new Model.Manager_Month_HazardC
|
||||
jerqueSaveComplianceObligationsCList();
|
||||
Model.Manager_Month_ComplianceObligationsC complianceObligationsC = new Model.Manager_Month_ComplianceObligationsC
|
||||
{
|
||||
HazardId = SQLHelper.GetNewID(typeof(Model.Manager_Month_HazardC))
|
||||
ComplianceObligationsId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ComplianceObligationsC))
|
||||
};
|
||||
hazards.Add(hazardSort);
|
||||
this.gvHazard.DataSource = hazards;
|
||||
this.gvHazard.DataBind();
|
||||
complianceObligationsCs.Add(complianceObligationsC);
|
||||
this.Grid1.DataSource = complianceObligationsCs;
|
||||
this.Grid1.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查并保存危险源动态识别及控制集合
|
||||
/// </summary>
|
||||
private void jerqueSaveMonthHazardList()
|
||||
///// <summary>
|
||||
///// 检查并保存危险源动态识别及控制集合
|
||||
///// </summary>
|
||||
private void jerqueSaveComplianceObligationsCList()
|
||||
{
|
||||
hazards.Clear();
|
||||
JArray mergedData = gvHazard.GetMergedData();
|
||||
complianceObligationsCs.Clear();
|
||||
JArray mergedData = Grid1.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_HazardC hazardSort = new Model.Manager_Month_HazardC
|
||||
Model.Manager_Month_ComplianceObligationsC hazardSort = new Model.Manager_Month_ComplianceObligationsC
|
||||
{
|
||||
HazardId = this.gvHazard.Rows[i].DataKeys[0].ToString(),
|
||||
SortIndex = i,
|
||||
WorkArea = values.Value<string>("WorkArea").ToString(),
|
||||
Subcontractor = values.Value<string>("Subcontractor").ToString(),
|
||||
DangerousSource = values.Value<string>("DangerousSource").ToString(),
|
||||
ControlMeasures = values.Value<string>("ControlMeasures").ToString()
|
||||
ComplianceObligationsId = this.Grid1.Rows[i].DataKeys[0].ToString(),
|
||||
InformationContent = values.Value<string>("InformationContent").ToString(),
|
||||
ResponseMeasures = values.Value<string>("ResponseMeasures").ToString(),
|
||||
ImplementationStatus = values.Value<string>("ImplementationStatus").ToString(),
|
||||
EvaluationConclusion = values.Value<string>("EvaluationConclusion").ToString()
|
||||
};
|
||||
hazards.Add(hazardSort);
|
||||
complianceObligationsCs.Add(hazardSort);
|
||||
}
|
||||
}
|
||||
|
||||
protected void gvHazard_RowCommand(object sender, GridCommandEventArgs e)
|
||||
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
jerqueSaveMonthHazardList();
|
||||
string rowID = this.gvHazard.DataKeys[e.RowIndex][0].ToString();
|
||||
jerqueSaveComplianceObligationsCList();
|
||||
string rowID = this.Grid1.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "Delete")
|
||||
{
|
||||
foreach (var item in hazards)
|
||||
foreach (var item in complianceObligationsCs)
|
||||
{
|
||||
if (item.HazardId == rowID)
|
||||
if (item.ComplianceObligationsId == rowID)
|
||||
{
|
||||
hazards.Remove(item);
|
||||
complianceObligationsCs.Remove(item);
|
||||
break;
|
||||
}
|
||||
}
|
||||
gvHazard.DataSource = hazards;
|
||||
gvHazard.DataBind();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HSE检查
|
||||
/// <summary>
|
||||
/// 增加HSE检查
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewCheck_Click(object sender, EventArgs e)
|
||||
{
|
||||
jerqueSaveMonthCheckList();
|
||||
Model.Manager_Month_CheckC checkSort = new Model.Manager_Month_CheckC
|
||||
{
|
||||
CheckId = SQLHelper.GetNewID(typeof(Model.Manager_Month_CheckC))
|
||||
};
|
||||
checks.Add(checkSort);
|
||||
this.gvCheck.DataSource = checks;
|
||||
this.gvCheck.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查并保存HSE检查集合
|
||||
/// </summary>
|
||||
private void jerqueSaveMonthCheckList()
|
||||
{
|
||||
checks.Clear();
|
||||
JArray mergedData = gvCheck.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_CheckC checkSort = new Model.Manager_Month_CheckC
|
||||
{
|
||||
CheckId = this.gvCheck.Rows[i].DataKeys[0].ToString(),
|
||||
SortIndex = i,
|
||||
CheckType = values.Value<string>("CheckType").ToString(),
|
||||
Inspectors = values.Value<string>("Inspectors").ToString(),
|
||||
CheckDate = values.Value<string>("CheckDate").ToString(),
|
||||
Remark = values.Value<string>("Remark").ToString()
|
||||
};
|
||||
checks.Add(checkSort);
|
||||
}
|
||||
}
|
||||
|
||||
protected void gvCheck_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
jerqueSaveMonthCheckList();
|
||||
string rowID = this.gvCheck.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "Delete")
|
||||
{
|
||||
foreach (var item in checks)
|
||||
{
|
||||
if (item.CheckId == rowID)
|
||||
{
|
||||
checks.Remove(item);
|
||||
break;
|
||||
}
|
||||
}
|
||||
gvCheck.DataSource = checks;
|
||||
gvCheck.DataBind();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region HSE管理文件/方案修编计划
|
||||
/// <summary>
|
||||
/// 增加HSE管理文件/方案修编计划
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewManageDocPlan_Click(object sender, EventArgs e)
|
||||
{
|
||||
jerqueSaveMonthManageDocPlanList();
|
||||
Model.Manager_Month_ManageDocPlanC manageDocPlanSort = new Model.Manager_Month_ManageDocPlanC
|
||||
{
|
||||
ManageDocPlanId = SQLHelper.GetNewID(typeof(Model.Manager_Month_ManageDocPlanC))
|
||||
};
|
||||
manageDocPlans.Add(manageDocPlanSort);
|
||||
this.gvManageDocPlan.DataSource = manageDocPlans;
|
||||
this.gvManageDocPlan.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查并保存HSE管理文件/方案修编计划集合
|
||||
/// </summary>
|
||||
private void jerqueSaveMonthManageDocPlanList()
|
||||
{
|
||||
manageDocPlans.Clear();
|
||||
JArray mergedData = gvManageDocPlan.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_ManageDocPlanC manageDocPlanSort = new Model.Manager_Month_ManageDocPlanC
|
||||
{
|
||||
ManageDocPlanId = this.gvManageDocPlan.Rows[i].DataKeys[0].ToString(),
|
||||
SortIndex = i,
|
||||
ManageDocPlanName = values.Value<string>("ManageDocPlanName").ToString(),
|
||||
CompileMan = values.Value<string>("CompileMan").ToString(),
|
||||
CompileDate = values.Value<string>("CompileDate").ToString()
|
||||
};
|
||||
manageDocPlans.Add(manageDocPlanSort);
|
||||
}
|
||||
}
|
||||
|
||||
protected void gvManageDocPlan_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
jerqueSaveMonthManageDocPlanList();
|
||||
string rowID = this.gvManageDocPlan.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "Delete")
|
||||
{
|
||||
foreach (var item in manageDocPlans)
|
||||
{
|
||||
if (item.ManageDocPlanId == rowID)
|
||||
{
|
||||
manageDocPlans.Remove(item);
|
||||
break;
|
||||
}
|
||||
}
|
||||
gvManageDocPlan.DataSource = manageDocPlans;
|
||||
gvManageDocPlan.DataBind();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 其他HSE工作计划
|
||||
/// <summary>
|
||||
/// 增加其他HSE工作计划
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewOtherWorkPlan_Click(object sender, EventArgs e)
|
||||
{
|
||||
jerqueSaveMonthOtherWorkPlanList();
|
||||
Model.Manager_Month_OtherWorkPlanC otherWorkPlanSort = new Model.Manager_Month_OtherWorkPlanC
|
||||
{
|
||||
OtherWorkPlanId = SQLHelper.GetNewID(typeof(Model.Manager_Month_OtherWorkPlanC))
|
||||
};
|
||||
otherWorkPlans.Add(otherWorkPlanSort);
|
||||
this.gvOtherWorkPlan.DataSource = otherWorkPlans;
|
||||
this.gvOtherWorkPlan.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查并保存其他HSE工作计划集合
|
||||
/// </summary>
|
||||
private void jerqueSaveMonthOtherWorkPlanList()
|
||||
{
|
||||
otherWorkPlans.Clear();
|
||||
JArray mergedData = gvOtherWorkPlan.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
Model.Manager_Month_OtherWorkPlanC otherWorkPlanSort = new Model.Manager_Month_OtherWorkPlanC
|
||||
{
|
||||
OtherWorkPlanId = this.gvOtherWorkPlan.Rows[i].DataKeys[0].ToString(),
|
||||
SortIndex = i,
|
||||
WorkContent = values.Value<string>("WorkContent").ToString()
|
||||
};
|
||||
otherWorkPlans.Add(otherWorkPlanSort);
|
||||
}
|
||||
}
|
||||
|
||||
protected void gvOtherWorkPlan_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
jerqueSaveMonthOtherWorkPlanList();
|
||||
string rowID = this.gvOtherWorkPlan.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "Delete")
|
||||
{
|
||||
foreach (var item in otherWorkPlans)
|
||||
{
|
||||
if (item.OtherWorkPlanId == rowID)
|
||||
{
|
||||
otherWorkPlans.Remove(item);
|
||||
break;
|
||||
}
|
||||
}
|
||||
gvOtherWorkPlan.DataSource = otherWorkPlans;
|
||||
gvOtherWorkPlan.DataBind();
|
||||
Grid1.DataSource = complianceObligationsCs;
|
||||
Grid1.DataBind();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
@@ -436,12 +151,8 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
Model.Manager_MonthReportC oldMonthReport = BLL.MonthReportCService.GetMonthReportByMonths(Convert.ToDateTime(Request.Params["months"]), this.CurrUser.LoginProjectId);
|
||||
if (oldMonthReport != null)
|
||||
{
|
||||
oldMonthReport.NextEmergencyResponse = this.txtNextEmergencyResponse.Text.Trim();
|
||||
BLL.MonthReportCService.UpdateMonthReport(oldMonthReport);
|
||||
OperateHazardListSort(MonthReportId);
|
||||
OperateCheckListSort(MonthReportId);
|
||||
OperateManageDocPlanSort(MonthReportId);
|
||||
OperateOtherWorkPlanSort(MonthReportId);
|
||||
OperateComplianceObligationsCSort(MonthReportId);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, oldMonthReport.MonthReportCode, oldMonthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnModify);
|
||||
}
|
||||
else
|
||||
@@ -455,12 +166,8 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
monthReport.Months = Funs.GetNewDateTime(Request.Params["months"]);
|
||||
monthReport.ReportMan = this.CurrUser.UserId;
|
||||
monthReport.MonthReportDate = DateTime.Now;
|
||||
monthReport.NextEmergencyResponse = this.txtNextEmergencyResponse.Text.Trim();
|
||||
BLL.MonthReportCService.AddMonthReport(monthReport);
|
||||
OperateHazardListSort(MonthReportId);
|
||||
OperateCheckListSort(MonthReportId);
|
||||
OperateManageDocPlanSort(MonthReportId);
|
||||
OperateOtherWorkPlanSort(MonthReportId);
|
||||
OperateComplianceObligationsCSort(MonthReportId);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, monthReport.MonthReportCode, monthReport.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
@@ -468,62 +175,17 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 9.1 危险源动态识别及控制
|
||||
/// HSE合规义务识别与评价
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperateHazardListSort(string monthReportId)
|
||||
private void OperateComplianceObligationsCSort(string monthReportId)
|
||||
{
|
||||
BLL.HazardCService.DeleteHazardByMonthReportId(monthReportId);
|
||||
jerqueSaveMonthHazardList();
|
||||
foreach (Model.Manager_Month_HazardC hazard in hazards)
|
||||
BLL.ComplianceObligationsCService.DeleteComplianceObligationsCByMonthReportId(monthReportId);
|
||||
jerqueSaveComplianceObligationsCList();
|
||||
foreach (Model.Manager_Month_ComplianceObligationsC coc in complianceObligationsCs)
|
||||
{
|
||||
hazard.MonthReportId = monthReportId;
|
||||
BLL.HazardCService.AddHazard(hazard);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 9.3 HSSE检查
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperateCheckListSort(string monthReportId)
|
||||
{
|
||||
BLL.CheckCService.DeleteCheckByMonthReportId(monthReportId);
|
||||
jerqueSaveMonthCheckList();
|
||||
foreach (Model.Manager_Month_CheckC check in checks)
|
||||
{
|
||||
check.MonthReportId = monthReportId;
|
||||
BLL.CheckCService.AddCheck(check);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 9.8 HSE管理文件/方案修编计划
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperateManageDocPlanSort(string monthReportId)
|
||||
{
|
||||
BLL.ManageDocPlanCService.DeleteManageDocPlanByMonthReportId(monthReportId);
|
||||
jerqueSaveMonthManageDocPlanList();
|
||||
foreach (Model.Manager_Month_ManageDocPlanC item in manageDocPlans)
|
||||
{
|
||||
item.MonthReportId = monthReportId;
|
||||
BLL.ManageDocPlanCService.AddManageDocPlan(item);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 9.9 其他HSE工作计划
|
||||
/// </summary>
|
||||
/// <param name="monthReportId"></param>
|
||||
private void OperateOtherWorkPlanSort(string monthReportId)
|
||||
{
|
||||
BLL.OtherWorkPlanCService.DeleteOtherWorkPlanByMonthReportId(monthReportId);
|
||||
jerqueSaveMonthOtherWorkPlanList();
|
||||
foreach (Model.Manager_Month_OtherWorkPlanC item in otherWorkPlans)
|
||||
{
|
||||
item.MonthReportId = monthReportId;
|
||||
BLL.OtherWorkPlanCService.AddOtherWorkPlan(item);
|
||||
coc.MonthReportId = monthReportId;
|
||||
BLL.ComplianceObligationsCService.AddComplianceObligationsC(coc);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
+14
-221
@@ -49,22 +49,13 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.GroupPanel GroupPanel48;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel49 控件。
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel49;
|
||||
|
||||
/// <summary>
|
||||
/// gvHazard 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvHazard;
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar19 控件。
|
||||
@@ -76,256 +67,58 @@ namespace FineUIPro.Web.HSSE.Manager {
|
||||
protected global::FineUIPro.Toolbar Toolbar19;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewHazard 控件。
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewHazard;
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox49 控件。
|
||||
/// TextBox1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox49;
|
||||
protected global::FineUIPro.TextBox TextBox1;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox50 控件。
|
||||
/// TextBox2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox50;
|
||||
protected global::FineUIPro.TextBox TextBox2;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox51 控件。
|
||||
/// TextBox3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox51;
|
||||
protected global::FineUIPro.TextBox TextBox3;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox52 控件。
|
||||
/// TextBox4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox52;
|
||||
protected global::FineUIPro.TextBox TextBox4;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel51 控件。
|
||||
/// lb111 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel51;
|
||||
|
||||
/// <summary>
|
||||
/// gvCheck 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvCheck;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar21 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar21;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewCheck 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewCheck;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox58 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox58;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox59 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox59;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox60 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox60;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox62 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox62;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel54 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel54;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// txtNextEmergencyResponse 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtNextEmergencyResponse;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel58 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel58;
|
||||
|
||||
/// <summary>
|
||||
/// gvManageDocPlan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvManageDocPlan;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar26 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar26;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewManageDocPlan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewManageDocPlan;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox78 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox78;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox79 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox79;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox80 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox80;
|
||||
|
||||
/// <summary>
|
||||
/// GroupPanel59 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel GroupPanel59;
|
||||
|
||||
/// <summary>
|
||||
/// gvOtherWorkPlan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvOtherWorkPlan;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar27 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar27;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewOtherWorkPlan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewOtherWorkPlan;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox81 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox81;
|
||||
protected global::FineUIPro.Label lb111;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<title>9.需协调解决的主要问题</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
@@ -15,7 +15,7 @@
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:GroupPanel ID="GroupPanel60" Layout="Anchor" Title="9.存在的主要问题及改进措施、 需要项目经理、项目主管、公司相关部门、业主协调解决事宜。 <br/>(简要说明项目HSE管理存在的主要问题和需要项目经理、项目主管、公司相关部门、业主协调解决事宜,并提出具体改进措施和建议。)"
|
||||
<f:GroupPanel ID="GroupPanel60" Layout="Anchor" Title="存在的主要问题及改进措施、 需要项目经理、项目主管、公司相关部门、业主协调解决事宜。<br/>(简要说明项目HSE管理存在的主要问题和需要项目经理、项目主管、公司相关部门、业主协调解决事宜,并提出具体改进措施和建议)。"
|
||||
runat="server">
|
||||
<Items>
|
||||
<f:TextArea runat="server" ID="txtQuestion" Label="" Height="420px">
|
||||
|
||||
@@ -299,7 +299,7 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
}
|
||||
this.txtAccidentDes.Text = monthReport.AccidentDes;
|
||||
//9.1 危险源动态识别及控制
|
||||
var hazards = (from x in db.Manager_Month_HazardC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList();
|
||||
var hazards = (from x in db.Manager_Month_HazardC where x.MonthReportId == MonthReportId select x).ToList();
|
||||
if (hazards.Count > 0)
|
||||
{
|
||||
this.gvHazard.DataSource = hazards;
|
||||
|
||||
@@ -130,7 +130,8 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
{
|
||||
PersonSortId = SQLHelper.GetNewID(typeof(Model.Manager_PersonSortC)),
|
||||
UnitId = u.UnitId,
|
||||
SumPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId),
|
||||
SumPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId,false),//本部
|
||||
SumOutPersonNum = BLL.PersonService.GetPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId, true),//外聘
|
||||
HSEPersonNum = BLL.PersonService.GetHSEPersonCountByUnitId(u.UnitId, this.CurrUser.LoginProjectId)
|
||||
};
|
||||
personSorts.Add(personSort);
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||
this.txtNextEmergencyResponse.Text = monthReport.NextEmergencyResponse;
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
//9.1 危险源动态识别及控制
|
||||
hazards = (from x in db.Manager_Month_HazardC where x.MonthReportId == MonthReportId orderby x.SortIndex select x).ToList();
|
||||
hazards = (from x in db.Manager_Month_HazardC where x.MonthReportId == MonthReportId select x).ToList();
|
||||
if (hazards.Count > 0)
|
||||
{
|
||||
this.gvHazard.DataSource = hazards;
|
||||
|
||||
Reference in New Issue
Block a user