三库
This commit is contained in:
@@ -15,56 +15,126 @@
|
||||
AutoScroll="true" BodyPadding="10px" runat="server" RedStarPosition="BeforeText"
|
||||
LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow ColumnWidths="20% 20% 20% 40%">
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAccidentHandleCode" runat="server" Label="编号" LabelAlign="Right"
|
||||
MaxLength="50" Readonly="true" LabelWidth="80px">
|
||||
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">
|
||||
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="80px">
|
||||
<f:DatePicker ID="txtAccidentDate" runat="server" Label="时间" LabelAlign="Right"
|
||||
EnableEdit="true" Required="true" ShowRedStar="true" LabelWidth="110px">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpUnitId" runat="server" Label="事故单位" EnableEdit="true"
|
||||
LabelAlign="Right" LabelWidth="80px">
|
||||
</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: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>
|
||||
<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"
|
||||
MaxLength="500" Height="90px" LabelWidth="80px">
|
||||
<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">
|
||||
MaxLength="500" Height="70px" LabelWidth="80px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</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">
|
||||
|
||||
@@ -48,6 +48,12 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
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);
|
||||
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
|
||||
this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
|
||||
@@ -98,6 +104,34 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
{
|
||||
this.txtDeathPersonNum.Text = accidentHandle.DeathPersonNum.ToString();
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
||||
this.txtAccidentHandle.Text = accidentHandle.AccidentHandle;
|
||||
//this.txtRemark.Text = accidentHandle.Remark;
|
||||
}
|
||||
@@ -145,8 +179,36 @@ 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.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 (this.drpUnitId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
accidentHandle.UnitId = this.drpUnitId.SelectedValue;
|
||||
@@ -165,6 +227,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);
|
||||
}
|
||||
|
||||
//Project_HSSEData_HSSEService.StatisticalData(accidentHandle.ProjectId, Project_HSSEData_HSSEService.HSSEDateType.WorkingHours);
|
||||
}
|
||||
#endregion
|
||||
@@ -184,5 +254,29 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/AccidentHandleAttachUrl&menuId={1}", this.AccidentHandleId, BLL.Const.ProjectAccidentHandleMenuId)));
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 单位选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void drpUnit_OnSelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
using (Model.SUBQHSEDB db = new Model.SUBQHSEDB(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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+186
-103
@@ -1,203 +1,286 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Accident {
|
||||
|
||||
|
||||
public partial class AccidentHandleEdit {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Accident
|
||||
{
|
||||
|
||||
|
||||
public partial class AccidentHandleEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// PageManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// SimpleForm1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandleCode 控件。
|
||||
/// txtAccidentHandleCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentHandleCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandleName 控件。
|
||||
/// txtAccidentHandleName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentHandleName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDate 控件。
|
||||
/// txtAccidentDate control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtAccidentDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpUnitId 控件。
|
||||
/// txtWorkHoursLoss control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnitId;
|
||||
|
||||
/// <summary>
|
||||
/// txtMoneyLoss 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMoneyLoss;
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkHoursLoss 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtWorkHoursLoss;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtMinorInjuriesPersonNum 控件。
|
||||
/// txtMoneyLoss control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMoneyLoss;
|
||||
|
||||
/// <summary>
|
||||
/// txtIndirectMoneyLoss control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtIndirectMoneyLoss;
|
||||
|
||||
/// <summary>
|
||||
/// txtMinorInjuriesPersonNum control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMinorInjuriesPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtInjuriesPersonNum 控件。
|
||||
/// txtInjuriesPersonNum control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtInjuriesPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtDeathPersonNum 控件。
|
||||
/// txtDeathPersonNum control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtDeathPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDef 控件。
|
||||
/// dpAccidentLevel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList dpAccidentLevel;
|
||||
|
||||
/// <summary>
|
||||
/// dpAccidentType control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList dpAccidentType;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnitId control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnitId;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentLocation control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentLocation;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDef control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAccidentDef;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandle 控件。
|
||||
/// txtAccidentHandle control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAccidentHandle;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// txtContractingResponsibility control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtContractingResponsibility;
|
||||
|
||||
/// <summary>
|
||||
/// drpPost control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPost;
|
||||
|
||||
/// <summary>
|
||||
/// dpResponsibilityType control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList dpResponsibilityType;
|
||||
|
||||
/// <summary>
|
||||
/// drpResponsibleMan control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpResponsibleMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibilityDesc control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtResponsibilityDesc;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbTemp 控件。
|
||||
/// lbTemp control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbTemp;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// btnAttachUrl control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// ToolbarFill1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// btnSave control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// btnClose control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// WindowAtt control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
|
||||
@@ -15,54 +15,111 @@
|
||||
AutoScroll="true" BodyPadding="10px" runat="server" RedStarPosition="BeforeText"
|
||||
LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow ColumnWidths="20% 20% 20% 40%">
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAccidentHandleCode" runat="server" Label="事故编号" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtAccidentHandleName" runat="server" Label="事故名称" LabelAlign="Right" LabelWidth="90px"
|
||||
Readonly="true">
|
||||
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 ID="txtAccidentDate" 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>
|
||||
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">
|
||||
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">
|
||||
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">
|
||||
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: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">
|
||||
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">
|
||||
|
||||
@@ -65,6 +65,47 @@ namespace FineUIPro.Web.HSSE.Accident
|
||||
{
|
||||
this.txtDeathPersonNum.Text = accidentHandle.DeathPersonNum.ToString();
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
||||
this.txtAccidentHandle.Text = accidentHandle.AccidentHandle;
|
||||
this.txtUnitName.Text = BLL.UnitService.GetUnitNameByUnitId(accidentHandle.UnitId);
|
||||
}
|
||||
|
||||
+182
-99
@@ -1,194 +1,277 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Accident {
|
||||
|
||||
|
||||
public partial class AccidentHandleView {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Accident
|
||||
{
|
||||
|
||||
|
||||
public partial class AccidentHandleView
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// PageManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// SimpleForm1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandleCode 控件。
|
||||
/// txtAccidentHandleCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentHandleCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandleName 控件。
|
||||
/// txtAccidentHandleName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentHandleName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDate 控件。
|
||||
/// txtAccidentDate control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// txtWorkHoursLoss control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// txtMoneyLoss 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMoneyLoss;
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkHoursLoss 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtWorkHoursLoss;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtMinorInjuriesPersonNum 控件。
|
||||
/// txtMoneyLoss control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMoneyLoss;
|
||||
|
||||
/// <summary>
|
||||
/// txtIndirectMoneyLoss control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtIndirectMoneyLoss;
|
||||
|
||||
/// <summary>
|
||||
/// txtMinorInjuriesPersonNum control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMinorInjuriesPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtInjuriesPersonNum 控件。
|
||||
/// txtInjuriesPersonNum control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtInjuriesPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtDeathPersonNum 控件。
|
||||
/// txtDeathPersonNum control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtDeathPersonNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDef 控件。
|
||||
/// txtAccidentLevel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentLevel;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentType control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentType;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentLocation control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccidentLocation;
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentDef control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAccidentDef;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccidentHandle 控件。
|
||||
/// txtAccidentHandle control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAccidentHandle;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// txtContractingResponsibility control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtContractingResponsibility;
|
||||
|
||||
/// <summary>
|
||||
/// txtPositionName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPositionName;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibilityType control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtResponsibilityType;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibleMan control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtResponsibleMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibilityDesc control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtResponsibilityDesc;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbTemp 控件。
|
||||
/// lbTemp control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbTemp;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// btnAttachUrl control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// ToolbarFill1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// btnClose control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// WindowAtt control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
Requirement = requirement,
|
||||
LimitTime = Funs.GetNewDateTime(limitTime),
|
||||
};
|
||||
var rectify = rectifyList.FirstOrDefault(x => x.RectifyName == rectifyId);
|
||||
var rectify = rectifyList.FirstOrDefault(x => x.RectifyName == rectifyId || x.RectifyId == rectifyId);
|
||||
if (rectify != null)
|
||||
{
|
||||
item.RectifyId = rectify.RectifyId;
|
||||
|
||||
@@ -194,6 +194,14 @@ 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);
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(Request.Params["Main"]))
|
||||
{
|
||||
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
|
||||
|
||||
@@ -298,6 +298,14 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
// Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.HiddenDangerTroubleshooting);
|
||||
// Project_HSSEData_HiddenDangerDetailService.StatisticalData(this.CurrUser.LoginProjectId);
|
||||
ShowNotify(saveType + "成功!", MessageBoxIcon.Success);
|
||||
//更新三库隐患记录
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateHazardRecord(this.RectifyNoticesId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(Request.Params["Main"]))
|
||||
{
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
|
||||
@@ -266,6 +266,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);
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(Request.Params["Main"]))
|
||||
{
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
|
||||
@@ -36,6 +36,13 @@
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<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:TextBox runat="server" Label="编号" ID="txtViolationPersonCode" EmptyText="输入查询条件"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
@@ -80,7 +87,10 @@
|
||||
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")) %>'
|
||||
|
||||
@@ -103,6 +103,7 @@ namespace FineUIPro.Web.Check
|
||||
+ @"ViolationPerson.HandleStep,"
|
||||
+ @"Unit.UnitName,"
|
||||
+ @"Person.CardNo,"
|
||||
+ @"ViolationPerson.ViolationLevel,"
|
||||
+ @"Person.PersonName,"
|
||||
+ @"WorkPost.WorkPostName,"
|
||||
+ @"(CASE WHEN ViolationPerson.States = " + BLL.Const.State_0 + " OR ViolationPerson.States IS NULL THEN '待['+OperateUser.UserName+']提交' WHEN ViolationPerson.States = " + BLL.Const.State_2 + " THEN '审核/审批完成' ELSE '待['+OperateUser.UserName+']办理' END) AS FlowOperateName"
|
||||
@@ -143,6 +144,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);
|
||||
|
||||
|
||||
+86
-77
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.Check
|
||||
@@ -15,218 +15,227 @@ namespace FineUIPro.Web.Check
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// PageManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// Panel1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// panelLeftRegion control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// ContentPanel1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// ucTree 控件。
|
||||
/// ucTree control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// panelCenterRegion control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// Grid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// Toolbar2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationPersonCode 控件。
|
||||
/// drpLevel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpLevel;
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationPersonCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationPersonCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtPersonName 控件。
|
||||
/// txtPersonName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPersonName;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// ToolbarFill1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// btnNew control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// btnOut control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumber 控件。
|
||||
/// lblNumber control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||
|
||||
/// <summary>
|
||||
/// lblViolationType 控件。
|
||||
/// lblViolationType control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblViolationType;
|
||||
|
||||
/// <summary>
|
||||
/// lblHandleStep 控件。
|
||||
/// lblHandleStep control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblHandleStep;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// ToolbarSeparator1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// ToolbarText1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// ddlPageSize control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// Window1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// Menu1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// btnMenuEdit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// btnMenuDelete control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
|
||||
@@ -17,47 +17,47 @@
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtViolationPersonCode" runat="server" Label="编号" LabelAlign="Right"
|
||||
MaxLength="50">
|
||||
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" LabelWidth="120px">
|
||||
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">
|
||||
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">
|
||||
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">
|
||||
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">
|
||||
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">
|
||||
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">
|
||||
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">
|
||||
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">
|
||||
FieldType="String" HeaderText="岗位" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
@@ -69,8 +69,7 @@
|
||||
<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 ID="txtWorkPostName" runat="server" Label="岗位" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
@@ -84,29 +83,53 @@
|
||||
</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">
|
||||
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">
|
||||
</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:TextArea ID="txtViolationDef" runat="server" Height="60px" Label="违章描述">
|
||||
<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>
|
||||
|
||||
@@ -123,6 +123,9 @@ 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
|
||||
@@ -292,6 +295,9 @@ namespace FineUIPro.Web.Check
|
||||
violationPerson.CompileMan = this.CurrUser.UserId;
|
||||
violationPerson.CompileDate = DateTime.Now;
|
||||
violationPerson.States = BLL.Const.State_2;
|
||||
violationPerson.RectificationStatus = this.drpRectificationStatus.SelectedValue.Trim();
|
||||
violationPerson.ViolationLevel = this.drpViolationLevel.SelectedValue.Trim();
|
||||
|
||||
if (!string.IsNullOrEmpty(this.ViolationPersonId))
|
||||
{
|
||||
violationPerson.ViolationPersonId = this.ViolationPersonId;
|
||||
@@ -314,7 +320,13 @@ namespace FineUIPro.Web.Check
|
||||
SitePersonPerson.OutResult = drpHandleStep.SelectedText;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
//更新三库违章作业
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateViolationRecord(this.ViolationPersonId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
+126
-106
@@ -1,221 +1,241 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.Check {
|
||||
|
||||
|
||||
public partial class ViolationPersonEdit {
|
||||
|
||||
namespace FineUIPro.Web.Check
|
||||
{
|
||||
|
||||
|
||||
public partial class ViolationPersonEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// PageManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// SimpleForm1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationPersonCode 控件。
|
||||
/// txtViolationPersonCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationPersonCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpPersonId 控件。
|
||||
/// drpPersonId control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownBox drpPersonId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// Grid1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// Toolbar2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSelectUnitName 控件。
|
||||
/// txtSelectUnitName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSelectUnitName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCardNo 控件。
|
||||
/// txtCardNo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCardNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPersonName 控件。
|
||||
/// txtPersonName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPersonName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// txtUnitName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkPostName 控件。
|
||||
/// txtWorkPostName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkPostName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdUnitId 控件。
|
||||
/// hdUnitId control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdUnitId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdWorkPostId 控件。
|
||||
/// hdWorkPostId control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdWorkPostId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationDate 控件。
|
||||
/// drpViolationName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtViolationDate;
|
||||
|
||||
/// <summary>
|
||||
/// drpViolationName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpViolationName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpViolationType 控件。
|
||||
/// drpViolationType control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpViolationType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpHandleStep 控件。
|
||||
/// drpViolationLevel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpViolationLevel;
|
||||
|
||||
/// <summary>
|
||||
/// drpRectificationStatus control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpRectificationStatus;
|
||||
|
||||
/// <summary>
|
||||
/// drpHandleStep control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpHandleStep;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationDef 控件。
|
||||
/// txtViolationDate control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtViolationDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationDef control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtViolationDef;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// Toolbar1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// ToolbarFill1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// btnSave control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// btnClose control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,14 @@
|
||||
</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="txtUnitName" runat="server" Label="单位名称" LabelAlign="Right" Readonly="true">
|
||||
|
||||
@@ -102,6 +102,9 @@ namespace FineUIPro.Web.Check
|
||||
}
|
||||
}
|
||||
this.txtViolationDef.Text = violationPerson.ViolationDef;
|
||||
this.txtViolationLevel.Text = violationPerson.ViolationLevel;
|
||||
this.txtRectificationStatus.Text = violationPerson.RectificationStatus;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,149 +1,169 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.Check {
|
||||
|
||||
|
||||
public partial class ViolationPersonView {
|
||||
|
||||
namespace FineUIPro.Web.Check
|
||||
{
|
||||
|
||||
|
||||
public partial class ViolationPersonView
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// PageManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// SimpleForm1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationPersonCode 控件。
|
||||
/// txtViolationPersonCode control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationPersonCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPersonName 控件。
|
||||
/// txtPersonName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPersonName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// txtRectificationStatus control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRectificationStatus;
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationLevel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationLevel;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkPostName 控件。
|
||||
/// txtWorkPostName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkPostName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationDate 控件。
|
||||
/// txtViolationDate control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationName 控件。
|
||||
/// txtViolationName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationType 控件。
|
||||
/// txtViolationType control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtViolationType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHandleStep 控件。
|
||||
/// txtHandleStep control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHandleStep;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtViolationDef 控件。
|
||||
/// txtViolationDef control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtViolationDef;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// Toolbar1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// ToolbarFill1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// btnClose control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
}
|
||||
|
||||
@@ -351,6 +351,13 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
BLL.EduTrain_TrainRecordDetailService.UpdateTrainDetail(detail);
|
||||
}
|
||||
}
|
||||
//更新三库教育培训
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateTrainingRecord(this.TrainingId, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -323,6 +323,14 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
register.CheckTime = Funs.GetNewDateTimeOrNow(this.txtCheckTime.Text.Trim());
|
||||
register.ControlId = Request.Params["ControlId"];
|
||||
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);
|
||||
}
|
||||
//Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.SupervisionAndInspection);
|
||||
|
||||
@@ -31,6 +31,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">
|
||||
|
||||
@@ -50,6 +50,8 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
{
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, false);
|
||||
|
||||
//类型
|
||||
BLL.ConstValue.InitConstValueDropDownList(this.drpHazardType, ConstValue.Group_LargerHazardType, true);
|
||||
//是否需要专家论证
|
||||
@@ -68,6 +70,17 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
{
|
||||
this.drpHazardType.SelectedValue = largerHazard.HazardType;
|
||||
}
|
||||
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.txtAddress.Text = largerHazard.Address;
|
||||
if (largerHazard.ExpectedTime != null)
|
||||
{
|
||||
@@ -131,6 +144,17 @@ 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;
|
||||
}
|
||||
|
||||
this.SaveData(BLL.Const.BtnSave);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
@@ -159,6 +183,9 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
States = this.drpStates.SelectedValue,
|
||||
HazardName=txtHazardName.Text.Trim(),
|
||||
ApprovalState = this.drpApprovalState.SelectedValue,
|
||||
UnitId = this.drpUnit.SelectedValue,
|
||||
StandbyPersonnelId = this.drpStandbyPersonnel.SelectedValue,
|
||||
|
||||
|
||||
};
|
||||
if (!string.IsNullOrEmpty(this.HazardId))
|
||||
@@ -205,6 +232,14 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
//更新三库危大工程
|
||||
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);
|
||||
}
|
||||
@@ -386,5 +421,20 @@ 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);
|
||||
}
|
||||
|
||||
/// <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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -77,6 +77,33 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtExpectedTime;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// drpStandbyPersonnel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpStandbyPersonnel;
|
||||
|
||||
/// <summary>
|
||||
/// Label7 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label7;
|
||||
|
||||
/// <summary>
|
||||
/// rblIsArgument control.
|
||||
/// </summary>
|
||||
|
||||
@@ -131,9 +131,9 @@
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</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="500px">
|
||||
<f:Window ID="Window1" Title="编辑危大工程清单" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="1100px" Height="580px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
|
||||
@@ -31,6 +31,15 @@
|
||||
</f:TextBox>
|
||||
</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:TextBox ID="txtIsArgument" runat="server" Label="专家论证" LabelWidth="100px" Readonly="true" >
|
||||
|
||||
@@ -74,6 +74,14 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
{
|
||||
this.txtTrainPersonNum.Text = largerHazard.TrainPersonNum.ToString();
|
||||
}
|
||||
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.drpStates.SelectedValue = largerHazard.States;
|
||||
this.txtDescriptions.Text = largerHazard.Descriptions;
|
||||
this.txtRemark.Text = HttpUtility.HtmlDecode(largerHazard.Remark);
|
||||
|
||||
@@ -77,6 +77,33 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtExpectedTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// txtStandbyPersonnel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtStandbyPersonnel;
|
||||
|
||||
/// <summary>
|
||||
/// Label7 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label7;
|
||||
|
||||
/// <summary>
|
||||
/// txtIsArgument control.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user