2022-03-15 17:36:38 +08:00
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PunishNoticeAdd.aspx.cs" Inherits="FineUIPro.Web.HSSE.Check.PunishNoticeAdd" %>
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head runat="server">
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
2025-02-23 13:09:38 +08:00
|
|
|
<title><asp:Literal runat="server" Text="<%$ Resources:Lan,PunishNoticeEdit_PageTitle%>"/></title>
|
2022-03-15 17:36:38 +08:00
|
|
|
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<form id="form1" runat="server">
|
|
|
|
|
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1" />
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="<%$ Resources:Lan,PunishNoticeView_SimpleForm1_Title%>" AutoScroll="true"
|
2022-03-15 17:36:38 +08:00
|
|
|
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
|
|
|
|
<Rows>
|
|
|
|
|
<f:FormRow>
|
|
|
|
|
<Items>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:TextBox ID="txtPunishNoticeCode" runat="server" Label="<%$ Resources:Lan,ConstructSolution_ColumnID_ConstructSolutionCode_HeaderText%>" LabelAlign="Right"
|
2022-03-15 17:36:38 +08:00
|
|
|
MaxLength="50" LabelWidth="90px">
|
|
|
|
|
</f:TextBox>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:DatePicker ID="txtPunishNoticeDate" runat="server" Label="<%$ Resources:Lan,PunishNoticeView_txtPunishNoticeDate_Label%>" LabelAlign="Right"
|
2022-03-15 17:36:38 +08:00
|
|
|
EnableEdit="true" Required="true" ShowRedStar="true" LabelWidth="90px">
|
|
|
|
|
</f:DatePicker>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:DropDownList ID="drpUnitId" runat="server" Label="<%$ Resources:Lan,PunishNoticeView_txtUnitName_Label%>" LabelAlign="Right" EnableEdit="true" LabelWidth="90px"
|
2022-03-15 17:36:38 +08:00
|
|
|
Required="true" ShowRedStar="true" OnSelectedIndexChanged="drpUnitId_SelectedIndexChanged" AutoPostBack="true">
|
|
|
|
|
</f:DropDownList>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:DropDownList ID="drpPunishPersonId" runat="server" Label="<%$ Resources:Lan,PunishNoticeView_txtPunishPersonId_Label%>" LabelAlign="Right" EnableEdit="true" LabelWidth="90px">
|
2022-03-15 17:36:38 +08:00
|
|
|
</f:DropDownList>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
|
|
|
|
|
<f:FormRow Hidden="true">
|
|
|
|
|
<Items>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:HtmlEditor runat="server" Label="<%$ Resources:Lan,PunishNoticeView_txtFileContents_Label%>" ID="txtFileContents" ShowLabel="false"
|
2022-03-15 17:36:38 +08:00
|
|
|
Editor="UMEditor" BasePath="~/res/umeditor/" ToolbarSet="Full" Height="220" LabelAlign="Right">
|
|
|
|
|
</f:HtmlEditor>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
<f:FormRow>
|
|
|
|
|
<Items>
|
|
|
|
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" AllowCellEditing="true" ForceFit="true" EnableCollapse="true"
|
|
|
|
|
EnableColumnLines="true" EnableColumnMove="true" runat="server" BoxFlex="1" DataKeyNames="PunishNoticeItemId"
|
|
|
|
|
DataIDField="PunishNoticeItemId" AllowSorting="true" SortField="PunishNoticeItemId" SortDirection="ASC"
|
|
|
|
|
EnableTextSelection="True" Height="240px" EnableRowDoubleClickEvent="true" OnRowCommand="Grid1_RowCommand"
|
|
|
|
|
OnRowDataBound="Grid1_RowDataBound">
|
|
|
|
|
<Toolbars>
|
|
|
|
|
<f:Toolbar ID="toolAdd" Position="Top" ToolbarAlign="Right" runat="server">
|
|
|
|
|
<Items>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:Button ID="btnAdd" Icon="Add" runat="server" OnClick="btnAdd_Click" ToolTip="<%$ Resources:Lan,ConstructSolution_btnNew_ToolTip%>">
|
2022-03-15 17:36:38 +08:00
|
|
|
</f:Button>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:Toolbar>
|
|
|
|
|
</Toolbars>
|
|
|
|
|
<Columns>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:TemplateField ColumnID="tfNumber" Width="50px" HeaderText="<%$ Resources:Lan,ConstructSolution_tfNumber_HeaderText%>" HeaderTextAlign="Center"
|
2022-03-15 17:36:38 +08:00
|
|
|
TextAlign="Center">
|
|
|
|
|
<ItemTemplate>
|
|
|
|
|
<asp:Label ID="lblNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
|
|
|
|
</ItemTemplate>
|
|
|
|
|
</f:TemplateField>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:RenderField HeaderText="<%$ Resources:Lan,RectifyNoticesAdd_Grid1_Column_RectifyNoticesItemId_HeaderText%>" ColumnID="PunishNoticeItemId" DataField="PunishNoticeItemId"
|
2022-03-15 17:36:38 +08:00
|
|
|
SortField="PunishNoticeItemId" FieldType="String" HeaderTextAlign="Center" TextAlign="Center"
|
|
|
|
|
Hidden="true">
|
|
|
|
|
</f:RenderField>
|
|
|
|
|
<f:RenderField Width="300px" ColumnID="PunishContent" DataField="PunishContent" FieldType="string"
|
2025-02-23 13:09:38 +08:00
|
|
|
HeaderText="<%$ Resources:Lan,PunishNoticeView_Grid1_Column_PunishContent_HeaderText%>" ExpandUnusedSpace="true">
|
2022-03-15 17:36:38 +08:00
|
|
|
<Editor>
|
|
|
|
|
<f:TextBox ID="tWrongContent" runat="server" MaxLength="800" ShowRedStar="true" Required="true">
|
|
|
|
|
</f:TextBox>
|
|
|
|
|
</Editor>
|
|
|
|
|
</f:RenderField>
|
|
|
|
|
<f:RenderField Width="300px" ColumnID="PunishBasicItem" DataField="PunishBasicItem" FieldType="string"
|
2025-02-23 13:09:38 +08:00
|
|
|
HeaderText="<%$ Resources:Lan,PunishNoticeView_Grid1_Column_PunishBasicItem_HeaderText%>" ExpandUnusedSpace="true">
|
2022-03-15 17:36:38 +08:00
|
|
|
<Editor>
|
|
|
|
|
<f:TextBox ID="txtBasicItem" runat="server" MaxLength="800" ShowRedStar="true" Required="true">
|
|
|
|
|
</f:TextBox>
|
|
|
|
|
</Editor>
|
|
|
|
|
</f:RenderField>
|
|
|
|
|
<f:RenderField Width="100px" ColumnID="PunishMoney" DataField="PunishMoney" FieldType="string"
|
2025-02-23 13:09:38 +08:00
|
|
|
HeaderText="<%$ Resources:Lan,PunishNoticeView_Grid1_Column_PunishMoney_HeaderText%>">
|
2022-03-15 17:36:38 +08:00
|
|
|
<Editor>
|
|
|
|
|
<f:NumberBox runat="server" ID="txtMoney"
|
|
|
|
|
EnableBlurEvent="true" NoNegative="true" LabelWidth="90px">
|
|
|
|
|
</f:NumberBox>
|
|
|
|
|
</Editor>
|
|
|
|
|
</f:RenderField>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:LinkButtonField ID="del" ColumnID="del" HeaderText="<%$ Resources:Lan,ConstructSolution_MenuButton_btnMenuDelete_Text%>" Width="60px" CommandName="delete"
|
2022-03-15 17:36:38 +08:00
|
|
|
Icon="Delete" />
|
|
|
|
|
</Columns>
|
|
|
|
|
<Listeners>
|
|
|
|
|
<f:Listener Event="afteredit" Handler="onGridAfterEdit" />
|
|
|
|
|
<%--<f:Listener Event="dataload" Handler="onGridDataLoad" />--%>
|
|
|
|
|
</Listeners>
|
|
|
|
|
</f:Grid>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
<f:FormRow ColumnWidths="50% 20% 30%" CssStyle="margin-top:10px">
|
|
|
|
|
<Items>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:NumberBox runat="server" ID="txtPunishMoney" Label="<%$ Resources:Lan,PunishNoticeView_txtPunishMoney_Label%>" OnBlur="txtPunishMoney_Blur"
|
2022-03-15 17:36:38 +08:00
|
|
|
EnableBlurEvent="true" NoNegative="true" LabelWidth="90px">
|
|
|
|
|
</f:NumberBox>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:TextBox runat="server" ID="txtCurrency" Label="<%$ Resources:Lan,PunishNoticeView_txtCurrency_Label%>" MaxLength="50" LabelWidth="60px">
|
2022-03-15 17:36:38 +08:00
|
|
|
</f:TextBox>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:TextBox runat="server" ID="txtBig" Label="<%$ Resources:Lan,PunishNoticeView_txtBig_Label%>" LabelWidth="60px">
|
2022-03-15 17:36:38 +08:00
|
|
|
</f:TextBox>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
<f:FormRow runat="server">
|
|
|
|
|
<Items>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:DropDownList ID="drpSignPerson" runat="server" Label="<%$ Resources:Lan,PunishNoticeAdd_drpSignPerson_Label%>" LabelWidth="190px"
|
2022-03-15 17:36:38 +08:00
|
|
|
LabelAlign="Right" EnableEdit="true" ShowRedStar="true">
|
|
|
|
|
</f:DropDownList>
|
|
|
|
|
<f:Label runat="server"></f:Label>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
<f:FormRow>
|
|
|
|
|
<Items>
|
|
|
|
|
<f:Grid ID="gvFlowOperate" ShowBorder="true" ShowHeader="false" EnableCollapse="true" runat="server" DataIDField="FlowOperateId" AllowSorting="true" SortField="OperateTime" SortDirection="ASC" EnableTextSelection="True">
|
|
|
|
|
<Columns>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="<%$ Resources:Lan,ConstructSolution_tfNumber_HeaderText%>" HeaderTextAlign="Center"
|
2022-03-15 17:36:38 +08:00
|
|
|
TextAlign="Center">
|
|
|
|
|
<ItemTemplate>
|
|
|
|
|
<asp:Label ID="Label1" runat="server" Text='<%# gvFlowOperate.PageIndex * gvFlowOperate.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
|
|
|
|
</ItemTemplate>
|
|
|
|
|
</f:TemplateField>
|
|
|
|
|
<f:RenderField Width="250px" ColumnID="OperateName" DataField="OperateName"
|
2025-02-23 13:09:38 +08:00
|
|
|
FieldType="String" HeaderText="<%$ Resources:Lan,ApplyView_Grid1_Column_AuditFlowName_HeaderText%>" HeaderTextAlign="Center" TextAlign="Left">
|
2022-03-15 17:36:38 +08:00
|
|
|
</f:RenderField>
|
|
|
|
|
<f:RenderField Width="200px" ColumnID="UserName" DataField="UserName"
|
2025-02-23 13:09:38 +08:00
|
|
|
FieldType="String" HeaderText="<%$ Resources:Lan,RectifyNoticesRectify_gvFlowOperate_Column_UserName_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center">
|
2022-03-15 17:36:38 +08:00
|
|
|
</f:RenderField>
|
|
|
|
|
<f:RenderField Width="150px" ColumnID="Opinion" DataField="Opinion"
|
2025-02-23 13:09:38 +08:00
|
|
|
FieldType="string" HeaderText="<%$ Resources:Lan,ApplyView_Grid1_Column_Opinion_HeaderText%>" HeaderTextAlign="Center" TextAlign="Left">
|
2022-03-15 17:36:38 +08:00
|
|
|
</f:RenderField>
|
|
|
|
|
<f:RenderField Width="80px" ColumnID="IsAgree" DataField="IsAgree" FieldType="String"
|
2025-02-23 13:09:38 +08:00
|
|
|
HeaderText="<%$ Resources:Lan,RectifyNoticesView_gvFlowOperate_IsAgreeName_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center">
|
2022-03-15 17:36:38 +08:00
|
|
|
</f:RenderField>
|
|
|
|
|
<f:RenderField Width="160px" ColumnID="OperateTime" DataField="OperateTime"
|
2025-02-23 13:09:38 +08:00
|
|
|
FieldType="string" HeaderText="<%$ Resources:Lan,PersonUnitList_Grid_Column_InOutTime_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center">
|
2022-03-15 17:36:38 +08:00
|
|
|
</f:RenderField>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Columns>
|
|
|
|
|
</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>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:Button ID="btnPunishNoticeUrl" Text="<%$ Resources:Lan,PunishNoticeView_btnPunishNoticeUrl_Text%>" ToolTip="<%$ Resources:Lan,PunishNoticeView_btnPunishNoticeUrl_ToolTip%>" Icon="TableCell" runat="server"
|
2022-03-15 17:36:38 +08:00
|
|
|
OnClick="btnPunishNoticeUrl_Click" ValidateForms="SimpleForm1">
|
|
|
|
|
</f:Button>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:Button ID="btnAttachUrl" Text="<%$ Resources:Lan,PunishNoticeView_btnAttachUrl_Text%>" ToolTip="<%$ Resources:Lan,PunishNoticeView_btnAttachUrl_ToolTip%>" Icon="TableCell" runat="server"
|
2022-03-15 17:36:38 +08:00
|
|
|
OnClick="btnUploadResources_Click" ValidateForms="SimpleForm1">
|
|
|
|
|
</f:Button>
|
|
|
|
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
|
|
|
|
</f:ToolbarFill>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:Button ID="btnSave" Icon="<%$ Resources:Lan,CheckHolidayDetailEdit_btnSave_Icon%>" runat="server" ToolTip="<%$ Resources:Lan,PersonUnitRefresh_btnSave_ToolTip%>" ValidateForms="SimpleForm1"
|
2022-03-15 17:36:38 +08:00
|
|
|
OnClick="btnSave_Click">
|
|
|
|
|
</f:Button>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" ToolTip="<%$ Resources:Lan,MonthReportEdit_btnSubmit_ToolTip%>" ValidateForms="SimpleForm1"
|
2022-03-15 17:36:38 +08:00
|
|
|
OnClick="btnSubmit_Click">
|
|
|
|
|
</f:Button>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="<%$ Resources:Lan,ReadWriteCard_btnClose_ToolTip%>" runat="server" Icon="SystemClose">
|
2022-03-15 17:36:38 +08:00
|
|
|
</f:Button>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:Toolbar>
|
|
|
|
|
</Toolbars>
|
|
|
|
|
</f:Form>
|
2025-02-23 13:09:38 +08:00
|
|
|
<f:Window ID="WindowAtt" Title="<%$ Resources:Lan,ConstructSolution_WindowField_HeaderText%>" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
2022-03-15 17:36:38 +08:00
|
|
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
|
|
|
|
Height="500px">
|
|
|
|
|
</f:Window>
|
|
|
|
|
</form>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
// function updateSummary() {
|
|
|
|
|
// var grid1 = F.ui.Grid1, TotalMoney = 0;
|
|
|
|
|
// grid1.getRowEls().each(function (index, tr) {
|
|
|
|
|
// TotalMoney += grid1.getCellValue(tr, 'PunishMoney');
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// // 第三个参数 true,强制更新,不显示左上角的更改标识
|
|
|
|
|
// grid1.updateSummaryCellValue('PunishMoney', TotalMoney, true);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
//// 表格数据加载后,重现计算合计行(这样就不必要在删除行时更新合计行)
|
|
|
|
|
//function onGrid1DataLoad() {
|
|
|
|
|
// updateSummary();
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
function onGridAfterEdit(event, value, params) {
|
|
|
|
|
updateSummary();
|
|
|
|
|
}
|
|
|
|
|
function updateSummary() {
|
|
|
|
|
// 回发到后台更新
|
|
|
|
|
__doPostBack('', 'UPDATE_SUMMARY');
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|