Sfoglia il codice sorgente

公开选调工作人员报名表 需求变更

娄底高职分支
ndbs 2 anni fa
parent
commit
1fcad64039
6 ha cambiato i file con 130 aggiunte e 23 eliminazioni
  1. +48
    -19
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Index.js
  2. +16
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs
  3. +23
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffBLL.cs
  4. +14
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffEntity.cs
  5. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffIBLL.cs
  6. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffService.cs

+ 48
- 19
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WorkStaff/Index.js Vedi File

@@ -55,7 +55,7 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/WorkStaff/DeleteForm', { keyValue: keyValue}, function () {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/WorkStaff/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
@@ -72,9 +72,10 @@ var bootstrap = function ($, learun) {
$('#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: "Name", width: 100, align: "left" },
{ label: "性别", name: "Gender", width: 100, align: "left" },
{ label: "身份证号", name: "IdentityCardNo", width: 120, align: "left" },
{ label: "民族", name: "Nationality", width: 100, align: "left" },
{
label: "出生年月日", name: "Birthday", width: 100, align: "left",
formatter: function (cellvalue) {
@@ -93,28 +94,56 @@ var bootstrap = function ($, learun) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd');
}
},
{ 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"},
{ 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_School", width: 100, align: "left" },
{ label: "所属专业", name: "T_Major", 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" },
{
label: "附件", name: "FilePath", width: 500, align: "center",
formatterAsync: function (callback, value, row, op, $cell) {
$.ajax({
url: '/LR_SystemModule/Annexes/GetAnnexesFileList',
data: { folderId: value },
type: 'GET',
dataType: "json",
async: false,
cache: false,
success: function (res) {
var bb = '';
$.each(res.data, function (i, item) {
bb += item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + ','
})
//$.each(res.data, function(i, item) {
// bb += '<span onclick="downLoad(\'' +
// item.F_Id +
// '\')" style="color:blue">' +
// item.F_FileName.substring(0,item.F_FileName.indexOf(".")) +
// '</span>,&nbsp;&nbsp;&nbsp;';
//})
callback(bb);
}
});
}
},
],
mainId:'ID',
mainId: 'ID',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {


+ 16
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs Vedi File

@@ -166,6 +166,22 @@ namespace Learun.Application.WebApi
{
var model = this.GetReqData<ReqFormEntity>();
WorkStaffEntity entity = model.strEntity.ToObject<WorkStaffEntity>();
var models = workStaffIBLL.GetIDCard(entity.IdentityCardNo);

if (string.IsNullOrEmpty(models.ID))
{
if (model != null)
{
return Fail("身份证号已存在!");
}
}
else
{
if (model != null && models.ID != entity.ID)
{
return Fail("身份证号已存在!");
}
}
workStaffIBLL.SaveEntity(model.keyValue, entity, entity.WorkStaffSonEntities);
return Success("保存成功!");
}


+ 23
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffBLL.cs Vedi File

@@ -66,7 +66,29 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}

/// <summary>
/// 获取WorkStaff表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public WorkStaffEntity GetIDCard(string keyValue)
{
try
{
return workStaffService.GetIDCard(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

#region 提交数据


+ 14
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffEntity.cs Vedi File

@@ -36,6 +36,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("HEAD")]
public string Head { get; set; }
/// <summary>
/// 身份证号
/// </summary>
[Column("IDENTITYCARDNO")]
public string IdentityCardNo { get; set; }
/// <summary>
/// 民族
/// </summary>
[Column("NATIONALITY")]
@@ -86,10 +91,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("TIMEEDUCATION")]
public string TimeEducation { get; set; }
/// <summary>
/// 毕业院校系及专业
/// 毕业院校
/// </summary>
[Column("T_SCHOOLMAJOR")]
public string T_SchoolMajor { get; set; }
[Column("T_SCHOOL")]
public string T_School { get; set; }
/// <summary>
/// 所学专业
/// </summary>
[Column("T_MAJOR")]
public string T_Major { get; set; }

/// <summary>
/// 在职教育
/// </summary>


+ 6
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffIBLL.cs Vedi File

@@ -27,6 +27,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <param name="keyValue">主键</param>
/// <returns></returns>
WorkStaffEntity GetWorkStaffEntity(string keyValue);
/// <summary>
/// 获取WorkStaff表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
WorkStaffEntity GetIDCard(string keyValue);
#endregion

#region 提交数据


+ 23
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffService.cs Vedi File

@@ -91,6 +91,29 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}

/// <summary>
/// 获取WorkStaff表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public WorkStaffEntity GetIDCard(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<WorkStaffEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion

#region 提交数据


Caricamento…
Annulla
Salva