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)