Repeater应用分页存储过程
2009-03-18 23:08
267 查看
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Hfqk_Manage.aspx.cs" Inherits="ess_bxyw_khda_Hfqk_Manage" %> <!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 id="Head1" runat="server"> <title>客户档案管理</title> <script type="text/javascript" language="javascript" > function selectAll(obj) { var theTable = obj.parentElement.parentElement.parentElement.parentElement; var i; var j = obj.parentElement.cellIndex; for(i=0;i<theTable.rows.length;i++) { var objCheckBox = theTable.rows[i].cells[j].firstChild; if(objCheckBox.checked!=null)objCheckBox.checked = obj.checked; } } </script> <style type="text/css"> body { width:760px; /*margin-left:2px;*/ margin-right:auto; margin-left:auto; margin-top:0; margin-bottom:1; text-align:center; font-size:9pt; font-family:宋体; background-color:#ECF5FF; } div { padding:0; margin:0; } div.gbColor { background-color:Gray; } select { font-size:10px; } span{ margin:0; padding:0} .verticalSpan{ vertical-align:20%} .SpanWidth { width:20px; } label.labelleft { margin-right:79px; } input { margin-left:expression((this.type=="text")?"5px":""); width:expression((this.type=="text")?"200px":""); font-family:宋体; font-size:9pt; } input[type="text"] { vertical-align:bottom; margin-left:5px; width:200px; } input[type="submit"] { background: #ddebff; color: #000; height: 19px; border: 1px outset #97C7EB; } li { margin-top:2px; margin-bottom:2px; list-style:none; height:20px; } ul{margin:0;padding:0;} ul.ulspan{ width:40px;float:left;} ul.ulTopBg{height:23px;background-color:#ECF8FF; margin-bottom:10px; padding-top:2px;} .TopGuid { background: url(../images/location_arrow.gif) #ECF8FF no-repeat left 60%; text-align: left; padding-left: 9px; padding-bottom:2px; padding-top:6px; } .TopDiv1{background-color:#D2E7FC; width:100%; height:1px;font-size:0} .TopDiv2{background-color:#97C7EB; width:100%;height:3px;font-size:0} .TopDiv3{background-color:#D2E7FC; width:100%; height:1px;font-size:0;} .input-button { background: #fff; color:#000; height: 19px; border:solid 1px #97C7EB; line-height:18px; filter:progid:DXImageTransform.Microsoft.Gradient(gradienttype=0, startcolorstr=#CBE1F7, endcolorstr=#F5F5F5); } .textbox{margin:0;} .InputClass { border:0; border-top-style:none; border-bottom-style:none; border-left-style:none; border-right-style:none; } .table { width:100%; vertical-align:middle; border-top:solid 1px black; border-left:solid 1px black; } .table td { border-right:solid 1px black; border-bottom:solid 1px black; line-height:20px; vertical-align:middle; } .table th { border-right:solid 1px black; border-bottom:solid 1px black; font-size:13px; background-color:#A6CBEF; } </style> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div class="TopDiv1"></div> <div class="TopGuid"> <asp:Label ID="Label1" runat="server" Text="保修业务>>专题报告管理"></asp:Label> </div> <div class="TopDiv2"></div> <div class="TopDiv3"></div> <div> <ul class="ulTopBg"> <li style="float: left;"><asp:Button ID="BtnAdd" CssClass="input-button" runat="server" Text="新 增" OnClientClick="window.open('Khda_List.aspx');return false;" /></li> <li style="float: left; margin-left: 8px"><asp:Button ID="BtnDel" CssClass="input-button" runat="server" Text="删 除" OnClick="BtnDel_Click" OnClientClick="return confirm('确实需要删除吗??')" /></li> <li style="float: left; margin-left: 8px"><asp:Button ID="BtnSelect" CssClass="input-button" runat="server" Text="查 询" OnClick="BtnSelect_Click" /></li> </ul> </div> <div> <div style="text-align:left;"> <%--<label style="margin-left:20px"><span class="verticalSpan">查询数据 </span><asp:TextBox ID="TbJddxh" Width="120" runat="server"></asp:TextBox></label>--%> <label style="margin-left:20px"><span class="verticalSpan">记账月度 </span></label> </div> <div style="overflow-x:auto;overflow-y:auto; height:440px; width:100%"> <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound" OnItemCommand="Repeater1_ItemCommand" OnItemCreated="Repeater1_ItemCreated"> <HeaderTemplate> <table cellspacing="0" style="width:170%; text-align:center" class="table"> <thead> <tr> <th style="width:3%;"><input id="checkAll" type="checkbox" onclick="selectAll(this)" /></th> <th style="width:7%;">编号</th> <th style="width:8%;">姓名</th> <th style="width:10%;">电话</th> <th style="width:19%;">车型</th> <th style="width:6%;">底盘号</th> <th style="width:5%;">购车方式</th> <th style="width:14%;">对公司产品满意度(A质量B价位C交货期)</th> <th style="width:14%;">对公司服务满意度(A售后保养服务B咨询及维护培训C备件供应)</th> <th style="width:14%;">对代理商满意度(A售后保养服务B咨询及维护培训C备件供应)</th> </tr> </thead> <tbody> </HeaderTemplate> <ItemTemplate> <tr onmouseover="if(this.style.backgroundColor!='#b9cddd')this.style.backgroundColor='#CEE3F8'" onmouseout="if(this.style.backgroundColor!='#b9cddd')this.style.backgroundColor='#ECF5FF'" onclick="var trs = this.parentNode.getElementsByTagName('tr');for( i=0;i<trs.length;i++ )trs[i].style.backgroundColor='#ECF5FF';this.style.backgroundColor='#b9cddd'"> <td> <asp:CheckBox ID="CbYxbz" runat="server" /> </td> <td> <asp:Label ID="LabLsh" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"lsh") %>'></asp:Label> <asp:Label ID="LabId" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"id") %>'></asp:Label> </td> <td><span><%# DataBinder.Eval(Container.DataItem,"khxm") %></span></td> <td><span><%# DataBinder.Eval(Container.DataItem,"khsj") %></span></td> <td><span><%# DataBinder.Eval(Container.DataItem,"cx") %></span></td> <td><span><%# DataBinder.Eval(Container.DataItem,"dph") %></span></td> <td style="text-align:left;"> <asp:RadioButtonList ID="Rbl_gcfs" runat="server" RepeatLayout="Flow"> <asp:ListItem Value="A">现款</asp:ListItem> <asp:ListItem Value="B">贷款</asp:ListItem> </asp:RadioButtonList> <asp:Label ID="Lab_gcfs" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"gcfs") %>'></asp:Label> </td> <td style="text-align:left;"> <span>A:</span><asp:RadioButtonList ID="Rbl_cpmy1" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem Value="A">很满意</asp:ListItem> <asp:ListItem Value="B">一般</asp:ListItem> <asp:ListItem Value="C">不满意</asp:ListItem> </asp:RadioButtonList> <br /><span>B:</span><asp:RadioButtonList ID="Rbl_cpmy2" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem Value="A">很满意</asp:ListItem> <asp:ListItem Value="B">一般</asp:ListItem> <asp:ListItem Value="C">不满意</asp:ListItem> </asp:RadioButtonList> <br /><span>C:</span><asp:RadioButtonList ID="Rbl_cpmy3" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem Value="A">很满意</asp:ListItem> <asp:ListItem Value="B">一般</asp:ListItem> <asp:ListItem Value="C">不满意</asp:ListItem> </asp:RadioButtonList> <asp:Label ID="Lab_cpmy1" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"cpmy1") %>'></asp:Label> <asp:Label ID="Lab_cpmy2" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"cpmy2") %>'></asp:Label> <asp:Label ID="Lab_cpmy3" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"cpmy3") %>'></asp:Label> </td> <td style="text-align:left;"> <span>A:</span><asp:RadioButtonList ID="Rbl_fwmy1" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem Value="A">很满意</asp:ListItem> <asp:ListItem Value="B">一般</asp:ListItem> <asp:ListItem Value="C">不满意</asp:ListItem> </asp:RadioButtonList> <br /><span>B:</span><asp:RadioButtonList ID="Rbl_fwmy2" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem Value="A">很满意</asp:ListItem> <asp:ListItem Value="B">一般</asp:ListItem> <asp:ListItem Value="C">不满意</asp:ListItem> </asp:RadioButtonList> <br /><span>C:</span><asp:RadioButtonList ID="Rbl_fwmy3" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem Value="A">很满意</asp:ListItem> <asp:ListItem Value="B">一般</asp:ListItem> <asp:ListItem Value="C">不满意</asp:ListItem> </asp:RadioButtonList> <asp:Label ID="Lab_fwmy1" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"fwmy1") %>'></asp:Label> <asp:Label ID="Lab_fwmy2" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"fwmy2") %>'></asp:Label> <asp:Label ID="Lab_fwmy3" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"fwmy3") %>'></asp:Label> </td> <td style="text-align:left;"> <span>A:</span><asp:RadioButtonList ID="Rbl_dlsmy1" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem Value="A">很满意</asp:ListItem> <asp:ListItem Value="B">一般</asp:ListItem> <asp:ListItem Value="C">不满意</asp:ListItem> </asp:RadioButtonList> <br /><span>B:</span><asp:RadioButtonList ID="Rbl_dlsmy2" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem Value="A">很满意</asp:ListItem> <asp:ListItem Value="B">一般</asp:ListItem> <asp:ListItem Value="C">不满意</asp:ListItem> </asp:RadioButtonList> <br /><span>C:</span><asp:RadioButtonList ID="Rbl_dlsmy3" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem Value="A">很满意</asp:ListItem> <asp:ListItem Value="B">一般</asp:ListItem> <asp:ListItem Value="C">不满意</asp:ListItem> </asp:RadioButtonList> <asp:Label ID="Lab_dlsmy1" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"dlsmy1") %>'></asp:Label> <asp:Label ID="Lab_dlsmy2" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"dlsmy2") %>'></asp:Label> <asp:Label ID="Lab_dlsmy3" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"dlsmy3") %>'></asp:Label> </td> </tr> </ItemTemplate> <FooterTemplate> </tbody> </table> </FooterTemplate> </asp:Repeater> </div> <div style="padding: 5px; background-color: #dedede"> <asp:LinkButton ID="Lb_Pre" runat="server" OnClick="Lb_Pre_Click">上一页</asp:LinkButton> <asp:LinkButton ID="Lb_Next" runat="server" OnClick="Lb_Next_Click">下一页</asp:LinkButton> <span>转到:</span><asp:TextBox ID="Tb_no" Width="20" runat="server"></asp:TextBox> <asp:Button ID="Btn_GoPage" runat="server" Text="Go" Width="20" OnClick="Btn_GoPage_Click" /> <span>当前页码:<%=ViewState["page"]%></span> <span>总页数:<%=Math.Ceiling(Convert.ToInt32(ViewState["total"])/5.0)%></span> <span>总记录数:<%=ViewState["total"]%></span> </div> </div> </form> </body> </html>
|
相关文章推荐
- SQL分页存储过程及其应用
- sqlserver 存储过程学习笔记(二) 在项目中的应用<多表分页>
- T-SQL基本语法应用----分页存储过程
- 分页存储过程---repeater分页
- Repeater分页(Oracle通用分页存储过程和AspNetPage结合)(原创)
- asp.net 调用 mysql 分页存储过程,repeater使用mysql分页存储过程,mysql 存储过程的注意事项
- C# MySql分页存储过程的应用
- C#方法 Repeater、webdiyer:AspNetPager分页、存储过程分页
- SQL Server 2005通用分页存储过程及多表联接应用
- 分页存储过程的应用简单示例随笔(附所有代码)
- 千万级分页存储过程结合Repeater+Aspnetpager7.2实现
- Sql Server 2005 新的分页存储过程的推荐写法
- 目前用到的两个分页存储过程代码
- 数据海量分页存储过程(4)
- 分页存储过程(二分处理)
- 高性能分页存储过程
- AspNetCommerce中的一个带分页和排序的搜索功能的存储过程
- 通用分页存储过程——节省你的时间,延长程序员的寿命!
- Oracle分页存储过程