username@email.com
2024-12-18 21a248a0cf76b6f05fcaac6f90975ef15ab607a1
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlanOrderEdit.aspx.cs" Inherits="CY.WebForm.Pages.financial.PlanOrderEdit" %>
 
<!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" />
 
     <script type="text/javascript">
 
 
         function changenum(index) {
              
             
 
             var itemNumarray = $("input[name='itemNumarray']:eq(" + index + ")").val();
             var price = $("input[name='price']:eq(" + index + ")").val();
 
             
 
             $("input[name='amount']:eq(" + index + ")").val((itemNumarray * price).toFixed(2));
 
 
             var zongjia = 0;
 
             for (v = 0; v < $("input[name='amount']").size(); v++) {
 
                 zongjia = zongjia + parseFloat($("input[name='amount']:eq(" + v + ")").val());
 
 
             }
 
 
 
             $('#OrderAmount').val(zongjia.toFixed(2));
 
 
 
 
         }
</script>
</head>
<body>
    <form id="form1" runat="server" class="form2">
         <div>
   <table class="tableStyle">
            <tr>
                <td class="ali03 ">
                    省:
                </td>
                <td>
                    <span runat="server" id="spnsheng"></span>
                     <input type="hidden" id="HideKeyid" runat="server" /> 
                </td>
                 <td class="ali03 ">
                    市:
                </td>
                <td>
                    <span runat="server" id="spnshi"></span>
                </td>
                 <td class="ali03 ">
                    区县:
                </td>
                <td>
                    <span runat="server" id="spnquxian"></span>
                </td>
                 <td class="ali03 ">
                    片区:
                </td>
                <td>
                   <input id="spnpianqu" name="spnpianqu" runat="server" type="text"  class='req' style="width:150px;" />  
                    
                </td>
            </tr>
            <tr>
               
                 <td class="ali03 ">
                    学校:
                </td>
                <td>
                  <%--  <span runat="server" id="spnshipAddress"></span>--%>
                       <input id="spnshipAddress" name="spnshipAddress" runat="server" type="text"  class='req' style="width:150px;"  />  
                </td>
                  <td class="ali03 ">
                    联系人:
                </td>
                <td>
                   <%-- <span runat="server" id="spnshipName"></span>--%>
                     <input id="spnshipName" name="spnshipName" runat="server" type="text"  class='req' style="width:150px;"  />  
                </td>
                 <td class="ali03 ">
                    联系电话:
                </td>
                <td>
                   <%-- <span runat="server" id="spnshipMobile"></span>--%>
                     <input id="spnshipMobile" name="spnshipMobile" runat="server" type="text"  class='req' style="width:150px;"   />  
                </td>
                 <td class="ali03 ">
                    收货地址:
                </td>
                <td>
                   <%-- <span runat="server" id="spnshouhuoAddress"></span>--%>
                     <input id="spnshouhuoAddress" name="spnshouhuoAddress" runat="server" type="text"  class='req'  style="width:300px;" />  
                </td>
            </tr>
            <tr>
                <td class="ali03 ">
                    金额:
                </td>
                <td>
                  <input id="OrderAmount" name="OrderAmount" runat="server" type="text"  class='req'   readonly="readonly" />     
                </td>
            </tr>
        </table>
            
      
      
 
                <asp:Repeater ID="RepSubjeSetctList" runat="server">
                <HeaderTemplate>
                    <table class="tableStyle ali02" useclick="false" usecheckbox="true" sortmode="true">
                        <tr>
                     
                            <th>
                                 商品名称
                            </th>
                            <th>
                                单价(元)
                            </th>
                            <th>
                                 数量
                            </th>
                            <th>
                                 金额(元)
                            </th>
                             
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                       
                        <td>
                            <%#Eval("name")%> <%#Eval("specification")%>
                        </td>
                        <td>
                            <%#Eval("price")%> 
                             <input type="hidden" name="price" value="<%#Eval("price")%>">
                             <input type="hidden" name="id" value="<%#Eval("id")%>">
                        </td>
                       
                        <td>
                           <input name="itemNumarray"   type="text" min="0" max="99999999"   class='req positiveint' placeholder="请输入数量"   value="<%#Eval("nums")%>" onchange="changenum(<%#Container.ItemIndex %>);" />  
                        </td>
                        <td>
                           <input   name="amount" type="text" class='req' value=" <%#Eval("amount")%>" readonly="readonly" />
                        </td>
                           
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
    <table class="tableStyle">
        <tr>
           
            <td align="center" colspan="8">
                <p>
                    <asp:Button ID="btn_Submit" Text="提交" runat="server" OnClick="btn_Submit_Config" />
                </p>
            </td>
        </tr>
    </table>
             </div>
    </form>
</body>
</html>