From 02a525a3fec427ef0acecefd881fbc7748e6a8aa Mon Sep 17 00:00:00 2001 From: dyy <18335927079@163.com> Date: Thu, 13 May 2021 16:09:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91?= =?UTF-8?q?=E6=95=99=E5=B8=88=E4=BF=A1=E6=81=AF=E7=AE=A1=E7=90=86=EF=BC=9A?= =?UTF-8?q?=E5=BD=95=E5=85=A5=EF=BC=9A=E5=A2=9E=E5=8A=A0=E7=94=A8=E5=B7=A5?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=8C=E4=B8=8E=E7=BC=96=E5=88=B6=E7=B1=BB?= =?UTF-8?q?=E5=88=AB=E4=B8=BA=E8=81=94=E5=8A=A8=EF=BC=9B=E5=A4=9A=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E6=9F=A5=E8=AF=A2=EF=BC=9A=E5=A2=9E=E5=8A=A0=E7=BC=96?= =?UTF-8?q?=E5=88=B6=E7=B1=BB=E5=88=AB=E3=80=81=E7=94=A8=E5=B7=A5=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=81=94=E5=8A=A8=E6=9F=A5=E8=AF=A2=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/EmpInfo/Form.cshtml | 26 ++++++++------ .../Views/EmpInfo/Form.js | 34 +++++++++++++++---- .../Views/EmpInfo/Index.cshtml | 14 ++++++-- .../Views/EmpInfo/Index.js | 23 ++++++++++++- .../EmpInfo/EmpInfoEntity.cs | 5 +++ .../EmpInfo/EmpInfoService.cs | 10 ++++++ 6 files changed, 90 insertions(+), 22 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 1408b196d..b6d40d429 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 @@ -39,10 +39,10 @@
-
-
+
+
个人信息
-  打印 +  打印
姓名*
@@ -131,14 +131,14 @@
职业信息
-
-
员工状态
-
-
-
-
工资编号
- -
+
+
员工状态
+
+
+
+
工资编号
+ +
职工编号*
@@ -179,6 +179,10 @@
编制类别
+
+
用工类型
+
+
参加工作时间
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js index 5dda34638..9419981af 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js @@ -139,7 +139,27 @@ var bootstrap = function ($, learun) { $('#PositionLevel').lrDataItemSelect({ code: 'PositionLevel' }); $('#JobRank').lrDataItemSelect({ code: 'TechnicalPost' }); $('#WorkLevel').lrDataItemSelect({ code: 'TechnicalLevelOfWorker' }); - $('#CompilationCategory').lrDataItemSelect({ code: 'CompilationCategory' }); + //编制类别 + $('#CompilationCategory').lrDataItemSelect({ + code: 'CompilationCategory', select: function (item) { + if (!!item && item.id == "02") {//编外 + //用工类型 + $('#EmployType').lrselectRefresh({ + url: '/LR_SystemModule/DataItem/GetDetailList', + param: { itemCode: 'EmployType' }, + value: 'F_ItemValue', + text: 'F_ItemName' + }); + } else { + $('#EmployType').lrselectRefresh({ + url: "", + data: [] + }); + } + } + }); + //用工类型 + $('#EmployType').lrselect(); $('#IsInActiveStatus').lrDataItemSelect({ code: 'JobStatus' }); $('#ProfessionalTitle').lrDataItemSelect({ code: 'jszc' }); $('#ProfessionalTitleLevel').lrDataItemSelect({ code: 'TeacherTitlePostLevel' }); @@ -157,7 +177,7 @@ var bootstrap = function ($, learun) { }); - $('#lr_print').on('click',function() { + $('#lr_print').on('click', function () { $('#tab1').print(); }) @@ -183,7 +203,7 @@ var bootstrap = function ($, learun) { } }; // 保存数据 - acceptClick = function(callBack) { + acceptClick = function (callBack) { if (!$('body').lrValidform()) { return false; } @@ -196,7 +216,7 @@ var bootstrap = function ($, learun) { //姓名重复提示 var EmpName = $('#EmpName').val(); $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/EmpInfo/GetEmpInfoEntitiesByEmpName?empName=' + EmpName, - function(data) { + function (data) { if (!!data.length && data.length > 0) { var num = data.length; if (!!keyValue) { @@ -209,14 +229,14 @@ var bootstrap = function ($, learun) { } if (num > 0) { learun.layerConfirm('系统中姓名为' + EmpName + '的教师已经有' + num + '名,是否确认保存?', - function(res) { + function (res) { if (res) { $.lrSaveForm( top.$.rootUrl + '/EducationalAdministration/EmpInfo/SaveForm?keyValue=' + keyValue, postDatas, - function(res) { + function (res) { // 保存成功后才回调 if (!!callBack) { callBack(); @@ -229,7 +249,7 @@ var bootstrap = function ($, learun) { } $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/EmpInfo/SaveForm?keyValue=' + keyValue, postDatas, - function(res) { + function (res) { // 保存成功后才回调 if (!!callBack) { callBack(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.cshtml index cad878572..5485ad9f6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.cshtml @@ -23,9 +23,9 @@
@*
-
系部
-
-
*@ +
系部
+
+
*@
部门
@@ -62,6 +62,14 @@
职工状态
+
+
编制类别
+
+
+
+
用工类型
+
+
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 31097451c..fcd9ac5fe 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, 700); + }, 330, 700); $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); $('#ProvinceNo').lrDataSourceSelect({ code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', @@ -74,6 +74,27 @@ var bootstrap = function ($, learun) { }); //职工状态 $('#IsInActiveStatus').lrDataItemSelect({ code: 'JobStatus' }); + //编制类别 + $('#CompilationCategory').lrDataItemSelect({ + code: 'CompilationCategory', select: function (item) { + if (!!item && item.id == "02") {//编外 + //用工类型 + $('#EmployType').lrselectRefresh({ + url: '/LR_SystemModule/DataItem/GetDetailList', + param: { itemCode: 'EmployType' }, + value: 'F_ItemValue', + text: 'F_ItemName' + }); + } else { + $('#EmployType').lrselectRefresh({ + url: "", + data: [] + }); + } + } + }); + //用工类型 + $('#EmployType').lrselect(); // 刷新 $('#lr_refresh').on('click', function () { location.reload(); diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoEntity.cs index 96839dc85..0a6dc0df2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoEntity.cs @@ -585,6 +585,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// [Column("PROFESSIONALTITLEGETTIME")] public DateTime? ProfessionalTitleGetTime { get; set; } + /// + /// 用工类型 + /// + [Column("EMPLOYTYPE")] + public string EmployType { get; set; } #endregion 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 819953367..8e412e3eb 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 @@ -132,6 +132,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration dp.Add("IsInActiveStatus", queryParam["IsInActiveStatus"].ToString(), DbType.String); strSql.Append(" AND t.IsInActiveStatus = @IsInActiveStatus "); } + if (!queryParam["CompilationCategory"].IsEmpty())//编制类别 + { + dp.Add("CompilationCategory", queryParam["CompilationCategory"].ToString(), DbType.String); + strSql.Append(" AND t.CompilationCategory = @CompilationCategory "); + } + if (!queryParam["EmployType"].IsEmpty())//用工类型 + { + dp.Add("EmployType", queryParam["EmployType"].ToString(), DbType.String); + strSql.Append(" AND t.EmployType = @EmployType "); + } return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp, pagination); } catch (Exception ex) From d4d56c077da65a07276553bf4bf12bc9d4b7ef30 Mon Sep 17 00:00:00 2001 From: dyy <18335927079@163.com> Date: Thu, 13 May 2021 16:15:29 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91?= =?UTF-8?q?=E6=95=99=E5=B8=88=E4=BF=A1=E6=81=AF=E7=AE=A1=E7=90=86=EF=BC=9A?= =?UTF-8?q?=E6=89=93=E5=8D=B0=EF=BC=9A=E6=9C=AC=E4=BA=BA=E7=AE=80=E5=8E=86?= =?UTF-8?q?-=E6=94=B9=E6=88=90-=E5=B7=A5=E4=BD=9C=E7=BB=8F=E5=8E=86?= =?UTF-8?q?=EF=BC=9B=E4=BF=AE=E6=94=B9=E5=92=8C=E5=BD=95=E5=85=A5=EF=BC=9A?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=AE=80=E5=8E=86-=E6=94=B9=E6=88=90-?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=BB=8F=E5=8E=86=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml | 2 +- .../Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 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 b6d40d429..8c1f1934a 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 @@ -34,7 +34,7 @@
  • 教育经历
  • 专业技术职务经历
  • 工人技术等级经历
  • -
  • 工作简历
  • +
  • 工作经历
  • 家庭情况
  • diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml index 7922d33e4..57ad6fbd4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml @@ -49,7 +49,7 @@ @Model.JobTitle - 本人简历 + 工作经历 @foreach (var item in Model.PM_ResumeList) {