zhangli 3 lat temu
rodzic
commit
6871bdb966
61 zmienionych plików z 5435 dodań i 0 usunięć
  1. +142
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/AssStorageRoomController.cs
  2. +31
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.cshtml
  3. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.js
  4. +50
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.cshtml
  5. +119
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.js
  6. +147
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.cshtml
  7. +80
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.js
  8. +50
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml
  9. +124
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js
  10. +35
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.cshtml
  11. +94
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.js
  12. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.cshtml
  13. +54
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.js
  14. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ReleaseMettingController.cs
  15. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResearchGERController.cs
  16. +118
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResearchMentController.cs
  17. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResourceImportController.cs
  18. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/StudyGuideController.cs
  19. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.cshtml
  20. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.js
  21. +49
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.cshtml
  22. +118
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.js
  23. +31
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Form.cshtml
  24. +59
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Form.js
  25. +37
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Index.cshtml
  26. +111
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Index.js
  27. +27
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Form.cshtml
  28. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Form.js
  29. +37
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Index.cshtml
  30. +103
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Index.js
  31. +304
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/css/LoginModel/login9.css
  32. BIN
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/key.png
  33. BIN
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/loginBg9.jpg
  34. BIN
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/logo9.png
  35. BIN
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/person.png
  36. BIN
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/variCode.png
  37. +147
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven.cshtml
  38. +215
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven/Index.js
  39. +203
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven/IndexWxLogin.js
  40. +137
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSevenWxLogin.cshtml
  41. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/AssetManagementSystem/Ass_Storage_RoomMap.cs
  42. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ReleaseMettingMap.cs
  43. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ResourceImportMap.cs
  44. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/StudyGuideMap.cs
  45. +189
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomBLL.cs
  46. +59
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomIBLL.cs
  47. +214
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomService.cs
  48. +75
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/Ass_Storage_RoomEntity.cs
  49. +230
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs
  50. +125
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingBLL.cs
  51. +95
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingEntity.cs
  52. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingIBLL.cs
  53. +171
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingService.cs
  54. +125
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportBLL.cs
  55. +75
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportEntity.cs
  56. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportIBLL.cs
  57. +153
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportService.cs
  58. +125
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideBLL.cs
  59. +70
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideEntity.cs
  60. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideIBLL.cs
  61. +153
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideService.cs

+ 142
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/AssStorageRoomController.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-11 14:32
/// 描 述:库房的房间号
/// </summary>
public class AssStorageRoomController : MvcControllerBase
{
private AssStorageRoomIBLL assStorageRoomIBLL = new AssStorageRoomBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = assStorageRoomIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[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);
}

/// <summary>
/// 获取左侧树形数据
/// <summary>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetTree()
{
var data = assStorageRoomIBLL.GetTree();
return Success(data);
}

/// <summary>
/// 获取房间
/// </summary>
/// <param name="storageId">库房Id</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetListForStorageId(string storageId)
{
var data = assStorageRoomIBLL.GetListForStorageId(storageId);
return JsonResult(data);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
assStorageRoomIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="strEntity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
Ass_Storage_RoomEntity entity = strEntity.ToObject<Ass_Storage_RoomEntity>();
assStorageRoomIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 31
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.cshtml Wyświetl plik

@@ -0,0 +1,31 @@
@{
ViewBag.Title = "库房的房间号";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="Ass_Storage_Room">
<div class="lr-form-item-title">所在楼宇<font face="宋体">*</font></div>
<div id="StorageId" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Storage_Room">
<div class="lr-form-item-title">房间名称<font face="宋体">*</font></div>
<input id="RName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Storage_Room">
<div class="lr-form-item-title">房间号<font face="宋体">*</font></div>
<input id="RCode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="Ass_Storage_Room">
<div class="lr-form-item-title">房间功能</div>
<input id="RFunction" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="Ass_Storage_Room">
<div class="lr-form-item-title">面积</div>
<input id="RArea" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Storage_Room">
<div class="lr-form-item-title">是否启用<font face="宋体">*</font></div>
<div id="REnabled" isvalid="yes" checkexpession="NotNull"></div>
</div>
</div>
@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.js")

+ 52
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Form.js Wyświetl plik

@@ -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();
}

+ 50
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.cshtml Wyświetl plik

@@ -0,0 +1,50 @@
@{
ViewBag.Title = "库房的房间号";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout lr-layout-left-center" id="lr_layout" >
<div class="lr-layout-left">
<div class="lr-layout-wrap">
<div class="lr-layout-title lrlg ">楼宇名称</div>
<div id="dataTree" class="lr-layout-body"></div>
</div>
</div>
<div class="lr-layout-center">
<div class="lr-layout-wrap ">
<div class="lr-layout-title">
<span id="titleinfo" class="lrlg">列表信息</span>
</div>
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">名称</div>
<input id="RName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">房间号</div>
<input id="RCode" type="text" class="form-control" />
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.js")

+ 119
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.js Wyświetl plik

@@ -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 ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
}
},
],
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();
}

+ 147
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.cshtml Wyświetl plik

