|
|
@@ -3,6 +3,7 @@
|
|
3
|
3
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
4
|
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
5
|
5
|
<head id="Head1" runat="server">
|
|
|
6
|
+ <meta http-equiv="X-UA-Compatible" content="IE=8">
|
|
6
|
7
|
<title>计划页面设置</title>
|
|
7
|
8
|
<link href="/scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
|
|
8
|
9
|
<script src="/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
|
|
|
@@ -19,15 +20,14 @@
|
|
19
|
20
|
<link href="/scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
|
|
20
|
21
|
<link href="/scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
|
|
21
|
22
|
<style type="text/css">
|
|
22
|
|
- .l-toolbar
|
|
23
|
|
- {
|
|
|
23
|
+ .l-toolbar {
|
|
24
|
24
|
background: none;
|
|
25
|
25
|
height: 23px;
|
|
26
|
26
|
border: 0px solid #9CBAE7;
|
|
27
|
27
|
border-top: 0px solid #EFF7F7;
|
|
28
|
28
|
}
|
|
29
|
|
- .tools_box
|
|
30
|
|
- {
|
|
|
29
|
+
|
|
|
30
|
+ .tools_box {
|
|
31
|
31
|
border: 1px solid #D6D6D6;
|
|
32
|
32
|
border-bottom: 0px;
|
|
33
|
33
|
}
|
|
|
@@ -60,23 +60,26 @@
|
|
60
|
60
|
width: fwidth,
|
|
61
|
61
|
checkbox: true,
|
|
62
|
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
|
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
|
84
|
{ display: '数据字段', align: 'left', name: '_f_dbfieldlname', width: 100 }
|
|
82
|
85
|
],
|
|
|
@@ -85,8 +88,8 @@
|
|
85
|
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
|
94
|
$("#pageloading").hide();
|
|
92
|
95
|
}
|
|
|
@@ -104,7 +107,7 @@
|
|
104
|
107
|
}
|
|
105
|
108
|
function LoadSelectList() {
|
|
106
|
109
|
var id = document.getElementById("txtId").value;
|
|
107
|
|
- var fwidth = $("#form1").width() * 0.5-20;
|
|
|
110
|
+ var fwidth = $("#form1").width() * 0.5 - 20;
|
|
108
|
111
|
selectlist = $("#divSelectList").ligerGrid({
|
|
109
|
112
|
height: 310,
|
|
110
|
113
|
width: fwidth,
|
|
|
@@ -113,33 +116,37 @@
|
|
113
|
116
|
onBeforeEdit: f_onBeforeEdit,
|
|
114
|
117
|
onAfterEdit: f_onAfterEdit,
|
|
115
|
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 " <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 " <img id='sy_" + rowindex + "' onclick='MoveItem(\"" + rowdata._f_id + "\",\"" + value + "\",\"-1\");' src='../images/icon_asc.gif' title='上移' style='width:12px; cursor:hand;' /> <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 " <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 " <img id='sy_" + rowindex + "' onclick='MoveItem(\"" + rowdata._f_id + "\",\"" + value + "\",\"-1\");' src='../images/icon_asc.gif' title='上移' style='width:12px; cursor:hand;' /> <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
|
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
|
151
|
{ display: '数据字段', align: 'left', name: '_f_dbfieldlname', width: 100 }
|
|
145
|
152
|
],
|
|
|
@@ -188,7 +195,7 @@
|
|
188
|
195
|
dataType: "html",
|
|
189
|
196
|
success: function (res) {
|
|
190
|
197
|
if (res == "success") {
|
|
191
|
|
- //LoadSelectList();
|
|
|
198
|
+ //LoadSelectList();
|
|
192
|
199
|
} else {
|
|
193
|
200
|
$.ligerDialog.error("修改选项失败");
|
|
194
|
201
|
}
|
|
|
@@ -200,7 +207,7 @@
|
|
200
|
207
|
}
|
|
201
|
208
|
else {
|
|
202
|
209
|
$.ligerDialog.error("没有选择要修改的项");
|
|
203
|
|
- }
|
|
|
210
|
+ }
|
|
204
|
211
|
}
|
|
205
|
212
|
|
|
206
|
213
|
//编辑前事件
|
|
|
@@ -352,41 +359,42 @@
|
|
352
|
359
|
</head>
|
|
353
|
360
|
<body>
|
|
354
|
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
|
373
|
CssClass="selectBox" Width="80px">
|
|
367
|
374
|
<asp:ListItem Value="" Text="所有类型"></asp:ListItem>
|
|
368
|
375
|
<asp:ListItem Value="nvarchar" Text="文本"></asp:ListItem>
|
|
369
|
376
|
<asp:ListItem Value="int" Text="整数"></asp:ListItem>
|
|
370
|
377
|
<asp:ListItem Value="datetime" Text="日期"></asp:ListItem>
|
|
371
|
378
|
</asp:DropDownList>
|
|
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
|
395
|
</div>
|
|
387
|
396
|
</div>
|
|
388
|
|
- </div>
|
|
389
|
|
- <br />
|
|
|
397
|
+ <br />
|
|
390
|
398
|
</form>
|
|
391
|
399
|
</body>
|
|
392
|
400
|
</html>
|