@@ -0,0 +1,118 @@ | |||
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 | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-09-09 13:23 | |||
/// 描 述:人才引进 | |||
/// </summary> | |||
public class TalentsJoinInfoController : MvcControllerBase | |||
{ | |||
private TalentsJoinInfoIBLL talentsJoinInfoIBLL = new TalentsJoinInfoBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = talentsJoinInfoIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var TalentsJoinInfoData = talentsJoinInfoIBLL.GetTalentsJoinInfoEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
TalentsJoinInfo = TalentsJoinInfoData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
talentsJoinInfoIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="strEntity">实体</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
TalentsJoinInfoEntity entity = strEntity.ToObject<TalentsJoinInfoEntity>(); | |||
talentsJoinInfoIBLL.SaveEntity(keyValue, entity); | |||
if (keyValue != null) | |||
{ | |||
} | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,99 @@ | |||
@{ | |||
ViewBag.Title = "人才引进"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-3 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">姓名</div> | |||
<input id="Name" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-3 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">性别</div> | |||
<input id="Gender" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-3 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">政治面貌</div> | |||
<input id="Political" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-3 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">籍贯</div> | |||
<input id="Origin" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#Origin').trigger('change'); } })" /> | |||
</div> | |||
<div class="col-xs-3 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">出身年月</div> | |||
<input id="Birthday" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#Birthday').trigger('change'); } })" /> | |||
</div> | |||
<div class="col-xs-3 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">民族</div> | |||
<input id="Nationality" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-3 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">文化程度</div> | |||
<input id="CultureDegree" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-3 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">婚姻状况</div> | |||
<input id="Marriage" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">毕业院校</div> | |||
<input id="WilliamsSchool" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">所学专业</div> | |||
<input id="Major" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">毕业学校</div> | |||
<input id="GraduateTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#GraduateTime').trigger('change'); } })" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">参加工作时间</div> | |||
<input id="JobTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#JobTime').trigger('change'); } })" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">专业技术职称</div> | |||
<input id="Professiona" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">学位</div> | |||
<input id="Degree" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">职业资格证</div> | |||
<input id="NVQ" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">现工作单位</div> | |||
<input id="NowCompany" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">职务</div> | |||
<input id="Position" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">所报岗位</div> | |||
<input id="Post" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">通讯地址</div> | |||
<input id="Address" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">身份证号</div> | |||
<input id="IdentityCardNo" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">联系电话</div> | |||
<input id="Phone" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">手机</div> | |||
<input id="Mobile" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="TalentsJoinInfo" > | |||
<div class="lr-form-item-title">简历</div> | |||
<textarea id="Resume" class="form-control" style="height:100px;" ></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.js") |
@@ -0,0 +1,50 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-09-09 13:23 | |||
* 描 述:人才引进 | |||
*/ | |||
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/TalentsJoinInfo/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/TalentsJoinInfo/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,61 @@ | |||
@{ | |||
ViewBag.Title = "人才引进"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout " > | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">姓名</div> | |||
<input id="Name" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">性别</div> | |||
<input id="Gender" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">政治面貌</div> | |||
<input id="Political" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">民族</div> | |||
<input id="Nationality" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">文化程度</div> | |||
<input id="CultureDegree" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">婚姻状况</div> | |||
<input id="Marriage" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">所学专业</div> | |||
<input id="Major" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TalentsJoinInfo/Index.js") |
@@ -0,0 +1,113 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-09-09 13:23 | |||
* 描 述:人才引进 | |||
*/ | |||
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/TalentsJoinInfo/Form', | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('diagram_id'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/TalentsJoinInfo/Form?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('diagram_id'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/TalentsJoinInfo/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/TalentsJoinInfo/GetPageList', | |||
headData: [ | |||
{ label: "姓名", name: "Name", width: 100, align: "left"}, | |||
{ label: "性别", name: "Gender", width: 100, align: "left"}, | |||
{ label: "政治面貌", name: "Political", width: 100, align: "left"}, | |||
{ label: "籍贯", name: "Origin", width: 100, align: "left"}, | |||
{ label: "出身年月", name: "Birthday", width: 100, align: "left"}, | |||
{ label: "民族", name: "Nationality", width: 100, align: "left"}, | |||
{ label: "文化程度", name: "CultureDegree", width: 100, align: "left"}, | |||
{ label: "婚姻状况", name: "Marriage", width: 100, align: "left"}, | |||
{ label: "毕业院校", name: "WilliamsSchool", width: 100, align: "left"}, | |||
{ label: "所学专业", name: "Major", width: 100, align: "left"}, | |||
{ label: "毕业学校", name: "GraduateTime", width: 100, align: "left"}, | |||
{ label: "参加工作时间", name: "JobTime", width: 100, align: "left"}, | |||
{ label: "专业技术职称", name: "Professiona", width: 100, align: "left"}, | |||
{ label: "学位", name: "Degree", width: 100, align: "left"}, | |||
{ label: "职业资格证", name: "NVQ", width: 100, align: "left"}, | |||
{ label: "现工作单位", name: "NowCompany", width: 100, align: "left"}, | |||
{ label: "职务", name: "Position", width: 100, align: "left"}, | |||
{ label: "所报岗位", name: "Post", width: 100, align: "left"}, | |||
{ label: "通讯地址", name: "Address", width: 100, align: "left"}, | |||
{ label: "身份证号", name: "IdentityCardNo", width: 100, align: "left"}, | |||
{ label: "联系电话", name: "Phone", width: 100, align: "left"}, | |||
{ label: "手机", name: "Mobile", width: 100, align: "left"}, | |||
{ label: "简历", name: "Resume", width: 100, align: "left"}, | |||
], | |||
mainId:'diagram_id', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -828,6 +828,7 @@ | |||
<Compile Include="Areas\LR_Desktop\Controllers\EnrollDataController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\HiringRegistrationController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\WorkStaffController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\TalentsJoinInfoController.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | |||
@@ -6312,6 +6313,10 @@ | |||
<Content Include="Areas\EducationalAdministration\Views\WorkStaff\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\WorkStaff\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\WorkStaff\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\TalentsJoinInfo\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\TalentsJoinInfo\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\TalentsJoinInfo\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\TalentsJoinInfo\Form.js" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\EducationalAdministration\Views\HomeStatistics\" /> | |||
@@ -21,6 +21,8 @@ namespace Learun.Application.WebApi | |||
{ | |||
private HiringRegistrationIBLL hiringRegistrationIBLL = new HiringRegistrationBLL(); | |||
private WorkStaffIBLL workStaffIBLL = new WorkStaffBLL(); | |||
private TalentsJoinInfoIBLL talentsJoinInfoIBLL = new TalentsJoinInfoBLL(); | |||
private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL(); | |||
/// <summary> | |||
@@ -36,6 +38,7 @@ namespace Learun.Application.WebApi | |||
Get["/down"] = DownAnnexesFile; | |||
Post["/upload"] = Upload; | |||
Post["/save"] = SaveForm; | |||
Post["/saveTalents"] = SaveTalentsForm; | |||
Post["/saveStaff"] = SaveStaffForm; | |||
} | |||
#region 获取数据 | |||
@@ -112,6 +115,18 @@ namespace Learun.Application.WebApi | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response SaveTalentsForm(dynamic _) | |||
{ | |||
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); | |||
TalentsJoinInfoEntity entity = parameter.strEntity.ToObject<TalentsJoinInfoEntity>(); | |||
talentsJoinInfoIBLL.SaveEntity(parameter.keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 公开选调工作人员报名表 | |||
/// <param name="_"></param> | |||
@@ -0,0 +1,29 @@ | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Data.Entity.ModelConfiguration; | |||
namespace Learun.Application.Mapping | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-09-09 13:23 | |||
/// 描 述:人才引进 | |||
/// </summary> | |||
public class TalentsJoinInfoMap : EntityTypeConfiguration<TalentsJoinInfoEntity> | |||
{ | |||
public TalentsJoinInfoMap() | |||
{ | |||
#region 表、主键 | |||
//表 | |||
this.ToTable("TALENTSJOININFO"); | |||
//主键 | |||
this.HasKey(t => t.ID); | |||
#endregion | |||
#region 配置关系 | |||
#endregion | |||
} | |||
} | |||
} | |||
@@ -601,6 +601,7 @@ | |||
<Compile Include="EducationalAdministration\HiringRegistrationMap.cs" /> | |||
<Compile Include="EducationalAdministration\WorkStaffSonMap.cs" /> | |||
<Compile Include="EducationalAdministration\WorkStaffMap.cs" /> | |||
<Compile Include="EducationalAdministration\TalentsJoinInfoMap.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||
@@ -0,0 +1,125 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-09-09 13:23 | |||
/// 描 述:人才引进 | |||
/// </summary> | |||
public class TalentsJoinInfoBLL : TalentsJoinInfoIBLL | |||
{ | |||
private TalentsJoinInfoService talentsJoinInfoService = new TalentsJoinInfoService(); | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<TalentsJoinInfoEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return talentsJoinInfoService.GetPageList(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取TalentsJoinInfo表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public TalentsJoinInfoEntity GetTalentsJoinInfoEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return talentsJoinInfoService.GetTalentsJoinInfoEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void DeleteEntity( string keyValue) | |||
{ | |||
try | |||
{ | |||
talentsJoinInfoService.DeleteEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
/// <returns></returns> | |||
public void SaveEntity(string keyValue, TalentsJoinInfoEntity entity) | |||
{ | |||
try | |||
{ | |||
talentsJoinInfoService.SaveEntity(keyValue, entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,175 @@ | |||
using Learun.Util; | |||
using System; | |||
using System.ComponentModel.DataAnnotations.Schema; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-09-09 13:23 | |||
/// 描 述:人才引进 | |||
/// </summary> | |||
public class TalentsJoinInfoEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// ID | |||
/// </summary> | |||
[Column("ID")] | |||
public string ID { get; set; } | |||
/// <summary> | |||
/// 序号 | |||
/// </summary> | |||
[Column("BMNUM")] | |||
public string BmNum { get; set; } | |||
/// <summary> | |||
/// Head | |||
/// </summary> | |||
[Column("HEAD")] | |||
public string Head { get; set; } | |||
/// <summary> | |||
/// Name | |||
/// </summary> | |||
[Column("NAME")] | |||
public string Name { get; set; } | |||
/// <summary> | |||
/// Gender | |||
/// </summary> | |||
[Column("GENDER")] | |||
public string Gender { get; set; } | |||
/// <summary> | |||
/// 政治面貌 | |||
/// </summary> | |||
[Column("POLITICAL")] | |||
public string Political { get; set; } | |||
/// <summary> | |||
/// 籍贯 | |||
/// </summary> | |||
[Column("ORIGIN")] | |||
public string Origin { get; set; } | |||
/// <summary> | |||
/// 民族 | |||
/// </summary> | |||
[Column("NATIONALITY")] | |||
public string Nationality { get; set; } | |||
/// <summary> | |||
/// Birthday | |||
/// </summary> | |||
[Column("BIRTHDAY")] | |||
public DateTime? Birthday { get; set; } | |||
/// <summary> | |||
/// 文化程度 | |||
/// </summary> | |||
[Column("CULTUREDEGREE")] | |||
public string CultureDegree { get; set; } | |||
/// <summary> | |||
/// 婚姻状况 | |||
/// </summary> | |||
[Column("MARRIAGE")] | |||
public string Marriage { get; set; } | |||
/// <summary> | |||
/// 毕业学校 | |||
/// </summary> | |||
[Column("WILLIAMSSCHOOL")] | |||
public string WilliamsSchool { get; set; } | |||
/// <summary> | |||
/// 所学专业 | |||
/// </summary> | |||
[Column("MAJOR")] | |||
public string Major { get; set; } | |||
/// <summary> | |||
/// 毕业学校 | |||
/// </summary> | |||
[Column("GRADUATETIME")] | |||
public DateTime? GraduateTime { get; set; } | |||
/// <summary> | |||
/// 参加工作时间 | |||
/// </summary> | |||
[Column("JOBTIME")] | |||
public DateTime? JobTime { get; set; } | |||
/// <summary> | |||
/// 专业技术职称 | |||
/// </summary> | |||
[Column("PROFESSIONA")] | |||
public string Professiona { get; set; } | |||
/// <summary> | |||
/// 学位 | |||
/// </summary> | |||
[Column("DEGREE")] | |||
public string Degree { get; set; } | |||
/// <summary> | |||
/// 职业资格证 | |||
/// </summary> | |||
[Column("NVQ")] | |||
public string NVQ { get; set; } | |||
/// <summary> | |||
/// 现工作单位 | |||
/// </summary> | |||
[Column("NOWCOMPANY")] | |||
public string NowCompany { get; set; } | |||
/// <summary> | |||
/// 职务 | |||
/// </summary> | |||
[Column("POSITION")] | |||
public string Position { get; set; } | |||
/// <summary> | |||
/// Post | |||
/// </summary> | |||
[Column("POST")] | |||
public string Post { get; set; } | |||
/// <summary> | |||
/// 通讯地址 | |||
/// </summary> | |||
[Column("ADDRESS")] | |||
public string Address { get; set; } | |||
/// <summary> | |||
/// 身份证号 | |||
/// </summary> | |||
[Column("IDENTITYCARDNO")] | |||
public string IdentityCardNo { get; set; } | |||
/// <summary> | |||
/// 联系电话 | |||
/// </summary> | |||
[Column("PHONE")] | |||
public string Phone { get; set; } | |||
/// <summary> | |||
/// 手机 | |||
/// </summary> | |||
[Column("MOBILE")] | |||
public string Mobile { get; set; } | |||
/// <summary> | |||
/// Resume | |||
/// </summary> | |||
[Column("RESUME")] | |||
public string Resume { get; set; } | |||
/// <summary> | |||
/// Remark | |||
/// </summary> | |||
[Column("REMARK")] | |||
public string Remark { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
/// <summary> | |||
/// 新增调用 | |||
/// </summary> | |||
public void Create() | |||
{ | |||
this.ID = Guid.NewGuid().ToString(); | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
public void Modify(string keyValue) | |||
{ | |||
this.ID = keyValue; | |||
} | |||
#endregion | |||
#region 扩展字段 | |||
#endregion | |||
} | |||
} | |||
@@ -0,0 +1,48 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-09-09 13:23 | |||
/// 描 述:人才引进 | |||
/// </summary> | |||
public interface TalentsJoinInfoIBLL | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
IEnumerable<TalentsJoinInfoEntity> GetPageList(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取TalentsJoinInfo表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
TalentsJoinInfoEntity GetTalentsJoinInfoEntity(string keyValue); | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
void DeleteEntity(string keyValue); | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
void SaveEntity(string keyValue, TalentsJoinInfoEntity entity); | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,202 @@ | |||
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 | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-09-09 13:23 | |||
/// 描 述:人才引进 | |||
/// </summary> | |||
public class TalentsJoinInfoService : RepositoryFactory | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">查询参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<TalentsJoinInfoEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(@" | |||
t.diagram_id, | |||
t.Name, | |||
t.Gender, | |||
t.Political, | |||
t.Origin, | |||
t.Birthday, | |||
t.Nationality, | |||
t.CultureDegree, | |||
t.Marriage, | |||
t.WilliamsSchool, | |||
t.Major, | |||
t.GraduateTime, | |||
t.JobTime, | |||
t.Professiona, | |||
t.Degree, | |||
t.NVQ, | |||
t.NowCompany, | |||
t.Position, | |||
t.Post, | |||
t.Address, | |||
t.IdentityCardNo, | |||
t.Phone, | |||
t.Mobile, | |||
t.Resume | |||
"); | |||
strSql.Append(" FROM TalentsJoinInfo 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["Political"].IsEmpty()) | |||
{ | |||
dp.Add("Political", "%" + queryParam["Political"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.Political Like @Political "); | |||
} | |||
if (!queryParam["Nationality"].IsEmpty()) | |||
{ | |||
dp.Add("Nationality", "%" + queryParam["Nationality"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.Nationality Like @Nationality "); | |||
} | |||
if (!queryParam["CultureDegree"].IsEmpty()) | |||
{ | |||
dp.Add("CultureDegree", "%" + queryParam["CultureDegree"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.CultureDegree Like @CultureDegree "); | |||
} | |||
if (!queryParam["Marriage"].IsEmpty()) | |||
{ | |||
dp.Add("Marriage", "%" + queryParam["Marriage"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.Marriage Like @Marriage "); | |||
} | |||
if (!queryParam["Major"].IsEmpty()) | |||
{ | |||
dp.Add("Major", "%" + queryParam["Major"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.Major Like @Major "); | |||
} | |||
return this.BaseRepository("CollegeMIS").FindList<TalentsJoinInfoEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取TalentsJoinInfo表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public TalentsJoinInfoEntity GetTalentsJoinInfoEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<TalentsJoinInfoEntity>(keyValue.ToInt()); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
public void DeleteEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
this.BaseRepository("CollegeMIS").Delete<TalentsJoinInfoEntity>(t=>t.ID == keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="entity">实体</param> | |||
public void SaveEntity(string keyValue, TalentsJoinInfoEntity entity) | |||
{ | |||
try | |||
{ | |||
if (keyValue != null) | |||
{ | |||
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); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -31,28 +31,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
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(@" * "); | |||
strSql.Append(" FROM WorkStaff t "); | |||
strSql.Append(" WHERE 1=1 "); | |||
var queryParam = queryJson.ToJObject(); | |||
@@ -1828,6 +1828,10 @@ | |||
<Compile Include="EducationalAdministration\WorkStaff\WorkStaffService.cs" /> | |||
<Compile Include="EducationalAdministration\WorkStaff\WorkStaffBLL.cs" /> | |||
<Compile Include="EducationalAdministration\WorkStaff\WorkStaffIBLL.cs" /> | |||
<Compile Include="EducationalAdministration\TalentsJoinInfo\TalentsJoinInfoEntity.cs" /> | |||
<Compile Include="EducationalAdministration\TalentsJoinInfo\TalentsJoinInfoService.cs" /> | |||
<Compile Include="EducationalAdministration\TalentsJoinInfo\TalentsJoinInfoBLL.cs" /> | |||
<Compile Include="EducationalAdministration\TalentsJoinInfo\TalentsJoinInfoIBLL.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||