@@ -0,0 +1,147 @@
@{
ViewBag.Title = "公文发送";
Layout = "~/Views/Shared/_SimpleForm.cshtml";
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
table,
tr,
td {
padding: 0;
margin: 0;
border-collapse: collapse;
}

table {
/* table-layout: fixed; */
font-size: 13px;
}
.tableBox {
width: 90%;
margin: 30px auto;
}
.table {
width: 100%;
border-top: 1px solid #000;
border-right: 1px solid #000;
}
.table th{
font-size: 18px;
border-left: 1px solid #000;
padding: 5px 0;
}
.table tr {
border-bottom: 1px solid #000;
}

.table td {
border-left: 1px solid #000;
line-height: 20px;
padding: 5px 5px;
}
.tableT {
text-align: center;
font-size: 18px;
margin-bottom: 5px;
letter-spacing: 4px;
}
.tableTxt1,.tableTxt2{
border-left: 1px solid #000;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
padding: 5px 10px;
}
.tableTxt1:first-child{
border-top: 1px solid #000;
}
.tableTxt2{
text-align: right;
}



.btn {
width: 100px;
height: 34px;
line-height: 34px;
text-align: center;
margin: 30px auto;
border: 1px solid #ccc;
cursor: pointer;
border-radius: 4px;
}
</style>
</head>
<body>
<div id="table">
<div class="tableBox">
<div class="tableT">北京金隅科技学校</div>
<div class="tableT">收文处理专用纸(收文登记)</div>
<table class="table">
<tr>
<td style="width: 80px;">收文</td>
<td id="RReceiveUnit"></td>
<td style="width: 80px;">字第</td>
<td id="swz"></td>
<td style="width: 80px;">号</td>
<td>收文日期</td>
<td id="RReceiveTime"></td>
</tr>
<tr>
<td>来文</td>
<td id="RSourceUnit"></td>
<td>字第</td>
<td id="lwz"></td>
<td>号</td>
<td></td>
<td></td>
</tr>
<tr>
<td>收文标题</td>
<td colspan="6" id="RTitle"></td>
</tr>
<tr>
<td>处理意见</td>
<td colspan="6" id="yj1"></td>
</tr>
<tr>
<td>领导批示</td>
<td colspan="6">
<div class="tableTxt1" id="yj2"></div>
<div class="tableTxt2" id="xiaozhanginfo"></div>
</td>
</tr>
<tr>
<td>部门处理情况</td>
<td colspan="6" id="yj3">
</td>
</tr>
<tr>
<td>经办人</td>
<td colspan="4" id="SenderId"></td>
<td>办结日期</td>
<td id="overDate"></td>
</tr>
</table>
</div>
</div>
<div class="btn">打印</div>
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/jquery.jqprint-0.3.js"></script>
<script>
$('.btn').click(function(){
$('.tableBox').jqprint();
})
</script>
</body>
</html>

@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.js")

+ 80
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/PrintView.js Wyświetl plik

@@ -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 += '<div class="tableTxt1">' +
(item.SpecifyReceiver == '' ? '已阅' : item.SpecifyReceiver) +
'</div> <div class="tableTxt2"> '+_data.name+' '+(item.ReadTime || '').substr(0,10)+'</div>';
}
});
});
$('#yj3').html(text);

$('#overDate').html(data.entityItem[data.entityItem.length - 1].ReadTime.substr(0,10));
});

},
};
page.init();
}

+ 50
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml Wyświetl plik

@@ -0,0 +1,50 @@
@{
ViewBag.Title = "流程监控";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div id="lr_layout" class="lr-layout lr-layout-left-center">
<div class="lr-layout-left">
<div class="lr-layout-wrap lr-layout-wrap-notitle" style="padding-top:10px;">
<div class="lr-layout-body">
<ul class="lr-left-list" id="lr_left_list">
<li class="active lrlg" data-value="0">未完成</li>
<li data-value="1" class="lrlg">已完成</li>
</ul>
</div>
</div>
</div>
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="datesearch"></div>
</div>
<div class="lr-layout-tool-item">
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" />
</div>
<div class="lr-layout-tool-item">
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>&nbsp;<span class="lrlg">查询</span></a>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_eye" class="btn btn-default"><i class="fa fa-eye"></i>&nbsp;<span class="lrlg">查看</span></a>
</div>
</div>
</div>

<div class="lr-layout-body" id="gridtable">
</div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js")






+ 124
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js Wyświetl plik

@@ -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();
}



+ 35
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.cshtml Wyświetl plik

@@ -0,0 +1,35 @@
@{
ViewBag.Title = "日志管理";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="datesearch" class="datetime"></div>
</div>
<div class="lr-layout-tool-item">
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" />
</div>
<div class="lr-layout-tool-item">
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>&nbsp;<span class="lrlt">查询</span></a>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm">
<a id="lr_export" class="btn btn-default"><i class="fa fa-sign-out"></i>&nbsp;<span class="lrlt">导出</span></a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable">
</div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/LR_SystemModule/Views/Log/ApiIndex.js")


+ 94
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.js Wyświetl plik

@@ -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();
}



+ 23
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.cshtml Wyświetl plik

