85 lines
4.8 KiB
Plaintext
85 lines
4.8 KiB
Plaintext
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestTrainingIn.aspx.cs" Inherits="FineUIPro.Web.HSSE.EduTrain.TestTrainingIn" %>
|
|||
|
|
|
|||
|
|
<!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" />
|
|||
|
|
</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:Button ID="btnAudit" Icon="ApplicationEdit" runat="server" ToolTip="审核" ValidateForms="SimpleForm1"
|
|||
|
|
OnClick="btnAudit_Click">
|
|||
|
|
</f:Button>
|
|||
|
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
|
|||
|
|
OnClick="btnSave_Click">
|
|||
|
|
</f:Button>
|
|||
|
|
<f:Button ID="btnDownLoad" runat="server" Icon="ApplicationGo" ToolTip="下载模板" OnClick="btnDownLoad_Click">
|
|||
|
|
</f:Button>
|
|||
|
|
</Items>
|
|||
|
|
</f:Toolbar>
|
|||
|
|
</Toolbars>
|
|||
|
|
<Rows>
|
|||
|
|
<f:FormRow>
|
|||
|
|
<Items>
|
|||
|
|
<f:FileUpload runat="server" ID="fuAttachUrl" EmptyText="选择要导入的文件" Label="选择要导入的文件"
|
|||
|
|
LabelWidth="150px">
|
|||
|
|
</f:FileUpload>
|
|||
|
|
</Items>
|
|||
|
|
</f:FormRow>
|
|||
|
|
<f:FormRow>
|
|||
|
|
<Items>
|
|||
|
|
<f:Grid ID="gvErrorInfo" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="导入试题类型信息" EnableCollapse="true"
|
|||
|
|
runat="server" BoxFlex="1" AllowCellEditing="true" ClicksToEdit="2" AllowSorting="true"
|
|||
|
|
SortDirection="DESC" EnableColumnLines="true" ForceFit="true" AllowPaging="false" IsDatabasePaging="false" PageSize="10"
|
|||
|
|
EnableRowDoubleClickEvent="true" AllowFilters="true" EnableTextSelection="True" Height="400">
|
|||
|
|
<Columns>
|
|||
|
|
<f:TemplateField ColumnID="tfPageIndex" Width="40px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
|||
|
|
EnableLock="true" Locked="False">
|
|||
|
|
<ItemTemplate>
|
|||
|
|
<asp:Label ID="lblPageIndex" runat="server" Text='<%# gvErrorInfo.PageIndex * gvErrorInfo.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
|||
|
|
</ItemTemplate>
|
|||
|
|
</f:TemplateField>
|
|||
|
|
<f:BoundField DataField="Row" HeaderText="错误行号" Width="50px">
|
|||
|
|
</f:BoundField>
|
|||
|
|
<f:BoundField DataField="Column" HeaderText="错误列" Width="100px">
|
|||
|
|
</f:BoundField>
|
|||
|
|
<f:BoundField DataField="Reason" HeaderText="错误类型" MinWidth="220px">
|
|||
|
|
</f:BoundField>
|
|||
|
|
</Columns>
|
|||
|
|
</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="Label1" runat="server" Text="说明:1、导入模板为.xls后缀的EXCEL文件,黄色背景为必填项;
|
|||
|
|
2、对于导入信息中重复记录自动过滤插入一条记录;
|
|||
|
|
3、数据导入完成,成功后自动返回,如果有不成功数据页面弹出提示框,列表显示导入成功数据。">
|
|||
|
|
</f:Label>
|
|||
|
|
</Items>
|
|||
|
|
</f:FormRow>
|
|||
|
|
</Rows>
|
|||
|
|
</f:Form>
|
|||
|
|
<f:Window ID="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>
|
|||
|
|
</body>
|
|||
|
|
</html>
|