Ver a proveniência

竞赛辅导点名

yanshi
zhangli há 3 anos
ascendente
cometimento
39968a882e
18 ficheiros alterados com 885 adições e 29 eliminações
  1. +20
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/ContestCoachGroupController.cs
  2. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/ContestRollCallController.cs
  3. +27
    -23
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ContestCoachGroup/Index.js
  4. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ContestRollCall/Form.cshtml
  5. +66
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ContestRollCall/Form.js
  6. +27
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ContestRollCall/Index.cshtml
  7. +123
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ContestRollCall/Index.js
  8. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  9. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/CustomFunction/ContestRollCallMap.cs
  10. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  11. +22
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestCoachGroup/ContestCoachGroupBLL.cs
  12. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestCoachGroup/ContestCoachGroupIBLL.cs
  13. +21
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestCoachGroup/ContestCoachGroupService.cs
  14. +125
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestRollCall/ContestRollCallBLL.cs
  15. +82
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestRollCall/ContestRollCallEntity.cs
  16. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestRollCall/ContestRollCallIBLL.cs
  17. +148
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestRollCall/ContestRollCallService.cs
  18. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj

+ 20
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/ContestCoachGroupController.cs Ver ficheiro

@@ -26,7 +26,7 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
[HttpGet]
public ActionResult Index()
{
return View();
return View();
}
/// <summary>
/// 辅导安排
@@ -53,7 +53,7 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
[HttpGet]
public ActionResult Form()
{
return View();
return View();
}
/// <summary>
/// 表单页
@@ -73,7 +73,7 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
{
return View();
}
#endregion

