Browse Source

【修改】教师:列表,多条件查询中绑定数据字典;

西昌缴费二期
dyy 2 years ago
parent
commit
45f0fbac3e
1 changed files with 25 additions and 11 deletions
  1. +25
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.js

+ 25
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.js View File

@@ -50,8 +50,8 @@ var bootstrap = function ($, learun) {
//政治面貌 //政治面貌
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace', allowSearch: true }); $('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace', allowSearch: true });
//最高学历 //最高学历
$('#HighestRecord').lrDataSourceSelect({ code: 'BCdCultureDegree', value: 'culturedegreeno', text: 'culturedegree' });
//$('#HighestRecord').lrDataSourceSelect({ code: 'BCdCultureDegree', value: 'culturedegreeno', text: 'culturedegree' });
$('#HighestRecord').lrDataItemSelect({ code: 'RecordInSchool', allowSearch: true });


//民族 //民族
$('#NationalityNo').lrDataItemSelect({ code: 'National', allowSearch: true }); $('#NationalityNo').lrDataItemSelect({ code: 'National', allowSearch: true });
@@ -60,7 +60,7 @@ var bootstrap = function ($, learun) {
//是否审核 //是否审核
$('#CheckMark').lrDataItemSelect({ code: 'YesOrNoInt' }); $('#CheckMark').lrDataItemSelect({ code: 'YesOrNoInt' });
//学位 //学位
$('#DegreeNo').lrDataItemSelect({ code: 'BCdDegree' });
$('#DegreeNo').lrDataItemSelect({ code: 'DegreeInSchool' });
// 部门选择 // 部门选择
$('#F_DepartmentId').lrselect({ $('#F_DepartmentId').lrselect({
@@ -92,7 +92,7 @@ var bootstrap = function ($, learun) {
} }
} }
}); });
$('#DegreeNo').lrDataItemSelect({ code: 'BCdDegree' });
$('#DegreeNo').lrDataItemSelect({ code: 'DegreeInSchool' });
//职称 //职称
$('#ProfessionalTitle').lrDataItemSelect({ code: 'jszc' }); $('#ProfessionalTitle').lrDataItemSelect({ code: 'jszc' });
//校区 //校区
@@ -412,9 +412,9 @@ var bootstrap = function ($, learun) {
learun.clientdata.getAsync('custmerData', { learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: value, key: value,
keyId: 'id',
keyId: 'f_departmentid',
callback: function (_data) { callback: function (_data) {
callback(_data['name']);
callback(_data['f_fullname']);
} }
}); });
} }
@@ -494,12 +494,19 @@ var bootstrap = function ($, learun) {
{ {
label: "最高学历", name: "HighestRecord", width: 100, align: "left", label: "最高学历", name: "HighestRecord", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) { formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdCultureDegree',
//learun.clientdata.getAsync('custmerData', {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdCultureDegree',
// key: value,
// keyId: 'culturedegreeno',
// callback: function (_data) {
// callback(_data['culturedegree']);
// }
//});
learun.clientdata.getAsync('dataItem', {
key: value, key: value,
keyId: 'culturedegreeno',
code: 'RecordInSchool',
callback: function (_data) { callback: function (_data) {
callback(_data['culturedegree']);
callback(_data.text);
} }
}); });
} }
@@ -507,9 +514,16 @@ var bootstrap = function ($, learun) {
{ {
label: "最高学位", name: "DegreeNo", width: 100, align: "left", label: "最高学位", name: "DegreeNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) { formatterAsync: function (callback, value, row, op, $cell) {
//learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'BCdDegree',
// callback: function (_data) {
// callback(_data.text);
// }
//});
learun.clientdata.getAsync('dataItem', { learun.clientdata.getAsync('dataItem', {
key: value, key: value,
code: 'BCdDegree',
code: 'DegreeInSchool',
callback: function (_data) { callback: function (_data) {
callback(_data.text); callback(_data.text);
} }


Loading…
Cancel
Save