60 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			60 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StandardDataIn.aspx.cs" Inherits="FineUIPro.Web.HSSE.PostTraining.StandardDataIn" %>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<!DOCTYPE html>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<html xmlns="http://www.w3.org/1999/xhtml">
							 | 
						||
| 
								 | 
							
								<head runat="server">
							 | 
						||
| 
								 | 
							
								    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
							 | 
						||
| 
								 | 
							
								    <title>导入</title>
							 | 
						||
| 
								 | 
							
								</head>
							 | 
						||
| 
								 | 
							
								<body>
							 | 
						||
| 
								 | 
							
								    <form id="form1" runat="server">
							 | 
						||
| 
								 | 
							
								        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" 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="Toolbar1"  Position="Top" ToolbarAlign="Right" runat="server">
							 | 
						||
| 
								 | 
							
								                    <Items>
							 | 
						||
| 
								 | 
							
								                        <f:FileUpload runat="server" ID="fuAttachUrl" EmptyText="请选择导入的Eexce文件" Label="选择文件"  LabelWidth="80px" Width="500px">
							 | 
						||
| 
								 | 
							
								                        </f:FileUpload>
							 | 
						||
| 
								 | 
							
								                        <f:HiddenField ID="hdFileName" runat="server"></f:HiddenField>
							 | 
						||
| 
								 | 
							
								                        <f:Label runat="server" ID="lb1" Text=""></f:Label>
							 | 
						||
| 
								 | 
							
								                        <f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
							 | 
						||
| 
								 | 
							
								                        <f:Button ID="btnImport" Icon="DoorIn" runat="server" Text="导入" ToolTip="数据导入" ValidateForms="SimpleForm1"
							 | 
						||
| 
								 | 
							
								                            OnClick="btnImport_Click">
							 | 
						||
| 
								 | 
							
								                        </f:Button>
							 | 
						||
| 
								 | 
							
								                        <f:Button ID="btnDownLoad" runat="server" Icon="ApplicationGo" Text="下载模板" ToolTip="下载模板" OnClick="btnDownLoad_Click">
							 | 
						||
| 
								 | 
							
								                        </f:Button>
							 | 
						||
| 
								 | 
							
								                    </Items>
							 | 
						||
| 
								 | 
							
								                </f:Toolbar>
							 | 
						||
| 
								 | 
							
								            </Toolbars>
							 | 
						||
| 
								 | 
							
								            <Rows>
							 | 
						||
| 
								 | 
							
								                <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="true" IsDatabasePaging="true" PageSize="10"
							 | 
						||
| 
								 | 
							
								                            EnableRowDoubleClickEvent="true" AllowFilters="true" EnableTextSelection="True">
							 | 
						||
| 
								 | 
							
								                            <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>
							 | 
						||
| 
								 | 
							
								            </Rows>
							 | 
						||
| 
								 | 
							
								        </f:Form>
							 | 
						||
| 
								 | 
							
								    </form>
							 | 
						||
| 
								 | 
							
								</body>
							 | 
						||
| 
								 | 
							
								</html>
							 |