#region 获取数据
@@ -99,6 +99,19 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
};
return Success(jsonData);
}

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetList()
{
var data = contestCoachGroupIBLL.GetList();
return Success(data);
}
/// <summary>
/// 获取表单数据
/// </summary>
@@ -108,8 +121,9 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var ContestCoachGroupData = contestCoachGroupIBLL.GetContestCoachGroupEntity( keyValue );
var jsonData = new {
var ContestCoachGroupData = contestCoachGroupIBLL.GetContestCoachGroupEntity(keyValue);
var jsonData = new
{
ContestCoachGroup = ContestCoachGroupData,
};
return Success(jsonData);
@@ -142,7 +156,7 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
public ActionResult SaveForm(string keyValue, string strEntity)
{
ContestCoachGroupEntity entity = strEntity.ToObject<ContestCoachGroupEntity>();
contestCoachGroupIBLL.SaveEntity(keyValue,entity);
contestCoachGroupIBLL.SaveEntity(keyValue, entity);
if (string.IsNullOrEmpty(keyValue))
{
}


+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/ContestRollCallController.cs Ver ficheiro

@@ -0,0 +1,117 @@
using Learun.Util;
using System.Data;
using Learun.Application.TwoDevelopment.CustomFunction;
using System.Web.Mvc;
using System.Collections.Generic;

namespace Learun.Application.Web.Areas.CustomFunction.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-23 17:09
/// 描 述:竞赛辅导点名
/// </summary>
public class ContestRollCallController : MvcControllerBase
{
private ContestRollCallIBLL contestRollCallIBLL = new ContestRollCallBLL();

#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 = contestRollCallIBLL.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 ContestRollCallData = contestRollCallIBLL.GetContestRollCallEntity( keyValue );
var jsonData = new {
ContestRollCall = ContestRollCallData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
contestRollCallIBLL.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)
{
ContestRollCallEntity entity = strEntity.ToObject<ContestRollCallEntity>();
contestRollCallIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 27
- 23
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ContestCoachGroup/Index.js Ver ficheiro

@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#Teacher1').lrDataSourceSelect({ code: 'EmpInfo',value: 'empid',text: 'empname' });
$('#Teacher1').lrDataSourceSelect({ code: 'EmpInfo', value: 'empid', text: 'empname' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -72,7 +72,7 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/CustomFunction/ContestCoachGroup/DeleteForm', { keyValue: keyValue}, function () {
learun.deleteForm(top.$.rootUrl + '/CustomFunction/ContestCoachGroup/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
@@ -89,23 +89,26 @@ var bootstrap = function ($, learun) {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/CustomFunction/ContestCoachGroup/GetPageList',
headData: [
{ label: "竞赛项目", name: "CompetitionInfoName", width: 100, align: "left"},
{ label: "竞赛学科", name: "Subject", width: 100, align: "left"},
{ label: "辅导小组名称", name: "Name", width: 100, align: "left"},
{ label: "辅导专任老师", name: "Teacher1", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo',
key: value,
keyId: 'empid',
callback: function (_data) {
callback(_data['empname']);
}
});
}},
{ label: "其他辅导老师", name: "Teachers", width: 150, align: "left",
{ label: "竞赛项目", name: "CompetitionInfoName", width: 100, align: "left" },
{ label: "竞赛学科", name: "Subject", width: 100, align: "left" },
{ label: "辅导小组名称", name: "Name", width: 100, align: "left" },
{
label: "辅导专任老师", name: "Teacher1", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
if (value.indexOf(',') != -1) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo',
key: value,
keyId: 'empid',
callback: function (_data) {
callback(_data['empname']);
}
});
}
},
{
label: "其他辅导老师", name: "Teachers", width: 150, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
if (value && value.indexOf(',') != -1) {
var content = '';
var timearr = value.split(',');
for (var i = 0; i < timearr.length; i++) {
@@ -132,18 +135,19 @@ var bootstrap = function ($, learun) {
}
});
}
}},
{ label: "描述", name: "Desc", width: 100, align: "left"},

}
},
{ label: "描述", name: "Desc", width: 100, align: "left" },
],
mainId:'Id',
mainId: 'Id',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {


+ 19
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ContestRollCall/Form.cshtml Ver ficheiro

@@ -0,0 +1,19 @@
@{
ViewBag.Title = "竞赛辅导点名";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="ContestRollCall" >
<div class="lr-form-item-title">竞赛小组名称<font face="宋体">*</font></div>
<div id="CoachGroupId" isvalid="yes" checkexpession="NotNull" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ContestRollCall" >
<div class="lr-form-item-title">缺席学生</div>
<div id="Students" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ContestRollCall" >
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:100px;" ></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/CustomFunction/Views/ContestRollCall/Form.js")

+ 66
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ContestRollCall/Form.js Ver ficheiro

@@ -0,0 +1,66 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-08-23 17:09
* 描 述:竞赛辅导点名
*/
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 () {
$('#CoachGroupId').lrselect({
text: 'Name',
value: 'Id',
url: top.$.rootUrl + '/CustomFunction/ContestCoachGroup/GetList',
maxHeight: 180,
allowSearch: true
});
$('#Students').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList',
param: { strWhere: "1=1 " },
value: "stuid",
text: "stuname",
type: 'multiple'
});

},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/CustomFunction/ContestRollCall/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 + '/CustomFunction/ContestRollCall/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 27
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ContestRollCall/Index.cshtml Ver ficheiro

@@ -0,0 +1,27 @@
@{
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>
<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/CustomFunction/Views/ContestRollCall/Index.js")

+ 123
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ContestRollCall/Index.js Ver ficheiro

@@ -0,0 +1,123 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-08-23 17:09
* 描 述:竞赛辅导点名
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/CustomFunction/ContestRollCall/Form',
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/CustomFunction/ContestRollCall/Form?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/CustomFunction/ContestRollCall/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/CustomFunction/ContestRollCall/GetPageList',
headData: [
{
label: "竞赛小组名称", name: "CoachGroupName", width: 100, align: "left"
},
{
label: "缺席学生", name: "Students", width: 150, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
if (value && value.indexOf(',') != -1) {
var content = '';
var timearr = value.split(',');
for (var i = 0; i < timearr.length; i++) {
learun.clientdata.getAsync('custmerData',
{
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuList',
key: timearr[i],
keyId: 'stuid',
callback: function (_data) {
content += _data['stuname'] + ',';
}
});
}
content = content.substring(0, content.length - 1);
callback(content);
} else {
learun.clientdata.getAsync('custmerData',
{
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuList',
key: value,
keyId: 'stuid',
callback: function (_data) {
callback(_data['stuname']);
}
});
}
}
},
{ label: "备注", name: "Remark", width: 100, align: "left" },
],
mainId: 'Id',
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 ficheiro

