diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WorkStaffController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WorkStaffController.cs
new file mode 100644
index 000000000..166d10e7e
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WorkStaffController.cs
@@ -0,0 +1,117 @@
+using Learun.Util;
+using System.Data;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using System.Web.Mvc;
+using System.Collections.Generic;
+
+namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-09-09 11:42
+ /// 描 述:公开选调工作人员报名表
+ ///
+ public class WorkStaffController : MvcControllerBase
+ {
+ private WorkStaffIBLL workStaffIBLL = new WorkStaffBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = workStaffIBLL.GetPageList(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ /// 主键
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormData(string keyValue)
+ {
+ var WorkStaffData = workStaffIBLL.GetWorkStaffEntity( keyValue );
+ var jsonData = new {
+ WorkStaff = WorkStaffData,
+ };
+ return Success(jsonData);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ workStaffIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue, string strEntity)
+ {
+ WorkStaffEntity entity = strEntity.ToObject();
+ workStaffIBLL.SaveEntity(keyValue,entity);
+ if (string.IsNullOrEmpty(keyValue))
+ {
+ }
+ return Success("保存成功!");
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Form.cshtml
new file mode 100644
index 000000000..eeaca88d8
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Form.cshtml
@@ -0,0 +1,83 @@
+@{
+ ViewBag.Title = "公开选调工作人员报名表";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/WorkStaff/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Form.js
new file mode 100644
index 000000000..a8da52bd2
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Form.js
@@ -0,0 +1,50 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2022-09-09 11:42
+ * 描 述:公开选调工作人员报名表
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ },
+ initData: function () {
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/WorkStaff/GetFormData?keyValue=' + keyValue, function (data) {
+ for (var id in data) {
+ if (!!data[id].length && data[id].length > 0) {
+ $('#' + id ).jfGridSet('refreshdata', data[id]);
+ }
+ else {
+ $('[data-table="' + id + '"]').lrSetFormData(data[id]);
+ }
+ }
+ });
+ }
+ }
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {
+ strEntity: JSON.stringify($('body').lrGetFormData())
+ };
+ $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/WorkStaff/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Index.cshtml
new file mode 100644
index 000000000..f89c45314
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Index.cshtml
@@ -0,0 +1,45 @@
+@{
+ ViewBag.Title = "公开选调工作人员报名表";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/WorkStaff/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Index.js
new file mode 100644
index 000000000..8bff2162e
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Index.js
@@ -0,0 +1,109 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2022-09-09 11:42
+ * 描 述:公开选调工作人员报名表
+ */
+var refreshGirdData;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 新增
+ $('#lr_add').on('click', function () {
+ learun.layerForm({
+ id: 'form',
+ title: '新增',
+ url: top.$.rootUrl + '/EducationalAdministration/WorkStaff/Form',
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ // 编辑
+ $('#lr_edit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerForm({
+ id: 'form',
+ title: '编辑',
+ url: top.$.rootUrl + '/EducationalAdministration/WorkStaff/Form?keyValue=' + keyValue,
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 删除
+ $('#lr_delete').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认删除该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/WorkStaff/DeleteForm', { keyValue: keyValue}, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ // 打印
+ $('#lr_print').on('click', function () {
+ $('#gridtable').jqprintTable();
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').lrAuthorizeJfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/WorkStaff/GetPageList',
+ headData: [
+ { label: "名称", name: "Name", width: 100, align: "left"},
+ { label: "性别", name: "Gender", width: 100, align: "left"},
+ { label: "民族", name: "Nationality", width: 100, align: "left"},
+ { label: "出生年月日", name: "Birthday", width: 100, align: "left"},
+ { label: "参加工作时间", name: "jobTime", width: 100, align: "left"},
+ { label: "入党时间", name: "PartyTime", width: 100, align: "left"},
+ { label: "籍贯", name: "Origin", width: 100, align: "left"},
+ { label: "健康状况", name: "HealthStatus", width: 100, align: "left"},
+ { label: "有何专长", name: "Speciality", width: 100, align: "left"},
+ { label: "现单位及职务", name: "NowComPany", width: 100, align: "left"},
+ { label: "报名岗位", name: "ApplyPost", width: 100, align: "left"},
+ { label: "全日制教育", name: "TimeEducation", width: 100, align: "left"},
+ { label: "毕业院校及专业", name: "T_SchoolMajor", width: 100, align: "left"},
+ { label: "在职教育", name: "ServiceEducation", width: 100, align: "left"},
+ { label: "通讯地址", name: "Address", width: 100, align: "left"},
+ { label: "手机号码", name: "Mobile", width: 100, align: "left"},
+ { label: "个人简历", name: "Resume", width: 100, align: "left"},
+ { label: "奖惩情况", name: "RandP", width: 100, align: "left"},
+ { label: "近三年年度考核情况", name: "Triennium", width: 100, align: "left"},
+ ],
+ mainId:'ID',
+ isPage: true
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ $('#gridtable').jfGridSet('reload');
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
index c2b1a4d95..4fc98a822 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
@@ -827,6 +827,7 @@
+
@@ -6307,6 +6308,10 @@
+
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs
index 6585582ae..69dfe410d 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs
@@ -6,6 +6,7 @@ using System;
using Learun.Application.Base.SystemModule;
using System.IO;
using System.Web.Mvc;
+using Learun.Application.WebApi.Modules;
namespace Learun.Application.WebApi
{
@@ -19,6 +20,7 @@ namespace Learun.Application.WebApi
public class RecruiterPeopleApi : BaseNoLoginApi
{
private HiringRegistrationIBLL hiringRegistrationIBLL = new HiringRegistrationBLL();
+ private WorkStaffIBLL workStaffIBLL = new WorkStaffBLL();
private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL();
///
@@ -34,6 +36,7 @@ namespace Learun.Application.WebApi
Get["/down"] = DownAnnexesFile;
Post["/upload"] = Upload;
Post["/save"] = SaveForm;
+ Post["/saveStaff"] = SaveStaffForm;
}
#region 获取数据
@@ -108,6 +111,19 @@ namespace Learun.Application.WebApi
hiringRegistrationIBLL.SaveEntity(parameter.keyValue, entity);
return Success("保存成功!");
}
+
+ ///
+ /// 公开选调工作人员报名表
+ ///
+ ///
+ ///
+ public Response SaveStaffForm(dynamic _)
+ {
+ var model = this.GetReqData();
+ var entity = workStaffIBLL.GetWorkStaffEntity(model.keyValue);
+ workStaffIBLL.SaveEntity(model.keyValue, entity, model.WorkStaffSonEntities);
+ return Success("保存成功!");
+ }
#endregion
#region 上传附件图片文件
@@ -204,6 +220,7 @@ namespace Learun.Application.WebApi
{
public string keyValue { get; set; }
public string strEntity { get; set; }
+ public List WorkStaffSonEntities { get; set; }
}
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/WorkStaffMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/WorkStaffMap.cs
new file mode 100644
index 000000000..130f72038
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/WorkStaffMap.cs
@@ -0,0 +1,29 @@
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using System.Data.Entity.ModelConfiguration;
+
+namespace Learun.Application.Mapping
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-09-09 11:42
+ /// 描 述:公开选调工作人员报名表
+ ///
+ public class WorkStaffMap : EntityTypeConfiguration
+ {
+ public WorkStaffMap()
+ {
+ #region 表、主键
+ //表
+ this.ToTable("WORKSTAFF");
+ //主键
+ this.HasKey(t => t.ID);
+ #endregion
+
+ #region 配置关系
+ #endregion
+ }
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
index cf32186be..8424c3f8c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
@@ -600,6 +600,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffBLL.cs
new file mode 100644
index 000000000..c7b812501
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffBLL.cs
@@ -0,0 +1,149 @@
+using Learun.Util;
+using System;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-09-09 11:42
+ /// 描 述:公开选调工作人员报名表
+ ///
+ public class WorkStaffBLL : WorkStaffIBLL
+ {
+ private WorkStaffService workStaffService = new WorkStaffService();
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return workStaffService.GetPageList(pagination, queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取WorkStaff表实体数据
+ ///
+ /// 主键
+ ///
+ public WorkStaffEntity GetWorkStaffEntity(string keyValue)
+ {
+ try
+ {
+ return workStaffService.GetWorkStaffEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ workStaffService.DeleteEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ public void SaveEntity(string keyValue, WorkStaffEntity entity)
+ {
+ try
+ {
+ workStaffService.SaveEntity(keyValue, entity);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ public void SaveEntity(string keyValue, WorkStaffEntity entity,List entitys)
+ {
+ try
+ {
+ workStaffService.SaveEntity(keyValue, entity, entitys);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffEntity.cs
new file mode 100644
index 000000000..90ad0c021
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffEntity.cs
@@ -0,0 +1,155 @@
+using Learun.Util;
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-09-09 11:42
+ /// 描 述:公开选调工作人员报名表
+ ///
+ public class WorkStaffEntity
+ {
+ #region 实体成员
+ ///
+ /// ID
+ ///
+ [Column("ID")]
+ public string ID { get; set; }
+ ///
+ /// Name
+ ///
+ [Column("NAME")]
+ public string Name { get; set; }
+ ///
+ /// Gender
+ ///
+ [Column("GENDER")]
+ public string Gender { get; set; }
+ ///
+ /// Head
+ ///
+ [Column("HEAD")]
+ public string Head { get; set; }
+ ///
+ /// 民族
+ ///
+ [Column("NATIONALITY")]
+ public string Nationality { get; set; }
+ ///
+ /// Birthday
+ ///
+ [Column("BIRTHDAY")]
+ public DateTime? Birthday { get; set; }
+ ///
+ /// jobTime
+ ///
+ [Column("JOBTIME")]
+ public DateTime? jobTime { get; set; }
+ ///
+ /// 入党时间
+ ///
+ [Column("PARTYTIME")]
+ public DateTime? PartyTime { get; set; }
+ ///
+ /// 籍贯
+ ///
+ [Column("ORIGIN")]
+ public string Origin { get; set; }
+ ///
+ /// 健康状况
+ ///
+ [Column("HEALTHSTATUS")]
+ public string HealthStatus { get; set; }
+ ///
+ /// 有何专长
+ ///
+ [Column("SPECIALITY")]
+ public string Speciality { get; set; }
+ ///
+ /// 现工作单位及职务
+ ///
+ [Column("NOWCOMPANY")]
+ public string NowComPany { get; set; }
+ ///
+ /// 报名岗位
+ ///
+ [Column("APPLYPOST")]
+ public string ApplyPost { get; set; }
+ ///
+ /// 全日制教育
+ ///
+ [Column("TIMEEDUCATION")]
+ public string TimeEducation { get; set; }
+ ///
+ /// 毕业院校系及专业
+ ///
+ [Column("T_SCHOOLMAJOR")]
+ public string T_SchoolMajor { get; set; }
+ ///
+ /// 在职教育
+ ///
+ [Column("SERVICEEDUCATION")]
+ public string ServiceEducation { get; set; }
+ ///
+ /// 毕业院校系及专业
+ ///
+ [Column("S_SCHOOLMAJOR")]
+ public string S_SchoolMajor { get; set; }
+ ///
+ /// 通讯地址
+ ///
+ [Column("ADDRESS")]
+ public string Address { get; set; }
+ ///
+ /// 手机账号
+ ///
+ [Column("MOBILE")]
+ public string Mobile { get; set; }
+ ///
+ /// 个人简历
+ ///
+ [Column("RESUME")]
+ public string Resume { get; set; }
+ ///
+ /// 奖惩情况
+ ///
+ [Column("RANDP")]
+ public string RandP { get; set; }
+ ///
+ /// 近三年年度考核情况
+ ///
+ [Column("TRIENNIUM")]
+ public string Triennium { get; set; }
+ ///
+ /// Remark
+ ///
+ [Column("REMARK")]
+ public string Remark { get; set; }
+ #endregion
+
+ #region 扩展操作
+ ///
+ /// 新增调用
+ ///
+ public void Create()
+ {
+ this.ID = Guid.NewGuid().ToString();
+ }
+ ///
+ /// 编辑调用
+ ///
+ ///
+ public void Modify(string keyValue)
+ {
+ this.ID = keyValue;
+ }
+ #endregion
+ #region 扩展字段
+ #endregion
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffIBLL.cs
new file mode 100644
index 000000000..4375cdf6d
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffIBLL.cs
@@ -0,0 +1,50 @@
+using Learun.Util;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-09-09 11:42
+ /// 描 述:公开选调工作人员报名表
+ ///
+ public interface WorkStaffIBLL
+ {
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ ///
+ IEnumerable GetPageList(Pagination pagination, string queryJson);
+ ///
+ /// 获取WorkStaff表实体数据
+ ///
+ /// 主键
+ ///
+ WorkStaffEntity GetWorkStaffEntity(string keyValue);
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ void DeleteEntity(string keyValue);
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ void SaveEntity(string keyValue, WorkStaffEntity entity);
+
+ void SaveEntity(string keyValue, WorkStaffEntity entity,List entitysEntities);
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffService.cs
new file mode 100644
index 000000000..dcecb17ab
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffService.cs
@@ -0,0 +1,236 @@
+using Dapper;
+using Learun.DataBase.Repository;
+using Learun.Util;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Text;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2022-09-09 11:42
+ /// 描 述:公开选调工作人员报名表
+ ///
+ public class WorkStaffService : RepositoryFactory
+ {
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ var strSql = new StringBuilder();
+ strSql.Append("SELECT ");
+ strSql.Append(@"
+ t.ID,
+ t.Name,
+ t.Gender,
+ t.Nationality,
+ t.Birthday,
+ t.jobTime,
+ t.PartyTime,
+ t.Origin,
+ t.HealthStatus,
+ t.Speciality,
+ t.NowComPany,
+ t.ApplyPost,
+ t.TimeEducation,
+ t.T_SchoolMajor,
+ t.ServiceEducation,
+ t.Address,
+ t.Mobile,
+ t.Resume,
+ t.RandP,
+ t.Triennium
+ ");
+ strSql.Append(" FROM WorkStaff t ");
+ strSql.Append(" WHERE 1=1 ");
+ var queryParam = queryJson.ToJObject();
+ // 虚拟参数
+ var dp = new DynamicParameters(new { });
+ if (!queryParam["Name"].IsEmpty())
+ {
+ dp.Add("Name", "%" + queryParam["Name"].ToString() + "%", DbType.String);
+ strSql.Append(" AND t.Name Like @Name ");
+ }
+ if (!queryParam["Gender"].IsEmpty())
+ {
+ dp.Add("Gender", "%" + queryParam["Gender"].ToString() + "%", DbType.String);
+ strSql.Append(" AND t.Gender Like @Gender ");
+ }
+ if (!queryParam["Nationality"].IsEmpty())
+ {
+ dp.Add("Nationality", "%" + queryParam["Nationality"].ToString() + "%", DbType.String);
+ strSql.Append(" AND t.Nationality Like @Nationality ");
+ }
+ return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp, pagination);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取WorkStaff表实体数据
+ ///
+ /// 主键
+ ///
+ public WorkStaffEntity GetWorkStaffEntity(string keyValue)
+ {
+ try
+ {
+ return this.BaseRepository("CollegeMIS").FindEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ this.BaseRepository("CollegeMIS").Delete(t => t.ID == keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ public void SaveEntity(string keyValue, WorkStaffEntity entity)
+ {
+ try
+ {
+ if (!string.IsNullOrEmpty(keyValue))
+ {
+ entity.Modify(keyValue);
+ this.BaseRepository("CollegeMIS").Update(entity);
+ }
+ else
+ {
+ entity.Create();
+ this.BaseRepository("CollegeMIS").Insert(entity);
+ }
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ public void SaveEntity(string keyValue, WorkStaffEntity entity, List entities)
+ {
+
+ var db = this.BaseRepository("CollegeMIS").BeginTrans();
+ try
+ {
+ if (!string.IsNullOrEmpty(keyValue))
+ {
+ var workStaff = GetWorkStaffEntity(keyValue);
+ entity.Modify(keyValue);
+ db.Update(entity);
+
+ if (null != entities)
+ {
+ db.Delete(t => t.StaffId == entity.ID);
+ foreach (WorkStaffSonEntity item in entities)
+ {
+ item.Create();
+ item.StaffId = entity.ID;
+ db.Insert(item);
+ }
+ }
+ }
+ else
+ {
+ entity.Create();
+ db.Insert(entity);
+ if (null != entities)
+ {
+ foreach (WorkStaffSonEntity item in entities)
+ {
+ item.Create();
+ item.StaffId = entity.ID;
+ db.Insert(item);
+ }
+ }
+ }
+ db.Commit();
+ }
+ catch (Exception ex)
+ {
+ db.Rollback();
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaffSon/WorkStaffSonEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaffSon/WorkStaffSonEntity.cs
index ade69bab3..8bc2bcf82 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaffSon/WorkStaffSonEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaffSon/WorkStaffSonEntity.cs
@@ -75,9 +75,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 编辑调用
///
///
- public void Modify( keyValue)
+ public void Modify()
{
- this. = keyValue;
+ this.ID = Guid.NewGuid().ToString();
}
#endregion
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
index 034351eeb..bdf780533 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
@@ -1824,6 +1824,10 @@
+
+
+
+