236 lines
14 KiB
Plaintext
236 lines
14 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="CheckSpecialEdit.aspx.cs" Inherits="FineUIPro.Web.HSSE.Check.CheckSpecialEdit" %>
|
||
<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" TagPrefix="uc1" %>
|
||
<!DOCTYPE html>
|
||
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head runat="server">
|
||
<title>编辑专项检查</title>
|
||
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||
|
||
<style type="text/css">
|
||
.labcenter
|
||
{
|
||
text-align: center;
|
||
}
|
||
.f-grid-row.burlywood
|
||
{
|
||
background-color: burlywood;
|
||
background-image: none;
|
||
}
|
||
|
||
.fontred
|
||
{
|
||
color: #FF7575;
|
||
background-image: none;
|
||
}
|
||
</style>
|
||
</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 ColumnWidths="25% 25% 25% 30%">
|
||
<Items>
|
||
<f:TextBox ID="txtCheckSpecialCode" runat="server" Label="检查编号" Readonly="true" MaxLength="50">
|
||
</f:TextBox>
|
||
|
||
<f:DropDownList ID="drpType" runat="server" Label="检查类型"
|
||
EnableEdit="true">
|
||
</f:DropDownList>
|
||
<f:DropDownList ID="drpSupCheckItemSet" runat="server" Label="检查类别"
|
||
AutoPostBack="true"
|
||
EnableEdit="true">
|
||
</f:DropDownList>
|
||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="检查日期" ID="txtCheckDate" EnableEdit="false">
|
||
</f:DatePicker>
|
||
</Items>
|
||
</f:FormRow>
|
||
<f:FormRow ColumnWidths="35% 35% 30%">
|
||
<Items>
|
||
<f:DropDownList ID="drpPartInPersons" runat="server" Label="参检人员" EnableEdit="true" EnableMultiSelect="true"
|
||
ForceSelection="false" MaxLength="2000" EnableCheckBoxSelect="true"
|
||
AutoPostBack="true" OnSelectedIndexChanged="drpPartInPersons_SelectedIndexChanged">
|
||
</f:DropDownList>
|
||
<f:TextBox runat="server" ID="txtPartInPersonNames" MaxLength="1000" Label="补充人员" ></f:TextBox>
|
||
<f:Button ID="btnNew" Text="新增检查" Icon="Add" OnClick="btnAdd_Click" runat="server" MarginLeft="50px">
|
||
</f:Button>
|
||
<%-- <f:Button ID="btnDelete" Text="删除" Icon="Delete" EnablePostBack="false" runat="server">
|
||
</f:Button>--%>
|
||
</Items>
|
||
</f:FormRow>
|
||
<f:FormRow>
|
||
<Items>
|
||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="CheckSpecialDetailId"
|
||
DataKeyNames="CheckSpecialDetailId" ShowGridHeader="true" SortField="SortIndex" SortDirection="ASC" OnRowCommand="Grid1_RowCommand"
|
||
MinHeight="350px" AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true" OnPreDataBound="Grid1_PreDataBound"
|
||
EnableTextSelection="True" OnSort="Grid1_Sort">
|
||
<Columns>
|
||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||
TextAlign="Center" />
|
||
<f:RenderField Width="100px" ColumnID="CheckAreaName" DataField="CheckAreaName" SortField="CheckAreaName"
|
||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="单位工程">
|
||
<Editor>
|
||
<f:DropDownList ID="drpCheckArea" Required="true" runat="server" EnableEdit="true" ShowRedStar="true">
|
||
</f:DropDownList>
|
||
</Editor>
|
||
</f:RenderField>
|
||
<f:RenderField Width="150px" ColumnID="UnitName" DataField="UnitName"
|
||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="受检单位">
|
||
<Editor>
|
||
<f:DropDownList ID="drpWorkUnit" runat="server" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="drpWorkUnit_SelectedIndexChanged" >
|
||
</f:DropDownList>
|
||
</Editor>
|
||
</f:RenderField>
|
||
|
||
<f:RenderField Width="100px" ColumnID="HSEManage" DataField="HSEManage" SortField="HSEManage"
|
||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="HSE经理">
|
||
<Editor>
|
||
<f:DropDownList ID="drpHSE" Required="true" runat="server" EnableEdit="true" ShowRedStar="true">
|
||
</f:DropDownList>
|
||
</Editor>
|
||
</f:RenderField>
|
||
<f:RenderField Width="150px" ColumnID="Unqualified" DataField="Unqualified"
|
||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="问题描述">
|
||
<Editor>
|
||
<f:TextBox ID="txtUnqualified" runat="server" ShowRedStar="true">
|
||
</f:TextBox>
|
||
</Editor>
|
||
</f:RenderField>
|
||
<f:LinkButtonField Width="90px" HeaderText="问题图片" ConfirmTarget="Top" CommandName="attchUrl"
|
||
TextAlign="Center" ToolTip="上传" Text="上传" />
|
||
<f:RenderField Width="150px" ColumnID="CheckItemName" DataField="CheckItemName"
|
||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="问题类型">
|
||
<Editor>
|
||
<f:DropDownList ID="drpCheckItem" runat="server" EnableEdit="true" AutoPostBack="true"
|
||
OnSelectedIndexChanged="drpCheckItem_SelectedIndexChanged">
|
||
</f:DropDownList>
|
||
</Editor>
|
||
</f:RenderField>
|
||
<f:RenderField Width="150px" ColumnID="RiskLevel" DataField="RiskLevel"
|
||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="风险级别">
|
||
<Editor>
|
||
<f:DropDownList ID="drpRiskLevel" runat="server" EnableEdit="true" >
|
||
</f:DropDownList>
|
||
</Editor>
|
||
</f:RenderField>
|
||
<f:RenderField Width="80px" ColumnID="CompleteStatusName" DataField="CompleteStatusName"
|
||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="现场处理结果">
|
||
<Editor>
|
||
<f:DropDownList ID="drpCompleteStatus" Required="true" runat="server" EnableEdit="true" ShowRedStar="true">
|
||
<f:ListItem Text="待整改" Value="待整改" Selected="true"/>
|
||
<f:ListItem Text="已整改" Value="已整改"/>
|
||
</f:DropDownList>
|
||
</Editor>
|
||
</f:RenderField>
|
||
<f:RenderField Width="80px" ColumnID="RectifyOpinion" DataField="RectifyOpinion"
|
||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="处理方式">
|
||
<Editor>
|
||
<f:DropDownList ID="drpHandleWay" Required="true" runat="server" EnableEdit="true" ShowRedStar="true">
|
||
<f:ListItem Text="" Value="" Selected="true"/>
|
||
<f:ListItem Text="当场纠正" Value="当场纠正" />
|
||
<f:ListItem Text="口头警告" Value="口头警告"/>
|
||
</f:DropDownList>
|
||
</Editor>
|
||
</f:RenderField>
|
||
<f:RenderField Width="120px" ColumnID="LimitedDate" DataField="LimitedDate" FieldType="Date"
|
||
Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="限时日期">
|
||
<Editor>
|
||
<f:DatePicker ID="dpLimitedDate" Required="true" runat="server">
|
||
</f:DatePicker>
|
||
</Editor>
|
||
</f:RenderField>
|
||
|
||
<f:RenderField Width="150px" ColumnID="Suggestions" DataField="Suggestions"
|
||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="整改要求" ExpandUnusedSpace="true">
|
||
<Editor>
|
||
<f:TextBox ID="txtSuggest" runat="server" ShowRedStar="true">
|
||
</f:TextBox>
|
||
</Editor>
|
||
</f:RenderField>
|
||
|
||
<f:LinkButtonField ColumnID="Delete" Width="50px" EnablePostBack="false" Icon="Delete"
|
||
HeaderTextAlign="Center" HeaderText="删除" />
|
||
</Columns>
|
||
<Listeners>
|
||
<%-- <f:Listener Event="beforeedit" Handler="onGridBeforeEdit" />--%>
|
||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||
<%--<f:Listener Event="afteredit" Handler="onGridAfterEdit" />--%>
|
||
</Listeners>
|
||
</f:Grid>
|
||
</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:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
||
OnClick="btnSave_Click">
|
||
</f:Button>
|
||
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" ToolTip="提交" ValidateForms="SimpleForm1"
|
||
OnClick="btnSubmit_Click">
|
||
</f:Button>
|
||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
|
||
</f:Button>
|
||
</Items>
|
||
</f:Toolbar>
|
||
</Toolbars>
|
||
</f:Form>
|
||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||
Height="500px">
|
||
</f:Window>
|
||
</form>
|
||
<script src="../../Controls/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
|
||
|
||
<script type="text/javascript">
|
||
// 返回false,来阻止浏览器右键菜单
|
||
function onRowContextMenu(event, rowId) {
|
||
//F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||
return false;
|
||
}
|
||
|
||
<%-- var grid1ClientID = '<%= Grid1.ClientID %>';
|
||
var drpCompleteStatusClientID = '<%= drpCompleteStatus.ClientID %>';
|
||
var drpHandleStepClientID = '<%= drpHandleStep.ClientID %>';
|
||
var drpHiddenHazardTypeClientID = '<%= drpHiddenHazardType.ClientID %>';
|
||
|
||
function onGridAfterEdit(event, value, params) {
|
||
var grid = F(grid1ClientID);
|
||
var drpHiddenHazardType = F(drpHiddenHazardTypeClientID);
|
||
var drpHandleStep = F(drpHandleStepClientID);
|
||
if (params.columnId === 'CompleteStatusName') {
|
||
var CompleteStatusName = grid.getCellValue(params.rowId, 'CompleteStatusName');
|
||
if (CompleteStatusName.indexOf("待整改") != -1) {
|
||
drpHandleStep.enable();
|
||
drpHandleStep.setEmptyText('');
|
||
// drpHandleStep.loadData(shidata);
|
||
} else {
|
||
drpHandleStep.setEmptyText('');
|
||
drpHandleStep.disable();
|
||
drpHiddenHazardType.setEmptyText('1');
|
||
drpHiddenHazardType.disable();
|
||
}
|
||
}
|
||
|
||
if (params.columnId === 'HandleStepStr') {
|
||
var HandleStepStr = grid.getCellValue(params.rowId, 'HandleStepStr');
|
||
if (HandleStepStr.indexOf("整改通知单") != -1) {
|
||
drpHiddenHazardType.enable();
|
||
drpHiddenHazardType.setEmptyText('一般');
|
||
// drpHandleStep.loadData(shidata);
|
||
} else {
|
||
drpHiddenHazardType.setEmptyText('');
|
||
drpHiddenHazardType.disable();
|
||
}
|
||
}
|
||
}--%>
|
||
|
||
</script>
|
||
</body>
|
||
</html>
|