@@ -857,6 +857,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\DtHonorInfoController.cs" />
<Compile Include="Areas\CustomFunction\Controllers\CompetitionSignupController.cs" />
<Compile Include="Areas\CustomFunction\Controllers\CompetitionAwardController.cs" />
<Compile Include="Areas\CustomFunction\Controllers\ContestRollCallController.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" />
@@ -6641,6 +6642,10 @@
<Content Include="Areas\CustomFunction\Views\CompetitionAward\Index.js" />
<Content Include="Areas\CustomFunction\Views\CompetitionAward\Form.cshtml" />
<Content Include="Areas\CustomFunction\Views\CompetitionAward\Form.js" />
<Content Include="Areas\CustomFunction\Views\ContestRollCall\Index.cshtml" />
<Content Include="Areas\CustomFunction\Views\ContestRollCall\Index.js" />
<Content Include="Areas\CustomFunction\Views\ContestRollCall\Form.cshtml" />
<Content Include="Areas\CustomFunction\Views\ContestRollCall\Form.js" />
</ItemGroup>
<ItemGroup>
<Folder Include="Areas\LR_Desktop\Models\" />


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/CustomFunction/ContestRollCallMap.cs Ver ficheiro

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

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-23 17:09
/// 描 述:竞赛辅导点名
/// </summary>
public class ContestRollCallMap : EntityTypeConfiguration<ContestRollCallEntity>
{
public ContestRollCallMap()
{
#region 表、主键
//表
this.ToTable("CONTESTROLLCALL");
//主键
this.HasKey(t => t.Id);
#endregion

#region 配置关系
#endregion
}
}
}


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

@@ -606,6 +606,7 @@
<Compile Include="EducationalAdministration\DtHonorInfoMap.cs" />
<Compile Include="CustomFunction\CompetitionSignupMap.cs" />
<Compile Include="CustomFunction\CompetitionAwardMap.cs" />
<Compile Include="CustomFunction\ContestRollCallMap.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 22
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestCoachGroup/ContestCoachGroupBLL.cs Ver ficheiro

@@ -43,6 +43,28 @@ namespace Learun.Application.TwoDevelopment.CustomFunction
}
}

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <returns></returns>
public IEnumerable<ContestCoachGroupEntity> GetList()
{
try
{
return contestCoachGroupService.GetList();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 获取ContestCoachGroup表实体数据
/// </summary>


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestCoachGroup/ContestCoachGroupIBLL.cs Ver ficheiro

@@ -21,6 +21,7 @@ namespace Learun.Application.TwoDevelopment.CustomFunction
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<ContestCoachGroupEntity> GetPageList(Pagination pagination, string queryJson);
IEnumerable<ContestCoachGroupEntity> GetList();
/// <summary>
/// 获取ContestCoachGroup表实体数据
/// </summary>


+ 21
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestCoachGroup/ContestCoachGroupService.cs Ver ficheiro

@@ -76,6 +76,27 @@ namespace Learun.Application.TwoDevelopment.CustomFunction
}
}

