@@ -18,41 +18,41 @@ var bootstrap = function ($, learun) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
$('#ItemId').lrDataSourceSelect({ code: 'DtRaceType', value: 'itemid', text: 'itemname' }); | |||
$('#MajorNo').lrDataSourceSelect({ | |||
code: 'CdDeptInfo', | |||
value: 'deptno', | |||
text: 'deptname', | |||
maxHeight: 200, | |||
select: function (item) { | |||
var DeptNo = $("#MajorNo").lrselectGet(); | |||
if (DeptNo != null && DeptNo != "" && DeptNo != undefined) { | |||
$('#ClassNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" }, | |||
value: "classno", | |||
text: "classname", | |||
allowSearch: false, | |||
maxHeight: 200, | |||
select: function (item) { | |||
var ClassNo = $("#ClassNo").lrselectGet(); | |||
if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
$('#StuNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, | |||
value: "stuid", | |||
text: "stuname", | |||
maxHeight: 200, | |||
allowSearch: true | |||
}); | |||
} | |||
} | |||
}); | |||
} else { | |||
$("#ClassNo").lrselect(); | |||
} | |||
} | |||
}); | |||
$("#ClassNo").lrselect(); | |||
//$('#MajorNo').lrDataSourceSelect({ | |||
// code: 'CdDeptInfo', | |||
// value: 'deptno', | |||
// text: 'deptname', | |||
// maxHeight: 200, | |||
// select: function (item) { | |||
// var DeptNo = $("#MajorNo").lrselectGet(); | |||
// if (DeptNo != null && DeptNo != "" && DeptNo != undefined) { | |||
// $('#ClassNo').lrselectRefresh({ | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
// param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" }, | |||
// value: "classno", | |||
// text: "classname", | |||
// allowSearch: false, | |||
// maxHeight: 200, | |||
// select: function (item) { | |||
// var ClassNo = $("#ClassNo").lrselectGet(); | |||
// if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
// $('#StuNo').lrselectRefresh({ | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
// param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, | |||
// value: "stuid", | |||
// text: "stuname", | |||
// maxHeight: 200, | |||
// allowSearch: true | |||
// }); | |||
// } | |||
// } | |||
// }); | |||
// } else { | |||
// $("#ClassNo").lrselect(); | |||
// } | |||
// } | |||
//}); | |||
//$("#ClassNo").lrselect(); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
@@ -60,17 +60,17 @@ var bootstrap = function ($, learun) { | |||
allowSearch: false, | |||
maxHeight: 200, | |||
select: function (item) { | |||
var ClassNo = $("#ClassNo").lrselectGet(); | |||
if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
$('#StuNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, | |||
value: "stuid", | |||
text: "stuname", | |||
maxHeight: 200, | |||
allowSearch: true | |||
}); | |||
} | |||
//var ClassNo = $("#ClassNo").lrselectGet(); | |||
//if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
// $('#StuNo').lrselectRefresh({ | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
// param: { strWhere: " 1=1 and classno in ('" + ClassNo + "')" }, | |||
// value: "stuid", | |||
// text: "stuname", | |||
// maxHeight: 200, | |||
// allowSearch: true | |||
// }); | |||
//} | |||
} | |||
}); | |||
} else { | |||
@@ -14,11 +14,11 @@ | |||
<div class="lr-form-item-title">竞赛类型</div> | |||
<div id="ItemId"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">专业</div> | |||
<div id="MajorNo"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">班级</div> | |||
<div id="ClassNo"></div> | |||
</div> | |||
@@ -35,17 +35,17 @@ var bootstrap = function ($, learun) { | |||
allowSearch: true, | |||
maxHeight: 200, | |||
select: function (item) { | |||
var ClassNo = $("#ClassNo").lrselectGet(); | |||
if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
$('#StuNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, | |||
value: "stuid", | |||
text: "stuname", | |||
maxHeight: 200, | |||
allowSearch: true | |||
}); | |||
} | |||
//var ClassNo = $("#ClassNo").lrselectGet(); | |||
//if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
// $('#StuNo').lrselectRefresh({ | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
// param: { strWhere: " 1=1 and classno in ('" + ClassNo + "')" }, | |||
// value: "stuid", | |||
// text: "stuname", | |||
// maxHeight: 200, | |||
// allowSearch: true | |||
// }); | |||
//} | |||
} | |||
}); | |||
} else { | |||
@@ -112,11 +112,12 @@ var bootstrap = function ($, learun) { | |||
label: "专业", name: "MajorNo", width: 200, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
key: value, | |||
keyId: 'majorno', | |||
keyId: 'deptno', | |||
callback: function (_data) { | |||
callback(_data['majorname']); | |||
console.log(_data); | |||
callback(_data['deptname']); | |||
} | |||
}); | |||
} | |||
@@ -18,41 +18,41 @@ var bootstrap = function ($, learun) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
$('#ItemId').lrDataSourceSelect({ code: 'DtRaceType', value: 'itemid', text: 'itemname' }); | |||
$('#MajorNo').lrDataSourceSelect({ | |||
code: 'CdDeptInfo', | |||
value: 'deptno', | |||
text: 'deptname', | |||
maxHeight: 200, | |||
select: function (item) { | |||
var DeptNo = $("#MajorNo").lrselectGet(); | |||
if (DeptNo != null && DeptNo != "" && DeptNo != undefined) { | |||
$('#ClassNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" }, | |||
value: "classno", | |||
text: "classname", | |||
allowSearch: false, | |||
maxHeight: 200, | |||
select: function (item) { | |||
var ClassNo = $("#ClassNo").lrselectGet(); | |||
if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
$('#StuNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, | |||
value: "stuid", | |||
text: "stuname", | |||
maxHeight: 200, | |||
allowSearch: true | |||
}); | |||
} | |||
} | |||
}); | |||
} else { | |||
$("#ClassNo").lrselect(); | |||
} | |||
} | |||
}); | |||
$("#ClassNo").lrselect(); | |||
//$('#MajorNo').lrDataSourceSelect({ | |||
// code: 'CdDeptInfo', | |||
// value: 'deptno', | |||
// text: 'deptname', | |||
// maxHeight: 200, | |||
// select: function (item) { | |||
// var DeptNo = $("#MajorNo").lrselectGet(); | |||
// if (DeptNo != null && DeptNo != "" && DeptNo != undefined) { | |||
// $('#ClassNo').lrselectRefresh({ | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
// param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" }, | |||
// value: "classno", | |||
// text: "classname", | |||
// allowSearch: false, | |||
// maxHeight: 200, | |||
// select: function (item) { | |||
// var ClassNo = $("#ClassNo").lrselectGet(); | |||
// if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
// $('#StuNo').lrselectRefresh({ | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
// param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, | |||
// value: "stuid", | |||
// text: "stuname", | |||
// maxHeight: 200, | |||
// allowSearch: true | |||
// }); | |||
// } | |||
// } | |||
// }); | |||
// } else { | |||
// $("#ClassNo").lrselect(); | |||
// } | |||
// } | |||
//}); | |||
//$("#ClassNo").lrselect(); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
@@ -68,11 +68,11 @@ var bootstrap = function ($, learun) { | |||
label: "专业", name: "MajorNo", width: 300, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
key: value, | |||
keyId: 'majorno', | |||
keyId: 'deptno', | |||
callback: function (_data) { | |||
callback(_data['majorname']); | |||
callback(_data['deptname']); | |||
} | |||
}); | |||
} | |||
@@ -18,41 +18,41 @@ var bootstrap = function ($, learun) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
$('#ItemId').lrDataSourceSelect({ code: 'DtRaceType', value: 'itemid', text: 'itemname' }); | |||
$('#MajorNo').lrDataSourceSelect({ | |||
code: 'CdDeptInfo', | |||
value: 'deptno', | |||
text: 'deptname', | |||
maxHeight: 200, | |||
select: function (item) { | |||
var DeptNo = $("#MajorNo").lrselectGet(); | |||
if (DeptNo != null && DeptNo != "" && DeptNo != undefined) { | |||
$('#ClassNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" }, | |||
value: "classno", | |||
text: "classname", | |||
allowSearch: false, | |||
maxHeight: 200, | |||
select: function (item) { | |||
var ClassNo = $("#ClassNo").lrselectGet(); | |||
if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
$('#StuNo').lrselectRefresh({ | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, | |||
value: "stuid", | |||
text: "stuname", | |||
maxHeight: 200, | |||
allowSearch: true | |||
}); | |||
} | |||
} | |||
}); | |||
} else { | |||
$("#ClassNo").lrselect(); | |||
} | |||
} | |||
}); | |||
$("#ClassNo").lrselect(); | |||
//$('#MajorNo').lrDataSourceSelect({ | |||
// code: 'CdDeptInfo', | |||
// value: 'deptno', | |||
// text: 'deptname', | |||
// maxHeight: 200, | |||
// select: function (item) { | |||
// var DeptNo = $("#MajorNo").lrselectGet(); | |||
// if (DeptNo != null && DeptNo != "" && DeptNo != undefined) { | |||
// $('#ClassNo').lrselectRefresh({ | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', | |||
// param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" }, | |||
// value: "classno", | |||
// text: "classname", | |||
// allowSearch: false, | |||
// maxHeight: 200, | |||
// select: function (item) { | |||
// var ClassNo = $("#ClassNo").lrselectGet(); | |||
// if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { | |||
// $('#StuNo').lrselectRefresh({ | |||
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', | |||
// param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, | |||
// value: "stuid", | |||
// text: "stuname", | |||
// maxHeight: 200, | |||
// allowSearch: true | |||
// }); | |||
// } | |||
// } | |||
// }); | |||
// } else { | |||
// $("#ClassNo").lrselect(); | |||
// } | |||
// } | |||
//}); | |||
//$("#ClassNo").lrselect(); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
@@ -68,11 +68,11 @@ var bootstrap = function ($, learun) { | |||
label: "专业", name: "MajorNo", width: 300, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
key: value, | |||
keyId: 'majorno', | |||
keyId: 'deptno', | |||
callback: function (_data) { | |||
callback(_data['majorname']); | |||
callback(_data['deptname']); | |||
} | |||
}); | |||
} | |||
@@ -38,8 +38,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(fieldSql); | |||
strSql.Append(" FROM [CollegeMIS_演示].dbo.DtRaceType t where 1=1 and t.DeleteMark =0 ORDER BY t.ParentId,t.ItemId "); | |||
return this.BaseRepository().FindList<DtRaceTypeEntity>(strSql.ToString()); | |||
strSql.Append(" FROM DtRaceType t where 1=1 and t.DeleteMark =0 ORDER BY t.ParentId,t.ItemId "); | |||
return this.BaseRepository("CollegeMIS").FindList<DtRaceTypeEntity>(strSql.ToString()); | |||
} | |||
catch (Exception ex) | |||
{ | |||