@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} |
@@ -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") |
@@ -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(); | |||
} |
@@ -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> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ReleaseMetting/Index.js") |
@@ -0,0 +1,118 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-05-12 10:32 | |||
* 描 述:会议管理设置 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
$('#SiteName').lrDataSourceSelect({ code: 'MettingSite',value: 'sitename',text: 'sitename' }); | |||
$('#ReleaseState').lrDataItemSelect({ code: 'ApplyStatus' }); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/Form', | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ReleaseID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/Form?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ReleaseID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/GetPageList', | |||
headData: [ | |||
{ label: "会议主题", name: "ReleaseName", width: 100, align: "left"}, | |||
{ label: "会议场地", name: "SiteName", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'MettingSite', | |||
key: value, | |||
keyId: 'sitename', | |||
callback: function (_data) { | |||
callback(_data['sitename']); | |||
} | |||
}); | |||
}}, | |||
{ label: "联系人", name: "Contact", width: 100, align: "left"}, | |||
{ label: "联系电话", name: "SiteIphone", width: 100, align: "left"}, | |||
{ label: "会议开始时间", name: "TimeBegin", width: 100, align: "left"}, | |||
{ label: "会议场地状态", name: "ReleaseState", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'ApplyStatus', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
}}, | |||
{ label: "会议结束时间", name: "TimeOver", width: 100, align: "left"}, | |||
], | |||
mainId:'ReleaseID', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -3,29 +3,29 @@ | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="ResearchGER" > | |||
<div class="col-xs-12 lr-form-item" data-table="ResearchGER" > | |||
<div class="lr-form-item-title">组织名称<font face="宋体">*</font></div> | |||
<input id="ResearchGroup" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
<input id="GerName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ResearchGER" > | |||
<div class="col-xs-12 lr-form-item" data-table="ResearchGER" > | |||
<div class="lr-form-item-title">专业组长<font face="宋体">*</font></div> | |||
<input id="GroupName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
<input id="GerBoss" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="ResearchGER" > | |||
<div class="lr-form-item-title">组织成员<font face="宋体">*</font></div> | |||
<textarea id="GroupPeople" class="form-control" style="height:100px;" isvalid="yes" checkexpession="NotNull" ></textarea> | |||
<textarea id="Gerpeople" class="form-control" style="height:100px;" isvalid="yes" checkexpession="NotNull" ></textarea> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ResearchGER" > | |||
<div class="lr-form-item-title">组织成立时间</div> | |||
<input id="GroupTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#GroupTime').trigger('change'); } })" /> | |||
<div class="col-xs-12 lr-form-item" data-table="ResearchGER" > | |||
<div class="lr-form-item-title">成立时间</div> | |||
<input id="Gertiem" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#Gertiem').trigger('change'); } })" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="ResearchGER" > | |||
<div class="col-xs-12 lr-form-item" data-table="ResearchGER" > | |||
<div class="lr-form-item-title">状态</div> | |||
<div id="StateTex"></div> | |||
<div id="GerState"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="ResearchGER" > | |||
<div class="lr-form-item-title">备注</div> | |||
<textarea id="RemarkNote" class="form-control" style="height:100px;" ></textarea> | |||
<textarea id="postscript" class="form-control" style="height:100px;" ></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ResearchGER/Form.js") |
@@ -1,7 +1,7 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-05-08 18:17 | |||
* 日 期:2021-05-11 18:17 | |||
* 描 述:教科研组管理 | |||
*/ | |||
var acceptClick; | |||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#StateTex').lrRadioCheckbox({ | |||
$('#GerState').lrRadioCheckbox({ | |||
type: 'radio', | |||
code: 'EnableStatus', | |||
}); | |||
@@ -12,7 +12,7 @@ | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">组织名称</div> | |||
<input id="ResearchGroup" type="text" class="form-control" /> | |||
<input id="GerName" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -1,7 +1,7 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-05-08 18:17 | |||
* 日 期:2021-05-11 18:17 | |||
* 描 述:教科研组管理 | |||
*/ | |||
var refreshGirdData; | |||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
}, 130, 200); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -35,7 +35,7 @@ var bootstrap = function ($, learun) { | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('MentTID'); | |||
var keyValue = $('#gridtable').jfGridValue('GerID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
@@ -51,7 +51,7 @@ var bootstrap = function ($, learun) { | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('MentTID'); | |||
var keyValue = $('#gridtable').jfGridValue('GerID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
@@ -72,10 +72,10 @@ var bootstrap = function ($, learun) { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/PersonnelManagement/ResearchGER/GetPageList', | |||
headData: [ | |||
{ label: "组织名称", name: "ResearchGroup", width: 100, align: "left"}, | |||
{ label: "专业组长", name: "GroupName", width: 100, align: "left"}, | |||
{ label: "组织成立时间", name: "GroupTime", width: 100, align: "left"}, | |||
{ label: "状态", name: "StateTex", width: 100, align: "left", | |||
{ label: "组织名称", name: "GerName", width: 100, align: "left"}, | |||
{ label: "专业组长", name: "GerBoss", width: 100, align: "left"}, | |||
{ label: "成立时间", name: "Gertiem", width: 100, align: "left"}, | |||
{ label: "状态", name: "GerState", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
@@ -86,7 +86,7 @@ var bootstrap = function ($, learun) { | |||
}); | |||
}}, | |||
], | |||
mainId:'MentTID', | |||
mainId:'GerID', | |||
isPage: true | |||
}); | |||
page.search(); | |||
@@ -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") |
@@ -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(); | |||
} |
@@ -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> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ResourceImport/Index.js") |
@@ -0,0 +1,111 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-05-12 12:15 | |||
* 描 述:资源引入 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 300); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/PersonnelManagement/ResourceImport/Form', | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ImportId'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/PersonnelManagement/ResourceImport/Form?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ImportId'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ResourceImport/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/PersonnelManagement/ResourceImport/GetPageList', | |||
headData: [ | |||
{ label: "标题", name: "ImportName", width: 100, align: "left"}, | |||
{ label: "添加时间", name: "ImportTime", width: 100, align: "left"}, | |||
{ label: "创建用户", name: "ImportUser", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('user', { | |||
key: value, | |||
callback: function (_data) { | |||
callback(_data.name); | |||
} | |||
}); | |||
}}, | |||
{ label: "是否发布", name: "ImportState", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
}}, | |||
], | |||
mainId:'ImportId', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -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") |
@@ -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(); | |||
} |
@@ -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> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/StudyGuide/Index.js") |
@@ -0,0 +1,103 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-05-12 11:43 | |||
* 描 述:研究指导 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 300); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/PersonnelManagement/StudyGuide/Form', | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('StudyID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/PersonnelManagement/StudyGuide/Form?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('StudyID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/StudyGuide/DeleteForm', { keyValue: keyValue}, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/PersonnelManagement/StudyGuide/GetPageList', | |||
headData: [ | |||
{ label: "标题", name: "StudyName", width: 100, align: "left"}, | |||
{ label: "创建用户", name: "GuideName", width: 100, align: "left"}, | |||
{ label: "添加时间", name: "Guidetime", width: 100, align: "left"}, | |||
{ label: "是否发布", name: "GuideState", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op,$cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'YesOrNoInt', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
}}, | |||
], | |||
mainId:'StudyID', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -481,6 +481,7 @@ | |||
<Compile Include="Areas\PersonnelManagement\Controllers\MP_QualityObjectivesController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\MP_ManagementPlanController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\OvertimeApplicationController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\ResearchMentController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\StuSaverecordController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\TimeTableController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\PersonnelManagementAreaRegistration.cs" /> | |||
@@ -800,6 +801,10 @@ | |||
<Compile Include="Areas\EducationalAdministration\Controllers\Sys_DefaultPwdConfigController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\MeetingSignInRecordController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\MeetingMinutesController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\ResearchGERController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\ReleaseMettingController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\StudyGuideController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\ResourceImportController.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | |||
@@ -1375,8 +1380,6 @@ | |||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyApply.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Form.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Index.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchGER\Form.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchGER\Index.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchMent\Form.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchMent\Index.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\Sal_UserSalary\ImportForm.css" /> | |||
@@ -6338,6 +6341,22 @@ | |||
<Content Include="Areas\PersonnelManagement\Views\MeetingMinutes\Index.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\MeetingMinutes\Form.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\MeetingMinutes\Form.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchGER\Index.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchGER\Index.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchGER\Form.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchGER\Form.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ReleaseMetting\Index.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ReleaseMetting\Index.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ReleaseMetting\Form.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ReleaseMetting\Form.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\StudyGuide\Index.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\StudyGuide\Index.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\StudyGuide\Form.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\StudyGuide\Form.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResourceImport\Index.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResourceImport\Index.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResourceImport\Form.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResourceImport\Form.js" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\LR_Desktop\Models\" /> | |||
@@ -7110,8 +7129,6 @@ | |||
<Content Include="Areas\PersonnelManagement\Views\FundExaminer\Index.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Form.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Index.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchGER\Form.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchGER\Index.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchMent\Form.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\ResearchMent\Index.cshtml" /> | |||
<Content Include="Areas\LR_Desktop\Views\MessageRind\Form.cshtml" /> | |||
@@ -554,8 +554,11 @@ | |||
<Compile Include="PersonnelManagement\MeetingSignInRecordMap.cs" /> | |||
<Compile Include="PersonnelManagement\MeetingMinutesMap.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchMentMap.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchGERMap.cs" /> | |||
<Compile Include="PersonnelManagement\FundExaminerMap.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchGERMap.cs" /> | |||
<Compile Include="PersonnelManagement\ReleaseMettingMap.cs" /> | |||
<Compile Include="PersonnelManagement\StudyGuideMap.cs" /> | |||
<Compile Include="PersonnelManagement\ResourceImportMap.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||
@@ -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 | |||
} | |||
} | |||
} | |||
@@ -7,7 +7,7 @@ namespace Learun.Application.Mapping | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2021-05-08 18:17 | |||
/// 日 期:2021-05-11 18:17 | |||
/// 描 述:教科研组管理 | |||
/// </summary> | |||
public class ResearchGERMap : EntityTypeConfiguration<ResearchGEREntity> | |||
@@ -18,7 +18,7 @@ namespace Learun.Application.Mapping | |||
//表 | |||
this.ToTable("RESEARCHGER"); | |||
//主键 | |||
this.HasKey(t => t.MentTID); | |||
this.HasKey(t => t.GerID); | |||
#endregion | |||
#region 配置关系 | |||
@@ -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 | |||
} | |||
} | |||
} | |||
@@ -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 | |||
} | |||
} | |||
} | |||
@@ -1634,14 +1634,26 @@ | |||
<Compile Include="PersonnelManagement\ResearchMent\ResearchMentService.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchMent\ResearchMentBLL.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchMent\ResearchMentIBLL.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchGER\ResearchGEREntity.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchGER\ResearchGERService.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchGER\ResearchGERBLL.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchGER\ResearchGERIBLL.cs" /> | |||
<Compile Include="PersonnelManagement\FundExaminer\FundExaminerEntity.cs" /> | |||
<Compile Include="PersonnelManagement\FundExaminer\FundExaminerService.cs" /> | |||
<Compile Include="PersonnelManagement\FundExaminer\FundExaminerBLL.cs" /> | |||
<Compile Include="PersonnelManagement\FundExaminer\FundExaminerIBLL.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchGER\ResearchGEREntity.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchGER\ResearchGERService.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchGER\ResearchGERBLL.cs" /> | |||
<Compile Include="PersonnelManagement\ResearchGER\ResearchGERIBLL.cs" /> | |||
<Compile Include="PersonnelManagement\ReleaseMetting\ReleaseMettingEntity.cs" /> | |||
<Compile Include="PersonnelManagement\ReleaseMetting\ReleaseMettingService.cs" /> | |||
<Compile Include="PersonnelManagement\ReleaseMetting\ReleaseMettingBLL.cs" /> | |||
<Compile Include="PersonnelManagement\ReleaseMetting\ReleaseMettingIBLL.cs" /> | |||
<Compile Include="PersonnelManagement\StudyGuide\StudyGuideEntity.cs" /> | |||
<Compile Include="PersonnelManagement\StudyGuide\StudyGuideService.cs" /> | |||
<Compile Include="PersonnelManagement\StudyGuide\StudyGuideBLL.cs" /> | |||
<Compile Include="PersonnelManagement\StudyGuide\StudyGuideIBLL.cs" /> | |||
<Compile Include="PersonnelManagement\ResourceImport\ResourceImportEntity.cs" /> | |||
<Compile Include="PersonnelManagement\ResourceImport\ResourceImportService.cs" /> | |||
<Compile Include="PersonnelManagement\ResourceImport\ResourceImportBLL.cs" /> | |||
<Compile Include="PersonnelManagement\ResourceImport\ResourceImportIBLL.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||
@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} | |||
@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} |
@@ -9,7 +9,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2021-05-08 18:17 | |||
/// 日 期:2021-05-11 18:17 | |||
/// 描 述:教科研组管理 | |||
/// </summary> | |||
public class ResearchGERBLL : ResearchGERIBLL | |||
@@ -8,47 +8,47 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2021-05-08 18:17 | |||
/// 日 期:2021-05-11 18:17 | |||
/// 描 述:教科研组管理 | |||
/// </summary> | |||
public class ResearchGEREntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// MentTID | |||
/// GerID | |||
/// </summary> | |||
[Column("MENTTID")] | |||
public string MentTID { get; set; } | |||
[Column("GERID")] | |||
public string GerID { get; set; } | |||
/// <summary> | |||
/// ResearchGroup | |||
/// GerName | |||
/// </summary> | |||
[Column("RESEARCHGROUP")] | |||
public string ResearchGroup { get; set; } | |||
[Column("GERNAME")] | |||
public string GerName { get; set; } | |||
/// <summary> | |||
/// GroupName | |||
/// GerBoss | |||
/// </summary> | |||
[Column("GROUPNAME")] | |||
public string GroupName { get; set; } | |||
[Column("GERBOSS")] | |||
public string GerBoss { get; set; } | |||
/// <summary> | |||
/// GroupTime | |||
/// Gerpeople | |||
/// </summary> | |||
[Column("GROUPTIME")] | |||
public DateTime? GroupTime { get; set; } | |||
[Column("GERPEOPLE")] | |||
public string Gerpeople { get; set; } | |||
/// <summary> | |||
/// StateTex | |||
/// Gertiem | |||
/// </summary> | |||
[Column("STATETEX")] | |||
public bool? StateTex { get; set; } | |||
[Column("GERTIEM")] | |||
public DateTime? Gertiem { get; set; } | |||
/// <summary> | |||
/// RemarkNote | |||
/// GerState | |||
/// </summary> | |||
[Column("REMARKNOTE")] | |||
public string RemarkNote { get; set; } | |||
[Column("GERSTATE")] | |||
public string GerState { get; set; } | |||
/// <summary> | |||
/// GroupPeople | |||
/// postscript | |||
/// </summary> | |||
[Column("GROUPPEOPLE")] | |||
public string GroupPeople { get; set; } | |||
[Column("POSTSCRIPT")] | |||
public string postscript { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
@@ -57,7 +57,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
/// </summary> | |||
public void Create() | |||
{ | |||
this.MentTID = Guid.NewGuid().ToString(); | |||
this.GerID = Guid.NewGuid().ToString(); | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
@@ -65,7 +65,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
/// <param name="keyValue"></param> | |||
public void Modify(string keyValue) | |||
{ | |||
this.MentTID = keyValue; | |||
this.GerID = keyValue; | |||
} | |||
#endregion | |||
#region 扩展字段 | |||
@@ -8,7 +8,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2021-05-08 18:17 | |||
/// 日 期:2021-05-11 18:17 | |||
/// 描 述:教科研组管理 | |||
/// </summary> | |||
public interface ResearchGERIBLL | |||
@@ -12,7 +12,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2021-05-08 18:17 | |||
/// 日 期:2021-05-11 18:17 | |||
/// 描 述:教科研组管理 | |||
/// </summary> | |||
public class ResearchGERService : RepositoryFactory | |||
@@ -32,23 +32,23 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(@" | |||
t.MentTID, | |||
t.ResearchGroup, | |||
t.GroupName, | |||
t.GroupTime, | |||
t.StateTex | |||
t.GerID, | |||
t.GerName, | |||
t.GerBoss, | |||
t.Gertiem, | |||
t.GerState | |||
"); | |||
strSql.Append(" FROM ResearchGER t "); | |||
strSql.Append(" WHERE 1=1 "); | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["ResearchGroup"].IsEmpty()) | |||
if (!queryParam["GerName"].IsEmpty()) | |||
{ | |||
dp.Add("ResearchGroup", "%" + queryParam["ResearchGroup"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.ResearchGroup Like @ResearchGroup "); | |||
dp.Add("GerName", "%" + queryParam["GerName"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.GerName Like @GerName "); | |||
} | |||
return this.BaseRepository().FindList<ResearchGEREntity>(strSql.ToString(),dp, pagination); | |||
return this.BaseRepository("CollegeMIS").FindList<ResearchGEREntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
@@ -72,7 +72,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository().FindEntity<ResearchGEREntity>(keyValue); | |||
return this.BaseRepository("CollegeMIS").FindEntity<ResearchGEREntity>(keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
@@ -99,7 +99,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
{ | |||
try | |||
{ | |||
this.BaseRepository().Delete<ResearchGEREntity>(t=>t.MentTID == keyValue); | |||
this.BaseRepository("CollegeMIS").Delete<ResearchGEREntity>(t=>t.GerID == keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||
@@ -126,12 +126,12 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.Modify(keyValue); | |||
this.BaseRepository().Update(entity); | |||
this.BaseRepository("CollegeMIS").Update(entity); | |||
} | |||
else | |||
{ | |||
entity.Create(); | |||
this.BaseRepository().Insert(entity); | |||
this.BaseRepository("CollegeMIS").Insert(entity); | |||
} | |||
} | |||
catch (Exception ex) | |||
@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} | |||
@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} | |||
@@ -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 | |||
} | |||
} |
@@ -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 | |||
} | |||
} |