@@ -0,0 +1,136 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System.IO; | |||
using System; | |||
using Learun.Application.Base.SystemModule; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-09-05 16:23 | |||
/// 描 述:招聘人员报名 | |||
/// </summary> | |||
public class HiringRegistrationController : MvcControllerBase | |||
{ | |||
private HiringRegistrationIBLL hiringRegistrationIBLL = new HiringRegistrationBLL(); | |||
#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 = hiringRegistrationIBLL.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 HiringRegistrationData = hiringRegistrationIBLL.GetHiringRegistrationEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
HiringRegistration = HiringRegistrationData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
hiringRegistrationIBLL.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) | |||
{ | |||
HiringRegistrationEntity entity = strEntity.ToObject<HiringRegistrationEntity>(); | |||
var model = hiringRegistrationIBLL.GetIDCard(entity.IdentityCardNo); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
if (model != null) | |||
{ | |||
return Fail("身份证号已存在!"); | |||
} | |||
} | |||
else | |||
{ | |||
if (model != null && model.ID != keyValue) | |||
{ | |||
return Fail("身份证号已存在!"); | |||
} | |||
} | |||
hiringRegistrationIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,111 @@ | |||
@{ | |||
ViewBag.Title = "招聘人员报名"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">应聘单位<font face="宋体">*</font></div> | |||
<input id="Company" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">应聘岗位<font face="宋体">*</font></div> | |||
<input id="Post" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">报名序号<font face="宋体">*</font></div> | |||
<input id="BmNum" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">头像<font face="宋体">*</font></div> | |||
<div id="Head"></div> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">姓名<font face="宋体">*</font></div> | |||
<input id="Name" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">性别<font face="宋体">*</font></div> | |||
<div id="Gender" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">民族<font face="宋体">*</font></div> | |||
<input id="NationalityNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">出生日期<font face="宋体">*</font></div> | |||
<input id="Birthday" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#Birthday').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">政治面貌<font face="宋体">*</font></div> | |||
<input id="Political" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">学历学位</div> | |||
<input id="Education" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="HiringRegistration"> | |||
<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="HiringRegistration"> | |||
<div class="lr-form-item-title">所学专业<font face="宋体">*</font></div> | |||
<input id="Major" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">职业资格<font face="宋体">*</font></div> | |||
<input id="Qualification" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">取得时间<font face="宋体">*</font></div> | |||
<input id="GetTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#GetTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">户籍所在地</div> | |||
<input id="Domicile" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">婚姻状况<font face="宋体">*</font></div> | |||
<input id="Marriage" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">档案保管单位</div> | |||
<input id="Archives" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">身份证号<font face="宋体">*</font></div> | |||
<input id="IdentityCardNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">有何特长</div> | |||
<input id="Specialty" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="HiringRegistration"> | |||
<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="HiringRegistration"> | |||
<div class="lr-form-item-title">邮政编码</div> | |||
<input id="PostalCode" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">联系电话</div> | |||
<input id="Mobile" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">E-Mail</div> | |||
<input id="Email" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">简历</div> | |||
<textarea id="Resume" class="form-control" style="height:60px;"></textarea> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">成就</div> | |||
<textarea id="Achievement" class="form-control" style="height:60px;"></textarea> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="HiringRegistration"> | |||
<div class="lr-form-item-title">备注</div> | |||
<textarea id="Remark" class="form-control" style="height:100px;"></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/HiringRegistration/Form.js") |
@@ -0,0 +1,52 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-09-05 16: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 () { | |||
$('#Gender').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||
$('#Head').lrUploader(); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/HiringRegistration/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/HiringRegistration/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,26 @@ | |||
@{ | |||
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> | |||
<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> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/HiringRegistration/Index.js") |
@@ -0,0 +1,111 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-09-05 16:23 | |||
* 描 述:招聘人员报名 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/HiringRegistration/Form', | |||
width: 800, | |||
height: 800, | |||
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/HiringRegistration/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 800, | |||
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/HiringRegistration/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').jfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/HiringRegistration/GetPageList', | |||
headData: [ | |||
{ label: "应聘单位", name: "Company", width: 100, align: "left"}, | |||
{ label: "应聘岗位", name: "Post", width: 100, align: "left"}, | |||
{ label: "报名序号", name: "BmNum", width: 100, align: "left"}, | |||
{ label: "姓名", name: "Name", width: 100, align: "left"}, | |||
{ label: "性别", name: "Gender", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'usersexbit', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
}}, | |||
{ label: "民族", name: "NationalityNo", width: 100, align: "left"}, | |||
{ label: "政治面貌", name: "Political", width: 100, align: "left"}, | |||
{ label: "毕业院校", name: "WilliamsSchool", width: 100, align: "left"}, | |||
{ label: "所学专业", name: "Major", width: 100, align: "left"}, | |||
{ label: "职称,执(职)业资格", name: "Qualification", width: 100, align: "left"}, | |||
{ | |||
label: "取得时间", name: "GetTime", width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); | |||
} | |||
}, | |||
{ label: "户籍所在地", name: "Domicile", width: 100, align: "left"}, | |||
], | |||
mainId:'ID', | |||
isPage: true, | |||
sidx: 'CreateTime', | |||
sord: 'asc', | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -826,6 +826,7 @@ | |||
<Compile Include="Areas\EducationalAdministration\Controllers\ArrangeExamTermNewController.cs" /> | |||
<Compile Include="Areas\LR_Desktop\Controllers\EnrollTemplateController.cs" /> | |||
<Compile Include="Areas\LR_Desktop\Controllers\EnrollDataController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\HiringRegistrationController.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | |||
@@ -6302,6 +6303,10 @@ | |||
<Content Include="Areas\LR_Desktop\Views\EnrollData\Index.js" /> | |||
<Content Include="Areas\LR_Desktop\Views\EnrollData\Form.cshtml" /> | |||
<Content Include="Areas\LR_Desktop\Views\EnrollData\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\HiringRegistration\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\HiringRegistration\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\HiringRegistration\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\HiringRegistration\Form.js" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\EducationalAdministration\Views\HomeStatistics\" /> | |||
@@ -199,6 +199,7 @@ | |||
<Compile Include="Modules\EducationalAdministration\ArrangeExamTermApi.cs" /> | |||
<Compile Include="Modules\EducationalAdministration\ArrangeExamTermNewApi.cs" /> | |||
<Compile Include="Modules\EducationalAdministration\LoginUserBindApi.cs" /> | |||
<Compile Include="Modules\RecruiterPeopleApi.cs" /> | |||
<Compile Include="Modules\PushMessageApi.cs" /> | |||
<Compile Include="Modules\EvalApi.cs" /> | |||
<Compile Include="Modules\EducationalAdministration\R_EnterBuildingApi.cs" /> | |||
@@ -0,0 +1,211 @@ | |||
using Nancy; | |||
using Learun.Util; | |||
using System.Collections.Generic; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System; | |||
using Learun.Application.Base.SystemModule; | |||
using System.IO; | |||
using System.Web.Mvc; | |||
namespace Learun.Application.WebApi | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-06-03 14:29 | |||
/// 描 述:听课记录 | |||
/// </summary> | |||
public class RecruiterPeopleApi : BaseNoLoginApi | |||
{ | |||
private HiringRegistrationIBLL hiringRegistrationIBLL = new HiringRegistrationBLL(); | |||
private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL(); | |||
/// <summary> | |||
/// 娄底官方(CMS)提交招聘信息 | |||
/// <summary> | |||
public RecruiterPeopleApi() | |||
: base("/Learun/adms/RecruiterPeople") | |||
{ | |||
//Get["/pagelist"] = GetPageList; | |||
//Get["/list"] = GetList; | |||
//Get["/form"] = GetForm; | |||
//Post["/delete"] = DeleteForm; | |||
Get["/down"] = DownAnnexesFile; | |||
Post["/upload"] = Upload; | |||
Post["/save"] = SaveForm; | |||
} | |||
#region 获取数据 | |||
///// <summary> | |||
///// 获取页面显示列表分页数据 | |||
///// <summary> | |||
///// <param name="_"></param> | |||
///// <returns></returns> | |||
//public Response GetPageList(dynamic _) | |||
//{ | |||
// ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||
// var data = listenClassRecordIBLL.GetPageList(parameter.pagination, parameter.queryJson); | |||
// var jsonData = new | |||
// { | |||
// rows = data, | |||
// total = parameter.pagination.total, | |||
// page = parameter.pagination.page, | |||
// records = parameter.pagination.records | |||
// }; | |||
// return Success(jsonData); | |||
//} | |||
///// <summary> | |||
///// 获取页面显示列表数据 | |||
///// <summary> | |||
///// <param name="_"></param> | |||
///// <returns></returns> | |||
//public Response GetList(dynamic _) | |||
//{ | |||
// string queryJson = this.GetReqData(); | |||
// var data = listenClassRecordIBLL.GetList(queryJson); | |||
// return Success(data); | |||
//} | |||
///// <summary> | |||
///// 获取表单数据 | |||
///// <summary> | |||
///// <param name="_"></param> | |||
///// <returns></returns> | |||
//public Response GetForm(dynamic _) | |||
//{ | |||
// string keyValue = this.GetReqData(); | |||
// var ListenClassRecordData = listenClassRecordIBLL.GetListenClassRecordEntity( keyValue ); | |||
// var jsonData = new { | |||
// ListenClassRecord = ListenClassRecordData, | |||
// }; | |||
// return Success(jsonData); | |||
//} | |||
#endregion | |||
#region 提交数据 | |||
///// <summary> | |||
///// 删除实体数据 | |||
///// <param name="_"></param> | |||
///// <summary> | |||
///// <returns></returns> | |||
//public Response DeleteForm(dynamic _) | |||
//{ | |||
// string keyValue = this.GetReqData(); | |||
// listenClassRecordIBLL.DeleteEntity(keyValue); | |||
// return Success("删除成功!"); | |||
//} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response SaveForm(dynamic _) | |||
{ | |||
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); | |||
HiringRegistrationEntity entity = parameter.strEntity.ToObject<HiringRegistrationEntity>(); | |||
hiringRegistrationIBLL.SaveEntity(parameter.keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
#region 上传附件图片文件 | |||
/// <summary> | |||
/// 上传附件图片文件 | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response Upload(dynamic _) | |||
{ | |||
var files = (List<HttpFile>)this.Context.Request.Files; | |||
var folderId = this.GetReqData(); | |||
string filePath = Config.GetValue("AnnexesFile"); | |||
string uploadDate = DateTime.Now.ToString("yyyyMMdd"); | |||
string FileEextension = Path.GetExtension(files[0].Name); | |||
string fileGuid = Guid.NewGuid().ToString(); | |||
string virtualPath = string.Format("{0}/{1}/{2}/{3}{4}", filePath, userInfo.userId, uploadDate, fileGuid, FileEextension); | |||
//创建文件夹 | |||
string path = Path.GetDirectoryName(virtualPath); | |||
Directory.CreateDirectory(path); | |||
AnnexesFileEntity fileAnnexesEntity = new AnnexesFileEntity(); | |||
if (!System.IO.File.Exists(virtualPath)) | |||
{ | |||
byte[] bytes = new byte[files[0].Value.Length]; | |||
files[0].Value.Read(bytes, 0, bytes.Length); | |||
FileInfo file = new FileInfo(virtualPath); | |||
FileStream fs = file.Create(); | |||
fs.Write(bytes, 0, bytes.Length); | |||
fs.Close(); | |||
//文件信息写入数据库 | |||
fileAnnexesEntity.F_Id = fileGuid; | |||
fileAnnexesEntity.F_FileName = files[0].Name; | |||
fileAnnexesEntity.F_FilePath = virtualPath; | |||
fileAnnexesEntity.F_FileSize = files[0].Value.Length.ToString(); | |||
fileAnnexesEntity.F_FileExtensions = FileEextension; | |||
fileAnnexesEntity.F_FileType = FileEextension.Replace(".", ""); | |||
fileAnnexesEntity.F_CreateUserId = userInfo.userId; | |||
fileAnnexesEntity.F_CreateUserName = userInfo.realName; | |||
annexesFileIBLL.SaveEntity(folderId, fileAnnexesEntity); | |||
} | |||
return SuccessString(fileGuid); | |||
} | |||
/// <summary> | |||
/// 删除文件 | |||
/// </summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response DeleteFile(dynamic _) | |||
{ | |||
var fileId = this.GetReqData(); | |||
AnnexesFileEntity fileInfoEntity = annexesFileIBLL.GetEntity(fileId); | |||
annexesFileIBLL.DeleteEntity(fileId); | |||
//删除文件 | |||
if (System.IO.File.Exists(fileInfoEntity.F_FilePath)) | |||
{ | |||
System.IO.File.Delete(fileInfoEntity.F_FilePath); | |||
} | |||
return Success("删除成功"); | |||
} | |||
/// <summary> | |||
/// 下载文件 | |||
/// </summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response DownAnnexesFile(dynamic _) | |||
{ | |||
string name = this.GetReqData(); | |||
string fileId = name.Split('.')[0]; | |||
var data = annexesFileIBLL.GetEntity(fileId); | |||
string filepath = data.F_FilePath; | |||
if (FileDownHelper.FileExists(filepath)) | |||
{ | |||
FileDownHelper.DownLoadnew(filepath); | |||
} | |||
return Success(""); | |||
} | |||
#endregion | |||
#region 私有类 | |||
/// <summary> | |||
/// 表单实体类 | |||
/// <summary> | |||
private class ReqFormEntity | |||
{ | |||
public string keyValue { get; set; } | |||
public string strEntity { get; set; } | |||
} | |||
#endregion | |||
} | |||
} |
@@ -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-05 16:23 | |||
/// 描 述:招聘人员报名 | |||
/// </summary> | |||
public class HiringRegistrationMap : EntityTypeConfiguration<HiringRegistrationEntity> | |||
{ | |||
public HiringRegistrationMap() | |||
{ | |||
#region 表、主键 | |||
//表 | |||
this.ToTable("HIRINGREGISTRATION"); | |||
//主键 | |||
this.HasKey(t => t.ID); | |||
#endregion | |||
#region 配置关系 | |||
#endregion | |||
} | |||
} | |||
} | |||
@@ -598,6 +598,7 @@ | |||
<Compile Include="EducationalAdministration\ArrangeExamTermNewMap.cs" /> | |||
<Compile Include="LR_Desktop\EnrollTemplateMap.cs" /> | |||
<Compile Include="LR_Desktop\EnrollDataMap.cs" /> | |||
<Compile Include="EducationalAdministration\HiringRegistrationMap.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||
@@ -0,0 +1,148 @@ | |||
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-05 16:23 | |||
/// 描 述:招聘人员报名 | |||
/// </summary> | |||
public class HiringRegistrationBLL : HiringRegistrationIBLL | |||
{ | |||
private HiringRegistrationService hiringRegistrationService = new HiringRegistrationService(); | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<HiringRegistrationEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return hiringRegistrationService.GetPageList(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取HiringRegistration表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public HiringRegistrationEntity GetHiringRegistrationEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return hiringRegistrationService.GetHiringRegistrationEntity(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取HiringRegistration表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public HiringRegistrationEntity GetIDCard(string keyValue) | |||
{ | |||
try | |||
{ | |||
return hiringRegistrationService.GetIdCard(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 | |||
{ | |||
hiringRegistrationService.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, HiringRegistrationEntity entity) | |||
{ | |||
try | |||
{ | |||
hiringRegistrationService.SaveEntity(keyValue, entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,180 @@ | |||
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-05 16:23 | |||
/// 描 述:招聘人员报名 | |||
/// </summary> | |||
public class HiringRegistrationEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// ID | |||
/// </summary> | |||
[Column("ID")] | |||
public string ID { get; set; } | |||
/// <summary> | |||
/// 单位 | |||
/// </summary> | |||
[Column("COMPANY")] | |||
public string Company { get; set; } | |||
/// <summary> | |||
/// 岗位 | |||
/// </summary> | |||
[Column("POST")] | |||
public string Post { get; set; } | |||
/// <summary> | |||
/// 序号 | |||
/// </summary> | |||
[Column("BMNUM")] | |||
public string BmNum { get; set; } | |||
/// <summary> | |||
/// 姓名 | |||
/// </summary> | |||
[Column("NAME")] | |||
public string Name { get; set; } | |||
/// <summary> | |||
/// 头像 | |||
/// </summary> | |||
[Column("HEAD")] | |||
public string Head { get; set; } | |||
/// <summary> | |||
/// 性别 | |||
/// </summary> | |||
[Column("GENDER")] | |||
public string Gender { get; set; } | |||
/// <summary> | |||
/// 出生年月 | |||
/// </summary> | |||
[Column("BIRTHDAY")] | |||
public string Birthday { get; set; } | |||
/// <summary> | |||
/// 政治面貌 | |||
/// </summary> | |||
[Column("POLITICAL")] | |||
public string Political { get; set; } | |||
/// <summary> | |||
/// 毕业学校 | |||
/// </summary> | |||
[Column("WILLIAMSSCHOOL")] | |||
public string WilliamsSchool { get; set; } | |||
/// <summary> | |||
/// 所学专业 | |||
/// </summary> | |||
[Column("MAJOR")] | |||
public string Major { get; set; } | |||
/// <summary> | |||
/// 资格 | |||
/// </summary> | |||
[Column("QUALIFICATION")] | |||
public string Qualification { get; set; } | |||
/// <summary> | |||
/// 取得时间 | |||
/// </summary> | |||
[Column("GETTIME")] | |||
public DateTime? GetTime { get; set; } | |||
/// <summary> | |||
/// 户籍所在地 | |||
/// </summary> | |||
[Column("DOMICILE")] | |||
public string Domicile { get; set; } | |||
/// <summary> | |||
/// 婚姻状况 | |||
/// </summary> | |||
[Column("MARRIAGE")] | |||
public string Marriage { get; set; } | |||
/// <summary> | |||
/// 档案保管单位 | |||
/// </summary> | |||
[Column("ARCHIVES")] | |||
public string Archives { get; set; } | |||
/// <summary> | |||
/// IdentityCardNo | |||
/// </summary> | |||
[Column("IDENTITYCARDNO")] | |||
public string IdentityCardNo { get; set; } | |||
/// <summary> | |||
/// 通讯地址 | |||
/// </summary> | |||
[Column("ADDRESS")] | |||
public string ADDRESS { get; set; } | |||
/// <summary> | |||
/// 民族 | |||
/// </summary> | |||
[Column("NATIONALITYNO")] | |||
public string NationalityNo { get; set; } | |||
/// <summary> | |||
/// 特长 | |||
/// </summary> | |||
[Column("SPECIALTY")] | |||
public string Specialty { get; set; } | |||
/// <summary> | |||
/// 邮编 | |||
/// </summary> | |||
[Column("POSTALCODE")] | |||
public string PostalCode { get; set; } | |||
/// <summary> | |||
/// 电话 | |||
/// </summary> | |||
[Column("MOBILE")] | |||
public string Mobile { get; set; } | |||
/// <summary> | |||
/// </summary> | |||
[Column("EMAIL")] | |||
public string Email { get; set; } | |||
/// <summary> | |||
/// 简历 | |||
/// </summary> | |||
[Column("RESUME")] | |||
public string Resume { get; set; } | |||
/// <summary> | |||
/// 成绩 | |||
/// </summary> | |||
[Column("ACHIEVEMENT")] | |||
public string Achievement { get; set; } | |||
/// <summary> | |||
/// CreateTime | |||
/// </summary> | |||
[Column("CREATETIME")] | |||
public string CreateTime { get; set; } | |||
/// <summary> | |||
/// Remark | |||
/// </summary> | |||
[Column("REMARK")] | |||
public string Remark { get; set; } | |||
/// <summary> | |||
/// 学历 | |||
/// </summary> | |||
[Column("EDUCATION")] | |||
public string Education { 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,50 @@ | |||
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-05 16:23 | |||
/// 描 述:招聘人员报名 | |||
/// </summary> | |||
public interface HiringRegistrationIBLL | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
IEnumerable<HiringRegistrationEntity> GetPageList(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取HiringRegistration表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
HiringRegistrationEntity GetHiringRegistrationEntity(string keyValue); | |||
HiringRegistrationEntity GetIDCard(string IdCard); | |||
#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, HiringRegistrationEntity entity); | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,165 @@ | |||
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-05 16:23 | |||
/// 描 述:招聘人员报名 | |||
/// </summary> | |||
public class HiringRegistrationService : RepositoryFactory | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">查询参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<HiringRegistrationEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(@" t.* "); | |||
strSql.Append(" FROM HiringRegistration t "); | |||
strSql.Append(" WHERE 1=1 "); | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
return this.BaseRepository("CollegeMIS").FindList<HiringRegistrationEntity>(strSql.ToString(), dp, pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取HiringRegistration表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public HiringRegistrationEntity GetHiringRegistrationEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<HiringRegistrationEntity>(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取HiringRegistration表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public HiringRegistrationEntity GetIdCard(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<HiringRegistrationEntity>(x => x.IdentityCardNo == keyValue); | |||
} | |||
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<HiringRegistrationEntity>(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, HiringRegistrationEntity 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); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -1819,6 +1819,10 @@ | |||
<Compile Include="LR_Desktop\EnrollData\EnrollDataService.cs" /> | |||
<Compile Include="LR_Desktop\EnrollData\EnrollDataBLL.cs" /> | |||
<Compile Include="LR_Desktop\EnrollData\EnrollDataIBLL.cs" /> | |||
<Compile Include="EducationalAdministration\HiringRegistration\HiringRegistrationEntity.cs" /> | |||
<Compile Include="EducationalAdministration\HiringRegistration\HiringRegistrationService.cs" /> | |||
<Compile Include="EducationalAdministration\HiringRegistration\HiringRegistrationBLL.cs" /> | |||
<Compile Include="EducationalAdministration\HiringRegistration\HiringRegistrationIBLL.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||