@@ -0,0 +1,23 @@
@{
ViewBag.Title = "统一认证访问日志";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.js")

+ 54
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.js Wyświetl plik

@@ -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 ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
}
},
{ 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();
}

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ReleaseMettingController.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 10:32
/// 描 述:会议管理设置
/// </summary>
public class ReleaseMettingController : MvcControllerBase
{
private ReleaseMettingIBLL releaseMettingIBLL = new ReleaseMettingBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = releaseMettingIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var ReleaseMettingData = releaseMettingIBLL.GetReleaseMettingEntity( keyValue );
var jsonData = new {
ReleaseMetting = ReleaseMettingData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
releaseMettingIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="strEntity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
ReleaseMettingEntity entity = strEntity.ToObject<ReleaseMettingEntity>();
releaseMettingIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResearchGERController.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-11 18:17
/// 描 述:教科研组管理
/// </summary>
public class ResearchGERController : MvcControllerBase
{
private ResearchGERIBLL researchGERIBLL = new ResearchGERBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = researchGERIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var ResearchGERData = researchGERIBLL.GetResearchGEREntity( keyValue );
var jsonData = new {
ResearchGER = ResearchGERData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
researchGERIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="strEntity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
ResearchGEREntity entity = strEntity.ToObject<ResearchGEREntity>();
researchGERIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 118
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResearchMentController.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-11 17:37
/// 描 述:教科研人员管理
/// </summary>
public class ResearchMentController : MvcControllerBase
{
private ResearchMentIBLL researchMentIBLL = new ResearchMentBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = researchMentIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var ResearchMentData = researchMentIBLL.GetResearchMentEntity(keyValue);
var jsonData = new
{
ResearchMent = ResearchMentData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
researchMentIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="strEntity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
ResearchMentEntity entity = strEntity.ToObject<ResearchMentEntity>();
researchMentIBLL.SaveEntity(keyValue, entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ResourceImportController.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 12:15
/// 描 述:资源引入
/// </summary>
public class ResourceImportController : MvcControllerBase
{
private ResourceImportIBLL resourceImportIBLL = new ResourceImportBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = resourceImportIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var ResourceImportData = resourceImportIBLL.GetResourceImportEntity( keyValue );
var jsonData = new {
ResourceImport = ResourceImportData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
resourceImportIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="strEntity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
ResourceImportEntity entity = strEntity.ToObject<ResourceImportEntity>();
resourceImportIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/StudyGuideController.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 11:43
/// 描 述:研究指导
/// </summary>
public class StudyGuideController : MvcControllerBase
{
private StudyGuideIBLL studyGuideIBLL = new StudyGuideBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = studyGuideIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var StudyGuideData = studyGuideIBLL.GetStudyGuideEntity( keyValue );
var jsonData = new {
StudyGuide = StudyGuideData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
studyGuideIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="strEntity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
StudyGuideEntity entity = strEntity.ToObject<StudyGuideEntity>();
studyGuideIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 47
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.cshtml Wyświetl plik

@@ -0,0 +1,47 @@
@{
ViewBag.Title = "会议管理设置";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="ReleaseMetting" >
<div class="lr-form-item-title">会议主题<font face="宋体">*</font></div>
<input id="ReleaseName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ReleaseMetting" >
<div class="lr-form-item-title">会议参与教研人员<font face="宋体">*</font></div>
<textarea id="ReleaseStaff" class="form-control" style="height:100px;" isvalid="yes" checkexpession="NotNull" ></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="ReleaseMetting" >
<div class="lr-form-item-title">会议参与其它人员</div>
<textarea id="ReleaseOther" class="form-control" style="height:100px;" ></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="ReleaseMetting" >
<div class="lr-form-item-title">会议内容</div>
<textarea id="ReleaseContent" class="form-control" style="height:100px;" ></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="ReleaseMetting" >
<div class="lr-form-item-title">会议场地</div>
<div id="SiteName" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ReleaseMetting" >
<div class="lr-form-item-title">会议场地状态</div>
<div id="ReleaseState" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ReleaseMetting" >
<div class="lr-form-item-title">联系人</div>
<input id="Contact" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ReleaseMetting" >
<div class="lr-form-item-title">联系电话</div>
<input id="SiteIphone" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ReleaseMetting" >
<div class="lr-form-item-title">会议开始时间</div>
<input id="TimeBegin" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#TimeBegin').trigger('change'); } })" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ReleaseMetting" >
<div class="lr-form-item-title">会议结束时间</div>
<input id="TimeOver" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#TimeOver').trigger('change'); } })" />
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ReleaseMetting/Form.js")

+ 52
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.js Wyświetl plik

@@ -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();
}

+ 49
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.cshtml Wyświetl plik

@@ -0,0 +1,49 @@
@{
ViewBag.Title = "会议管理设置";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">会议主题</div>
<input id="ReleaseName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">联系人</div>
<input id="Contact" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">会议场地</div>
<div id="SiteName"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">会议场地状态</div>
<div id="ReleaseState"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ReleaseMetting/Index.js")

+ 118
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.js Wyświetl plik

@@ -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();
}

+ 31
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Form.cshtml Wyświetl plik

@@ -0,0 +1,31 @@
@{
ViewBag.Title = "资源引入";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="ResourceImport" >
<div class="lr-form-item-title">标题</div>
<input id="ImportName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ResourceImport" >
<div class="lr-form-item-title">内容</div>
<div id="ImportContent" style="height:200px;"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ResourceImport" style="display: none; " >
<div class="lr-form-item-title">添加时间</div>
<input id="ImportTime" type="text" readonly class="form-control currentInfo lr-currentInfo-time" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ResourceImport" style="display: none; " >
<div class="lr-form-item-title">创建用户</div>
<input id="ImportUser" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ResourceImport" >
<div class="lr-form-item-title">附件</div>
<div id="ImportLetter" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ResourceImport" >
<div class="lr-form-item-title">是否发布</div>
<div id="ImportState"></div>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ResourceImport/Form.js")

+ 59
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Form.js Wyświetl plik

@@ -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();
}

+ 37
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Index.cshtml Wyświetl plik

@@ -0,0 +1,37 @@
@{
ViewBag.Title = "资源引入";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">标题</div>
<input id="ImportName" type="text" class="form-control" />
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ResourceImport/Index.js")

+ 111
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResourceImport/Index.js Wyświetl plik

@@ -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();
}

+ 27
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Form.cshtml Wyświetl plik

@@ -0,0 +1,27 @@
@{
ViewBag.Title = "研究指导";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="StudyGuide" >
<div class="lr-form-item-title">标题</div>
<input id="StudyName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudyGuide" >
<div class="lr-form-item-title">附件上传</div>
<div id="AttachmentUp" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StudyGuide" >
<div class="lr-form-item-title">创建用户</div>
<input id="GuideName" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudyGuide" >
<div class="lr-form-item-title">添加时间</div>
<input id="Guidetime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm',onpicked: function () { $('#Guidetime').trigger('change'); } })" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudyGuide" >
<div class="lr-form-item-title">是否发布</div>
<div id="GuideState" ></div>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/StudyGuide/Form.js")

+ 52
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Form.js Wyświetl plik

@@ -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();
}

+ 37
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Index.cshtml Wyświetl plik

@@ -0,0 +1,37 @@
@{
ViewBag.Title = "研究指导";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">标题</div>
<input id="StudyName" type="text" class="form-control" />
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/StudyGuide/Index.js")

+ 103
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/StudyGuide/Index.js Wyświetl plik

@@ -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();
}

+ 304
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/css/LoginModel/login9.css Wyświetl plik

@@ -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%;
}
}

BIN
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/key.png Wyświetl plik

Przed Po
Szerokość: 25  |  Wysokość: 24  |  Rozmiar: 609 B

BIN
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/loginBg9.jpg Wyświetl plik

Przed Po
Szerokość: 2560  |  Wysokość: 1153  |  Rozmiar: 1.8 MiB

BIN
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/logo9.png Wyświetl plik

Przed Po
Szerokość: 1091  |  Wysokość: 108  |  Rozmiar: 26 KiB

BIN
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/person.png Wyświetl plik

Przed Po
Szerokość: 23  |  Wysokość: 25  |  Rozmiar: 598 B

BIN
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/Login/variCode.png Wyświetl plik

Przed Po
Szerokość: 13  |  Wysokość: 15  |  Rozmiar: 1.9 KiB

+ 147
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven.cshtml Wyświetl plik

@@ -0,0 +1,147 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<title>数字化智慧校园</title>
<meta name="keywords" content="登陆页面" />
<meta name="description" content="登陆页面" />
<link href="~/Content/css/LoginModel/loginPublic.css" rel="stylesheet" />
<link href="~/Content/css/LoginModel/common.css" rel="stylesheet" />
<link href="~/Content/css/LoginModel/login9.css" rel="stylesheet" />
<link href="~/Content/css/process.css" rel="stylesheet" />
<!--自适应-->
<!--自适应-->

</head>

<body>
<div class="loginHead">
<div class="login_box">
<img src="~/Content/images/Login/logo9.png" alt="" />
<span class="login_span">
@if (ViewBag.Version)
{@ViewBag.VersionNum}
</span>
</div>
</div>
<div class="loginBox">
<div class="login_box commonClear">
<div class="loginCon">
<ul class="loginTab commonClear">
<li class="active">PC端登录</li>
<li>移动端登录</li>
</ul>
<input id="errornum" type="hidden" value="@ViewBag.errornum" />
<div class="error_info" hidden="hidden">*&nbsp;<span>密码不正确</span></div>
<div class="loginTabBox">
<div class="loginTabCon">
<form id="loginForm" role="form" method="post" novalidate="novalidate">
<div class="loginInput">
<input type="text" placeholder="请输用户名" id="lr_username" name="username" class="form-control required" />
<img src="~/Content/images/Login/person.png" alt="" />
</div>
<div class="loginInput">
<input type="password" placeholder="请输入登录密码" id="lr_password" name="password" class="form-control required" />
<img src="~/Content/images/Login/key.png" alt="" />
</div>
<div class="loginInput loginInputCode" hidden="hidden">
<input type="code" placeholder="请输入验证码" id="verifycode" name="code" class="form-control required" />
<div class="variCode"><img class="code" id="lr_verifycode_img" src="~/Login/VerifyCode" alt="点击切换验证码" title="点击切换验证码" /></div>
<img src="~/Content/images/Login/variCode.png" alt="" />
</div>
<div class="loginBtn">
<input type="button" id="lr_login_btn" class="btn btn-white btn-outline btn-lg btn-rounded progress-login" value="登 录" style="cursor: pointer" />
</div>
<div class="loginBtn_box">
<!-- <input type="button" class="btn btn-white btn-outline btn-lg btn-rounded progress-login" value="教师注册" style="cursor:pointer"> -->
@if (ViewBag.SSOSystemSwitch)
{
<a href="/SSOSystem/Index"><span class="bbh_bs">网上办大事大厅</span></a>
}
@if (ViewBag.FeixinSwitch)
{
<a href="/feixin.exe"><span class="bbh_bs bbh_sdow"><img src="~/Content/images/Login/login8-5.png" />飞星下载</span></a>
}
</div>
<div class="bbh">
@if (ViewBag.WeixinLoginSwitch)
{
<a href="/Login/LoginForWeixin?login=one"><img src="~/Content/images/LoginPage/icon.png" /><span class="bbh_span1">微信登陆</span></a>
}
@if (ViewBag.TeachSwitch)
{
<a href="/EducationalAdministration/EmpInfoEnternal/FormAdd" target="_blank"><span class="bbh_span2">教师注册</span></a>
}
</div>
</form>
</div>
<div class="loginTabCon">
<div id="qrCode"></div>
<div class="qrCodeTxt">智慧校园移动端</div>
</div>
</div>

</div>
</div>
</div>
<div class="loginFooter">
数字化智慧校园 版权所有 <span></span>
<!--京ICP备13045367号-->
</div>
<script src="~/Content/jquery/jquery-1.10.2.min.js"></script>
<script src="~/Content/jquery/jquery.md5.min.js"></script>
<script src="~/Content/jquery/qrcode.min.js"></script>
<script src="~/Content/jquery/plugin/layer/layer.js"></script>
<script>
var h = $(window).height() - $('.loginHead').outerHeight() - $('.loginFooter').outerHeight();
$('.loginBox').outerHeight(h).css('paddingTop', (h - $('.login_box').height()) * 0.2);
function request(d) {
for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) {
var b = c[a].split("=");
if (b[0] == d)
if ("undefined" == unescape(b[1])) break;
else return unescape(b[1])
}
return "";
};

$.rootUrl = '@Url.Content("~")'.substr(0, '@Url.Content("~")'.length - 1);
$.lrToken = $('@Html.AntiForgeryToken()').val();
var DigitalschoolMisLoginurl = "@ViewBag.DigitalschoolMisLoginurl";
var Returnurl = "@ViewBag.Returnurl";
var Ip = "@ViewBag.Ip";
var ACIp = "@ViewBag.ACIp";
var ACIp2 = "@ViewBag.ACIp2";
var qrCodeBox = $('.qrCodeBox');
var loginForm = $('#loginForm');
var qrcode = new QRCode(document.getElementById("qrCode"),
{
width: 200,
height: 200
});
makeCode('@ViewBag.QRCodeUrl');
$('.loginTab li').click(function() {
var flag = $(this).hasClass('active');
if (!flag) {
var ind = $(this).index();
$(this).addClass('active').siblings().removeClass('active');
$('.loginTabCon').css('display', 'none').eq(ind).fadeIn();
} else {
return
}
})

function makeCode(urls) {
qrcode.makeCode(urls);
}
</script>
@Html.AppendJsFile("/Views/Login/PageSeven/Index.js")
@Html.AppendJsFile("/Views/Login/ACLogon.js")
</body>

</html>

+ 215
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven/Index.js Wyświetl plik

@@ -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)

+ 203
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSeven/IndexWxLogin.js Wyświetl plik

@@ -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)

+ 137
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/PageSevenWxLogin.cshtml Wyświetl plik

@@ -0,0 +1,137 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<title>数字化智慧校园</title>
<meta name="keywords" content="登陆页面" />
<meta name="description" content="登陆页面" />
<link href="~/Content/css/LoginModel/loginPublic.css" rel="stylesheet" />
<link href="~/Content/css/LoginModel/common.css" rel="stylesheet" />
<link href="~/Content/css/LoginModel/login9.css" rel="stylesheet" />
<!--自适应-->
<!--自适应-->

</head>

<body>
<div class="loginHead">
<div class="login_box">
<img src="~/Content/images/Login/logo9.png" alt="" />
</div>
</div>
<div class="loginBox">
<div class="login_box commonClear">
<div class="loginCon">
<ul class="loginTab commonClear">
<li class="active">绑定</li>
</ul>
@{
if (!string.IsNullOrEmpty(ViewBag.QQOpenId))
{
<div class="wcImg">
<img src="~/Content/images/qq.png" alt="" /> 快捷登录账号绑定
</div>
}
else
{
<div class="wcImg">
<img src="~/Content/images/LoginPage/wxLogin.png" alt="" /> 快捷登录账号绑定
</div>
}
}
<input type="hidden" name="QQOpenId" id="QQOpenId" value="@ViewBag.QQOpenId" />
<input type="hidden" name="WeixinOpenId" id="WeixinOpenId" value="@ViewBag.WeixinOpenId" />
<input id="errornum" type="hidden" value="@ViewBag.errornum" />
<div class="error_info" hidden="hidden" style="top:88px;margin-left: 31px;">*&nbsp;<span>密码不正确</span></div>
<div class="loginTabBox">
<div class="loginTabCon">
<form id="loginForm" role="form" method="post" novalidate="novalidate">
<div class="loginInput">
<input type="text" placeholder="请输用户名" id="lr_username" name="username" class="form-control required" />
<img src="~/Content/images/Login/person.png" alt="" />
</div>
<div class="loginInput">
<input type="password" placeholder="请输入登录密码" id="lr_password" name="password" class="form-control required" />
<img src="~/Content/images/Login/key.png" alt="" />
</div>
<div class="loginInput loginInputCode" hidden="hidden">
<input type="code" placeholder="请输入验证码" id="verifycode" name="code" class="form-control required" />
<div class="variCode"><img class="code" id="lr_verifycode_img" src="~/Login/VerifyCode" alt="点击切换验证码" title="点击切换验证码" /></div>
<img src="~/Content/images/Login/variCode.png" alt="" />
</div>
<div class="loginBtn">
<input type="button" id="lr_login_btn" class="btn btn-white btn-outline btn-lg btn-rounded progress-login" value="绑 定" style="cursor: pointer" />
</div>
</form>
</div>
<div class="loginTabCon">
<div id="qrCode"></div>
<div class="qrCodeTxt">智慧校园移动端</div>
</div>
</div>

</div>
</div>
</div>
<div class="loginFooter">
数字化智慧校园 版权所有 <span></span>
<!--京ICP备13045367号-->
</div>
<script src="~/Content/jquery/jquery-1.10.2.min.js"></script>
<script src="~/Content/jquery/jquery.md5.min.js"></script>
<script src="~/Content/jquery/qrcode.min.js"></script>
<script src="~/Content/jquery/plugin/layer/layer.js"></script>
<script>
var h = $(window).height() - $('.loginHead').outerHeight() - $('.loginFooter').outerHeight();
$('.loginBox').outerHeight(h).css('paddingTop', (h - $('.login_box').height()) * 0.2);
function request(d) {
for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) {
var b = c[a].split("=");
if (b[0] == d)
if ("undefined" == unescape(b[1])) break;
else return unescape(b[1]);
}
return "";
};

$.rootUrl = '@Url.Content("~")'.substr(0, '@Url.Content("~")'.length - 1);
$.lrToken = $('@Html.AntiForgeryToken()').val();
var DigitalschoolMisLoginurl = "@ViewBag.DigitalschoolMisLoginurl";
var Returnurl = "@ViewBag.Returnurl";
var Ip = "@ViewBag.Ip";
var ACIp = "@ViewBag.ACIp";
var ACIp2 = "@ViewBag.ACIp2";
var qrCodeBox = $('.qrCodeBox');
var loginForm = $('#loginForm');
var qrcode = new QRCode(document.getElementById("qrCode"),
{
width: 200,
height: 200
});
makeCode('@ViewBag.QRCodeUrl');
$('.loginTab li').click(function() {
var flag = $(this).hasClass('active');
if (!flag) {
var ind = $(this).index();
$(this).addClass('active').siblings().removeClass('active');
$('.loginTabCon').css('display', 'none').eq(ind).fadeIn();
} else {
return;
}
});

function makeCode(urls) {
qrcode.makeCode(urls);
}
</script>
@Html.AppendJsFile("/Views/Login/PageSeven/IndexWxLogin.js")
@Html.AppendJsFile("/Views/Login/ACLogon.js")

</body>

</html>

+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/AssetManagementSystem/Ass_Storage_RoomMap.cs Wyświetl plik

@@ -0,0 +1,29 @@
using Learun.Application.TwoDevelopment.AssetManagementSystem;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-11 14:32
/// 描 述:库房的房间号
/// </summary>
public class Ass_Storage_RoomMap : EntityTypeConfiguration<Ass_Storage_RoomEntity>
{
public Ass_Storage_RoomMap()
{
#region 表、主键
//表
this.ToTable("ASS_STORAGE_ROOM");
//主键
this.HasKey(t => t.RId);
#endregion

#region 配置关系
#endregion
}
}
}


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ReleaseMettingMap.cs Wyświetl plik

@@ -0,0 +1,29 @@
using Learun.Application.TwoDevelopment.PersonnelManagement;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 10:32
/// 描 述:会议管理设置
/// </summary>
public class ReleaseMettingMap : EntityTypeConfiguration<ReleaseMettingEntity>
{
public ReleaseMettingMap()
{
#region 表、主键
//表
this.ToTable("RELEASEMETTING");
//主键
this.HasKey(t => t.ReleaseID);
#endregion

#region 配置关系
#endregion
}
}
}


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ResourceImportMap.cs Wyświetl plik

@@ -0,0 +1,29 @@
using Learun.Application.TwoDevelopment.PersonnelManagement;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 12:15
/// 描 述:资源引入
/// </summary>
public class ResourceImportMap : EntityTypeConfiguration<ResourceImportEntity>
{
public ResourceImportMap()
{
#region 表、主键
//表
this.ToTable("RESOURCEIMPORT");
//主键
this.HasKey(t => t.ImportId);
#endregion

#region 配置关系
#endregion
}
}
}


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/StudyGuideMap.cs Wyświetl plik

@@ -0,0 +1,29 @@
using Learun.Application.TwoDevelopment.PersonnelManagement;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 11:43
/// 描 述:研究指导
/// </summary>
public class StudyGuideMap : EntityTypeConfiguration<StudyGuideEntity>
{
public StudyGuideMap()
{
#region 表、主键
//表
this.ToTable("STUDYGUIDE");
//主键
this.HasKey(t => t.StudyID);
#endregion

#region 配置关系
#endregion
}
}
}


+ 189
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomBLL.cs Wyświetl plik

@@ -0,0 +1,189 @@
using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.AssetManagementSystem
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-11 14:32
/// 描 述:库房的房间号
/// </summary>
public class AssStorageRoomBLL : AssStorageRoomIBLL
{
private AssStorageRoomService assStorageRoomService = new AssStorageRoomService();

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<Ass_Storage_RoomEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return assStorageRoomService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取Ass_Storage_Room表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
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);
}
}
}


