From 7604d0dbbe916e94138faaf03e2afaaecf2541ae Mon Sep 17 00:00:00 2001
From: dyy <18335927079@163.com>
Date: Wed, 13 Jan 2021 12:13:12 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E6=95=99?=
=?UTF-8?q?=E5=B8=88=E4=BF=A1=E6=81=AF=E7=AE=A1=E7=90=86=EF=BC=9A=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E2=80=9C=E4=BA=BA=E5=91=98=E8=BA=AB=E4=BB=BD=E2=80=9D?=
=?UTF-8?q?=EF=BC=8C=E2=80=9C=E5=91=98=E5=B7=A5=E7=8A=B6=E6=80=81=E2=80=9D?=
=?UTF-8?q?=E5=88=97=EF=BC=8C=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E9=83=A8=E9=97=A8=E3=80=81=E5=A2=9E=E5=8A=A0=E4=BA=BA?=
=?UTF-8?q?=E5=91=98=E8=BA=AB=E4=BB=BD=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Views/EmpInfo/Form.cshtml | 2 +-
.../Views/EmpInfo/Index.cshtml | 10 +++-
.../Views/EmpInfo/Index.js | 58 ++++++++++++++-----
.../EmpInfo/EmpInfoService.cs | 5 ++
4 files changed, 60 insertions(+), 15 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
index ef9d72447..4acbaeead 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
@@ -172,7 +172,7 @@
是否审核
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.js
index a5487d379..f2ea26528 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.js
@@ -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" },
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs
index 13ad106bc..c4d6845e8 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs
@@ -122,6 +122,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
dp.Add("HighestRecord", queryParam["HighestRecord"].ToString(), DbType.String);
strSql.Append(" AND t.HighestRecord = @HighestRecord ");
}
+ if (!queryParam["CompilationCategory"].IsEmpty())//人员身份
+ {
+ dp.Add("CompilationCategory", queryParam["CompilationCategory"].ToString(), DbType.String);
+ strSql.Append(" AND t.CompilationCategory = @CompilationCategory ");
+ }
if (!queryParam["CheckMark"].IsEmpty())//是否审核
{
dp.Add("CheckMark", queryParam["CheckMark"].ToString(), DbType.String);