diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PM_WinPrizeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PM_WinPrizeController.cs
new file mode 100644
index 000000000..2099292e2
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/PM_WinPrizeController.cs
@@ -0,0 +1,133 @@
+using Learun.Util;
+using System.Data;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using System.Web.Mvc;
+using System.Collections.Generic;
+using System;
+
+namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-03-30 14:00
+ /// 描 述:获奖信息
+ ///
+ public class PM_WinPrizeController : MvcControllerBase
+ {
+ private PM_WinPrizeIBLL pM_WinPrizeIBLL = new PM_WinPrizeBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = pM_WinPrizeIBLL.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 PM_WinPrizeData = pM_WinPrizeIBLL.GetPM_WinPrizeEntity(keyValue);
+ var jsonData = new
+ {
+ PM_WinPrize = PM_WinPrizeData,
+ };
+ return Success(jsonData);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ /// 主键
+ ///
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ pM_WinPrizeIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ /// 主键
+ ///
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue, string strEntity)
+ {
+ PM_WinPrizeEntity entity = strEntity.ToObject();
+ pM_WinPrizeIBLL.SaveEntity(keyValue, entity);
+ return Success("保存成功!");
+ }
+
+
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ ///
+ public ActionResult Submit(string empId, bool status)
+ {
+ pM_WinPrizeIBLL.Submit(empId, status);
+ if (status)
+ {
+ return Success("提交成功!");
+ }
+ else
+ {
+ return Success("取消提交成功");
+ }
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
index cc04a0431..1c8a720a7 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml
@@ -38,6 +38,7 @@
家庭情况
证书信息
培训信息
+ 获奖信息
*@
@*
-
-
-
- *@
+ 岗位类别
+
+
+
+
+
+ *@
@*
-
-
-
- *@
+ 工龄偏移量(月)
+
+
+
+
+
+ *@
@*
- *@
+ 教龄偏移量(月)
+
+
+ *@
@*
-
-
-
- *@
+ 校龄偏移量(月)
+
+
+
+
+
+ *@
@**@
+ 职称岗位等级
+
+ *@
@**@
+ 初始学历获取方式
+
+ *@
@*
-
-
*@
+
+ *@
@@ -395,6 +396,9 @@
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js
index 665ae19da..886da0254 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js
@@ -67,6 +67,7 @@ var bootstrap = function ($, learun) {
$("#PM_FamilySituation").attr("src", "/EducationalAdministration/PM_FamilySituation/Index?empId=" + NewEmpId);
$("#TeacherCertificate").attr("src", "/PersonnelManagement/TeacherCertificate/Index?empId=" + NewEmpId);
$("#TeacherTrain").attr("src", "/PersonnelManagement/TeacherTrain/Index?empId=" + NewEmpId);
+ $("#PM_WinPrize").attr("src", "/EducationalAdministration/PM_WinPrize/Index?empId=" + NewEmpId);
$('#lr_form_tabs').lrFormTab();
$('#lr_form_tabs ul li').eq(0).trigger('click');
//校区
@@ -176,7 +177,6 @@ var bootstrap = function ($, learun) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
- console.log(2);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Form.cshtml
new file mode 100644
index 000000000..ffa5d19c1
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Form.cshtml
@@ -0,0 +1,23 @@
+@{
+ ViewBag.Title = "获奖信息";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PM_WinPrize/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Form.js
new file mode 100644
index 000000000..c7d20de78
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Form.js
@@ -0,0 +1,58 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2020-03-30 14:00
+ * 描 述:获奖信息
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+var empId = request('empId');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ $('#CompetitionLevel').lrDataItemSelect({ code: 'CompetitionLevel' });
+ $('#CompetitionCategory').lrDataItemSelect({ code: 'CompetitionCategory' });
+ $('#PrizeFile').lrUploader();
+ },
+ initData: function () {
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/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 data = $('body').lrGetFormData();
+ if (!keyValue) {
+ data["EmpId"] = empId;
+ }
+ var postData = {
+ strEntity: JSON.stringify(data)
+ };
+ $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Index.cshtml
new file mode 100644
index 000000000..adad11208
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Index.cshtml
@@ -0,0 +1,66 @@
+@{
+ ViewBag.Title = "获奖信息";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/PM_WinPrize/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Index.js
new file mode 100644
index 000000000..64edc4f4e
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/PM_WinPrize/Index.js
@@ -0,0 +1,243 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2020-03-30 14:00
+ * 描 述:获奖信息
+ */
+var refreshGirdData;
+var empId = request('empId');
+var status = false;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ page.refreshStatus();
+ page.initGird();
+ page.bind();
+ },
+ refreshStatus: function () {
+ //获取主表状态
+ learun.httpAsyncGet(top.$.rootUrl + '/EducationalAdministration/EmpInfo/GetFormData?keyValue=' + empId, function (res) {
+ if (res.code == 200) {
+ if (res.data.EmpInfo != null) {
+ status = res.data.EmpInfo.WinPrizeStatus;
+ }
+ }
+ });
+ },
+ bind: function () {
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 550);
+ // 部门选择
+ $('#F_DepartmentId').lrselect({
+ type: 'tree',
+ // 是否允许搜索
+ allowSearch: true,
+ // 访问数据接口地址
+ url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
+ // 访问数据接口参数
+ param: { parentId: '0' }
+ });
+ //性别
+ $('#GenderNo').lrDataItemSelect({ code: 'usersexbit' });
+ //人员身份
+ $('#CompilationCategory').lrDataItemSelect({ code: 'CompilationCategory' });
+ //员工状态
+ $('#IsInActiveStatus').lrDataItemSelect({ code: 'JobStatus' });
+ $('#CompetitionLevel').lrDataItemSelect({ code: 'CompetitionLevel' });
+ $('#CompetitionCategory').lrDataItemSelect({ code: 'CompetitionCategory' });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 新增
+ $('#lr_add').on('click', function () {
+ if (empId.length <= 0) {
+ learun.alert.warning("未选择用户!");
+ return false;
+ }
+ if (status == 'true') {
+ learun.alert.warning('已提交,不能再修改!');
+ return;
+ }
+ learun.layerForm({
+ id: 'formInPM_WinPrize',
+ title: '新增',
+ url: top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/Form?empId=' + empId,
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ // 编辑
+ $('#lr_edit').on('click', function () {
+ if (status == 'true') {
+ learun.alert.warning('已提交,不能再修改!');
+ return;
+ }
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerForm({
+ id: 'formInPM_WinPrize',
+ title: '编辑',
+ url: top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/Form?keyValue=' + keyValue,
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 删除
+ $('#lr_delete').on('click', function () {
+ if (status == 'true') {
+ learun.alert.warning('已提交,不能再修改!');
+ return;
+ }
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认删除该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/DeleteForm', { keyValue: keyValue }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ // 提交
+ $('#lr_check').on('click', function () {
+ if (status == 'true') {
+ learun.alert.warning('已提交,不能再修改!');
+ return;
+ }
+ if (empId.length <= 0) {
+ learun.alert.warning("未选择用户!");
+ return;
+ }
+ learun.layerConfirm('是否确认提交!', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/Submit', { empId: empId, status: true }, function (info) {
+ refreshGirdData();
+ });
+ }
+ });
+ });
+ // 取消提交
+ $('#lr_uncheck').on('click', function () {
+ if (empId.length <= 0) {
+ learun.alert.warning("未选择用户!");
+ return;
+ }
+ learun.layerConfirm('是否取消提交!', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/Submit', { empId: empId, status: false }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/PM_WinPrize/GetPageList',
+ headData: [
+ { label: "职工编号", name: "EmpNo", width: 100, align: "left" },
+ { label: "姓名", name: "EmpName", width: 100, align: "left" },
+ {
+ label: "部门", name: "F_DepartmentId", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
+ key: value,
+ keyId: 'id',
+ callback: function (_data) {
+ callback(_data['name']);
+ }
+ });
+ }
+ },
+ {
+ label: "性别", name: "GenderNo", width: 80, align: "left",
+ formatter: function (cellvalue) {
+ return cellvalue == true ? "男" : "女";
+ }
+ },
+ {
+ label: "员工状态", name: "IsInActiveStatus", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'JobStatus',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: "人员身份", name: "CompilationCategory", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'CompilationCategory',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: "赛事级别", name: "CompetitionLevel", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'CompetitionLevel',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: "赛事类别", name: "CompetitionCategory", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'CompetitionCategory',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ { label: "获奖时间", name: "WinTime", width: 130, align: "left" },
+ {
+ label: "提交状态", name: "SubmitStatus", width: 100, align: "left",
+ formatter: function (cellvalue) {
+ return cellvalue == true ? "" : "";
+ }
+ },
+ ],
+ mainId: 'ID',
+ isPage: true
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ param.EmpId = empId;
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ page.search();
+ page.refreshStatus();
+ };
+ 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 3d8d6871e..3bbec2182 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
@@ -338,6 +338,7 @@
+
@@ -1022,6 +1023,8 @@
+
+
@@ -8294,6 +8297,8 @@
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/PM_WinPrize.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/PM_WinPrize.cs
new file mode 100644
index 000000000..0a61e99e4
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/PM_WinPrize.cs
@@ -0,0 +1,29 @@
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using System.Data.Entity.ModelConfiguration;
+
+namespace Learun.Application.Mapping
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-03-30 14:00
+ /// 描 述:获奖信息
+ ///
+ public class PM_WinPrizeMap : EntityTypeConfiguration
+ {
+ public PM_WinPrizeMap()
+ {
+ #region 表、主键
+ //表
+ this.ToTable("PM_WINPRIZE");
+ //主键
+ this.HasKey(t => t.ID);
+ #endregion
+
+ #region 配置关系
+ #endregion
+ }
+ }
+}
+
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 93c1210d4..acd8457fa 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
@@ -102,6 +102,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoEntity.cs
index 0d01a0b00..f5f369694 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoEntity.cs
@@ -533,6 +533,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("WORKERTECHNOLOGYSTATUS")]
public bool? WorkerTechnologyStatus { get; set; }
+ ///
+ /// 获奖信息提交状态
+ ///
+ [Column("WINPRIZESTATUS")]
+ public bool? WinPrizeStatus { get; set; }
///
/// 任同职级职务时间
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeBLL.cs
new file mode 100644
index 000000000..ddce1d1dc
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeBLL.cs
@@ -0,0 +1,170 @@
+using Learun.Util;
+using System;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-03-30 14:00
+ /// 描 述:获奖信息
+ ///
+ public class PM_WinPrizeBLL : PM_WinPrizeIBLL
+ {
+ private PM_WinPrizeService pM_WinPrizeService = new PM_WinPrizeService();
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return pM_WinPrizeService.GetPageList(pagination, queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取PM_WinPrize表实体数据
+ /// 主键
+ ///
+ ///
+ public PM_WinPrizeEntity GetPM_WinPrizeEntity(string keyValue)
+ {
+ try
+ {
+ return pM_WinPrizeService.GetPM_WinPrizeEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ ///
+ public IEnumerable GetListByEmpId(string empId)
+ {
+ try
+ {
+ return pM_WinPrizeService.GetListByEmpId(empId);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ /// 主键
+ ///
+ ///
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ pM_WinPrizeService.DeleteEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ /// 主键
+ ///
+ ///
+ public void SaveEntity(string keyValue, PM_WinPrizeEntity entity)
+ {
+ try
+ {
+ pM_WinPrizeService.SaveEntity(keyValue, entity);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+ ///
+ /// 修改提交状态
+ /// 主键
+ ///
+ ///
+ public void Submit(string keyValue, bool status)
+ {
+ try
+ {
+ pM_WinPrizeService.Submit(keyValue, status);
+ }
+ 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/EducationalAdministration/PM_WinPrize/PM_WinPrizeEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeEntity.cs
new file mode 100644
index 000000000..162bbe20c
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeEntity.cs
@@ -0,0 +1,129 @@
+using Learun.Util;
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-03-30 14:00
+ /// 描 述:获奖信息
+ ///
+ public class PM_WinPrizeEntity
+ {
+ #region 实体成员
+ ///
+ /// 编号
+ ///
+ [Column("ID")]
+ public string ID { get; set; }
+ ///
+ /// 人员ID
+ ///
+ [Column("EMPID")]
+ public string EmpId { get; set; }
+ ///
+ /// 赛事级别
+ ///
+ [Column("COMPETITIONLEVEL")]
+ public string CompetitionLevel { get; set; }
+ ///
+ /// 赛事类别
+ ///
+ [Column("COMPETITIONCATEGORY")]
+ public string CompetitionCategory { get; set; }
+ ///
+ /// 获奖时间
+ ///
+ [Column("WINTIME")]
+ public DateTime? WinTime { get; set; }
+ ///
+ /// 证书附件上传
+ ///
+ [Column("PRIZEFILE")]
+ public string PrizeFile { get; set; }
+ ///
+ /// 创建用户
+ ///
+ [Column("CREATEUSERID")]
+ public string CreateUserId { get; set; }
+ ///
+ /// 创建时间
+ ///
+ [Column("CREATETIME")]
+ public DateTime? CreateTime { get; set; }
+ ///
+ /// 最后修改人
+ ///
+ [Column("UPDATER")]
+ public string Updater { get; set; }
+ ///
+ /// 最后修改时间
+ ///
+ [Column("UPDATETIME")]
+ public DateTime? UpdateTime { get; set; }
+ #endregion
+
+ #region 扩展操作
+ ///
+ /// 新增调用
+ ///
+ public void Create()
+ {
+ this.ID = Guid.NewGuid().ToString();
+ this.CreateUserId = LoginUserInfo.Get().userId;
+ this.CreateTime = DateTime.Now;
+ }
+ ///
+ /// 编辑调用
+ ///
+ ///
+ public void Modify(string keyValue)
+ {
+ this.ID = keyValue;
+ this.Updater = LoginUserInfo.Get().userId;
+ this.UpdateTime = DateTime.Now;
+ }
+ #endregion
+ #region 扩展字段
+ ///
+ /// 提交状态
+ ///
+ [NotMapped]
+ public bool? SubmitStatus { get; set; }
+ ///
+ /// 职工号
+ ///
+ [NotMapped]
+ public string EmpNo { get; set; }
+ ///
+ /// 姓名
+ ///
+ [NotMapped]
+ public string EmpName { get; set; }
+ ///
+ /// 部门
+ ///
+ [NotMapped]
+ public string F_DepartmentId { get; set; }
+ ///
+ /// 性别
+ ///
+ [NotMapped]
+ public bool? GenderNo { get; set; }
+ ///
+ /// 员工状态
+ ///
+ [NotMapped]
+ public string IsInActiveStatus { get; set; }
+ ///
+ /// 人员身份
+ ///
+ [NotMapped]
+ public string CompilationCategory { get; set; }
+ #endregion
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeIBLL.cs
new file mode 100644
index 000000000..d4dc73fa8
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeIBLL.cs
@@ -0,0 +1,57 @@
+using Learun.Util;
+using System.Data;
+using System.Collections.Generic;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-03-30 14:00
+ /// 描 述:获奖信息
+ ///
+ public interface PM_WinPrizeIBLL
+ {
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ ///
+ IEnumerable GetPageList(Pagination pagination, string queryJson);
+ ///
+ /// 获取PM_WinPrize表实体数据
+ /// 主键
+ ///
+ ///
+ PM_WinPrizeEntity GetPM_WinPrizeEntity(string keyValue);
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ ///
+ IEnumerable GetListByEmpId(string empId);
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ /// 主键
+ ///
+ ///
+ void DeleteEntity(string keyValue);
+ ///
+ /// 保存实体数据(新增、修改)
+ /// 主键
+ ///
+ ///
+ void SaveEntity(string keyValue, PM_WinPrizeEntity entity);
+ void Submit(string keyValue, bool status);
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeService.cs
new file mode 100644
index 000000000..af6d6dc38
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/PM_WinPrize/PM_WinPrizeService.cs
@@ -0,0 +1,238 @@
+using Dapper;
+using Learun.DataBase.Repository;
+using Learun.Util;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Text;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-03-30 14:00
+ /// 描 述:获奖信息
+ ///
+ public class PM_WinPrizeService : RepositoryFactory
+ {
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ var strSql = new StringBuilder();
+ strSql.Append("SELECT t.*,e.WinPrizeStatus as SubmitStatus,e.EmpNo,e.EmpName,e.F_DepartmentId,e.GenderNo,e.IsInActiveStatus,e.CompilationCategory ");
+ strSql.Append(" FROM PM_WinPrize t ");
+ strSql.Append(" left join EmpInfo e on t.EmpId=e.EmpId ");
+ strSql.Append(" WHERE 1=1 ");
+ var queryParam = queryJson.ToJObject();
+ // 虚拟参数
+ var dp = new DynamicParameters(new { });
+ if (!queryParam["EmpId"].IsEmpty())
+ {
+ dp.Add("EmpId", queryParam["EmpId"].ToString(), DbType.String);
+ strSql.Append(" AND t.EmpId = @EmpId ");
+ }
+ if (!queryParam["EmpNo"].IsEmpty())
+ {
+ dp.Add("EmpNo", "%" + queryParam["EmpNo"].ToString() + "%", DbType.String);
+ strSql.Append(" AND e.EmpNo like @EmpNo ");
+ }
+ if (!queryParam["EmpName"].IsEmpty())
+ {
+ dp.Add("EmpName", "%" + queryParam["EmpName"].ToString() + "%", DbType.String);
+ strSql.Append(" AND e.EmpName like @EmpName ");
+ }
+ if (!queryParam["F_DepartmentId"].IsEmpty())
+ {
+ dp.Add("F_DepartmentId", queryParam["F_DepartmentId"].ToString(), DbType.String);
+ strSql.Append(" AND e.F_DepartmentId = @F_DepartmentId ");
+ }
+ if (!queryParam["GenderNo"].IsEmpty())
+ {
+ dp.Add("GenderNo", queryParam["GenderNo"].ToString(), DbType.String);
+ strSql.Append(" AND e.GenderNo = @GenderNo ");
+ }
+ if (!queryParam["IsInActiveStatus"].IsEmpty())
+ {
+ dp.Add("IsInActiveStatus", queryParam["IsInActiveStatus"].ToString(), DbType.String);
+ strSql.Append(" AND e.IsInActiveStatus = @IsInActiveStatus ");
+ }
+ if (!queryParam["CompilationCategory"].IsEmpty())
+ {
+ dp.Add("CompilationCategory", queryParam["CompilationCategory"].ToString(), DbType.String);
+ strSql.Append(" AND e.CompilationCategory = @CompilationCategory ");
+ }
+ if (!queryParam["CompetitionLevel"].IsEmpty())
+ {
+ dp.Add("CompetitionLevel", queryParam["CompetitionLevel"].ToString(), DbType.String);
+ strSql.Append(" AND t.CompetitionLevel = @CompetitionLevel ");
+ }
+ if (!queryParam["CompetitionCategory"].IsEmpty())
+ {
+ dp.Add("CompetitionCategory", queryParam["CompetitionCategory"].ToString(), DbType.String);
+ strSql.Append(" AND t.CompetitionCategory = @CompetitionCategory ");
+ }
+ return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp, pagination);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取PM_WinPrize表实体数据
+ /// 主键
+ ///
+ ///
+ public PM_WinPrizeEntity GetPM_WinPrizeEntity(string keyValue)
+ {
+ try
+ {
+ return this.BaseRepository("CollegeMIS").FindEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 查询参数
+ ///
+ public IEnumerable GetListByEmpId(string empId)
+ {
+ try
+ {
+ return this.BaseRepository("CollegeMIS").FindList(x => x.EmpId == empId);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ /// 主键
+ ///
+ ///
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ this.BaseRepository("CollegeMIS").Delete(t => t.ID == keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ /// 主键
+ ///
+ ///
+ public void SaveEntity(string keyValue, PM_WinPrizeEntity entity)
+ {
+ try
+ {
+ if (!string.IsNullOrEmpty(keyValue))
+ {
+ entity.Modify(keyValue);
+ this.BaseRepository("CollegeMIS").Update(entity);
+ }
+ else
+ {
+ entity.Create();
+ this.BaseRepository("CollegeMIS").Insert(entity);
+ }
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+ ///
+ /// 修改提交状态
+ /// 主键
+ ///
+ ///
+ public void Submit(string keyValue, bool status)
+ {
+ try
+ {
+ var empEntity = this.BaseRepository("CollegeMIS").FindEntity(a => a.EmpId == keyValue);
+ if (empEntity != null)
+ {
+ empEntity.WinPrizeStatus = status;
+ this.BaseRepository("CollegeMIS").Update(empEntity);
+ }
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
+ #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 3479983d2..f88f256c5 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
@@ -95,6 +95,10 @@
+
+
+
+