SysFName.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:9k
源码类别:

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="SysManage_SysFName, App_Web_2n6c6zuv" theme="Normal" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <base target="_self" />
  6.     <title>系统文件模版管理</title>
  7.     <link href="style/gridStyle.css" rel="stylesheet" type="text/css" />
  8.     <script type="text/javascript">
  9. //        function checkNumber()
  10. //        {
  11. //            if(!(((window.event.keyCode>=48)&&(window.event.keyCode<=57))||(window.event.keyCode==13)||(window.event.keyCode==46)||(window.event.keyCode==45)))
  12. //            {
  13. //                  window.event.keyCode=0;
  14. //                  alert("对不起,只能输入数字!");
  15. //            }
  16. //        }
  17.         function EnterTextBox()
  18.         {
  19.              if(event.keyCode == 13 && document.all["TB_Condition"].value != "")
  20.              {
  21.                  event.keyCode = 9;
  22.                  event.returnValue = false;
  23.                  document.all["IB_Search"].click();
  24.              }
  25.              else if (event.keyCode == 13)
  26.              {
  27.                 return false;
  28.              }
  29.         }
  30.         function IMG1_onclick() 
  31.         {
  32.              var SUrl ="SysFNameModify.aspx?strN=N"
  33.              window.showModalDialog(SUrl,"新系统文件","dialogWidth=600px;scroll=no;help=no;dialogHeight=300px;");
  34.      //        window.location.reload();
  35.              return false;
  36.         }
  37.         
  38.         function FileBool()
  39.         {
  40. //            alert("aaaa");
  41. //            alert(form1.FDirName.value);
  42. //            return false;
  43.         }
  44.     </script>
  45. </head>
  46. <body>
  47.     <form id="from1" runat="server">
  48.     <div>
  49.         <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  50.            <tr>
  51.               <td style="background-color:#f7f7f7; width:100%; height:25px;">
  52.                  <strong>&nbsp;&nbsp;    系统文件模版管理   </strong>
  53.                </td>
  54.            </tr>
  55.            <tr>
  56.              <td style="background-image:url(../images/toolbarbg.jpg); height:30px; font-size:smaller;">
  57.                 <%--<img alt="新增系统文件模版" style="cursor:hand;" src="../Images/add.gif" height="15" align="absmiddle" id="IMG1" onclick="return IMG1_onclick();"/>--%>
  58.                 <img alt="新增系统文件模版" style="cursor:hand;vertical-align:middle;" src="Image/new.gif" id="IMG1" onclick="return IMG1_onclick();"/>
  59.                 上传文件模版:<input id="FDirName" type="file" runat="server" />
  60.                 <asp:ImageButton AlternateText="上传系统文件模版" ID ="IMG2" ImageAlign="absmiddle" ImageUrl="image/upload.gif" runat="server" OnClientClick="javascript:return FileBool();" OnClick="IMG2_Click" />
  61.                 <%--<img alt="上传系统文件模版" style="cursor:hand;" src="Image/upload.gif" align="absmiddle" id="IMG2" runat="server"/>--%>
  62.               </td> 
  63.            </tr>
  64.             <tr>
  65.              <td valign="bottom">
  66.                  <asp:DropDownList ID="DDL_Condition" runat="server" Width="100px">
  67.                     <asp:ListItem Value="1" Text="编号"></asp:ListItem>
  68.                     <asp:ListItem Value="2" Text="名称"></asp:ListItem>
  69.                  </asp:DropDownList>
  70.                  &nbsp;
  71.                  <asp:TextBox ID="TB_Condition" runat="server" Width="250px"></asp:TextBox>
  72.                  &nbsp;
  73.                 
  74.                  <asp:ImageButton ID="IB_Search"  ImageUrl="~/Images/Search.gif" ToolTip=" 查找"   runat="server" OnClick="IB_Search_Click" />
  75.              </td> 
  76.            </tr>
  77.            <tr>
  78.             <td style="width:100%; vertical-align:top;">
  79.               
  80.                  <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="FID" BackColor="#CDCDCF" BorderWidth="0px"
  81.                   CssClass="Grid"  HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  82.           FooterStyle-CssClass="GridFooter"  ShowFooter="true" CellSpacing="1" CellPadding="0"
  83.                   OnRowDataBound="GridView1_RowDataBound"  Width="100%" OnRowEditing="GridView1_RowEditing"
  84.                   OnRowDeleting ="GridView1_RowDeleting"
  85.                   HeaderStyle-ForeColor="black" HeaderStyle-Font-Size="12px"
  86.                   AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" >
  87.                                
  88.                             <AlternatingRowStyle BackColor="#F0F0F0" />
  89.                             <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" Height="25px" />
  90.                             <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
  91.                                    <Columns>
  92.                                            
  93.                                              <asp:BoundField DataField="FID" HeaderText="文件编号" >
  94.                                                 <HeaderStyle Width="5%" />
  95.                                             </asp:BoundField>
  96.                                             <asp:BoundField DataField="FName" HeaderText="文件名称">
  97.                                                <HeaderStyle Width="35%"/>
  98.                                             </asp:BoundField>
  99.                                             <asp:BoundField DataField="FDesc" HeaderText="文件描述">
  100.                                                 <HeaderStyle Width="30%"/>
  101.                                             </asp:BoundField> 
  102.                                    
  103.                                             <asp:TemplateField HeaderText="   操 作" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center" >
  104.                                                 <ItemTemplate> &nbsp; &nbsp;
  105.                                                <asp:ImageButton ID="IB_Edit" ToolTip="编辑" runat="server" CommandName="edit" ImageUrl="~/Images/s_edit.gif"/> &nbsp; &nbsp;
  106.                                                <asp:ImageButton ToolTip="删除" ID="IB_Del" runat="server" CommandName="Delete" ImageUrl="~/Images/s-del.gif"
  107.                                                     OnClientClick='<%#"return confirm("确认删除项目名称为『"+Eval("FName")+"』的记录吗?");" %>'/>
  108.                                                 </ItemTemplate>
  109.                                                 <HeaderStyle Width="17%" HorizontalAlign="Center"  BorderWidth="0px"/>
  110.                                                 <ItemStyle HorizontalAlign="Center" BorderWidth="0px"/>
  111.                                             </asp:TemplateField>
  112.                                        </Columns>
  113.                                      <FooterStyle CssClass="GridFooter" />
  114.     <PagerStyle CssClass="GridPage" />
  115.                 <PagerTemplate>
  116.                     <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  117.                     <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  118.                     <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  119.                     <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  120.                     <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  121.                     <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  122.                     转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  123.                     <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  124.                      MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  125.                     <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  126.                 </PagerTemplate>
  127.      
  128.                        <EmptyDataTemplate>
  129.                          <center class="EmpetyData"> 系统提示:没有满足条件的用户数据。</center>
  130.                        </EmptyDataTemplate>
  131.                  <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
  132.                  <SelectedRowStyle CssClass="SelectedRow" />
  133.                 </asp:GridView>
  134.                
  135.                 <input type="hidden" id="txt_confirm" name="txt_confirm"   runat="server" />
  136.             </td>
  137.            </tr>
  138.            
  139.         </table>
  140.     </div>
  141.         
  142.     </form>
  143. </body>
  144. </html>