@@ -121,12 +121,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: '民族', name: 'Nation', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdNationality', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'nationalityno', | |||
code: 'BCdNationality', | |||
callback: function (_data) { | |||
callback(_data['nationality']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -134,12 +133,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: '政治面貌', name: 'PoliticsFace', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -130,12 +130,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: '政治面貌', name: 'PoliticsFace', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -56,7 +56,7 @@ var bootstrap = function ($, learun) { | |||
$('#Country').lrselect({ | |||
value: 'ACODE', text: 'ANAME' | |||
}); | |||
$('#PoliticsFace').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$("#PoliticsFace").lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$("#OriginId").lrDataItemSelect({ code: 'ResidenceNo' }); | |||
$("#DataSource").lrDataItemSelect({ code: 'AdmissionsDataSource' }); | |||
$("#ExamineTypeId").lrDataItemSelect({ code: 'ExamineType' }); | |||
@@ -148,13 +148,11 @@ var bootstrap = function ($, learun) { | |||
label: '政治面貌', name: 'PoliticalId', width: 100, align: 'left' | |||
, edit: { | |||
type: 'select', | |||
datatype: 'dataSource', | |||
code: 'BCdPartyFace', | |||
op: { | |||
value: 'partyfaceno', | |||
text: 'partyface', | |||
title: 'partyface' | |||
} | |||
init: function (data, $edit) { | |||
}, | |||
datatype: 'dataItem', | |||
code: 'BCdPartyFace' | |||
} | |||
}, | |||
{ | |||
@@ -202,12 +202,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: '政治面貌', name: 'PoliticsFace', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -132,12 +132,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: '政治面貌', name: 'PoliticsFace', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -122,11 +122,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
empInfo.NationalityNo = nationality.Rows[0][1].ToString(); | |||
} | |||
//政治面貌 | |||
var partyFace = dataSourceIBLL.GetDataTable("BCdPartyFace", "t.PartyFaceNo='" + empInfo.PartyFaceNo + "'"); | |||
if (partyFace != null && partyFace.Rows.Count > 0) | |||
{ | |||
empInfo.PartyFaceNo = partyFace.Rows[0][1].ToString(); | |||
} | |||
empInfo.PartyFaceNo = dataItemIBLL.GetDetailList("BCdPartyFace").FirstOrDefault(x => x.F_ItemValue == empInfo.PartyFaceNo)?.F_ItemName; | |||
//最高学历 | |||
var highestRecord = dataSourceIBLL.GetDataTable("BCdCultureDegree", "t.CultureDegreeNo='" + empInfo.HighestRecord + "'"); | |||
if (highestRecord != null && highestRecord.Rows.Count > 0) | |||
@@ -14,6 +14,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
// GET: EducationalAdministration/EmpInfoEnternal | |||
DataSourceIBLL dataSourceIBLL = new DataSourceBLL(); | |||
DataItemIBLL dataItemIBLL = new DataItemBLL(); | |||
UserIBLL userIBLL = new UserBLL(); | |||
EmpInfoIBLL empInfoIBLL = new EmpInfoBLL(); | |||
AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL(); | |||
@@ -53,6 +54,21 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
} | |||
} | |||
/// <summary> | |||
/// 获取数据字典数据 | |||
/// </summary> | |||
/// <param name="code">数据源编号</param> | |||
/// <param name="strWhere">sql查询条件语句</param> | |||
/// <param name="queryJson">数据源请求条件字串</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetDataItemMap(string code, string ver) | |||
{ | |||
var data = dataItemIBLL.GetDetailList(code, null); | |||
return JsonResult(data); | |||
} | |||
public ActionResult UploadImg(HttpPostedFileBase Filedata) | |||
{ | |||
@@ -87,7 +87,7 @@ var bootstrap = function ($, learun) { | |||
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | |||
$('#IsHasLesson').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#ProvinceNo').lrDataSourceSelect({ | |||
code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', | |||
select: function (item) { | |||
@@ -185,7 +185,7 @@ | |||
//登录按钮点击 | |||
form.on('submit(*)', function (data) { | |||
$.ajax({ | |||
url: "/EducationalAdministration/EmpInfo/SaveForm?keyValue=2b7d3b57-6614-4900-affe-9b26bd77bbb4", | |||
data: { strEntity: JSON.stringify(data.field) }, | |||
@@ -299,13 +299,13 @@ | |||
}, | |||
}); | |||
$.ajax({ | |||
url: "/LR_SystemModule/DataSource/GetMap?code=" + "BCdPartyFace", | |||
url: "/EducationalAdministration/EmpInfoEnternal/GetDataItemMap?code=" + "BCdPartyFace", | |||
async: false, | |||
success: function (msg) { | |||
var companys = $.parseJSON(msg).data.data; | |||
var companys = $.parseJSON(msg).data; | |||
var str = '<option value="">请选择</option>'; | |||
$.each(companys, function (i, item) { | |||
str += '<option value="' + item.partyfaceno + '">' + item.partyface + '</option>' | |||
str += '<option value="' + item["F_ItemValue"] + '">' + item["F_ItemName"] + '</option>' | |||
}) | |||
$("#PartyFaceNo").html(str); | |||
}, | |||
@@ -8,7 +8,7 @@ var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var isTeacher = request('isTeacher'); | |||
var colDataItemArr = ['GenderNo', 'IsInActiveStatus', 'EmpSortNo', 'PositionLevel', 'CompilationCategory', 'ObtainWayOfHighestRecord', 'ObtainWay', 'ObtainWayOfHighestDegree', 'ObtainWayOfInitialDegree', 'JobRank', 'WorkLevel', 'EmpFullTimeNo', 'IsHasLesson']; | |||
var colDataItemCode = ['usersexbit', 'JobStatus', 'jsgw', 'PositionLevel', 'CompilationCategory', 'ObtainWay', 'ObtainWay', 'ObtainWayOfDegree', 'ObtainWayOfDegree', 'TechnicalPost', 'TechnicalLevelOfWorker', 'EmpFullTime', 'YesOrNoBit']; | |||
var colDataItemCode = ['BCdPartyFace','usersexbit', 'JobStatus', 'jsgw', 'PositionLevel', 'CompilationCategory', 'ObtainWay', 'ObtainWay', 'ObtainWayOfDegree', 'ObtainWayOfDegree', 'TechnicalPost', 'TechnicalLevelOfWorker', 'EmpFullTime', 'YesOrNoBit']; | |||
var colDataSourceArr = ['PartyFaceNo', 'NationalityNo', 'HealthStatusNo', 'FamilyOriginNo', 'OverseasChineseNo', 'F_CompanyId', 'F_DepartmentId', 'DeptNo', 'PostRank', 'HighestRecord', 'CultureDegreeNo', 'DegreeNo', 'InitialDegree', 'SubjectSpeciesNo', 'ForeignLanguageNo']; | |||
var colDataSourceCode = ['BCdPartyFace', 'BCdNationality', 'BCdHealthStatus', 'BCdFamilyOrigin', 'BCdOverseasChinese', 'company', 'classdata', 'CdDeptInfo', 'BCdTitleOfTechPost', 'BCdCultureDegree', 'BCdCultureDegree', 'BCdDegree', 'BCdDegree', 'BCdSubjectSpecies', 'BCdForeignLanguage']; | |||
var colDataSourceValue = ['partyfaceno', 'nationalityno', 'healthstatusno', 'familyoriginno', 'overseaschineseno', 'f_companyid', 'f_departmentid', 'deptno', 'titleoftechpostno', 'culturedegreeno', 'culturedegreeno', 'degreeno', 'degreeno', 'subjectspeciesno', 'foreignlanguageno']; | |||
@@ -156,15 +156,14 @@ | |||
}, | |||
partyFaceNo: function (value) { | |||
var result; | |||
top.learun.clientdata.getAsync('custmerData', { | |||
sync: true, | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
top.learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
result = _data['partyface']; | |||
result = _data.text; | |||
} | |||
}); | |||
return result; | |||
}, | |||
overseasChineseNo: function (value) { | |||
@@ -36,7 +36,7 @@ var bootstrap = function ($, learun) { | |||
$('#F_DepartmentId').lrselect(); | |||
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality',value: 'nationalityno',text: 'nationality' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace',value: 'partyfaceno',text: 'partyface' }); | |||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#ProvinceNo').lrDataSourceSelect({ | |||
code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', | |||
select: function (item) { | |||
@@ -48,7 +48,7 @@ var bootstrap = function ($, learun) { | |||
}); | |||
$('#RegionNo').lrselect(); | |||
//政治面貌 | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace', allowSearch: true }); | |||
//最高学历 | |||
$('#HighestRecord').lrDataItemSelect({ code: 'CollegeType', allowSearch: true }); | |||
@@ -434,12 +434,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -348,12 +348,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -326,13 +326,13 @@ | |||
}, | |||
}); | |||
$.ajax({ | |||
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "BCdPartyFace", | |||
url: "/EducationalAdministration/EmpInfoEnternal/GetDataItemMap?code=" + "BCdPartyFace", | |||
async: false, | |||
success: function (msg) { | |||
var companys = $.parseJSON(msg).data.data; | |||
var msgObject = $.parseJSON(msg); | |||
var str = '<option value="">请选择</option>'; | |||
$.each(companys, function (i, item) { | |||
str += '<option value="' + item.partyfaceno + '">' + item.partyface + '</option>' | |||
$.each(msgObject.data, function (i, item) { | |||
str += '<option value="' + item["F_ItemValue"] + '">' + item["F_ItemName"] + '</option>' | |||
}) | |||
$("#PartyFaceNo").html(str); | |||
}, | |||
@@ -19,7 +19,7 @@ var bootstrap = function ($, learun) { | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#IsAccommodate').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
}, | |||
initData: function () { | |||
@@ -16,8 +16,8 @@ var bootstrap = function ($, learun) { | |||
}, | |||
bind: function () { | |||
$('#Sex').lrDataItemSelect({ code: 'usersex' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality',value: 'nationalityno',text: 'nationality' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace',value: 'partyfaceno',text: 'partyface' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#CultureDegree').lrDataSourceSelect({ code: 'BCdCultureDegree',value: 'culturedegreeno',text: 'culturedegree' }); | |||
$('#ResidenceNo').lrDataItemSelect({ code: 'ResidenceNo' }); | |||
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo',value: 'majorno',text: 'majorname' }); | |||
@@ -99,12 +99,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -205,12 +205,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -23,7 +23,8 @@ var bootstrap = function ($, learun) { | |||
//民族 | |||
$('#Nationals').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
//政治面貌 | |||
$('#Political').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
//$('#Political').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$('#Political').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#DeptNo').lrselect({ | |||
allowSearch: true, | |||
value: "deptno", | |||
@@ -23,7 +23,7 @@ var bootstrap = function ($, learun) { | |||
//民族 | |||
$('#Nationals').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
//政治面貌 | |||
$('#Political').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$('#Political').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); | |||
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||
$('#FreshType').lrDataItemSelect({ code: 'timeType' }); | |||
@@ -216,12 +216,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -216,12 +216,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -212,12 +212,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -379,12 +379,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -248,12 +248,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -208,12 +208,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -246,12 +246,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -334,12 +334,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -312,12 +312,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -331,12 +331,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "Political", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -106,7 +106,7 @@ var bootstrap = function ($, learun) { | |||
$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#HealthStatusNo').lrDataSourceSelect({ code: 'BCdHealthStatus', value: 'healthstatusno', text: 'healthstatus' }); | |||
$('#Photo').lrUploader(); | |||
$('#FamilyOriginNo').lrDataSourceSelect({ code: 'BCdFamilyOrigin', value: 'familyoriginno', text: 'familyorigin' }); | |||
@@ -106,7 +106,7 @@ var bootstrap = function ($, learun) { | |||
$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#HealthStatusNo').lrDataSourceSelect({ code: 'BCdHealthStatus', value: 'healthstatusno', text: 'healthstatus' }); | |||
$('#Photo').lrUploader(); | |||
$('#FamilyOriginNo').lrDataSourceSelect({ code: 'BCdFamilyOrigin', value: 'familyoriginno', text: 'familyorigin' }); | |||
@@ -187,13 +187,13 @@ var bootstrap = function ($, learun) { | |||
$('#OneIsGuardian').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$('#OneIdCardType').lrDataItemSelect({ code: 'IdCardType' }); | |||
$('#OneNationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$('#OnePartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$('#OnePartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#OneHealthStatus').lrDataSourceSelect({ code: 'BCdHealthStatus', value: 'healthstatusno', text: 'healthstatus' }); | |||
$('#TwoMembership').lrDataItemSelect({ code: 'FamilyRelation' }); | |||
$('#TwoIsGuardian').lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$('#TwoIdCardType').lrDataItemSelect({ code: 'IdCardType' }); | |||
$('#TwoNationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$('#TwoPartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$('#TwoPartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#TwoHealthStatus').lrDataSourceSelect({ code: 'BCdHealthStatus', value: 'healthstatusno', text: 'healthstatus' }); | |||
@@ -179,13 +179,11 @@ | |||
}, | |||
partyFaceNo: function (value) { | |||
var result; | |||
top.learun.clientdata.getAsync('custmerData', { | |||
sync: true, | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
top.learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
result = _data['partyface']; | |||
result = _data.text; | |||
} | |||
}); | |||
return result; | |||
@@ -65,7 +65,7 @@ var bootstrap = function ($, learun) { | |||
$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$('#HealthStatusNo').lrDataSourceSelect({ code: 'BCdHealthStatus', value: 'healthstatusno', text: 'healthstatus' }); | |||
$('#Photo').lrUploader(); | |||
$('#FamilyOriginNo').lrDataSourceSelect({ code: 'BCdFamilyOrigin', value: 'familyoriginno', text: 'familyorigin' }); | |||
@@ -324,12 +324,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -389,12 +389,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -554,12 +553,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "成员1政治面貌", name: "OnePartyFaceNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -632,12 +630,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "成员2政治面貌", name: "TwoPartyFaceNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -167,12 +167,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: '政治面貌', name: 'PartyFaceNo', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||
}, | |||
bind: function () { | |||
$("#GenderNo").lrDataItemSelect({ code: 'usersex' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$("#PartyFaceNo").lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$("#FamilyOriginNo").lrDataItemSelect({ code: 'ExamineeCategory' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$("#TestStuSortNo").lrDataItemSelect({ code: 'ExamineeType' }); | |||
@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) { | |||
bind: function () { | |||
$("#GenderNo").lrDataItemSelect({ code: 'usersex' }); | |||
$("#IsAccommodate").lrDataItemSelect({ code: 'YesOrNoInt' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$("#PartyFaceNo").lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$("#FamilyOriginNo").lrDataItemSelect({ code: 'ExamineeCategory' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$("#TestStuSortNo").lrDataItemSelect({ code: 'ExamineeType' }); | |||
@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) { | |||
}, | |||
bind: function () { | |||
$("#GenderNo").lrDataItemSelect({ code: 'usersex' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$("#PartyFaceNo").lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$("#FamilyOriginNo").lrDataItemSelect({ code: 'ExamineeCategory' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$("#TestStuSortNo").lrDataItemSelect({ code: 'ExamineeType' }); | |||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||
}, | |||
bind: function () { | |||
$("#GenderNo").lrDataItemSelect({ code: 'usersex' }); | |||
$('#PartyFaceNo').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | |||
$("#PartyFaceNo").lrDataItemSelect({ code: 'BCdPartyFace' }); | |||
$("#FamilyOriginNo").lrDataItemSelect({ code: 'ExamineeCategory' }); | |||
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | |||
$("#TestStuSortNo").lrDataItemSelect({ code: 'ExamineeType' }); | |||
@@ -268,12 +268,11 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: '政治面貌', name: 'PartyFaceNo', width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
callback(_data['partyface']); | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
@@ -277,13 +277,11 @@ | |||
filter_BCdPartyFace: function (value) { | |||
var result; | |||
top.learun.clientdata.getAsync('custmerData', { | |||
sync: true, | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
top.learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
result = _data['partyface']; | |||
result=_data.text; | |||
} | |||
}); | |||
return result; | |||
@@ -242,7 +242,9 @@ | |||
<td class="col-md-3"> | |||
<span id="@item.Id"></span> | |||
<script> | |||
$.ajax({ | |||
GetDataItemStr("BCdPartyFace", "@item.PoliticalId","#@item.Id"); | |||
@*$.ajax({ | |||
url: "/OnlineRegistrate/GetDataSourceMap?code=BCdPartyFace", | |||
async: false, | |||
success: function (msg) { | |||
@@ -258,7 +260,7 @@ | |||
layer.msg(msgObject.info); | |||
} | |||
}, | |||
}); | |||
});*@ | |||
</script> | |||
</td> | |||
<td class="col-md-3">@item.WorkUnit</td> | |||
@@ -341,7 +343,7 @@ | |||
GetDataItemStr("usersex", "@Model.SexId", "#SexId"); | |||
GetDataSourceStr("BCdNationality", "nationalityno", "nationality", "@Model.Nation", "#Nation"); | |||
GetDataItemStr("FamilyBirth", "@Model.AP_OnlineStudentInfoEntity.FamilyBirthId", "#FamilyBirthId"); | |||
GetDataSourceStr("BCdPartyFace", "partyfaceno", "partyface", "@Model.PoliticsFace", "#PoliticsFace"); | |||
GetDataItemStr("BCdPartyFace", "@Model.PoliticsFace", "#PoliticsFace"); | |||
GetDataSourceStr("BCdCultureDegree", "culturedegreeno", "culturedegree", "@Model.AP_OnlineStudentInfoEntity.CultureId", "#CultureId"); | |||
GetDataItemStr("MarriageType", "@Model.AP_OnlineStudentInfoEntity.MarriageId", "#MarriageId"); | |||
GetDataItemStr("ResidenceNo", "@Model.OriginId", "#OriginId"); | |||
@@ -549,17 +549,17 @@ | |||
<select id="@item.Id" name="PoliticalId" class="col-md-12" style="border: 0; background: transparent; height: 39px; width:165px; line-height:39px;" placeholder=""></select> | |||
<script> | |||
$.ajax({ | |||
url: "/OnlineRegistrate/GetDataSourceMap?code=" + "BCdPartyFace", | |||
url: "/OnlineRegistrate/GetDataItemMap?code=" + "BCdPartyFace", | |||
async: false, | |||
success: function (msg) { | |||
var msgObject = $.parseJSON(msg); | |||
if (msgObject.code == 200) { | |||
var str = '<option value="">请选择</option>'; | |||
$.each(msgObject.data, function (i, item) { | |||
if (item["partyfaceno"] == @item.PoliticalId) { | |||
str += '<option value="' + item["partyfaceno"] + '" selected="selected">' + item["partyface"] + '</option>' | |||
if (item["F_ItemValue"] == @item.PoliticalId) { | |||
str += '<option value="' + item["F_ItemValue"] + '" selected="selected">' + item["F_ItemName"] + '</option>' | |||
} else { | |||
str += '<option value="' + item["partyfaceno"] + '">' + item["partyface"] + '</option>' | |||
str += '<option value="' + item["F_ItemValue"] + '">' + item["F_ItemName"] + '</option>' | |||
} | |||
}) | |||
$("#@item.Id").html(str); | |||
@@ -847,7 +847,7 @@ | |||
@*SetDataSourceSelect("DIC_AREA", "acode", "aname", "@Model.Country", "#Country");*@ | |||
SetDataItemSelect("usersex", "@Model.SexId", "#SexId"); | |||
SetDataSourceSelect("BCdCultureDegree", "culturedegreeno", "culturedegree", "@Model.AP_OnlineStudentInfoEntity.CultureId", "#CultureId"); | |||
SetDataSourceSelect("BCdPartyFace", "partyfaceno", "partyface", "@Model.PoliticsFace", "#PoliticsFace"); | |||
SetDataItemSelect("BCdPartyFace", "@Model.PoliticsFace", "#PoliticsFace"); | |||
SetDataSourceSelect("BCdNationality", "nationalityno", "nationality", "@Model.Nation", "#Nation"); | |||
SetDataItemSelect("MarriageType", "@Model.AP_OnlineStudentInfoEntity.MarriageId", "#MarriageId"); | |||
SetDataItemSelect("FamilyBirth", "@Model.AP_OnlineStudentInfoEntity.FamilyBirthId", "#FamilyBirthId"); | |||
@@ -946,14 +946,14 @@ | |||
'</tr>'; | |||
$.ajax({ | |||
url: "/OnlineRegistrate/GetDataSourceMap?code=" + "BCdPartyFace", | |||
url: "/OnlineRegistrate/GetDataItemMap?code=" + "BCdPartyFace", | |||
async: false, | |||
success: function (msg) { | |||
var msgObject = $.parseJSON(msg); | |||
if (msgObject.code == 200) { | |||
var str = '<option value="">请选择</option>'; | |||
$.each(msgObject.data, function (i, item) { | |||
str += '<option value="' + item["partyfaceno"] + '">' + item["partyface"] + '</option>' | |||
str += '<option value="' + item["F_ItemValue"] + '">' + item["F_ItemName"] + '</option>' | |||
}) | |||
$('#tbodyFamily').append(html1 + str + html2); | |||
renderForm('select','FamilySelectFilter'); | |||
@@ -236,13 +236,11 @@ | |||
}, | |||
partyFaceNo: function (value) { | |||
var result; | |||
top.learun.clientdata.getAsync('custmerData', { | |||
sync: true, | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
top.learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
result = _data['partyface']; | |||
result = _data.text; | |||
} | |||
}); | |||
return result; | |||
@@ -500,13 +498,11 @@ | |||
}, | |||
partyFaceNo: function (value) { | |||
var result; | |||
top.learun.clientdata.getAsync('custmerData', { | |||
sync: true, | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
top.learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
result = _data['partyface']; | |||
result = _data.text; | |||
} | |||
}); | |||
return result; | |||
@@ -236,13 +236,11 @@ | |||
}, | |||
partyFaceNo: function (value) { | |||
var result; | |||
top.learun.clientdata.getAsync('custmerData', { | |||
sync: true, | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
top.learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
result = _data['partyface']; | |||
result = _data.text; | |||
} | |||
}); | |||
return result; | |||
@@ -508,13 +506,11 @@ | |||
}, | |||
partyFaceNo: function (value) { | |||
var result; | |||
top.learun.clientdata.getAsync('custmerData', { | |||
sync: true, | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
top.learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
result = _data['partyface']; | |||
result = _data.text; | |||
} | |||
}); | |||
return result; | |||
@@ -222,13 +222,11 @@ | |||
}, | |||
partyFaceNo: function (value) { | |||
var result; | |||
top.learun.clientdata.getAsync('custmerData', { | |||
sync: true, | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
top.learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
result = _data['partyface']; | |||
result = _data.text; | |||
} | |||
}); | |||
return result; | |||
@@ -549,13 +547,11 @@ | |||
}, | |||
partyFaceNo: function (value) { | |||
var result; | |||
top.learun.clientdata.getAsync('custmerData', { | |||
sync: true, | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace', | |||
top.learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
keyId: 'partyfaceno', | |||
code: 'BCdPartyFace', | |||
callback: function (_data) { | |||
result = _data['partyface']; | |||
result =_data.text; | |||
} | |||
}); | |||
return result; | |||
@@ -298,16 +298,17 @@ namespace Learun.Application.WebApi.Modules.Feixing | |||
} | |||
if (req == "Political") | |||
{ | |||
var data = dataSourceIBLL.GetDataTable("BCdPartyFace", ""); | |||
var data = dataItemIBLL.GetDetailList("BCdPartyFace", ""); | |||
DictDataModel dictDataModel = new DictDataModel(); | |||
for (int i = 0; i < data.Rows.Count; i++) | |||
foreach (var t in data) | |||
{ | |||
dictDataModel.Items.Add(new SysDictDetailApiViewModel | |||
{ | |||
ItemName = data.Rows[i]["partyface"].ToString(), | |||
ItemValue = data.Rows[i]["partyfaceno"].ToString() | |||
ItemName = t.F_ItemName, | |||
ItemValue = t.F_ItemValue | |||
}); | |||
} | |||
return Success("OK", dictDataModel); | |||
} | |||
if (req == "Nation") | |||
@@ -820,7 +820,7 @@ namespace Learun.Application.Excel | |||
empinfoEntity.Birthday = Convert.ToDateTime(dr["出生日期"].ToString()); | |||
empinfoEntity.NationalityNo = dataSourceIBLL.GetKeyByValue("BCdNationality", "nationality", dr["民族"].ToString(), "nationalityno"); | |||
empinfoEntity.LocusOfResidence = dr["籍贯"].ToString(); | |||
empinfoEntity.PartyFaceNo = dataSourceIBLL.GetKeyByValue("BCdPartyFace", "partyface", dr["政治面貌"].ToString(), "partyfaceno"); | |||
empinfoEntity.PartyFaceNo = FindDataItemValue(dataItemIBLL.GetDetailList("BCdPartyFace"), dr["政治面貌"].ToString(), "政治面貌", false); | |||
empinfoEntity.JoinPartyTime = dr["入党(团)时间"].ToString(); | |||
empinfoEntity.mobile = dr["联系电话"].ToString(); | |||
empinfoEntity.EMail = dr["电子邮箱"].ToString(); | |||