From de0a94b5df5fc9720c66a340a1c999979998b4fc Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 18 Jul 2022 14:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E8=81=8C=E5=B7=A5=E6=8B=9B=E8=81=98?= =?UTF-8?q?=E8=AE=A1=E5=88=92-=E9=9C=80=E6=B1=82=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/TeacherRecruitPlan/Form.cshtml | 74 +++++++++--- .../Views/TeacherRecruitPlan/Form.js | 29 ++++- .../Views/TeacherRecruitPlan/Index.js | 109 +++++++++++++++--- .../TeacherRecruitPlanEntity.cs | 86 +++++++++++--- .../TeacherRecruitPlanService.cs | 10 +- 5 files changed, 256 insertions(+), 52 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Form.cshtml index e4eec4240..edb9202e2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Form.cshtml @@ -3,29 +3,77 @@ Layout = "~/Views/Shared/_Form.cshtml"; }
-
-
招聘时间*
- +
+
招聘单位名称*
+
+
+
+
主管部门名称*
+
-
-
招聘地点*
- +
+
岗位名称*
+
-
+
+
岗位类别*
+
+
+
招聘人数*
-
+
+
年龄*
+ +
+
+
学历*
+
+
+
+
学位*
+
+
+
+
编制数*
+ +
+
+
实有人数*
+ +
+
招聘专业*
-
-
要求
- +
+
政治面貌*
+
+
+
+
招聘时间*
+ +
+
+
资格要求
+ +
+
+
专业类别
+ +
+
+
考试形式
+ +
+
+
工作地点
+
-
+
备注
- +
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Form.js index a6d9ff454..bda07903b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Form.js @@ -15,13 +15,40 @@ var bootstrap = function ($, learun) { page.initData(); }, bind: function () { + //校区 + $('#Commpany').lrDataSourceSelect({ + code: 'company', value: 'f_companyid', text: 'f_fullname', + select: function (item) { + if (!!item) { + // 部门 + $('#Department').lrselectRefresh({ + type: 'tree', + // 是否允许搜索 + allowSearch: true, + // 访问数据接口地址 + url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', + // 访问数据接口参数 + param: { companyId: item.f_companyid, parentId: '0' } + }); + } + } + }); + $('#Department').lrselect({ allowSearch: true }); + $('#EmpSortNo').lrselect({ + data: [{ text: "管理岗", value: "0" }, { text: "教师岗", value: "1" }], + text: "text", + value: "value" + }) + $('#RecordInSchool').lrDataItemSelect({ code: 'RecordInSchool' }); + $('#PartyFaceNo').lrDataItemSelect({ code: 'BCdPartyFace' }); + $('#InitialDegree').lrDataItemSelect({ code: 'DegreeInSchool' }); }, initData: function () { if (!!keyValue) { $.lrSetForm(top.$.rootUrl + '/PersonnelManagement/TeacherRecruitPlan/GetFormData?keyValue=' + keyValue, function (data) { for (var id in data) { if (!!data[id].length && data[id].length > 0) { - $('#' + id ).jfGridSet('refreshdata', data[id]); + $('#' + id).jfGridSet('refreshdata', data[id]); } else { $('[data-table="' + id + '"]').lrSetFormData(data[id]); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Index.js index 1d1c72210..a7a6f98b9 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherRecruitPlan/Index.js @@ -22,12 +22,12 @@ var bootstrap = function ($, learun) { }); // 新增 $('#lr_add').on('click', function () { - learun.layerForm({ + learun.layerForm({ id: 'form', title: '新增', url: top.$.rootUrl + '/PersonnelManagement/TeacherRecruitPlan/Form', - width: 600, - height: 400, + width: 800, + height: 700, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } @@ -41,8 +41,8 @@ var bootstrap = function ($, learun) { id: 'form', title: '编辑', url: top.$.rootUrl + '/PersonnelManagement/TeacherRecruitPlan/Form?keyValue=' + keyValue, - width: 600, - height: 400, + width: 800, + height: 700, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } @@ -53,9 +53,9 @@ var bootstrap = function ($, learun) { $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('Id'); if (learun.checkrow(keyValue)) { - learun.layerConfirm('是否确认删除该项!', function (res) { + learun.layerConfirm('是否确认删除该项!', function (res) { if (res) { - learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/TeacherRecruitPlan/DeleteForm', { keyValue: keyValue}, function () { + learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/TeacherRecruitPlan/DeleteForm', { keyValue: keyValue }, function () { refreshGirdData(); }); } @@ -65,17 +65,94 @@ var bootstrap = function ($, learun) { }, // 初始化列表 initGird: function () { - $('#gridtable').lrAuthorizeJfGrid({ + $('#gridtable').jfGrid({ url: top.$.rootUrl + '/PersonnelManagement/TeacherRecruitPlan/GetPageList', headData: [ - { label: "招聘时间", name: "RecruitTime", width: 130, align: "left"}, - { label: "招聘地点", name: "RecruitAddress", width: 200, align: "left"}, - { label: "招聘人数", name: "RecruitNum", width: 100, align: "left"}, - { label: "招聘专业", name: "RecruitMajor", width: 200, align: "left"}, - { label: "要求", name: "Request", width: 200, align: "left"}, - { label: "备注", name: "Remark", width: 200, align: "left"}, + { + label: "招聘单位", name: "Commpany", width: 140, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', + key: value, + keyId: 'f_companyid', + callback: function (_data) { + callback(_data['f_fullname']); + } + }); + } + }, + { + label: "主管部门", name: "Department", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', + key: value, + keyId: 'id', + callback: function (_data) { + callback(_data['name']); + } + }); + } + }, + { label: "岗位名称", name: "TitleOfTechPost", width: 100, align: "left" }, + { + label: "岗位类别", name: "EmpSortNo", width: 80, align: "left", + formatter: function (cellvalue) { + if (cellvalue == 1) { + return "教师岗"; + } else { + return "管理岗"; + } + } + }, + { label: "编制数", name: "StaffSize", width: 50, align: "left" }, + { label: "招聘人数", name: "RecruitNum", width: 60, align: "left" }, + { label: "实有人数", name: "ActualSize", width: 60, align: "left" }, + { label: "年龄", name: "RecruitAge", width: 100, align: "left" }, + { + label: "学历", name: "RecordInSchool", width: 80, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'RecordInSchool', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { label: "专业", name: "RecruitMajor", width: 200, align: "left" }, + { + label: "学位", name: "InitialDegree", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'DegreeInSchool', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'BCdPartyFace', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { label: "资格要求", name: "Qualification", width: 200, align: "left" }, + { label: "专业类别", name: "MajorCategory", width: 200, align: "left" }, + { label: "考试形式", name: "TestType", width: 200, align: "left" }, + { label: "工作地点", name: "JobAddress", width: 200, align: "left" }, + { label: "备注", name: "Remark", width: 300, align: "left" }, ], - mainId:'Id', + mainId: 'Id', isPage: true, sidx: 'RecruitTime', sord: 'desc' @@ -84,7 +161,7 @@ var bootstrap = function ($, learun) { }, search: function (param) { param = param || {}; - $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; refreshGirdData = function () { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherRecruitPlan/TeacherRecruitPlanEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherRecruitPlan/TeacherRecruitPlanEntity.cs index f0b57d152..bc0163802 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherRecruitPlan/TeacherRecruitPlanEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherRecruitPlan/TeacherRecruitPlanEntity.cs @@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement /// 日 期:2020-02-10 10:51 /// 描 述:教职工招聘计划 /// - public class TeacherRecruitPlanEntity + public class TeacherRecruitPlanEntity { #region 实体成员 /// @@ -25,30 +25,90 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement [Column("RECRUITTIME")] public DateTime? RecruitTime { get; set; } /// - /// 招聘地点 + /// 招聘专业 + /// + [Column("RECRUITMAJOR")] + public string RecruitMajor { get; set; } + /// + /// 招聘单位 + /// + [Column("COMMPANY")] + public string Commpany { get; set; } + /// + /// 招聘时间 + /// + [Column("DEPARTMENT")] + public string Department { get; set; } + /// + /// 招聘时间 /// - [Column("RECRUITADDRESS")] - public string RecruitAddress { get; set; } + [Column("TITLEOFTECHPOST")] + public string TitleOfTechPost { get; set; } /// - /// 招聘人数 + /// 招聘时间 + /// + [Column("EMPSORTNO")] + public string EmpSortNo { get; set; } + /// + /// 招聘时间 /// [Column("RECRUITNUM")] public int? RecruitNum { get; set; } /// - /// 招聘专业 + /// 招聘时间 /// - [Column("RECRUITMAJOR")] - public string RecruitMajor { get; set; } + [Column("ACTUALSIZE")] + public int? ActualSize { get; set; } + /// + /// 年龄 + /// + [Column("RECRUITAGE")] + public string RecruitAge { get; set; } + /// + /// 学位 + /// + [Column("RECORDINSCHOOL")] + public string RecordInSchool { get; set; } + /// + /// 招聘时间 + /// + [Column("INITIALDEGREE")] + public string InitialDegree { get; set; } + /// + /// 政治面貌 + /// + [Column("PARTYFACENO")] + public string PartyFaceNo { get; set; } + /// + /// 招聘时间 + /// + [Column("QUALIFICATION")] + public string Qualification { get; set; } + /// + /// 专业 + /// + [Column("MAJORCATEGORY")] + public string MajorCategory { get; set; } + /// + /// 招聘时间 + /// + [Column("TESTTYPE")] + public string TestType { get; set; } /// - /// 要求 + /// 招聘时间 /// - [Column("REQUEST")] - public string Request { get; set; } + [Column("StaffSize")] + public int? StaffSize { get; set; } /// - /// 备注 + /// 招聘时间 /// - [Column("REMARK")] + [Column("Remark")] public string Remark { get; set; } + /// + /// 工作地址 + /// + [Column("JOBADDRESS")] + public string JobAddress { get; set; } #endregion #region 扩展操作 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherRecruitPlan/TeacherRecruitPlanService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherRecruitPlan/TeacherRecruitPlanService.cs index 8a4da1a66..1df6cc726 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherRecruitPlan/TeacherRecruitPlanService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherRecruitPlan/TeacherRecruitPlanService.cs @@ -30,15 +30,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement { var strSql = new StringBuilder(); strSql.Append("SELECT "); - strSql.Append(@" - t.Id, - t.RecruitTime, - t.RecruitAddress, - t.RecruitNum, - t.RecruitMajor, - t.Request, - t.Remark - "); + strSql.Append(@" * "); strSql.Append(" FROM TeacherRecruitPlan t "); strSql.Append(" WHERE 1=1 "); var queryParam = queryJson.ToJObject();