From 7f7e12f3ab097de5481654cff46548c2ae2e9460 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Wed, 28 Sep 2022 14:39:15 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=87=AA=E5=B7=B1=E6=8E=A5=E6=94=B6=E7=9A=84?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=85=AC=E5=91=8A=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/NoticeController.cs | 184 +++++++++--------- .../Modules/NewsApi.cs | 92 ++++----- .../Learun.Application.OA/Notice/NoticeBLL.cs | 4 +- .../Notice/NoticeIBLL.cs | 2 +- .../Notice/NoticeService.cs | 42 +++- 5 files changed, 179 insertions(+), 145 deletions(-) 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.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 }); From dbd94cd47a0783a6bc5b4d1a41d0396234e14ed6 Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 29 Sep 2022 11:49:41 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/TalentsJoinInfo/Form.cshtml | 8 ++++++-- .../Views/TalentsJoinInfo/Index.js | 3 ++- .../TalentsJoinInfo/TalentsJoinInfoEntity.cs | 5 +++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.cshtml index aa920fdb8..9e813a5b6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.cshtml @@ -87,14 +87,18 @@
身份证号*
-
+
联系电话
-
+
手机
+
+
邮箱
+ +
简历
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..72bcf4699 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 @@ -105,7 +105,8 @@ 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: "Mobile", width: 100, align: "left" }, + { label: "邮箱", name: "Email", width: 100, align: "left" }, { label: "简历", name: "Resume", width: 100, align: "left"}, ], mainId:'ID', 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..b36766d6a 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,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// [Column("REMARK")] public string Remark { get; set; } + /// + /// Email + /// + [Column("EMAIL")] + public string Email { get; set; } #endregion #region 扩展操作 From 1976187ad187d3f5b41f126dc1e6e5d72a9bd562 Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 29 Sep 2022 15:28:01 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BA=BA=E5=91=98=E9=80=89=E8=B0=83,?= =?UTF-8?q?=E4=BA=BA=E6=89=8D=E6=8B=9B=E8=81=98,=E6=8B=9B=E8=81=98?= =?UTF-8?q?=E4=BA=BA=E5=91=98,=E6=B7=BB=E5=8A=A0=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/HiringRegistration/Form.cshtml | 6 +++++- .../Views/HiringRegistration/Form.js | 1 + .../Views/TalentsJoinInfo/Form.cshtml | 4 ++++ .../EducationalAdministration/Views/TalentsJoinInfo/Form.js | 1 + .../EducationalAdministration/Views/WorkStaff/Form.cshtml | 4 ++++ .../Areas/EducationalAdministration/Views/WorkStaff/Form.js | 1 + .../HiringRegistration/HiringRegistrationEntity.cs | 5 +++++ .../TalentsJoinInfo/TalentsJoinInfoEntity.cs | 5 +++++ .../EducationalAdministration/WorkStaff/WorkStaffEntity.cs | 5 +++++ 9 files changed, 31 insertions(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Form.cshtml index 8b013741c..fa039cee7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Form.cshtml @@ -74,7 +74,7 @@
身份证号*
- +
有何特长
@@ -96,6 +96,10 @@
E-Mail
+
+
附件上传
+
+
简历
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Form.js index 9050eedce..85432ca9d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Form.js @@ -17,6 +17,7 @@ var bootstrap = function ($, learun) { bind: function () { //$('#Gender').lrDataItemSelect({ code: 'YesOrNoBit' }); $('#Head').lrUploader(); + $('#FilePath').lrUploader(); }, initData: function () { if (!!keyValue) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.cshtml index 9e813a5b6..f05fd92ae 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TalentsJoinInfo/Form.cshtml @@ -99,6 +99,10 @@
邮箱
+
+
附件上传
+
+
简历
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/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.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..534d4a7b4 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 @@ -154,6 +154,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/TalentsJoinInfo/TalentsJoinInfoEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TalentsJoinInfo/TalentsJoinInfoEntity.cs index b36766d6a..b7737d0c2 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 @@ -154,6 +154,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// [Column("EMAIL")] public string Email { 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/WorkStaff/WorkStaffEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffEntity.cs index 2070086f8..040fdfc15 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 @@ -130,6 +130,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// [Column("REMARK")] public string Remark { get; set; } + /// + /// FilePath + /// + [Column("FILEPATH")] + public string FilePath { get; set; } #endregion #region 扩展操作 From 1fcad64039f7787c91d45022dd2f40faafbf70e9 Mon Sep 17 00:00:00 2001 From: ndbs Date: Wed, 12 Oct 2022 15:47:44 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E5=85=AC=E5=BC=80=E9=80=89=E8=B0=83?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E4=BA=BA=E5=91=98=E6=8A=A5=E5=90=8D=E8=A1=A8?= =?UTF-8?q?=20=E9=9C=80=E6=B1=82=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/WorkStaff/Index.js | 67 +++++++++++++------ .../Modules/RecruiterPeopleApi.cs | 16 +++++ .../WorkStaff/WorkStaffBLL.cs | 24 ++++++- .../WorkStaff/WorkStaffEntity.cs | 17 ++++- .../WorkStaff/WorkStaffIBLL.cs | 6 ++ .../WorkStaff/WorkStaffService.cs | 23 +++++++ 6 files changed, 130 insertions(+), 23 deletions(-) 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..33aa35abf 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 () { 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..57d09d5c6 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(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("保存成功!"); } 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 040fdfc15..e5e4599a7 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,10 +91,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration [Column("TIMEEDUCATION")] public string TimeEducation { get; set; } /// - /// 毕业院校系及专业 + /// 毕业院校 /// - [Column("T_SCHOOLMAJOR")] - public string T_SchoolMajor { get; set; } + [Column("T_SCHOOL")] + public string T_School { get; set; } + /// + /// 所学专业 + /// + [Column("T_MAJOR")] + public string T_Major { get; set; } + /// /// 在职教育 /// 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..3d323e818 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 提交数据 From 2429a4317c9ae35bace4903295e9e1e50cce18cb Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 13 Oct 2022 15:08:51 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E5=85=AC=E5=BC=80=E9=80=89=E8=B0=83=20=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/WorkStaff/Index.js | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) 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 33aa35abf..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 @@ -120,16 +120,16 @@ var bootstrap = function ($, learun) { 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(".")) + - // ',   '; + //$.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); } }); @@ -151,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 From 696b7e25bf39a6acc415f57a3f7418bb7428d587 Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 13 Oct 2022 15:35:56 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E5=85=AC=E5=BC=80=E6=8B=9B=E8=81=98=20?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/HiringRegistration/Index.js | 35 +++++++++++++++++++ .../HiringRegistrationEntity.cs | 14 ++++++-- .../HiringRegistrationService.cs | 1 + .../WorkStaff/WorkStaffEntity.cs | 5 +++ .../WorkStaff/WorkStaffService.cs | 1 + 5 files changed, 54 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Index.js index 7ec782af9..5bfaeaf82 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HiringRegistration/Index.js @@ -109,6 +109,33 @@ var bootstrap = function ($, learun) { { label: "邮政编码", name: "PostalCode", width: 100, align: "left" }, { label: "联系电话", name: "Mobile", width: 100, align: "left" }, { label: "实践与成绩", name: "Achievement", 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, @@ -127,3 +154,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.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 534d4a7b4..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 /// 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/WorkStaff/WorkStaffEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffEntity.cs index e5e4599a7..16aed27dc 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 @@ -146,6 +146,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// [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/WorkStaffService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffService.cs index 3d323e818..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 @@ -162,6 +162,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration else { entity.Create(); + entity.CreateTime = DateTime.Now; this.BaseRepository("CollegeMIS").Insert(entity); } } From 978e61ab1701a6a702beab6db5943dd8bc4575da Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 13 Oct 2022 17:36:48 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E4=BA=BA=E6=89=8D=E5=BC=95=E8=BF=9B=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD=E5=8F=8A=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/TalentsJoinInfo/Index.js | 47 +++++++++++++++++-- .../TalentsJoinInfo/TalentsJoinInfoEntity.cs | 20 ++++++++ 2 files changed, 63 insertions(+), 4 deletions(-) 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 72bcf4699..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", }, @@ -107,7 +111,34 @@ var bootstrap = function ($, learun) { { label: "联系电话", name: "Phone", 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: "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 @@ -124,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.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 b7737d0c2..580cefebd 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 @@ -159,6 +159,26 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// [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("FILEPATH")] + public string DoctorSchool { get; set; } + /// + /// FilePath + /// + [Column("FILEPATH")] + public string DoctorMajor { get; set; } #endregion #region 扩展操作 From 37a32fdc4dbcfa69598b6b740494cec8a761379f Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 13 Oct 2022 17:41:36 +0800 Subject: [PATCH 8/9] --- .../TalentsJoinInfo/TalentsJoinInfoEntity.cs | 8 ++++---- .../WorkStaff/WorkStaffEntity.cs | 11 ++++++++--- 2 files changed, 12 insertions(+), 7 deletions(-) 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 580cefebd..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 @@ -162,22 +162,22 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// /// FilePath /// - [Column("MasterSchool")] + [Column("MASTERSCHOOL")] public string MasterSchool { get; set; } /// /// FilePath /// - [Column("MasterMajor")] + [Column("MASTERMAJOR")] public string MasterMajor { get; set; } /// /// FilePath /// - [Column("FILEPATH")] + [Column("DOCTORSCHOOL")] public string DoctorSchool { get; set; } /// /// FilePath /// - [Column("FILEPATH")] + [Column("DOCTORMAJOR")] public string DoctorMajor { get; set; } #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WorkStaff/WorkStaffEntity.cs index 16aed27dc..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 @@ -107,10 +107,15 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration [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; } /// /// 通讯地址 /// From 4f535f20d086489c09e08e4bb80b682a95d89c34 Mon Sep 17 00:00:00 2001 From: ndbs Date: Tue, 18 Oct 2022 12:22:34 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=98=AF=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 57d09d5c6..655232d2b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs @@ -168,16 +168,16 @@ namespace Learun.Application.WebApi WorkStaffEntity entity = model.strEntity.ToObject(); var models = workStaffIBLL.GetIDCard(entity.IdentityCardNo); - if (string.IsNullOrEmpty(models.ID)) + if (string.IsNullOrEmpty(model.keyValue)) { - if (model != null) + if (models != null) { return Fail("身份证号已存在!"); } } else { - if (model != null && models.ID != entity.ID) + if (models != null && models.ID != model.keyValue) { return Fail("身份证号已存在!"); }