Explorar el Código

【修改】竞赛获奖管理:列表的显示;

yanshi
dyy hace 2 años
padre
commit
2c34983c12
Se han modificado 7 ficheros con 141 adiciones y 140 borrados
  1. +35
    -35
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/BJIndex.js
  2. +11
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/Form.js
  3. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/Index.cshtml
  4. +15
    -14
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/Index.js
  5. +38
    -38
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/QXIndex.js
  6. +38
    -38
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/ZYIndex.js
  7. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/DtRaceType/DtRaceTypeService.cs

+ 35
- 35
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/BJIndex.js Ver fichero

@@ -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 () {


+ 11
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/Form.js Ver fichero

@@ -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 {


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/Index.cshtml Ver fichero

@@ -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>


+ 15
- 14
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/Index.js Ver fichero

@@ -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']);
}
});
}


+ 38
- 38
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/QXIndex.js Ver fichero

@@ -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
- 38
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/DtRaceInfo/ZYIndex.js Ver fichero

@@ -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']);
}
});
}


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/DtRaceType/DtRaceTypeService.cs Ver fichero

@@ -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)
{


Cargando…
Cancelar
Guardar