Pārlūkot izejas kodu

bug:计划页面设置 IE显示不出来了

yuqian 8 gadi atpakaļ
vecāks
revīzija
6911a19f26

+ 80 - 72
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/callplanpageitems.aspx

3
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
 <html xmlns="http://www.w3.org/1999/xhtml">
4
 <html xmlns="http://www.w3.org/1999/xhtml">
5
 <head id="Head1" runat="server">
5
 <head id="Head1" runat="server">
6
+    <meta http-equiv="X-UA-Compatible" content="IE=8">
6
     <title>计划页面设置</title>
7
     <title>计划页面设置</title>
7
     <link href="/scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
8
     <link href="/scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
8
     <script src="/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
9
     <script src="/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
19
     <link href="/scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
20
     <link href="/scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
20
     <link href="/scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
21
     <link href="/scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
21
     <style type="text/css">
22
     <style type="text/css">
22
-        .l-toolbar
23
-        {
23
+        .l-toolbar {
24
             background: none;
24
             background: none;
25
             height: 23px;
25
             height: 23px;
26
             border: 0px solid #9CBAE7;
26
             border: 0px solid #9CBAE7;
27
             border-top: 0px solid #EFF7F7;
27
             border-top: 0px solid #EFF7F7;
28
         }
28
         }
29
-        .tools_box
30
-        {
29
+
30
+        .tools_box {
31
             border: 1px solid #D6D6D6;
31
             border: 1px solid #D6D6D6;
32
             border-bottom: 0px;
32
             border-bottom: 0px;
33
         }
33
         }
60
                 width: fwidth,
60
                 width: fwidth,
61
                 checkbox: true,
61
                 checkbox: true,
62
                 columns: [
62
                 columns: [
63
-                { display: '操作', width: '35', frozen: true, name: '_f_attributeid', render: function (rowdata, rowindex, value) {
64
-                    return "<img src='../scripts/ui/skins/icons/right.png' onclick='SelectInItem(\"" + rowdata._f_attributeid + "\");' style='width:20px;cursor:hand;' title='选入' />";
65
-                }
63
+                {
64
+                    display: '操作', width: '35', frozen: true, name: '_f_attributeid', render: function (rowdata, rowindex, value) {
65
+                        return "<img src='../scripts/ui/skins/icons/right.png' onclick='SelectInItem(\"" + rowdata._f_attributeid + "\");' style='width:20px;cursor:hand;' title='选入' />";
66
+                    }
66
                 },
67
                 },
67
                 { display: '属性名称', frozen: true, name: '_f_name', width: 70 },
68
                 { display: '属性名称', frozen: true, name: '_f_name', width: 70 },
68
-                { display: '长度', name: '_f_length', width: 60, render: function (rowdata, rowindex) {
69
-                    if (rowdata._f_length == 0) { return ''; }
70
-                    else if (rowdata._f_length == -1) { return '超长文本'; }
71
-                    else { return rowdata._f_length; }
72
-                }
69
+                {
70
+                    display: '长度', name: '_f_length', width: 60, render: function (rowdata, rowindex) {
71
+                        if (rowdata._f_length == 0) { return ''; }
72
+                        else if (rowdata._f_length == -1) { return '超长文本'; }
73
+                        else { return rowdata._f_length; }
74
+                    }
73
                 },
75
                 },
74
-                { display: '数据类型', name: '_f_dbtypename', width: 60, render: function (rowdata, rowindex) {
75
-                    if (rowdata._f_dbtypename == 'nvarchar') { return '文本'; }
76
-                    else if (rowdata._f_dbtypename == 'int') { return '整数'; }
77
-                    else if (rowdata._f_dbtypename == 'datetime') { return '日期'; }
78
-                    else { return rowdata._f_dbtypename; }
79
-                }
76
+                {
77
+                    display: '数据类型', name: '_f_dbtypename', width: 60, render: function (rowdata, rowindex) {
78
+                        if (rowdata._f_dbtypename == 'nvarchar') { return '文本'; }
79
+                        else if (rowdata._f_dbtypename == 'int') { return '整数'; }
80
+                        else if (rowdata._f_dbtypename == 'datetime') { return '日期'; }
81
+                        else { return rowdata._f_dbtypename; }
82
+                    }
80
                 },
83
                 },
81
                 { display: '数据字段', align: 'left', name: '_f_dbfieldlname', width: 100 }
84
                 { display: '数据字段', align: 'left', name: '_f_dbfieldlname', width: 100 }
82
                 ],
85
                 ],
