diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/AssStorageRoomController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/AssStorageRoomController.cs new file mode 100644 index 000000000..5d7c709cb --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/AssStorageRoomController.cs @@ -0,0 +1,142 @@ +using Learun.Util; +using System.Data; +using Learun.Application.TwoDevelopment.AssetManagementSystem; +using System.Web.Mvc; +using System.Collections.Generic; + +namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-11 14:32 + /// 描 述:库房的房间号 + /// + public class AssStorageRoomController : MvcControllerBase + { + private AssStorageRoomIBLL assStorageRoomIBLL = new AssStorageRoomBLL(); + + #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 = assStorageRoomIBLL.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 Ass_Storage_RoomData = assStorageRoomIBLL.GetAss_Storage_RoomEntity( keyValue ); + var jsonData = new { + Ass_Storage_Room = Ass_Storage_RoomData, + }; + return Success(jsonData); + } + + /// + /// 获取左侧树形数据 + /// + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetTree() + { + var data = assStorageRoomIBLL.GetTree(); + return Success(data); + } + + /// + /// 获取房间 + /// + /// 库房Id + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetListForStorageId(string storageId) + { + var data = assStorageRoomIBLL.GetListForStorageId(storageId); + return JsonResult(data); + } + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DeleteForm(string keyValue) + { + assStorageRoomIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult SaveForm(string keyValue, string strEntity) + { + Ass_Storage_RoomEntity entity = strEntity.ToObject(); + assStorageRoomIBLL.SaveEntity(keyValue,entity); + if (string.IsNullOrEmpty(keyValue)) + { + } + return Success("保存成功!"); + } + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.cshtml new file mode 100644 index 000000000..82dceacc3 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.cshtml @@ -0,0 +1,31 @@ +@{ + ViewBag.Title = "库房的房间号"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
所在楼宇*
+
+
+
+
房间名称*
+ +
+
+
房间号*
+ +
+
+
房间功能
+ +
+
+
面积
+ +
+
+
是否启用*
+
+
+
+@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.js new file mode 100644 index 000000000..979bd0afa --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.js @@ -0,0 +1,52 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2021-05-11 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 () { + $('#REnabled').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#StorageId').lrDataSourceSelect({ code: 'Ass_StorageData',value: 'sid',text: 'sname' }); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/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 + '/AssetManagementSystem/AssStorageRoom/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.cshtml new file mode 100644 index 000000000..83ff13f63 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.cshtml @@ -0,0 +1,50 @@ +@{ + ViewBag.Title = "库房的房间号"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
楼宇名称
+
+
+
+
+
+
+ 列表信息 +
+
+
+
+
+
+
+
名称
+ +
+
+
房间号
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.js new file mode 100644 index 000000000..0e6c2ce59 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.js @@ -0,0 +1,119 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2021-05-11 14:32 + * 描 述:库房的房间号 + */ +var refreshGirdData; +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + page.initGird(); + page.bind(); + }, + bind: function () { + // 初始化左侧树形数据 + $('#dataTree').lrtree({ + url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetTree', + nodeClick: function (item) { + page.search({ StorageId: item.value }); + } + }); + $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { + page.search(queryJson); + }, 220, 400); + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + // 新增 + $('#lr_add').on('click', function () { + learun.layerForm({ + id: 'form', + title: '新增', + url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/Form', + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + }); + // 编辑 + $('#lr_edit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('RId'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '编辑', + url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/Form?keyValue=' + keyValue, + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + }); + // 删除 + $('#lr_delete').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('RId'); + if (learun.checkrow(keyValue)) { + learun.layerConfirm('是否确认删除该项!', function (res) { + if (res) { + learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/DeleteForm', { keyValue: keyValue}, function () { + refreshGirdData(); + }); + } + }); + } + }); + // 打印 + $('#lr_print').on('click', function () { + $('#gridtable').jqprintTable(); + }); + }, + // 初始化列表 + initGird: function () { + $('#gridtable').lrAuthorizeJfGrid({ + url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetPageList', + headData: [ + { label: "名称", name: "RName", width: 100, align: "left"}, + { label: "房间号", name: "RCode", width: 100, align: "left"}, + { label: "房间功能", name: "RFunction", width: 100, align: "left"}, + { label: "面积", name: "RArea", width: 100, align: "left" }, + { label: "楼宇名称", name: "StorageId", width: 100, align: "left", + formatterAsync: function (callback, value, row, op,$cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData', + key: value, + keyId: 'sid', + callback: function (_data) { + callback(_data['sname']); + } + }); + } + }, + { + label: "是否启用", name: "REnabled", width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "" : ""; + } + }, + ], + mainId:'RId', + isPage: true + }); + page.search(); + }, + search: function (param) { + param = param || {}; + $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); + } + }; + refreshGirdData = function () { + $('#gridtable').jfGridSet('reload'); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.cshtml new file mode 100644 index 000000000..f4ed65a1f --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.cshtml @@ -0,0 +1,147 @@ +@{ + ViewBag.Title = "公文发送"; + Layout = "~/Views/Shared/_SimpleForm.cshtml"; +} + + + + + + + + +
+
+
北京金隅科技学校
+
收文处理专用纸(收文登记)
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
收文字第收文日期
来文字第
收文标题
处理意见
领导批示 +
+
+
部门处理情况 +
经办人办结日期
+
+
+ + + +
打印
+ + + + + + +@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.js new file mode 100644 index 000000000..24e4c8dd1 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.js @@ -0,0 +1,80 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2019-04-11 10:31 + * 描 述:公文发送 + */ +var refreshGirdData; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var processId = ''; + var page = { + init: function () { + console.log(keyValue); + page.bind(); + }, + bind: function () { + $.get(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/PrintInfo?keyValue=' + keyValue, + function(data) { + var data = JSON.parse(data).data; + var entityItem = data.entityItem; + console.log(data); + learun.clientdata.getAsync('department', { + key: data.entity.RReceiveUnit, + callback: function (_data) { + console.log(_data); + $('#RReceiveUnit').html(_data.name); + + } + }); + $('#swz').html(data.entity.swz); + $('#RReceiveTime').html(data.entity.RReceiveTime.substr(0,10)); + $('#RSourceUnit').html(data.entity.RSourceUnit); + $('#lwz').html(data.entity.lwz); + $('#RTitle').html(data.entity.RTitle); + $('#yj1').html(entityItem[0].SpecifyReceiver); + $('#yj2').html(entityItem[1].SpecifyReceiver); + learun.clientdata.getAsync('user', { + key: entityItem[1].ReceiverId, + callback: function (_data) { + console.log(_data); + $('#xiaozhanginfo').html(_data.name + ' ' + (entityItem[1].ReadTime || '').substr(0, 10)); + } + }); + + + learun.clientdata.getAsync('user', { + key: data.entity.SenderId, + callback: function (_data) { + $('#SenderId').html(_data.name); + } + }); + + + + var text = ''; + $.each(entityItem, + function(i, item) { + if (i < 2) {return true;} + learun.clientdata.getAsync('user', { + key: item.ReceiverId, + callback: function (_data) { + + text += '
' + + (item.SpecifyReceiver == '' ? '已阅' : item.SpecifyReceiver) + + '
'+_data.name+' '+(item.ReadTime || '').substr(0,10)+'
'; + } + }); + + + }); + $('#yj3').html(text); + + $('#overDate').html(data.entityItem[data.entityItem.length - 1].ReadTime.substr(0,10)); + }); + + }, + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml new file mode 100644 index 000000000..62ebf7269 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml @@ -0,0 +1,50 @@ +@{ + ViewBag.Title = "流程监控"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
    +
  • 未完成
  • +
  • 已完成
  • +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+  查询 +
+
+
+
+ +
+
+  查看 +
+
+
+ +
+
+
+
+
+@Html.AppendJsFile("/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js") + + + + + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js new file mode 100644 index 000000000..f5075048a --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js @@ -0,0 +1,124 @@ +/* + * 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2018 上海力软信息技术有限公司 + * 创建人:力软-前端开发组 + * 日 期:2018.12.19 + * 描 述:流程监控 + */ +var bootstrap = function ($, learun) { + "use strict"; + var categoryId = '0'; + var logbegin = ''; + var logend = ''; + + var page = { + init: function () { + $('#lr_verify').hide(); + page.initleft(); + page.initGrid(); + 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, + selectfn: function (begin, end) { + logbegin = begin; + logend = end; + page.search(); + } + }); + // 查询 + $('#btn_Search').on('click', function () { + var keyword = $('#txt_Keyword').val(); + page.search({ keyword: keyword }); + }); + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + // 查看 + $('#lr_eye').on('click', function () { + page.eye(); + }); + + }, + initleft: function () { + $('#lr_left_list li').on('click', function () { + var $this = $(this); + var $parent = $this.parent(); + $parent.find('.active').removeClass('active'); + $this.addClass('active'); + categoryId = $this.attr('data-value'); + page.search(); + }); + }, + initGrid: function () { + $('#gridtable').jfGrid({ + url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetContractList', + headData: [ + { label: '合同编号', name: 'LC_htbh', width: 150, align: "left" }, + { label: '合同名称', name: 'LC_htmc', width: 200, align: "left" }, + { label: '合同额(万元)', name: 'LC_htzje', width: 200, align: "left" }, + { label: '申报人', name: 'F_ModifyUserName', width: 100, align: "left" }, + { label: '对方单位名称', name: 'LC_dfdw', width: 200, align: "left" }, + { label: '联系人', name: 'LC_dflxr', width: 100, align: "left" }, + { label: '联系方式', name: 'LC_dfdh', width: 120, align: "left" }, + { + label: '合同开始时间', name: 'LC_htkssj', width: 100, align: "left", formatter: function (cellvalue, row) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd'); + } + }, + { + label: '合同结束时间', name: 'LC_htjssj', width: 100, align: "left", formatter: function (cellvalue, row) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd'); + } + }, + { label: '文本盖章份数', name: 'LC_gzfs', width: 80, align: "left" }, + { label: '申报日期', name: 'F_ModifyDate', width: 200, align: "left" } + ], + mainId: 'F_Id', + isPage: true, + sidx: 'F_ModifyDate DESC', + dblclick: function () { + page.eye(); + } + }); + page.search(); + }, + search: function (param) { + param = param || {}; + param.StartTime = logbegin; + param.EndTime = logend; + param.F_IsFinished = categoryId; + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); + }, + eye: function () { + var processId = $('#gridtable').jfGridValue('LC_ID') || ''; + var title = $('#gridtable').jfGridValue('LC_htmc'); + + if (learun.checkrow(processId)) { + learun.frameTab.open({ F_ModuleId: 'monitor' + processId, F_FullName: '查看-' + title, F_UrlAddress: '/LR_NewWorkFlow/NWFProcess/MonitorDetailsIndex?processId=' + processId }); + } + } + }; + + page.init(); +} + + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.cshtml new file mode 100644 index 000000000..83d6882e4 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.cshtml @@ -0,0 +1,35 @@ +@{ + ViewBag.Title = "日志管理"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+
+ +
+
+  查询 +
+
+
+
+ +
+
+  导出 +
+
+
+
+
+
+
+
+@Html.AppendJsFile("/Areas/LR_SystemModule/Views/Log/ApiIndex.js") + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.js new file mode 100644 index 000000000..e62b82d8e --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.js @@ -0,0 +1,94 @@ +/* + * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:陈彬彬 + * 日 期:2017.03.22 + * 描 述:日志管理 + */ +var bootstrap = function ($, learun) { + "use strict"; + var categoryId = '999'; + var logbegin = ''; + var logend = ''; + + var refreshGirdData = function () { + page.search(); + } + + var page = { + init: function () { + page.initGrid(); + page.bind(); + }, + bind: function () { + $('.datetime').each(function () { + $(this).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) { + logbegin = begin; + logend = end; + page.search(); + } + }); + }); + // 查询 + $('#btn_Search').on('click', function () { + var keyword = $('#txt_Keyword').val(); + page.search({ keyword: keyword }); + }); + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + }, + initGrid: function () { + $('#gridtable').jfGrid({ + url: top.$.rootUrl + '/LR_SystemModule/Log/GetPageList', + headData: [ + { + label: "操作时间", name: "F_OperateTime",width: 135, align: "left", + formatter: function (cellvalue) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); + } + }, + { label: "操作接口", name: "F_SourceObjectId",width: 140, align: "left" }, + { label: "执行结果描述", name: "F_SourceContentJson", width: 300, align: "left" } + + ], + mainId: 'F_LogId', + isPage: true, + sidx: 'F_OperateTime' + }); + page.search(); + }, + search: function (param) { + param = param || {}; + param.CategoryId = categoryId; + param.StartTime = logbegin; + param.EndTime = logend; + + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); + } + }; + page.init(); +} + + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.cshtml new file mode 100644 index 000000000..47b0af7d6 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.cshtml @@ -0,0 +1,23 @@ +@{ + ViewBag.Title = "统一认证访问日志"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+@Html.AppendJsFile("/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.js new file mode 100644 index 000000000..8ff6a1a38 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.js @@ -0,0 +1,54 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2019-07-09 10:45 + * 描 述:统一认证访问日志 + */ +var refreshGirdData; +var F_UserId = request("F_UserId"); +var bootstrap = function ($, learun) { + + "use strict"; + var page = { + init: function () { + page.initGird(); + page.bind(); + }, + bind: function () { + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + }, + // 初始化列表 + initGird: function () { + $('#gridtable').jfGrid({ + url: top.$.rootUrl + '/Permission/Perm_FunctionVisit/GetPageList', + headData: [ + { label: "系统名称", name: "FName", width: 200, align: "left" }, + { label: "访问日期", name: "PDate", width: 150, align: "left" }, + { + label: "是否成功", name: "PIsLoginSuccess", width: 70, align: "center", formatter: function (cellvalue) { + return cellvalue == true ? "" : ""; + } + }, + { label: "用户名称", name: "PUName", width: 100, align: "left" }, + { label: "访问情况", name: "PContent", width: 200, align: "left" }, + ], + mainId: 'PVId', + isPage: true, + sidx:'PDate desc' + }); + page.search(); + }, + search: function (param) { + param = param || {}; + param.F_UserId = F_UserId; + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); + } + }; + refreshGirdData = function () { + page.search(); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ReleaseMettingController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ReleaseMettingController.cs new file mode 100644 index 000000000..f0593f628 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ReleaseMettingController.cs @@ -0,0 +1,117 @@ +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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 10:32 + /// 描 述:会议管理设置 + /// + public class ReleaseMettingController : MvcControllerBase + { + private ReleaseMettingIBLL releaseMettingIBLL = new ReleaseMettingBLL(); + + #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 = releaseMettingIBLL.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 ReleaseMettingData = releaseMettingIBLL.GetReleaseMettingEntity( keyValue ); + var jsonData = new { + ReleaseMetting = ReleaseMettingData, + }; + return Success(jsonData); + } + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DeleteForm(string keyValue) + { + releaseMettingIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult SaveForm(string keyValue, string strEntity) + { + ReleaseMettingEntity entity = strEntity.ToObject(); + releaseMettingIBLL.SaveEntity(keyValue,entity); + if (string.IsNullOrEmpty(keyValue)) + { + } + return Success("保存成功!"); + } + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResearchGERController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResearchGERController.cs new file mode 100644 index 000000000..8970d0a67 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResearchGERController.cs @@ -0,0 +1,117 @@ +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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-11 18:17 + /// 描 述:教科研组管理 + /// + public class ResearchGERController : MvcControllerBase + { + private ResearchGERIBLL researchGERIBLL = new ResearchGERBLL(); + + #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 = researchGERIBLL.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 ResearchGERData = researchGERIBLL.GetResearchGEREntity( keyValue ); + var jsonData = new { + ResearchGER = ResearchGERData, + }; + return Success(jsonData); + } + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DeleteForm(string keyValue) + { + researchGERIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult SaveForm(string keyValue, string strEntity) + { + ResearchGEREntity entity = strEntity.ToObject(); + researchGERIBLL.SaveEntity(keyValue,entity); + if (string.IsNullOrEmpty(keyValue)) + { + } + return Success("保存成功!"); + } + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResearchMentController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResearchMentController.cs new file mode 100644 index 000000000..47b4b9528 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResearchMentController.cs @@ -0,0 +1,118 @@ +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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-11 17:37 + /// 描 述:教科研人员管理 + /// + public class ResearchMentController : MvcControllerBase + { + private ResearchMentIBLL researchMentIBLL = new ResearchMentBLL(); + + #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 = researchMentIBLL.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 ResearchMentData = researchMentIBLL.GetResearchMentEntity(keyValue); + var jsonData = new + { + ResearchMent = ResearchMentData, + }; + return Success(jsonData); + } + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DeleteForm(string keyValue) + { + researchMentIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult SaveForm(string keyValue, string strEntity) + { + ResearchMentEntity entity = strEntity.ToObject(); + researchMentIBLL.SaveEntity(keyValue, entity); + if (string.IsNullOrEmpty(keyValue)) + { + } + return Success("保存成功!"); + } + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResourceImportController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResourceImportController.cs new file mode 100644 index 000000000..b44865424 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResourceImportController.cs @@ -0,0 +1,117 @@ +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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 12:15 + /// 描 述:资源引入 + /// + public class ResourceImportController : MvcControllerBase + { + private ResourceImportIBLL resourceImportIBLL = new ResourceImportBLL(); + + #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 = resourceImportIBLL.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 ResourceImportData = resourceImportIBLL.GetResourceImportEntity( keyValue ); + var jsonData = new { + ResourceImport = ResourceImportData, + }; + return Success(jsonData); + } + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DeleteForm(string keyValue) + { + resourceImportIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult SaveForm(string keyValue, string strEntity) + { + ResourceImportEntity entity = strEntity.ToObject(); + resourceImportIBLL.SaveEntity(keyValue,entity); + if (string.IsNullOrEmpty(keyValue)) + { + } + return Success("保存成功!"); + } + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/StudyGuideController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/StudyGuideController.cs new file mode 100644 index 000000000..887e54afd --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/StudyGuideController.cs @@ -0,0 +1,117 @@ +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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 11:43 + /// 描 述:研究指导 + /// + public class StudyGuideController : MvcControllerBase + { + private StudyGuideIBLL studyGuideIBLL = new StudyGuideBLL(); + + #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 = studyGuideIBLL.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 StudyGuideData = studyGuideIBLL.GetStudyGuideEntity( keyValue ); + var jsonData = new { + StudyGuide = StudyGuideData, + }; + return Success(jsonData); + } + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DeleteForm(string keyValue) + { + studyGuideIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult SaveForm(string keyValue, string strEntity) + { + StudyGuideEntity entity = strEntity.ToObject(); + studyGuideIBLL.SaveEntity(keyValue,entity); + if (string.IsNullOrEmpty(keyValue)) + { + } + return Success("保存成功!"); + } + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.cshtml new file mode 100644 index 000000000..d9da5d38c --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.cshtml @@ -0,0 +1,47 @@ +@{ + ViewBag.Title = "会议管理设置"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
会议主题*
+ +
+
+
会议参与教研人员*
+ +
+
+
会议参与其它人员
+ +
+
+
会议内容
+ +
+
+
会议场地
+
+
+
+
会议场地状态
+
+
+
+
联系人
+ +
+
+
联系电话
+ +
+
+
会议开始时间
+ +
+
+
会议结束时间
+ +
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ReleaseMetting/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.js new file mode 100644 index 000000000..794214284 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.js @@ -0,0 +1,52 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2021-05-12 10: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 () { + $('#SiteName').lrDataSourceSelect({ code: 'MettingSite',value: 'sitename',text: 'sitename' }); + $('#ReleaseState').lrDataItemSelect({ code: 'ApplyStatus' }); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/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/ReleaseMetting/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.cshtml new file mode 100644 index 000000000..af40d1721 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.cshtml @@ -0,0 +1,49 @@ +@{ + ViewBag.Title = "会议管理设置"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+
+
会议主题
+ +
+
+
联系人
+ +
+
+
会议场地
+
+
+
+
会议场地状态
+
+
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ReleaseMetting/Index.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.js new file mode 100644 index 000000000..f540b8282 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.js @@ -0,0 +1,118 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2021-05-12 10:32 + * 描 述:会议管理设置 + */ +var refreshGirdData; +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + page.initGird(); + page.bind(); + }, + bind: function () { + $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { + page.search(queryJson); + }, 220, 400); + $('#SiteName').lrDataSourceSelect({ code: 'MettingSite',value: 'sitename',text: 'sitename' }); + $('#ReleaseState').lrDataItemSelect({ code: 'ApplyStatus' }); + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + // 新增 + $('#lr_add').on('click', function () { + learun.layerForm({ + id: 'form', + title: '新增', + url: top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/Form', + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + }); + // 编辑 + $('#lr_edit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ReleaseID'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '编辑', + url: top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/Form?keyValue=' + keyValue, + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + }); + // 删除 + $('#lr_delete').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ReleaseID'); + if (learun.checkrow(keyValue)) { + learun.layerConfirm('是否确认删除该项!', function (res) { + if (res) { + learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/DeleteForm', { keyValue: keyValue}, function () { + refreshGirdData(); + }); + } + }); + } + }); + // 打印 + $('#lr_print').on('click', function () { + $('#gridtable').jqprintTable(); + }); + }, + // 初始化列表 + initGird: function () { + $('#gridtable').lrAuthorizeJfGrid({ + url: top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/GetPageList', + headData: [ + { label: "会议主题", name: "ReleaseName", width: 100, align: "left"}, + { label: "会议场地", name: "SiteName", width: 100, align: "left", + formatterAsync: function (callback, value, row, op,$cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'MettingSite', + key: value, + keyId: 'sitename', + callback: function (_data) { + callback(_data['sitename']); + } + }); + }}, + { label: "联系人", name: "Contact", width: 100, align: "left"}, + { label: "联系电话", name: "SiteIphone", width: 100, align: "left"}, + { label: "会议开始时间", name: "TimeBegin", width: 100, align: "left"}, + { label: "会议场地状态", name: "ReleaseState", width: 100, align: "left", + formatterAsync: function (callback, value, row, op,$cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'ApplyStatus', + callback: function (_data) { + callback(_data.text); + } + }); + }}, + { label: "会议结束时间", name: "TimeOver", width: 100, align: "left"}, + ], + mainId:'ReleaseID', + isPage: true + }); + page.search(); + }, + search: function (param) { + param = param || {}; + $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); + } + }; + refreshGirdData = function () { + $('#gridtable').jfGridSet('reload'); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Form.cshtml new file mode 100644 index 000000000..d9511552d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Form.cshtml @@ -0,0 +1,31 @@ +@{ + ViewBag.Title = "资源引入"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
标题
+ +
+
+
内容
+
+
+ + +
+
附件
+
+
+
+
是否发布
+
+
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ResourceImport/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Form.js new file mode 100644 index 000000000..6915a357d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Form.js @@ -0,0 +1,59 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2021-05-12 12:15 + * 描 述:资源引入 + */ +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 () { + var ImportContentUE = UE.getEditor('ImportContent'); + $('#ImportContent')[0].ue = ImportContentUE; $('#ImportTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss')); + $('#ImportUser')[0].lrvalue = learun.clientdata.get(['userinfo']).userId; + $('#ImportUser').val(learun.clientdata.get(['userinfo']).realName); + $('#ImportLetter').lrUploader(); + $('#ImportState').lrRadioCheckbox({ + type: 'radio', + code: 'YesOrNoInt', + }); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/PersonnelManagement/ResourceImport/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/ResourceImport/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Index.cshtml new file mode 100644 index 000000000..049a4e5fd --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Index.cshtml @@ -0,0 +1,37 @@ +@{ + ViewBag.Title = "资源引入"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+
+
标题
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ResourceImport/Index.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Index.js new file mode 100644 index 000000000..4040d1123 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Index.js @@ -0,0 +1,111 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2021-05-12 12:15 + * 描 述:资源引入 + */ +var refreshGirdData; +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + page.initGird(); + page.bind(); + }, + bind: function () { + $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { + page.search(queryJson); + }, 220, 300); + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + // 新增 + $('#lr_add').on('click', function () { + learun.layerForm({ + id: 'form', + title: '新增', + url: top.$.rootUrl + '/PersonnelManagement/ResourceImport/Form', + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + }); + // 编辑 + $('#lr_edit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ImportId'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '编辑', + url: top.$.rootUrl + '/PersonnelManagement/ResourceImport/Form?keyValue=' + keyValue, + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + }); + // 删除 + $('#lr_delete').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ImportId'); + if (learun.checkrow(keyValue)) { + learun.layerConfirm('是否确认删除该项!', function (res) { + if (res) { + learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ResourceImport/DeleteForm', { keyValue: keyValue}, function () { + refreshGirdData(); + }); + } + }); + } + }); + // 打印 + $('#lr_print').on('click', function () { + $('#gridtable').jqprintTable(); + }); + }, + // 初始化列表 + initGird: function () { + $('#gridtable').lrAuthorizeJfGrid({ + url: top.$.rootUrl + '/PersonnelManagement/ResourceImport/GetPageList', + headData: [ + { label: "标题", name: "ImportName", width: 100, align: "left"}, + { label: "添加时间", name: "ImportTime", width: 100, align: "left"}, + { label: "创建用户", name: "ImportUser", 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: "ImportState", width: 100, align: "left", + formatterAsync: function (callback, value, row, op,$cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'YesOrNoInt', + callback: function (_data) { + callback(_data.text); + } + }); + }}, + ], + mainId:'ImportId', + isPage: true + }); + page.search(); + }, + search: function (param) { + param = param || {}; + $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); + } + }; + refreshGirdData = function () { + $('#gridtable').jfGridSet('reload'); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Form.cshtml new file mode 100644 index 000000000..867bbfbd4 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Form.cshtml @@ -0,0 +1,27 @@ +@{ + ViewBag.Title = "研究指导"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
标题
+ +
+
+
附件上传
+
+
+
+
创建用户
+ +
+
+
添加时间
+ +
+
+
是否发布
+
+
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/StudyGuide/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Form.js new file mode 100644 index 000000000..51863f44c --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Form.js @@ -0,0 +1,52 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2021-05-12 11:43 + * 描 述:研究指导 + */ +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 () { + $('#AttachmentUp').lrUploader(); + $('#GuideState').lrDataItemSelect({ code: 'YesOrNoInt' }); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/PersonnelManagement/StudyGuide/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/StudyGuide/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Index.cshtml new file mode 100644 index 000000000..d0962e4a2 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Index.cshtml @@ -0,0 +1,37 @@ +@{ + ViewBag.Title = "研究指导"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+
+
标题
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+@Html.AppendJsFile("/Areas/PersonnelManagement/Views/StudyGuide/Index.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Index.js new file mode 100644 index 000000000..a391d4f2a --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Index.js @@ -0,0 +1,103 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2021-05-12 11:43 + * 描 述:研究指导 + */ +var refreshGirdData; +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + page.initGird(); + page.bind(); + }, + bind: function () { + $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { + page.search(queryJson); + }, 220, 300); + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + // 新增 + $('#lr_add').on('click', function () { + learun.layerForm({ + id: 'form', + title: '新增', + url: top.$.rootUrl + '/PersonnelManagement/StudyGuide/Form', + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + }); + // 编辑 + $('#lr_edit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('StudyID'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '编辑', + url: top.$.rootUrl + '/PersonnelManagement/StudyGuide/Form?keyValue=' + keyValue, + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + }); + // 删除 + $('#lr_delete').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('StudyID'); + if (learun.checkrow(keyValue)) { + learun.layerConfirm('是否确认删除该项!', function (res) { + if (res) { + learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/StudyGuide/DeleteForm', { keyValue: keyValue}, function () { + refreshGirdData(); + }); + } + }); + } + }); + // 打印 + $('#lr_print').on('click', function () { + $('#gridtable').jqprintTable(); + }); + }, + // 初始化列表 + initGird: function () { + $('#gridtable').lrAuthorizeJfGrid({ + url: top.$.rootUrl + '/PersonnelManagement/StudyGuide/GetPageList', + headData: [ + { label: "标题", name: "StudyName", width: 100, align: "left"}, + { label: "创建用户", name: "GuideName", width: 100, align: "left"}, + { label: "添加时间", name: "Guidetime", width: 100, align: "left"}, + { label: "是否发布", name: "GuideState", width: 100, align: "left", + formatterAsync: function (callback, value, row, op,$cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'YesOrNoInt', + callback: function (_data) { + callback(_data.text); + } + }); + }}, + ], + mainId:'StudyID', + isPage: true + }); + page.search(); + }, + search: function (param) { + param = param || {}; + $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); + } + }; + refreshGirdData = function () { + $('#gridtable').jfGridSet('reload'); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/css/LoginModel/login9.css b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/css/LoginModel/login9.css new file mode 100644 index 000000000..1ce0efe5f --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/css/LoginModel/login9.css @@ -0,0 +1,304 @@ +* { + box-sizing: border-box; +} + +.commonClear:after, +.commonClear:before { + content: ''; + display: block; + width: 100%; + clear: both; +} + +.login_box { + width: 84%; + min-width: 1100px; + margin: 0 auto; + position: relative; +} + +.loginHead { + line-height: 0; + padding: 30px 0; + position: relative; +} + +.loginHead img { + width: 48%; +} +.login_span{ + color: #a0a0a0; + font-size: 12px; + position: absolute; + left: 49%; + bottom: 43%; +} +.loginBox { + padding: 140px 0 0 0; + background-image: url(../../images/Login/loginBg9.jpg); + background-size: 100% 100%; + -moz-background-size: 100% 100%; + -webkit-background-size: 100% 100%; + -o-background-size: 100% 100%; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../images/Login/loginBg6.jpg', sizingMethod='scale'); + min-height: 444px; +} + +.loginCon { + float: right; + margin-right: 9%; + width: 320px; + background-color: #FBFCFC; +} + +.loginInput { + height: 38px; + position: relative; + margin-top: 25px; +} + +.loginInput img { + position: absolute; + top: 0; + bottom: 0; + left: 12px; + margin: auto; + height: 20px; +} + +.loginInput input { + padding: 5px 10px 5px 40px; + height: 100%; + width: 100%; + font-size: 14px; + color: #1a1a1a; + line-height: 28px; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0); + -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0); + border: 1px solid #EDEDEC; + /*border-radius: 3px;*/ + transition: border-color 0.3s; + -moz-transition: border-color 0.3s; + -ms-transition: border-color 0.3s; + -o-transition: border-color 0.3s; + -webkit-transition: border-color 0.3s; +} + +.loginInput input:focus { + /*background: transparent;*/ + border-color: #64B2F4; + box-shadow: 0 0 0 2px rgba(255, 255, 255, 0); +} + +.loginTabCon { + display: none; +} + +.loginTabCon:first-child { + display: block; +} + +.loginBtn { + background: #0094de; + overflow: hidden; + height: 38px; + line-height: 38px; + border-radius: 5px; + color: #fff; + margin-top: 35px; +} +.loginBtn_box{ + margin-top: 15px; + height: 26px; +} +.bbh_bs{ + border:1px solid #0073cc; + color: #0073cc; + font-size: 12px; + border-radius: 20px; + padding: 1px 8px ; + float: left; +} +.bbh_sdow{ + float: right; +} +.bbh_sdow img{ + width: 10px; + height: 10px; +} +.loginBtn input { + width: 100%; + height: 100%; + cursor: pointer; + border-radius: 5px; + background: #0073cc; + font-size: 16px; + color: #fff; + line-height: 28px; + border: 1px solid #0073cc; + box-shadow: 0 0 0 2px rgba(255, 255, 255, 0) inset !important; +} +.loginBtn2{ + margin-top:20px; +} +.loginBtn2 input{ + background: #fff; + color: #0073cc; +} +.bbh { + margin-top: 10px; + font-size: 12px; +} +.bbh img{ + width: 20px; + height: 20px; + float: left; + margin-right: 5px; +} +.bbh_span1 { + color: #0094de; + padding-top: 8px; +} + + +.bbh_span2 { + float: right; + /* color: #a0a0a0; */ + color: #0094de; +} + +.loginTab>li { + cursor: pointer; + width: 50%; + float: left; + text-align: center; + line-height: 48px; + height: 48px; + font-size: 16px; + color: #666666; + background-color: #DEE9F3; +} + +.loginTab .active { + background-color: #1189C9; + color: #fff; +} + +.loginTabBox { + margin: 30px 30px; + /*height: 264px;*/ +} + +#code { + width: 128px; +} + +.variCode { + position: absolute; + right: 0; + top: 1px; + bottom: 1px; + width: 90px; + line-height: 0; +} + +.variCode img { + width: 100%; + height: 100%; + left: 0; +} + +#qrCode { + margin: 30px auto 10px; + width: 200px; +} + +.qrCodeTxt { + text-align: center; + margin: 20px 0 30px; + +} + +.loginFooter { + height: 60px; + text-align: center; + line-height: 60px; + font-size: 12px; + color: #777777; +} + +@media(max-width:1600px) { + .loginHead { + padding: 20px 0; + } + + .loginHead img { + width: 28%; + } + .login_span{ + left: 29%; + } + + .loginInput { + margin-top: 20px; + } + + .loginBtn { + margin-top: 25px; + } + + .loginTabBox { + height: 274px; + } + + .loginCon { + width: 300px; + } +} + + +@media(max-width:1366px) { + .loginTab>li { + line-height: 40px; + height: 40px; + } + + .loginInput { + margin-top: 15px; + } + + .loginInput input { + line-height: 24px; + } + + .loginInput { + height: 34px; + } + + .loginTabBox { + margin: 20px 20px; + height: 264px; + } + + .loginCon { + width: 260px; + } + + .loginFooter { + height: 40px; + line-height: 40px; + } + + .loginHead { + padding: 15px 0; + } + + .loginHead img { + width: 25%; + } + + .login_span{ + left: 26%; + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/key.png b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/key.png new file mode 100644 index 000000000..fcd23d521 Binary files /dev/null and b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/key.png differ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/loginBg9.jpg b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/loginBg9.jpg new file mode 100644 index 000000000..29ae5ca55 Binary files /dev/null and b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/loginBg9.jpg differ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/logo9.png b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/logo9.png new file mode 100644 index 000000000..f97bbc4c0 Binary files /dev/null and b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/logo9.png differ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/person.png b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/person.png new file mode 100644 index 000000000..2dd80af6e Binary files /dev/null and b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/person.png differ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/variCode.png b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/variCode.png new file mode 100644 index 000000000..6a4b0059b Binary files /dev/null and b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/variCode.png differ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven.cshtml new file mode 100644 index 000000000..36198b579 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven.cshtml @@ -0,0 +1,147 @@ + + + + + + + + + + 数字化智慧校园 + + + + + + + + + + + + +
+ +
+
+ +
+
+ 数字化智慧校园 版权所有 + +
+ + + + + + @Html.AppendJsFile("/Views/Login/PageSeven/Index.js") + @Html.AppendJsFile("/Views/Login/ACLogon.js") + + + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven/Index.js new file mode 100644 index 000000000..feb2330c7 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven/Index.js @@ -0,0 +1,215 @@ +/*! + * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:陈彬彬 + * 日 期:2017.03.08 + * 描 述:登录页面前端脚本 + */ +(function ($) { + "use strict"; + var source = request('source'); + var keyValue = request('keyValue'); + var isBindAccountLogin = request('isBindAccountLogin');//切换账号登录 + var bindUserName = request('bindUserName');//绑定账号 + var bindUserPassword = request('bindUserPassword');//绑定账号密码 + var lrPage = { + init: function () { + //切换账号登录时:登录页赋值,触发登录事件; + if (isBindAccountLogin == 1) { + $("#lr_username").val(bindUserName); + $("#lr_password").val(bindUserPassword); + lrPage.login(); + } + + $('#psw_change').css({ + 'background': 'url(' + $.rootUrl + '/Content/images/Login/psw0.png) no-repeat center center' + }); + + var error = request('error'); + if (error == "ip") { + lrPage.tip("登录IP限制"); + } + else if (error == "time") { + lrPage.tip("登录时间限制"); + } + + if (!keyValue) { + + if (window.location.href != top.window.location.href) { + top.window.location.href = window.location.href; + } + } + var isIE = !!window.ActiveXObject; + var isIE6 = isIE && !window.XMLHttpRequest; + if (isIE6) { + window.location.href = $.rootUrl + "/Error/ErrorBrowser"; + } + lrPage.bind(); + }, + bind: function () { + // 回车键 + document.onkeydown = function (e) { + e = e || window.event; + if ((e.keyCode || e.which) == 13) { + $('#lr_login_btn').trigger('click'); + } + } + //输入框获取焦点 + $('.lr-login-input input').on('focus', function () { + var src = $(this).prev().attr('src'); + $(this).prev().attr('src', src.replace(/0.png$/, '1.png')); + }).on('blur', function () { + var src = $(this).prev().attr('src'); + $(this).prev().attr('src', src.replace(/1.png$/, '0.png')); + }); + + // 点击切换验证码 + $("#lr_verifycode_img").click(function () { + $("#verifycode").val(''); + $("#lr_verifycode_img").attr("src", $.rootUrl + "/Login/VerifyCode?time=" + Math.random()); + }); + var errornum = $('#errornum').val(); + if (errornum >= 3) { + + $(".loginInputCode").show(); + $("#lr_verifycode_img").trigger('click'); + } + + //点击密码icon 显示/隐藏 + $('#psw_change').click(function (event) { + var event = event || window.event; + event.stopPropagation(); + var $this = $(this); + $this.toggleClass('psw_show'); + //如果当前隐藏 变显示 + if ($this.hasClass('psw_show')) { + $this.css({ + 'background': 'url(' + $.rootUrl + '/Content/images/Login/psw1.png) no-repeat center center' + }); + $this.prev().attr('type', 'text'); + } else { + $this.css( + 'background', 'url(/Content/images/Login/psw0.png) no-repeat center center' + ); + $this.prev().attr('type', 'password'); + } + }); + + //登录方式点击 + $('.lr-login-toCode').click(function () { + var _this = $(this); + if (_this.attr('login-access') == 'psw') { + $('.lr-login-bycode').show(); + $('.lr-login-bypsw').hide(); + + } else { + $('.lr-login-bypsw').show(); + $('.lr-login-bycode').hide(); + + } + }) + + // 登录按钮事件 + $("#lr_login_btn").on('click', function () { + lrPage.login(); + }); + //java的统一身份认证 + var javaName = request("u"); + if (javaName) { + $("#lr_username").val(javaName); + $("#lr_password").val('123456'); + lrPage.login(); + } + }, + login: function () { + lrPage.tip(); + + var $username = $("#lr_username"), $password = $("#lr_password"), $verifycode = $("#verifycode"); + var username = $.trim($username.val()), password = $.trim($password.val()), verifycode = $.trim($verifycode.val()); + + if (username == "") { + lrPage.tip('请输入账户'); + $username.focus(); + return false; + } + if (password == "") { + lrPage.tip('请输入密码'); + $password.focus(); + return false; + } + + if ($("#verifycode").is(":visible") && verifycode == "") { + lrPage.tip('请输入验证码'); + $verifycode.focus(); + return false; + } + if (ACIp != null && ACIp != "") { + //Ip上网 + sendToAc(ACIp, 'logon', Ip, username, ''); + } + if (ACIp2 != null && ACIp2 != "") { + //Ip上网 + sendToAc(ACIp2, 'logon', Ip, username, ''); + } + password = $.md5(password); + lrPage.logining(true); + $.ajax({ + url: $.rootUrl + "/Login/CheckLogin", + headers: { __RequestVerificationToken: $.lrToken }, + data: { username: username, password: password, verifycode: verifycode }, + type: "post", + dataType: "json", + success: function (res) { + if (res.code == 200) { + if (source == "noLogin") { + window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; + } else if (source == "DragNoLogin") { + window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/DragModelOne"; + } else { + + window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; + } + } + else if (res.code == 400) { + lrPage.logining(false); + lrPage.tip(res.info, true); + $('#errornum').val(res.data); + if (res.data >= 3) { + $(".loginInputCode").show(); + $("#lr_verifycode_img").trigger('click'); + } + } + else if (res.code == 500) { + lrPage.logining(false); + lrPage.tip('服务端异常,请联系管理员', true); + } + } + }); + }, + logining: function (isShow) { + if (isShow) { + $('input').attr('disabled', 'disabled'); + $("#lr_login_btn").addClass('active').attr('disabled', 'disabled').find('span').hide(); + $("#lr_login_btn").css('background', '#eeecec url(/Content/images/Login/loading.gif) no-repeat center 10px'); + + } + else { + $('input').removeAttr('disabled'); + $("#lr_login_btn").removeClass('active').removeAttr('disabled').find('span').show(); + $("#lr_login_btn").css('background', '#0094de'); + + } + }, + tip: function (msg) { + var $tip = $('.error_info'); + $tip.hide(); + if (!!msg) { + $tip.find('span').html(msg); + $tip.show(); + } + } + }; + $(function () { + lrPage.init(); + }); +})(window.jQuery) \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven/IndexWxLogin.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven/IndexWxLogin.js new file mode 100644 index 000000000..691d69264 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven/IndexWxLogin.js @@ -0,0 +1,203 @@ +/*! + * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:陈彬彬 + * 日 期:2017.03.08 + * 描 述:登录页面前端脚本 + */ +(function ($) { + "use strict"; + var source = request('source'); + var keyValue = request('keyValue'); + var lrPage = { + init: function () { + + $('#psw_change').css({ + 'background': 'url(' + $.rootUrl + '/Content/images/Login/psw0.png) no-repeat center center' + }); + + var error = request('error'); + if (error == "ip") { + lrPage.tip("登录IP限制"); + } + else if (error == "time") { + lrPage.tip("登录时间限制"); + } + + if (!keyValue) { + + if (window.location.href != top.window.location.href) { + top.window.location.href = window.location.href; + } + } + var isIE = !!window.ActiveXObject; + var isIE6 = isIE && !window.XMLHttpRequest; + if (isIE6) { + window.location.href = $.rootUrl + "/Error/ErrorBrowser"; + } + lrPage.bind(); + }, + bind: function () { + // 回车键 + document.onkeydown = function (e) { + e = e || window.event; + if ((e.keyCode || e.which) == 13) { + $('#lr_login_btn').trigger('click'); + } + } + //输入框获取焦点 + $('.lr-login-input input').on('focus', function () { + var src = $(this).prev().attr('src'); + $(this).prev().attr('src', src.replace(/0.png$/, '1.png')); + }).on('blur', function () { + var src = $(this).prev().attr('src'); + $(this).prev().attr('src', src.replace(/1.png$/, '0.png')); + }); + + // 点击切换验证码 + $("#lr_verifycode_img").click(function () { + $("#verifycode").val(''); + $("#lr_verifycode_img").attr("src", $.rootUrl + "/Login/VerifyCode?time=" + Math.random()); + }); + var errornum = $('#errornum').val(); + if (errornum >= 3) { + + $(".loginInputCode").show(); + $("#lr_verifycode_img").trigger('click'); + } + + //点击密码icon 显示/隐藏 + $('#psw_change').click(function (event) { + var event = event || window.event; + event.stopPropagation(); + var $this = $(this); + $this.toggleClass('psw_show'); + //如果当前隐藏 变显示 + if ($this.hasClass('psw_show')) { + $this.css({ + 'background': 'url(' + $.rootUrl + '/Content/images/Login/psw1.png) no-repeat center center' + }); + $this.prev().attr('type', 'text'); + } else { + $this.css( + 'background', 'url(/Content/images/Login/psw0.png) no-repeat center center' + ); + $this.prev().attr('type', 'password'); + } + }); + + //登录方式点击 + $('.lr-login-toCode').click(function () { + var _this = $(this); + if (_this.attr('login-access') == 'psw') { + $('.lr-login-bycode').show(); + $('.lr-login-bypsw').hide(); + + } else { + $('.lr-login-bypsw').show(); + $('.lr-login-bycode').hide(); + + } + }) + + // 登录按钮事件 + $("#lr_login_btn").on('click', function () { + lrPage.login(); + }); + }, + login: function () { + lrPage.tip(); + + var $username = $("#lr_username"), $password = $("#lr_password"), $verifycode = $("#lr_verifycode_input"), $WeixinOpenId = $("#WeixinOpenId"); + var username = $.trim($username.val()), password = $.trim($password.val()), verifycode = $.trim($verifycode.val()), WeixinOpenId = $.trim($WeixinOpenId.val()); + var up = true; + + if (username == "") { + lrPage.tip('请输入账户'); + $username.focus(); + return false; + } + if (password == "") { + lrPage.tip('请输入密码'); + $password.focus(); + return false; + } + var reg = /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\.])[0-9a-zA-Z!@#$%^&*,\.]{8,20}$/; + if (!reg.test(password)) { + up = false; + } + + if ($("#lr_verifycode_input").is(":visible") && verifycode == "") { + lrPage.tip('请输入验证码'); + $verifycode.focus(); + return false; + } + + if (ACIp != null && ACIp != "") { + //Ip上网 + sendToAc(ACIp, 'logon', Ip, username, ''); + } + if (ACIp2 != null && ACIp2 != "") { + //Ip上网 + sendToAc(ACIp2, 'logon', Ip, username, ''); + } + password = $.md5(password); + lrPage.logining(true); + $.ajax({ + url: $.rootUrl + "/Login/CheckLoginBind", + headers: { __RequestVerificationToken: $.lrToken }, + data: { username: username, pwd: password, WeixinOpenId: WeixinOpenId, up: up }, + type: "post", + dataType: "json", + success: function (res) { + if (res.code == 200) { + if (source == "noLogin") { + window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; + } else { + + window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; + } + } + else if (res.code == 400) { + lrPage.logining(false); + lrPage.tip(res.info, true); + $('#errornum').val(res.data); + if (res.data >= 3) { + $(".loginInputCode").show(); + $("#lr_verifycode_img").trigger('click'); + } + } + else if (res.code == 500) { + lrPage.logining(false); + lrPage.tip('服务端异常,请联系管理员', true); + } + } + }); + }, + logining: function (isShow) { + if (isShow) { + $('input').attr('disabled', 'disabled'); + $("#lr_login_btn").addClass('active').attr('disabled', 'disabled').find('span').hide(); + $("#lr_login_btn").css('background', '#eeecec url(/Content/images/Login/loading.gif) no-repeat center 10px'); + + } + else { + $('input').removeAttr('disabled'); + $("#lr_login_btn").removeClass('active').removeAttr('disabled').find('span').show(); + $("#lr_login_btn").css('background', '#0094de'); + + } + }, + tip: function (msg) { + var $tip = $('.error_info'); + $tip.hide(); + if (!!msg) { + $tip.find('span').html(msg); + $tip.show(); + } + } + }; + $(function () { + lrPage.init(); + }); +})(window.jQuery) \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSevenWxLogin.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSevenWxLogin.cshtml new file mode 100644 index 000000000..345a71f36 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSevenWxLogin.cshtml @@ -0,0 +1,137 @@ + + + + + + + + + + 数字化智慧校园 + + + + + + + + + + + +
+ +
+
+ +
+
+ 数字化智慧校园 版权所有 + +
+ + + + + + @Html.AppendJsFile("/Views/Login/PageSeven/IndexWxLogin.js") + @Html.AppendJsFile("/Views/Login/ACLogon.js") + + + + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/AssetManagementSystem/Ass_Storage_RoomMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/AssetManagementSystem/Ass_Storage_RoomMap.cs new file mode 100644 index 000000000..60c5280e6 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/AssetManagementSystem/Ass_Storage_RoomMap.cs @@ -0,0 +1,29 @@ +using Learun.Application.TwoDevelopment.AssetManagementSystem; +using System.Data.Entity.ModelConfiguration; + +namespace Learun.Application.Mapping +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-11 14:32 + /// 描 述:库房的房间号 + /// + public class Ass_Storage_RoomMap : EntityTypeConfiguration + { + public Ass_Storage_RoomMap() + { + #region 表、主键 + //表 + this.ToTable("ASS_STORAGE_ROOM"); + //主键 + this.HasKey(t => t.RId); + #endregion + + #region 配置关系 + #endregion + } + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ReleaseMettingMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ReleaseMettingMap.cs new file mode 100644 index 000000000..7c9ef7242 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ReleaseMettingMap.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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 10:32 + /// 描 述:会议管理设置 + /// + public class ReleaseMettingMap : EntityTypeConfiguration + { + public ReleaseMettingMap() + { + #region 表、主键 + //表 + this.ToTable("RELEASEMETTING"); + //主键 + this.HasKey(t => t.ReleaseID); + #endregion + + #region 配置关系 + #endregion + } + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ResourceImportMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ResourceImportMap.cs new file mode 100644 index 000000000..a9cb5d513 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ResourceImportMap.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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 12:15 + /// 描 述:资源引入 + /// + public class ResourceImportMap : EntityTypeConfiguration + { + public ResourceImportMap() + { + #region 表、主键 + //表 + this.ToTable("RESOURCEIMPORT"); + //主键 + this.HasKey(t => t.ImportId); + #endregion + + #region 配置关系 + #endregion + } + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/StudyGuideMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/StudyGuideMap.cs new file mode 100644 index 000000000..f0e61e263 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/StudyGuideMap.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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 11:43 + /// 描 述:研究指导 + /// + public class StudyGuideMap : EntityTypeConfiguration + { + public StudyGuideMap() + { + #region 表、主键 + //表 + this.ToTable("STUDYGUIDE"); + //主键 + this.HasKey(t => t.StudyID); + #endregion + + #region 配置关系 + #endregion + } + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomBLL.cs new file mode 100644 index 000000000..4dc21999d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomBLL.cs @@ -0,0 +1,189 @@ +using Learun.Util; +using System; +using System.Data; +using System.Collections.Generic; + +namespace Learun.Application.TwoDevelopment.AssetManagementSystem +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-11 14:32 + /// 描 述:库房的房间号 + /// + public class AssStorageRoomBLL : AssStorageRoomIBLL + { + private AssStorageRoomService assStorageRoomService = new AssStorageRoomService(); + + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + return assStorageRoomService.GetPageList(pagination, queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 获取Ass_Storage_Room表实体数据 + /// + /// 主键 + /// + public Ass_Storage_RoomEntity GetAss_Storage_RoomEntity(string keyValue) + { + try + { + return assStorageRoomService.GetAss_Storage_RoomEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + + /// + /// 获取左侧树形数据 + /// + /// + public List GetTree() + { + try + { + DataTable list = assStorageRoomService.GetSqlTree(); + List treeList = new List(); + foreach (DataRow item in list.Rows) + { + TreeModel node = new TreeModel + { + id = item["SId"].ToString(), + text = item["SName"].ToString(), + value = item["SId"].ToString(), + showcheck = false, + checkstate = 0, + isexpand = true, + parentId = "0" + }; + treeList.Add(node); + } + return treeList.ToTree(); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 根据库房Id获取房间号 + /// + /// + /// + public IEnumerable GetListForStorageId(string storageId) + { + try + { + return assStorageRoomService.GetListForStorageId(storageId); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + public void DeleteEntity(string keyValue) + { + try + { + assStorageRoomService.DeleteEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + public void SaveEntity(string keyValue, Ass_Storage_RoomEntity entity) + { + try + { + assStorageRoomService.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/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomIBLL.cs new file mode 100644 index 000000000..df4c40b3d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomIBLL.cs @@ -0,0 +1,59 @@ +using Learun.Util; +using System.Data; +using System.Collections.Generic; + +namespace Learun.Application.TwoDevelopment.AssetManagementSystem +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-11 14:32 + /// 描 述:库房的房间号 + /// + public interface AssStorageRoomIBLL + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + IEnumerable GetPageList(Pagination pagination, string queryJson); + /// + /// 获取Ass_Storage_Room表实体数据 + /// + /// 主键 + /// + Ass_Storage_RoomEntity GetAss_Storage_RoomEntity(string keyValue); + /// + /// 获取左侧树结构 + /// + /// + /// + List GetTree(); + /// + /// 获取房间号 + /// + /// + IEnumerable GetListForStorageId(string storageId); + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + void DeleteEntity(string keyValue); + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + void SaveEntity(string keyValue, Ass_Storage_RoomEntity entity); + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomService.cs new file mode 100644 index 000000000..901b94e57 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomService.cs @@ -0,0 +1,214 @@ +using Dapper; +using Learun.DataBase.Repository; +using Learun.Util; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Text; + +namespace Learun.Application.TwoDevelopment.AssetManagementSystem +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-11 14:32 + /// 描 述:库房的房间号 + /// + public class AssStorageRoomService : RepositoryFactory + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(@" + t.RId, + t.RName, + t.RCode, + t.RFunction, + t.RArea, + t.REnabled, + t.StorageId + "); + strSql.Append(" FROM Ass_Storage_Room t "); + strSql.Append(" WHERE 1=1 "); + var queryParam = queryJson.ToJObject(); + // 虚拟参数 + var dp = new DynamicParameters(new { }); + if (!queryParam["RName"].IsEmpty()) + { + dp.Add("RName", "%" + queryParam["RName"].ToString() + "%", DbType.String); + strSql.Append(" AND t.RName Like @RName "); + } + if (!queryParam["RCode"].IsEmpty()) + { + dp.Add("RCode", "%" + queryParam["RCode"].ToString() + "%", DbType.String); + strSql.Append(" AND t.RCode Like @RCode "); + } + if (!queryParam["StorageId"].IsEmpty()) + { + dp.Add("StorageId",queryParam["StorageId"].ToString(), DbType.String); + strSql.Append(" AND t.StorageId = @StorageId "); + } + return this.BaseRepository().FindList(strSql.ToString(),dp, pagination); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取Ass_Storage_Room表实体数据 + /// + /// 主键 + /// + public Ass_Storage_RoomEntity GetAss_Storage_RoomEntity(string keyValue) + { + try + { + return this.BaseRepository().FindEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取树形数据 + /// + /// + public DataTable GetSqlTree() + { + try + { + return this.BaseRepository().FindTable(" select * from Ass_Storage where SIsEnabled=1 "); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + + /// + /// 获取房间号 + /// + /// 主键 + /// + public IEnumerable GetListForStorageId(string storageId) + { + try + { + string sql = $"select RId,RName,RCode from Ass_Storage_Room where renabled=1 and StorageId='{storageId}'"; + return this.BaseRepository().FindList(sql); + } + 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.RId == keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + public void SaveEntity(string keyValue, Ass_Storage_RoomEntity 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 + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/Ass_Storage_RoomEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/Ass_Storage_RoomEntity.cs new file mode 100644 index 000000000..24253b54a --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/Ass_Storage_RoomEntity.cs @@ -0,0 +1,75 @@ +using Learun.Util; +using System; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Learun.Application.TwoDevelopment.AssetManagementSystem +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-11 14:32 + /// 描 述:库房的房间号 + /// + public class Ass_Storage_RoomEntity + { + #region 实体成员 + /// + /// RId + /// + [Column("RID")] + public string RId { get; set; } + /// + /// StorageId + /// + [Column("STORAGEID")] + public string StorageId { get; set; } + /// + /// RName + /// + [Column("RNAME")] + public string RName { get; set; } + /// + /// RCode + /// + [Column("RCODE")] + public string RCode { get; set; } + /// + /// RFunction + /// + [Column("RFUNCTION")] + public string RFunction { get; set; } + /// + /// RArea + /// + [Column("RAREA")] + public string RArea { get; set; } + /// + /// REnabled + /// + [Column("RENABLED")] + public bool? REnabled { get; set; } + #endregion + + #region 扩展操作 + /// + /// 新增调用 + /// + public void Create() + { + this.RId = Guid.NewGuid().ToString(); + } + /// + /// 编辑调用 + /// + /// + public void Modify(string keyValue) + { + this.RId = keyValue; + } + #endregion + #region 扩展字段 + #endregion + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs new file mode 100644 index 000000000..7b6696f72 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs @@ -0,0 +1,230 @@ +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.LR_LGManager +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-04-21 17:48 + /// 描 述:LC_hetong + /// + public class LC_hetongService : RepositoryFactory + { + #region 构造函数和属性 + + private string fieldSql; + /// + /// 构造方法 + /// + public LC_hetongService() + { + fieldSql = @" + t.LC_ID, + t.F_EnabledMark, + t.F_ModifyUserName, + t.F_SortCode, + t.F_ModifyDate, + t.F_CreateUserName, + t.F_CreateDate, + t.F_Description, + t.LC_htkssj, + t.LC_htjssj, + t.LC_qdrq, + t.LC_htlx, + t.LC_htmc, + t.LC_htbd, + t.LC_htbh, + t.LC_htzje, + t.LC_wenben, + t.LC_gzfs, + t.LC_dfdw, + t.LC_dflxr, + t.LC_dfdh, + t.LC_csyj, + t.LC_csyjqt, + t.LC_sfty, + t.LC_fujian, + t.LC_beizhu, + t.LC_hqcyj, + t.LC_zgldyj, + t.LC_cwcyj, + t.LC_bgsyj, + t.OperationTime, + t.LC_CheckMark, + t.LC_sqwtr + "; + } + #endregion + + #region 获取数据 + + /// + /// 获取列表数据 + /// + /// 条件参数 + /// + public IEnumerable GetList(string queryJson) + { + try + { + //参考写法 + //var queryParam = queryJson.ToJObject(); + // 虚拟参数 + //var dp = new DynamicParameters(new { }); + //dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(fieldSql); + strSql.Append(" FROM LC_hetong t "); + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString()); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取列表分页数据 + /// + /// 分页参数 + /// 条件参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT t.* "); + strSql.Append(" FROM LC_hetong t left join adms7ultimate2.dbo.LR_NWF_Process b on t.lc_id=b.f_id where b.F_EnabledMark!=2 and F_IsChild=0 "); + var queryParam = queryJson.ToJObject(); + // 虚拟参数 + var dp = new DynamicParameters(new { }); + if (!queryParam["F_IsFinished"].IsEmpty()) + { + dp.Add("F_IsFinished", queryParam["F_IsFinished"].ToString(), DbType.String); + strSql.Append(" and b.F_IsFinished=@F_IsFinished "); + } + 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.F_ModifyDate >= @startTime AND t.F_ModifyDate <= @endTime ) "); + } + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp,pagination); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取实体数据 + /// + /// 主键 + /// + public LC_hetongEntity GetEntity(string keyValue) + { + try + { + return this.BaseRepository("CollegeMIS").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("CollegeMIS").Delete(t => t.LC_ID == keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// 主键 + /// 实体 + /// + public void SaveEntity(string keyValue, LC_hetongEntity 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); + } + } + } + + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingBLL.cs new file mode 100644 index 000000000..a0ea4c256 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingBLL.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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 10:32 + /// 描 述:会议管理设置 + /// + public class ReleaseMettingBLL : ReleaseMettingIBLL + { + private ReleaseMettingService releaseMettingService = new ReleaseMettingService(); + + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + return releaseMettingService.GetPageList(pagination, queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 获取ReleaseMetting表实体数据 + /// + /// 主键 + /// + public ReleaseMettingEntity GetReleaseMettingEntity(string keyValue) + { + try + { + return releaseMettingService.GetReleaseMettingEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + public void DeleteEntity(string keyValue) + { + try + { + releaseMettingService.DeleteEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + public void SaveEntity(string keyValue, ReleaseMettingEntity entity) + { + try + { + releaseMettingService.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/ReleaseMetting/ReleaseMettingEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingEntity.cs new file mode 100644 index 000000000..ed0d229f4 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingEntity.cs @@ -0,0 +1,95 @@ +using Learun.Util; +using System; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Learun.Application.TwoDevelopment.PersonnelManagement +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 10:32 + /// 描 述:会议管理设置 + /// + public class ReleaseMettingEntity + { + #region 实体成员 + /// + /// ReleaseID + /// + [Column("RELEASEID")] + public string ReleaseID { get; set; } + /// + /// ReleaseName + /// + [Column("RELEASENAME")] + public string ReleaseName { get; set; } + /// + /// ReleaseStaff + /// + [Column("RELEASESTAFF")] + public string ReleaseStaff { get; set; } + /// + /// ReleaseOther + /// + [Column("RELEASEOTHER")] + public string ReleaseOther { get; set; } + /// + /// ReleaseContent + /// + [Column("RELEASECONTENT")] + public string ReleaseContent { get; set; } + /// + /// SiteName + /// + [Column("SITENAME")] + public string SiteName { get; set; } + /// + /// Contact + /// + [Column("CONTACT")] + public string Contact { get; set; } + /// + /// SiteIphone + /// + [Column("SITEIPHONE")] + public string SiteIphone { get; set; } + /// + /// TimeBegin + /// + [Column("TIMEBEGIN")] + public DateTime? TimeBegin { get; set; } + /// + /// TimeOver + /// + [Column("TIMEOVER")] + public DateTime? TimeOver { get; set; } + /// + /// ReleaseState + /// + [Column("RELEASESTATE")] + public string ReleaseState { get; set; } + #endregion + + #region 扩展操作 + /// + /// 新增调用 + /// + public void Create() + { + this.ReleaseID = Guid.NewGuid().ToString(); + } + /// + /// 编辑调用 + /// + /// + public void Modify(string keyValue) + { + this.ReleaseID = keyValue; + } + #endregion + #region 扩展字段 + #endregion + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingIBLL.cs new file mode 100644 index 000000000..8f56e012d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingIBLL.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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 10:32 + /// 描 述:会议管理设置 + /// + public interface ReleaseMettingIBLL + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + IEnumerable GetPageList(Pagination pagination, string queryJson); + /// + /// 获取ReleaseMetting表实体数据 + /// + /// 主键 + /// + ReleaseMettingEntity GetReleaseMettingEntity(string keyValue); + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + void DeleteEntity(string keyValue); + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + void SaveEntity(string keyValue, ReleaseMettingEntity entity); + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingService.cs new file mode 100644 index 000000000..fbe7d5e4c --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingService.cs @@ -0,0 +1,171 @@ +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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 10:32 + /// 描 述:会议管理设置 + /// + public class ReleaseMettingService : RepositoryFactory + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(@" + t.ReleaseID, + t.ReleaseName, + t.SiteName, + t.Contact, + t.SiteIphone, + t.TimeBegin, + t.ReleaseState, + t.TimeOver + "); + strSql.Append(" FROM ReleaseMetting t "); + strSql.Append(" WHERE 1=1 "); + var queryParam = queryJson.ToJObject(); + // 虚拟参数 + var dp = new DynamicParameters(new { }); + if (!queryParam["ReleaseName"].IsEmpty()) + { + dp.Add("ReleaseName", "%" + queryParam["ReleaseName"].ToString() + "%", DbType.String); + strSql.Append(" AND t.ReleaseName Like @ReleaseName "); + } + if (!queryParam["Contact"].IsEmpty()) + { + dp.Add("Contact", "%" + queryParam["Contact"].ToString() + "%", DbType.String); + strSql.Append(" AND t.Contact Like @Contact "); + } + if (!queryParam["SiteName"].IsEmpty()) + { + dp.Add("SiteName",queryParam["SiteName"].ToString(), DbType.String); + strSql.Append(" AND t.SiteName = @SiteName "); + } + if (!queryParam["ReleaseState"].IsEmpty()) + { + dp.Add("ReleaseState",queryParam["ReleaseState"].ToString(), DbType.String); + strSql.Append(" AND t.ReleaseState = @ReleaseState "); + } + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(),dp, pagination); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取ReleaseMetting表实体数据 + /// + /// 主键 + /// + public ReleaseMettingEntity GetReleaseMettingEntity(string keyValue) + { + try + { + return this.BaseRepository("CollegeMIS").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("CollegeMIS").Delete(t=>t.ReleaseID == keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + public void SaveEntity(string keyValue, ReleaseMettingEntity 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); + } + } + } + + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportBLL.cs new file mode 100644 index 000000000..17f79c13f --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportBLL.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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 12:15 + /// 描 述:资源引入 + /// + public class ResourceImportBLL : ResourceImportIBLL + { + private ResourceImportService resourceImportService = new ResourceImportService(); + + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + return resourceImportService.GetPageList(pagination, queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 获取ResourceImport表实体数据 + /// + /// 主键 + /// + public ResourceImportEntity GetResourceImportEntity(string keyValue) + { + try + { + return resourceImportService.GetResourceImportEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + public void DeleteEntity(string keyValue) + { + try + { + resourceImportService.DeleteEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + public void SaveEntity(string keyValue, ResourceImportEntity entity) + { + try + { + resourceImportService.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/ResourceImport/ResourceImportEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportEntity.cs new file mode 100644 index 000000000..95e0eefdd --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportEntity.cs @@ -0,0 +1,75 @@ +using Learun.Util; +using System; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Learun.Application.TwoDevelopment.PersonnelManagement +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 12:15 + /// 描 述:资源引入 + /// + public class ResourceImportEntity + { + #region 实体成员 + /// + /// ImportId + /// + [Column("IMPORTID")] + public string ImportId { get; set; } + /// + /// ImportName + /// + [Column("IMPORTNAME")] + public string ImportName { get; set; } + /// + /// ImportContent + /// + [Column("IMPORTCONTENT")] + public string ImportContent { get; set; } + /// + /// ImportLetter + /// + [Column("IMPORTLETTER")] + public string ImportLetter { get; set; } + /// + /// ImportState + /// + [Column("IMPORTSTATE")] + public string ImportState { get; set; } + /// + /// ImportTime + /// + [Column("IMPORTTIME")] + public DateTime? ImportTime { get; set; } + /// + /// ImportUser + /// + [Column("IMPORTUSER")] + public string ImportUser { get; set; } + #endregion + + #region 扩展操作 + /// + /// 新增调用 + /// + public void Create() + { + this.ImportId = Guid.NewGuid().ToString(); + } + /// + /// 编辑调用 + /// + /// + public void Modify(string keyValue) + { + this.ImportId = keyValue; + } + #endregion + #region 扩展字段 + #endregion + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportIBLL.cs new file mode 100644 index 000000000..a6da07297 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportIBLL.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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 12:15 + /// 描 述:资源引入 + /// + public interface ResourceImportIBLL + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + IEnumerable GetPageList(Pagination pagination, string queryJson); + /// + /// 获取ResourceImport表实体数据 + /// + /// 主键 + /// + ResourceImportEntity GetResourceImportEntity(string keyValue); + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + void DeleteEntity(string keyValue); + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + void SaveEntity(string keyValue, ResourceImportEntity entity); + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportService.cs new file mode 100644 index 000000000..20d859e9a --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportService.cs @@ -0,0 +1,153 @@ +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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 12:15 + /// 描 述:资源引入 + /// + public class ResourceImportService : RepositoryFactory + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(@" + t.ImportId, + t.ImportName, + t.ImportTime, + t.ImportUser, + t.ImportState + "); + strSql.Append(" FROM ResourceImport t "); + strSql.Append(" WHERE 1=1 "); + var queryParam = queryJson.ToJObject(); + // 虚拟参数 + var dp = new DynamicParameters(new { }); + if (!queryParam["ImportName"].IsEmpty()) + { + dp.Add("ImportName", "%" + queryParam["ImportName"].ToString() + "%", DbType.String); + strSql.Append(" AND t.ImportName Like @ImportName "); + } + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(),dp, pagination); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取ResourceImport表实体数据 + /// + /// 主键 + /// + public ResourceImportEntity GetResourceImportEntity(string keyValue) + { + try + { + return this.BaseRepository("CollegeMIS").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("CollegeMIS").Delete(t=>t.ImportId == keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + public void SaveEntity(string keyValue, ResourceImportEntity 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); + } + } + } + + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideBLL.cs new file mode 100644 index 000000000..8195582c7 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideBLL.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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 11:43 + /// 描 述:研究指导 + /// + public class StudyGuideBLL : StudyGuideIBLL + { + private StudyGuideService studyGuideService = new StudyGuideService(); + + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + return studyGuideService.GetPageList(pagination, queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 获取StudyGuide表实体数据 + /// + /// 主键 + /// + public StudyGuideEntity GetStudyGuideEntity(string keyValue) + { + try + { + return studyGuideService.GetStudyGuideEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + public void DeleteEntity(string keyValue) + { + try + { + studyGuideService.DeleteEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + public void SaveEntity(string keyValue, StudyGuideEntity entity) + { + try + { + studyGuideService.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/StudyGuide/StudyGuideEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideEntity.cs new file mode 100644 index 000000000..0035d112a --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideEntity.cs @@ -0,0 +1,70 @@ +using Learun.Util; +using System; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Learun.Application.TwoDevelopment.PersonnelManagement +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 11:43 + /// 描 述:研究指导 + /// + public class StudyGuideEntity + { + #region 实体成员 + /// + /// StudyID + /// + [Column("STUDYID")] + public string StudyID { get; set; } + /// + /// StudyName + /// + [Column("STUDYNAME")] + public string StudyName { get; set; } + /// + /// GuideName + /// + [Column("GUIDENAME")] + public string GuideName { get; set; } + /// + /// Guidetime + /// + [Column("GUIDETIME")] + public string Guidetime { get; set; } + /// + /// GuideState + /// + [Column("GUIDESTATE")] + public string GuideState { get; set; } + /// + /// AttachmentUp + /// + [Column("ATTACHMENTUP")] + public string AttachmentUp { get; set; } + #endregion + + #region 扩展操作 + /// + /// 新增调用 + /// + public void Create() + { + this.StudyID = Guid.NewGuid().ToString(); + } + /// + /// 编辑调用 + /// + /// + public void Modify(string keyValue) + { + this.StudyID = keyValue; + } + #endregion + #region 扩展字段 + #endregion + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideIBLL.cs new file mode 100644 index 000000000..009832707 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideIBLL.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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 11:43 + /// 描 述:研究指导 + /// + public interface StudyGuideIBLL + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + IEnumerable GetPageList(Pagination pagination, string queryJson); + /// + /// 获取StudyGuide表实体数据 + /// + /// 主键 + /// + StudyGuideEntity GetStudyGuideEntity(string keyValue); + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + void DeleteEntity(string keyValue); + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + void SaveEntity(string keyValue, StudyGuideEntity entity); + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideService.cs new file mode 100644 index 000000000..b77c27b70 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideService.cs @@ -0,0 +1,153 @@ +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 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2021-05-12 11:43 + /// 描 述:研究指导 + /// + public class StudyGuideService : RepositoryFactory + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(@" + t.StudyID, + t.StudyName, + t.GuideName, + t.Guidetime, + t.GuideState + "); + strSql.Append(" FROM StudyGuide t "); + strSql.Append(" WHERE 1=1 "); + var queryParam = queryJson.ToJObject(); + // 虚拟参数 + var dp = new DynamicParameters(new { }); + if (!queryParam["StudyName"].IsEmpty()) + { + dp.Add("StudyName", "%" + queryParam["StudyName"].ToString() + "%", DbType.String); + strSql.Append(" AND t.StudyName Like @StudyName "); + } + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(),dp, pagination); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取StudyGuide表实体数据 + /// + /// 主键 + /// + public StudyGuideEntity GetStudyGuideEntity(string keyValue) + { + try + { + return this.BaseRepository("CollegeMIS").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("CollegeMIS").Delete(t=>t.StudyID == keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + public void SaveEntity(string keyValue, StudyGuideEntity 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); + } + } + } + + #endregion + + } +}