@@ -87,7 +87,7 @@ var bootstrap = function ($, learun) { | |||||
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | $('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | ||||
$('#IsHasLesson').lrDataItemSelect({ code: 'YesOrNoBit' }); | $('#IsHasLesson').lrDataItemSelect({ code: 'YesOrNoBit' }); | ||||
$('#NationalityNo').lrDataItemSelect({ code: 'National' }); | $('#NationalityNo').lrDataItemSelect({ code: 'National' }); | ||||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||||
$('#PartyFaceNo').lrDataItemSelect({ code: 'PolityStatus' }); | |||||
$('#ProvinceNo').lrDataSourceSelect({ | $('#ProvinceNo').lrDataSourceSelect({ | ||||
code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', | code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', | ||||
select: function (item) { | select: function (item) { | ||||
@@ -436,7 +436,7 @@ var bootstrap = function ($, learun) { | |||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('dataItem', { | learun.clientdata.getAsync('dataItem', { | ||||
key: value, | key: value, | ||||
code: 'BCdPartyFace', | |||||
code: 'PolityStatus', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data.text); | callback(_data.text); | ||||
} | } | ||||
@@ -108,7 +108,7 @@ var bootstrap = function ($, learun) { | |||||
$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | $('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | ||||
$('#NationalityNo').lrDataItemSelect({ code: 'National' }); | $('#NationalityNo').lrDataItemSelect({ code: 'National' }); | ||||
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | $('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | ||||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||||
$('#PartyFaceNo').lrDataItemSelect({ code: 'PolityStatus' }); | |||||
$('#HealthStatusNo').lrDataItemSelect({ code: 'StuHealthType' }); | $('#HealthStatusNo').lrDataItemSelect({ code: 'StuHealthType' }); | ||||
$('#Photo').lrUploader(); | $('#Photo').lrUploader(); | ||||
$('#FamilyOriginNo').lrDataItemSelect({ code: 'BCdFamilyOrigin' }); | $('#FamilyOriginNo').lrDataItemSelect({ code: 'BCdFamilyOrigin' }); | ||||
@@ -107,7 +107,7 @@ var bootstrap = function ($, learun) { | |||||
$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | $('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | ||||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | $('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | ||||
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | $('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | ||||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||||
$('#PartyFaceNo').lrDataItemSelect({ code: 'PolityStatus' }); | |||||
$('#HealthStatusNo').lrDataSourceSelect({ code: 'BCdHealthStatus', value: 'healthstatusno', text: 'healthstatus' }); | $('#HealthStatusNo').lrDataSourceSelect({ code: 'BCdHealthStatus', value: 'healthstatusno', text: 'healthstatus' }); | ||||
$('#Photo').lrUploader(); | $('#Photo').lrUploader(); | ||||
$('#FamilyOriginNo').lrDataSourceSelect({ code: 'BCdFamilyOrigin', value: 'familyoriginno', text: 'familyorigin' }); | $('#FamilyOriginNo').lrDataSourceSelect({ code: 'BCdFamilyOrigin', value: 'familyoriginno', text: 'familyorigin' }); | ||||
@@ -324,12 +324,11 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left", | label: "政治面貌", name: "PartyFaceNo", 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=' + 'BCdPartyFace', | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | key: value, | ||||
keyId: 'partyfaceno', | |||||
code: 'PolityStatus', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['partyface']); | |||||
callback(_data.text); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$("#GenderNo").lrDataItemSelect({ code: 'usersex' }); | $("#GenderNo").lrDataItemSelect({ code: 'usersex' }); | ||||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||||
$('#PartyFaceNo').lrDataItemSelect({ code: 'PolityStatus' }); | |||||
$('#FamilyOriginNo').lrDataItemSelect({ code: 'stuType' }); | $('#FamilyOriginNo').lrDataItemSelect({ code: 'stuType' }); | ||||
$("#NationalityNo").lrDataItemSelect({ code: 'National' }); | $("#NationalityNo").lrDataItemSelect({ code: 'National' }); | ||||
$("#TestStuSortNo").lrDataItemSelect({ code: 'ExamineeType' }); | $("#TestStuSortNo").lrDataItemSelect({ code: 'ExamineeType' }); | ||||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$("#GenderNo").lrDataItemSelect({ code: 'usersex' }); | $("#GenderNo").lrDataItemSelect({ code: 'usersex' }); | ||||
$("#PartyFaceNo").lrDataItemSelect({ code: 'BCdPartyFace' }); | |||||
$("#PartyFaceNo").lrDataItemSelect({ code: 'PolityStatus' }); | |||||
$("#FamilyOriginNo").lrDataItemSelect({ code: 'ExamineeCategory' }); | $("#FamilyOriginNo").lrDataItemSelect({ code: 'ExamineeCategory' }); | ||||
$("#NationalityNo").lrDataItemSelect({ code: 'National' }); | $("#NationalityNo").lrDataItemSelect({ code: 'National' }); | ||||
$("#TestStuSortNo").lrDataItemSelect({ code: 'ExamineeType' }); | $("#TestStuSortNo").lrDataItemSelect({ code: 'ExamineeType' }); | ||||
@@ -190,7 +190,7 @@ | |||||
}, | }, | ||||
filters: { | filters: { | ||||
sex: function (value) { | sex: function (value) { | ||||
return value ? "男生" : "女生"; | |||||
return value ? "男" : "女"; | |||||
}, | }, | ||||
company: function (value) { | company: function (value) { | ||||
@@ -176,7 +176,7 @@ | |||||
}, | }, | ||||
filters: { | filters: { | ||||
sex: function (value) { | sex: function (value) { | ||||
return value ? "男生" : "女生"; | |||||
return value ? "男" : "女"; | |||||
}, | }, | ||||
company: function (value) { | company: function (value) { | ||||
@@ -222,7 +222,7 @@ | |||||
var result; | var result; | ||||
top.learun.clientdata.getAsync('dataItem', { | top.learun.clientdata.getAsync('dataItem', { | ||||
key: value, | key: value, | ||||
code: 'BCdPartyFace', | |||||
code: 'PolityStatus', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
result = _data.text; | result = _data.text; | ||||
} | } | ||||
@@ -544,7 +544,7 @@ | |||||
var result; | var result; | ||||
top.learun.clientdata.getAsync('dataItem', { | top.learun.clientdata.getAsync('dataItem', { | ||||
key: value, | key: value, | ||||
code: 'BCdPartyFace', | |||||
code: 'PolityStatus', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
result =_data.text; | result =_data.text; | ||||
} | } | ||||