85
                     { text: '选入', click: itemclick2, icon: 'rightall' }
88
                     { text: '选入', click: itemclick2, icon: 'rightall' }
86
                     ]
89
                     ]
87
                 },
90
                 },
88
-                url: 'ajax/callplanwebset.ashx?action=getitemlist&taskid=' + id + '&&dbtype='+dbtype, pageSize: 50, pageSizeOptions: [10, 20, 50], rownumbers: true,
89
-                
91
+                url: 'ajax/callplanwebset.ashx?action=getitemlist&taskid=' + id + '&&dbtype=' + dbtype, pageSize: 50, pageSizeOptions: [10, 20, 50], rownumbers: true,
92
+
90
             });
93
             });
91
             $("#pageloading").hide();
94
             $("#pageloading").hide();
92
         }
95
         }
104
         }
107
         }
105
         function LoadSelectList() {
108
         function LoadSelectList() {
106
             var id = document.getElementById("txtId").value;
109
             var id = document.getElementById("txtId").value;
107
-            var fwidth = $("#form1").width() * 0.5-20;
110
+            var fwidth = $("#form1").width() * 0.5 - 20;
108
             selectlist = $("#divSelectList").ligerGrid({
111
             selectlist = $("#divSelectList").ligerGrid({
109
                 height: 310,
112
                 height: 310,
110
                 width: fwidth,
113
                 width: fwidth,
113
                 onBeforeEdit: f_onBeforeEdit,
116
                 onBeforeEdit: f_onBeforeEdit,
114
                 onAfterEdit: f_onAfterEdit,
117
                 onAfterEdit: f_onAfterEdit,
115
                 columns: [
118
                 columns: [
116
-                { display: '操作', width: '35', name: '_f_id', render: function (rowdata, rowindex, value) {
117
-                    return "<img src='../scripts/ui/skins/icons/left.png' onclick='SelectOutItem(\"" + rowdata._f_id + "\");' style='width:20px;cursor:hand;' title='移除' />";
118
-                }
119
+                {
120
+                    display: '操作', width: '35', name: '_f_id', render: function (rowdata, rowindex, value) {
121
+                        return "<img src='../scripts/ui/skins/icons/left.png' onclick='SelectOutItem(\"" + rowdata._f_id + "\");' style='width:20px;cursor:hand;' title='移除' />";
122
+                    }
119
                 },
123
                 },
120
-                { display: '排序', width: '50', align: 'left', name: '_f_sort', render: function (rowdata, rowindex, value) {
121
-                    if (value > sort) {
122
-                        sort = value;
124
+                {
125
+                    display: '排序', width: '50', align: 'left', name: '_f_sort', render: function (rowdata, rowindex, value) {
126
+                        if (value > sort) {
127
+                            sort = value;
128
+                        }
129
+                        if (rowindex == 0)
130
+                            return "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img id='xy_" + rowindex + "' onclick='MoveItem(\"" + rowdata._f_id + "\",\"" + value + "\",\"1\");' src='../images/icon_desc.gif' title='下移' style='width:12px; cursor:hand;' />";
131
+                        else
132
+                            return "&nbsp;<img id='sy_" + rowindex + "' onclick='MoveItem(\"" + rowdata._f_id + "\",\"" + value + "\",\"-1\");' src='../images/icon_asc.gif' title='上移' style='width:12px; cursor:hand;' />&nbsp;&nbsp;<img id='xy_" + rowindex + "' onclick='MoveItem(\"" + rowdata._f_id + "\",\"" + value + "\",\"1\");' src='../images/icon_desc.gif' title='下移' style='width:12px; cursor:hand;' />";
123
                     }
133
                     }
124
-                    if (rowindex == 0)
125
-                        return "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img id='xy_" + rowindex + "' onclick='MoveItem(\"" + rowdata._f_id + "\",\"" + value + "\",\"1\");' src='../images/icon_desc.gif' title='下移' style='width:12px; cursor:hand;' />";
126
-                    else
127
-                        return "&nbsp;<img id='sy_" + rowindex + "' onclick='MoveItem(\"" + rowdata._f_id + "\",\"" + value + "\",\"-1\");' src='../images/icon_asc.gif' title='上移' style='width:12px; cursor:hand;' />&nbsp;&nbsp;<img id='xy_" + rowindex + "' onclick='MoveItem(\"" + rowdata._f_id + "\",\"" + value + "\",\"1\");' src='../images/icon_desc.gif' title='下移' style='width:12px; cursor:hand;' />";
128
-                }
129
                 },
134
                 },
130
                 { display: '属性名称', name: '_f_name', editor: { type: 'text' }, width: 70 },
135
                 { display: '属性名称', name: '_f_name', editor: { type: 'text' }, width: 70 },
131
-                { display: '长度', name: '_f_length', width: 60, render: function (rowdata, rowindex) {
132
-                    if (rowdata._f_length == 0) { return ''; }
133
-                    else if (rowdata._f_length == -1) { return '超长文本'; }
134
-                    else { return rowdata._f_length; }
135
-                }
136
+                {
137
+                    display: '长度', name: '_f_length', width: 60, render: function (rowdata, rowindex) {
138
+                        if (rowdata._f_length == 0) { return ''; }
139
+                        else if (rowdata._f_length == -1) { return '超长文本'; }
140
+                        else { return rowdata._f_length; }
141
+                    }
136
                 },
142
                 },
137
-                { display: '数据类型', name: '_f_dbtypename', width: 60, render: function (rowdata, rowindex) {
138
-                    if (rowdata._f_dbtypename == 'nvarchar') { return '文本'; }
139
-                    else if (rowdata._f_dbtypename == 'int') { return '整数'; }
140
-                    else if (rowdata._f_dbtypename == 'datetime') { return '日期'; }
141
-                    else { return rowdata._f_dbtypename; }
142
-                }
143
+                {
144
+                    display: '数据类型', name: '_f_dbtypename', width: 60, render: function (rowdata, rowindex) {
145
+                        if (rowdata._f_dbtypename == 'nvarchar') { return '文本'; }
146
+                        else if (rowdata._f_dbtypename == 'int') { return '整数'; }
147
+                        else if (rowdata._f_dbtypename == 'datetime') { return '日期'; }
148
+                        else { return rowdata._f_dbtypename; }
149
+                    }
143
                 },
150
                 },
144
                 { display: '数据字段', align: 'left', name: '_f_dbfieldlname', width: 100 }
151
                 { display: '数据字段', align: 'left', name: '_f_dbfieldlname', width: 100 }
145
                 ],
152
                 ],
188
                         dataType: "html",
195
                         dataType: "html",
189
                         success: function (res) {
196
                         success: function (res) {
190
                             if (res == "success") {
197
                             if (res == "success") {
191
-                            //LoadSelectList();
198
+                                //LoadSelectList();
192
                             } else {
199
                             } else {
193
                                 $.ligerDialog.error("修改选项失败");
200
                                 $.ligerDialog.error("修改选项失败");
194
                             }
201
                             }
200
             }
207
             }
201
             else {
208
             else {
202
                 $.ligerDialog.error("没有选择要修改的项");
209
                 $.ligerDialog.error("没有选择要修改的项");
203
-            }            
210
+            }
204
         }
211
         }
205
 
212
 
206
         //编辑前事件
213
         //编辑前事件
352
 </head>
359
 </head>
353
 <body>
360
 <body>
354
     <form id="form1" runat="server">
361
     <form id="form1" runat="server">
355
-    <asp:HiddenField ID="txtId" runat="server" Value="" />
356
-    <div id="pageloading">
357
-        数据加载中,请稍等...
358
-    </div>
359
-    <div id="trSelect" style="width: 99%; text-align: center;">
360
-        <div id="navtab1" style="width: 100%; height: 375px; border: 1px solid #D3D3d3;">
361
-            <div title="自定义页面设置" tabid="tab1">
362
-                <table id="tableMessage" cellpadding="3" cellspacing="3" border="0" style="width: 100%;">
363
-                    <tr>
364
-                        <td style="height: 30px; padding-left: 10px;" colspan="2" align="left">
365
-                            类型:<asp:DropDownList ID="dropDBType" runat="server" onchange="LoadItemsList();"
362
+        <asp:HiddenField ID="txtId" runat="server" Value="" />
363
+        <div id="pageloading">
364
+            数据加载中,请稍等...
365
+   
366
+        </div>
367
+        <div id="trSelect" style="width: 99%; text-align: center;">
368
+            <div id="navtab1" style="width: 100%; height: 375px; border: 1px solid #D3D3d3;">
369
+                <div title="自定义页面设置" tabid="tab1">
370
+                    <table id="tableMessage" cellpadding="3" cellspacing="3" border="0" style="width: 100%;">
371
+                        <tr>
372
+                            <td style="height: 30px; padding-left: 10px;" colspan="2" align="left">类型:<asp:DropDownList ID="dropDBType" runat="server" onchange="LoadItemsList();"
366
                                 CssClass="selectBox" Width="80px">
373
                                 CssClass="selectBox" Width="80px">
367
                                 <asp:ListItem Value="" Text="所有类型"></asp:ListItem>
374
                                 <asp:ListItem Value="" Text="所有类型"></asp:ListItem>
368
                                 <asp:ListItem Value="nvarchar" Text="文本"></asp:ListItem>
375
                                 <asp:ListItem Value="nvarchar" Text="文本"></asp:ListItem>
369
                                 <asp:ListItem Value="int" Text="整数"></asp:ListItem>
376
                                 <asp:ListItem Value="int" Text="整数"></asp:ListItem>
370
                                 <asp:ListItem Value="datetime" Text="日期"></asp:ListItem>
377
                                 <asp:ListItem Value="datetime" Text="日期"></asp:ListItem>
371
                             </asp:DropDownList>&nbsp;
378
                             </asp:DropDownList>&nbsp;
372
-                            <input id="btnSearch" type="button" value="搜 索" class="btnSearch" onclick="LoadItemsList();" />
373
-                        </td>
374
-                    </tr>
375
-                    <tr>
376
-                        <td id="tdLeft" valign="top" style="width:50%; padding: 0px 2px 5px 2px;">
377
-                            <div id="divItemsList">
378
-                            </div>
379
-                        </td>
380
-                        <td valign="top" style="width:50%;padding: 0px 2px 5px 2px;">
381
-                            <div id="divSelectList">
382
-                            </div>
383
-                        </td>
384
-                    </tr>
385
-                </table>
379
+                           
380
+                                <input id="btnSearch" type="button" value="搜 索" class="btnSearch" onclick="LoadItemsList();" />
381
+                            </td>
382
+                        </tr>
383
+                        <tr>
384
+                            <td id="tdLeft" valign="top" style="width: 50%; padding: 0px 2px 5px 2px;">
385
+                                <div id="divItemsList">
386
+                                </div>
387
+                            </td>
388
+                            <td valign="top" style="width: 50%; padding: 0px 2px 5px 2px;">
389
+                                <div id="divSelectList">
390
+                                </div>
391
+                            </td>
392
+                        </tr>
393
+                    </table>
394
+                </div>
386
             </div>
395
             </div>
387
         </div>
396
         </div>
388
-    </div>
389
-    <br />
397
+        <br />
390
     </form>
398
     </form>
391
 </body>
399
 </body>
392
 </html>
400
 </html>

+ 2 - 2
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/callplanpageitems.aspx.designer.cs

2
 // <自动生成>
2
 // <自动生成>
3
 //     此代码由工具生成。
3
 //     此代码由工具生成。
4
 //
4
 //
5
-//     对此文件的更改可能导致不正确的行为,并且如果
6
-//     重新生成代码,这些更改将会丢失。 
5
+//     对此文件的更改可能导致不正确的行为,如果
6
+//     重新生成代码,则所做更改将丢失。
7
 // </自动生成>
7
 // </自动生成>
8
 //------------------------------------------------------------------------------
8
 //------------------------------------------------------------------------------
9
 
9