LR-20210131IOQH\Administrator
2021-09-17 8d824926bbb3346eb1046b9f1ab8d95b6a60ba17
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanEdit.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanEdit" %>
 
<!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>
    <uc:CMSHead ID="CMSHead1" runat="server" />
    <!--前台页面start-->
    <link rel="stylesheet" type="text/css" href="../../Styles/base.css" />
    <link href="../../Styles/changes.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" />
    <!--前台页面end-->
    <script type="text/javascript" language="javascript">
        function ReBindClients() {
            $.ajax({
                url: "/Pages/business/OrderEdit.aspx",
                type: "POST",
                dataType: "html",
                data: { Target: "ReBindClients"},
                global: false,
                cache: false,
                async: false,
                success: function (data) {
                    $("#selBuyerId").html(data);
                }
            });
        }
        function custormerChange(sel) {
           
 
            CallServer({ Target: "GetCommunication", id: sel.value }, function (data, textStatus) {
                var jobj = false;
                try {
                    jobj = eval('[' + data + ']')[0];
                } catch (ex) {
                    global.DealDataException(ex); return;
                }
                if (jobj) {
                    document.getElementById('txtLianxiren').value = jobj.BusinessManagers;
                    document.getElementById('txtDizhi').value = jobj.Province + jobj.City + jobj.County + jobj.DetailedAddress ;
                    document.getElementById('txtDianhua').value = jobj.CompanyPhone;
                } else;
            });
        }
         
 
        
 
        //为Select新增过滤功能
        function SelectAddSearch() {
            $("select[SelInputHtml='True']").each(function (i, v) {
                $(this).unbind("blur");
                var old = $(this).html();
                var oldObject = $(this).clone();
                var sign = "selectS" + i;
                $(v).attr("sign", sign);
 
                var inputClass = "input_" + sign;
                var html = "<span style='margin-left:10px'>过滤:</span><input type='text' class='" + inputClass + "' style='width:80px;height:18px;line-height:18px;'/>";
                $(v).after(html);
                $("." + inputClass).blur(function () {
                    var nowval = $(this).val().trim();
                    var output = "";
                    if (nowval == "" || nowval == null) {
                        output = old;
                    } else {
                        output += "<option value=''>请选择</option>";
                        var valueArr = new Array();
                        oldObject.find("option").each(function (ii, vv) {
 
                            var value = $.trim($(vv).attr("value"));
                            var text = $.trim($(vv).text());
 
                            if (text.indexOf(nowval) >= 0)
                                valueArr.push(value + "|||" + text);
                        });
                        for (var ss in valueArr) {
                            var s = valueArr[ss];
                            if (s.split("|||").length == 2) {
                                var value1 = s.split("|||")[0];
                                var text1 = s.split("|||")[1];
                                output += "<option value='" + value1 + "'>" + text1 + "</option>";
                            }
                        }
                    }
                    $(v).html(output);
                });
            });
        }
 
        window.FastKeyDistinctived = true; //例外快捷键(不使用通用快捷键)
        var keyDownHook = new KeyBehaviorHook('keydown');
        keyDownHook.Regist(window.Keys.S, "ClickElement('btnSave')", window.WithKey.Ctrl); //Ctrl+s 保存
        keyDownHook.Regist(window.Keys.Enter, "ClickElement('btnSave')", window.WithKey.Ctrl); //Ctrl+Enter 保存
        keyDownHook.Regist(window.Keys.R, "ClickElement('btnReset')", window.WithKey.Ctrl); //Ctrl+R 重置
        keyDownHook.Regist(window.Keys.Q, "ClickElement('btnBackList')", window.WithKey.Ctrl); //Ctrl+Q 退出(Quit)
 
        $(function () {
            SelectAddSearch();
            keyDownHook.Binding();
            global.SetReqMsg();
             
        });
 
        
 
         
    </script>
   
</head>
<body style='padding: 0; margin: 0;'>
    <form id="form1" runat="server" style='padding: 0; margin: 0;' class='form2'>
   
    
    <table class="table2" id="tbBasic">
        <thead>
            <tr>
                <th colspan="8">
                    基本信息
                </th>
            </tr>
        </thead>
        <tr style=" height:1px;">
                <td style="border:none;width: 100px;">
                </td>
                <td style="border:none; width:300px;">
                </td>
                <td style="border:none;width: 100px;">
                </td>
                <td style="border:none;">
                </td>
                
            </tr>
      
        <tr>
            <td align="right">
                收货单位:
            </td>
            <td  align="left">
               
                <span id='spnCustormerControl'><select id='selBuyerId' runat="server" keepdefaultstyle='true' datavaluefield='MemberId' datatextfield='CompanyName' onchange='custormerChange(this)' class='Sreq' selinputhtml="True" sign="" style=" width:123px;"></select>
                    <%--<input type="button" value='新增' keepdefaultstyle='true' onclick="top.Dialog.open({ URL: '/Pages/business/CorporateClientsEdit.aspx', Title: '新增客户', Width: 900, Height: 680});" />--%>
                </span>
                
            </td>
            <td align="right">
                联系人:
            </td>
            <td align="left">
                 <input id='txtLianxiren'  runat="server"  maxlength="200" />
            </td>
        </tr>
        <tr>
            <td align="right">
                联系电话:
            </td>
            <td align="left">
                 <input id='txtDianhua' class='req' runat="server"  maxlength="200" />
            </td>
       
            <td align="right">
                收货地址:
            </td>
            <td align="left">
                <input id='txtDizhi' class='req' runat="server"  maxlength="200" style="width:300px;" />
            </td>
             </tr>
        <tr>
            <td align="right">
               送货时间:
            </td>
            <td align="left">
              <input id='txtDeliverTime' class='date req' runat="server" />
            </td>
            <td align="right">
              
            </td>
            <td align="left">
                
            </td>
            
        </tr>
    </table>
   
     
    <table class="table2">
        <tbody>
            
              
            <tr>
                <td style="width: 100px; text-align:right;">
                    送货备注:
                </td>
                <td style=" text-align:left;">
                    <textarea id="txtRemark" name="txtRemark" runat="server" style="width: 692px; height: 30px;"  maxlength="200"  ></textarea>
                </td>
            </tr>
            <tr>
                <td class="contentLeft" colspan="2" style=" padding-left:300px;">
                    <asp:Button  ID="btnSaves"  runat="server" Text="保存送货单"  OnClick="btnSave_ServerClick" />
                     
 
                    
 
              
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    &nbsp;
                </td>
            </tr>
        </tbody>
    </table>
    </form>
    
</body>
<script type="text/javascript" language="javascript">
    
     
  
</script>
</html>