1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InvoicingHuikuan.aspx.cs" Inherits="CY.WebForm.Pages.business.InvoicingHuikuan" %>
 
<!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">
    <title>订单收款</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
    <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
       
    </script>
</head>
<body style='margin: 0; padding: 0;'>
    <form id="form1" runat="server" onsubmit="if(false)return false;">
    
        <table class="table2" width="100%">
    
      
    <tr>
    <td colspan='2' class='col_third'>
        开票时间:
           <label runat="server" id="txtkaipiaoshijian"></label>
    </td>
    </tr>
          <%--  <tr>
        <td colspan='2' class='col_third' '>
              开票申请单号: 
            <label runat="server" id="txtSellerOrderId"></label>
           
        </td>
    </tr>--%>
    <tr>
        <td colspan='2' class='col_third' '>
            客户单位: 
            <label runat="server" id="txtBuyerName"></label>
           
        </td>
    </tr>
             <tr>
        <td colspan='2' class='col_third' >
           业务经理: 
            <label runat="server" id="txtBusinessManager"></label>
           
        </td>
    </tr>
             <tr>
        <td  class='col_third'  >
           订单数量: 
            <label runat="server" id="txtshuliang"></label>
           
        </td>
                   <td  class='col_third'  >
           金额: 
            <label runat="server" id="txtjine"></label>
           
        </td>
    </tr>
              <tr >
                    <td  class='col_third' colspan='2'  >
           已回款金额: 
            <label runat="server" id="txtYihuikuanjine"></label>
           
        </td>
                    </tr>
            <tr >
                    <td  class="contentLeft" colspan='2' >回款时间: <input type="text" id="txtStartTime" runat="server" class="date w150px" datefmt="yyyy-MM-dd"  /></td>
                    
                </tr>
              <tr >
                    <td  class="contentLeft" colspan='2' >回款金额: <input type="text" id="txtHuikuanJIne" runat="server" class="w150px"  maxlength='18' onblur="validateAmount(event)" placeholder="请输入增减金额" /></td>
                    
                </tr>
     <tr>
        <td class="contentLeft" colspan='2'>
            &#12288;&#12288;&#12288;&#12288;&#12288;<input type="button" value="确认" runat="server"  id='btnSubmit' />
            <input type="hidden"  id="ids" runat="server"  />
        </td>
    </tr>
    </table>
 
             <table class="tableStyle tableStyleXS" useclick="false" usecheckbox="true" sortmode="false" id="test_table">
                <thead>
                    <tr>
                        <th width="25">
                            编号
                        </th>
                          <th style="text-align: center;" width="70">
                           回款时间
                        </th>
                           <th style="text-align: center;" width="70">
                           回款金额
                        </th>
                        
                        
                       
                      
                    </tr>
                </thead>
                <tbody>
                    <asp:repeater id="rptData" runat="server">
                        <itemtemplate>
                            <tr>
                                 
                               <td>
                                    <%#Container.ItemIndex +1 /*(UCPager1.PageSize *( UCPager1.PageIndex-1)+1)*/%>
                                </td>
                                <td>
                                   <%#Eval("huikuanTime", "{0:yyyy-MM-dd}")%>
                                     
                                </td>
                                 <td style="text-align: center;">
                                        <%#Eval("Huikuanmoney", "{0:F}")%>
 
                                   
                                </td>
                                
                                 
                                 
                            </tr>
                        </itemtemplate>
                    </asp:repeater>
                </tbody>
            </table>
    </form>
</body>
     <script type="text/javascript" language="javascript">
         function validateAmount(event) {
             var input = event.target;
             var value = input.value;
             var regex =  /^[0-9]+(\.[0-9]{1,2})?$/;
 
             if (!regex.test(value)) {
                 // 输入无效,重置值并将焦点设回文本框
                 input.value = '0';
                 input.focus();
                 alert('请输入有效的金额,例如 123 或 45.67');
             }
         }
     </script>
</html>