default.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:8k
- <%@ page language="C#" autoeventwireup="true" inherits="MatCode_default, App_Web_1buc5c3n" 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">
- <link href="../style/gridstyle.css" rel="stylesheet" type="text/css" />
- <title>芜湖供电系统工程项目管理子系统</title>
- <script type="text/javascript">
-
- function modelesswin(url,mwidth,mheight)
- {
- if (document.all&&window.print)
- window.showModalDialog(url,"","help:0;dialogWidth:"+mwidth+"px;dialogHeight:"+mheight+"px;status=no,scoll=no;");
- window.location.replace(window.location.href);
- }
-
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
-
- <TABLE width="100%" border="0" cellPadding="0" cellSpacing="0" >
- <tr>
- <td bgColor="#f7f7f7" width="100%" height="25px">
- <strong> 物 资 代 码 管 理 </strong>
- </td>
- </tr>
- <tr>
- <td background="../../Images/toolbarbg.jpg" height="25">
- <img src="../../Images/add.gif" height="15" align="absmiddle">
-
- <a href="javascript: modelesswin('MatCodeAdd.aspx',500,300)">新建物资代码</a> <a href="javascript: modelesswin('MatCodeIn.aspx',650,400)">数据导入</a></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 width="100%" valign="top">
- <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" DataKeyNames="ID" OnRowDataBound="GridView1_RowDataBound" Width="100%"
- OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" CellSpacing="1" CellPadding="0" BackColor="#CDCDCF"
- BorderWidth="0px" CssClass="Grid" SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText"
- FooterStyle-CssClass="GridFooter" ShowFooter="True" OnPageIndexChanging="GridView1_PageIndexChanging" AllowPaging="True" AllowSorting="True"
- PageSize="10" OnSorting="GridView1_Sorting">
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle Height="25px" BackColor="#F9FAFC" CssClass="HeadingCellText" />
- <HeaderStyle Height="25px" BackColor="#DFDFDF" CssClass="GridHeader" />
- <Columns>
- <asp:BoundField DataField="MatCode" HeaderText="物资代码">
- <HeaderStyle Width="20%"/>
- </asp:BoundField>
- <asp:BoundField DataField="MatName" HeaderText="物资代码名称">
- <HeaderStyle Width="20%"/>
- </asp:BoundField>
- <asp:BoundField DataField="MatDecs" HeaderText="物资代码描述">
- <HeaderStyle Width="20%" />
- </asp:BoundField>
- <asp:TemplateField HeaderText="操 作">
- <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("MatCode")+"』的记录吗?");" %>'/>
- </ItemTemplate>
- <HeaderStyle Width="15%" HorizontalAlign="Center"/>
- <ItemStyle HorizontalAlign="Left" 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> 系统提示:请输入查询条件,也可以新增用户数据。</center>
- </EmptyDataTemplate>
- </asp:GridView>
-
- </td>
- </tr>
-
- </TABLE>
-
- </form>
- </body>
- </html>