zoukankan      html  css  js  c++  java
  • Repeater 添加按钮选择一条数据

     protected void btnUpdate_Click(object sender, EventArgs e)
        {
            Response.Redirect("loan_After_ding_ShowList.aspx?loan_id=" + hiddSelectId.Value);
        }
    
      1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Overdue_LoanList.aspx.cs"
      2     Inherits="Overdue_LoanList" %>
      3 
      4 <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
      5 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      6 <html xmlns="http://www.w3.org/1999/xhtml">
      7 <head runat="server">
      8     <title>逾期用户列表</title>
      9     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     10     <link rel="stylesheet" href="css/global.css" type="text/css" />
     11     <script src="js/jquery.js" type="text/javascript"></script>
     12     <script src="js/global.js" type="text/javascript"></script>
     13     <script type="text/javascript">
     14         $(function () {
     15             $("#gvApplyPer tr").not(0).click(function () {
     16                 $(this).find("input[type='radio']").select();
     17                 $("#hiddSelectId").val($(this).find("input[type='radio']").val());
     18             });
     19         });
     20         function IsSelect() {
     21             if ($('#hiddSelectId').val() == '') {
     22                 alert('请选择一笔贷款');
     23                 return false;
     24             }
     25             else {
     26                 return true;
     27             }
     28         }
     29     </script>
     30 </head>
     31 <body>
     32     <form id="form1" runat="server">
     33     <div>
     34         <table>
     35             <tr align="center";>
     36                 <th colspan="5" style="text-align: center; font-size: 16px;">
     37                     逾期用户列表
     38                 </th>
     39             </tr>
     40             <tr align="center";>
     41                 <td>
     42                     &nbsp;
     43                 </td>
     44                 <td colspan="2">
     45                     客户名称:<asp:TextBox ID="txtkey" runat="server"></asp:TextBox>
     46                 </td>
     47                 <%--<td>
     48                     业务品种:<asp:DropDownList ID="ddltype" runat="server">
     49                     </asp:DropDownList>
     50                 </td>--%>
     51                 <td>
     52                     <asp:Button ID="btnSearch" runat="server" Text="查找" OnClick="btnSearch_Click" />
     53                 </td>
     54                 <td>
     55                     &nbsp;
     56                 </td>
     57             </tr>
     58         </table>
     59     </div>
     60     <div style="padding: 5px 2px;">
     61         <asp:HiddenField ID="hiddSelectId" ClientIDMode="Static" runat="server" />
     62         <table cellspacing="0" rules="all" border="0" id="gvApplyPer" style="border- 0px;
     63             border-collapse: collapse;">
     64             <tr align="center";>
     65                <th scope="col">
     66                     操作
     67                 </th>
     68                 <th scope="col">
     69                     贷款编号
     70                 </th>
     71                 <th scope="col">
     72                     客户名称
     73                 </th>
     74             
     75                 <th scope="col">
     76                     客户经理
     77                 </th>
     78                 <th scope="col">
     79                     审查经理
     80                 </th>
     81                 <th scope="col">
     82                    逾期天数
     83                 </th>
     84                 <th scope="col">
     85                     本金
     86                 </th>
     87                 <th scope="col">
     88                     利息
     89                 </th>
     90                 <th scope="col">
     91                     罚息
     92                 </th>
     93                 
     94             </tr>
     95             <asp:Repeater ID="rptDingList" runat="server" >
     96                
     97                 <ItemTemplate>
     98                      <tr align="center";>
     99                         <td>
    100                             <input id="SelNo<%# Eval("loan_id") %>" name="selNo" value="<%# Eval("loan_id") %>"
    101                                 type="radio" />
    102                              <%# Container.ItemIndex + 1 + (this.AspNetPager1.CurrentPageIndex -1)*this.AspNetPager1.PageSize %>
    103                         </td>
    104                         <td>
    105                             <%# Eval("loan_no") %>
    106                         </td>
    107                         <td>
    108                             <%# GetCustName(Eval("loan_cust_id").ToString())%>
    109                         </td>
    110                        
    111                         <td>
    112                             <%# GetEmpName(Eval("pro_trancting").ToString())%>
    113                         </td>
    114                          <td>
    115                         <%#GetCheckManager(Eval("loan_cust_id").ToString())%>
    116                         </td>
    117                        <td>
    118                             <%# YuQiNumber(Eval("loan_yuqi_date").ToString())%>
    119                         </td>
    120                        
    121                         <td>
    122                             <%# Eval("loan_apply_money")%>
    123                         </td>
    124                         <td>
    125                             <%# LiXi(Eval("loan_id").ToString())%>
    126                         </td>
    127                        <td>
    128                             <%# FaXi(Eval("loan_id").ToString())%>
    129                         </td>
    130                     </tr>
    131                 </ItemTemplate>
    132                 <FooterTemplate>
    133                     <%-- <asp:Label ID="lblEmpty" Text="暂无数据" runat="server"  Visible='<%#bool.Parse((Repeater.Items.Count==0).ToString())%>'></asp:Label> --%>
    134                 </FooterTemplate>
    135             </asp:Repeater>
    136         </table>
    137         <div>
    138             <table>
    139                 <tr align="center">
    140                     <td style=" 150px;" runat="server" id="btnManeger" >
    141                         
    142                         
    143                             <asp:Button ID="btnApply" runat="server" Text="申请" 
    144                             OnClientClick="return IsSelect()" Visible="false" onclick="btnApply_Click" />
    145                           <asp:Button ID="btnRatify" runat="server" Text="批准" 
    146                             OnClientClick="return IsSelect()" Visible="false" onclick="btnRatify_Click" />
    147                            <asp:Button ID="btnRefuse" runat="server" Text="拒绝" 
    148                             OnClientClick="return IsSelect()" Visible="false" onclick="btnRefuse_Click" />
    149                           
    150 
    151                     </td>
    152                     <td>
    153                         <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
    154                             runat="server" OnPageChanged="AspNetPager1_PageChanged" FirstPageText="首页" LastPageText="尾页"
    155                             NextPageText="下一页" PrevPageText="上一页" PageSize="20" CustomInfoHTML="共%PageCount%页,总%RecordCount%条,当前为第%CurrentPageIndex%页,每页%PageSize%条"
    156                             AlwaysShow="true" ShowCustomInfoSection="Left" NumericButtonCount="5">
    157                         </webdiyer:AspNetPager>
    158                     </td>
    159                 </tr>
    160             </table>
    161         </div>
    162     </div>
    163     </form>
    164 </body>
    165 </html>
  • 相关阅读:
    2020年. NET Core面试题
    java Context namespace element 'component-scan' and its parser class ComponentScanBeanDefinitionParser are only available on JDK 1.5 and higher 解决方法
    vue 淡入淡出组件
    java http的get、post、post json参数的方法
    vue 父子组件通讯案例
    Vue 生产环境解决跨域问题
    npm run ERR! code ELIFECYCLE
    Android Studio 生成apk 出现 :error_prone_annotations.jar (com.google.errorprone:error) 错误
    记忆解析者芜青【总集】
    LwIP应用开发笔记之十:LwIP带操作系统基本移植
  • 原文地址:https://www.cnblogs.com/SacredSX/p/3596361.html
Copyright © 2011-2022 走看看