Explorar el Código

教科研会议管理

西昌缴费二期
zhangli hace 3 años
padre
commit
57569f6bd4
Se han modificado 13 ficheros con 861 adiciones y 0 borrados
  1. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ReleaseMettingController.cs
  2. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.cshtml
  3. +52
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.js
  4. +49
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.cshtml
  5. +118
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.js
  6. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  7. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  8. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ReleaseMettingMap.cs
  9. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
  10. +125
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingBLL.cs
  11. +95
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingEntity.cs
  12. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingIBLL.cs
  13. +171
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingService.cs

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ReleaseMettingController.cs Ver fichero

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

}
}

+ 47
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.cshtml Ver fichero

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

+ 52
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Form.js Ver fichero

@@ -0,0 +1,52 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-05-12 10:32
* 描 述:会议管理设置
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#SiteName').lrDataSourceSelect({ code: 'MettingSite',value: 'sitename',text: 'sitename' });
$('#ReleaseState').lrDataItemSelect({ code: 'ApplyStatus' });
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/GetFormData?keyValue=' + keyValue, function (data) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id ).jfGridSet('refreshdata', data[id]);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
}
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('body').lrValidform()) {
return false;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/ReleaseMetting/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 49
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.cshtml Ver fichero

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

+ 118
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ReleaseMetting/Index.js Ver fichero

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

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Ver fichero

@@ -482,6 +482,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\ReleaseMettingController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\ResearchGERController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\ResearchMentController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\StuSaverecordController.cs" />
@@ -1378,6 +1379,8 @@
<Content Include="Areas\PersonnelManagement\Views\ContractManagement\FormRenew.js" />
<Content Include="Areas\PersonnelManagement\Views\EpidemicSituationCopy\FormView.js" />
<Content Include="Areas\PersonnelManagement\Views\EpidemicSituationCopy\IndexAll.js" />
<Content Include="Areas\PersonnelManagement\Views\ReleaseMetting\Form.js" />
<Content Include="Areas\PersonnelManagement\Views\ReleaseMetting\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" />
@@ -7330,6 +7333,8 @@
<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\PersonnelManagement\Views\ReleaseMetting\Form.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\ReleaseMetting\Index.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" />


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj Ver fichero

@@ -205,6 +205,7 @@
<Compile Include="PersonnelManagement\PMLifeMap.cs" />
<Compile Include="PersonnelManagement\PMMembershipMap.cs" />
<Compile Include="PersonnelManagement\PMOrganizationMap.cs" />
<Compile Include="PersonnelManagement\ReleaseMettingMap.cs" />
<Compile Include="PersonnelManagement\ResearchGERMap.cs" />
<Compile Include="PersonnelManagement\ResearchMentMap.cs" />
<Compile Include="PersonnelManagement\SRAppraisalMap.cs" />


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ReleaseMettingMap.cs Ver fichero

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


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj Ver fichero

@@ -339,6 +339,10 @@
<Compile Include="PersonnelManagement\PMOrganization\PMOrganizationEntity.cs" />
<Compile Include="PersonnelManagement\PMOrganization\PMOrganizationIBLL.cs" />
<Compile Include="PersonnelManagement\PMOrganization\PMOrganizationService.cs" />
<Compile Include="PersonnelManagement\ReleaseMetting\ReleaseMettingBLL.cs" />
<Compile Include="PersonnelManagement\ReleaseMetting\ReleaseMettingEntity.cs" />
<Compile Include="PersonnelManagement\ReleaseMetting\ReleaseMettingIBLL.cs" />
<Compile Include="PersonnelManagement\ReleaseMetting\ReleaseMettingService.cs" />
<Compile Include="PersonnelManagement\ResearchGER\ResearchGERBLL.cs" />
<Compile Include="PersonnelManagement\ResearchGER\ResearchGEREntity.cs" />
<Compile Include="PersonnelManagement\ResearchGER\ResearchGERIBLL.cs" />


+ 125
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingBLL.cs Ver fichero

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

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

#region 获取数据

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

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

#endregion

#region 提交数据

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

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
public void SaveEntity(string keyValue, ReleaseMettingEntity entity)
{
try
{
releaseMettingService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}
}

+ 95
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingEntity.cs Ver fichero

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

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

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


+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingIBLL.cs Ver fichero

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

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

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

#region 提交数据

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

}
}

+ 171
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ReleaseMetting/ReleaseMettingService.cs Ver fichero

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

}
}

Cargando…
Cancelar
Guardar