集团三库
This commit is contained in:
@@ -104,9 +104,10 @@
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
|
||||
<f:Window ID="Window1" Title="HSE事故(含未遂)处理" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="1024px"
|
||||
Height="550px">
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="1080px"
|
||||
Height="720px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="Pencil" EnablePostBack="true"
|
||||
|
||||
@@ -12,96 +12,158 @@
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1"/>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="HSE事故(含未遂)处理"
|
||||
AutoScroll="true" BodyPadding="10px" runat="server" RedStarPosition="BeforeText"
|
||||
LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow ColumnWidths="20% 20% 20% 40%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtAccidentHandleCode" runat="server" Label="编号" LabelAlign="Right"
|
||||
MaxLength="50" Readonly="true" LabelWidth="80px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtAccidentHandleName" runat="server" Label="名称" LabelAlign="Right"
|
||||
Required="true" ShowRedStar="true" MaxLength="50" FocusOnPageLoad="true" LabelWidth="80px">
|
||||
</f:TextBox>
|
||||
<f:DatePicker ID="txtAccidentDate" runat="server" Label="时间" LabelAlign="Right"
|
||||
EnableEdit="true" Required="true" ShowRedStar="true" LabelWidth="80px">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpUnitId" runat="server" Label="事故单位" EnableEdit="true"
|
||||
LabelAlign="Right" LabelWidth="80px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtMoneyLoss" runat="server" Label="经济损失" LabelWidth="80px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtWorkHoursLoss" runat="server" Label="工时损失" LabelWidth="80px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtMinorInjuriesPersonNum" runat="server" Label="轻伤人数" LabelWidth="80px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtInjuriesPersonNum" runat="server" Label="重伤人数" LabelWidth="80px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtDeathPersonNum" runat="server" Label="死亡人数" LabelWidth="80px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAccidentDef" runat="server" Label="事故摘要" LabelAlign="Right"
|
||||
MaxLength="500" Height="90px" LabelWidth="80px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAccidentHandle" runat="server" Label="善后处理" LabelAlign="Right"
|
||||
MaxLength="500" Height="70px" LabelWidth="80px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<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>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbTemp">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
|
||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" 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:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="HSE事故(含未遂)处理"
|
||||
AutoScroll="true" BodyPadding="10px" runat="server" RedStarPosition="BeforeText"
|
||||
LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAccidentHandleCode" runat="server" Label="编号" LabelAlign="Right"
|
||||
MaxLength="50" Readonly="true" LabelWidth="80px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtAccidentHandleName" runat="server" Label="名称" LabelAlign="Right"
|
||||
Required="true" ShowRedStar="true" MaxLength="50" FocusOnPageLoad="true" LabelWidth="110px">
|
||||
</f:TextBox>
|
||||
<f:DatePicker ID="txtAccidentDate" runat="server" Label="时间" LabelAlign="Right"
|
||||
EnableEdit="true" Required="true" ShowRedStar="true" LabelWidth="110px">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtWorkHoursLoss" runat="server" Label="工时损失" LabelWidth="80px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtMoneyLoss" runat="server" Label="直接经济损失" LabelWidth="110px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtIndirectMoneyLoss" runat="server" Label="间接经济损失" LabelWidth="110px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtMinorInjuriesPersonNum" runat="server" Label="轻伤人数" LabelWidth="80px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtInjuriesPersonNum" runat="server" Label="重伤人数" LabelWidth="110px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtDeathPersonNum" runat="server" Label="死亡人数" LabelWidth="110px"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" Label="事故等级" ID="dpAccidentLevel" LabelWidth="80px">
|
||||
<%--<f:ListItem Text="-请选择-" Selected="true"></f:ListItem>--%>
|
||||
<f:ListItem Text="一般事故" Value="一般事故" />
|
||||
<f:ListItem Text="较大事故" Value="较大事故" />
|
||||
<f:ListItem Text="重大事故" Value="重大事故" />
|
||||
<f:ListItem Text="特别重大事故" Value="特别重大事故" />
|
||||
</f:DropDownList>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" Label="事故类型" ID="dpAccidentType" LabelWidth="80px">
|
||||
<%--<f:ListItem Text="-请选择-" Selected="true"></f:ListItem>--%>
|
||||
<f:ListItem Text="高处坠落" Value="高处坠落" />
|
||||
<f:ListItem Text="物体打击" Value="物体打击" />
|
||||
<f:ListItem Text="机械伤害" Value="机械伤害" />
|
||||
<f:ListItem Text="触电" Value="触电" />
|
||||
<f:ListItem Text="坍塌" Value="坍塌" />
|
||||
<f:ListItem Text="火灾" Value="火灾" />
|
||||
<f:ListItem Text="其他" Value="其他" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnitId" runat="server" Label="事故单位" EnableEdit="true" LabelAlign="Right" LabelWidth="80px" AutoPostBack="true" OnSelectedIndexChanged="drpUnit_OnSelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtAccidentLocation" runat="server" Label="地点" LabelAlign="Right" MaxLength="50" LabelWidth="80px" EmptyText="填写事故发生的项目现场具体部位或区域">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAccidentDef" runat="server" Label="事故摘要" LabelAlign="Right" EmptyText="填写事故发生经过完整描述,内容应客观、准确、完整"
|
||||
MaxLength="500" Height="90px" LabelWidth="80px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAccidentHandle" runat="server" Label="善后处理" LabelAlign="Right"
|
||||
MaxLength="500" Height="70px" LabelWidth="80px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtContractingResponsibility" runat="server" Label="业主责任认定" LabelAlign="Right" EmptyText="填写事故调查单位对业主的责任认定结果,内容应明确责任归属或责任类型"
|
||||
MaxLength="500" Height="70px" LabelWidth="80px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpPost" runat="server" Label="岗位名称" LabelAlign="Right" EnableEdit="true" LabelWidth="80px">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" Label="责任类型" ID="dpResponsibilityType" LabelWidth="110px">
|
||||
<%--<f:ListItem Text="-请选择-" Selected="true"></f:ListItem>--%>
|
||||
<f:ListItem Text="直接责任" Value="直接责任" />
|
||||
<f:ListItem Text="管理责任" Value="管理责任" />
|
||||
<f:ListItem Text="主要责任" Value="主要责任" />
|
||||
<f:ListItem Text="次要责任" Value="次要责任" />
|
||||
<f:ListItem Text="其他" Value="其他" />
|
||||
</f:DropDownList>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" Label="责任人员" ID="drpResponsibleMan" EnableEdit="true" LabelWidth="110px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtResponsibilityDesc" runat="server" Label="责任说明" EmptyText="内容应客观说明责任事实" LabelAlign="Right"
|
||||
MaxLength="500" Height="70px" LabelWidth="80px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<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>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbTemp">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
|
||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" 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:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -49,13 +49,17 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
|
||||
UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
|
||||
this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
|
||||
WorkPostService.InitWorkPostNameDropDownList(this.drpPost, true);
|
||||
UserService.InitUserProjectIdUnitTypeDropDownList(this.drpResponsibleMan, this.CurrUser.LoginProjectId, null, true);
|
||||
Funs.FineUIPleaseSelect(this.dpAccidentLevel);
|
||||
Funs.FineUIPleaseSelect(this.dpAccidentType);
|
||||
Funs.FineUIPleaseSelect(this.dpResponsibilityType);
|
||||
if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
|
||||
{
|
||||
this.drpUnitId.Enabled = false;
|
||||
}
|
||||
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
this.AccidentHandleId = Request.Params["AccidentHandleId"];
|
||||
if (!string.IsNullOrEmpty(this.AccidentHandleId))
|
||||
@@ -68,7 +72,7 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
if (this.ProjectId != this.CurrUser.LoginProjectId)
|
||||
{
|
||||
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
|
||||
this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
|
||||
this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
|
||||
}
|
||||
|
||||
this.txtAccidentHandleCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.AccidentHandleId);
|
||||
@@ -100,6 +104,33 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
}
|
||||
this.txtAccidentHandle.Text = accidentHandle.AccidentHandle;
|
||||
//this.txtRemark.Text = accidentHandle.Remark;
|
||||
if (!string.IsNullOrWhiteSpace(accidentHandle.AccidentLevel))
|
||||
{
|
||||
this.dpAccidentLevel.SelectedValue = accidentHandle.AccidentLevel.ToString();
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(accidentHandle.AccidentType))
|
||||
{
|
||||
this.dpAccidentType.SelectedValue = accidentHandle.AccidentType.ToString();
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(accidentHandle.PositionName))
|
||||
{
|
||||
this.drpPost.SelectedValue = accidentHandle.PositionName.ToString();
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(accidentHandle.ResponsibilityType))
|
||||
{
|
||||
this.dpResponsibilityType.SelectedValue = accidentHandle.ResponsibilityType.ToString();
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(accidentHandle.ResponsibleMan))
|
||||
{
|
||||
this.drpResponsibleMan.SelectedValue = accidentHandle.ResponsibleMan.ToString();
|
||||
}
|
||||
this.txtAccidentLocation.Text = accidentHandle.AccidentLocation;
|
||||
this.txtContractingResponsibility.Text = accidentHandle.ContractingResponsibility;
|
||||
this.txtResponsibilityDesc.Text = accidentHandle.ResponsibilityDesc;
|
||||
if (accidentHandle.IndirectMoneyLoss != null)
|
||||
{
|
||||
this.txtIndirectMoneyLoss.Text = accidentHandle.IndirectMoneyLoss.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -115,6 +146,28 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 单位选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void drpUnit_OnSelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
this.drpResponsibleMan.Items.Clear();
|
||||
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
this.drpResponsibleMan.DataSource = from x in db.Sys_User
|
||||
join y in db.Project_ProjectUser on x.UserId equals y.UserId
|
||||
where y.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == this.drpUnitId.SelectedValue
|
||||
select x;
|
||||
this.drpResponsibleMan.DataBind();
|
||||
}
|
||||
Funs.FineUIPleaseSelect(this.drpResponsibleMan);
|
||||
this.drpResponsibleMan.SelectedValue = BLL.Const._Null;
|
||||
}
|
||||
}
|
||||
|
||||
#region 保存、提交
|
||||
/// <summary>
|
||||
@@ -166,12 +219,38 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
//Remark = this.txtRemark.Text.Trim(),
|
||||
CompileMan = this.CurrUser.UserId,
|
||||
CompileDate = DateTime.Now,
|
||||
States = BLL.Const.State_0
|
||||
States = BLL.Const.State_0,
|
||||
AccidentLocation = this.txtAccidentLocation.Text.Trim(),
|
||||
IndirectMoneyLoss = Funs.GetNewDecimalOrZero(this.txtIndirectMoneyLoss.Text.Trim()),
|
||||
ContractingResponsibility = this.txtContractingResponsibility.Text.Trim(),
|
||||
ResponsibilityDesc = this.txtResponsibilityDesc.Text.Trim(),
|
||||
|
||||
};
|
||||
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
accidentHandle.UnitId = this.drpUnitId.SelectedValue;
|
||||
}
|
||||
if (this.dpAccidentLevel.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
accidentHandle.AccidentLevel = this.dpAccidentLevel.SelectedValue;
|
||||
}
|
||||
if (this.dpAccidentType.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
accidentHandle.AccidentType = this.dpAccidentType.SelectedValue;
|
||||
}
|
||||
if (this.drpPost.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
accidentHandle.PositionName = this.drpPost.SelectedValue;
|
||||
}
|
||||
if (this.dpResponsibilityType.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
accidentHandle.ResponsibilityType = this.dpResponsibilityType.SelectedValue;
|
||||
}
|
||||
if (this.drpResponsibleMan.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
accidentHandle.ResponsibleMan = this.drpResponsibleMan.SelectedValue;
|
||||
accidentHandle.ResponsibleManName = this.drpResponsibleMan.SelectedText;
|
||||
}
|
||||
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
@@ -198,6 +277,14 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
BLL.AccidentHandleService.AddAccidentHandle(accidentHandle);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, this.txtAccidentHandleCode.Text, this.AccidentHandleId, BLL.Const.ProjectAccidentHandleMenuId, Const.BtnAdd);
|
||||
}
|
||||
//更新三库事故事件
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateAccidentRecord(this.AccidentHandleId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
////保存流程审核数据
|
||||
this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.ProjectAccidentHandleMenuId, this.AccidentHandleId, (type == BLL.Const.BtnSubmit ? true : false), accidentHandle.AccidentHandleName, "../Accident/AccidentHandleView.aspx?AccidentHandleId={0}");
|
||||
}
|
||||
|
||||
+127
-44
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Accident {
|
||||
|
||||
|
||||
public partial class AccidentHandleEdit {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Accident
|
||||
{
|
||||
|
||||
|
||||
public partial class AccidentHandleEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandleCode 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentHandleCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandleName 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentHandleName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDate 控件。
|
||||
/// </summary>
|
||||
@@ -65,25 +67,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtAccidentDate;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnitId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnitId;
|
||||
|
||||
/// <summary>
|
||||
/// txtMoneyLoss 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMoneyLoss;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkHoursLoss 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +76,25 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtWorkHoursLoss;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtMoneyLoss 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMoneyLoss;
|
||||
|
||||
/// <summary>
|
||||
/// txtIndirectMoneyLoss 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtIndirectMoneyLoss;
|
||||
|
||||
/// <summary>
|
||||
/// txtMinorInjuriesPersonNum 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMinorInjuriesPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtInjuriesPersonNum 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtInjuriesPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtDeathPersonNum 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +121,43 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtDeathPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// dpAccidentLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList dpAccidentLevel;
|
||||
|
||||
/// <summary>
|
||||
/// dpAccidentType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList dpAccidentType;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnitId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnitId;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentLocation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentLocation;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDef 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +166,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAccidentDef;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandle 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +175,52 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAccidentHandle;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtContractingResponsibility 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtContractingResponsibility;
|
||||
|
||||
/// <summary>
|
||||
/// drpPost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPost;
|
||||
|
||||
/// <summary>
|
||||
/// dpResponsibilityType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList dpResponsibilityType;
|
||||
|
||||
/// <summary>
|
||||
/// drpResponsibleMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpResponsibleMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibilityDesc 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtResponsibilityDesc;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +229,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ctlAuditFlow 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +238,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +247,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbTemp 控件。
|
||||
/// </summary>
|
||||
@@ -173,7 +256,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbTemp;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// </summary>
|
||||
@@ -182,7 +265,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -191,7 +274,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -200,7 +283,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit 控件。
|
||||
/// </summary>
|
||||
@@ -209,7 +292,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSubmit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
@@ -218,7 +301,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -12,88 +12,137 @@
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1"/>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="HSE事故(含未遂)处理"
|
||||
AutoScroll="true" BodyPadding="10px" runat="server" RedStarPosition="BeforeText"
|
||||
LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow ColumnWidths="20% 20% 20% 40%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtAccidentHandleCode" runat="server" Label="事故编号" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtAccidentHandleName" runat="server" Label="事故名称" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtAccidentDate" runat="server" Label="发生时间" LabelAlign="Right" Readonly="true" LabelWidth="90px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtUnitName" runat="server" Label="事故单位" LabelAlign="Right" Readonly="true" LabelWidth="90px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtMoneyLoss" runat="server" Label="经济损失" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtWorkHoursLoss" runat="server" Label="工时损失" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtMinorInjuriesPersonNum" runat="server" Label="轻伤人数" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtInjuriesPersonNum" runat="server" Label="重伤人数" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtDeathPersonNum" runat="server" Label="死亡人数" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAccidentDef" runat="server" Label="事故摘要" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true" Height="90px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAccidentHandle" runat="server" Label="善后处理" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true" Height="90px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<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>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbTemp">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
|
||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="HSE事故(含未遂)处理"
|
||||
AutoScroll="true" BodyPadding="10px" runat="server" RedStarPosition="BeforeText"
|
||||
LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAccidentHandleCode" runat="server" Label="事故编号" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtAccidentHandleName" runat="server" Label="事故名称" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtAccidentDate" runat="server" Label="发生时间" LabelAlign="Right" Readonly="true" LabelWidth="90px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtWorkHoursLoss" runat="server" Label="工时损失" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtMoneyLoss" runat="server" Label="直接经济损失" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtIndirectMoneyLoss" runat="server" Label="间接经济损失" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtMinorInjuriesPersonNum" runat="server" Label="轻伤人数" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtInjuriesPersonNum" runat="server" Label="重伤人数" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtDeathPersonNum" runat="server" Label="死亡人数" Readonly="true"
|
||||
NoNegative="True" EmptyText="0" DecimalPrecision="0" NoDecimal="False" LabelWidth="90px">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAccidentLevel" runat="server" Label="事故等级" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtAccidentType" runat="server" Label="事故类型" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUnitName" runat="server" Label="事故单位" LabelAlign="Right" Readonly="true" LabelWidth="90px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtAccidentLocation" runat="server" Label="事故地点" LabelAlign="Right" Readonly="true" LabelWidth="90px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAccidentDef" runat="server" Label="事故摘要" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true" Height="90px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAccidentHandle" runat="server" Label="善后处理" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true" Height="90px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtContractingResponsibility" runat="server" Label="业主责任认定" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true" Height="90px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtPositionName" runat="server" Label="岗位名称" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtResponsibilityType" runat="server" Label="责任类型" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtResponsibleMan" runat="server" Label="责任人员" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtResponsibilityDesc" runat="server" Label="责任说明" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true" Height="90px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<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>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbTemp">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
|
||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -65,8 +65,49 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
{
|
||||
this.txtDeathPersonNum.Text = accidentHandle.DeathPersonNum.ToString();
|
||||
}
|
||||
this.txtAccidentHandle.Text = accidentHandle.AccidentHandle;
|
||||
this.txtAccidentHandle.Text = accidentHandle.AccidentHandle;
|
||||
this.txtUnitName.Text = BLL.UnitService.GetUnitNameByUnitId(accidentHandle.UnitId);
|
||||
|
||||
if (accidentHandle.IndirectMoneyLoss != null)
|
||||
{
|
||||
this.txtIndirectMoneyLoss.Text = accidentHandle.IndirectMoneyLoss.ToString();
|
||||
}
|
||||
if (accidentHandle.AccidentLevel != null)
|
||||
{
|
||||
this.txtAccidentLevel.Text = accidentHandle.AccidentLevel.ToString();
|
||||
}
|
||||
if (accidentHandle.AccidentType != null)
|
||||
{
|
||||
this.txtAccidentType.Text = accidentHandle.AccidentType.ToString();
|
||||
}
|
||||
if (accidentHandle.AccidentLocation != null)
|
||||
{
|
||||
this.txtAccidentLocation.Text = accidentHandle.AccidentLocation.ToString();
|
||||
}
|
||||
if (accidentHandle.AccidentHandle != null)
|
||||
{
|
||||
this.txtAccidentHandle.Text = accidentHandle.AccidentHandle;
|
||||
}
|
||||
if (accidentHandle.ContractingResponsibility != null)
|
||||
{
|
||||
this.txtContractingResponsibility.Text = accidentHandle.ContractingResponsibility.ToString();
|
||||
}
|
||||
if (accidentHandle.PositionName != null)
|
||||
{
|
||||
this.txtPositionName.Text = accidentHandle.PositionName.ToString();
|
||||
}
|
||||
if (accidentHandle.ResponsibilityType != null)
|
||||
{
|
||||
this.txtResponsibilityType.Text = accidentHandle.ResponsibilityType.ToString();
|
||||
}
|
||||
if (accidentHandle.ResponsibleMan != null)
|
||||
{
|
||||
this.txtResponsibleMan.Text = accidentHandle.ResponsibleMan.ToString();
|
||||
}
|
||||
if (accidentHandle.ResponsibilityDesc != null)
|
||||
{
|
||||
this.txtResponsibilityDesc.Text = accidentHandle.ResponsibilityDesc.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
///初始化审核菜单
|
||||
|
||||
+125
-42
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Accident {
|
||||
|
||||
|
||||
public partial class AccidentHandleView {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Accident
|
||||
{
|
||||
|
||||
|
||||
public partial class AccidentHandleView
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandleCode 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentHandleCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandleName 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentHandleName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDate 控件。
|
||||
/// </summary>
|
||||
@@ -65,25 +67,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// txtMoneyLoss 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMoneyLoss;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkHoursLoss 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +76,25 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtWorkHoursLoss;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtMoneyLoss 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMoneyLoss;
|
||||
|
||||
/// <summary>
|
||||
/// txtIndirectMoneyLoss 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtIndirectMoneyLoss;
|
||||
|
||||
/// <summary>
|
||||
/// txtMinorInjuriesPersonNum 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMinorInjuriesPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtInjuriesPersonNum 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtInjuriesPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtDeathPersonNum 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +121,43 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtDeathPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentLevel;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentType;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentLocation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentLocation;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDef 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +166,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAccidentDef;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandle 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +175,52 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAccidentHandle;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtContractingResponsibility 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtContractingResponsibility;
|
||||
|
||||
/// <summary>
|
||||
/// txtPositionName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPositionName;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibilityType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtResponsibilityType;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibleMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtResponsibleMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibilityDesc 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtResponsibilityDesc;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +229,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ctlAuditFlow 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +238,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +247,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbTemp 控件。
|
||||
/// </summary>
|
||||
@@ -173,7 +256,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbTemp;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// </summary>
|
||||
@@ -182,7 +265,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -191,7 +274,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
@@ -200,7 +283,7 @@ namespace FineUIPro.Web.HSSE.Accident {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -196,6 +196,13 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
Funs.DB.SubmitChanges();
|
||||
|
||||
ShowNotify("提交成功!", MessageBoxIcon.Success);
|
||||
//更新三库隐患记录
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateHazardRecord(this.RectifyNoticesId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1197,6 +1197,14 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
}
|
||||
|
||||
ShowNotify("提交成功!", MessageBoxIcon.Success);
|
||||
//更新三库隐患记录
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateHazardRecord(this.RectifyNoticesId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -294,6 +294,14 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
Funs.DB.SubmitChanges();
|
||||
|
||||
ShowNotify(saveType + "成功!", MessageBoxIcon.Success);
|
||||
//更新三库隐患记录
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateHazardRecord(this.RectifyNoticesId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -262,6 +262,14 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
}
|
||||
|
||||
ShowNotify(saveType + "成功!", MessageBoxIcon.Success);
|
||||
//更新三库隐患记录
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateHazardRecord(this.RectifyNoticesId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,114 +9,123 @@
|
||||
</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="ViolationPersonId"
|
||||
AllowCellEditing="true" ClicksToEdit="2" DataIDField="ViolationPersonId" AllowSorting="true"
|
||||
SortField="ViolationPersonCode" 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:TextBox runat="server" Label="编号" ID="txtViolationPersonCode" EmptyText="输入查询条件"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="人员姓名" ID="txtPersonName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="250px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<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:TemplateField ColumnID="tfNumber" Width="50px" HeaderText="序号" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="150px" ColumnID="ViolationPersonCode" DataField="ViolationPersonCode"
|
||||
SortField="ViolationPersonCode" FieldType="String" HeaderText="编号" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="CardNo" DataField="CardNo" SortField="CardNo"
|
||||
FieldType="String" HeaderText="卡号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="PersonName" DataField="PersonName" SortField="PersonName"
|
||||
FieldType="String" HeaderText="人员姓名" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
|
||||
FieldType="String" HeaderText="单位名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="WorkPostName" DataField="WorkPostName" SortField="WorkPostName"
|
||||
FieldType="String" HeaderText="岗位" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="ViolationDate" DataField="ViolationDate" SortField="ViolationDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="违章日期"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
|
||||
<f:TemplateField ColumnID="tfViolationType" HeaderText="违章类型" Width="100px" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblViolationType" runat="server" Text='<%#ConvertViolationType(Eval("ViolationType")) %>'
|
||||
ToolTip='<%#ConvertViolationType(Eval("ViolationType")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnId="tfHandleStep" HeaderText="处理措施" Width="100px" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblHandleStep" runat="server" Text='<%#ConvertHandleStep(Eval("HandleStep")) %>'
|
||||
ToolTip='<%#ConvertHandleStep(Eval("HandleStep")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<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:ListItem Text="10" Value="10" />
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
<f:ListItem Text="所有行" Value="100000" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="违规人员记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="900px"
|
||||
Height="480px">
|
||||
</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: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="ViolationPersonId"
|
||||
AllowCellEditing="true" ClicksToEdit="2" DataIDField="ViolationPersonId" AllowSorting="true"
|
||||
SortField="ViolationPersonCode" 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:TextBox runat="server" Label="编号" ID="txtViolationPersonCode" EmptyText="输入查询条件"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="人员姓名" ID="txtPersonName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="250px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" Label="违章级别" ID="drpLevel" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
<f:ListItem Text="-请选择-" Selected="true"></f:ListItem>
|
||||
<f:ListItem Text="一般违章" Value="一般违章" />
|
||||
<f:ListItem Text="严重违章" Value="严重违章" />
|
||||
<f:ListItem Text="红线违章" Value="红线违章" />
|
||||
</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:TemplateField ColumnID="tfNumber" Width="50px" HeaderText="序号" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="150px" ColumnID="ViolationPersonCode" DataField="ViolationPersonCode"
|
||||
SortField="ViolationPersonCode" FieldType="String" HeaderText="编号" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="CardNo" DataField="CardNo" SortField="CardNo"
|
||||
FieldType="String" HeaderText="卡号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="PersonName" DataField="PersonName" SortField="PersonName"
|
||||
FieldType="String" HeaderText="人员姓名" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
|
||||
FieldType="String" HeaderText="单位名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="WorkPostName" DataField="WorkPostName" SortField="WorkPostName"
|
||||
FieldType="String" HeaderText="岗位" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="ViolationDate" DataField="ViolationDate" SortField="ViolationDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="违章日期"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="ViolationLevel" DataField="ViolationLevel"
|
||||
FieldType="String" HeaderText="违章级别" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="tfViolationType" HeaderText="违章类型" Width="100px" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblViolationType" runat="server" Text='<%#ConvertViolationType(Eval("ViolationType")) %>'
|
||||
ToolTip='<%#ConvertViolationType(Eval("ViolationType")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="tfHandleStep" HeaderText="处理措施" Width="100px" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblHandleStep" runat="server" Text='<%#ConvertHandleStep(Eval("HandleStep")) %>'
|
||||
ToolTip='<%#ConvertHandleStep(Eval("HandleStep")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<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:ListItem Text="10" Value="10" />
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
<f:ListItem Text="所有行" Value="100000" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="违规人员记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="900px"
|
||||
Height="480px">
|
||||
</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 %>';
|
||||
|
||||
@@ -12,7 +12,7 @@ using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.Check
|
||||
{
|
||||
public partial class ViolationPerson :PageBase
|
||||
public partial class ViolationPerson : PageBase
|
||||
{
|
||||
#region 项目主键
|
||||
/// <summary>
|
||||
@@ -76,6 +76,7 @@ namespace FineUIPro.Web.Check
|
||||
+ @"ViolationPerson.CompileDate,"
|
||||
+ @"ViolationPerson.States,"
|
||||
+ @"ViolationPerson.HandleStep,"
|
||||
+ @"ViolationPerson.ViolationLevel,"
|
||||
+ @"Unit.UnitName,"
|
||||
+ @"Person.CardNo,"
|
||||
+ @"Person.PersonName,"
|
||||
@@ -116,6 +117,12 @@ namespace FineUIPro.Web.Check
|
||||
strSql += " AND PersonName LIKE @PersonName";
|
||||
listStr.Add(new SqlParameter("@PersonName", "%" + this.txtPersonName.Text.Trim() + "%"));
|
||||
}
|
||||
string level = this.drpLevel.SelectedValue.Trim();
|
||||
if (!string.IsNullOrWhiteSpace(level))
|
||||
{
|
||||
strSql += " AND ViolationPerson.ViolationLevel = @level";
|
||||
listStr.Add(new SqlParameter("@level", level));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
|
||||
+37
-26
@@ -2,16 +2,18 @@
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.Check {
|
||||
|
||||
|
||||
public partial class ViolationPerson {
|
||||
|
||||
namespace FineUIPro.Web.Check
|
||||
{
|
||||
|
||||
|
||||
public partial class ViolationPerson
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationPersonCode 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationPersonCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPersonName 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +76,16 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPersonName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpLevel;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +94,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +103,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +112,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblNumber 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +121,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblViolationType 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +130,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblViolationType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblHandleStep 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +139,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblHandleStep;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +148,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +157,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +166,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +175,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
@@ -173,7 +184,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
@@ -182,7 +193,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -12,128 +12,142 @@
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1"/>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="违规人员记录" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtViolationPersonCode" runat="server" Label="编号" LabelAlign="Right"
|
||||
MaxLength="50" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:DropDownBox runat="server" ID="drpPersonId" Label="人员姓名" EmptyText="请从下拉表格中选择"
|
||||
MatchFieldWidth="false" LabelAlign="Right" AutoPostBack="true" OnTextChanged="drpPersonId_TextChanged"
|
||||
EnableMultiSelect="false" Required="true" ShowRedStar="true" LabelWidth="120px">
|
||||
<PopPanel>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="PersonId"
|
||||
DataTextField="PersonName" DataKeyNames="PersonId" AllowSorting="true" SortField="UnitName,CardNo"
|
||||
SortDirection="ASC" EnableColumnLines="true" Hidden="true" Width="800px" OnSort="Grid1_Sort"
|
||||
Height="350px" EnableMultiSelect="false" PageSize="10000">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:TextBox runat="server" Label="单位" ID="txtSelectUnitName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="卡号" ID="txtCardNo" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="姓名" ID="txtPersonName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="200px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
|
||||
FieldType="String" HeaderText="所在单位" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="CardNo" DataField="CardNo" SortField="CardNo"
|
||||
FieldType="String" HeaderText="卡号" HeaderTextAlign="Center" TextAlign="Left"
|
||||
ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="PersonName" DataField="PersonName" EnableFilter="true"
|
||||
SortField="PersonName" FieldType="String" HeaderText="姓名" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="WorkPostName" DataField="WorkPostName" SortField="WorkPostName"
|
||||
FieldType="String" HeaderText="岗位" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</PopPanel>
|
||||
</f:DropDownBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUnitName" runat="server" Label="单位名称" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtWorkPostName" runat="server" Label="岗位" LabelAlign="Right" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:HiddenField ID="hdUnitId" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdWorkPostId" runat="server">
|
||||
</f:HiddenField>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DatePicker ID="txtViolationDate" runat="server" Label="违规日期">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpViolationName" runat="server" Label="违章名称" EnableEdit="true"
|
||||
LabelWidth="120px" AutoPostBack="true" OnSelectedIndexChanged="drpViolationName_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpViolationType" runat="server" Label="违章类型" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpHandleStep" runat="server" Label="处理措施" EnableEdit="true"
|
||||
ShowRedStar="true" Required="true" LabelWidth="120px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtViolationDef" runat="server" Height="60px" Label="违章描述">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<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>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" 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:Form>
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="违规人员记录" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtViolationPersonCode" runat="server" Label="编号" LabelAlign="Right"
|
||||
MaxLength="50">
|
||||
</f:TextBox>
|
||||
<f:DropDownBox runat="server" ID="drpPersonId" Label="人员姓名" EmptyText="请从下拉表格中选择"
|
||||
MatchFieldWidth="false" LabelAlign="Right" AutoPostBack="true" OnTextChanged="drpPersonId_TextChanged"
|
||||
EnableMultiSelect="false" Required="true" ShowRedStar="true">
|
||||
<PopPanel>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="PersonId"
|
||||
DataTextField="PersonName" DataKeyNames="PersonId" AllowSorting="true" SortField="UnitName,CardNo"
|
||||
SortDirection="ASC" EnableColumnLines="true" Hidden="true" Width="800px" OnSort="Grid1_Sort"
|
||||
Height="350px" EnableMultiSelect="false" PageSize="10000">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:TextBox runat="server" Label="单位" ID="txtSelectUnitName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="卡号" ID="txtCardNo" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="姓名" ID="txtPersonName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="200px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
|
||||
FieldType="String" HeaderText="所在单位" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="CardNo" DataField="CardNo" SortField="CardNo"
|
||||
FieldType="String" HeaderText="卡号" HeaderTextAlign="Center" TextAlign="Left"
|
||||
ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="PersonName" DataField="PersonName" EnableFilter="true"
|
||||
SortField="PersonName" FieldType="String" HeaderText="姓名" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="WorkPostName" DataField="WorkPostName" SortField="WorkPostName"
|
||||
FieldType="String" HeaderText="岗位" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</PopPanel>
|
||||
</f:DropDownBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUnitName" runat="server" Label="单位名称" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtWorkPostName" runat="server" Label="岗位" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:HiddenField ID="hdUnitId" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdWorkPostId" runat="server">
|
||||
</f:HiddenField>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpViolationName" runat="server" Label="违章名称" EnableEdit="true"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="drpViolationName_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpViolationType" runat="server" Label="违章类型" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" Label="违章级别" ID="drpViolationLevel" AutoSelectFirstItem="true">
|
||||
<f:ListItem Text="一般违章" Value="一般违章" />
|
||||
<f:ListItem Text="严重违章" Value="严重违章" />
|
||||
<f:ListItem Text="红线违章" Value="红线违章" />
|
||||
</f:DropDownList>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" Label="整改状态" ID="drpRectificationStatus">
|
||||
<f:ListItem Text="未整改" Value="未整改" />
|
||||
<f:ListItem Text="整改中" Value="整改中" />
|
||||
<f:ListItem Text="已整改" Value="已整改" Selected="true" />
|
||||
<f:ListItem Text="已验收" Value="已验收" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpHandleStep" runat="server" Label="处理措施" EnableEdit="true"
|
||||
ShowRedStar="true" Required="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="txtViolationDate" runat="server" Label="违章日期">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtViolationDef" runat="server" Height="80px" Label="违章描述" EmptyText="违章行为详细描述">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<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>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" 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:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -123,6 +123,8 @@ namespace FineUIPro.Web.Check
|
||||
this.drpHandleStep.SelectedValue = violationPerson.HandleStep;
|
||||
}
|
||||
this.txtViolationDef.Text = violationPerson.ViolationDef;
|
||||
this.drpRectificationStatus.SelectedValue = violationPerson.RectificationStatus;
|
||||
this.drpViolationLevel.SelectedValue = violationPerson.ViolationLevel;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -313,6 +315,8 @@ namespace FineUIPro.Web.Check
|
||||
violationPerson.CompileMan = this.CurrUser.UserId;
|
||||
violationPerson.CompileDate = DateTime.Now;
|
||||
violationPerson.States = BLL.Const.State_0;
|
||||
violationPerson.RectificationStatus = this.drpRectificationStatus.SelectedValue.Trim();
|
||||
violationPerson.ViolationLevel = this.drpViolationLevel.SelectedValue.Trim();
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
violationPerson.States = this.ctlAuditFlow.NextStep;
|
||||
@@ -328,7 +332,14 @@ namespace FineUIPro.Web.Check
|
||||
this.ViolationPersonId = SQLHelper.GetNewID(typeof(Model.Check_ViolationPerson));
|
||||
violationPerson.ViolationPersonId = this.ViolationPersonId;
|
||||
BLL.ViolationPersonService.AddViolationPerson(violationPerson);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, violationPerson.ViolationPersonCode, violationPerson.ViolationPersonId,BLL.Const.ProjectViolationPersonMenuId,BLL.Const.BtnAdd);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, violationPerson.ViolationPersonCode, violationPerson.ViolationPersonId,BLL.Const.ProjectViolationPersonMenuId,BLL.Const.BtnAdd);
|
||||
}
|
||||
//更新三库违章作业
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateViolationRecord(this.ViolationPersonId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
////保存流程审核数据
|
||||
this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.ProjectViolationPersonMenuId, this.ViolationPersonId, (type == BLL.Const.BtnSubmit ? true : false), violationPerson.ViolationPersonCode, "../Check/ViolationPersonView.aspx?ViolationPersonId={0}");
|
||||
|
||||
+60
-40
@@ -2,16 +2,18 @@
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.Check {
|
||||
|
||||
|
||||
public partial class ViolationPersonEdit {
|
||||
|
||||
namespace FineUIPro.Web.Check
|
||||
{
|
||||
|
||||
|
||||
public partial class ViolationPersonEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationPersonCode 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationPersonCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpPersonId 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownBox drpPersonId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSelectUnitName 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSelectUnitName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCardNo 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCardNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPersonName 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPersonName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkPostName 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkPostName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdUnitId 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdUnitId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdWorkPostId 控件。
|
||||
/// </summary>
|
||||
@@ -137,16 +139,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdWorkPostId;
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtViolationDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpViolationName 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +148,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpViolationName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpViolationType 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +157,25 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpViolationType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpViolationLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpViolationLevel;
|
||||
|
||||
/// <summary>
|
||||
/// drpRectificationStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpRectificationStatus;
|
||||
|
||||
/// <summary>
|
||||
/// drpHandleStep 控件。
|
||||
/// </summary>
|
||||
@@ -173,7 +184,16 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpHandleStep;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtViolationDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationDef 控件。
|
||||
/// </summary>
|
||||
@@ -182,7 +202,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtViolationDef;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
@@ -191,7 +211,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ctlAuditFlow 控件。
|
||||
/// </summary>
|
||||
@@ -200,7 +220,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
@@ -209,7 +229,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -218,7 +238,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -227,7 +247,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit 控件。
|
||||
/// </summary>
|
||||
@@ -236,7 +256,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSubmit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -12,73 +12,81 @@
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1"/>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="违规人员记录" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtViolationPersonCode" runat="server" Label="编号" LabelAlign="Right"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtPersonName" runat="server" Label="违规人员姓名" LabelAlign="Right" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUnitName" runat="server" Label="单位名称" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtWorkPostName" runat="server" Label="岗位" LabelAlign="Right" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtViolationDate" runat="server" Label="违规日期" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtViolationName" runat="server" Label="违章名称" LabelAlign="Right" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtViolationType" runat="server" Label="违章类型" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtHandleStep" runat="server" Label="处理措施" LabelAlign="Right" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtViolationDef" runat="server" Height="60px" Readonly="true" Label="违章描述">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<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>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="违规人员记录" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtViolationPersonCode" runat="server" Label="编号" LabelAlign="Right"
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtPersonName" runat="server" Label="违规人员姓名" LabelAlign="Right" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUnitName" runat="server" Label="单位名称" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtWorkPostName" runat="server" Label="岗位" LabelAlign="Right" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtRectificationStatus" runat="server" Label="违章级别" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtViolationLevel" runat="server" Label="整改状态" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtViolationDate" runat="server" Label="违规日期" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtViolationName" runat="server" Label="违章名称" LabelAlign="Right" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtViolationType" runat="server" Label="违章类型" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtHandleStep" runat="server" Label="处理措施" LabelAlign="Right" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtViolationDef" runat="server" Height="60px" Readonly="true" Label="违章描述">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<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>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -102,6 +102,8 @@ namespace FineUIPro.Web.Check
|
||||
}
|
||||
}
|
||||
this.txtViolationDef.Text = violationPerson.ViolationDef;
|
||||
this.txtViolationLevel.Text = violationPerson.ViolationLevel;
|
||||
this.txtRectificationStatus.Text = violationPerson.RectificationStatus;
|
||||
}
|
||||
///初始化审核菜单
|
||||
this.ctlAuditFlow.MenuId = BLL.Const.ProjectViolationPersonMenuId;
|
||||
|
||||
+43
-23
@@ -2,16 +2,18 @@
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.Check {
|
||||
|
||||
|
||||
public partial class ViolationPersonView {
|
||||
|
||||
namespace FineUIPro.Web.Check
|
||||
{
|
||||
|
||||
|
||||
public partial class ViolationPersonView
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationPersonCode 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationPersonCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPersonName 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPersonName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkPostName 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +76,25 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkPostName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRectificationStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRectificationStatus;
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationLevel;
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationDate 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +103,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationName 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +112,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationType 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +121,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHandleStep 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +130,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHandleStep;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationDef 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +139,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtViolationDef;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +148,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ctlAuditFlow 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +157,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +166,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +175,7 @@ namespace FineUIPro.Web.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -396,6 +396,13 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
}
|
||||
}
|
||||
|
||||
//更新三库教育培训
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateTrainingRecord(this.TrainingId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
if (i == 0)
|
||||
{
|
||||
////保存流程审核数据
|
||||
|
||||
@@ -302,6 +302,13 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
HazardRegisterId = register.HazardRegisterId;
|
||||
register.CheckTime = DateTime.Now;
|
||||
BLL.HSSE_Hazard_HazardRegisterService.AddHazardRegister(register);
|
||||
//更新三库网格化巡查
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateGridPatrolRecord(this.HazardRegisterId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, register.HazardCode, register.HazardRegisterId, BLL.Const.HiddenRectificationMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
if (isClosed)
|
||||
|
||||
@@ -28,6 +28,15 @@
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnit" runat="server" Label="施工单位" Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpUnit_SelectedIndexChanged" EnableEdit="true" AutoSelectFirstItem="false">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpStandbyPersonnel" runat="server" Label="旁站人员" Required="true" ShowRedStar="true" LabelAlign="Right" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:Label runat="server" ID="Label7"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:RadioButtonList ID="rblIsArgument" runat="server" Label="专家论证" LabelWidth="100px" Required="true" ShowRedStar="true">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -50,6 +51,7 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
{
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, false);
|
||||
BLL.UnitWorkService.InitUnitWorkDownList(this.drpAddress, this.CurrUser.LoginProjectId, false);
|
||||
//类型
|
||||
BLL.ConstValue.InitConstValueDropDownList(this.drpHazardType, ConstValue.Group_LargerHazardType, true);
|
||||
@@ -105,10 +107,20 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
{
|
||||
this.txtOperativesNum.Text = largerHazard.OperativesNum.ToString();
|
||||
}
|
||||
if (!string.IsNullOrEmpty(largerHazard.UnitId))
|
||||
{
|
||||
this.drpUnit.SelectedValue = largerHazard.UnitId;
|
||||
//根据单位和项目获取人员
|
||||
BLL.PersonService.InitPersonByProjectUnitDropDownList(this.drpStandbyPersonnel, largerHazard.ProjectId, largerHazard.UnitId, false);
|
||||
if (!string.IsNullOrEmpty(largerHazard.StandbyPersonnelId))
|
||||
{
|
||||
this.drpStandbyPersonnel.SelectedValue = largerHazard.StandbyPersonnelId;
|
||||
}
|
||||
}
|
||||
this.drpStates.SelectedValue = largerHazard.States;
|
||||
this.drpApprovalState.SelectedValue = largerHazard.ApprovalState;
|
||||
this.txtRemark.Text = HttpUtility.HtmlDecode(largerHazard.Remark);
|
||||
this.txtDescriptions.Text = largerHazard.Descriptions;
|
||||
this.txtDescriptions.Text = largerHazard.Descriptions;
|
||||
this.txtHazardName.Text = largerHazard.HazardName;
|
||||
}
|
||||
else
|
||||
@@ -121,6 +133,20 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 单位下拉框事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.drpUnit.SelectedValue))
|
||||
{
|
||||
//根据单位和项目获取人员
|
||||
BLL.PersonService.InitPersonByProjectUnitDropDownList(this.drpStandbyPersonnel, this.CurrUser.LoginProjectId, this.drpUnit.SelectedValue, false);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存按钮
|
||||
@@ -136,6 +162,16 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
ShowNotify("请选择类型!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(this.drpStandbyPersonnel.SelectedValue))
|
||||
{
|
||||
ShowNotify("请选择旁站人员!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(this.drpUnit.SelectedValue))
|
||||
{
|
||||
ShowNotify("请选择施工单位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpStates.SelectedValue != "1")
|
||||
{
|
||||
//判断附件是否必传
|
||||
@@ -205,6 +241,8 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
RecordTime = Funs.GetNewDateTime(this.txtRecordTime.Text.Trim()),
|
||||
ProjectId = this.ProjectId,
|
||||
States = this.drpStates.SelectedValue,
|
||||
UnitId = this.drpUnit.SelectedValue,
|
||||
StandbyPersonnelId = this.drpStandbyPersonnel.SelectedValue,
|
||||
ApprovalState = this.drpApprovalState.SelectedValue,
|
||||
HazardName = txtHazardName.Text.Trim()
|
||||
};
|
||||
@@ -222,6 +260,13 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
BLL.LargerHazardService.AddLargerHazard(largerHazard);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, largerHazard.HazardCode, largerHazard.HazardId, BLL.Const.ProjectLargerHazardListMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
//更新三库危大工程
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateDangerousEngineeringRecord(this.HazardId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.ProjectInformation);
|
||||
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.DangerousProject);
|
||||
}
|
||||
|
||||
@@ -77,6 +77,33 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtExpectedTime;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// drpStandbyPersonnel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpStandbyPersonnel;
|
||||
|
||||
/// <summary>
|
||||
/// Label7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label7;
|
||||
|
||||
/// <summary>
|
||||
/// rblIsArgument 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="编辑危险性较大的工程清单" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="1000px" Height="600px">
|
||||
Width="1100px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
|
||||
@@ -43,6 +43,15 @@
|
||||
<f:NumberBox runat="server" ID="txtOperativesNum" NoDecimal="true" NoNegative="true" Label="作业人员数" LabelWidth="100px" Readonly="true"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUnitName" runat="server" Label="施工单位" LabelWidth="100px" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtStandbyPersonnel" runat="server" Label="旁站人员" LabelWidth="100px" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:Label runat="server" ID="Label7"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpStates" runat="server" Label="作业状态" LabelAlign="Right" Readonly="true">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -87,6 +88,14 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
this.txtDescriptions.Text = largerHazard.Descriptions;
|
||||
this.txtRemark.Text = HttpUtility.HtmlDecode(largerHazard.Remark);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(largerHazard.UnitId))
|
||||
{
|
||||
this.txtUnitName.Text = UnitService.getUnitNamesUnitIds(largerHazard.UnitId);
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(largerHazard.StandbyPersonnelId))
|
||||
{
|
||||
this.txtStandbyPersonnel.Text = PersonService.GetPersonNameById(largerHazard.StandbyPersonnelId);
|
||||
}
|
||||
|
||||
this.AttachUrl1.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../../", getUrl(this.HazardId + "_1"));
|
||||
this.AttachUrl2.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../../", getUrl(this.HazardId + "_2"));
|
||||
|
||||
@@ -122,6 +122,33 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtOperativesNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// txtStandbyPersonnel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtStandbyPersonnel;
|
||||
|
||||
/// <summary>
|
||||
/// Label7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label7;
|
||||
|
||||
/// <summary>
|
||||
/// drpStates 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user