|
|
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { |
|
|
|
bind: function () { |
|
|
|
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { |
|
|
|
page.search(queryJson); |
|
|
|
}, 280, 400); |
|
|
|
}, 350, 550); |
|
|
|
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); |
|
|
|
$('#ProvinceNo').lrDataSourceSelect({ |
|
|
|
code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', |
|
|
@@ -63,8 +63,28 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#DegreeNo').lrDataSourceSelect({ code: 'BCdDegree', value: 'degreeno', text: 'degreename' }); |
|
|
|
//职称 |
|
|
|
$('#ProfessionalTitle').lrDataItemSelect({ code: 'jszc' }); |
|
|
|
//校区 |
|
|
|
$('#F_CompanyId').lrDataSourceSelect({ |
|
|
|
code: 'company', value: 'f_companyid', text: 'f_fullname', |
|
|
|
select: function (item) { |
|
|
|
if (!!item) { |
|
|
|
// 部门 |
|
|
|
$('#F_DepartmentId').lrselectRefresh({ |
|
|
|
type: 'tree', |
|
|
|
// 是否允许搜索 |
|
|
|
allowSearch: true, |
|
|
|
// 访问数据接口地址 |
|
|
|
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', |
|
|
|
// 访问数据接口参数 |
|
|
|
param: { companyId: item.f_companyid, parentId: '0' } |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
// 部门选择 |
|
|
|
$('#F_DepartmentId').lrselect(); |
|
|
|
//人员身份 |
|
|
|
$('#CompilationCategory').lrDataItemSelect({ code: 'CompilationCategory' }); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
@@ -384,6 +404,30 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "是否授课", name: "IsHasLesson", width: 100, align: "left", formatter: function (cellvalue) { return cellvalue == true ? "是" : "否" } }, |
|
|
|
{ |
|
|
|
label: "员工状态", name: "IsInActiveStatus", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'JobStatus', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "人员身份", name: "CompilationCategory", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'CompilationCategory', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "出生日期", name: "Birthday", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "民族", name: "NationalityNo", width: 100, align: "left", |
|
|
@@ -558,18 +602,6 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "编制类别", name: "CompilationCategory", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'CompilationCategory', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "来校时间", name: "InSchoolDate", width: 100, align: "left" }, |
|
|
|
{ label: "紧急联系人", name: "Linkman", width: 100, align: "left" }, |
|
|
|
{ label: "联系人关系", name: "RelationOfLinkman", width: 100, align: "left" }, |
|
|
|