代码拉取完成,页面将自动刷新
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
CodeBehind="Template_New.aspx.cs" Inherits="ControlExplorer.Template_New" %>
<%@ Register Assembly="FarPoint.Web.Spread"
Namespace="FarPoint.Web.Spread" TagPrefix="FarPoint" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" language="javascript">
</script>
<style type="text/css">
.style1
{
width: 375px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeaderTitle" runat="server">
创建模板
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<asp:Panel ID="pnlTemplate" runat="server" Width="650px" style="height: 620px; margin-left: auto; margin-right:auto;margin-top: 50px;
border-width: 1px; border-color: Black; border-style: solid; float: left;">
<table cellspacing="20px" width="100%">
<tr>
<td colspan="3" style="background-color: Teal; text-align: center; color: White;">
模板基本信息
</td>
</tr>
<tr>
<td style="width: 80px;text-align:right;">
名 称:
</td>
<td class="style1">
<asp:TextBox ID="txtName" runat="server" Width="100%" Height="25px"></asp:TextBox>
</td>
<td style="width: 80px;">
<span style="color: Red;">(必填)</span>
</td>
</tr>
<tr>
<td style="text-align:right;">
部 门:
</td>
<td class="style1">
<asp:DropDownList ID="lstDepartment" runat="server" Width="100%" Height="25px">
<asp:ListItem>工程部</asp:ListItem>
<asp:ListItem>人事部</asp:ListItem>
<asp:ListItem>财务部</asp:ListItem>
<asp:ListItem>管理部</asp:ListItem>
</asp:DropDownList>
</td>
<td>
<span style="color: Red;">(必填)</span>
</td>
</tr>
<tr>
<td style="text-align:right;vertical-align: top;">
类 型:
</td>
<td class="style1">
<asp:DropDownList ID="lstCategory" runat="server" Width="100%" Height="25px">
<asp:ListItem Value="固定行模板">固定行模板</asp:ListItem>
<asp:ListItem Value="动态行模板">动态行模板</asp:ListItem>
</asp:DropDownList>
<span style="font-size:0.8em;width:100%;display:block;">固定行模板:模板中一次只能录入一条记录。<a href="#" style="visibility:hidden;" >查看示意图</a></span>
<span style="font-size:0.8em;width:100%;display:block;">动态行模板:模板中一次可以录入多条记录。<a href="#" style="visibility:hidden;" >查看示意图</a></span>
</td>
<td style=" vertical-align: top;">
<span style="color: Red;vertical-align: top;">(必填)</span>
</td>
</tr>
<tr>
<td style="text-align:right;vertical-align: top;">
数 据:
</td>
<td class="style1">
<asp:RadioButton ID="rdoTemplate" runat="server" Text="模板内置" GroupName="DataSource"
AutoPostBack="True" OnCheckedChanged="rdoTemplate_CheckedChanged"
Checked="True" />
<asp:RadioButton ID="rdoSelect" runat="server" Text="选择数据" GroupName="DataSource"
AutoPostBack="True" OnCheckedChanged="rdoSelect_CheckedChanged" />
<asp:RadioButton ID="rdoNew" runat="server" Text="新建数据" GroupName="DataSource" AutoPostBack="True"
OnCheckedChanged="rdoNew_CheckedChanged" />
<asp:Label ID="lTemplate" runat="server" Text="将Excel文件中为单元格创建的名称作为字段名称。"
style="font-style:italic;font-size:0.8em;" Width="100%"></asp:Label>
<asp:DropDownList ID="lstDataSources" runat="server" Width="100%"
Height="25px" Visible="False">
<asp:ListItem Value="项目信息">项目信息</asp:ListItem>
<asp:ListItem Value="固定资产">固定资产</asp:ListItem>
</asp:DropDownList>
<asp:Label ID="lNew" runat="server" Text="在右侧的表格中添加数据字段。" Visible="False"
style="font-style:italic;font-size:0.8em;" Width="100%"></asp:Label>
</td>
<td style=" vertical-align: top;">
<span style="color: Red;">(必填)</span>
</td>
</tr>
<tr>
<td style="text-align:right;">
文 件:
</td>
<td class="style1">
<asp:FileUpload ID="fileTemplate" runat="server" Width="100%" Height="25px" />
</td>
<td>
<span style="color: Red;">(必填)</span>
</td>
</tr>
<tr>
<td style="text-align:right;vertical-align: top;">
说 明:
</td>
<td class="style1">
<asp:TextBox ID="txtDescription" runat="server" Width="100%" Height="60px" Wrap="true"
Rows="3" TextMode="MultiLine"></asp:TextBox>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td class="style1">
<asp:Button ID="btnUpload" runat="server" Text="保 存" UseSubmitBehavior="false" OnClick="btnUpload_Click"
Style="float:right; width: 200px; height: 30px; font-size: 1em; font-family: Microsoft YaHei;" />
</td>
<td>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="pnlDataFields" runat="server" Width="340px"
style="height: 620px; margin-left: auto; margin-right: 30px; margin-top: 50px;
border-width: 1px; border-color: Black; border-style: solid; float: right;"
Visible="False">
<table cellspacing="20px" width="100%">
<tr>
<td colspan="3" style="background-color: Teal; text-align: center; color: White;">
数据源字段
</td>
</tr>
<tr>
<td colspan="3">
<FarPoint:FpSpread ID="fpDataFields" runat="server" BorderColor="Black" BorderStyle="Solid"
BorderWidth="1px" Height="540px" Width="100%" ActiveSheetViewIndex="0" DesignString="<?xml version="1.0" encoding="utf-8"?><Spread />">
<TouchInfo SelectionGripperLineColor=""></TouchInfo>
<CommandBar BackColor="Control" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight"
ButtonShadowColor="ControlDark">
<Background BackgroundImageUrl="SPREADCLIENTPATH:/img/cbbg.gif"></Background>
</CommandBar>
<Sheets>
<FarPoint:SheetView SheetName="Sheet1" AllowPage="False" DesignString="<?xml version="1.0" encoding="utf-8"?><Sheet><Data><RowHeader class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="1" columns="1"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange></RowHeader><ColumnHeader class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="1" columns="2"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange><Cells><Cell row="0" column="0"><Data type="System.String">字段名</Data></Cell><Cell row="0" column="1"><Data type="System.String">描述</Data></Cell></Cells></ColumnHeader><DataArea class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="1" columns="2"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange><SheetName>Sheet1</SheetName></DataArea><SheetCorner class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="1" columns="1"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange></SheetCorner><ColumnFooter class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="1" columns="2"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange></ColumnFooter></Data><Presentation><ActiveSkin class="FarPoint.Web.Spread.SheetSkin"><Name>Classic</Name><BackColor>Empty</BackColor><CellBackColor>Empty</CellBackColor><CellForeColor>Empty</CellForeColor><CellSpacing>0</CellSpacing><GridLines>Both</GridLines><GridLineColor>LightGray</GridLineColor><HeaderBackColor>Control</HeaderBackColor><HeaderForeColor>Empty</HeaderForeColor><FlatColumnHeader>False</FlatColumnHeader><FooterBackColor>Empty</FooterBackColor><FooterForeColor>Empty</FooterForeColor><FlatColumnFooter>False</FlatColumnFooter><FlatRowHeader>False</FlatRowHeader><HeaderFontBold>False</HeaderFontBold><FooterFontBold>False</FooterFontBold><SelectionBackColor>LightBlue</SelectionBackColor><SelectionForeColor>Empty</SelectionForeColor><EvenRowBackColor>Empty</EvenRowBackColor><OddRowBackColor>Empty</OddRowBackColor><ShowColumnHeader>True</ShowColumnHeader><ShowColumnFooter>False</ShowColumnFooter><ShowRowHeader>True</ShowRowHeader><ColumnHeaderBackground class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</BackgroundImageUrl></ColumnHeaderBackground><SheetCornerBackground class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</BackgroundImageUrl></SheetCornerBackground><HeaderGrayAreaColor>Control</HeaderGrayAreaColor><FilterBarBackColor>Control</FilterBarBackColor><FilterBarForeColor>Empty</FilterBarForeColor><FilterBarHeaderBackColor>Control</FilterBarHeaderBackColor><FilterBarHeaderForeColor>Empty</FilterBarHeaderForeColor><ShowFilterBar>False</ShowFilterBar><FilterBarHeaderParent>RowHeaderDefault</FilterBarHeaderParent><FilterBarParent>FilterBarDefault</FilterBarParent></ActiveSkin><HeaderGrayAreaColor>Control</HeaderGrayAreaColor><AxisModels><Column class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" orientation="Horizontal" count="2"><Items><Item index="-1"><SortIndicator>Ascending</SortIndicator></Item><Item index="0"><Size>200</Size></Item><Item index="1"><Visible>False</Visible><Size>130</Size></Item></Items></Column><RowHeaderColumn class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" defaultSize="40" orientation="Horizontal" count="1"><Items><Item index="-1"><SortIndicator>Ascending</SortIndicator><Size>40</Size></Item></Items></RowHeaderColumn><ColumnHeaderRow class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" defaultSize="22" orientation="Vertical" count="1"><Items><Item index="-1"><Size>22</Size></Item></Items></ColumnHeaderRow><ColumnFooterRow class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" defaultSize="22" orientation="Vertical" count="1"><Items><Item index="-1"><Size>22</Size></Item></Items></ColumnFooterRow></AxisModels><StyleModels><RowHeader class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="1" Columns="1"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="RowHeaderDefault"><BackColor>Control</BackColor></DefaultStyle><ConditionalFormatCollections /></RowHeader><ColumnHeader class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="1" Columns="2"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="ColumnHeaderDefault"><BackColor>Control</BackColor><Background class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</BackgroundImageUrl></Background></DefaultStyle><ConditionalFormatCollections /></ColumnHeader><DataArea class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="1" Columns="2"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="DataAreaDefault" /><ConditionalFormatCollections /></DataArea><SheetCorner class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="1" Columns="1"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="CornerDefault"><BackColor>Control</BackColor><Border class="FarPoint.Web.Spread.Border" Size="1" Style="Solid"><Bottom Color="ControlDark" /><Left Size="0" /><Right Color="ControlDark" /><Top Size="0" /></Border><Background class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</BackgroundImageUrl></Background></DefaultStyle><ConditionalFormatCollections /></SheetCorner><ColumnFooter class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="1" Columns="2"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="ColumnFooterDefault"><BackColor>Control</BackColor></DefaultStyle><ConditionalFormatCollections /></ColumnFooter></StyleModels><MessageRowStyle class="FarPoint.Web.Spread.Appearance"><BackColor>LightYellow</BackColor><ForeColor>Red</ForeColor></MessageRowStyle><SheetCornerStyle class="FarPoint.Web.Spread.NamedStyle" Parent="CornerDefault"><BackColor>Control</BackColor><Border class="FarPoint.Web.Spread.Border" Size="1" Style="Solid"><Bottom Color="ControlDark" /><Left Size="0" /><Right Color="ControlDark" /><Top Size="0" /></Border><Background class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</BackgroundImageUrl></Background></SheetCornerStyle><AllowLoadOnDemand>false</AllowLoadOnDemand><LoadRowIncrement >10</LoadRowIncrement ><LoadInitRowCount >30</LoadInitRowCount ><LoadOnDemandMode >Standard</LoadOnDemandMode ><LoadOnDemandInterval >500</LoadOnDemandInterval ><LoadOnDemandTriggerMode >Timed</LoadOnDemandTriggerMode ><LoadOffsetFromBottom >0</LoadOffsetFromBottom ><AllowVirtualScrollPaging>false</AllowVirtualScrollPaging><VirtualScrollPagingPrevRowCount>0</VirtualScrollPagingPrevRowCount><VirtualScrollPagingFormatString>第{page}页 共{count}页</VirtualScrollPagingFormatString><TopRow>0</TopRow><PreviewRowStyle class="FarPoint.Web.Spread.PreviewRowInfo" /><FilterBar class="FarPoint.Web.Spread.FilterBar"><Height>22</Height><IndicatorCssClass /><Style class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="2" Columns="2"><AltRowCount>2</AltRowCount><RowStyles><RowStyle Index="0" class="FarPoint.Web.Spread.FilterBarStyleInfo" Parent="FilterBarDefault"><BackColor>Control</BackColor></RowStyle><RowStyle Index="1" class="FarPoint.Web.Spread.FilterBarStyleInfo" Parent="RowHeaderDefault"><BackColor>Control</BackColor></RowStyle></RowStyles><ConditionalFormatCollections /></Style></FilterBar></Presentation><Settings><Name>Sheet1</Name><Categories><Appearance><GridLineColor>#d0d7e5</GridLineColor><HeaderGrayAreaColor>Control</HeaderGrayAreaColor><SelectionBackColor>#eaecf5</SelectionBackColor><SelectionBorder class="FarPoint.Web.Spread.Border" /></Appearance><Behavior><EditTemplateColumnCount>2</EditTemplateColumnCount><AllowDelete>True</AllowDelete><AllowPage>False</AllowPage><AllowInsert>True</AllowInsert><GroupBarText>拖放一个列以便按照该列进行分组。</GroupBarText></Behavior><Layout><RowHeaderColumnCount>1</RowHeaderColumnCount><ColumnHeaderRowCount>1</ColumnHeaderRowCount><RowCount>1</RowCount><ColumnCount>2</ColumnCount></Layout></Categories><ActiveRow>0</ActiveRow><ActiveColumn>0</ActiveColumn><ColumnHeaderRowCount>1</ColumnHeaderRowCount><ColumnFooterRowCount>1</ColumnFooterRowCount><PrintInfo><Header /><Footer /><ZoomFactor>0</ZoomFactor><FirstPageNumber>1</FirstPageNumber><Orientation>Auto</Orientation><PrintType>All</PrintType><PageOrder>Auto</PageOrder><BestFitCols>False</BestFitCols><BestFitRows>False</BestFitRows><PageStart>-1</PageStart><PageEnd>-1</PageEnd><ColStart>-1</ColStart><ColEnd>-1</ColEnd><RowStart>-1</RowStart><RowEnd>-1</RowEnd><ShowBorder>True</ShowBorder><ShowGrid>True</ShowGrid><ShowColor>True</ShowColor><ShowColumnHeader>Inherit</ShowColumnHeader><ShowRowHeader>Inherit</ShowRowHeader><ShowFilterBar>Inherit</ShowFilterBar><ShowColumnFooter>Inherit</ShowColumnFooter><ShowColumnFooterEachPage>True</ShowColumnFooterEachPage><ShowTitle>True</ShowTitle><ShowSubtitle>True</ShowSubtitle><UseMax>True</UseMax><UseSmartPrint>False</UseSmartPrint><Opacity>255</Opacity><PrintNotes>None</PrintNotes><Centering>None</Centering><RepeatColStart>-1</RepeatColStart><RepeatColEnd>-1</RepeatColEnd><RepeatRowStart>-1</RepeatRowStart><RepeatRowEnd>-1</RepeatRowEnd><SmartPrintPagesTall>1</SmartPrintPagesTall><SmartPrintPagesWide>1</SmartPrintPagesWide><HeaderHeight>-1</HeaderHeight><FooterHeight>-1</FooterHeight></PrintInfo><TitleInfo class="FarPoint.Web.Spread.TitleInfo"><Style class="FarPoint.Web.Spread.StyleInfo"><BackColor>#e7eff7</BackColor><HorizontalAlign>Right</HorizontalAlign></Style></TitleInfo><WorksheetTemplate class="FarPoint.Web.Spread.WorksheetTemplate"><Layout><ColumnCount>4</ColumnCount></Layout><AxisModels><LayoutColumn class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" orientation="Horizontal" count="4"><Items><Item index="-1"><SortIndicator>Ascending</SortIndicator></Item></Items></LayoutColumn></AxisModels><Data><LayoutData class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="1" columns="4"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange><Cells><Cell row="0" column="0"><Data type="System.Int32">0</Data></Cell><Cell row="0" column="1"><Data type="System.Int32">1</Data></Cell><Cell row="0" column="2"><Data type="System.Int32">2</Data></Cell><Cell row="0" column="3"><Data type="System.Int32">3</Data></Cell></Cells></LayoutData></Data></WorksheetTemplate><LayoutMode>CellLayoutMode</LayoutMode><AutoFilterMode>FilterGadget</AutoFilterMode><CurrentPageIndex type="System.Int32">0</CurrentPageIndex></Settings></Sheet>"
AllowDelete="True" AllowInsert="True">
</FarPoint:SheetView>
</Sheets>
<TouchStrips>
<FarPoint:TouchStrip Area="Chart" NoTouchStrip="True">
</FarPoint:TouchStrip>
</TouchStrips>
<TitleInfo BackColor="#E7EFF7" ForeColor="" HorizontalAlign="Center" VerticalAlign="NotSet"
Font-Size="X-Large" Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</TitleInfo>
</FarPoint:FpSpread>
</td>
</tr>
</table>
</asp:Panel>
</asp:Content>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。