2023-03-31 报表升级

This commit is contained in:
2023-03-31 10:21:00 +08:00
parent 5acee68633
commit 5ee3b089b7
175 changed files with 68864 additions and 2056 deletions
@@ -0,0 +1,107 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EPSummaryReport.aspx.cs" Inherits="FineUIPro.Web.HSSE.InformationProject.EPSummaryReport" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>生态环保工作总结报告</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="生态环保工作总结报告" EnableCollapse="true"
runat="server" BoxFlex="1" EnableColumnLines="true" DataKeyNames="EPSummaryReportId"
AllowCellEditing="true" ClicksToEdit="2" DataIDField="EPSummaryReportId"
AllowSorting="true" SortField="ReportDate" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpYear" runat="server" Label="年份" LabelAlign="Right" Width="250px"
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" Hidden="true" Text="新增"
runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="250px" ColumnID="UnitName" DataField="UnitName"
SortField="UnitName" FieldType="String" HeaderText="填报单位" HeaderTextAlign="Center"
TextAlign="Left" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ResponsiblePerson" DataField="ResponsiblePerson"
SortField="ResponsiblePerson" FieldType="String" HeaderText="负责人" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="ResponsiblePersonTel" DataField="ResponsiblePersonTel"
SortField="ResponsiblePersonTel" FieldType="String" HeaderText="负责人电话" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ContactPerson" DataField="ContactPerson"
SortField="ContactPerson" FieldType="String" HeaderText="联系人" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="ContactPersonTel" DataField="ContactPersonTel"
SortField="ContactPersonTel" FieldType="String" HeaderText="联系人电话" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ReportDate" DataField="ReportDate"
SortField="ReportDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="报告时间" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="编辑生态环保工作总结报告" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="1100px"
Height="560px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="TableEdit" EnablePostBack="true"
Hidden="true" runat="server" Text="编辑">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server"
Text="删除">
</f:MenuButton>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false,来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
function reloadGrid() {
__doPostBack(null, 'reloadGrid');
}
</script>
</body>
</html>
@@ -0,0 +1,247 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace FineUIPro.Web.HSSE.InformationProject
{
public partial class EPSummaryReport : PageBase
{
#region
/// <summary>
/// 项目主键
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Funs.DropDownPageSize(this.ddlPageSize);
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{
this.ProjectId = Request.Params["projectId"];
}
////权限按钮方法
this.GetButtonPower();
BLL.ConstValue.InitConstValueDropDownList(this.drpYear, BLL.ConstValue.Group_0008, true);
this.btnNew.OnClientClick = Window1.GetShowReference("EPSummaryReportEdit.aspx") + "return false;";
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
{
Grid1.PageSize = this.CurrUser.PageSize.Value;
}
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格
this.BindGrid();
}
}
/// <summary>
/// 绑定数据
/// </summary>
private void BindGrid()
{
string strSql = @"SELECT report.EPSummaryReportId,"
+ @"report.ProjectId,"
+ @"report.UnitId,"
+ @"report.YearId,"
+ @"report.ResponsiblePerson,"
+ @"report.ResponsiblePersonTel,"
+ @"report.ContactPerson,"
+ @"report.ContactPersonTel,"
+ @"report.ReportDate,"
+ @"report.Description1,"
+ @"report.Description2,"
+ @"report.Description3,"
+ @"report.Description4,"
+ @"report.Description5,"
+ @"report.Description6,"
+ @"report.Description7,"
+ @"report.Description8,"
+ @"report.Description9,"
+ @"Unit.UnitName "
+ @" FROM InformationProject_EPSummaryReport AS report "
+ @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = report.UnitId WHERE 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
strSql += " AND report.ProjectId = '" + this.ProjectId + "'";
if (this.drpYear.SelectedValue != BLL.Const._Null)
{
strSql += " AND report.YearId = @Year";
listStr.Add(new SqlParameter("@Year", Funs.GetNewInt(this.drpYear.SelectedValue)));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#region
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e)
{
this.BindGrid();
}
#endregion
#region
/// <summary>
/// 改变索引事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
BindGrid();
}
/// <summary>
/// 分页下拉选择事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
BindGrid();
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
this.BindGrid();
}
#endregion
#endregion
#region
/// <summary>
/// 双击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
this.EditData();
}
/// <summary>
/// 右键编辑事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuEdit_Click(object sender, EventArgs e)
{
this.EditData();
}
/// <summary>
/// 编辑数据方法
/// </summary>
private void EditData()
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
string id = Grid1.SelectedRowID;
var report = BLL.ProjectEPSummaryReportService.GetEPSummaryReportById(id);
if (report != null)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EPSummaryReportEdit.aspx?EPSummaryReportId={0}", id, "编辑 - ")));
}
}
#endregion
#region
/// <summary>
/// 右键删除事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuDelete_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length > 0)
{
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
var report = BLL.ProjectEPSummaryReportService.GetEPSummaryReportById(rowID);
if (report != null)
{
BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), rowID, BLL.Const.ProjectEPSummaryReportMenuId, BLL.Const.BtnDelete);
BLL.ProjectEPSummaryReportService.DeleteEPSummaryReportById(rowID);
}
}
this.BindGrid();
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
}
}
#endregion
#region
/// <summary>
/// 获取按钮权限
/// </summary>
/// <param name="button"></param>
/// <returns></returns>
private void GetButtonPower()
{
if (Request.Params["value"] == "0")
{
return;
}
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectEPSummaryReportMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
this.btnMenuEdit.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
this.btnMenuDelete.Hidden = false;
}
}
}
#endregion
}
}
@@ -0,0 +1,150 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HSSE.InformationProject {
public partial class EPSummaryReport {
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// drpYear 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpYear;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnNew 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Menu1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuEdit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuEdit;
/// <summary>
/// btnMenuDelete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDelete;
}
}
@@ -0,0 +1,139 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EPSummaryReportEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.InformationProject.EPSummaryReportEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑生态环保工作总结报告</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:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:DropDownList ID="ddlYearId" runat="server" Label="年度" Required="True" ShowRedStar="True">
</f:DropDownList>
<f:DatePicker ID="txtReportDate" runat="server" Label="报告时间" Required="true" ShowRedStar="true"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtResponsiblePerson" runat="server" Label="负责人"></f:TextBox>
<f:TextBox ID="txtResponsiblePersonTel" runat="server" Label="负责人电话"></f:TextBox>
<f:TextBox ID="txtContactPerson" runat="server" Label="联系人"></f:TextBox>
<f:TextBox ID="txtContactPersonTel" runat="server" Label="联系人电话"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label1" runat="server" Text="一、贯彻落实国家有关环保节能相关文件情况,落实集团公司有关环保节能工作部署情况。"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtDescription1" runat="server"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label2" runat="server" Text="二、企业报告期环保节能主要指标完成情况,对增减幅度较大的指标或发生并购、重组等影响能源消耗及污染物排放的重大事项要进行特殊说明。"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtDescription2" runat="server"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label3" runat="server" Text="三、企业任期环保节能考核指标完成情况。"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtDescription3" runat="server"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label4" runat="server" Text="四、企业环保节能组织管理、统计监测、考核奖惩体系建设情况。"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtDescription4" runat="server"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label5" runat="server" Text="五、企业本年度绿色发展规划、环保节能相关制度政策制定实施情况和节能环保资金投入情况。"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtDescription5" runat="server"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label6" runat="server" Text="六、企业推进产业结构绿色转型升级进展情况,包括淘汰落后产能、传统产业优化升级、构建绿色产业链、绿色技术创新以及发展绿色金融、循环经济、节能环保战略性新兴产业等方面。"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtDescription6" runat="server"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label7" runat="server" Text="七、企业环保节能工作采取的重大措施及取得的成果,包括能源结构调整、能源消费总量和强度控制、资源综合循环利用、污染防治、生态环境保护与修复、应对气候变化等方面。"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtDescription7" runat="server"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label8" runat="server" Text="八、企业环保节能存在的主要问题与原因、下一阶段(年度)工作重点。"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtDescription8" runat="server"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label9" runat="server" Text="九、本企业及所属企业发生的环保重大违法违规事件、各级政府有关部门对本企业环保节能年度检查、考核和奖惩情况等重要事项。"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtDescription9" runat="server"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:ToolbarFill ID="ToolbarFill2" runat="server">
</f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1" Text="保存"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose" Text="关闭">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,175 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.HSSE.InformationProject
{
public partial class EPSummaryReportEdit : PageBase
{
#region
/// <summary>
/// 主键
/// </summary>
private string EPSummaryReportId
{
get
{
return (string)ViewState["EPSummaryReportId"];
}
set
{
ViewState["EPSummaryReportId"] = value;
}
}
/// <summary>
/// 项目主键
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{
this.ProjectId = Request.Params["projectId"];
}
BLL.ConstValue.InitConstValueDropDownList(this.ddlYearId, BLL.ConstValue.Group_0008, true);
this.EPSummaryReportId = Request.Params["EPSummaryReportId"];
if (!string.IsNullOrEmpty(this.EPSummaryReportId))
{
var report = BLL.ProjectEPSummaryReportService.GetEPSummaryReportById(this.EPSummaryReportId);
if (report != null)
{
this.ProjectId = report.ProjectId;
#region
if (report.YearId != null)
{
this.ddlYearId.SelectedValue = report.YearId.ToString();
this.txtReportDate.Text = report.ReportDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReportDate) : "";
this.txtResponsiblePerson.Text = report.ResponsiblePerson;
this.txtResponsiblePersonTel.Text = report.ResponsiblePersonTel;
this.txtContactPerson.Text = report.ContactPerson;
this.txtContactPersonTel.Text = report.ContactPersonTel;
this.txtDescription1.Text = report.Description1;
this.txtDescription2.Text = report.Description2;
this.txtDescription3.Text = report.Description3;
this.txtDescription4.Text = report.Description4;
this.txtDescription5.Text = report.Description5;
this.txtDescription6.Text = report.Description6;
this.txtDescription7.Text = report.Description7;
this.txtDescription8.Text = report.Description8;
this.txtDescription9.Text = report.Description9;
}
#endregion
}
}
else
{
this.ddlYearId.SelectedValue = DateTime.Now.Year.ToString();
this.txtReportDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
}
}
}
#endregion
#region
/// <summary>
/// 保存按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (this.ddlYearId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
return;
}
this.SaveData(BLL.Const.BtnSave);
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
/// <summary>
/// 提交数据
/// </summary>
/// <param name="p"></param>
private void SaveData(string type)
{
Model.InformationProject_EPSummaryReport report = new Model.InformationProject_EPSummaryReport
{
ProjectId = this.ProjectId,
UnitId = string.IsNullOrEmpty(this.CurrUser.UnitId) ? Const.UnitId_CD : this.CurrUser.UnitId,
};
if (this.ddlYearId.SelectedValue != BLL.Const._Null)
{
report.YearId = Funs.GetNewIntOrZero(this.ddlYearId.SelectedValue);
}
report.ResponsiblePerson = this.txtResponsiblePerson.Text.Trim();
report.ResponsiblePersonTel = this.txtResponsiblePersonTel.Text.Trim();
report.ContactPerson = this.txtContactPerson.Text.Trim();
report.ContactPersonTel = this.txtContactPersonTel.Text.Trim();
report.ReportDate = Funs.GetNewDateTime(this.txtReportDate.Text.Trim());
report.Description1 = txtDescription1.Text.Trim();
report.Description2 = this.txtDescription2.Text.Trim();
report.Description3 = this.txtDescription3.Text.Trim();
report.Description4 = this.txtDescription4.Text.Trim();
report.Description5 = this.txtDescription5.Text.Trim();
report.Description6 = this.txtDescription6.Text.Trim();
report.Description7 = this.txtDescription7.Text.Trim();
report.Description8 = this.txtDescription8.Text.Trim();
report.Description9 = this.txtDescription9.Text.Trim();
if (!string.IsNullOrEmpty(this.EPSummaryReportId))
{
report.EPSummaryReportId = this.EPSummaryReportId;
BLL.ProjectEPSummaryReportService.UpdateEPSummaryReport(report);
BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), report.EPSummaryReportId, BLL.Const.ProjectEPSummaryReportMenuId, BLL.Const.BtnModify);
}
else
{
Model.InformationProject_EPSummaryReport oldReport = (from x in Funs.DB.InformationProject_EPSummaryReport
where x.ProjectId == report.ProjectId && x.YearId == report.YearId
select x).FirstOrDefault();
if (oldReport == null)
{
this.EPSummaryReportId = SQLHelper.GetNewID(typeof(Model.InformationProject_EPSummaryReport));
report.EPSummaryReportId = this.EPSummaryReportId;
BLL.ProjectEPSummaryReportService.AddEPSummaryReport(report);
BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), report.EPSummaryReportId, BLL.Const.ProjectEPSummaryReportMenuId, BLL.Const.BtnAdd);
}
else
{
Alert.ShowInTop("该年度记录已存在", MessageBoxIcon.Warning);
return;
}
}
}
#endregion
}
}
@@ -0,0 +1,294 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HSSE.InformationProject {
public partial class EPSummaryReportEdit {
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// ddlYearId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlYearId;
/// <summary>
/// txtReportDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtReportDate;
/// <summary>
/// txtResponsiblePerson 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtResponsiblePerson;
/// <summary>
/// txtResponsiblePersonTel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtResponsiblePersonTel;
/// <summary>
/// txtContactPerson 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContactPerson;
/// <summary>
/// txtContactPersonTel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContactPersonTel;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// txtDescription1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtDescription1;
/// <summary>
/// Label2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label2;
/// <summary>
/// txtDescription2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtDescription2;
/// <summary>
/// Label3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label3;
/// <summary>
/// txtDescription3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtDescription3;
/// <summary>
/// Label4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label4;
/// <summary>
/// txtDescription4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtDescription4;
/// <summary>
/// Label5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label5;
/// <summary>
/// txtDescription5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtDescription5;
/// <summary>
/// Label6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label6;
/// <summary>
/// txtDescription6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtDescription6;
/// <summary>
/// Label7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label7;
/// <summary>
/// txtDescription7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtDescription7;
/// <summary>
/// Label8 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label8;
/// <summary>
/// txtDescription8 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtDescription8;
/// <summary>
/// Label9 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label9;
/// <summary>
/// txtDescription9 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtDescription9;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// ToolbarFill2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill2;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnClose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
}
}
@@ -4,237 +4,239 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>百万工时安全统计月报</title>
<title>企业安全数据统计月报</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="百万工时安全统计月报" EnableCollapse="true"
runat="server" BoxFlex="1" EnableColumnLines="true" DataKeyNames="MillionsMonthlyReportId"
AllowCellEditing="true" ClicksToEdit="2" DataIDField="MillionsMonthlyReportId"
AllowSorting="true" SortField="CompileDate" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpYear" runat="server" Label="年份" LabelAlign="Right" Width="250px"
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
</f:DropDownList>
<f:DropDownList ID="drpMonth" runat="server" Label="月度" LabelAlign="Right" Width="250px"
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" Hidden="true"
runat="server">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="40px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="100px" ColumnID="YearAndMonth" DataField="YearAndMonth" SortField="YearAndMonth"
FieldType="String" HeaderText="月报日期" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<%-- <f:RenderField Width="150px" ColumnID="Affiliation" DataField="Affiliation" SortField="Affiliation"
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="企业安全数据统计月报" EnableCollapse="true"
runat="server" BoxFlex="1" EnableColumnLines="true" DataKeyNames="MillionsMonthlyReportId"
AllowCellEditing="true" ClicksToEdit="2" DataIDField="MillionsMonthlyReportId"
AllowSorting="true" SortField="CompileDate" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpYear" runat="server" Label="年份" LabelAlign="Right" Width="250px"
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
</f:DropDownList>
<f:DropDownList ID="drpMonth" runat="server" Label="月度" LabelAlign="Right" Width="250px"
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" Hidden="true" Text="新增"
runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="40px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="100px" ColumnID="YearAndMonth" DataField="YearAndMonth" SortField="YearAndMonth"
FieldType="String" HeaderText="月报日期" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<%-- <f:RenderField Width="150px" ColumnID="Affiliation" DataField="Affiliation" SortField="Affiliation"
FieldType="String" HeaderText="所属单位" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="Name" DataField="Name" SortField="Name" FieldType="String"
HeaderText="名称" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>--%>
<f:GroupField EnableLock="true" HeaderText="员工总数" TextAlign="Center">
<Columns>
<f:RenderField Width="80px" ColumnID="PostPersonNum" DataField="PostPersonNum" FieldType="String"
HeaderText="在岗员工" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="SnapPersonNum" DataField="SnapPersonNum" FieldType="String"
HeaderText="临时员工" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="ContractorNum" DataField="ContractorNum" FieldType="String"
HeaderText="承包商" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="SumPersonNum" DataField="SumPersonNum" FieldType="String"
HeaderText="合计" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:RenderField Width="120px" ColumnID="TotalWorkNum" DataField="TotalWorkNum" FieldType="String"
HeaderText="总工时数(万)" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:GroupField EnableLock="true" HeaderText="总可记录事件" TextAlign="Center">
<Columns>
<f:GroupField EnableLock="true" HeaderText="重伤事故" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="SeriousInjuriesNum" DataField="SeriousInjuriesNum"
FieldType="String" HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="SeriousInjuriesPersonNum" DataField="SeriousInjuriesPersonNum"
FieldType="String" HeaderText="人数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="SeriousInjuriesLossHour" DataField="SeriousInjuriesLossHour"
FieldType="String" HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="伤事故" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="MinorAccidentNum" DataField="MinorAccidentNum"
FieldType="String" HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="MinorAccidentPersonNum" DataField="MinorAccidentPersonNum"
FieldType="String" HeaderText="人数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="MinorAccidentLossHour" DataField="MinorAccidentLossHour"
FieldType="String" HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="其它事故" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="OtherAccidentNum" DataField="OtherAccidentNum"
FieldType="String" HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="OtherAccidentPersonNum" DataField="OtherAccidentPersonNum"
FieldType="String" HeaderText="人数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="OtherAccidentLossHour" DataField="OtherAccidentLossHour"
FieldType="String" HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="工作受限" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="RestrictedWorkPersonNum" DataField="RestrictedWorkPersonNum"
FieldType="String" HeaderText="人数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="RestrictedWorkLossHour" DataField="RestrictedWorkLossHour"
FieldType="String" HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="医疗处置" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="MedicalTreatmentPersonNum" DataField="MedicalTreatmentPersonNum"
FieldType="String" HeaderText="人数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="MedicalTreatmentLossHour" DataField="MedicalTreatmentLossHour"
FieldType="String" HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="无伤害事故" TextAlign="Center">
<Columns>
<f:GroupField EnableLock="true" HeaderText="火灾" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="FireNum" DataField="FireNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="爆炸" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="ExplosionNum" DataField="ExplosionNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="交通" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="TrafficNum" DataField="TrafficNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="机械设备" TextAlign="Center">
<Columns>
<f:RenderField Width="80px" ColumnID="EquipmentNum" DataField="EquipmentNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="质量" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="QualityNum" DataField="QualityNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="其它" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="OtherNum" DataField="OtherNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="急救包扎" TextAlign="Center">
<Columns>
<f:RenderField Width="80px" ColumnID="FirstAidDressingsNum" DataField="FirstAidDressingsNum"
FieldType="String" HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="未遂事件" TextAlign="Center">
<Columns>
<f:RenderField Width="80px" ColumnID="AttemptedEventNum" DataField="AttemptedEventNum"
FieldType="String" HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:RenderField Width="80px" ColumnID="LossDayNum" DataField="LossDayNum" FieldType="String"
HeaderText="损失工日" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="FlowOperateName" DataField="FlowOperateName"
SortField="FlowOperateName" FieldType="String" HeaderText="状态" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="编辑百万工时安全统计月报表" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="1100px"
Height="560px">
</f:Window>
<f:Window ID="Window2" IconUrl="~/res/images/16/11.png" runat="server" Hidden="true"
IsModal="false" Target="Parent" EnableMaximize="true" EnableResize="false"
Title="打印百万工时安全统计月报表" CloseAction="HidePostBack" EnableIFrame="true" Height="768px"
Width="1024px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="TableEdit" EnablePostBack="true"
Hidden="true" runat="server" Text="编辑">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server"
Text="删除">
</f:MenuButton>
</f:Menu>
<f:GroupField EnableLock="true" HeaderText="员工总数" TextAlign="Center">
<Columns>
<f:RenderField Width="80px" ColumnID="PostPersonNum" DataField="PostPersonNum" FieldType="String"
HeaderText="在岗员工" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="SnapPersonNum" DataField="SnapPersonNum" FieldType="String"
HeaderText="临时员工" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="ContractorNum" DataField="ContractorNum" FieldType="String"
HeaderText="承包商" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="SumPersonNum" DataField="SumPersonNum" FieldType="String"
HeaderText="合计" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:RenderField Width="120px" ColumnID="TotalWorkNum" DataField="TotalWorkNum" FieldType="String"
HeaderText="总工时数(万)" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:GroupField EnableLock="true" HeaderText="损失工时伤害事故" TextAlign="Center">
<Columns>
<f:GroupField EnableLock="true" HeaderText="死亡事故" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="DeathAccidentNum" DataField="DeathAccidentNum"
FieldType="String" HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="DeathAccidentPersonNum" DataField="DeathAccidentPersonNum"
FieldType="String" HeaderText="人数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="DeathAccidentLossHour" DataField="DeathAccidentLossHour"
FieldType="String" HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="伤事故" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="SeriousInjuriesNum" DataField="SeriousInjuriesNum"
FieldType="String" HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="SeriousInjuriesPersonNum" DataField="SeriousInjuriesPersonNum"
FieldType="String" HeaderText="人数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="SeriousInjuriesLossHour" DataField="SeriousInjuriesLossHour"
FieldType="String" HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="轻伤事故" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="MinorAccidentNum" DataField="MinorAccidentNum"
FieldType="String" HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="MinorAccidentPersonNum" DataField="MinorAccidentPersonNum"
FieldType="String" HeaderText="人数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="MinorAccidentLossHour" DataField="MinorAccidentLossHour"
FieldType="String" HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="工作受限" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="RestrictedWorkPersonNum" DataField="RestrictedWorkPersonNum"
FieldType="String" HeaderText="人数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="RestrictedWorkLossHour" DataField="RestrictedWorkLossHour"
FieldType="String" HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="医疗处置" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="MedicalTreatmentPersonNum" DataField="MedicalTreatmentPersonNum"
FieldType="String" HeaderText="人数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="MedicalTreatmentLossHour" DataField="MedicalTreatmentLossHour"
FieldType="String" HeaderText="损失工时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:RenderField Width="80px" ColumnID="LossDayNum" DataField="LossDayNum" FieldType="String"
HeaderText="损失工日" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:GroupField EnableLock="true" HeaderText="无伤害事故" TextAlign="Center">
<Columns>
<f:GroupField EnableLock="true" HeaderText="火灾" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="FireNum" DataField="FireNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="环保" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="EnvironmenNum" DataField="EnvironmenNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="交通" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="TrafficNum" DataField="TrafficNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="机械设备" TextAlign="Center">
<Columns>
<f:RenderField Width="80px" ColumnID="EquipmentNum" DataField="EquipmentNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="质量" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="QualityNum" DataField="QualityNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="其它" TextAlign="Center">
<Columns>
<f:RenderField Width="70px" ColumnID="OtherNum" DataField="OtherNum" FieldType="String"
HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="急救包扎" TextAlign="Center">
<Columns>
<f:RenderField Width="80px" ColumnID="FirstAidDressingsNum" DataField="FirstAidDressingsNum"
FieldType="String" HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField EnableLock="true" HeaderText="未遂事件" TextAlign="Center">
<Columns>
<f:RenderField Width="80px" ColumnID="AttemptedEventNum" DataField="AttemptedEventNum"
FieldType="String" HeaderText="起数" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:RenderField Width="150px" ColumnID="FlowOperateName" DataField="FlowOperateName"
SortField="FlowOperateName" FieldType="String" HeaderText="状态" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:TemplateField HeaderText="打印" Width="80px">
<ItemTemplate>
<asp:LinkButton ID="btnPrint" runat="server" Text="打印" OnClick="btnPrint_Click"></asp:LinkButton>
</ItemTemplate>
</f:TemplateField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="编辑企业安全数据统计月报" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="1100px"
Height="560px">
</f:Window>
<f:Window ID="Window2" IconUrl="~/res/images/16/11.png" runat="server" Hidden="true"
IsModal="false" Target="Parent" EnableMaximize="true" EnableResize="false"
Title="打印企业安全数据统计月报" CloseAction="HidePostBack" EnableIFrame="true" Height="768px"
Width="1024px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="TableEdit" EnablePostBack="true"
Hidden="true" runat="server" Text="编辑">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server"
Text="删除">
</f:MenuButton>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
@@ -1,12 +1,9 @@
using BLL;
using FineUIPro.Web.Controls;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using AspNet = System.Web.UI.WebControls;
namespace FineUIPro.Web.InformationProject
{
@@ -82,6 +79,9 @@ namespace FineUIPro.Web.InformationProject
+ @"MillionsMonthlyReport.ContractorNum,"
+ @"MillionsMonthlyReport.SumPersonNum,"
+ @"MillionsMonthlyReport.TotalWorkNum,"
+ @"MillionsMonthlyReport.DeathAccidentNum,"
+ @"MillionsMonthlyReport.DeathAccidentPersonNum,"
+ @"MillionsMonthlyReport.DeathAccidentLossHour,"
+ @"MillionsMonthlyReport.SeriousInjuriesNum,"
+ @"MillionsMonthlyReport.SeriousInjuriesPersonNum,"
+ @"MillionsMonthlyReport.SeriousInjuriesLossHour,"
@@ -97,6 +97,7 @@ namespace FineUIPro.Web.InformationProject
+ @"MillionsMonthlyReport.MedicalTreatmentLossHour,"
+ @"MillionsMonthlyReport.FireNum,"
+ @"MillionsMonthlyReport.ExplosionNum,"
+ @"MillionsMonthlyReport.EnvironmenNum,"
+ @"MillionsMonthlyReport.TrafficNum,"
+ @"MillionsMonthlyReport.EquipmentNum,"
+ @"MillionsMonthlyReport.QualityNum,"
@@ -299,111 +300,5 @@ namespace FineUIPro.Web.InformationProject
}
}
#endregion
#region
/// 导出按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnOut_Click(object sender, EventArgs e)
{
Response.ClearContent();
string filename = Funs.GetNewFileName();
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("百万工时安全统计月报" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.ContentType = "application/excel";
Response.ContentEncoding = System.Text.Encoding.UTF8;
this.Grid1.PageSize = 500;
this.BindGrid();
Response.Write(GetGridTableHtml(Grid1));
Response.End();
}
/// <summary>
/// 导出方法
/// </summary>
/// <param name="grid"></param>
/// <returns></returns>
private string GetGridTableHtml(Grid grid)
{
StringBuilder sb = new StringBuilder();
MultiHeaderTable mht = new MultiHeaderTable();
mht.ResolveMultiHeaderTable(Grid1.Columns);
sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/>");
sb.Append("<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">");
foreach (List<object[]> rows in mht.MultiTable)
{
sb.Append("<tr>");
foreach (object[] cell in rows)
{
int rowspan = Convert.ToInt32(cell[0]);
int colspan = Convert.ToInt32(cell[1]);
GridColumn column = cell[2] as GridColumn;
if (!column.Hidden)
{
sb.AppendFormat("<th{0}{1}{2}>{3}</th>",
rowspan != 1 ? " rowspan=\"" + rowspan + "\"" : "",
colspan != 1 ? " colspan=\"" + colspan + "\"" : "",
colspan != 1 ? " style=\"text-align:center;\"" : "",
column.HeaderText);
}
}
sb.Append("</tr>");
}
int j = 0;
foreach (GridRow row in grid.Rows)
{
sb.Append("<tr>");
int i = 0;
foreach (GridColumn column in mht.Columns)
{
string html = row.Values[column.ColumnIndex].ToString();
if (column.ColumnID == "tfNumber")
{
html = (row.FindControl("spanNumber") as System.Web.UI.HtmlControls.HtmlGenericControl).InnerText;
}
else if (column.ColumnID == "tfGender")
{
html = (row.FindControl("labGender") as AspNet.Label).Text;
}
if (i <= 6 && j % 2 == 0)
{
if (!column.Hidden)
{
sb.AppendFormat("<td rowspan='2'>{0}</td>", html);
}
}
else if (i > 6)
{
if (!column.Hidden)
{
sb.AppendFormat("<td >{0}</td>", html);
}
}
i++;
}
j++;
sb.Append("</tr>");
}
sb.Append("</table>");
return sb.ToString();
}
#endregion
}
}
@@ -7,13 +7,11 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.InformationProject
{
public partial class MillionsMonthlyReport
{
namespace FineUIPro.Web.InformationProject {
public partial class MillionsMonthlyReport {
/// <summary>
/// form1 控件。
/// </summary>
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
@@ -58,7 +56,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// drpYear 控件。
/// </summary>
@@ -67,7 +65,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpYear;
/// <summary>
/// drpMonth 控件。
/// </summary>
@@ -76,7 +74,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpMonth;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
@@ -85,7 +83,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnNew 控件。
/// </summary>
@@ -94,16 +92,16 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// btnOut 控件。
/// btnPrint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
protected global::System.Web.UI.WebControls.LinkButton btnPrint;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@@ -112,7 +110,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@@ -121,7 +119,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
@@ -130,7 +128,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
@@ -139,7 +137,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
@@ -148,7 +146,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
/// <summary>
/// Menu1 控件。
/// </summary>
@@ -157,7 +155,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuEdit 控件。
/// </summary>
@@ -166,7 +164,7 @@ namespace FineUIPro.Web.InformationProject
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuEdit;
/// <summary>
/// btnMenuDelete 控件。
/// </summary>
@@ -7,39 +7,39 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑百万工时安全统计月报</title>
<title>编辑企业安全数据统计月报</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1"/>
<f:Panel ID="Panel1" BodyPadding="5px" runat="server" ShowHeader="false" EnableCollapse="True"
Title="百万工时安全统计月报" AutoScroll="true">
<Items>
<f:Form ID="Form2" runat="server" ShowHeader="false" BodyPadding="5px" RedStarPosition="BeforeText">
<Items>
<f:FormRow>
<Items>
<f:TextBox ID="txtProjectName" runat="server" Label="项目名称" LabelAlign="Right" Readonly="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpYear" runat="server" Label="年度" EnableEdit="true" LabelAlign="Right"
Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
</f:DropDownList>
<f:DropDownList ID="drpMonth" runat="server" Label="月份" EnableEdit="true" LabelAlign="Right"
Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
</f:DropDownList>
<%--<f:NumberBox ID="txtTotalWorkNum" runat="server" Label="总工时数(万)" LabelAlign="Right"
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
<f:Panel ID="Panel1" BodyPadding="5px" runat="server" ShowHeader="false" EnableCollapse="True"
Title="企业安全数据统计月报" AutoScroll="true">
<Items>
<f:Form ID="Form2" runat="server" ShowHeader="false" BodyPadding="5px" RedStarPosition="BeforeText">
<Items>
<f:FormRow>
<Items>
<f:TextBox ID="txtProjectName" runat="server" Label="项目名称" LabelAlign="Right" Readonly="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpYear" runat="server" Label="年度" EnableEdit="true" LabelAlign="Right"
Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
</f:DropDownList>
<f:DropDownList ID="drpMonth" runat="server" Label="月份" EnableEdit="true" LabelAlign="Right"
Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
</f:DropDownList>
<%--<f:NumberBox ID="txtTotalWorkNum" runat="server" Label="总工时数(万)" LabelAlign="Right"
NoNegative="false" LabelWidth="140px" EmptyText="0">
</f:NumberBox>--%>
<f:TextBox ID="txtTotalWorkNum" runat="server" Label="总工时数(万)" LabelWidth="140px" LabelAlign="Right" EmptyText="0">
</f:TextBox>
</Items>
</f:FormRow>
<%-- <f:FormRow>
<f:TextBox ID="txtTotalWorkNum" runat="server" Label="总工时数(万)" LabelWidth="140px" LabelAlign="Right" EmptyText="0">
</f:TextBox>
</Items>
</f:FormRow>
<%-- <f:FormRow>
<Items>
<f:TextBox ID="txtAffiliation" runat="server" Label="所属单位" MaxLength="50" LabelAlign="Right"
Required="true" ShowRedStar="true">
@@ -52,232 +52,385 @@
</f:NumberBox>
</Items>
</f:FormRow>--%>
</Items>
</f:Form>
<f:GroupPanel runat="server" Title="员工总数" BodyPadding="5px" ID="GroupPanel1" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form4" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtPostPersonNum" runat="server" Label="在岗员工" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtSnapPersonNum" runat="server" Label="临时员工" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtContractorNum" runat="server" Label="承包商" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="重伤事故" BodyPadding="5px" ID="GroupPanel2" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtSeriousInjuriesNum" runat="server" Label="起数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtSeriousInjuriesPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtSeriousInjuriesLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="伤事故" BodyPadding="5px" ID="GroupPanel3" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form6" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtMinorAccidentNum" runat="server" Label="起数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtMinorAccidentPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtMinorAccidentLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="其它事故" BodyPadding="5px" ID="GroupPanel4" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form7" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtOtherAccidentNum" runat="server" Label="起数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtOtherAccidentPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtOtherAccidentLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="工作受限" BodyPadding="5px" ID="GroupPanel5" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form8" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtRestrictedWorkPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtRestrictedWorkLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:Label ID="Label1" runat="server">
</f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="医疗处置" BodyPadding="5px" ID="GroupPanel6" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form9" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtMedicalTreatmentPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtMedicalTreatmentLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:Label ID="Label2" runat="server">
</f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="无伤害事故" BodyPadding="5px" ID="GroupPanel7" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form10" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtFireNum" runat="server" Label="火灾" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtExplosionNum" runat="server" Label="爆炸" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtTrafficNum" runat="server" Label="交通" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtEquipmentNum" runat="server" Label="机械设备" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtQualityNum" runat="server" Label="质量" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtOtherNum" runat="server" Label="其它" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:Form ID="Form11" runat="server" ShowHeader="false" BodyPadding="5px">
<Items>
<f:FormRow>
<Items>
<f:NumberBox ID="txtFirstAidDressingsNum" runat="server" Label="急救包扎" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtAttemptedEventNum" runat="server" Label="未遂事件" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtLossDayNum" runat="server" Label="损失工日" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpCompileMan" runat="server" Label="填报人" LabelAlign="Right"
EnableEdit="true">
</f:DropDownList>
<f:DatePicker ID="txtCompileDate" runat="server" Label="填报日期" LabelAlign="Right"
EnableEdit="true">
</f:DatePicker>
<f:Label ID="Label4" runat="server">
</f:Label>
</Items>
</f:FormRow>
</Items>
</f:Form>
<f:Form ID="Form3" runat="server" ShowHeader="false" BodyPadding="5px">
<Items>
<f:FormRow>
<Items>
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true"
BodyPadding="0px">
<uc1:FlowOperateControl ID="ctlAuditFlow" runat="server" />
</f:ContentPanel>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:ToolbarFill ID="ToolbarFill2" runat="server">
</f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" ToolTip="提交" ValidateForms="SimpleForm1"
OnClick="btnSubmit_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Panel>
</Items>
</f:Form>
<f:GroupPanel runat="server" Title="员工总数" BodyPadding="5px" ID="GroupPanel1" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form4" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtPostPersonNum" runat="server" Label="在岗员工" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtSnapPersonNum" runat="server" Label="临时员工" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtContractorNum" runat="server" Label="承包商" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="死亡事故" BodyPadding="5px" ID="GroupPanel4" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form7" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtDeathAccidentNum" runat="server" Label="起数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtDeathAccidentPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtDeathAccidentLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="伤事故" BodyPadding="5px" ID="GroupPanel2" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtSeriousInjuriesNum" runat="server" Label="起数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtSeriousInjuriesPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtSeriousInjuriesLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="轻伤事故" BodyPadding="5px" ID="GroupPanel3" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form6" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtMinorAccidentNum" runat="server" Label="起数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtMinorAccidentPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtMinorAccidentLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="工作受限" BodyPadding="5px" ID="GroupPanel5" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form8" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtRestrictedWorkPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtRestrictedWorkLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:Label ID="Label1" runat="server">
</f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="医疗处置" BodyPadding="5px" ID="GroupPanel6" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form9" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtMedicalTreatmentPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtMedicalTreatmentLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:Label ID="Label2" runat="server">
</f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="损失工日" BodyPadding="5px" ID="GroupPanel8" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form12" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtLossDayNum" runat="server" Label="损失工日" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="NumberBox1" runat="server" Label="" LabelAlign="Right" NoDecimal="false" Hidden="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="NumberBox2" runat="server" Label="" LabelAlign="Right" NoDecimal="false" Hidden="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="无伤害事故" BodyPadding="5px" ID="GroupPanel7" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form10" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtFireNum" runat="server" Label="火灾" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtEnvironmenNum" runat="server" Label="环保" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtTrafficNum" runat="server" Label="交通" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtEquipmentNum" runat="server" Label="机械设备" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtQualityNum" runat="server" Label="质量" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtOtherNum" runat="server" Label="其它" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtFirstAidDressingsNum" runat="server" Label="急救包扎" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtAttemptedEventNum" runat="server" Label="未遂事件" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="NumberBox3" runat="server" Label="" LabelAlign="Right" NoDecimal="false" Hidden="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="" BodyPadding="5px" ID="GroupPanel9" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form13" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtInputCosts" runat="server" Label="投入安全生产费用(万元)" LabelWidth="250px" LabelAlign="Right" NoDecimal="false"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtTrainNum" runat="server" Label="安全培训(次)" LabelWidth="250px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="隐患排查治理" BodyPadding="5px" ID="GroupPanel10" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form14" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtGeneralHazardNum" runat="server" Label="一般(个)" LabelWidth="250px" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtMajorHazardNum" runat="server" Label="重大(个)" LabelWidth="250px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="危大工程数" BodyPadding="5px" ID="GroupPanel11" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form15" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtNotProofLargeProjectNum" runat="server" Label="非经专家论证的危大工程(个)" LabelWidth="250px" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtProofLargeProjectNum" runat="server" Label="经专家论证的超危大工程(个)" LabelWidth="250px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="高风险作业许可" BodyPadding="5px" ID="GroupPanel12" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form16" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtFireLicenseNum" runat="server" Label="动火(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtLimitLicenseNum" runat="server" Label="受限空间(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtHighLicenseNum" runat="server" Label="高处作业(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHoistingLicenseNum" runat="server" Label="吊装(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtBreakGroundLicenseNum" runat="server" Label="动土(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtElectricityLicenseNum" runat="server" Label="临电(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtRTLicenseNum" runat="server" Label="射线作业(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtNightLicenseNum" runat="server" Label="夜间施工(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="NumberBox12" runat="server" Label="" LabelAlign="Right" NoDecimal="true" Hidden="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="专职安全管理人员" BodyPadding="5px" ID="GroupPanel13" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form17" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtCommissionerNum" runat="server" Label="总监(人)" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtSoleDutyNum" runat="server" Label="专职(人)" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:Form ID="Form11" runat="server" ShowHeader="false" BodyPadding="5px">
<Items>
<f:FormRow>
<Items>
<f:DropDownList ID="drpCompileMan" runat="server" Label="填报人" LabelAlign="Right"
EnableEdit="true">
</f:DropDownList>
<f:DatePicker ID="txtCompileDate" runat="server" Label="填报日期" LabelAlign="Right"
EnableEdit="true">
</f:DatePicker>
<f:Label ID="Label4" runat="server">
</f:Label>
</Items>
</f:FormRow>
</Items>
</f:Form>
<f:Form ID="Form3" runat="server" ShowHeader="false" BodyPadding="5px">
<Items>
<f:FormRow>
<Items>
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true"
BodyPadding="0px">
<uc1:FlowOperateControl ID="ctlAuditFlow" runat="server" />
</f:ContentPanel>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:ToolbarFill ID="ToolbarFill2" runat="server">
</f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1" Text="保存"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" ToolTip="提交" ValidateForms="SimpleForm1" Text="提交"
OnClick="btnSubmit_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose" Text="关闭">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Panel>
</form>
</body>
</html>
@@ -123,17 +123,17 @@ namespace FineUIPro.Web.InformationProject
{
this.txtMinorAccidentLossHour.Text = Convert.ToString(millionsMonthlyReport.MinorAccidentLossHour);
}
if (millionsMonthlyReport.OtherAccidentNum != null)
if (millionsMonthlyReport.DeathAccidentNum != null)
{
this.txtOtherAccidentNum.Text = Convert.ToString(millionsMonthlyReport.OtherAccidentNum);
this.txtDeathAccidentNum.Text = Convert.ToString(millionsMonthlyReport.DeathAccidentNum);
}
if (millionsMonthlyReport.OtherAccidentPersonNum != null)
if (millionsMonthlyReport.DeathAccidentPersonNum != null)
{
this.txtOtherAccidentPersonNum.Text = Convert.ToString(millionsMonthlyReport.OtherAccidentPersonNum);
this.txtDeathAccidentPersonNum.Text = Convert.ToString(millionsMonthlyReport.DeathAccidentPersonNum);
}
if (millionsMonthlyReport.OtherAccidentLossHour != null)
if (millionsMonthlyReport.DeathAccidentLossHour != null)
{
this.txtOtherAccidentLossHour.Text = Convert.ToString(millionsMonthlyReport.OtherAccidentLossHour);
this.txtDeathAccidentLossHour.Text = Convert.ToString(millionsMonthlyReport.DeathAccidentLossHour);
}
if (millionsMonthlyReport.RestrictedWorkPersonNum != null)
{
@@ -155,9 +155,9 @@ namespace FineUIPro.Web.InformationProject
{
this.txtFireNum.Text = Convert.ToString(millionsMonthlyReport.FireNum);
}
if (millionsMonthlyReport.ExplosionNum != null)
if (millionsMonthlyReport.EnvironmenNum != null)
{
this.txtExplosionNum.Text = Convert.ToString(millionsMonthlyReport.ExplosionNum);
this.txtEnvironmenNum.Text = Convert.ToString(millionsMonthlyReport.EnvironmenNum);
}
if (millionsMonthlyReport.TrafficNum != null)
{
@@ -195,6 +195,70 @@ namespace FineUIPro.Web.InformationProject
{
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", millionsMonthlyReport.CompileDate);
}
if (millionsMonthlyReport.InputCosts != null)
{
this.txtInputCosts.Text = Convert.ToString(millionsMonthlyReport.InputCosts);
}
if (millionsMonthlyReport.TrainNum != null)
{
this.txtTrainNum.Text = Convert.ToString(millionsMonthlyReport.TrainNum);
}
if (millionsMonthlyReport.GeneralHazardNum != null)
{
this.txtGeneralHazardNum.Text = Convert.ToString(millionsMonthlyReport.GeneralHazardNum);
}
if (millionsMonthlyReport.MajorHazardNum != null)
{
this.txtMajorHazardNum.Text = Convert.ToString(millionsMonthlyReport.MajorHazardNum);
}
if (millionsMonthlyReport.NotProofLargeProjectNum != null)
{
this.txtNotProofLargeProjectNum.Text = Convert.ToString(millionsMonthlyReport.NotProofLargeProjectNum);
}
if (millionsMonthlyReport.ProofLargeProjectNum != null)
{
this.txtProofLargeProjectNum.Text = Convert.ToString(millionsMonthlyReport.ProofLargeProjectNum);
}
if (millionsMonthlyReport.FireLicenseNum != null)
{
this.txtFireLicenseNum.Text = Convert.ToString(millionsMonthlyReport.FireLicenseNum);
}
if (millionsMonthlyReport.LimitLicenseNum != null)
{
this.txtLimitLicenseNum.Text = Convert.ToString(millionsMonthlyReport.LimitLicenseNum);
}
if (millionsMonthlyReport.HighLicenseNum != null)
{
this.txtHighLicenseNum.Text = Convert.ToString(millionsMonthlyReport.HighLicenseNum);
}
if (millionsMonthlyReport.HoistingLicenseNum != null)
{
this.txtHoistingLicenseNum.Text = Convert.ToString(millionsMonthlyReport.HoistingLicenseNum);
}
if (millionsMonthlyReport.BreakGroundLicenseNum != null)
{
this.txtBreakGroundLicenseNum.Text = Convert.ToString(millionsMonthlyReport.BreakGroundLicenseNum);
}
if (millionsMonthlyReport.ElectricityLicenseNum != null)
{
this.txtElectricityLicenseNum.Text = Convert.ToString(millionsMonthlyReport.ElectricityLicenseNum);
}
if (millionsMonthlyReport.RTLicenseNum != null)
{
this.txtRTLicenseNum.Text = Convert.ToString(millionsMonthlyReport.RTLicenseNum);
}
if (millionsMonthlyReport.NightLicenseNum != null)
{
this.txtNightLicenseNum.Text = Convert.ToString(millionsMonthlyReport.NightLicenseNum);
}
if (millionsMonthlyReport.CommissionerNum != null)
{
this.txtCommissionerNum.Text = Convert.ToString(millionsMonthlyReport.CommissionerNum);
}
if (millionsMonthlyReport.SoleDutyNum != null)
{
this.txtSoleDutyNum.Text = Convert.ToString(millionsMonthlyReport.SoleDutyNum);
}
}
}
else
@@ -206,7 +270,6 @@ namespace FineUIPro.Web.InformationProject
GetData(startTime, endTime);
this.drpCompileMan.SelectedValue = this.CurrUser.UserId;
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.txtSnapPersonNum.Text = "0";
}
///初始化审核菜单
this.ctlAuditFlow.MenuId = BLL.Const.ProjectMillionsMonthlyReportMenuId;
@@ -309,22 +372,38 @@ namespace FineUIPro.Web.InformationProject
millionsMonthlyReport.MinorAccidentNum = Funs.GetNewInt(this.txtMinorAccidentNum.Text.Trim());
millionsMonthlyReport.MinorAccidentPersonNum = Funs.GetNewInt(this.txtMinorAccidentPersonNum.Text.Trim());
millionsMonthlyReport.MinorAccidentLossHour = Funs.GetNewInt(this.txtMinorAccidentLossHour.Text.Trim());
millionsMonthlyReport.OtherAccidentNum = Funs.GetNewInt(this.txtOtherAccidentNum.Text.Trim());
millionsMonthlyReport.OtherAccidentPersonNum = Funs.GetNewInt(this.txtOtherAccidentPersonNum.Text.Trim());
millionsMonthlyReport.OtherAccidentLossHour = Funs.GetNewInt(this.txtOtherAccidentLossHour.Text.Trim());
millionsMonthlyReport.DeathAccidentNum = Funs.GetNewInt(this.txtDeathAccidentNum.Text.Trim());
millionsMonthlyReport.DeathAccidentPersonNum = Funs.GetNewInt(this.txtDeathAccidentPersonNum.Text.Trim());
millionsMonthlyReport.DeathAccidentLossHour = Funs.GetNewInt(this.txtDeathAccidentLossHour.Text.Trim());
millionsMonthlyReport.RestrictedWorkPersonNum = Funs.GetNewInt(this.txtRestrictedWorkPersonNum.Text.Trim());
millionsMonthlyReport.RestrictedWorkLossHour = Funs.GetNewInt(this.txtRestrictedWorkLossHour.Text.Trim());
millionsMonthlyReport.MedicalTreatmentPersonNum = Funs.GetNewInt(this.txtMedicalTreatmentPersonNum.Text.Trim());
millionsMonthlyReport.MedicalTreatmentLossHour = Funs.GetNewInt(this.txtMedicalTreatmentLossHour.Text.Trim());
millionsMonthlyReport.FireNum = Funs.GetNewInt(this.txtFireNum.Text.Trim());
millionsMonthlyReport.ExplosionNum = Funs.GetNewInt(this.txtExplosionNum.Text.Trim());
millionsMonthlyReport.TrafficNum = Funs.GetNewInt(this.txtTrafficNum.Text.Trim());
millionsMonthlyReport.EnvironmenNum = Funs.GetNewInt(this.txtEnvironmenNum.Text.Trim());
millionsMonthlyReport.TrafficNum = Funs.GetNewInt(this.txtTrafficNum.Text.Trim());
millionsMonthlyReport.EquipmentNum = Funs.GetNewInt(this.txtEquipmentNum.Text.Trim());
millionsMonthlyReport.QualityNum = Funs.GetNewInt(this.txtQualityNum.Text.Trim());
millionsMonthlyReport.OtherNum = Funs.GetNewInt(this.txtOtherNum.Text.Trim());
millionsMonthlyReport.FirstAidDressingsNum = Funs.GetNewInt(this.txtFirstAidDressingsNum.Text.Trim());
millionsMonthlyReport.AttemptedEventNum = Funs.GetNewInt(this.txtAttemptedEventNum.Text.Trim());
millionsMonthlyReport.LossDayNum = Funs.GetNewInt(this.txtLossDayNum.Text.Trim());
millionsMonthlyReport.InputCosts = Funs.GetNewDecimalOrZero(this.txtInputCosts.Text.Trim());
millionsMonthlyReport.TrainNum = Funs.GetNewInt(this.txtTrainNum.Text.Trim());
millionsMonthlyReport.GeneralHazardNum = Funs.GetNewInt(this.txtGeneralHazardNum.Text.Trim());
millionsMonthlyReport.MajorHazardNum = Funs.GetNewInt(this.txtMajorHazardNum.Text.Trim());
millionsMonthlyReport.NotProofLargeProjectNum = Funs.GetNewInt(this.txtNotProofLargeProjectNum.Text.Trim());
millionsMonthlyReport.ProofLargeProjectNum = Funs.GetNewInt(this.txtProofLargeProjectNum.Text.Trim());
millionsMonthlyReport.FireLicenseNum = Funs.GetNewInt(this.txtFireLicenseNum.Text.Trim());
millionsMonthlyReport.LimitLicenseNum = Funs.GetNewInt(this.txtLimitLicenseNum.Text.Trim());
millionsMonthlyReport.HighLicenseNum = Funs.GetNewInt(this.txtHighLicenseNum.Text.Trim());
millionsMonthlyReport.HoistingLicenseNum = Funs.GetNewInt(this.txtHoistingLicenseNum.Text.Trim());
millionsMonthlyReport.BreakGroundLicenseNum = Funs.GetNewInt(this.txtBreakGroundLicenseNum.Text.Trim());
millionsMonthlyReport.ElectricityLicenseNum = Funs.GetNewInt(this.txtElectricityLicenseNum.Text.Trim());
millionsMonthlyReport.RTLicenseNum = Funs.GetNewInt(this.txtRTLicenseNum.Text.Trim());
millionsMonthlyReport.NightLicenseNum = Funs.GetNewInt(this.txtNightLicenseNum.Text.Trim());
millionsMonthlyReport.CommissionerNum = Funs.GetNewInt(this.txtCommissionerNum.Text.Trim());
millionsMonthlyReport.SoleDutyNum = Funs.GetNewInt(this.txtSoleDutyNum.Text.Trim());
if (!string.IsNullOrEmpty(this.MillionsMonthlyReportId))
{
millionsMonthlyReport.MillionsMonthlyReportId = this.MillionsMonthlyReportId;
@@ -345,7 +424,7 @@ namespace FineUIPro.Web.InformationProject
BLL.LogService.AddSys_Log(this.CurrUser, millionsMonthlyReport.Year.ToString() + "-" + millionsMonthlyReport.Month.ToString(), millionsMonthlyReport.MillionsMonthlyReportId, BLL.Const.ProjectMillionsMonthlyReportMenuId, BLL.Const.BtnAdd);
////删除未上报月报信息
//Model.ManagementReport_ReportRemind reportRemind = (from x in Funs.DB.ManagementReport_ReportRemind
// where x.ProjectId == this.ProjectId && x.Year == millionsMonthlyReport.Year && x.Month == millionsMonthlyReport.Month && x.ReportName == "百万工时安全统计月报"
// where x.ProjectId == this.ProjectId && x.Year == millionsMonthlyReport.Year && x.Month == millionsMonthlyReport.Month && x.ReportName == "企业安全数据统计月报"
// select x).FirstOrDefault();
//if (reportRemind != null)
//{
@@ -402,7 +481,7 @@ namespace FineUIPro.Web.InformationProject
{
foreach (var dayReport in dayReports)
{
sumTotalPanhours += Convert.ToInt32((from y in db.SitePerson_DayReportDetail where y.DayReportId == dayReport.DayReportId select y.PersonWorkTime ?? 0).Sum());
sumTotalPanhours += Convert.ToInt32((from y in db.SitePerson_DayReportDetail where y.DayReportId == dayReport.DayReportId select y.PersonWorkTime as decimal?).Sum());
}
//总工时数(万)
@@ -584,9 +663,9 @@ namespace FineUIPro.Web.InformationProject
this.txtMinorAccidentPersonNum.Text = accidentReports2.Sum(x => x.PeopleNum ?? 0).ToString();
this.txtMinorAccidentLossHour.Text = accidentReports2.Sum(x => x.WorkingHoursLoss ?? 0).ToString();
List<Model.Accident_AccidentReport> accidentReports3 = BLL.AccidentReportService.GetAccidentReportsByTimeAndAccidentTypeId(startTime, endTime, this.ProjectId, "1");
this.txtOtherAccidentNum.Text = accidentReports3.Count().ToString();
this.txtOtherAccidentPersonNum.Text = accidentReports3.Sum(x => x.PeopleNum ?? 0).ToString();
this.txtOtherAccidentLossHour.Text = accidentReports3.Sum(x => x.WorkingHoursLoss ?? 0).ToString();
this.txtDeathAccidentNum.Text = accidentReports3.Count().ToString();
this.txtDeathAccidentPersonNum.Text = accidentReports3.Sum(x => x.PeopleNum ?? 0).ToString();
this.txtDeathAccidentLossHour.Text = accidentReports3.Sum(x => x.WorkingHoursLoss ?? 0).ToString();
List<Model.Accident_AccidentReportOther> accidentReports4 = BLL.AccidentReportOtherService.GetAccidentReportOthersByTimeAndAccidentTypeId(startTime, endTime, this.ProjectId, "1");
this.txtRestrictedWorkPersonNum.Text = accidentReports4.Sum(x => x.PeopleNum ?? 0).ToString();
this.txtRestrictedWorkLossHour.Text = accidentReports4.Sum(x => x.WorkingHoursLoss ?? 0).ToString();
@@ -596,7 +675,7 @@ namespace FineUIPro.Web.InformationProject
List<Model.Accident_AccidentReport> accidentReports6 = BLL.AccidentReportService.GetAccidentReportsByTimeAndAccidentTypeId(startTime, endTime, this.ProjectId, "4");
this.txtFireNum.Text = accidentReports6.Count().ToString();
List<Model.Accident_AccidentReport> accidentReports7 = BLL.AccidentReportService.GetAccidentReportsByTimeAndAccidentTypeId(startTime, endTime, this.ProjectId, "5");
this.txtExplosionNum.Text = accidentReports7.Count().ToString();
this.txtEnvironmenNum.Text = accidentReports7.Count().ToString();
List<Model.Accident_AccidentReport> accidentReports8 = BLL.AccidentReportService.GetAccidentReportsByTimeAndAccidentTypeId(startTime, endTime, this.ProjectId, "6");
this.txtTrafficNum.Text = accidentReports8.Count().ToString();
List<Model.Accident_AccidentReport> accidentReports9 = BLL.AccidentReportService.GetAccidentReportsByTimeAndAccidentTypeId(startTime, endTime, this.ProjectId, "7");
@@ -129,6 +129,51 @@ namespace FineUIPro.Web.InformationProject {
/// </remarks>
protected global::FineUIPro.NumberBox txtContractorNum;
/// <summary>
/// GroupPanel4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel4;
/// <summary>
/// Form7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form7;
/// <summary>
/// txtDeathAccidentNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtDeathAccidentNum;
/// <summary>
/// txtDeathAccidentPersonNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtDeathAccidentPersonNum;
/// <summary>
/// txtDeathAccidentLossHour 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtDeathAccidentLossHour;
/// <summary>
/// GroupPanel2 控件。
/// </summary>
@@ -219,51 +264,6 @@ namespace FineUIPro.Web.InformationProject {
/// </remarks>
protected global::FineUIPro.NumberBox txtMinorAccidentLossHour;
/// <summary>
/// GroupPanel4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel4;
/// <summary>
/// Form7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form7;
/// <summary>
/// txtOtherAccidentNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtOtherAccidentNum;
/// <summary>
/// txtOtherAccidentPersonNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtOtherAccidentPersonNum;
/// <summary>
/// txtOtherAccidentLossHour 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtOtherAccidentLossHour;
/// <summary>
/// GroupPanel5 控件。
/// </summary>
@@ -354,6 +354,51 @@ namespace FineUIPro.Web.InformationProject {
/// </remarks>
protected global::FineUIPro.Label Label2;
/// <summary>
/// GroupPanel8 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel8;
/// <summary>
/// Form12 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form12;
/// <summary>
/// txtLossDayNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtLossDayNum;
/// <summary>
/// NumberBox1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox NumberBox1;
/// <summary>
/// NumberBox2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox NumberBox2;
/// <summary>
/// GroupPanel7 控件。
/// </summary>
@@ -382,13 +427,13 @@ namespace FineUIPro.Web.InformationProject {
protected global::FineUIPro.NumberBox txtFireNum;
/// <summary>
/// txtExplosionNum 控件。
/// txtEnvironmenNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtExplosionNum;
protected global::FineUIPro.NumberBox txtEnvironmenNum;
/// <summary>
/// txtTrafficNum 控件。
@@ -426,15 +471,6 @@ namespace FineUIPro.Web.InformationProject {
/// </remarks>
protected global::FineUIPro.NumberBox txtOtherNum;
/// <summary>
/// Form11 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form11;
/// <summary>
/// txtFirstAidDressingsNum 控件。
/// </summary>
@@ -454,13 +490,265 @@ namespace FineUIPro.Web.InformationProject {
protected global::FineUIPro.NumberBox txtAttemptedEventNum;
/// <summary>
/// txtLossDayNum 控件。
/// NumberBox3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtLossDayNum;
protected global::FineUIPro.NumberBox NumberBox3;
/// <summary>
/// GroupPanel9 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel9;
/// <summary>
/// Form13 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form13;
/// <summary>
/// txtInputCosts 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtInputCosts;
/// <summary>
/// txtTrainNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtTrainNum;
/// <summary>
/// GroupPanel10 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel10;
/// <summary>
/// Form14 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form14;
/// <summary>
/// txtGeneralHazardNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtGeneralHazardNum;
/// <summary>
/// txtMajorHazardNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtMajorHazardNum;
/// <summary>
/// GroupPanel11 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel11;
/// <summary>
/// Form15 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form15;
/// <summary>
/// txtNotProofLargeProjectNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtNotProofLargeProjectNum;
/// <summary>
/// txtProofLargeProjectNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtProofLargeProjectNum;
/// <summary>
/// GroupPanel12 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel12;
/// <summary>
/// Form16 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form16;
/// <summary>
/// txtFireLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtFireLicenseNum;
/// <summary>
/// txtLimitLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtLimitLicenseNum;
/// <summary>
/// txtHighLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtHighLicenseNum;
/// <summary>
/// txtHoistingLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtHoistingLicenseNum;
/// <summary>
/// txtBreakGroundLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtBreakGroundLicenseNum;
/// <summary>
/// txtElectricityLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtElectricityLicenseNum;
/// <summary>
/// txtRTLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtRTLicenseNum;
/// <summary>
/// txtNightLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtNightLicenseNum;
/// <summary>
/// NumberBox12 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox NumberBox12;
/// <summary>
/// GroupPanel13 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel13;
/// <summary>
/// Form17 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form17;
/// <summary>
/// txtCommissionerNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtCommissionerNum;
/// <summary>
/// txtSoleDutyNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtSoleDutyNum;
/// <summary>
/// Form11 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form11;
/// <summary>
/// drpCompileMan 控件。
@@ -7,14 +7,14 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看百万工时安全统计月报</title>
<title>查看企业安全数据统计月报</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1"/>
<f:Panel ID="Panel1" BodyPadding="5px" runat="server" ShowHeader="false" EnableCollapse="True"
Title="百万工时安全统计月报" AutoScroll="true">
Title="企业安全数据统计月报" AutoScroll="true">
<Items>
<f:Form ID="Form2" runat="server" ShowHeader="false" BodyPadding="5px" RedStarPosition="BeforeText">
<Items>
@@ -69,6 +69,28 @@
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="死亡事故" BodyPadding="5px" ID="GroupPanel4" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form7" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtDeathAccidentNum" runat="server" Label="起数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0" Readonly="true">
</f:NumberBox>
<f:NumberBox ID="txtDeathAccidentPersonNum" runat="server" Label="人数" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0" Readonly="true">
</f:NumberBox>
<f:NumberBox ID="txtDeathAccidentLossHour" runat="server" Label="损失工时" LabelAlign="Right"
NoDecimal="false" NoNegative="false" EmptyText="0" Readonly="true">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="重伤事故" BodyPadding="5px" ID="GroupPanel2" EnableCollapse="True"
Collapsed="false">
<Items>
@@ -113,28 +135,6 @@
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="其它事故" BodyPadding="5px" ID="GroupPanel4" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form7" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtOtherAccidentNum" runat="server" Label="起数" LabelAlign="Right"
Readonly="true">
</f:NumberBox>
<f:NumberBox ID="txtOtherAccidentPersonNum" runat="server" Label="人数" LabelAlign="Right"
Readonly="true">
</f:NumberBox>
<f:NumberBox ID="txtOtherAccidentLossHour" runat="server" Label="损失工时" LabelAlign="Right"
Readonly="true">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="工作受限" BodyPadding="5px" ID="GroupPanel5" EnableCollapse="True"
Collapsed="false">
<Items>
@@ -177,6 +177,29 @@
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="损失工日" BodyPadding="5px" ID="GroupPanel8" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form12" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtLossDayNum" runat="server" Label="损失工日" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="NumberBox1" runat="server" Label="" LabelAlign="Right" NoDecimal="false" Hidden="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="NumberBox2" runat="server" Label="" LabelAlign="Right" NoDecimal="false" Hidden="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="无伤害事故" BodyPadding="5px" ID="GroupPanel7" EnableCollapse="True"
Collapsed="false">
<Items>
@@ -186,8 +209,9 @@
<Items>
<f:NumberBox ID="txtFireNum" runat="server" Label="火灾" LabelAlign="Right" Readonly="true">
</f:NumberBox>
<f:NumberBox ID="txtExplosionNum" runat="server" Label="爆炸" LabelAlign="Right" Readonly="true">
</f:NumberBox>
<f:NumberBox ID="txtEnvironmenNum" runat="server" Label="环保" LabelAlign="Right" NoDecimal="false"
NoNegative="false" EmptyText="0" Readonly="true">
</f:NumberBox>
<f:NumberBox ID="txtTrafficNum" runat="server" Label="交通" LabelAlign="Right" Readonly="true">
</f:NumberBox>
</Items>
@@ -203,13 +227,7 @@
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:Form ID="Form11" runat="server" ShowHeader="false" BodyPadding="5px">
<Items>
<f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtFirstAidDressingsNum" runat="server" Label="急救包扎" LabelAlign="Right"
Readonly="true">
@@ -217,10 +235,145 @@
<f:NumberBox ID="txtAttemptedEventNum" runat="server" Label="未遂事件" LabelAlign="Right"
Readonly="true">
</f:NumberBox>
<f:NumberBox ID="txtLossDayNum" runat="server" Label="损失工日" LabelAlign="Right" Readonly="true">
<f:NumberBox ID="t" runat="server" Label="" LabelAlign="Right" Readonly="true" Hidden="true">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="" BodyPadding="5px" ID="GroupPanel9" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form13" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtInputCosts" runat="server" Label="投入安全生产费用(万元)" LabelWidth="250px" LabelAlign="Right" NoDecimal="false"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtTrainNum" runat="server" Label="安全培训(次)" LabelWidth="250px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="隐患排查治理" BodyPadding="5px" ID="GroupPanel10" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form14" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtGeneralHazardNum" runat="server" Label="一般(个)" LabelWidth="250px" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtMajorHazardNum" runat="server" Label="重大(个)" LabelWidth="250px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="危大工程数" BodyPadding="5px" ID="GroupPanel11" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form15" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtNotProofLargeProjectNum" runat="server" Label="非经专家论证的危大工程(个)" LabelWidth="250px" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtProofLargeProjectNum" runat="server" Label="经专家论证的超危大工程(个)" LabelWidth="250px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="高风险作业许可" BodyPadding="5px" ID="GroupPanel12" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form16" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtFireLicenseNum" runat="server" Label="动火(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtLimitLicenseNum" runat="server" Label="受限空间(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtHighLicenseNum" runat="server" Label="高处作业(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtHoistingLicenseNum" runat="server" Label="吊装(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtBreakGroundLicenseNum" runat="server" Label="动土(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtElectricityLicenseNum" runat="server" Label="临电(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtRTLicenseNum" runat="server" Label="射线作业(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtNightLicenseNum" runat="server" Label="夜间施工(个)" LabelWidth="130px" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="NumberBox12" runat="server" Label="" LabelAlign="Right" NoDecimal="true" Hidden="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:GroupPanel runat="server" Title="专职安全管理人员" BodyPadding="5px" ID="GroupPanel13" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form17" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtCommissionerNum" runat="server" Label="总监(人)" LabelAlign="Right" NoDecimal="true"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:NumberBox ID="txtSoleDutyNum" runat="server" Label="专职(人)" LabelAlign="Right" NoDecimal="true"
NoNegative="false" EmptyText="0">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
<f:Form ID="Form11" runat="server" ShowHeader="false" BodyPadding="5px">
<Items>
<f:FormRow>
<Items>
<f:TextBox ID="txtCompileManName" runat="server" Label="填报人" LabelAlign="Right" Readonly="true">
@@ -252,7 +405,7 @@
<Items>
<f:ToolbarFill ID="ToolbarFill2" runat="server">
</f:ToolbarFill>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Text="关闭" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
@@ -122,18 +122,18 @@ namespace FineUIPro.Web.InformationProject
if (millionsMonthlyReport.MinorAccidentLossHour != null)
{
this.txtMinorAccidentLossHour.Text = Convert.ToString(millionsMonthlyReport.MinorAccidentLossHour);
}
if (millionsMonthlyReport.OtherAccidentNum != null)
}
if (millionsMonthlyReport.DeathAccidentNum != null)
{
this.txtOtherAccidentNum.Text = Convert.ToString(millionsMonthlyReport.OtherAccidentNum);
this.txtDeathAccidentNum.Text = Convert.ToString(millionsMonthlyReport.DeathAccidentNum);
}
if (millionsMonthlyReport.OtherAccidentPersonNum != null)
if (millionsMonthlyReport.DeathAccidentPersonNum != null)
{
this.txtOtherAccidentPersonNum.Text = Convert.ToString(millionsMonthlyReport.OtherAccidentPersonNum);
this.txtDeathAccidentPersonNum.Text = Convert.ToString(millionsMonthlyReport.DeathAccidentPersonNum);
}
if (millionsMonthlyReport.OtherAccidentLossHour != null)
if (millionsMonthlyReport.DeathAccidentLossHour!= null)
{
this.txtOtherAccidentLossHour.Text = Convert.ToString(millionsMonthlyReport.OtherAccidentLossHour);
this.txtDeathAccidentLossHour.Text = Convert.ToString(millionsMonthlyReport.DeathAccidentLossHour);
}
if (millionsMonthlyReport.RestrictedWorkPersonNum != null)
{
@@ -155,9 +155,9 @@ namespace FineUIPro.Web.InformationProject
{
this.txtFireNum.Text = Convert.ToString(millionsMonthlyReport.FireNum);
}
if (millionsMonthlyReport.ExplosionNum != null)
if (millionsMonthlyReport.EnvironmenNum != null)
{
this.txtExplosionNum.Text = Convert.ToString(millionsMonthlyReport.ExplosionNum);
this.txtEnvironmenNum.Text = Convert.ToString(millionsMonthlyReport.EnvironmenNum);
}
if (millionsMonthlyReport.TrafficNum != null)
{
@@ -187,6 +187,70 @@ namespace FineUIPro.Web.InformationProject
{
this.txtLossDayNum.Text = Convert.ToString(millionsMonthlyReport.LossDayNum);
}
if (millionsMonthlyReport.InputCosts != null)
{
this.txtInputCosts.Text = Convert.ToString(millionsMonthlyReport.InputCosts);
}
if (millionsMonthlyReport.TrainNum != null)
{
this.txtTrainNum.Text = Convert.ToString(millionsMonthlyReport.TrainNum);
}
if (millionsMonthlyReport.GeneralHazardNum != null)
{
this.txtGeneralHazardNum.Text = Convert.ToString(millionsMonthlyReport.GeneralHazardNum);
}
if (millionsMonthlyReport.MajorHazardNum != null)
{
this.txtMajorHazardNum.Text = Convert.ToString(millionsMonthlyReport.MajorHazardNum);
}
if (millionsMonthlyReport.NotProofLargeProjectNum != null)
{
this.txtNotProofLargeProjectNum.Text = Convert.ToString(millionsMonthlyReport.NotProofLargeProjectNum);
}
if (millionsMonthlyReport.ProofLargeProjectNum != null)
{
this.txtProofLargeProjectNum.Text = Convert.ToString(millionsMonthlyReport.ProofLargeProjectNum);
}
if (millionsMonthlyReport.FireLicenseNum != null)
{
this.txtFireLicenseNum.Text = Convert.ToString(millionsMonthlyReport.FireLicenseNum);
}
if (millionsMonthlyReport.LimitLicenseNum != null)
{
this.txtLimitLicenseNum.Text = Convert.ToString(millionsMonthlyReport.LimitLicenseNum);
}
if (millionsMonthlyReport.HighLicenseNum != null)
{
this.txtHighLicenseNum.Text = Convert.ToString(millionsMonthlyReport.HighLicenseNum);
}
if (millionsMonthlyReport.HoistingLicenseNum != null)
{
this.txtHoistingLicenseNum.Text = Convert.ToString(millionsMonthlyReport.HoistingLicenseNum);
}
if (millionsMonthlyReport.BreakGroundLicenseNum != null)
{
this.txtBreakGroundLicenseNum.Text = Convert.ToString(millionsMonthlyReport.BreakGroundLicenseNum);
}
if (millionsMonthlyReport.ElectricityLicenseNum != null)
{
this.txtElectricityLicenseNum.Text = Convert.ToString(millionsMonthlyReport.ElectricityLicenseNum);
}
if (millionsMonthlyReport.RTLicenseNum != null)
{
this.txtRTLicenseNum.Text = Convert.ToString(millionsMonthlyReport.RTLicenseNum);
}
if (millionsMonthlyReport.NightLicenseNum != null)
{
this.txtNightLicenseNum.Text = Convert.ToString(millionsMonthlyReport.NightLicenseNum);
}
if (millionsMonthlyReport.CommissionerNum != null)
{
this.txtCommissionerNum.Text = Convert.ToString(millionsMonthlyReport.CommissionerNum);
}
if (millionsMonthlyReport.SoleDutyNum != null)
{
this.txtSoleDutyNum.Text = Convert.ToString(millionsMonthlyReport.SoleDutyNum);
}
if (!string.IsNullOrEmpty(millionsMonthlyReport.CompileMan))
{
var user = BLL.UserService.GetUserByUserId(millionsMonthlyReport.CompileMan);
@@ -129,6 +129,51 @@ namespace FineUIPro.Web.InformationProject {
/// </remarks>
protected global::FineUIPro.NumberBox txtContractorNum;
/// <summary>
/// GroupPanel4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel4;
/// <summary>
/// Form7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form7;
/// <summary>
/// txtDeathAccidentNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtDeathAccidentNum;
/// <summary>
/// txtDeathAccidentPersonNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtDeathAccidentPersonNum;
/// <summary>
/// txtDeathAccidentLossHour 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtDeathAccidentLossHour;
/// <summary>
/// GroupPanel2 控件。
/// </summary>
@@ -219,51 +264,6 @@ namespace FineUIPro.Web.InformationProject {
/// </remarks>
protected global::FineUIPro.NumberBox txtMinorAccidentLossHour;
/// <summary>
/// GroupPanel4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel4;
/// <summary>
/// Form7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form7;
/// <summary>
/// txtOtherAccidentNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtOtherAccidentNum;
/// <summary>
/// txtOtherAccidentPersonNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtOtherAccidentPersonNum;
/// <summary>
/// txtOtherAccidentLossHour 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtOtherAccidentLossHour;
/// <summary>
/// GroupPanel5 控件。
/// </summary>
@@ -354,6 +354,51 @@ namespace FineUIPro.Web.InformationProject {
/// </remarks>
protected global::FineUIPro.Label Label2;
/// <summary>
/// GroupPanel8 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel8;
/// <summary>
/// Form12 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form12;
/// <summary>
/// txtLossDayNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtLossDayNum;
/// <summary>
/// NumberBox1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox NumberBox1;
/// <summary>
/// NumberBox2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox NumberBox2;
/// <summary>
/// GroupPanel7 控件。
/// </summary>
@@ -382,13 +427,13 @@ namespace FineUIPro.Web.InformationProject {
protected global::FineUIPro.NumberBox txtFireNum;
/// <summary>
/// txtExplosionNum 控件。
/// txtEnvironmenNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtExplosionNum;
protected global::FineUIPro.NumberBox txtEnvironmenNum;
/// <summary>
/// txtTrafficNum 控件。
@@ -426,15 +471,6 @@ namespace FineUIPro.Web.InformationProject {
/// </remarks>
protected global::FineUIPro.NumberBox txtOtherNum;
/// <summary>
/// Form11 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form11;
/// <summary>
/// txtFirstAidDressingsNum 控件。
/// </summary>
@@ -454,13 +490,265 @@ namespace FineUIPro.Web.InformationProject {
protected global::FineUIPro.NumberBox txtAttemptedEventNum;
/// <summary>
/// txtLossDayNum 控件。
/// t 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtLossDayNum;
protected global::FineUIPro.NumberBox t;
/// <summary>
/// GroupPanel9 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel9;
/// <summary>
/// Form13 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form13;
/// <summary>
/// txtInputCosts 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtInputCosts;
/// <summary>
/// txtTrainNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtTrainNum;
/// <summary>
/// GroupPanel10 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel10;
/// <summary>
/// Form14 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form14;
/// <summary>
/// txtGeneralHazardNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtGeneralHazardNum;
/// <summary>
/// txtMajorHazardNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtMajorHazardNum;
/// <summary>
/// GroupPanel11 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel11;
/// <summary>
/// Form15 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form15;
/// <summary>
/// txtNotProofLargeProjectNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtNotProofLargeProjectNum;
/// <summary>
/// txtProofLargeProjectNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtProofLargeProjectNum;
/// <summary>
/// GroupPanel12 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel12;
/// <summary>
/// Form16 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form16;
/// <summary>
/// txtFireLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtFireLicenseNum;
/// <summary>
/// txtLimitLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtLimitLicenseNum;
/// <summary>
/// txtHighLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtHighLicenseNum;
/// <summary>
/// txtHoistingLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtHoistingLicenseNum;
/// <summary>
/// txtBreakGroundLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtBreakGroundLicenseNum;
/// <summary>
/// txtElectricityLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtElectricityLicenseNum;
/// <summary>
/// txtRTLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtRTLicenseNum;
/// <summary>
/// txtNightLicenseNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtNightLicenseNum;
/// <summary>
/// NumberBox12 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox NumberBox12;
/// <summary>
/// GroupPanel13 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel13;
/// <summary>
/// Form17 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form17;
/// <summary>
/// txtCommissionerNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtCommissionerNum;
/// <summary>
/// txtSoleDutyNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtSoleDutyNum;
/// <summary>
/// Form11 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form11;
/// <summary>
/// txtCompileManName 控件。
@@ -0,0 +1,129 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkSummaryReport.aspx.cs" Inherits="FineUIPro.Web.HSSE.InformationProject.WorkSummaryReport" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>安全管理工作总结报告</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="安全管理工作总结报告" EnableCollapse="true"
runat="server" BoxFlex="1" EnableColumnLines="true" DataKeyNames="WorkSummaryReportId"
AllowCellEditing="true" ClicksToEdit="2" DataIDField="WorkSummaryReportId"
AllowSorting="true" SortField="CompileDate" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpYear" runat="server" Label="年份" LabelAlign="Right" Width="250px"
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" Hidden="true" Text="新增"
runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="250px" ColumnID="UnitName" DataField="UnitName"
SortField="UnitName" FieldType="String" HeaderText="填报单位" HeaderTextAlign="Center"
TextAlign="Left" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ResponsiblePerson" DataField="ResponsiblePerson"
SortField="ResponsiblePerson" FieldType="String" HeaderText="负责人" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="ResponsiblePersonTel" DataField="ResponsiblePersonTel"
SortField="ResponsiblePersonTel" FieldType="String" HeaderText="负责人电话" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ContactPerson" DataField="ContactPerson"
SortField="ContactPerson" FieldType="String" HeaderText="联系人" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="ContactPersonTel" DataField="ContactPersonTel"
SortField="ContactPersonTel" FieldType="String" HeaderText="联系人电话" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ReportDate" DataField="ReportDate"
SortField="ReportDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="报告时间" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="110px" ColumnID="CompileManName" DataField="CompileManName"
SortField="CompileManName" FieldType="String" HeaderText="填报人" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="CompileDate" DataField="CompileDate"
SortField="CompileDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="填报日期" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<%--<f:RenderField Width="150px" ColumnID="FlowOperateName" DataField="FlowOperateName"
SortField="FlowOperateName" FieldType="String" HeaderText="状态" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>--%>
<%--<f:TemplateField HeaderText="打印" Width="80px">
<ItemTemplate>
<asp:LinkButton ID="btnPrint" runat="server" Text="打印" OnClick="btnPrint_Click"></asp:LinkButton>
</ItemTemplate>
</f:TemplateField>--%>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="编辑安全管理工作总结报告" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="1100px"
Height="560px">
</f:Window>
<%--<f:Window ID="Window2" IconUrl="~/res/images/16/11.png" runat="server" Hidden="true"
IsModal="false" Target="Parent" EnableMaximize="true" EnableResize="false"
Title="打印安全管理工作总结报告" CloseAction="HidePostBack" EnableIFrame="true" Height="768px"
Width="1024px">
</f:Window>--%>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="TableEdit" EnablePostBack="true"
Hidden="true" runat="server" Text="编辑">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server"
Text="删除">
</f:MenuButton>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false,来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
function reloadGrid() {
__doPostBack(null, 'reloadGrid');
}
</script>
</body>
</html>
@@ -0,0 +1,275 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace FineUIPro.Web.HSSE.InformationProject
{
public partial class WorkSummaryReport : PageBase
{
#region
/// <summary>
/// 项目主键
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Funs.DropDownPageSize(this.ddlPageSize);
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{
this.ProjectId = Request.Params["projectId"];
}
////权限按钮方法
this.GetButtonPower();
BLL.ConstValue.InitConstValueDropDownList(this.drpYear, BLL.ConstValue.Group_0008, true);
this.btnNew.OnClientClick = Window1.GetShowReference("WorkSummaryReportEdit.aspx") + "return false;";
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
{
Grid1.PageSize = this.CurrUser.PageSize.Value;
}
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格
this.BindGrid();
}
}
/// <summary>
/// 绑定数据
/// </summary>
private void BindGrid()
{
string strSql = @"SELECT workSummaryReport.WorkSummaryReportId,"
+ @"workSummaryReport.ProjectId,"
+ @"workSummaryReport.UnitId,"
+ @"workSummaryReport.YearId,"
+ @"workSummaryReport.ResponsiblePerson,"
+ @"workSummaryReport.ResponsiblePersonTel,"
+ @"workSummaryReport.ContactPerson,"
+ @"workSummaryReport.ContactPersonTel,"
+ @"workSummaryReport.ReportDate,"
+ @"workSummaryReport.SafeLaborTime,"
+ @"workSummaryReport.SafetyObjectives,"
+ @"workSummaryReport.AccidentSituation,"
+ @"workSummaryReport.Awards,"
+ @"workSummaryReport.WorkDevelopment,"
+ @"workSummaryReport.PersonnelTraining,"
+ @"workSummaryReport.GovernanceSituation,"
+ @"workSummaryReport.ManagementActivity,"
+ @"workSummaryReport.WorkExperience,"
+ @"workSummaryReport.Countermeasures,"
+ @"workSummaryReport.NextYearWorkPlan,"
+ @"workSummaryReport.JobSuggestion,"
+ @"workSummaryReport.CompileMan,"
+ @"workSummaryReport.CompileDate, "
+ @"U.UserName as CompileManName, "
+ @"Unit.UnitName "
+ @" FROM InformationProject_WorkSummaryReport AS workSummaryReport "
+ @" LEFT JOIN Sys_User AS U ON U.UserId = workSummaryReport.CompileMan "
+ @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = workSummaryReport.UnitId WHERE 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
strSql += " AND workSummaryReport.ProjectId = '" + this.ProjectId + "'";
if (this.drpYear.SelectedValue != BLL.Const._Null)
{
strSql += " AND workSummaryReport.YearId = @Year";
listStr.Add(new SqlParameter("@Year", Funs.GetNewInt(this.drpYear.SelectedValue)));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#region
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e)
{
this.BindGrid();
}
#endregion
#region
/// <summary>
/// 改变索引事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
BindGrid();
}
/// <summary>
/// 分页下拉选择事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
BindGrid();
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
this.BindGrid();
}
#endregion
#endregion
#region
/// <summary>
/// 双击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
this.EditData();
}
/// <summary>
/// 右键编辑事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuEdit_Click(object sender, EventArgs e)
{
this.EditData();
}
/// <summary>
/// 编辑数据方法
/// </summary>
private void EditData()
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
string id = Grid1.SelectedRowID;
var projectWorkSummaryReport = BLL.ProjectWorkSummaryReportService.GetWorkSummaryReportById(id);
if (projectWorkSummaryReport != null)
{
//if (this.btnMenuEdit.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面
//{
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WorkSummaryReportView.aspx?workSummaryReportId={0}", id, "查看 - ")));
//}
//else
//{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WorkSummaryReportEdit.aspx?workSummaryReportId={0}", id, "编辑 - ")));
//}
}
}
#endregion
#region
/// <summary>
/// 右键删除事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuDelete_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length > 0)
{
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
var report = BLL.ProjectWorkSummaryReportService.GetWorkSummaryReportById(rowID);
if (report != null)
{
BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), rowID, BLL.Const.ProjectWorkSummaryReportMenuId, BLL.Const.BtnDelete);
BLL.ProjectWorkSummaryReportService.DeleteWorkSummaryReportById(rowID);
}
}
this.BindGrid();
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
}
}
#endregion
#region
/// <summary>
/// 打印
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
//protected void btnPrint_Click(object sender, EventArgs e)
//{
// if (!string.IsNullOrEmpty(Grid1.SelectedRowID))
// {
// PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/ReportPrint/ExReportPrint.aspx?reportId={0}&&replaceParameter={1}&&varValue={2}", Const.ProjectInformation_MillionsMonthlyReportId, Grid1.SelectedRowID, "", "打印 - ")));
// }
//}
#endregion
#region
/// <summary>
/// 获取按钮权限
/// </summary>
/// <param name="button"></param>
/// <returns></returns>
private void GetButtonPower()
{
if (Request.Params["value"] == "0")
{
return;
}
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectWorkSummaryReportMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
this.btnMenuEdit.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
this.btnMenuDelete.Hidden = false;
}
}
}
#endregion
}
}
@@ -0,0 +1,150 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HSSE.InformationProject {
public partial class WorkSummaryReport {
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// drpYear 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpYear;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnNew 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Menu1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuEdit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuEdit;
/// <summary>
/// btnMenuDelete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDelete;
}
}
@@ -0,0 +1,292 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkSummaryReportEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.InformationProject.WorkSummaryReportEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑安全管理工作总结报告</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:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:DropDownList ID="ddlYearId" runat="server" Label="年度" Required="True" ShowRedStar="True">
</f:DropDownList>
<f:DatePicker ID="txtReportDate" runat="server" Label="报告时间" Required="true" ShowRedStar="true"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtResponsiblePerson" runat="server" Label="负责人"></f:TextBox>
<f:TextBox ID="txtResponsiblePersonTel" runat="server" Label="负责人电话"></f:TextBox>
<f:TextBox ID="txtContactPerson" runat="server" Label="联系人"></f:TextBox>
<f:TextBox ID="txtContactPersonTel" runat="server" Label="联系人电话"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel1" Title="一、管理绩效" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:NumberBox ID="txtSafeLaborTime" runat="server" Label="1.安全人工时" NoNegative="true" LabelWidth="130px"></f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel6" Title="2.安全目标及完成情况(按责任书相应内容进行总结)" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form7" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtSafetyObjectives" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel7" Title="3.安全事故情况" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form8" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtAccidentSituation" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel8" Title="4.获奖情况" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form9" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtAwards" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel2" Title="二、主要工作及亮点" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form3" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel9" Title="1.安全生产重点工作开展情况" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form10" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtWorkDevelopment" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel10" Title="2.人员培训情况" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form11" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtPersonnelTraining" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel11" Title="3.组织开展安全监督检查、隐患排查治理情况" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form12" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtGovernanceSituation" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel12" Title="4.安全月、职业健康宣传周等其他管理活动情况" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form13" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtManagementActivity" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel13" Title="5.主要工作经验及亮点" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form14" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtWorkExperience" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel3" Title="三、主要问题及应对措施" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form4" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtCountermeasures" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel4" Title="四、下一年度工作计划打算" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtNextYearWorkPlan" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel5" Title="五、对集团公司的工作建议" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form6" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Items>
<f:FormRow>
<Items>
<f:TextArea ID="txtJobSuggestion" runat="server">
</f:TextArea>
</Items>
</f:FormRow>
</Items>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:ToolbarFill ID="ToolbarFill2" runat="server">
</f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1" Text="保存"
OnClick="btnSave_Click">
</f:Button>
<%--<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" ToolTip="提交" ValidateForms="SimpleForm1" Text="提交"
OnClick="btnSubmit_Click">
</f:Button>--%>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose" Text="关闭">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,205 @@
using BLL;
using System;
using System.Linq;
namespace FineUIPro.Web.HSSE.InformationProject
{
public partial class WorkSummaryReportEdit : PageBase
{
#region
/// <summary>
/// 主键
/// </summary>
private string WorkSummaryReportId
{
get
{
return (string)ViewState["WorkSummaryReportId"];
}
set
{
ViewState["WorkSummaryReportId"] = value;
}
}
/// <summary>
/// 项目主键
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{
this.ProjectId = Request.Params["projectId"];
}
BLL.ConstValue.InitConstValueDropDownList(this.ddlYearId, BLL.ConstValue.Group_0008, true);
this.WorkSummaryReportId = Request.Params["workSummaryReportId"];
if (!string.IsNullOrEmpty(this.WorkSummaryReportId))
{
var report = BLL.ProjectWorkSummaryReportService.GetWorkSummaryReportById(this.WorkSummaryReportId);
if (report != null)
{
this.ProjectId = report.ProjectId;
#region
if (report.YearId != null)
{
this.ddlYearId.SelectedValue = report.YearId.ToString();
this.txtReportDate.Text = report.ReportDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReportDate) : "";
this.txtResponsiblePerson.Text = report.ResponsiblePerson;
this.txtResponsiblePersonTel.Text = report.ResponsiblePersonTel;
this.txtContactPerson.Text = report.ContactPerson;
this.txtContactPersonTel.Text = report.ContactPersonTel;
this.txtSafeLaborTime.Text = report.SafeLaborTime.HasValue ? report.SafeLaborTime.ToString() : "";
this.txtSafetyObjectives.Text = report.SafetyObjectives;
this.txtAccidentSituation.Text = report.AccidentSituation;
this.txtAwards.Text = report.Awards;
this.txtWorkDevelopment.Text = report.WorkDevelopment;
this.txtPersonnelTraining.Text = report.PersonnelTraining;
this.txtGovernanceSituation.Text = report.GovernanceSituation;
this.txtManagementActivity.Text = report.ManagementActivity;
this.txtWorkExperience.Text = report.WorkExperience;
this.txtCountermeasures.Text = report.Countermeasures;
this.txtNextYearWorkPlan.Text = report.NextYearWorkPlan;
this.txtJobSuggestion.Text = report.JobSuggestion;
}
#endregion
}
}
else
{
this.ddlYearId.SelectedValue = DateTime.Now.Year.ToString();
this.txtReportDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
}
}
}
#endregion
#region
/// <summary>
/// 保存按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (this.ddlYearId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
return;
}
this.SaveData(BLL.Const.BtnSave);
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
///// <summary>
///// 提交按钮
///// </summary>
///// <param name="sender"></param>
///// <param name="e"></param>
//protected void btnSubmit_Click(object sender, EventArgs e)
//{
// if (this.ddlYearId.SelectedValue == BLL.Const._Null)
// {
// Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
// return;
// }
// if (this.ddlQuarter.SelectedValue == BLL.Const._Null)
// {
// Alert.ShowInTop("请选择季度", MessageBoxIcon.Warning);
// return;
// }
// this.SaveData(BLL.Const.BtnSubmit);
// PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
//}
/// <summary>
/// 提交数据
/// </summary>
/// <param name="p"></param>
private void SaveData(string type)
{
Model.InformationProject_WorkSummaryReport report = new Model.InformationProject_WorkSummaryReport
{
ProjectId = this.ProjectId,
UnitId = string.IsNullOrEmpty(this.CurrUser.UnitId) ? Const.UnitId_CD : this.CurrUser.UnitId,
};
if (this.ddlYearId.SelectedValue != BLL.Const._Null)
{
report.YearId = Funs.GetNewIntOrZero(this.ddlYearId.SelectedValue);
}
report.ResponsiblePerson = this.txtResponsiblePerson.Text.Trim();
report.ResponsiblePersonTel = this.txtResponsiblePersonTel.Text.Trim();
report.ContactPerson = this.txtContactPerson.Text.Trim();
report.ContactPersonTel = this.txtContactPersonTel.Text.Trim();
report.ReportDate = Funs.GetNewDateTime(this.txtReportDate.Text.Trim());
report.SafeLaborTime = Funs.GetNewDecimal(this.txtSafeLaborTime.Text);
report.SafetyObjectives = this.txtSafetyObjectives.Text.Trim();
report.AccidentSituation = this.txtAccidentSituation.Text.Trim();
report.Awards = this.txtAwards.Text.Trim();
report.WorkDevelopment = this.txtWorkDevelopment.Text.Trim();
report.PersonnelTraining = this.txtPersonnelTraining.Text.Trim();
report.GovernanceSituation = this.txtGovernanceSituation.Text.Trim();
report.ManagementActivity = this.txtManagementActivity.Text.Trim();
report.WorkExperience = this.txtWorkExperience.Text.Trim();
report.Countermeasures = this.txtCountermeasures.Text.Trim();
report.NextYearWorkPlan = this.txtNextYearWorkPlan.Text.Trim();
report.JobSuggestion = this.txtJobSuggestion.Text.Trim();
report.CompileMan = this.CurrUser.UserId;
report.CompileDate = DateTime.Now;
//if (type == BLL.Const.BtnSubmit)
//{
// safetyQuarterlyReport.States = this.ctlAuditFlow.NextStep;
//}
if (!string.IsNullOrEmpty(this.WorkSummaryReportId))
{
report.WorkSummaryReportId = this.WorkSummaryReportId;
BLL.ProjectWorkSummaryReportService.UpdateWorkSummaryReport(report);
BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), report.WorkSummaryReportId, BLL.Const.ProjectWorkSummaryReportMenuId, BLL.Const.BtnModify);
}
else
{
Model.InformationProject_WorkSummaryReport oldReport = (from x in Funs.DB.InformationProject_WorkSummaryReport
where x.ProjectId == report.ProjectId && x.YearId == report.YearId
select x).FirstOrDefault();
if (oldReport == null)
{
this.WorkSummaryReportId = SQLHelper.GetNewID(typeof(Model.InformationProject_WorkSummaryReport));
report.WorkSummaryReportId = this.WorkSummaryReportId;
BLL.ProjectWorkSummaryReportService.AddWorkSummaryReport(report);
BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString(), report.WorkSummaryReportId, BLL.Const.ProjectWorkSummaryReportMenuId, BLL.Const.BtnAdd);
}
else
{
Alert.ShowInTop("该年度记录已存在", MessageBoxIcon.Warning);
return;
}
}
}
#endregion
}
}
@@ -0,0 +1,474 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HSSE.InformationProject {
public partial class WorkSummaryReportEdit {
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// ddlYearId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlYearId;
/// <summary>
/// txtReportDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtReportDate;
/// <summary>
/// txtResponsiblePerson 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtResponsiblePerson;
/// <summary>
/// txtResponsiblePersonTel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtResponsiblePersonTel;
/// <summary>
/// txtContactPerson 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContactPerson;
/// <summary>
/// txtContactPersonTel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContactPersonTel;
/// <summary>
/// GroupPanel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel1;
/// <summary>
/// Form2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form2;
/// <summary>
/// txtSafeLaborTime 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtSafeLaborTime;
/// <summary>
/// GroupPanel6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel6;
/// <summary>
/// Form7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form7;
/// <summary>
/// txtSafetyObjectives 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtSafetyObjectives;
/// <summary>
/// GroupPanel7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel7;
/// <summary>
/// Form8 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form8;
/// <summary>
/// txtAccidentSituation 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtAccidentSituation;
/// <summary>
/// GroupPanel8 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel8;
/// <summary>
/// Form9 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form9;
/// <summary>
/// txtAwards 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtAwards;
/// <summary>
/// GroupPanel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel2;
/// <summary>
/// Form3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form3;
/// <summary>
/// GroupPanel9 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel9;
/// <summary>
/// Form10 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form10;
/// <summary>
/// txtWorkDevelopment 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtWorkDevelopment;
/// <summary>
/// GroupPanel10 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel10;
/// <summary>
/// Form11 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form11;
/// <summary>
/// txtPersonnelTraining 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtPersonnelTraining;
/// <summary>
/// GroupPanel11 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel11;
/// <summary>
/// Form12 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form12;
/// <summary>
/// txtGovernanceSituation 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtGovernanceSituation;
/// <summary>
/// GroupPanel12 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel12;
/// <summary>
/// Form13 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form13;
/// <summary>
/// txtManagementActivity 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtManagementActivity;
/// <summary>
/// GroupPanel13 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel13;
/// <summary>
/// Form14 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form14;
/// <summary>
/// txtWorkExperience 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtWorkExperience;
/// <summary>
/// GroupPanel3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel3;
/// <summary>
/// Form4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form4;
/// <summary>
/// txtCountermeasures 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtCountermeasures;
/// <summary>
/// GroupPanel4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel4;
/// <summary>
/// Form5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form5;
/// <summary>
/// txtNextYearWorkPlan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtNextYearWorkPlan;
/// <summary>
/// GroupPanel5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel5;
/// <summary>
/// Form6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form6;
/// <summary>
/// txtJobSuggestion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtJobSuggestion;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// ToolbarFill2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill2;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnClose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
}
}