@@ -0,0 +1,126 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.Ask; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.Web.Areas.Ask.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-11-24 21:38 | |||
/// 描 述:达级运动员 | |||
/// </summary> | |||
public class Notice_Train_Sum_levelController : MvcControllerBase | |||
{ | |||
private Notice_Train_Sum_levelIBLL notice_Train_Sum_levelIBLL = new Notice_Train_Sum_levelBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult FormView() | |||
{ | |||
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 = notice_Train_Sum_levelIBLL.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 Notice_Train_Sum_levelData = notice_Train_Sum_levelIBLL.GetNotice_Train_Sum_levelEntity( keyValue ); | |||
var jsonData = new { | |||
Notice_Train_Sum_level = Notice_Train_Sum_levelData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
notice_Train_Sum_levelIBLL.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) | |||
{ | |||
Notice_Train_Sum_levelEntity entity = strEntity.ToObject<Notice_Train_Sum_levelEntity>(); | |||
notice_Train_Sum_levelIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -3,6 +3,10 @@ | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">类型</div> | |||
<div id="Typename" > </div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">队伍</div> | |||
<div id="Teamid" > </div> | |||
@@ -12,34 +12,22 @@ var bootstrap = function ($, learun) { | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
$('#Typename').lrselect({ | |||
data: [{ text: "全国比赛成绩汇总", value: "全国比赛成绩汇总" }, { text: "全疆比赛成绩汇总", value: "全疆比赛成绩汇总" }], | |||
text: "text", | |||
value: "value" | |||
}) | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
//$('#Peoples').lrDataSourceSelect({ code: 'teacheruserdata',value: 'f_userid',text: 'f_realname' }); | |||
$('#Files').lrUploader(); | |||
var ContentsUE = UE.getEditor('Contents'); | |||
$('#Coachs').lrUserSelect(1); | |||
//$('#Peoples').lrselect({ | |||
// // 字段 | |||
// value: "F_AreaCode", | |||
// text: "F_AreaName", | |||
// title: "F_AreaName", | |||
// type: 'multiple', | |||
// // 展开最大高度 | |||
// maxHeight: 200, | |||
// // 是否允许搜索 | |||
// allowSearch: true, | |||
// // 访问数据接口地址 | |||
// url: top.$.rootUrl + '/LR_SystemModule/Area/Getlist', | |||
// // 访问数据接口参数 | |||
// param: { parentId: '' }, | |||
//}); | |||
$('#Peoples').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuno', text: 'stuname', type: 'multiple' }); | |||
//$('#Teamid').lrUserSelect(1); | |||
$('#Teamid').lrDataSourceSelect({ code: 'Trainteam', value: 'name', text: 'name' }); | |||
//$('#Peoples').lrDataItemSelect({ code: '' }); | |||
$('#Contents')[0].ue = ContentsUE; }, | |||
initData: function () { | |||
if (!!keyValue) { | |||
@@ -2,7 +2,31 @@ | |||
ViewBag.Title = "比赛成绩汇总"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<link rel="stylesheet" type="text/css" href="~/Content/news/css/common.css"> | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">队伍</div> | |||
<div id="Teamid" disable></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">教练</div> | |||
<div id="Coachs" disable></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">运动员</div> | |||
<div id="Peoples" disable></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">附件上传</div> | |||
<div id="Files" disable></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">简介</div> | |||
<div id="Contents" style="height:200px;" disable></div> | |||
</div> | |||
</div> | |||
@*<link rel="stylesheet" type="text/css" href="~/Content/news/css/common.css"> | |||
<link rel="stylesheet" type="text/css" href="~/Content/news/css/style.css"> | |||
<script src="~/Content/news/js/easing.js"></script> | |||
<script src="~/Content/news/js/main.js"></script> | |||
@@ -11,32 +35,7 @@ | |||
background-color: #ffffff !important | |||
} | |||
</style> | |||
@*<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">队伍</div> | |||
<div id="Teamid" disable></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">教练</div> | |||
<div id="Coachs" disable></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">运动员</div> | |||
<div id="Peoples" disable></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">附件上传</div> | |||
<div id="Files" disable></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum"> | |||
<div class="lr-form-item-title">简介</div> | |||
<div id="Contents" style="height:200px;" disable></div> | |||
</div> | |||
</div>*@ | |||
<div class="warpper" style="margin-top: 50px;"> | |||
<!-- / list_sec1 --> | |||
<div class="list_sec list_sec1"> | |||
<div class="index_box"> | |||
<div class="listDotT" id="F_FullHead"></div> | |||
@@ -51,5 +50,5 @@ | |||
<div id="F_NewsImage"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div>*@ | |||
@Html.AppendJsFile("/Areas/Ask/Views/Notice_Train_Sum/FormView.js") |
@@ -248,6 +248,7 @@ var bootstrap = function ($, learun) { | |||
// }); | |||
// } | |||
//}, | |||
{ label: '类型', name: 'Typename', width: 150, align: 'left' }, | |||
{ | |||
label: '教练员', name: 'Coachs', width: 200, align: 'left', | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
@@ -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="Notice_Train_Sum_level"> | |||
<div class="lr-form-item-title">运动员</div> | |||
<div id="Peoples"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum_level" > | |||
<div class="lr-form-item-title">附件上传</div> | |||
<div id="Files" ></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum_level" > | |||
<div class="lr-form-item-title">简介</div> | |||
<div id="Contents" style="height:200px;"></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Notice_Train_Sum_level/Form.js") |
@@ -0,0 +1,53 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-11-24 21:38 | |||
* 描 述:达级运动员 | |||
*/ | |||
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 () { | |||
$('#Files').lrUploader(); | |||
$('#Peoples').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuno', text: 'stuname', type: 'multiple' }); | |||
var ContentsUE = UE.getEditor('Contents'); | |||
$('#Contents')[0].ue = ContentsUE; }, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/Ask/Notice_Train_Sum_level/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 + '/Ask/Notice_Train_Sum_level/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -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="Notice_Train_Sum_level"> | |||
<div class="lr-form-item-title">运动员</div> | |||
<div id="Peoples" disable></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum_level" > | |||
<div class="lr-form-item-title">附件上传</div> | |||
<div id="Files" disable ></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Notice_Train_Sum_level" > | |||
<div class="lr-form-item-title">简介</div> | |||
<div id="Contents" style="height:200px;" disable></div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Notice_Train_Sum_level/Form.js") |
@@ -0,0 +1,53 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-11-24 21:38 | |||
* 描 述:达级运动员 | |||
*/ | |||
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 () { | |||
$('#Files').lrUploader({ isUpload: false }); | |||
$('#Peoples').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuno', text: 'stuname', type: 'multiple' }); | |||
var ContentsUE = UE.getEditor('Contents'); | |||
$('#Contents')[0].ue = ContentsUE; }, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/Ask/Notice_Train_Sum_level/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 + '/Ask/Notice_Train_Sum_level/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,33 @@ | |||
@{ | |||
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"> | |||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入关键词" /> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlt">查询</span></a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_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-look" class="btn btn-default"><i class="fa fa-trash-o"></i> 查看</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Notice_Train_Sum_level/Index.js") |
@@ -0,0 +1,135 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2023-11-24 21:38 | |||
* 描 述:达级运动员 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#btn_Search').on('click', function () { | |||
var keyword = $('#txt_Keyword').val(); | |||
page.search({ keyword: keyword }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/Ask/Notice_Train_Sum_level/Form', | |||
width: 800, | |||
height: 500, | |||
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 + '/Ask/Notice_Train_Sum_level/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 500, | |||
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 + '/Ask/Notice_Train_Sum_level/DeleteForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 查看 | |||
$('#lr-look').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||
selectedRow = $('#gridtable').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formview', | |||
title: '查看', | |||
url: top.$.rootUrl + '/Ask/Notice_Train_Sum_level/FormView?keyValue=' + keyValue, | |||
width: 1000, | |||
height: 600, | |||
btn: null | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').jfGrid({ | |||
url: top.$.rootUrl + '/Ask/Notice_Train_Sum_level/GetPageList', | |||
headData: [ | |||
{ | |||
label: "运动员", name: "Peoples", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
if (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=' + 'StuInfoBasic', | |||
key: timearr[i], | |||
keyId: 'stuno', | |||
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=' + 'StuInfoBasic', | |||
key: value, | |||
keyId: 'stuno', | |||
callback: function (_data) { | |||
callback(_data['stuname']); | |||
} | |||
}); | |||
} | |||
} | |||
}, | |||
//{ label: "附件上传", name: "Files", width: 100, align: "left"}, | |||
//{ label: "编辑器", name: "Contents", 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(); | |||
} |
@@ -903,6 +903,7 @@ | |||
<Compile Include="Areas\Ask\Controllers\Notice_compare_TeamsController.cs" /> | |||
<Compile Include="Areas\Ask\Controllers\Notice_Train_SportsController.cs" /> | |||
<Compile Include="Areas\Ask\Controllers\Notice_Train_SumtypeController.cs" /> | |||
<Compile Include="Areas\Ask\Controllers\Notice_Train_Sum_levelController.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | |||
@@ -943,6 +944,7 @@ | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sum\FormView.js" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sum\Form.js" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sum\Index.js" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sum_level\FormView.js" /> | |||
<Content Include="Areas\AssetManagementSystem\Views\Allocation\Form.js" /> | |||
<Content Include="Areas\AssetManagementSystem\Views\Allocation\Index.js" /> | |||
<Content Include="Areas\AssetManagementSystem\Views\AssReport\AssAddReport.js" /> | |||
@@ -6892,6 +6894,10 @@ | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sumtype\Index.js" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sumtype\Form.cshtml" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sumtype\Form.js" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sum_level\Index.cshtml" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sum_level\Index.js" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sum_level\Form.cshtml" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sum_level\Form.js" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\EducationalAdministration\Views\HomeStatistics\" /> | |||
@@ -8368,6 +8374,7 @@ | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sports\FormView.cshtml" /> | |||
<Content Include="Areas\Ask\Views\Notice_TrainTeam\FormView.cshtml" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sum\FormView.cshtml" /> | |||
<Content Include="Areas\Ask\Views\Notice_Train_Sum_level\FormView.cshtml" /> | |||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | |||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | |||
<Content Include="Views\Login\Default-beifen.cshtml" /> | |||
@@ -0,0 +1,29 @@ | |||
using Learun.Application.TwoDevelopment.Ask; | |||
using System.Data.Entity.ModelConfiguration; | |||
namespace Learun.Application.Mapping | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-11-24 21:38 | |||
/// 描 述:达级运动员 | |||
/// </summary> | |||
public class Notice_Train_Sum_levelMap : EntityTypeConfiguration<Notice_Train_Sum_levelEntity> | |||
{ | |||
public Notice_Train_Sum_levelMap() | |||
{ | |||
#region 表、主键 | |||
//表 | |||
this.ToTable("NOTICE_TRAIN_SUM_LEVEL"); | |||
//主键 | |||
this.HasKey(t => t.Id); | |||
#endregion | |||
#region 配置关系 | |||
#endregion | |||
} | |||
} | |||
} | |||
@@ -634,6 +634,7 @@ | |||
<Compile Include="Ask\Notice_Train_SportsMap.cs" /> | |||
<Compile Include="Ask\Notice_Train_SumtypeMap.cs" /> | |||
<Compile Include="Ask\Notice_Train_SumMap.cs" /> | |||
<Compile Include="Ask\Notice_Train_Sum_levelMap.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.Ask | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-11-24 21:38 | |||
/// 描 述:达级运动员 | |||
/// </summary> | |||
public class Notice_Train_Sum_levelBLL : Notice_Train_Sum_levelIBLL | |||
{ | |||
private Notice_Train_Sum_levelService notice_Train_Sum_levelService = new Notice_Train_Sum_levelService(); | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<Notice_Train_Sum_levelEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return notice_Train_Sum_levelService.GetPageList(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取Notice_Train_Sum_level表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public Notice_Train_Sum_levelEntity GetNotice_Train_Sum_levelEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return notice_Train_Sum_levelService.GetNotice_Train_Sum_levelEntity(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 | |||
{ | |||
notice_Train_Sum_levelService.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, Notice_Train_Sum_levelEntity entity) | |||
{ | |||
try | |||
{ | |||
notice_Train_Sum_levelService.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.Ask | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-11-24 21:38 | |||
/// 描 述:达级运动员 | |||
/// </summary> | |||
public class Notice_Train_Sum_levelEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// Id | |||
/// </summary> | |||
[Column("ID")] | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// Creator | |||
/// </summary> | |||
[Column("CREATOR")] | |||
public string Creator { get; set; } | |||
/// <summary> | |||
/// Createtime | |||
/// </summary> | |||
[Column("CREATETIME")] | |||
public DateTime? Createtime { get; set; } | |||
/// <summary> | |||
/// Peoples | |||
/// </summary> | |||
[Column("PEOPLES")] | |||
public string Peoples { get; set; } | |||
/// <summary> | |||
/// Files | |||
/// </summary> | |||
[Column("FILES")] | |||
public string Files { get; set; } | |||
/// <summary> | |||
/// Contents | |||
/// </summary> | |||
[Column("CONTENTS")] | |||
public string Contents { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
/// <summary> | |||
/// 新增调用 | |||
/// </summary> | |||
public void Create() | |||
{ | |||
this.Id = Guid.NewGuid().ToString(); | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
public void Modify(string keyValue) | |||
{ | |||
this.Id = keyValue; | |||
} | |||
#endregion | |||
#region 扩展字段 | |||
#endregion | |||
} | |||
} | |||
@@ -0,0 +1,48 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.TwoDevelopment.Ask | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-11-24 21:38 | |||
/// 描 述:达级运动员 | |||
/// </summary> | |||
public interface Notice_Train_Sum_levelIBLL | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
IEnumerable<Notice_Train_Sum_levelEntity> GetPageList(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取Notice_Train_Sum_level表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
Notice_Train_Sum_levelEntity GetNotice_Train_Sum_levelEntity(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, Notice_Train_Sum_levelEntity entity); | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,146 @@ | |||
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.Ask | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2023-11-24 21:38 | |||
/// 描 述:达级运动员 | |||
/// </summary> | |||
public class Notice_Train_Sum_levelService : RepositoryFactory | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">查询参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<Notice_Train_Sum_levelEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(@" t.* "); | |||
strSql.Append(" FROM Notice_Train_Sum_level t left join StuInfoBasic s on s.stuno=t.peoples"); | |||
strSql.Append(" WHERE 1=1 "); | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["keyword"].IsEmpty()) | |||
{ | |||
strSql.Append($" AND (t.Contents like '%{queryParam["keyword"].ToString()}%' or s.stuname like '%{queryParam["keyword"].ToString()}%')"); | |||
} | |||
return this.BaseRepository("CollegeMIS").FindList<Notice_Train_Sum_levelEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取Notice_Train_Sum_level表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public Notice_Train_Sum_levelEntity GetNotice_Train_Sum_levelEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<Notice_Train_Sum_levelEntity>(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<Notice_Train_Sum_levelEntity>(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, Notice_Train_Sum_levelEntity 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 | |||
} | |||
} |
@@ -1958,6 +1958,10 @@ | |||
<Compile Include="Ask\Notice_Train_Sum\Notice_Train_SumService.cs" /> | |||
<Compile Include="Ask\Notice_Train_Sum\Notice_Train_SumBLL.cs" /> | |||
<Compile Include="Ask\Notice_Train_Sum\Notice_Train_SumIBLL.cs" /> | |||
<Compile Include="Ask\Notice_Train_Sum_level\Notice_Train_Sum_levelEntity.cs" /> | |||
<Compile Include="Ask\Notice_Train_Sum_level\Notice_Train_Sum_levelService.cs" /> | |||
<Compile Include="Ask\Notice_Train_Sum_level\Notice_Train_Sum_levelBLL.cs" /> | |||
<Compile Include="Ask\Notice_Train_Sum_level\Notice_Train_Sum_levelIBLL.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||