/// <summary>
/// 获取左侧树形数据
/// <summary>
/// <returns></returns>
public List<TreeModel> GetTree()
{
try
{
DataTable list = assStorageRoomService.GetSqlTree();
List<TreeModel> treeList = new List<TreeModel>();
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);
}
}
}

/// <summary>
/// 根据库房Id获取房间号
/// </summary>
/// <param name="storageId"></param>
/// <returns></returns>
public IEnumerable<Ass_Storage_RoomEntity> GetListForStorageId(string storageId)
{
try
{
return assStorageRoomService.GetListForStorageId(storageId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
assStorageRoomService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
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

}
}

+ 59
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomIBLL.cs Wyświetl plik

@@ -0,0 +1,59 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.AssetManagementSystem
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-11 14:32
/// 描 述:库房的房间号
/// </summary>
public interface AssStorageRoomIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<Ass_Storage_RoomEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取Ass_Storage_Room表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
Ass_Storage_RoomEntity GetAss_Storage_RoomEntity(string keyValue);
/// <summary>
/// 获取左侧树结构
/// </summary>
/// <param name="keyValue"></param>
/// <returns></returns>
List<TreeModel> GetTree();
/// <summary>
/// 获取房间号
/// </summary>
/// <returns></returns>
IEnumerable<Ass_Storage_RoomEntity> GetListForStorageId(string storageId);
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
void DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
void SaveEntity(string keyValue, Ass_Storage_RoomEntity entity);
#endregion

}
}

