|
|
@@ -9,7 +9,7 @@ var bootstrap = function ($, learun) { |
|
|
|
bind: function () { |
|
|
|
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { |
|
|
|
page.search(queryJson); |
|
|
|
}, 300, 400); |
|
|
|
}, 320, 400); |
|
|
|
$('#DeptNo').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
value: "deptno", |
|
|
@@ -44,28 +44,28 @@ var bootstrap = function ($, learun) { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjsj', |
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 AND Grade='" + Grades + "' order by classno desc" } |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' AND Grade='" + Grades + "' order by classno desc" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "1=1 AND order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjsj', |
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 order by classno desc" } |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' order by classno desc" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "1=1 AND order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@@ -81,32 +81,32 @@ var bootstrap = function ($, learun) { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjsj', |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { |
|
|
|
strWhere: "majorno='" + MajorNos + "' AND CheckMark=1 AND Grade='" + item.text + "' order by classno desc" |
|
|
|
strWhere: "majorno='" + MajorNos + "' AND Grade='" + item.text + "' order by classno desc" |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "1=1 AND order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjsj', |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { |
|
|
|
strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc" |
|
|
|
strWhere: "1=1 AND Grade='" + item.text + "' order by classno desc" |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "1=1 AND order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@@ -115,8 +115,8 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
$('#ClassNo').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "1=1 AND order by classno desc" }, |
|
|
|
value: "classno", |
|
|
|
text: "classname" |
|
|
|
}); |
|
|
@@ -213,7 +213,7 @@ var bootstrap = function ($, learun) { |
|
|
|
label: "班级", name: "ClassNo", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'allbjsj', |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'allbjqj', |
|
|
|
key: value, |
|
|
|
keyId: 'classno', |
|
|
|
callback: function (_data) { |
|
|
|