This commit is contained in:
parent
c61ce05257
commit
2ad0403d8c
|
@ -0,0 +1,5 @@
|
|||
|
||||
alter table dbo.Solution_LargerHazard add HazardName nvarchar(200)
|
||||
go
|
||||
|
||||
|
|
@ -32,6 +32,7 @@ namespace BLL
|
|||
{
|
||||
HazardId = largerHazard.HazardId,
|
||||
HazardCode = largerHazard.HazardCode,
|
||||
HazardName = largerHazard.HazardName,
|
||||
HazardType = largerHazard.HazardType,
|
||||
ProjectId = largerHazard.ProjectId,
|
||||
Address = largerHazard.Address,
|
||||
|
@ -43,7 +44,8 @@ namespace BLL
|
|||
States = largerHazard.States,
|
||||
TrainPersonNum = largerHazard.TrainPersonNum,
|
||||
IsSuperLargerHazard = largerHazard.IsSuperLargerHazard,
|
||||
Descriptions = largerHazard.Descriptions
|
||||
Descriptions = largerHazard.Descriptions,
|
||||
OperativesNum = largerHazard.OperativesNum
|
||||
};
|
||||
|
||||
db.Solution_LargerHazard.InsertOnSubmit(newLargerHazard);
|
||||
|
@ -73,6 +75,7 @@ namespace BLL
|
|||
if (newLargerHazard != null)
|
||||
{
|
||||
newLargerHazard.HazardCode = largerHazard.HazardCode;
|
||||
newLargerHazard.HazardName = largerHazard.HazardName;
|
||||
newLargerHazard.HazardType = largerHazard.HazardType;
|
||||
newLargerHazard.ProjectId = largerHazard.ProjectId;
|
||||
newLargerHazard.Address = largerHazard.Address;
|
||||
|
@ -84,6 +87,8 @@ namespace BLL
|
|||
newLargerHazard.TrainPersonNum = largerHazard.TrainPersonNum;
|
||||
newLargerHazard.IsSuperLargerHazard = largerHazard.IsSuperLargerHazard;
|
||||
newLargerHazard.Descriptions = largerHazard.Descriptions;
|
||||
newLargerHazard.IsUpdate = null;
|
||||
newLargerHazard.OperativesNum = largerHazard.OperativesNum;
|
||||
db.SubmitChanges();
|
||||
//判断是否有数据 有数据则更新 没有数据则添加
|
||||
var majorPlanApproval = BLL.MajorPlanApprovalService.GetMajorPlanApprovalById(largerHazard.HazardId);
|
||||
|
@ -118,11 +123,11 @@ namespace BLL
|
|||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#region 同时编辑一条到质量管理中的危大(超危大)工程专项施工管理
|
||||
private static void AddMajorPlanApproval(Model.Solution_LargerHazard largerHazard)
|
||||
{
|
||||
|
||||
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Comprehensive_MajorPlanApproval newMajorPlanApproval = new Model.Comprehensive_MajorPlanApproval();
|
||||
newMajorPlanApproval.MajorPlanApprovalId = largerHazard.HazardId;
|
||||
|
@ -140,8 +145,8 @@ namespace BLL
|
|||
db.Comprehensive_MajorPlanApproval.InsertOnSubmit(newMajorPlanApproval);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private static void UpdateMajorPlanApproval(Model.Solution_LargerHazard largerHazard)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
|
@ -162,8 +167,8 @@ namespace BLL
|
|||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2083,7 +2083,7 @@ namespace BLL
|
|||
CollCropCode = thisUnit.CollCropCode,
|
||||
DataDate = x.RecordTime,
|
||||
AttachFile = AttachFileService.getFileUrl(x.HazardId.ToString()),
|
||||
//HazardName = x.HazardName,
|
||||
HazardName = x.HazardName,
|
||||
TypeName = db.Sys_Const.FirstOrDefault(y =>
|
||||
y.ConstValue == x.HazardType && y.GroupId == ConstValue.Group_LargerHazardType).ConstText,
|
||||
IsSuperLargerHazard = x.IsSuperLargerHazard,
|
||||
|
@ -2282,7 +2282,7 @@ namespace BLL
|
|||
CollCropCode = thisUnit.CollCropCode,
|
||||
DataDate = x.RecordTime,
|
||||
AttachFile = AttachFileService.getFileUrl(x.HazardId.ToString()),
|
||||
//HazardName = x.HazardName,
|
||||
HazardName = x.HazardName,
|
||||
TypeName = db.Sys_Const.FirstOrDefault(y =>
|
||||
y.ConstValue == x.HazardType && y.GroupId == ConstValue.Group_LargerHazardType).ConstText,
|
||||
IsSuperLargerHazard = x.IsSuperLargerHazard,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LargerHazardEdit.aspx.cs" ValidateRequest="false" Inherits="FineUIPro.Web.HSSE.Solution.LargerHazardEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
@ -7,221 +8,236 @@
|
|||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtLargerHazardCode" runat="server" Label="文件编号" MaxLength="50" Required="true" ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpHazardType" runat="server" Label="类型" Required="true" ShowRedStar="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="预计施工" ID="txtExpectedTime" Required="true" ShowRedStar="true">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:RadioButtonList ID="rblIsArgument" runat="server" Label="专家论证" LabelWidth="100px" Required="true" ShowRedStar="true">
|
||||
</f:RadioButtonList>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="编制时间" ID="txtRecordTime">
|
||||
</f:DatePicker>
|
||||
<%-- <f:TextBox ID="txtAddress" runat="server" Label="地点" MaxLength="50" > --%>
|
||||
<%-- </f:TextBox> --%>
|
||||
<f:DropDownList ID="drpAddress" runat="server" Label="地点" EnableCheckBoxSelect="true" EnableMultiSelect="true" MaxLength="50" AutoSelectFirstItem="false" LabelAlign="Right"></f:DropDownList>
|
||||
</Items>
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtHazardName" runat="server" Label="方案名称" MaxLength="50" Required="true" ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
|
||||
<f:RadioButtonList ID="rblIsSuperLargerHazard" runat="server" Label="超危大工程" LabelWidth="100px" Required="true" ShowRedStar="true">
|
||||
</f:RadioButtonList>
|
||||
<f:NumberBox runat="server" ID="txtTrainPersonNum" NoDecimal="true" NoNegative="true" Label="培训人次" LabelWidth="100px"></f:NumberBox>
|
||||
<f:DropDownList ID="drpStates" runat="server" Label="状态" LabelAlign="Right" >
|
||||
<f:ListItem Text="审批完成" Value="1"/>
|
||||
<f:ListItem Text="作业中" Value="2"/>
|
||||
<f:ListItem Text="已关闭" Value="3"/>
|
||||
<f:ListItem Text="已取消" Value="0"/>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtLargerHazardCode" runat="server" Label="文件编号" MaxLength="50" Required="true" ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpHazardType" runat="server" Label="类型" Required="true" ShowRedStar="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtDescriptions" runat="server" Label="描述"
|
||||
LabelAlign="Right" MaxLength="500" Height="100px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:HtmlEditor runat="server" Label="" ID="txtRemark" ShowLabel="false" Hidden="true"
|
||||
Editor="UMEditor" BasePath="~/res/umeditor/" ToolbarSet="Full" Height="230px" LabelAlign="Right">
|
||||
</f:HtmlEditor>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="预计施工" ID="txtExpectedTime" Required="true" ShowRedStar="true">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:RadioButtonList ID="rblIsArgument" runat="server" Label="专家论证" LabelWidth="100px" Required="true" ShowRedStar="true">
|
||||
</f:RadioButtonList>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="编制时间" ID="txtRecordTime">
|
||||
</f:DatePicker>
|
||||
<%-- <f:TextBox ID="txtAddress" runat="server" Label="地点" MaxLength="50" > --%>
|
||||
<%-- </f:TextBox> --%>
|
||||
<f:DropDownList ID="drpAddress" runat="server" Label="地点" EnableCheckBoxSelect="true" EnableMultiSelect="true" MaxLength="50" AutoSelectFirstItem="false" LabelAlign="Right"></f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel2" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label1" runat="server" Label="附件1-专项方案"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttachUrl_Click">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl1" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel3" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label2" runat="server" Label="附件2-专家论证报告"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach1" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click2">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel2" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl2" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel4" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label3" runat="server" Label="附件3-论证会签到表"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach2" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click3">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel3" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl3" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel5" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label4" runat="server" Label="附件4-论证会会议照片"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach3" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click4">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel4" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl4" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel6" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label5" runat="server" Label="附件5-方案交底记录"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach4" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click5">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel5" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl5" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel7" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label6" runat="server" Label="附件6-方案交底会议照片"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach5" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click6">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel6" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl6" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbTemp">
|
||||
</f:Label>
|
||||
<%-- <f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server" --%>
|
||||
<%-- OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1"> --%>
|
||||
<%-- </f:Button> --%>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
<f:RadioButtonList ID="rblIsSuperLargerHazard" runat="server" Label="超危大工程" LabelWidth="100px" Required="true" ShowRedStar="true">
|
||||
</f:RadioButtonList>
|
||||
<f:NumberBox runat="server" ID="txtTrainPersonNum" NoDecimal="true" NoNegative="true" Label="培训人次" LabelWidth="100px"></f:NumberBox>
|
||||
<f:DropDownList ID="drpStates" runat="server" Label="状态" LabelAlign="Right">
|
||||
<f:ListItem Text="审批完成" Value="1" />
|
||||
<f:ListItem Text="作业中" Value="2" />
|
||||
<f:ListItem Text="已关闭" Value="3" />
|
||||
<f:ListItem Text="已取消" Value="0" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox runat="server" ID="txtOperativesNum" NoDecimal="true" NoNegative="true" Label="作业人员数" LabelWidth="100px"></f:NumberBox>
|
||||
<f:Label runat="server" ID="txtOperativesNum1"></f:Label>
|
||||
<f:Label runat="server" ID="txtOperativesNum2"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtDescriptions" runat="server" Label="描述"
|
||||
LabelAlign="Right" MaxLength="500" Height="100px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:HtmlEditor runat="server" Label="" ID="txtRemark" ShowLabel="false" Hidden="true"
|
||||
Editor="UMEditor" BasePath="~/res/umeditor/" ToolbarSet="Full" Height="230px" LabelAlign="Right">
|
||||
</f:HtmlEditor>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel2" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label1" runat="server" Label="附件1-专项方案"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttachUrl_Click">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl1" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel3" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label2" runat="server" Label="附件2-专家论证报告"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach1" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click2">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel2" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl2" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel4" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label3" runat="server" Label="附件3-论证会签到表"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach2" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click3">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel3" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl3" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel5" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label4" runat="server" Label="附件4-论证会会议照片"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach3" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click4">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel4" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl4" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel6" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label5" runat="server" Label="附件5-方案交底记录"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach4" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click5">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel5" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl5" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel7" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="Label6" runat="server" Label="附件6-方案交底会议照片"
|
||||
LabelAlign="Right" LabelWidth="180px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach5" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click6">
|
||||
</f:Button>
|
||||
<f:ContentPanel ID="ContentPanel6" runat="server" ShowHeader="false" ShowBorder="false">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="AttachUrl6" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbTemp">
|
||||
</f:Label>
|
||||
<%-- <f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server" --%>
|
||||
<%-- OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1"> --%>
|
||||
<%-- </f:Button> --%>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -101,9 +101,14 @@ namespace FineUIPro.Web.HSSE.Solution
|
|||
{
|
||||
this.txtTrainPersonNum.Text = largerHazard.TrainPersonNum.ToString();
|
||||
}
|
||||
if (largerHazard.OperativesNum != null)
|
||||
{
|
||||
this.txtOperativesNum.Text = largerHazard.OperativesNum.ToString();
|
||||
}
|
||||
this.drpStates.SelectedValue = largerHazard.States;
|
||||
this.txtRemark.Text = HttpUtility.HtmlDecode(largerHazard.Remark);
|
||||
this.txtDescriptions.Text = largerHazard.Descriptions;
|
||||
this.txtHazardName.Text = largerHazard.HazardName;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -193,11 +198,13 @@ namespace FineUIPro.Web.HSSE.Solution
|
|||
IsArgument = Convert.ToBoolean(this.rblIsArgument.SelectedValue),
|
||||
IsSuperLargerHazard = Convert.ToBoolean(this.rblIsSuperLargerHazard.SelectedValue),
|
||||
TrainPersonNum = Funs.GetNewIntOrZero(this.txtTrainPersonNum.Text.Trim()),
|
||||
OperativesNum = Funs.GetNewIntOrZero(this.txtOperativesNum.Text.Trim()),
|
||||
Remark = HttpUtility.HtmlEncode(this.txtRemark.Text.Trim()),
|
||||
Descriptions = this.txtDescriptions.Text.Trim(),
|
||||
RecordTime = Funs.GetNewDateTime(this.txtRecordTime.Text.Trim()),
|
||||
ProjectId = this.ProjectId,
|
||||
States = this.drpStates.SelectedValue,
|
||||
HazardName = txtHazardName.Text.Trim()
|
||||
};
|
||||
if (!string.IsNullOrEmpty(this.HazardId))
|
||||
{
|
||||
|
|
|
@ -41,6 +41,15 @@ namespace FineUIPro.Web.HSSE.Solution
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtHazardName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHazardName;
|
||||
|
||||
/// <summary>
|
||||
/// txtLargerHazardCode 控件。
|
||||
/// </summary>
|
||||
|
@ -122,6 +131,33 @@ namespace FineUIPro.Web.HSSE.Solution
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpStates;
|
||||
|
||||
/// <summary>
|
||||
/// txtOperativesNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtOperativesNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtOperativesNum1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtOperativesNum1;
|
||||
|
||||
/// <summary>
|
||||
/// txtOperativesNum2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtOperativesNum2;
|
||||
|
||||
/// <summary>
|
||||
/// txtDescriptions 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -355462,6 +355462,8 @@ namespace Model
|
|||
|
||||
private System.Nullable<bool> _IsUpdate;
|
||||
|
||||
private string _HazardName;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
|
@ -355502,6 +355504,8 @@ namespace Model
|
|||
partial void OnOperativesNumChanged();
|
||||
partial void OnIsUpdateChanging(System.Nullable<bool> value);
|
||||
partial void OnIsUpdateChanged();
|
||||
partial void OnHazardNameChanging(string value);
|
||||
partial void OnHazardNameChanged();
|
||||
#endregion
|
||||
|
||||
public Solution_LargerHazard()
|
||||
|
@ -355839,6 +355843,26 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HazardName", DbType="NVarChar(200)")]
|
||||
public string HazardName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HazardName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HazardName != value))
|
||||
{
|
||||
this.OnHazardNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HazardName = value;
|
||||
this.SendPropertyChanged("HazardName");
|
||||
this.OnHazardNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Solution_LargerSolution_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||
public Base_Project Base_Project
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue