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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanWentiEdit.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanWentiEdit" %>
 
<!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;
                    document.getElementById('txtCompanyName').value = jobj.CompanyName;
                } 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" colspan="3">
                 <span id="spnwentifankui" runat="server" > </span>
            </td>
 </tr>
        <tr>
              <td align="right">
                责任人:
            </td>
            <td align="left">
                 <select keepdefaultstyle='true' id='selZerenren' runat="server" datatextfield='Name' datavaluefield='Keyid'>
                        </select>
            </td>
            <td align="right">
                追责罚款:
            </td>
            <td align="left">
                 <input id='txtFakuan'  runat="server"  maxlength="20" class="float req" />
            </td>
       
         
             </tr>
         <tr>
                <td class="contentLeft" colspan="4" style=" padding-left:300px;">
                    <asp:Button  ID="btnSaves"  runat="server" Text="保存"  OnClick="btnSave_ServerClick" />
                     
 
                    
 
              
                </td>
            </tr>
          
    </table>
   
     
     
    </form>
    
</body>
<script type="text/javascript" language="javascript">
    
     
  
</script>
</html>