简历
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.js
index 81f647402..db6a13cf2 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.js
@@ -16,6 +16,7 @@ var bootstrap = function ($, learun) {
},
bind: function () {
$('#Head').lrUploader();
+ $('#FilePath').lrUploader();
},
initData: function () {
if (!!keyValue) {
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Index.js
index f4350fd57..ce2e79e01 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Index.js
@@ -84,9 +84,13 @@ var bootstrap = function ($, learun) {
},
{ 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: "Marriage", width: 100, align: "left" },
+ { label: "第一学历毕业院校", name: "WilliamsSchool", width: 100, align: "left" },
+ { label: "第一学历专业", name: "Major", width: 100, align: "left" },
+ { label: "硕士毕业院校", name: "MasterSchool", width: 100, align: "left" },
+ { label: "硕士专业", name: "MasterMajor", width: 100, align: "left" },
+ { label: "博士毕业院校", name: "DoctorSchool", width: 100, align: "left"},
+ { label: "博士专业", name: "DoctorMajor", width: 100, align: "left"},
{
label: "毕业时间", name: "GraduateTime", width: 100, align: "left",
},
@@ -105,8 +109,36 @@ var bootstrap = function ($, learun) {
{ 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"},
+ { label: "手机", name: "Mobile", width: 100, align: "left" },
+ { label: "邮箱", name: "Email", width: 100, align: "left" },
+ { label: "简历", name: "Resume", 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 += '
' +
+ item.F_FileName.substring(0, item.F_FileName.indexOf(".")) +
+ ', ';
+ })
+ callback(bb);
+ }
+ });
+ }
+ },
],
mainId:'ID',
isPage: true
@@ -123,3 +155,11 @@ var bootstrap = function ($, learun) {
};
page.init();
}
+function downLoad(fileId, fileTwo) {
+ if (fileTwo) {
+ top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () {
+
+ });
+ }
+ top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' });
+}
\ No newline at end of file
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
index e3ffbaf76..91c37768f 100644
--- 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
@@ -71,6 +71,10 @@
手机号码
个人简历
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
index 5c61b7ec4..c3ff998e5 100644
--- 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
@@ -59,6 +59,7 @@ var bootstrap = function ($, learun) {
isEdit: true,
height: 200
});
+ $('#FilePath').lrUploader();
},
initData: function () {
if (!!keyValue) {
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
index 170f7077a..56e70b35d 100644
--- 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
@@ -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 += '
' +
+ item.F_FileName.substring(0,item.F_FileName.indexOf(".")) +
+ ', ';
+ })
+ 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 () {
@@ -122,3 +151,11 @@ var bootstrap = function ($, learun) {
};
page.init();
}
+function downLoad(fileId, fileTwo) {
+ if (fileTwo) {
+ top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () {
+
+ });
+ }
+ top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' });
+}
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs
index 0b992dc31..477560d6c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs
@@ -136,52 +136,52 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
{
var userinfo = LoginUserInfo.Get();
Pagination paginationobj = new Pagination();
- var newsList = noticeIBLL.GetList(keyword, userinfo.userId, categoryId);
- var newsListOfSelf = new List
();
-
- foreach (var newsitemEntity in newsList)
- {
- if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId))
- {
- if (!string.IsNullOrEmpty(userinfo.postIds))
- {
- if (userinfo.postIds.Contains(","))
- {
- foreach (var postid in userinfo.postIds.Split(','))
- {
- if (newsitemEntity.F_SendPostId.Contains(postid))
- {
- newsListOfSelf.Add(newsitemEntity);
- break;
- }
- }
- }
- else
- {
- if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds))
- {
- newsListOfSelf.Add(newsitemEntity);
- }
- }
- }
- }
- else
- {
- if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId))
- {
- if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId))
- {
- newsListOfSelf.Add(newsitemEntity);
- }
- }
- else
- {
- newsListOfSelf.Add(newsitemEntity);
- }
- }
- }
-
- return JsonResult(newsListOfSelf);
+ var newsList = noticeIBLL.GetList(keyword, categoryId);
+ //var newsListOfSelf = new List();
+
+ //foreach (var newsitemEntity in newsList)
+ //{
+ // if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId))
+ // {
+ // if (!string.IsNullOrEmpty(userinfo.postIds))
+ // {
+ // if (userinfo.postIds.Contains(","))
+ // {
+ // foreach (var postid in userinfo.postIds.Split(','))
+ // {
+ // if (newsitemEntity.F_SendPostId.Contains(postid))
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // break;
+ // }
+ // }
+ // }
+ // else
+ // {
+ // if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds))
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // }
+ // }
+ // }
+ // }
+ // else
+ // {
+ // if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId))
+ // {
+ // if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId))
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // }
+ // }
+ // else
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // }
+ // }
+ //}
+
+ return JsonResult(newsList);
}
///
/// 查看通知公告
@@ -193,53 +193,53 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
{
var userinfo = LoginUserInfo.Get();
Pagination paginationobj = new Pagination();
- var newsList = noticeIBLL.GetList(keyword, userinfo.userId, categoryId).
+ var newsList = noticeIBLL.GetList(keyword, categoryId).
Where(a => a.F_Status == "2");
- var newsListOfSelf = new List();
-
- foreach (var newsitemEntity in newsList)
- {
- if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId))
- {
- if (!string.IsNullOrEmpty(userinfo.postIds))
- {
- if (userinfo.postIds.Contains(","))
- {
- foreach (var postid in userinfo.postIds.Split(','))
- {
- if (newsitemEntity.F_SendPostId.Contains(postid))
- {
- newsListOfSelf.Add(newsitemEntity);
- break;
- }
- }
- }
- else
- {
- if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds))
- {
- newsListOfSelf.Add(newsitemEntity);
- }
- }
- }
- }
- else
- {
- if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId))
- {
- if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId))
- {
- newsListOfSelf.Add(newsitemEntity);
- }
- }
- else
- {
- newsListOfSelf.Add(newsitemEntity);
- }
- }
- }
-
- return JsonResult(newsListOfSelf);
+ //var newsListOfSelf = new List();
+
+ //foreach (var newsitemEntity in newsList)
+ //{
+ // if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId))
+ // {
+ // if (!string.IsNullOrEmpty(userinfo.postIds))
+ // {
+ // if (userinfo.postIds.Contains(","))
+ // {
+ // foreach (var postid in userinfo.postIds.Split(','))
+ // {
+ // if (newsitemEntity.F_SendPostId.Contains(postid))
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // break;
+ // }
+ // }
+ // }
+ // else
+ // {
+ // if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds))
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // }
+ // }
+ // }
+ // }
+ // else
+ // {
+ // if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId))
+ // {
+ // if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId))
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // }
+ // }
+ // else
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // }
+ // }
+ //}
+
+ return JsonResult(newsList);
}
///
/// 获取实体数据
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs
index 9fa30d0a7..20394b036 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs
@@ -32,56 +32,56 @@ namespace Learun.Application.WebApi.Modules
{
var userinfo = LoginUserInfo.Get();
Pagination paginationobj = new Pagination();
- var newsList = noticeIBLL.GetList("", userinfo.userId,(Request.Query["F_CategoryId"]!=null?Request.Query["F_CategoryId"].ToString():""));
- var newsListOfSelf = new List();
+ var newsList = noticeIBLL.GetList("",(Request.Query["F_CategoryId"]!=null?Request.Query["F_CategoryId"].ToString():""));
+ //var newsListOfSelf = new List();
- foreach (var newsitemEntity in newsList)
- {
- if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId))
- {
- if (!string.IsNullOrEmpty(userinfo.postIds))
- {
- if (userinfo.postIds.Contains(","))
- {
- foreach (var postid in userinfo.postIds.Split(','))
- {
- if (newsitemEntity.F_SendPostId.Contains(postid))
- {
- newsListOfSelf.Add(newsitemEntity);
- break;
- }
- }
- }
- else
- {
- if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds))
- {
- newsListOfSelf.Add(newsitemEntity);
- }
- }
- }
- }
- else
- {
- if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId))
- {
- if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId))
- {
- newsListOfSelf.Add(newsitemEntity);
- }
- }
- else
- {
- newsListOfSelf.Add(newsitemEntity);
- }
- }
- }
+ //foreach (var newsitemEntity in newsList)
+ //{
+ // if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId))
+ // {
+ // if (!string.IsNullOrEmpty(userinfo.postIds))
+ // {
+ // if (userinfo.postIds.Contains(","))
+ // {
+ // foreach (var postid in userinfo.postIds.Split(','))
+ // {
+ // if (newsitemEntity.F_SendPostId.Contains(postid))
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // break;
+ // }
+ // }
+ // }
+ // else
+ // {
+ // if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds))
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // }
+ // }
+ // }
+ // }
+ // else
+ // {
+ // if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId))
+ // {
+ // if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId))
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // }
+ // }
+ // else
+ // {
+ // newsListOfSelf.Add(newsitemEntity);
+ // }
+ // }
+ //}
var jsonData = new
{
- rows = newsListOfSelf,
- total = newsListOfSelf.Count,
+ rows = newsList,
+ total = newsList.Count,
page = 0,
- records = newsListOfSelf.Count
+ records = newsList.Count
};
return Success(jsonData);
}
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 0806d81ae..655232d2b 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs
@@ -166,6 +166,22 @@ namespace Learun.Application.WebApi
{
var model = this.GetReqData();
WorkStaffEntity entity = model.strEntity.ToObject();
+ var models = workStaffIBLL.GetIDCard(entity.IdentityCardNo);
+
+ if (string.IsNullOrEmpty(model.keyValue))
+ {
+ if (models != null)
+ {
+ return Fail("身份证号已存在!");
+ }
+ }
+ else
+ {
+ if (models != null && models.ID != model.keyValue)
+ {
+ return Fail("身份证号已存在!");
+ }
+ }
workStaffIBLL.SaveEntity(model.keyValue, entity, entity.WorkStaffSonEntities);
return Success("保存成功!");
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs
index 2c40de9f2..eea23e15d 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs
@@ -121,11 +121,11 @@ namespace Learun.Application.OA
///
/// 关键词
///
- public IEnumerable GetList(string keyword, string userId, string categoryId = null)
+ public IEnumerable GetList(string keyword, string categoryId = null)
{
try
{
- return noticeService.GetList(keyword, userId, categoryId);
+ return noticeService.GetList(keyword, categoryId);
}
catch (Exception ex)
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs
index 379dae654..5b322b1aa 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs
@@ -49,7 +49,7 @@ namespace Learun.Application.OA
///
/// 关键词
///
- IEnumerable GetList(string keyword, string userId,string categoryId=null);
+ IEnumerable GetList(string keyword,string categoryId=null);
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs
index 88da9ca7f..4351fd056 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs
@@ -154,21 +154,55 @@ namespace Learun.Application.OA
///
/// 关键词
///
- public IEnumerable GetList(string keyword, string userId, string categoryId = null)
+ public IEnumerable GetList(string keyword, string categoryId = null)
{
try
{
+ var userinfo = LoginUserInfo.Get();
+ var userId = userinfo.userId;
+ var deptId = userinfo.departmentId;
+ var postIds = userinfo.postIds;
var strSql = new StringBuilder();
strSql.Append("SELECT t.*,r.RNewsId,r.RTime FROM LR_OA_News t ");
strSql.Append(" left join LR_OA_NewsRead r on t.F_NewsId = r.NewsId and r.RUserId=@userId ");
- strSql.Append(" WHERE t.F_TypeId = 2 and t.F_DeleteMark=0 ");
+ strSql.Append(" WHERE t.F_TypeId = 2 and t.F_DeleteMark=0 and t.F_EnabledMark=1 ");
+ strSql.Append($@" and (
+((t.F_SendDeptId is null or len(t.F_SendDeptId)=0) and (t.F_SendPostId is null or len(t.F_SendPostId)=0))
+");
+ if (!string.IsNullOrEmpty(deptId))
+ {
+ strSql.Append($" or (t.F_SendDeptId is not null and t.F_SendDeptId like '%{deptId}%')");
+ }
+ if (!string.IsNullOrEmpty(postIds))
+ {
+ strSql.Append(" or (t.F_SendPostId is not null and ");
+ if (postIds.Contains(","))
+ {
+ string postidSql = " (";
+ foreach (var postId in postIds)
+ {
+ postidSql += $" t.F_SendPostId like '%{postId}%' or";
+ }
+
+ postidSql = postidSql.Substring(0, postidSql.LastIndexOf("or")) + ")";
+ strSql.Append(postidSql);
+ }
+ else
+ {
+ strSql.Append($" t.F_SendPostId like '%{postIds}%'");
+ }
+
+ strSql.Append(")");
+ }
+
+ strSql.Append(") ");
if (!string.IsNullOrEmpty(categoryId))
{
- strSql.Append($" AND F_CategoryId = '{categoryId}'");
+ strSql.Append($" AND t.F_CategoryId = '{categoryId}'");
}
if (!string.IsNullOrEmpty(keyword))
{
- strSql.Append(" AND F_FullHead like @keyword");
+ strSql.Append(" AND t.F_FullHead like @keyword");
}
strSql.Append(" ORDER BY t.F_ReleaseTime DESC ");
return this.BaseRepository().FindList(strSql.ToString(), new { keyword = "%" + keyword + "%", userId = userId });
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/HiringRegistration/HiringRegistrationEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/HiringRegistration/HiringRegistrationEntity.cs
index 5b9aff556..c92b04097 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/HiringRegistration/HiringRegistrationEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/HiringRegistration/HiringRegistrationEntity.cs
@@ -70,16 +70,26 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("MAJOR")]
public string Major { get; set; }
///
- /// 资格
+ /// 职称
///
[Column("QUALIFICATION")]
public string Qualification { get; set; }
///
+ /// 资格
+ ///
+ [Column("NVQ")]
+ public string NVQ { get; set; }
+ ///
/// 取得时间
///
[Column("GETTIME")]
public DateTime? GetTime { get; set; }
///
+ /// 获取时间
+ ///
+ [Column("GRADUATIONTIME")]
+ public DateTime? GraduationTime { get; set; }
+ ///
/// 户籍所在地
///
[Column("DOMICILE")]
@@ -143,7 +153,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// CreateTime
///
[Column("CREATETIME")]
- public string CreateTime { get; set; }
+ public DateTime? CreateTime { get; set; }
///
/// Remark
///
@@ -154,6 +164,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("EDUCATION")]
public string Education { get; set; }
+ ///
+ /// FilePath
+ ///
+ [Column("FILEPATH")]
+ public string FilePath { get; set; }
#endregion
#region 扩展操作
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/HiringRegistration/HiringRegistrationService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/HiringRegistration/HiringRegistrationService.cs
index 878f568c6..b2c83a02a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/HiringRegistration/HiringRegistrationService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/HiringRegistration/HiringRegistrationService.cs
@@ -173,6 +173,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
else
{
entity.Create();
+ entity.CreateTime = DateTime.Now;
this.BaseRepository("CollegeMIS").Insert(entity);
}
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TalentsJoinInfo/TalentsJoinInfoEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TalentsJoinInfo/TalentsJoinInfoEntity.cs
index b4138c5d4..067687b16 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TalentsJoinInfo/TalentsJoinInfoEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TalentsJoinInfo/TalentsJoinInfoEntity.cs
@@ -149,6 +149,36 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("REMARK")]
public string Remark { get; set; }
+ ///
+ /// Email
+ ///
+ [Column("EMAIL")]
+ public string Email { get; set; }
+ ///
+ /// FilePath
+ ///
+ [Column("FILEPATH")]
+ public string FilePath { get; set; }
+ ///
+ /// FilePath
+ ///
+ [Column("MASTERSCHOOL")]
+ public string MasterSchool { get; set; }
+ ///
+ /// FilePath
+ ///
+ [Column("MASTERMAJOR")]
+ public string MasterMajor { get; set; }
+ ///
+ /// FilePath
+ ///
+ [Column("DOCTORSCHOOL")]
+ public string DoctorSchool { get; set; }
+ ///
+ /// FilePath
+ ///
+ [Column("DOCTORMAJOR")]
+ public string DoctorMajor { get; set; }
#endregion
#region 扩展操作
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
index c7b812501..a5b64b83f 100644
--- 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
@@ -66,7 +66,29 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
-
+ ///
+ /// 获取WorkStaff表实体数据
+ ///
+ /// 主键
+ ///
+ 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 提交数据
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
index 2070086f8..d5d800b87 100644
--- 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
@@ -36,6 +36,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("HEAD")]
public string Head { get; set; }
///
+ /// 身份证号
+ ///
+ [Column("IDENTITYCARDNO")]
+ public string IdentityCardNo { get; set; }
+ ///
/// 民族
///
[Column("NATIONALITY")]
@@ -86,20 +91,31 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("TIMEEDUCATION")]
public string TimeEducation { get; set; }
///
- /// 毕业院校系及专业
+ /// 毕业院校
+ ///
+ [Column("T_SCHOOL")]
+ public string T_School { get; set; }
+ ///
+ /// 所学专业
///
- [Column("T_SCHOOLMAJOR")]
- public string T_SchoolMajor { get; set; }
+ [Column("T_MAJOR")]
+ public string T_Major { get; set; }
+
///
/// 在职教育
///
[Column("SERVICEEDUCATION")]
public string ServiceEducation { get; set; }
///
- /// 毕业院校系及专业
+ /// 毕业院校系
///
- [Column("S_SCHOOLMAJOR")]
- public string S_SchoolMajor { get; set; }
+ [Column("S_SCHOOL")]
+ public string S_School { get; set; }
+ ///
+ /// 所属专业
+ ///
+ [Column("S_MAJOR")]
+ public string S_Major { get; set; }
///
/// 通讯地址
///
@@ -130,6 +146,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("REMARK")]
public string Remark { get; set; }
+ ///
+ /// FilePath
+ ///
+ [Column("FILEPATH")]
+ public string FilePath { get; set; }
+ ///
+ /// CreateTime
+ ///
+ [Column("CREATETIME")]
+ public DateTime? CreateTime { get; set; }
#endregion
#region 扩展操作
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
index 4375cdf6d..c3bb9b007 100644
--- 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
@@ -27,6 +27,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 主键
///
WorkStaffEntity GetWorkStaffEntity(string keyValue);
+ ///
+ /// 获取WorkStaff表实体数据
+ ///
+ /// 主键
+ ///
+ WorkStaffEntity GetIDCard(string keyValue);
#endregion
#region 提交数据
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
index 6a843b242..b64c4dda3 100644
--- 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
@@ -91,6 +91,29 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
+ ///
+ /// 获取WorkStaff表实体数据
+ ///
+ /// 主键
+ ///
+ public WorkStaffEntity GetIDCard(string keyValue)
+ {
+ try
+ {
+ return this.BaseRepository("CollegeMIS").FindEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
#endregion
#region 提交数据
@@ -139,6 +162,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
else
{
entity.Create();
+ entity.CreateTime = DateTime.Now;
this.BaseRepository("CollegeMIS").Insert(entity);
}
}