+ 214
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomService.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-11 14:32
/// 描 述:库房的房间号
/// </summary>
public class AssStorageRoomService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<Ass_Storage_RoomEntity> 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<Ass_Storage_RoomEntity>(strSql.ToString(),dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取Ass_Storage_Room表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public Ass_Storage_RoomEntity GetAss_Storage_RoomEntity(string keyValue)
{
try
{
return this.BaseRepository().FindEntity<Ass_Storage_RoomEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 获取树形数据
/// </summary>
/// <returns></returns>
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);
}
}
}


/// <summary>
/// 获取房间号
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public IEnumerable<Ass_Storage_RoomEntity> GetListForStorageId(string storageId)
{
try
{
string sql = $"select RId,RName,RCode from Ass_Storage_Room where renabled=1 and StorageId='{storageId}'";
return this.BaseRepository().FindList<Ass_Storage_RoomEntity>(sql);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository().Delete<Ass_Storage_RoomEntity>(t=>t.RId == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
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

}
}

+ 75
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/Ass_Storage_RoomEntity.cs Wyświetl plik

@@ -0,0 +1,75 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.TwoDevelopment.AssetManagementSystem
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-11 14:32
/// 描 述:库房的房间号
/// </summary>
public class Ass_Storage_RoomEntity
{
#region 实体成员
/// <summary>
/// RId
/// </summary>
[Column("RID")]
public string RId { get; set; }
/// <summary>
/// StorageId
/// </summary>
[Column("STORAGEID")]
public string StorageId { get; set; }
/// <summary>
/// RName
/// </summary>
[Column("RNAME")]
public string RName { get; set; }
/// <summary>
/// RCode
/// </summary>
[Column("RCODE")]
public string RCode { get; set; }
/// <summary>
/// RFunction
/// </summary>
[Column("RFUNCTION")]
public string RFunction { get; set; }
/// <summary>
/// RArea
/// </summary>
[Column("RAREA")]
public string RArea { get; set; }
/// <summary>
/// REnabled
/// </summary>
[Column("RENABLED")]
public bool? REnabled { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.RId = Guid.NewGuid().ToString();
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.RId = keyValue;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 230
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-04-21 17:48
/// 描 述:LC_hetong
/// </summary>
public class LC_hetongService : RepositoryFactory
{
#region 构造函数和属性

private string fieldSql;
/// <summary>
/// 构造方法
/// </summary>
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 获取数据

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<LC_hetongEntity> 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<LC_hetongEntity>(strSql.ToString());
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<LC_hetongEntity> 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<LC_hetongEntity>(strSql.ToString(), dp,pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public LC_hetongEntity GetEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<LC_hetongEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<LC_hetongEntity>(t => t.LC_ID == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// </summary>
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

}
}

+ 125
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingBLL.cs Wyświetl plik

@@ -0,0 +1,125 @@
using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 10:32
/// 描 述:会议管理设置
/// </summary>
public class ReleaseMettingBLL : ReleaseMettingIBLL
{
private ReleaseMettingService releaseMettingService = new ReleaseMettingService();

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ReleaseMettingEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return releaseMettingService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取ReleaseMetting表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
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 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
releaseMettingService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
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

}
}

+ 95
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingEntity.cs Wyświetl plik

@@ -0,0 +1,95 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 10:32
/// 描 述:会议管理设置
/// </summary>
public class ReleaseMettingEntity
{
#region 实体成员
/// <summary>
/// ReleaseID
/// </summary>
[Column("RELEASEID")]
public string ReleaseID { get; set; }
/// <summary>
/// ReleaseName
/// </summary>
[Column("RELEASENAME")]
public string ReleaseName { get; set; }
/// <summary>
/// ReleaseStaff
/// </summary>
[Column("RELEASESTAFF")]
public string ReleaseStaff { get; set; }
/// <summary>
/// ReleaseOther
/// </summary>
[Column("RELEASEOTHER")]
public string ReleaseOther { get; set; }
/// <summary>
/// ReleaseContent
/// </summary>
[Column("RELEASECONTENT")]
public string ReleaseContent { get; set; }
/// <summary>
/// SiteName
/// </summary>
[Column("SITENAME")]
public string SiteName { get; set; }
/// <summary>
/// Contact
/// </summary>
[Column("CONTACT")]
public string Contact { get; set; }
/// <summary>
/// SiteIphone
/// </summary>
[Column("SITEIPHONE")]
public string SiteIphone { get; set; }
/// <summary>
/// TimeBegin
/// </summary>
[Column("TIMEBEGIN")]
public DateTime? TimeBegin { get; set; }
/// <summary>
/// TimeOver
/// </summary>
[Column("TIMEOVER")]
public DateTime? TimeOver { get; set; }
/// <summary>
/// ReleaseState
/// </summary>
[Column("RELEASESTATE")]
public string ReleaseState { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.ReleaseID = Guid.NewGuid().ToString();
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.ReleaseID = keyValue;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingIBLL.cs Wyświetl plik

@@ -0,0 +1,48 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 10:32
/// 描 述:会议管理设置
/// </summary>
public interface ReleaseMettingIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<ReleaseMettingEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取ReleaseMetting表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
ReleaseMettingEntity GetReleaseMettingEntity(string keyValue);
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
void DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
void SaveEntity(string keyValue, ReleaseMettingEntity entity);
#endregion

}
}

+ 171
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingService.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 10:32
/// 描 述:会议管理设置
/// </summary>
public class ReleaseMettingService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ReleaseMettingEntity> 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<ReleaseMettingEntity>(strSql.ToString(),dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取ReleaseMetting表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public ReleaseMettingEntity GetReleaseMettingEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<ReleaseMettingEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<ReleaseMettingEntity>(t=>t.ReleaseID == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
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

}
}

+ 125
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportBLL.cs Wyświetl plik

@@ -0,0 +1,125 @@
using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 12:15
/// 描 述:资源引入
/// </summary>
public class ResourceImportBLL : ResourceImportIBLL
{
private ResourceImportService resourceImportService = new ResourceImportService();

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ResourceImportEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return resourceImportService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取ResourceImport表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
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 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
resourceImportService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
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

}
}

+ 75
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportEntity.cs Wyświetl plik

@@ -0,0 +1,75 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 12:15
/// 描 述:资源引入
/// </summary>
public class ResourceImportEntity
{
#region 实体成员
/// <summary>
/// ImportId
/// </summary>
[Column("IMPORTID")]
public string ImportId { get; set; }
/// <summary>
/// ImportName
/// </summary>
[Column("IMPORTNAME")]
public string ImportName { get; set; }
/// <summary>
/// ImportContent
/// </summary>
[Column("IMPORTCONTENT")]
public string ImportContent { get; set; }
/// <summary>
/// ImportLetter
/// </summary>
[Column("IMPORTLETTER")]
public string ImportLetter { get; set; }
/// <summary>
/// ImportState
/// </summary>
[Column("IMPORTSTATE")]
public string ImportState { get; set; }
/// <summary>
/// ImportTime
/// </summary>
[Column("IMPORTTIME")]
public DateTime? ImportTime { get; set; }
/// <summary>
/// ImportUser
/// </summary>
[Column("IMPORTUSER")]
public string ImportUser { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.ImportId = Guid.NewGuid().ToString();
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.ImportId = keyValue;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportIBLL.cs Wyświetl plik

@@ -0,0 +1,48 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 12:15
/// 描 述:资源引入
/// </summary>
public interface ResourceImportIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<ResourceImportEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取ResourceImport表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
ResourceImportEntity GetResourceImportEntity(string keyValue);
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
void DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
void SaveEntity(string keyValue, ResourceImportEntity entity);
#endregion

}
}

+ 153
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResourceImport/ResourceImportService.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 12:15
/// 描 述:资源引入
/// </summary>
public class ResourceImportService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ResourceImportEntity> 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<ResourceImportEntity>(strSql.ToString(),dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取ResourceImport表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public ResourceImportEntity GetResourceImportEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<ResourceImportEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<ResourceImportEntity>(t=>t.ImportId == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
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

}
}

+ 125
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideBLL.cs Wyświetl plik

@@ -0,0 +1,125 @@
using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 11:43
/// 描 述:研究指导
/// </summary>
public class StudyGuideBLL : StudyGuideIBLL
{
private StudyGuideService studyGuideService = new StudyGuideService();

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<StudyGuideEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return studyGuideService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取StudyGuide表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
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 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
studyGuideService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
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

}
}

+ 70
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideEntity.cs Wyświetl plik

@@ -0,0 +1,70 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 11:43
/// 描 述:研究指导
/// </summary>
public class StudyGuideEntity
{
#region 实体成员
/// <summary>
/// StudyID
/// </summary>
[Column("STUDYID")]
public string StudyID { get; set; }
/// <summary>
/// StudyName
/// </summary>
[Column("STUDYNAME")]
public string StudyName { get; set; }
/// <summary>
/// GuideName
/// </summary>
[Column("GUIDENAME")]
public string GuideName { get; set; }
/// <summary>
/// Guidetime
/// </summary>
[Column("GUIDETIME")]
public string Guidetime { get; set; }
/// <summary>
/// GuideState
/// </summary>
[Column("GUIDESTATE")]
public string GuideState { get; set; }
/// <summary>
/// AttachmentUp
/// </summary>
[Column("ATTACHMENTUP")]
public string AttachmentUp { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.StudyID = Guid.NewGuid().ToString();
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.StudyID = keyValue;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideIBLL.cs Wyświetl plik

@@ -0,0 +1,48 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 11:43
/// 描 述:研究指导
/// </summary>
public interface StudyGuideIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<StudyGuideEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取StudyGuide表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
StudyGuideEntity GetStudyGuideEntity(string keyValue);
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
void DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
void SaveEntity(string keyValue, StudyGuideEntity entity);
#endregion

}
}

+ 153
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/StudyGuide/StudyGuideService.cs Wyświetl plik

@@ -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
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-12 11:43
/// 描 述:研究指导
/// </summary>
public class StudyGuideService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<StudyGuideEntity> 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<StudyGuideEntity>(strSql.ToString(),dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取StudyGuide表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public StudyGuideEntity GetStudyGuideEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<StudyGuideEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<StudyGuideEntity>(t=>t.StudyID == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
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

}
}

Ładowanie…
Anuluj
Zapisz