diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/TeacherDevelopController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/TeacherDevelopController.cs
new file mode 100644
index 000000000..a0be689dd
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/TeacherDevelopController.cs
@@ -0,0 +1,127 @@
+using Learun.Util;
+using System.Data;
+using Learun.Application.TwoDevelopment.PersonnelManagement;
+using System.Web.Mvc;
+using System.Collections.Generic;
+
+namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2024-09-24 14:32
+ /// 描 述:教师发展
+ ///
+ public class TeacherDevelopController : MvcControllerBase
+ {
+ private TeacherDevelopIBLL teacherDevelopIBLL = new TeacherDevelopBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult FormView()
+ {
+ return View();
+ }
+
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = teacherDevelopIBLL.GetPageList(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ /// 主键
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormData(string keyValue)
+ {
+ var TeacherDevelopData = teacherDevelopIBLL.GetTeacherDevelopEntity( keyValue );
+ var jsonData = new {
+ TeacherDevelop = TeacherDevelopData,
+ };
+ return Success(jsonData);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ teacherDevelopIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue, string strEntity)
+ {
+ TeacherDevelopEntity entity = strEntity.ToObject();
+ teacherDevelopIBLL.SaveEntity(keyValue,entity);
+ if (string.IsNullOrEmpty(keyValue))
+ {
+ }
+ return Success("保存成功!");
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Form.cshtml
new file mode 100644
index 000000000..2b6093404
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Form.cshtml
@@ -0,0 +1,84 @@
+@{
+ ViewBag.Title = "教师发展";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/TeacherDevelop/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Form.js
new file mode 100644
index 000000000..e2cb19b0e
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Form.js
@@ -0,0 +1,59 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2024-09-24 14:32
+ * 描 述:教师发展
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ $('#EmpNo').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
+ $('#CertificateType').lrDataItemSelect({ code: 'CertificateLevel' });
+ $('#CertificatePath').lrUploader();
+ $('#HonorType').lrDataItemSelect({ code: 'HonorLevel' });
+ $('#HonorPath').lrUploader();
+ $('#ThesisType').lrDataItemSelect({ code: 'ThesisLevel' });
+ $('#ThesisPath').lrUploader();
+ $('#ProjectType').lrDataItemSelect({ code: 'SubjectLevelLevel' });
+ $('#ProjectPath').lrUploader();
+ },
+ initData: function () {
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/PersonnelManagement/TeacherDevelop/GetFormData?keyValue=' + keyValue, function (data) {
+ for (var id in data) {
+ if (!!data[id].length && data[id].length > 0) {
+ $('#' + id ).jfGridSet('refreshdata', data[id]);
+ }
+ else {
+ $('[data-table="' + id + '"]').lrSetFormData(data[id]);
+ }
+ }
+ });
+ }
+ }
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {
+ strEntity: JSON.stringify($('body').lrGetFormData())
+ };
+ $.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/TeacherDevelop/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/FormView.cshtml
new file mode 100644
index 000000000..95d7d41fd
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/FormView.cshtml
@@ -0,0 +1,83 @@
+@{
+ ViewBag.Title = "教师发展";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/TeacherDevelop/FormView.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/FormView.js
new file mode 100644
index 000000000..a9de513b5
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/FormView.js
@@ -0,0 +1,59 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2024-09-24 14:32
+ * 描 述:教师发展
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ $('#EmpNo').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
+ $('#CertificateType').lrDataItemSelect({ code: 'CertificateLevel' });
+ $('#CertificatePath').lrUploader({ isUpload: false});
+ $('#HonorType').lrDataItemSelect({ code: 'HonorLevel' });
+ $('#HonorPath').lrUploader({ isUpload: false});
+ $('#ThesisType').lrDataItemSelect({ code: 'ThesisLevel' });
+ $('#ThesisPath').lrUploader({ isUpload: false});
+ $('#ProjectType').lrDataItemSelect({ code: 'SubjectLevelLevel' });
+ $('#ProjectPath').lrUploader({ isUpload: false});
+ },
+ initData: function () {
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/PersonnelManagement/TeacherDevelop/GetFormData?keyValue=' + keyValue, function (data) {
+ for (var id in data) {
+ if (!!data[id].length && data[id].length > 0) {
+ $('#' + id ).jfGridSet('refreshdata', data[id]);
+ }
+ else {
+ $('[data-table="' + id + '"]').lrSetFormData(data[id]);
+ }
+ }
+ });
+ }
+ }
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {
+ strEntity: JSON.stringify($('body').lrGetFormData())
+ };
+ $.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/TeacherDevelop/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Index.cshtml
new file mode 100644
index 000000000..0a24084f9
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Index.cshtml
@@ -0,0 +1,73 @@
+@{
+ ViewBag.Title = "教师发展";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/TeacherDevelop/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Index.js
new file mode 100644
index 000000000..d485f30fd
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherDevelop/Index.js
@@ -0,0 +1,201 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2024-09-24 14:32
+ * 描 述:教师发展
+ */
+var refreshGirdData;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var startTime;
+ var endTime;
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ // 时间搜索框
+ $('#datesearch').lrdate({
+ dfdata: [
+ { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
+ ],
+ // 月
+ mShow: false,
+ premShow: false,
+ // 季度
+ jShow: false,
+ prejShow: false,
+ // 年
+ ysShow: false,
+ yxShow: false,
+ preyShow: false,
+ yShow: false,
+ // 默认
+ dfvalue: '1',
+ selectfn: function (begin, end) {
+ startTime = begin;
+ endTime = end;
+ page.search();
+ }
+ });
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 240, 400);
+ $('#EmpNo').lrUserSelect(0);
+ $('#CertificateType').lrDataItemSelect({ code: 'CertificateLevel' });
+ $('#HonorType').lrDataItemSelect({ code: 'HonorLevel' });
+ $('#ThesisType').lrDataItemSelect({ code: 'ThesisLevel' });
+ $('#ProjectType').lrDataItemSelect({ code: 'SubjectLevelLevel' });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 新增
+ $('#lr_add').on('click', function () {
+ learun.layerForm({
+ id: 'form',
+ title: '新增',
+ url: top.$.rootUrl + '/PersonnelManagement/TeacherDevelop/Form',
+ width: 600,
+ height: 600,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ // 编辑
+ $('#lr_edit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerForm({
+ id: 'form',
+ title: '编辑',
+ url: top.$.rootUrl + '/PersonnelManagement/TeacherDevelop/Form?keyValue=' + keyValue,
+ width: 600,
+ height: 600,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 删除
+ $('#lr_delete').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认删除该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/TeacherDevelop/DeleteForm', { keyValue: keyValue}, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ //查看
+ $('#lr_view').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerForm({
+ id: 'formteachertrain',
+ title: '查看',
+ url: top.$.rootUrl + '/PersonnelManagement/TeacherDevelop/FormView?keyValue=' + keyValue,
+ width: 600,
+ height: 600,
+ btn: '',
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 打印
+ $('#lr_print').on('click', function () {
+ $('#gridtable').jqprintTable();
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').lrAuthorizeJfGrid({
+ url: top.$.rootUrl + '/PersonnelManagement/TeacherDevelop/GetPageList',
+ headData: [
+ { label: "教师", name: "EmpNo", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op,$cell) {
+ learun.clientdata.getAsync('user', {
+ key: value,
+ callback: function (_data) {
+ callback(_data.name);
+ }
+ });
+ }},
+ { label: "时间", name: "JoinTime", width: 100, align: "left"},
+ { label: "证书名称", name: "CertificateName", width: 100, align: "left"},
+ { label: "证书级别", name: "CertificateType", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op,$cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: '',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }},
+ { label: "分值", name: "CertificateScore", width: 100, align: "left"},
+ { label: "荣誉名称", name: "HonorName", width: 100, align: "left"},
+ { label: "荣誉级别", name: "HonorType", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op,$cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: '',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }},
+ { label: "分值", name: "HonorScore", width: 100, align: "left"},
+ { label: "论文名称", name: "ThesisName", width: 100, align: "left"},
+ { label: "论文级别", name: "ThesisType", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op,$cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: '',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }},
+ { label: "分值", name: "ThesisScore", width: 100, align: "left"},
+ { label: "课题名称", name: "ProjectName", width: 100, align: "left"},
+ { label: "课题级别", name: "ProjectType", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op,$cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: '',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }},
+ { label: "分值", name: "ProjectScore", width: 100, align: "left"},
+ { label: "备注", name: "Remark", width: 100, align: "left"},
+ ],
+ mainId:'ID',
+ isPage: true
+ });
+ },
+ search: function (param) {
+ param = param || {};
+ param.StartTime = startTime;
+ param.EndTime = endTime;
+ $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ $('#gridtable').jfGridSet('reload');
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
index 7a533f361..c49003094 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
@@ -23,7 +23,8 @@
..\..\..\
true
- false
+
+
@@ -916,6 +917,7 @@
+
@@ -1914,6 +1916,7 @@
+
@@ -7203,6 +7206,10 @@
+
+
+
+
@@ -8217,6 +8224,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
index 38db8644e..5e6641be1 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
@@ -678,6 +678,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/TeacherDevelopMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/TeacherDevelopMap.cs
new file mode 100644
index 000000000..cdef752bb
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/TeacherDevelopMap.cs
@@ -0,0 +1,29 @@
+using Learun.Application.TwoDevelopment.PersonnelManagement;
+using System.Data.Entity.ModelConfiguration;
+
+namespace Learun.Application.Mapping
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2024-09-24 14:32
+ /// 描 述:教师发展
+ ///
+ public class TeacherDevelopMap : EntityTypeConfiguration
+ {
+ public TeacherDevelopMap()
+ {
+ #region 表、主键
+ //表
+ this.ToTable("TEACHERDEVELOP");
+ //主键
+ this.HasKey(t => t.ID);
+ #endregion
+
+ #region 配置关系
+ #endregion
+ }
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
index 77199a4c0..02eec8083 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
@@ -2132,6 +2132,10 @@
+
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopBLL.cs
new file mode 100644
index 000000000..dff3f11e6
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopBLL.cs
@@ -0,0 +1,125 @@
+using Learun.Util;
+using System;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.PersonnelManagement
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2024-09-24 14:32
+ /// 描 述:教师发展
+ ///
+ public class TeacherDevelopBLL : TeacherDevelopIBLL
+ {
+ private TeacherDevelopService teacherDevelopService = new TeacherDevelopService();
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return teacherDevelopService.GetPageList(pagination, queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取TeacherDevelop表实体数据
+ ///
+ /// 主键
+ ///
+ public TeacherDevelopEntity GetTeacherDevelopEntity(string keyValue)
+ {
+ try
+ {
+ return teacherDevelopService.GetTeacherDevelopEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ teacherDevelopService.DeleteEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ public void SaveEntity(string keyValue, TeacherDevelopEntity entity)
+ {
+ try
+ {
+ teacherDevelopService.SaveEntity(keyValue, entity);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopEntity.cs
new file mode 100644
index 000000000..ca2392a72
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopEntity.cs
@@ -0,0 +1,152 @@
+using Learun.Util;
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Learun.Application.TwoDevelopment.PersonnelManagement
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2024-09-24 14:32
+ /// 描 述:教师发展
+ ///
+ public class TeacherDevelopEntity
+ {
+ #region 实体成员
+ ///
+ /// ID
+ ///
+ [Column("ID")]
+ public string ID { get; set; }
+ ///
+ /// 教师
+ ///
+ [Column("EMPNO")]
+ public string EmpNo { get; set; }
+ ///
+ /// 日期
+ ///
+ [Column("JOINTIME")]
+ public DateTime? JoinTime { get; set; }
+ ///
+ /// 证书
+ ///
+ [Column("CERTIFICATENAME")]
+ public string CertificateName { get; set; }
+ ///
+ /// 证书级别
+ ///
+ [Column("CERTIFICATETYPE")]
+ public string CertificateType { get; set; }
+ ///
+ /// 证书分值
+ ///
+ [Column("CERTIFICATESCORE")]
+ public decimal? CertificateScore { get; set; }
+ ///
+ /// 证书附件
+ ///
+ [Column("CERTIFICATEPATH")]
+ public string CertificatePath { get; set; }
+ ///
+ /// 荣誉名称
+ ///
+ [Column("HONORNAME")]
+ public string HonorName { get; set; }
+ ///
+ /// 荣誉级别
+ ///
+ [Column("HONORTYPE")]
+ public string HonorType { get; set; }
+ ///
+ /// 荣誉分值
+ ///
+ [Column("HONORSCORE")]
+ public decimal? HonorScore { get; set; }
+ ///
+ /// 荣誉附件
+ ///
+ [Column("HONORPATH")]
+ public string HonorPath { get; set; }
+ ///
+ /// 论文
+ ///
+ [Column("THESISNAME")]
+ public string ThesisName { get; set; }
+ ///
+ /// 论文级别
+ ///
+ [Column("THESISTYPE")]
+ public string ThesisType { get; set; }
+ ///
+ /// 论文分值
+ ///
+ [Column("THESISSCORE")]
+ public decimal? ThesisScore { get; set; }
+ ///
+ /// 论文附件
+ ///
+ [Column("THESISPATH")]
+ public string ThesisPath { get; set; }
+ ///
+ /// 课题
+ ///
+ [Column("PROJECTNAME")]
+ public string ProjectName { get; set; }
+ ///
+ /// 课题级别
+ ///
+ [Column("PROJECTTYPE")]
+ public string ProjectType { get; set; }
+ ///
+ /// 课题分值
+ ///
+ [Column("PROJECTSCORE")]
+ public decimal? ProjectScore { get; set; }
+ ///
+ /// 课题附件
+ ///
+ [Column("PROJECTPATH")]
+ public string ProjectPath { get; set; }
+ ///
+ /// 备注
+ ///
+ [Column("REMARK")]
+ public string Remark { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [Column("CREATETIME")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 创建用户
+ ///
+ [Column("CREATEUSER")]
+ public string CreateUser { get; set; }
+ #endregion
+
+ #region 扩展操作
+ ///
+ /// 新增调用
+ ///
+ public void Create()
+ {
+ this.ID = Guid.NewGuid().ToString();
+ this.CreateTime = DateTime.Now;
+ this.CreateUser = LoginUserInfo.Get().userId;
+ }
+ ///
+ /// 编辑调用
+ ///
+ ///
+ public void Modify(string keyValue)
+ {
+ this.ID = keyValue;
+ }
+ #endregion
+ #region 扩展字段
+ #endregion
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopIBLL.cs
new file mode 100644
index 000000000..4f3b8fbfe
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopIBLL.cs
@@ -0,0 +1,48 @@
+using Learun.Util;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.PersonnelManagement
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2024-09-24 14:32
+ /// 描 述:教师发展
+ ///
+ public interface TeacherDevelopIBLL
+ {
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ ///
+ IEnumerable GetPageList(Pagination pagination, string queryJson);
+ ///
+ /// 获取TeacherDevelop表实体数据
+ ///
+ /// 主键
+ ///
+ TeacherDevelopEntity GetTeacherDevelopEntity(string keyValue);
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ void DeleteEntity(string keyValue);
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ void SaveEntity(string keyValue, TeacherDevelopEntity entity);
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopService.cs
new file mode 100644
index 000000000..fa152f45b
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherDevelop/TeacherDevelopService.cs
@@ -0,0 +1,202 @@
+using Dapper;
+using Learun.DataBase.Repository;
+using Learun.Util;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Text;
+
+namespace Learun.Application.TwoDevelopment.PersonnelManagement
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2024-09-24 14:32
+ /// 描 述:教师发展
+ ///
+ public class TeacherDevelopService : RepositoryFactory
+ {
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ var strSql = new StringBuilder();
+ strSql.Append("SELECT ");
+ strSql.Append(@" t.* ");
+ strSql.Append(" FROM TeacherDevelop t ");
+ strSql.Append(" WHERE 1=1 ");
+ var queryParam = queryJson.ToJObject();
+ // 虚拟参数
+ var dp = new DynamicParameters(new { });
+ if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty())
+ {
+ dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime);
+ dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime);
+ strSql.Append(" AND ( t.JoinTime >= @startTime AND t.JoinTime <= @endTime ) ");
+ }
+ if (!queryParam["EmpNo"].IsEmpty())
+ {
+ dp.Add("EmpNo", queryParam["EmpNo"].ToString(), DbType.String);
+ strSql.Append(" AND t.EmpNo = @EmpNo ");
+ }
+ if (!queryParam["CertificateName"].IsEmpty())
+ {
+ dp.Add("CertificateName", "%" + queryParam["CertificateName"].ToString() + "%", DbType.String);
+ strSql.Append(" AND t.CertificateName Like @CertificateName ");
+ }
+ if (!queryParam["CertificateType"].IsEmpty())
+ {
+ dp.Add("CertificateType", queryParam["CertificateType"].ToString(), DbType.String);
+ strSql.Append(" AND t.CertificateType = @CertificateType ");
+ }
+ if (!queryParam["HonorName"].IsEmpty())
+ {
+ dp.Add("HonorName", "%" + queryParam["HonorName"].ToString() + "%", DbType.String);
+ strSql.Append(" AND t.HonorName Like @HonorName ");
+ }
+ if (!queryParam["HonorType"].IsEmpty())
+ {
+ dp.Add("HonorType", queryParam["HonorType"].ToString(), DbType.String);
+ strSql.Append(" AND t.HonorType = @HonorType ");
+ }
+ if (!queryParam["ThesisName"].IsEmpty())
+ {
+ dp.Add("ThesisName", "%" + queryParam["ThesisName"].ToString() + "%", DbType.String);
+ strSql.Append(" AND t.ThesisName Like @ThesisName ");
+ }
+ if (!queryParam["ThesisType"].IsEmpty())
+ {
+ dp.Add("ThesisType", queryParam["ThesisType"].ToString(), DbType.String);
+ strSql.Append(" AND t.ThesisType = @ThesisType ");
+ }
+ if (!queryParam["ProjectName"].IsEmpty())
+ {
+ dp.Add("ProjectName", "%" + queryParam["ProjectName"].ToString() + "%", DbType.String);
+ strSql.Append(" AND t.ProjectName Like @ProjectName ");
+ }
+ if (!queryParam["ThesisType"].IsEmpty())
+ {
+ dp.Add("ThesisType", queryParam["ThesisType"].ToString(), DbType.String);
+ strSql.Append(" AND t.ThesisType = @ThesisType ");
+ }
+ var user = LoginUserInfo.Get();
+ if (!user.isSystem)//非超级管理员继续执行
+ {
+ //角色非教师发展只能查看自己的
+ if (!user.roleIds.Contains("f2c1ecc0-dec3-4458-a0fb-524eeffa8eb8"))
+ {
+ strSql.Append(" AND t.empno = '" + user.userId + "' ");
+ }
+ }
+ return this.BaseRepository().FindList(strSql.ToString(), dp, pagination);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取TeacherDevelop表实体数据
+ ///
+ /// 主键
+ ///
+ public TeacherDevelopEntity GetTeacherDevelopEntity(string keyValue)
+ {
+ try
+ {
+ return this.BaseRepository().FindEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ this.BaseRepository().Delete(t => t.ID == keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ public void SaveEntity(string keyValue, TeacherDevelopEntity entity)
+ {
+ try
+ {
+ if (!string.IsNullOrEmpty(keyValue))
+ {
+ entity.Modify(keyValue);
+ this.BaseRepository().Update(entity);
+ }
+ else
+ {
+ entity.Create();
+ this.BaseRepository().Insert(entity);
+ }
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ }
+}