public IEnumerable<ContestCoachGroupEntity> GetList()
{

try
{
var sql = "select Id,Name from ContestCoachGroup";
return this.BaseRepository("CollegeMIS").FindList<ContestCoachGroupEntity>(sql);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取ContestCoachGroup表实体数据
/// </summary>


+ 125
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestRollCall/ContestRollCallBLL.cs Ver ficheiro

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

namespace Learun.Application.TwoDevelopment.CustomFunction
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-23 17:09
/// 描 述:竞赛辅导点名
/// </summary>
public class ContestRollCallBLL : ContestRollCallIBLL
{
private ContestRollCallService contestRollCallService = new ContestRollCallService();

#region 获取数据

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

/// <summary>
/// 获取ContestRollCall表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public ContestRollCallEntity GetContestRollCallEntity(string keyValue)
{
try
{
return contestRollCallService.GetContestRollCallEntity(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
{
contestRollCallService.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, ContestRollCallEntity entity)
{
try
{
contestRollCallService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}
}

+ 82
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestRollCall/ContestRollCallEntity.cs Ver ficheiro

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

namespace Learun.Application.TwoDevelopment.CustomFunction
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-23 17:09
/// 描 述:竞赛辅导点名
/// </summary>
public class ContestRollCallEntity
{
#region 实体成员
/// <summary>
/// 主键
/// </summary>
[Column("ID")]
public string Id { get; set; }
/// <summary>
/// 辅导小组名称
/// </summary>
[Column("COACHGROUPID")]
public string CoachGroupId { get; set; }
/// <summary>
/// 缺席参加辅导学生
/// </summary>
[Column("STUDENTS")]
public string Students { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column("REMARK")]
public string Remark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
[Column("CREATEUSERID")]
public string CreateUserId { get; set; }
/// <summary>
/// 创建人
/// </summary>
[Column("CREATEUSERNAME")]
public string CreateUserName { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.Id = Guid.NewGuid().ToString();
this.CreateTime = DateTime.Now;
var userinfo = LoginUserInfo.Get();
this.CreateUserId = userinfo.userId;
this.CreateUserName = userinfo.realName;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.Id = keyValue;
}
#endregion
#region 扩展字段
[NotMapped]
public string CoachGroupName { get; set; }

#endregion
}
}


+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestRollCall/ContestRollCallIBLL.cs Ver ficheiro

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

namespace Learun.Application.TwoDevelopment.CustomFunction
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-23 17:09
/// 描 述:竞赛辅导点名
/// </summary>
public interface ContestRollCallIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<ContestRollCallEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取ContestRollCall表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
ContestRollCallEntity GetContestRollCallEntity(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, ContestRollCallEntity entity);
#endregion

}
}

+ 148
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/ContestRollCall/ContestRollCallService.cs Ver ficheiro

@@ -0,0 +1,148 @@
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.CustomFunction
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-08-23 17:09
/// 描 述:竞赛辅导点名
/// </summary>
public class ContestRollCallService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ContestRollCallEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.Id,
t.CoachGroupId,
t.Students,
t.Remark,a.Name as CoachGroupName
");
strSql.Append(" FROM ContestRollCall t ");
strSql.Append(" join ContestCoachGroup a on t.CoachGroupId=a.Id ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
return this.BaseRepository("CollegeMIS").FindList<ContestRollCallEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取ContestRollCall表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public ContestRollCallEntity GetContestRollCallEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<ContestRollCallEntity>(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<ContestRollCallEntity>(t => t.Id == 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, ContestRollCallEntity 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

}
}

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

@@ -1844,6 +1844,10 @@
<Compile Include="CustomFunction\CompetitionAward\CompetitionAwardService.cs" />
<Compile Include="CustomFunction\CompetitionAward\CompetitionAwardBLL.cs" />
<Compile Include="CustomFunction\CompetitionAward\CompetitionAwardIBLL.cs" />
<Compile Include="CustomFunction\ContestRollCall\ContestRollCallEntity.cs" />
<Compile Include="CustomFunction\ContestRollCall\ContestRollCallService.cs" />
<Compile Include="CustomFunction\ContestRollCall\ContestRollCallBLL.cs" />
<Compile Include="CustomFunction\ContestRollCall\ContestRollCallIBLL.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


Carregando…
Cancelar
Guardar