ChengDa_English/SGGL/FineUIPro.Web/Person/EduTrain/TrainRecordIn.aspx

101 lines
5.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TrainRecordIn.aspx.cs" Inherits="FineUIPro.Web.Person.EduTrain.TrainRecordIn" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><asp:Literal runat="server" Text="<%$ Resources:Lan,P_PersonSet_btnImport_ToolTip%>"/></title>
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" OnCustomEvent="PageManager1_CustomEvent" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnAudit" Icon="ApplicationEdit" runat="server" ToolTip="<%$ Resources:Lan,P_TrainRecordIn_btnAudit_ToolTip%>" ValidateForms="SimpleForm1"
OnClick="btnAudit_Click">
</f:Button>
<f:Button ID="btnDownLoad" runat="server" Icon="ApplicationGo" ToolTip="<%$ Resources:Lan,P_PersonPlanIn_btnDownLoad_ToolTip%>" OnClick="btnDownLoad_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" runat="server" Icon="SystemClose" MarginRight="10px">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Rows>
<f:FormRow>
<Items>
<f:FileUpload runat="server" ID="fuAttachUrl" EmptyText="<%$ Resources:Lan,P_PersonPlanIn_fuAttachUrl_EmptyText%>" Label="<%$ Resources:Lan,P_PersonPlanIn_fuAttachUrl_EmptyText%>"
LabelWidth="150px">
</f:FileUpload>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" runat="server"
EnableColumnLines="true" BoxFlex="1" DataKeyNames="TrainDetailId" AllowCellEditing="true"
ClicksToEdit="2" DataIDField="TrainDetailId" AllowSorting="true" SortField="UnitName,PersonName"
PageSize="50" Height="350px">
<Columns>
<f:TemplateField Width="55px" HeaderText="<%$ Resources:Lan,P_ShuntView_Grid1_RowNumberField_HeaderText%>">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="180px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName" ExpandUnusedSpace="true"
FieldType="String" HeaderText="<%$ Resources:Lan,P_PersonSetEdit_drpUnit_Label%>" TextAlign="Left" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="PersonName" DataField="PersonName" FieldType="String"
HeaderText="<%$ Resources:Lan,P_TrainRecordView_Grid1_Column_PersonName_HeaderText%>" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="CheckResult" DataField="CheckResult" FieldType="Boolean"
RendererFunction="renderCheckResult" HeaderText="<%$ Resources:Lan,P_TrainRecordView_Grid1_Column_CheckResult_HeaderText%>" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="CheckScore" DataField="CheckScore" FieldType="Double"
HeaderText="<%$ Resources:Lan,P_TrainRecordView_Grid1_RenderField_CheckScore_HeaderText%>" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="dataload" Handler="onGridDataLoad" />
</Listeners>
</f:Grid>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:HiddenField ID="hdFileName" runat="server">
</f:HiddenField>
<f:HiddenField ID="hdCheckResult" runat="server">
</f:HiddenField>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="lblBottom" runat="server" Text="说明1 导入模板为.xls后缀的EXCEL文件黑体字为必填项。2 对于导入信息中重复记录自动过滤插入一条记录。3 数据导入完成,成功后自动返回,如果有不成功数据页面弹出提示框,列表显示导入成功数据。">
</f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
<f:Window ID="Window1" Title="<%$ Resources:Lan,P_TrainRecordIn_Window1_Title%>" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="false"
CloseAction="HidePostBack" Width="900px" Height="600px">
</f:Window>
</form>
<script>
function renderCheckResult(value) {
return value == true ? '合格' : '不合格';
}
function onGridDataLoad(event) {
this.mergeColumns(['UnitName']);
}
</script>
</body>
</html>