76 lines
4.0 KiB
Plaintext
76 lines
4.0 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DataImportControl.ascx.cs" Inherits="FineUIPro.Web.Controls.DataImportControl" %>
|
|
|
|
<f:Panel ID="Panel1" runat="server" BodyPadding="0px" ShowBorder="false"
|
|
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
|
<Items>
|
|
<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:HiddenField ID="hdFileName" runat="server">
|
|
</f:HiddenField>
|
|
<f:Button ID="btnAudit" Icon="ApplicationEdit" runat="server" ToolTip="审核" ValidateForms="SimpleForm1"
|
|
OnClick="btnAudit_Click">
|
|
</f:Button>
|
|
<f:Button ID="btnImport" Icon="ApplicationGet" runat="server" ToolTip="导入" ValidateForms="SimpleForm1"
|
|
OnClick="btnImport_Click">
|
|
</f:Button>
|
|
<f:Button ID="btnDownLoad" runat="server" Icon="ApplicationGo" ToolTip="下载模板" OnClick="btnDownLoad_Click" ConfirmText="确定下载导入模板吗?" >
|
|
</f:Button>
|
|
<f:HiddenField ID="hdCheckResult" runat="server">
|
|
</f:HiddenField>
|
|
</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="true" IsDatabasePaging="true" PageSize="10"
|
|
EnableRowDoubleClickEvent="true" AllowFilters="true" EnableTextSelection="True">
|
|
<Columns>
|
|
<f:TemplateField ColumnID="tfPageIndex" Width="55px" 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="错误行号">
|
|
</f:BoundField>
|
|
<f:BoundField DataField="Column" HeaderText="错误列">
|
|
</f:BoundField>
|
|
<f:BoundField DataField="Reason" HeaderText="错误类型">
|
|
</f:BoundField>
|
|
</Columns>
|
|
</f:Grid>
|
|
</Items>
|
|
</f:FormRow>
|
|
</Rows>
|
|
</f:Form>
|
|
|
|
</Items>
|
|
</f:Panel>
|
|
<script>
|
|
function showControlInfo(infoClientID) {
|
|
F.notify({
|
|
message: F(infoClientID).getValue(),
|
|
messageIcon: 'information',
|
|
target: '_top',
|
|
header: false,
|
|
displayMilliseconds: 2000,
|
|
positionX: 'center',
|
|
positionY: 'center'
|
|
});
|
|
}
|
|
</script>
|
|
|