- <%@ page language="C#" autoeventwireup="true" inherits="SysManage_SysFName, App_Web_2n6c6zuv" theme="Normal" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <base target="_self" />
- <title>系统文件模版管理</title>
- <link href="style/gridStyle.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript">
- // function checkNumber()
- // {
- // if(!(((window.event.keyCode>=48)&&(window.event.keyCode<=57))||(window.event.keyCode==13)||(window.event.keyCode==46)||(window.event.keyCode==45)))
- // {
- // window.event.keyCode=0;
- // alert("对不起,只能输入数字!");
- // }
- // }
- function EnterTextBox()
- {
- if(event.keyCode == 13 && document.all["TB_Condition"].value != "")
- {
- event.keyCode = 9;
- event.returnValue = false;
- document.all["IB_Search"].click();
- }
- else if (event.keyCode == 13)
- {
- return false;
- }
- }
- function IMG1_onclick()
- {
- var SUrl ="SysFNameModify.aspx?strN=N"
- window.showModalDialog(SUrl,"新系统文件","dialogWidth=600px;scroll=no;help=no;dialogHeight=300px;");
- // window.location.reload();
- return false;
- }
- function FileBool()
- {
- // alert("aaaa");
- // alert(form1.FDirName.value);
- // return false;
- }
- </script>
- </head>
- <body>
- <form id="from1" runat="server">
- <div>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" >
- <tr>
- <td style="background-color:#f7f7f7; width:100%; height:25px;">
- <strong> 系统文件模版管理 </strong>
- </td>
- </tr>
- <tr>
- <td style="background-image:url(../images/toolbarbg.jpg); height:30px; font-size:smaller;">
- <%--<img alt="新增系统文件模版" style="cursor:hand;" src="../Images/add.gif" height="15" align="absmiddle" id="IMG1" onclick="return IMG1_onclick();"/>--%>
- <img alt="新增系统文件模版" style="cursor:hand;vertical-align:middle;" src="Image/new.gif" id="IMG1" onclick="return IMG1_onclick();"/>
- 上传文件模版:<input id="FDirName" type="file" runat="server" />
- <asp:ImageButton AlternateText="上传系统文件模版" ID ="IMG2" ImageAlign="absmiddle" ImageUrl="image/upload.gif" runat="server" OnClientClick="javascript:return FileBool();" OnClick="IMG2_Click" />
- <%--<img alt="上传系统文件模版" style="cursor:hand;" src="Image/upload.gif" align="absmiddle" id="IMG2" runat="server"/>--%>
- </td>
- </tr>
- <tr>
- <td valign="bottom">
- <asp:DropDownList ID="DDL_Condition" runat="server" Width="100px">
- <asp:ListItem Value="1" Text="编号"></asp:ListItem>
- <asp:ListItem Value="2" Text="名称"></asp:ListItem>
- </asp:DropDownList>
-
- <asp:TextBox ID="TB_Condition" runat="server" Width="250px"></asp:TextBox>
-
- <asp:ImageButton ID="IB_Search" ImageUrl="~/Images/Search.gif" ToolTip=" 查找" runat="server" OnClick="IB_Search_Click" />
- </td>
- </tr>
- <tr>
- <td style="width:100%; vertical-align:top;">
- <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="FID" BackColor="#CDCDCF" BorderWidth="0px"
- CssClass="Grid" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText"
- FooterStyle-CssClass="GridFooter" ShowFooter="true" CellSpacing="1" CellPadding="0"
- OnRowDataBound="GridView1_RowDataBound" Width="100%" OnRowEditing="GridView1_RowEditing"
- OnRowDeleting ="GridView1_RowDeleting"
- HeaderStyle-ForeColor="black" HeaderStyle-Font-Size="12px"
- AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" >
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" Height="25px" />
- <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
- <Columns>
- <asp:BoundField DataField="FID" HeaderText="文件编号" >
- <HeaderStyle Width="5%" />
- </asp:BoundField>
- <asp:BoundField DataField="FName" HeaderText="文件名称">
- <HeaderStyle Width="35%"/>
- </asp:BoundField>
- <asp:BoundField DataField="FDesc" HeaderText="文件描述">
- <HeaderStyle Width="30%"/>
- </asp:BoundField>
- <asp:TemplateField HeaderText=" 操 作" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center" >
- <ItemTemplate>
- <asp:ImageButton ID="IB_Edit" ToolTip="编辑" runat="server" CommandName="edit" ImageUrl="~/Images/s_edit.gif"/>
- <asp:ImageButton ToolTip="删除" ID="IB_Del" runat="server" CommandName="Delete" ImageUrl="~/Images/s-del.gif"
- OnClientClick='<%#"return confirm("确认删除项目名称为『"+Eval("FName")+"』的记录吗?");" %>'/>
- </ItemTemplate>
- <HeaderStyle Width="17%" HorizontalAlign="Center" BorderWidth="0px"/>
- <ItemStyle HorizontalAlign="Center" BorderWidth="0px"/>
- </asp:TemplateField>
- </Columns>
- <FooterStyle CssClass="GridFooter" />
- <PagerStyle CssClass="GridPage" />
- <PagerTemplate>
- <asp:Label ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>
- <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>
- <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>
- 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页
- <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
- MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
- <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" />
- </PagerTemplate>
- <EmptyDataTemplate>
- <center class="EmpetyData"> 系统提示:没有满足条件的用户数据。</center>
- </EmptyDataTemplate>
- <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
- <SelectedRowStyle CssClass="SelectedRow" />
- </asp:GridView>
- <input type="hidden" id="txt_confirm" name="txt_confirm" runat="server" />
- </td>
- </tr>
- </table>
- </div>
- </form>
- </body>
- </html>