@@ -0,0 +1,134 @@ | |||||
using Learun.Util; | |||||
using System.Data; | |||||
using Learun.Application.TwoDevelopment.AssetManagementSystem; | |||||
using System.Web.Mvc; | |||||
using Learun.Application.TwoDevelopment.LR_CodeDemo; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 14:25 | |||||
/// 描 述:经费开支申报 | |||||
/// </summary> | |||||
public class FundsApplyController : MvcControllerBase | |||||
{ | |||||
private FundsApplyIBLL fundsApplyIBLL = new FundsApplyBLL(); | |||||
#region 视图功能 | |||||
/// <summary> | |||||
/// 主页面 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult Index() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 表单页 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult Form() | |||||
{ | |||||
ViewBag.EnCode = "JFKZ_" + CommonHelper.CreateNo(); | |||||
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 = fundsApplyIBLL.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 FundsApplyData = fundsApplyIBLL.GetFundsApplyEntity( keyValue ); | |||||
var jsonData = new { | |||||
FundsApply = FundsApplyData, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
/// <summary> | |||||
/// 获取表单数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例主键</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetFormDataByProcessId(string processId) | |||||
{ | |||||
var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId( processId ); | |||||
var jsonData = new { | |||||
FundsApply = FundsApplyData, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult DeleteForm(string keyValue) | |||||
{ | |||||
fundsApplyIBLL.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) | |||||
{ | |||||
FundsApplyEntity entity = strEntity.ToObject<FundsApplyEntity>(); | |||||
fundsApplyIBLL.SaveEntity(keyValue,entity); | |||||
if (string.IsNullOrEmpty(keyValue)) | |||||
{ | |||||
} | |||||
return Success("保存成功!"); | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,117 @@ | |||||
using Learun.Util; | |||||
using System.Data; | |||||
using Learun.Application.TwoDevelopment.AssetManagementSystem; | |||||
using System.Web.Mvc; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 12:26 | |||||
/// 描 述:经费申报明细 | |||||
/// </summary> | |||||
public class FundsApplyDetailController : MvcControllerBase | |||||
{ | |||||
private FundsApplyDetailIBLL fundsApplyDetailIBLL = new FundsApplyDetailBLL(); | |||||
#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 = fundsApplyDetailIBLL.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 FundsApplyDetailData = fundsApplyDetailIBLL.GetFundsApplyDetailEntity( keyValue ); | |||||
var jsonData = new { | |||||
FundsApplyDetail = FundsApplyDetailData, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult DeleteForm(string keyValue) | |||||
{ | |||||
fundsApplyDetailIBLL.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) | |||||
{ | |||||
FundsApplyDetailEntity entity = strEntity.ToObject<FundsApplyDetailEntity>(); | |||||
fundsApplyDetailIBLL.SaveEntity(keyValue,entity); | |||||
if (string.IsNullOrEmpty(keyValue)) | |||||
{ | |||||
} | |||||
return Success("保存成功!"); | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,48 @@ | |||||
@{ | |||||
ViewBag.Title = "经费开支申报"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<script> | |||||
var NewEnCode = "@ViewBag.EnCode"; | |||||
</script> | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-12 lr-form-item" data-table="FundsApply"> | |||||
<div class="lr-form-item-title">申报单号</div> | |||||
<input id="EnCode" type="text" readonly class="form-control" readonly="readonly" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="FundsApply"> | |||||
<div class="lr-form-item-title">申报部门</div> | |||||
<div id="ApplyDept" readonly></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="FundsApply"> | |||||
<div class="lr-form-item-title">填报时间</div> | |||||
<input id="ApplyTime" type="text" readonly class="form-control currentInfo lr-currentInfo-time" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="FundsApply"> | |||||
<div class="lr-form-item-title">填报人</div> | |||||
<input id="ApplyUser" type="text" readonly class="form-control currentInfo lr-currentInfo-user" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="FundsApply"> | |||||
@*<div class="lr-form-item-title">备注</div>*@ | |||||
<input id="Remark" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="FundsApply"> | |||||
<div class="lr-form-item-title">总金额</div> | |||||
<input id="SumAmount" type="text" class="form-control" readonly="readonly" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="FundsApply"> | |||||
<div class="lr-form-item-title">人民币(大写)</div> | |||||
<input id="UpperAmount" type="text" class="form-control" readonly="readonly" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">明细操作</div> | |||||
<input id="detailadd" type="button" class="btn btn-success" value="新增明细" /> | |||||
<input id="detailedit" type="button" class="btn btn-warning" value="编辑明细" /> | |||||
<input id="detaildel" type="button" class="btn btn-danger" value="移除明细" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item lr-form-item-grid"> | |||||
<div id="FundsApplyDetail"></div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/FundsApply/Form.js") |
@@ -0,0 +1,236 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2022-11-07 14:25 | |||||
* 描 述:经费开支申报 | |||||
*/ | |||||
var keyValue = request('keyValue'); | |||||
// 设置权限 | |||||
var setAuthorize; | |||||
// 设置表单数据 | |||||
var setFormData; | |||||
// 验证数据是否填写完整 | |||||
var validForm; | |||||
// 保存数据 | |||||
var save; | |||||
var refreshGirdData; | |||||
var acceptClick; | |||||
var selectedRow; | |||||
var tempdatra = new Array(); | |||||
//总价计算 | |||||
var pricecount = 0; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
// 设置权限 | |||||
setAuthorize = function (data) { | |||||
if (!!data) { | |||||
for (var field in data) { | |||||
if (data[field].isLook != 1) {// 如果没有查看权限就直接移除 | |||||
$('#' + data[field].fieldId).parent().remove(); | |||||
} | |||||
else { | |||||
if (data[field].isEdit != 1) { | |||||
$('#' + data[field].fieldId).attr('disabled', 'disabled'); | |||||
if ($('#' + data[field].fieldId).hasClass('lrUploader-wrap')) { | |||||
$('#' + data[field].fieldId).css({ 'padding-right': '58px' }); | |||||
$('#' + data[field].fieldId).find('.btn-success').remove(); | |||||
} | |||||
} | |||||
} | |||||
} | |||||
} | |||||
}; | |||||
var page = { | |||||
init: function () { | |||||
$('.lr-form-wrap').lrscroll(); | |||||
$("#detailadd").on('click', function () { | |||||
selectedRow = null; | |||||
learun.layerForm({ | |||||
id: 'formdetail', | |||||
title: '新增明细', | |||||
url: top.$.rootUrl + '/AssetManagementSystem/FundsApplyDetail/Form', | |||||
width: 500, | |||||
height: 400, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
}); | |||||
$("#detailedit").on('click', function () { | |||||
var keyValue = $('#FundsApplyDetail').jfGridValue('Id'); | |||||
selectedRow = $('#FundsApplyDetail').jfGridGet('rowdata'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerForm({ | |||||
id: 'formdetail', | |||||
title: '编辑明细', | |||||
url: top.$.rootUrl + '/AssetManagementSystem/FundsApplyDetail/Form?keyValue=' + keyValue, | |||||
width: 500, | |||||
height: 400, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
$("#detaildel").on('click', function () { | |||||
var keyValue = $('#FundsApplyDetail').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res, index) { | |||||
if (res) { | |||||
$.each(tempdatra, function (key, val) { | |||||
if (tempdatra[key].Id === keyValue) { | |||||
pricecount -= tempdatra[key].Amount; | |||||
tempdatra.splice(key, 1); | |||||
} | |||||
}); | |||||
$("#SumAmount").val(pricecount); | |||||
$("#UpperAmount").val(smalltoBIG(pricecount)); | |||||
$('#FundsApplyDetail').jfGridSet('refreshdata', tempdatra.sort(sortNumber)); | |||||
top.layer.close(index); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
page.bind(); | |||||
page.initData(); | |||||
}, | |||||
bind: function () { | |||||
$('#ApplyDept').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); | |||||
$('#ApplyDept').lrselectSet(learun.clientdata.get(['userinfo']).departmentId); | |||||
$('#ApplyTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss')); | |||||
$('#ApplyUser')[0].lrvalue = learun.clientdata.get(['userinfo']).userId; | |||||
$('#ApplyUser').val(learun.clientdata.get(['userinfo']).realName); | |||||
$('#FundsApplyDetail').jfGrid({ | |||||
headData: [ | |||||
{ | |||||
label: '项目内容', name: 'ProjectContent', width: 150, align: 'left' | |||||
}, | |||||
{ | |||||
label: '数量', name: 'Number', width: 150, align: 'left' | |||||
}, | |||||
{ | |||||
label: '单价(元)', name: 'Price', width: 150, align: 'left' | |||||
}, | |||||
{ | |||||
label: '金额(元)', name: 'Amount', width: 150, align: 'left' | |||||
}, | |||||
], | |||||
height: 400, | |||||
mainId: 'AAIId', | |||||
reloadSelected: false, | |||||
}); | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
$.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/FundsApply/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]); | |||||
} | |||||
} | |||||
}); | |||||
} else { | |||||
$("#EnCode").val(NewEnCode); | |||||
} | |||||
} | |||||
}; | |||||
refreshGirdData = function (temprow) { | |||||
var ifnewrow = true; | |||||
$.each(tempdatra, function (key, val) { | |||||
if (tempdatra[key].Id === temprow.Id) { | |||||
tempdatra[key] = temprow; | |||||
ifnewrow = false; | |||||
} | |||||
}); | |||||
if (ifnewrow) { | |||||
tempdatra.push(temprow); | |||||
} | |||||
//总价计算 | |||||
pricecount = 0; | |||||
for (var i = 0; i < tempdatra.length; i++) { | |||||
pricecount += parseFloat(tempdatra[i].Amount); | |||||
} | |||||
$("#SumAmount").val(pricecount); | |||||
$("#UpperAmount").val(smalltoBIG(pricecount)); | |||||
$('#FundsApplyDetail').jfGridSet('refreshdata', tempdatra.sort(sortNumber)); | |||||
}; | |||||
function sortNumber(a, b) { | |||||
return a.AAIOrder - b.AAIOrder; | |||||
} | |||||
// 设置表单数据 | |||||
setFormData = function (processId, param, callback) { | |||||
if (!!processId) { | |||||
$.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/FundsApply/GetFormDataByProcessId?processId=' + processId, function (data) { | |||||
for (var id in data) { | |||||
if (!!data[id] && data[id].length > 0) { | |||||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||||
} | |||||
else { | |||||
if (id == 'FundsApply' && data[id]) { | |||||
keyValue = data[id].Id; | |||||
} | |||||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
callback && callback(); | |||||
} | |||||
// 验证数据是否填写完整 | |||||
validForm = function () { | |||||
if (!$('body').lrValidform()) { | |||||
return false; | |||||
} | |||||
return true; | |||||
}; | |||||
// 保存数据 | |||||
save = function (processId, callBack, i) { | |||||
var postData = {}; | |||||
var formData = $('[data-table="FundsApply"]').lrGetFormData(); | |||||
if (!!processId) { | |||||
formData.ProcessId = processId; | |||||
} | |||||
postData.strEntity = JSON.stringify(formData); | |||||
postData.FundsApplyDetailList = JSON.stringify($('#FundsApplyDetail').jfGridGet('rowdatas')); | |||||
$.lrSaveForm(top.$.rootUrl + '/AssetManagementSystem/FundsApply/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(res, i); | |||||
} | |||||
}); | |||||
}; | |||||
page.init(); | |||||
function smalltoBIG(n) { | |||||
var fraction = ['角', '分']; | |||||
var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; | |||||
var unit = [ | |||||
['元', '万', '亿'], | |||||
['', '拾', '佰', '仟'] | |||||
]; | |||||
var head = n < 0 ? '欠' : ''; | |||||
n = Math.abs(n); | |||||
var s = ''; | |||||
for (var i = 0; i < fraction.length; i++) { | |||||
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, ''); | |||||
} | |||||
s = s || '整'; | |||||
n = Math.floor(n); | |||||
for (var i = 0; i < unit[0].length && n > 0; i++) { | |||||
var p = ''; | |||||
for (var j = 0; j < unit[1].length && n > 0; j++) { | |||||
p = digit[n % 10] + unit[1][j] + p; | |||||
n = Math.floor(n / 10); | |||||
} | |||||
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s; | |||||
} | |||||
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); | |||||
} | |||||
} |
@@ -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> 申请</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/AssetManagementSystem/Views/FundsApply/Index.js") |
@@ -0,0 +1,143 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2022-11-07 14:25 | |||||
* 描 述:经费开支申报 | |||||
*/ | |||||
var refreshGirdData; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var processId = ''; | |||||
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: 'formFundsApply', | |||||
title: '申请', | |||||
url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/Form', | |||||
width: 860, | |||||
height: 600, | |||||
callBack: function (id) { | |||||
var res = false; | |||||
// 验证数据 | |||||
res = top[id].validForm(); | |||||
// 保存数据 | |||||
if (res) { | |||||
processId = learun.newGuid(); | |||||
res = top[id].save(processId, refreshGirdData); | |||||
} | |||||
return res; | |||||
} | |||||
}); | |||||
}); | |||||
// 编辑 | |||||
$('#lr_edit').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerForm({ | |||||
id: 'formFundsApply', | |||||
title: '编辑', | |||||
url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/Form?keyValue=' + keyValue, | |||||
width: 860, | |||||
height: 600, | |||||
callBack: function (id) { | |||||
var res = false; | |||||
// 验证数据 | |||||
res = top[id].validForm(); | |||||
// 保存数据 | |||||
if (res) { | |||||
res = top[id].save('', function () { | |||||
page.search(); | |||||
}); | |||||
} | |||||
return res; | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 删除 | |||||
$('#lr_delete').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | |||||
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/FundsApply/DeleteForm', { keyValue: keyValue}, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 打印 | |||||
$('#lr_print').on('click', function () { | |||||
$('#gridtable').jqprintTable(); | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/GetPageList', | |||||
headData: [ | |||||
{ label: "申报单号", name: "EnCode", width: 100, align: "left" }, | |||||
{ label: "申报部门", name: "ApplyDept", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op,$cell) { | |||||
learun.clientdata.getAsync('department', { | |||||
key: value, | |||||
callback: function (_data) { | |||||
callback(_data.name); | |||||
} | |||||
}); | |||||
}}, | |||||
{ label: "填报时间", name: "ApplyTime", width: 100, align: "left"}, | |||||
{ label: "填报人", name: "ApplyUser", 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: "Remark", width: 100, align: "left"}, | |||||
{ label: "总金额", name: "SumAmount", width: 100, align: "left"}, | |||||
{ label: "人民币(大写)", name: "UpperAmount", width: 100, align: "left"}, | |||||
], | |||||
mainId:'Id', | |||||
isPage: true | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function (res, postData) { | |||||
if (!!res) | |||||
{ | |||||
if (res.code == 200) | |||||
{ | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode:'',// 填写流程对应模板编号 | |||||
processId:processId, | |||||
level:'1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function(data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | |||||
} | |||||
}; | |||||
page.init(); | |||||
} |
@@ -0,0 +1,23 @@ | |||||
@{ | |||||
ViewBag.Title = "经费申报明细"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-12 lr-form-item" data-table="FundsApplyDetail" > | |||||
<div class="lr-form-item-title">项目内容<font face="宋体">*</font></div> | |||||
<input id="ProjectContent" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="FundsApplyDetail" > | |||||
<div class="lr-form-item-title">数量<font face="宋体">*</font></div> | |||||
<input id="Number" type="number" class="form-control calcul" isvalid="yes" checkexpession="Num" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="FundsApplyDetail" > | |||||
<div class="lr-form-item-title">单价(元)<font face="宋体">*</font></div> | |||||
<input id="Price" type="text" class="form-control calcul" isvalid="yes" checkexpession="PositiveFloatintZero" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="FundsApplyDetail" > | |||||
<div class="lr-form-item-title">金额(元)</div> | |||||
<input id="Amount" type="text" class="form-control" readonly="readonly" /> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.js") |
@@ -0,0 +1,79 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2022-11-07 12:26 | |||||
* 描 述:经费申报明细 | |||||
*/ | |||||
var acceptClick; | |||||
var keyValue = request('keyValue'); | |||||
var selectedRow; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
selectedRow = top["layer_formFundsApply"].selectedRow; | |||||
var page = { | |||||
init: function () { | |||||
$('.lr-form-wrap').lrscroll(); | |||||
page.bind(); | |||||
page.initData(); | |||||
}, | |||||
bind: function () { | |||||
$('.calcul').blur(function () { | |||||
var num = $('#Number').val(); | |||||
var Price = $('#Price').val(); | |||||
if (!!num && !!Price) { | |||||
$('#Amount').val(parseInt(num) * parseFloat(Price)); | |||||
} | |||||
}); | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
if (!!selectedRow) { | |||||
$('#form').lrSetFormData(selectedRow); | |||||
//$("#AAOldCode").find('span').text(selectedRow.AAIName); | |||||
} | |||||
} | |||||
//if (!!keyValue) { | |||||
// $.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/FundsApplyDetail/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 = $('body').lrGetFormData(); | |||||
if (!!keyValue) { | |||||
if (!!selectedRow) { | |||||
postData.Id = selectedRow.Id; | |||||
} | |||||
} else { | |||||
postData.Id = learun.newGuid(); | |||||
} | |||||
if (!!callBack) { | |||||
callBack(postData); | |||||
return true; | |||||
} | |||||
//var postData = { | |||||
// strEntity: JSON.stringify($('body').lrGetFormData()) | |||||
//}; | |||||
//$.lrSaveForm(top.$.rootUrl + '/AssetManagementSystem/FundsApplyDetail/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
// // 保存成功后才回调 | |||||
// if (!!callBack) { | |||||
// callBack(); | |||||
// } | |||||
//}); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -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> 新增</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/AssetManagementSystem/Views/FundsApplyDetail/Index.js") |
@@ -0,0 +1,91 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2022-11-07 12:26 | |||||
* 描 述:经费申报明细 | |||||
*/ | |||||
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 + '/AssetManagementSystem/FundsApplyDetail/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 + '/AssetManagementSystem/FundsApplyDetail/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 + '/AssetManagementSystem/FundsApplyDetail/DeleteForm', { keyValue: keyValue}, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 打印 | |||||
$('#lr_print').on('click', function () { | |||||
$('#gridtable').jqprintTable(); | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | |||||
url: top.$.rootUrl + '/AssetManagementSystem/FundsApplyDetail/GetPageList', | |||||
headData: [ | |||||
{ label: "项目内容", name: "ProjectContent", width: 100, align: "left"}, | |||||
{ label: "数量", name: "Number", width: 100, align: "left"}, | |||||
{ label: "单价(元)", name: "Price", width: 100, align: "left"}, | |||||
{ label: "金额(元)", name: "Amount", 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(); | |||||
} |
@@ -0,0 +1,175 @@ | |||||
using Learun.Util; | |||||
using System.Data; | |||||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||||
using System.Web.Mvc; | |||||
using Learun.Application.TwoDevelopment.LR_CodeDemo; | |||||
using System.Collections.Generic; | |||||
using Learun.Application.Base.SystemModule; | |||||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-08 11:05 | |||||
/// 描 述:学生赛事奖励 | |||||
/// </summary> | |||||
public class StudentCompetitionController : MvcControllerBase | |||||
{ | |||||
private StudentCompetitionIBLL studentCompetitionIBLL = new StudentCompetitionBLL(); | |||||
private CodeRuleIBLL codeRuleIBLL = new CodeRuleBLL(); | |||||
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); | |||||
#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 FormScore() | |||||
{ | |||||
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 = studentCompetitionIBLL.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 StudentCompetitionData = studentCompetitionIBLL.GetStudentCompetitionEntity(keyValue); | |||||
var jsonData = new | |||||
{ | |||||
StudentCompetition = StudentCompetitionData, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
/// <summary> | |||||
/// 获取表单数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetStuData(string stuno, string stuname) | |||||
{ | |||||
var stuData = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNoOrStuName(stuno, stuname); | |||||
return Success(stuData); | |||||
} | |||||
/// <summary> | |||||
/// 获取表单数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例主键</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetFormDataByProcessId(string processId) | |||||
{ | |||||
var StudentCompetitionData = studentCompetitionIBLL.GetEntityByProcessId(processId); | |||||
var jsonData = new | |||||
{ | |||||
StudentCompetition = StudentCompetitionData, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult DeleteForm(string keyValue) | |||||
{ | |||||
studentCompetitionIBLL.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) | |||||
{ | |||||
StudentCompetitionEntity entity = strEntity.ToObject<StudentCompetitionEntity>(); | |||||
studentCompetitionIBLL.SaveEntity(keyValue, entity); | |||||
if (string.IsNullOrEmpty(keyValue)) | |||||
{ | |||||
} | |||||
return Success("保存成功!"); | |||||
} | |||||
/// <summary> | |||||
/// 提交 | |||||
/// </summary> | |||||
/// <param name="keyValue"></param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult ChangeStatusById(string keyValue, string processId) | |||||
{ | |||||
studentCompetitionIBLL.ChangeStatusById(keyValue, 1, processId); | |||||
return Success("操作成功!"); | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,63 @@ | |||||
@{ | |||||
ViewBag.Title = "学生赛事奖励"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">学年<font face="宋体">*</font></div> | |||||
<div id="AcademicYearNo" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">学期<font face="宋体">*</font></div> | |||||
<div id="Semester"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">学生学号<font face="宋体">*</font></div> | |||||
<input id="StuNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">学生姓名<font face="宋体">*</font></div> | |||||
<input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">专业部<font face="宋体">*</font></div> | |||||
<div id="DeptNo" isvalid="yes" checkexpession="NotNull" readonly></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">专业<font face="宋体">*</font></div> | |||||
<div id="MajorNo" isvalid="yes" checkexpession="NotNull" readonly></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">班级<font face="宋体">*</font></div> | |||||
<div id="ClassNo" isvalid="yes" checkexpession="NotNull" readonly></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">赛事名称<font face="宋体">*</font></div> | |||||
<input id="SCName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">赛事级别<font face="宋体">*</font></div> | |||||
<div id="SCLevel" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">赛事种类<font face="宋体">*</font></div> | |||||
<input id="SCType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">颁发单位<font face="宋体">*</font></div> | |||||
<input id="Unit" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">分值<font face="宋体">*</font></div> | |||||
<input id="Score" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">获取时间<font face="宋体">*</font></div> | |||||
<input id="SCTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#SCTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition"> | |||||
<div class="lr-form-item-title">附件上传</div> | |||||
<div id="Url"></div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StudentCompetition/Form.js") |
@@ -0,0 +1,174 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2022-11-08 11:05 | |||||
* 描 述:学生赛事奖励 | |||||
*/ | |||||
var acceptClick; | |||||
var keyValue = request('keyValue'); | |||||
var type = request('type'); | |||||
// 设置权限 | |||||
var setAuthorize; | |||||
// 设置表单数据 | |||||
var setFormData; | |||||
// 验证数据是否填写完整 | |||||
var validForm; | |||||
// 保存数据 | |||||
var save; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
// 设置权限 | |||||
setAuthorize = function (data) { | |||||
if (!!data) { | |||||
for (var field in data) { | |||||
if (data[field].isLook != 1) {// 如果没有查看权限就直接移除 | |||||
$('#' + data[field].fieldId).parent().remove(); | |||||
} | |||||
else { | |||||
if (data[field].isEdit != 1) { | |||||
$('#' + data[field].fieldId).attr('disabled', 'disabled'); | |||||
if ($('#' + data[field].fieldId).hasClass('lrUploader-wrap')) { | |||||
$('#' + data[field].fieldId).css({ 'padding-right': '58px' }); | |||||
$('#' + data[field].fieldId).find('.btn-success').remove(); | |||||
} | |||||
} | |||||
} | |||||
} | |||||
} | |||||
}; | |||||
var page = { | |||||
init: function () { | |||||
$('.lr-form-wrap').lrscroll(); | |||||
page.bind(); | |||||
page.initData(); | |||||
}, | |||||
bind: function () { | |||||
//学年 | |||||
$('#AcademicYearNo').lrselect({ | |||||
placeholder: "请选择学年", | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
//学期 | |||||
$('#Semester').lrselect({ | |||||
placeholder: "请选择学年", | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||||
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||||
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); | |||||
$('#Url').lrUploader(); | |||||
$('#SCLevel').lrDataItemSelect({ code: 'Level' }); | |||||
$('#StuNo').blur(function () { | |||||
learun.httpAsyncGet(top.$.rootUrl + '/EducationalAdministration/StudentCompetition/GetStuData?stuno=' + $('#StuNo').val(), function (res) { | |||||
learun.loading(false); | |||||
if (res.code == learun.httpCode.success) { | |||||
var data = res.data; | |||||
if (!!data) { | |||||
$('#StuName').val(data.StuName); | |||||
$('#DeptNo').lrselectSet(data.DeptNo); | |||||
$('#MajorNo').lrselectSet(data.MajorNo); | |||||
$('#ClassNo').lrselectSet(data.ClassNo); | |||||
} else { | |||||
$('#StuName').val(); | |||||
$('#DeptNo').lrselectSet(); | |||||
$('#MajorNo').lrselectSet(); | |||||
$('#ClassNo').lrselectSet(); | |||||
} | |||||
} | |||||
else { | |||||
learun.alert.error(res.info); | |||||
} | |||||
}); | |||||
}); | |||||
$('#StuName').blur(function () { | |||||
learun.httpAsyncGet(top.$.rootUrl + '/EducationalAdministration/StudentCompetition/GetStuData?stuname=' + $('#StuName').val(), function (res) { | |||||
learun.loading(false); | |||||
if (res.code == learun.httpCode.success) { | |||||
var data = res.data; | |||||
if (!!data) { | |||||
$('#StuNo').val(data.StuNo); | |||||
$('#DeptNo').lrselectSet(data.DeptNo); | |||||
$('#MajorNo').lrselectSet(data.MajorNo); | |||||
$('#ClassNo').lrselectSet(data.ClassNo); | |||||
} else { | |||||
$('#StuName').val(); | |||||
$('#DeptNo').lrselectSet(); | |||||
$('#MajorNo').lrselectSet(); | |||||
$('#ClassNo').lrselectSet(); | |||||
} | |||||
} | |||||
else { | |||||
learun.alert.error(res.info); | |||||
} | |||||
}); | |||||
}); | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StudentCompetition/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]); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
} | |||||
}; | |||||
// 设置表单数据 | |||||
setFormData = function (processId, param, callback) { | |||||
if (!!processId) { | |||||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StudentCompetition/GetFormDataByProcessId?processId=' + processId, function (data) { | |||||
for (var id in data) { | |||||
if (!!data[id] && data[id].length > 0) { | |||||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||||
} | |||||
else { | |||||
if (id == 'StudentCompetition' && data[id]) { | |||||
keyValue = data[id].Id; | |||||
} | |||||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
callback && callback(); | |||||
} | |||||
// 验证数据是否填写完整 | |||||
validForm = function () { | |||||
if (!$('body').lrValidform()) { | |||||
return false; | |||||
} | |||||
return true; | |||||
}; | |||||
// 保存数据 | |||||
save = function (processId, callBack, i) { | |||||
var formData = $('body').lrGetFormData(); | |||||
if (!!processId) { | |||||
formData.processId = processId; | |||||
} | |||||
if (type == 'copy') { | |||||
keyValue = ''; | |||||
} | |||||
var postData = { | |||||
strEntity: JSON.stringify(formData) | |||||
}; | |||||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StudentCompetition/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(res, i); | |||||
} | |||||
}); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -0,0 +1,23 @@ | |||||
@{ | |||||
ViewBag.Title = "学生赛事奖励"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition" > | |||||
<div class="lr-form-item-title">学生学号<font face="宋体">*</font></div> | |||||
<input id="StuNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition" > | |||||
<div class="lr-form-item-title">学生姓名<font face="宋体">*</font></div> | |||||
<input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition" > | |||||
<div class="lr-form-item-title">赛事名称<font face="宋体">*</font></div> | |||||
<input id="SCName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCompetition" > | |||||
<div class="lr-form-item-title">分值<font face="宋体">*</font></div> | |||||
<input id="Score" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StudentCompetition/FormScore.js") |
@@ -0,0 +1,94 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2022-11-08 11:05 | |||||
* 描 述:学生赛事奖励 | |||||
*/ | |||||
var acceptClick; | |||||
var keyValue = request('keyValue'); | |||||
var type = request('type'); | |||||
// 设置权限 | |||||
var setAuthorize; | |||||
// 设置表单数据 | |||||
var setFormData; | |||||
// 验证数据是否填写完整 | |||||
var validForm; | |||||
// 保存数据 | |||||
var save; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var page = { | |||||
init: function () { | |||||
$('.lr-form-wrap').lrscroll(); | |||||
page.bind(); | |||||
page.initData(); | |||||
}, | |||||
bind: function () { | |||||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||||
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||||
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StudentCompetition/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]); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
} | |||||
}; | |||||
// 设置表单数据 | |||||
setFormData = function (processId, param, callback) { | |||||
if (!!processId) { | |||||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StudentCompetition/GetFormDataByProcessId?processId=' + processId, function (data) { | |||||
for (var id in data) { | |||||
if (!!data[id] && data[id].length > 0) { | |||||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||||
} | |||||
else { | |||||
if (id == 'StudentCompetition' && data[id]) { | |||||
keyValue = data[id].Id; | |||||
} | |||||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
callback && callback(); | |||||
} | |||||
// 验证数据是否填写完整 | |||||
validForm = function () { | |||||
if (!$('body').lrValidform()) { | |||||
return false; | |||||
} | |||||
return true; | |||||
}; | |||||
// 保存数据 | |||||
save = function (processId, callBack, i) { | |||||
var formData = $('body').lrGetFormData(); | |||||
if (!!processId) { | |||||
formData.processId = processId; | |||||
} | |||||
if (type == 'copy') { | |||||
keyValue = ''; | |||||
} | |||||
var postData = { | |||||
strEntity: JSON.stringify(formData) | |||||
}; | |||||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StudentCompetition/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(res, i); | |||||
} | |||||
}); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -0,0 +1,77 @@ | |||||
@{ | |||||
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-6 lr-form-item"> | |||||
<div class="lr-form-item-title">学年</div> | |||||
<div id="AcademicYearNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">学期</div> | |||||
<div id="Semester"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">学生学号</div> | |||||
<input id="StuNo" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">学生姓名</div> | |||||
<input id="StuName" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">专业部</div> | |||||
<div id="DeptNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">专业</div> | |||||
<div id="MajorNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">班级</div> | |||||
<div id="ClassNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">赛事名称</div> | |||||
<input id="SCName" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">赛事级别</div> | |||||
<div id="SCLevel"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">赛事种类</div> | |||||
<input id="SCType" 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_copy" 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_updscore" class="btn btn-default"><i class="fa fa-plus"></i> 修改分值</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||||
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></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/EducationalAdministration/Views/StudentCompetition/Index.js") |
@@ -0,0 +1,317 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2022-11-08 11:05 | |||||
* 描 述:学生赛事奖励 | |||||
*/ | |||||
var refreshGirdData; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var processId = ''; | |||||
var page = { | |||||
init: function () { | |||||
page.initGird(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||||
page.search(queryJson); | |||||
}, 240, 400); | |||||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||||
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | |||||
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); | |||||
$('#SCLevel').lrDataItemSelect({ code: 'Level' }); | |||||
//学年 | |||||
$('#AcademicYearNo').lrselect({ | |||||
placeholder: "请选择学年", | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
//学期 | |||||
$('#Semester').lrselect({ | |||||
placeholder: "请选择学期", | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
// 新增 | |||||
$('#lr_add').on('click', function () { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '新增', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StudentCompetition/Form', | |||||
width: 1000, | |||||
height: 800, | |||||
callBack: function (id) { | |||||
var res = false; | |||||
// 验证数据 | |||||
res = top[id].validForm(); | |||||
// 保存数据 | |||||
if (res) { | |||||
processId = learun.newGuid(); | |||||
res = top[id].save(processId, refreshGirdData); | |||||
} | |||||
return res; | |||||
} | |||||
}); | |||||
}); | |||||
// 编辑 | |||||
$('#lr_edit').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var Status = $('#gridtable').jfGridValue('Status'); | |||||
if (Status == '2') { | |||||
learun.alert.warning("当前项目已审批通过!"); | |||||
return; | |||||
} | |||||
if (Status != '0') { | |||||
learun.alert.warning("当前项目已提交,请耐心等待审批!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '编辑', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StudentCompetition/Form?keyValue=' + keyValue, | |||||
width: 1000, | |||||
height: 800, | |||||
callBack: function (id) { | |||||
var res = false; | |||||
// 验证数据 | |||||
res = top[id].validForm(); | |||||
// 保存数据 | |||||
if (res) { | |||||
res = top[id].save('', function () { | |||||
page.search(); | |||||
}); | |||||
} | |||||
return res; | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
//修改分值 | |||||
$('#lr_updscore').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var Status = $('#gridtable').jfGridValue('Status'); | |||||
if (Status == '2') { | |||||
learun.alert.warning("当前项目已审批通过!"); | |||||
return; | |||||
} | |||||
if (Status != '0') { | |||||
learun.alert.warning("当前项目已提交,请耐心等待审批!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'form_updscore', | |||||
title: '修改分值', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StudentCompetition/FormScore?keyValue=' + keyValue, | |||||
width: 500, | |||||
height: 350, | |||||
callBack: function (id) { | |||||
var res = false; | |||||
// 验证数据 | |||||
res = top[id].validForm(); | |||||
// 保存数据 | |||||
if (res) { | |||||
res = top[id].save('', function () { | |||||
page.search(); | |||||
}); | |||||
} | |||||
return res; | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
//复制 | |||||
$('#lr_copy').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '新增', | |||||
url: top.$.rootUrl + '/EducationalAdministration/StudentCompetition/Form?keyValue=' + keyValue + '&type=copy', | |||||
width: 1000, | |||||
height: 800, | |||||
callBack: function (id) { | |||||
var res = false; | |||||
// 验证数据 | |||||
res = top[id].validForm(); | |||||
// 保存数据 | |||||
if (res) { | |||||
res = top[id].save('', function () { | |||||
page.search(); | |||||
}); | |||||
} | |||||
return res; | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 删除 | |||||
$('#lr_delete').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var Status = $('#gridtable').jfGridValue('Status'); | |||||
if (Status == '2') { | |||||
learun.alert.warning("当前项目已审批通过!"); | |||||
return; | |||||
} | |||||
if (Status != '0') { | |||||
learun.alert.warning("当前项目已提交,请耐心等待审批!"); | |||||
return; | |||||
} | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | |||||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StudentCompetition/DeleteForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 提交 | |||||
$('#lr_submit').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var Status = $('#gridtable').jfGridValue('Status'); | |||||
if (Status == '2') { | |||||
learun.alert.warning("当前项目已审批通过!"); | |||||
return; | |||||
} | |||||
if (Status != '0') { | |||||
learun.alert.warning("当前项目已提交,请耐心等待审批!"); | |||||
return; | |||||
} | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | |||||
if (res) { | |||||
processId = learun.newGuid(); | |||||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StudentCompetition/ChangeStatusById', { keyValue: keyValue, processId: processId }, function (res) { | |||||
refreshGirdData(res, {}); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 打印 | |||||
$('#lr_print').on('click', function () { | |||||
$('#gridtable').jqprintTable(); | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/StudentCompetition/GetPageList', | |||||
headData: [ | |||||
{ label: "学年", name: "AcademicYearNo", width: 80, align: "left" }, | |||||
{ label: "学期", name: "Semester", width: 80, align: "left" }, | |||||
{ label: "学生学号", name: "StuNo", width: 150, align: "left" }, | |||||
{ label: "学生姓名", name: "StuName", width: 100, align: "left" }, | |||||
{ | |||||
label: "专业部", name: "DeptNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||||
key: value, | |||||
keyId: 'deptno', | |||||
callback: function (_data) { | |||||
callback(_data['deptname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "专业", name: "MajorNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||||
key: value, | |||||
keyId: 'majorno', | |||||
callback: function (_data) { | |||||
callback(_data['majorname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "班级", name: "ClassNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', | |||||
key: value, | |||||
keyId: 'classno', | |||||
callback: function (_data) { | |||||
callback(_data['classname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "赛事名称", name: "SCName", width: 100, align: "left" }, | |||||
{ | |||||
label: "赛事级别", name: "SCLevel", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | |||||
code: 'Level', | |||||
callback: function (_data) { | |||||
callback(_data.text); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "赛事种类", name: "SCType", width: 100, align: "left" }, | |||||
{ label: "颁发单位", name: "Unit", width: 100, align: "left" }, | |||||
{ label: "分值", name: "Score", width: 100, align: "left" }, | |||||
{ | |||||
label: "获取时间", name: "SCTime", width: 100, align: "left", | |||||
formatter: function (cellvalue, row) { | |||||
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); | |||||
} | |||||
}, | |||||
{ | |||||
label: "状态", name: "Status", width: 100, align: "left", | |||||
formatter: function (cellvalue, row) { | |||||
if (cellvalue === 1) { | |||||
return '<span class=\"label label-warning\">审批中</span>'; | |||||
} else if (cellvalue === 2) { | |||||
return '<span class=\"label label-success\">审核通过</span>'; | |||||
} else { | |||||
return '<span class=\"label label-default\" >草稿</span>'; | |||||
} | |||||
} | |||||
}, | |||||
], | |||||
mainId: 'Id', | |||||
isPage: true | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function (res, postData) { | |||||
if (res && res.code && res.code == 200) { | |||||
var postData = { | |||||
schemeCode: 'StudentCompetition',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -351,6 +351,7 @@ | |||||
<Compile Include="Areas\EducationalAdministration\Controllers\ScholarshipxjController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\ScholarshipxjController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\ScoreStatisticsController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\ScoreStatisticsController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\StuAttendanceController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\StuAttendanceController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\StudentCompetitionController.cs" /> | |||||
<Compile Include="Areas\EducationalAdministration\Controllers\StudentHonorController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\StudentHonorController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\StuDisciplineManagementController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\StuDisciplineManagementController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\StuCancelDisciplineManagementController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\StuCancelDisciplineManagementController.cs" /> | ||||
@@ -881,6 +882,8 @@ | |||||
<Compile Include="Areas\EducationalAdministration\Controllers\WelfarePositionController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\WelfarePositionController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\WageScheduleController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\WageScheduleController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\SportEquipmentController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\SportEquipmentController.cs" /> | ||||
<Compile Include="Areas\AssetManagementSystem\Controllers\FundsApplyDetailController.cs" /> | |||||
<Compile Include="Areas\AssetManagementSystem\Controllers\FundsApplyController.cs" /> | |||||
<Compile Include="Areas\EducationalAdministration\Controllers\SportEquipmentLendController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\SportEquipmentLendController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\SportEquipmentReturnController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\SportEquipmentReturnController.cs" /> | ||||
</ItemGroup> | </ItemGroup> | ||||
@@ -1171,6 +1174,9 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\StuCancelLeaveManagement\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuCancelLeaveManagement\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuConsumption\IndexForStudent.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuConsumption\IndexForStudent.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuConsumption\IndexForTeacher.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuConsumption\IndexForTeacher.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StudentCompetition\Form.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StudentCompetition\FormScore.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StudentCompetition\Index.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\StudentHonor\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\FormScore.js" /> | <Content Include="Areas\EducationalAdministration\Views\StudentHonor\FormScore.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\StudentHonor\Index.js" /> | ||||
@@ -1288,6 +1294,9 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\Form.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StudentHonor\Form.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\FormScore.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StudentHonor\FormScore.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StudentHonor\Index.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StudentHonor\Index.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StudentCompetition\Form.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StudentCompetition\FormScore.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StudentCompetition\Index.cshtml" /> | |||||
<None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" /> | <None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" /> | ||||
@@ -6965,6 +6974,14 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\SportEquipment\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\SportEquipment\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\SportEquipment\Form.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\SportEquipment\Form.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\SportEquipment\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\SportEquipment\Form.js" /> | ||||
<Content Include="Areas\AssetManagementSystem\Views\FundsApplyDetail\Index.cshtml" /> | |||||
<Content Include="Areas\AssetManagementSystem\Views\FundsApplyDetail\Index.js" /> | |||||
<Content Include="Areas\AssetManagementSystem\Views\FundsApplyDetail\Form.cshtml" /> | |||||
<Content Include="Areas\AssetManagementSystem\Views\FundsApplyDetail\Form.js" /> | |||||
<Content Include="Areas\AssetManagementSystem\Views\FundsApply\Index.cshtml" /> | |||||
<Content Include="Areas\AssetManagementSystem\Views\FundsApply\Index.js" /> | |||||
<Content Include="Areas\AssetManagementSystem\Views\FundsApply\Form.cshtml" /> | |||||
<Content Include="Areas\AssetManagementSystem\Views\FundsApply\Form.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\SportEquipmentLend\Index.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\SportEquipmentLend\Index.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\SportEquipmentLend\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\SportEquipmentLend\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\SportEquipmentLend\Form.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\SportEquipmentLend\Form.cshtml" /> | ||||
@@ -35,6 +35,7 @@ | |||||
<typeAlias alias="StuDisciplineManagementMethod" type="Learun.Application.WorkFlow.StuDisciplineManagementMethod,Learun.Application.WorkFlow" /> | <typeAlias alias="StuDisciplineManagementMethod" type="Learun.Application.WorkFlow.StuDisciplineManagementMethod,Learun.Application.WorkFlow" /> | ||||
<typeAlias alias="StudentCertificateMethod" type="Learun.Application.WorkFlow.StudentCertificateMethod,Learun.Application.WorkFlow" /> | <typeAlias alias="StudentCertificateMethod" type="Learun.Application.WorkFlow.StudentCertificateMethod,Learun.Application.WorkFlow" /> | ||||
<typeAlias alias="StudentHonorMethod" type="Learun.Application.WorkFlow.StudentHonorMethod,Learun.Application.WorkFlow" /> | <typeAlias alias="StudentHonorMethod" type="Learun.Application.WorkFlow.StudentHonorMethod,Learun.Application.WorkFlow" /> | ||||
<typeAlias alias="StudentCompetitionMethod" type="Learun.Application.WorkFlow.StudentCompetitionMethod,Learun.Application.WorkFlow" /> | |||||
<!--任务调度器--> | <!--任务调度器--> | ||||
<typeAlias alias="ITSMethod" type="Learun.Application.Extention.TaskScheduling.ITsMethod,Learun.Application.Extention" /> | <typeAlias alias="ITSMethod" type="Learun.Application.Extention.TaskScheduling.ITsMethod,Learun.Application.Extention" /> | ||||
@@ -80,6 +81,7 @@ | |||||
<type type="IWorkFlowMethod" mapTo="StuDisciplineManagementMethod" name="StuDisciplineManagementMethod"></type> | <type type="IWorkFlowMethod" mapTo="StuDisciplineManagementMethod" name="StuDisciplineManagementMethod"></type> | ||||
<type type="IWorkFlowMethod" mapTo="StudentCertificateMethod" name="StudentCertificateMethod"></type> | <type type="IWorkFlowMethod" mapTo="StudentCertificateMethod" name="StudentCertificateMethod"></type> | ||||
<type type="IWorkFlowMethod" mapTo="StudentHonorMethod" name="StudentHonorMethod"></type> | <type type="IWorkFlowMethod" mapTo="StudentHonorMethod" name="StudentHonorMethod"></type> | ||||
<type type="IWorkFlowMethod" mapTo="StudentCompetitionMethod" name="StudentCompetitionMethod"></type> | |||||
</container> | </container> | ||||
@@ -0,0 +1,29 @@ | |||||
using Learun.Application.TwoDevelopment.AssetManagementSystem; | |||||
using System.Data.Entity.ModelConfiguration; | |||||
namespace Learun.Application.Mapping | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 12:26 | |||||
/// 描 述:经费申报明细 | |||||
/// </summary> | |||||
public class FundsApplyDetailMap : EntityTypeConfiguration<FundsApplyDetailEntity> | |||||
{ | |||||
public FundsApplyDetailMap() | |||||
{ | |||||
#region 表、主键 | |||||
//表 | |||||
this.ToTable("FUNDSAPPLYDETAIL"); | |||||
//主键 | |||||
this.HasKey(t => t.Id); | |||||
#endregion | |||||
#region 配置关系 | |||||
#endregion | |||||
} | |||||
} | |||||
} | |||||
@@ -0,0 +1,29 @@ | |||||
using Learun.Application.TwoDevelopment.AssetManagementSystem; | |||||
using System.Data.Entity.ModelConfiguration; | |||||
namespace Learun.Application.Mapping | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 14:25 | |||||
/// 描 述:经费开支申报 | |||||
/// </summary> | |||||
public class FundsApplyMap : EntityTypeConfiguration<FundsApplyEntity> | |||||
{ | |||||
public FundsApplyMap() | |||||
{ | |||||
#region 表、主键 | |||||
//表 | |||||
this.ToTable("FUNDSAPPLY"); | |||||
//主键 | |||||
this.HasKey(t => t.Id); | |||||
#endregion | |||||
#region 配置关系 | |||||
#endregion | |||||
} | |||||
} | |||||
} | |||||
@@ -0,0 +1,29 @@ | |||||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||||
using System.Data.Entity.ModelConfiguration; | |||||
namespace Learun.Application.Mapping | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-08 11:05 | |||||
/// 描 述:学生赛事奖励 | |||||
/// </summary> | |||||
public class StudentCompetitionMap : EntityTypeConfiguration<StudentCompetitionEntity> | |||||
{ | |||||
public StudentCompetitionMap() | |||||
{ | |||||
#region 表、主键 | |||||
//表 | |||||
this.ToTable("STUDENTCOMPETITION"); | |||||
//主键 | |||||
this.HasKey(t => t.Id); | |||||
#endregion | |||||
#region 配置关系 | |||||
#endregion | |||||
} | |||||
} | |||||
} | |||||
@@ -110,6 +110,7 @@ | |||||
<Compile Include="EducationalAdministration\ScoreStatisticsMap.cs" /> | <Compile Include="EducationalAdministration\ScoreStatisticsMap.cs" /> | ||||
<Compile Include="EducationalAdministration\StuCancelLeaveManagementMap.cs" /> | <Compile Include="EducationalAdministration\StuCancelLeaveManagementMap.cs" /> | ||||
<Compile Include="EducationalAdministration\StuCancleDisciplineManagementMap.cs" /> | <Compile Include="EducationalAdministration\StuCancleDisciplineManagementMap.cs" /> | ||||
<Compile Include="EducationalAdministration\StudentCompetitionMap.cs" /> | |||||
<Compile Include="EducationalAdministration\StudentHonorMap.cs" /> | <Compile Include="EducationalAdministration\StudentHonorMap.cs" /> | ||||
<Compile Include="EducationalAdministration\StuDisciplineManagementMap.cs" /> | <Compile Include="EducationalAdministration\StuDisciplineManagementMap.cs" /> | ||||
<Compile Include="EducationalAdministration\StuGrantMap.cs" /> | <Compile Include="EducationalAdministration\StuGrantMap.cs" /> | ||||
@@ -637,6 +638,8 @@ | |||||
<Compile Include="EducationalAdministration\TE_MaterialOutboundMap.cs" /> | <Compile Include="EducationalAdministration\TE_MaterialOutboundMap.cs" /> | ||||
<Compile Include="EducationalAdministration\ScoreCheckInfoMap.cs" /> | <Compile Include="EducationalAdministration\ScoreCheckInfoMap.cs" /> | ||||
<Compile Include="EducationalAdministration\WelfarePositionMap.cs" /> | <Compile Include="EducationalAdministration\WelfarePositionMap.cs" /> | ||||
<Compile Include="AssetManagementSystem\FundsApplyDetailMap.cs" /> | |||||
<Compile Include="AssetManagementSystem\FundsApplyMap.cs" /> | |||||
<Compile Include="EducationalAdministration\WageScheduleMap.cs" /> | <Compile Include="EducationalAdministration\WageScheduleMap.cs" /> | ||||
<Compile Include="EducationalAdministration\SportEquipmentMap.cs" /> | <Compile Include="EducationalAdministration\SportEquipmentMap.cs" /> | ||||
<Compile Include="EducationalAdministration\SportEquipmentLendMap.cs" /> | <Compile Include="EducationalAdministration\SportEquipmentLendMap.cs" /> | ||||
@@ -0,0 +1,148 @@ | |||||
using Learun.Util; | |||||
using System; | |||||
using System.Data; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.TwoDevelopment.AssetManagementSystem | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 14:25 | |||||
/// 描 述:经费开支申报 | |||||
/// </summary> | |||||
public class FundsApplyBLL : FundsApplyIBLL | |||||
{ | |||||
private FundsApplyService fundsApplyService = new FundsApplyService(); | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<FundsApplyEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
return fundsApplyService.GetPageList(pagination, queryJson); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取FundsApply表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public FundsApplyEntity GetFundsApplyEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return fundsApplyService.GetFundsApplyEntity(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取主表实体数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例ID</param> | |||||
/// <returns></returns> | |||||
public FundsApplyEntity GetEntityByProcessId(string processId) | |||||
{ | |||||
try | |||||
{ | |||||
return fundsApplyService.GetEntityByProcessId(processId); | |||||
} | |||||
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 | |||||
{ | |||||
fundsApplyService.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> | |||||
public void SaveEntity(string keyValue, FundsApplyEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
fundsApplyService.SaveEntity(keyValue, entity); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,90 @@ | |||||
using Learun.Util; | |||||
using System; | |||||
using System.ComponentModel.DataAnnotations.Schema; | |||||
namespace Learun.Application.TwoDevelopment.AssetManagementSystem | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 14:25 | |||||
/// 描 述:经费开支申报 | |||||
/// </summary> | |||||
public class FundsApplyEntity | |||||
{ | |||||
#region 实体成员 | |||||
/// <summary> | |||||
/// Id | |||||
/// </summary> | |||||
[Column("ID")] | |||||
public string Id { get; set; } | |||||
/// <summary> | |||||
/// 编号 | |||||
/// </summary> | |||||
[Column("ENCODE")] | |||||
public string EnCode { get; set; } | |||||
/// <summary> | |||||
/// ApplyTime | |||||
/// </summary> | |||||
[Column("APPLYTIME")] | |||||
public DateTime? ApplyTime { get; set; } | |||||
/// <summary> | |||||
/// ApplyDept | |||||
/// </summary> | |||||
[Column("APPLYDEPT")] | |||||
public string ApplyDept { get; set; } | |||||
/// <summary> | |||||
/// ApplyUser | |||||
/// </summary> | |||||
[Column("APPLYUSER")] | |||||
public string ApplyUser { get; set; } | |||||
/// <summary> | |||||
/// SumAmount | |||||
/// </summary> | |||||
[Column("SUMAMOUNT")] | |||||
public decimal? SumAmount { get; set; } | |||||
/// <summary> | |||||
/// 人民币大写 | |||||
/// </summary> | |||||
[Column("UPPERAMOUNT")] | |||||
public string UpperAmount { get; set; } | |||||
/// <summary> | |||||
/// 备注 | |||||
/// </summary> | |||||
[Column("REMARK")] | |||||
public string Remark { get; set; } | |||||
/// <summary> | |||||
/// 流程Id | |||||
/// </summary> | |||||
[Column("PROCESSID")] | |||||
public string ProcessId { get; set; } | |||||
/// <summary> | |||||
/// 状态 | |||||
/// </summary> | |||||
[Column("STATUS")] | |||||
public int? Status { 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,55 @@ | |||||
using Learun.Util; | |||||
using System.Data; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.TwoDevelopment.AssetManagementSystem | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 14:25 | |||||
/// 描 述:经费开支申报 | |||||
/// </summary> | |||||
public interface FundsApplyIBLL | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
IEnumerable<FundsApplyEntity> GetPageList(Pagination pagination, string queryJson); | |||||
/// <summary> | |||||
/// 获取FundsApply表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
FundsApplyEntity GetFundsApplyEntity(string keyValue); | |||||
/// <summary> | |||||
/// 获取主表实体数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例ID</param> | |||||
/// <returns></returns> | |||||
FundsApplyEntity GetEntityByProcessId(string processId); | |||||
#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, FundsApplyEntity entity); | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,169 @@ | |||||
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.AssetManagementSystem | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 14:25 | |||||
/// 描 述:经费开支申报 | |||||
/// </summary> | |||||
public class FundsApplyService : RepositoryFactory | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<FundsApplyEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
var strSql = new StringBuilder(); | |||||
strSql.Append("SELECT "); | |||||
strSql.Append(@" | |||||
t.* | |||||
"); | |||||
strSql.Append(" FROM FundsApply t "); | |||||
strSql.Append(" WHERE 1=1 "); | |||||
var queryParam = queryJson.ToJObject(); | |||||
// 虚拟参数 | |||||
var dp = new DynamicParameters(new { }); | |||||
return this.BaseRepository("CollegeMIS").FindList<FundsApplyEntity>(strSql.ToString(), dp, pagination); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取FundsApply表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public FundsApplyEntity GetFundsApplyEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<FundsApplyEntity>(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取主表实体数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例ID</param> | |||||
/// <returns></returns> | |||||
public FundsApplyEntity GetEntityByProcessId(string processId) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<FundsApplyEntity>(t => t.ProcessId == processId); | |||||
} | |||||
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<FundsApplyEntity>(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> | |||||
/// <returns></returns> | |||||
public void SaveEntity(string keyValue, FundsApplyEntity 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.AssetManagementSystem | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 12:26 | |||||
/// 描 述:经费申报明细 | |||||
/// </summary> | |||||
public class FundsApplyDetailBLL : FundsApplyDetailIBLL | |||||
{ | |||||
private FundsApplyDetailService fundsApplyDetailService = new FundsApplyDetailService(); | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<FundsApplyDetailEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
return fundsApplyDetailService.GetPageList(pagination, queryJson); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取FundsApplyDetail表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public FundsApplyDetailEntity GetFundsApplyDetailEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return fundsApplyDetailService.GetFundsApplyDetailEntity(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 | |||||
{ | |||||
fundsApplyDetailService.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, FundsApplyDetailEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
fundsApplyDetailService.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.AssetManagementSystem | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 12:26 | |||||
/// 描 述:经费申报明细 | |||||
/// </summary> | |||||
public class FundsApplyDetailEntity | |||||
{ | |||||
#region 实体成员 | |||||
/// <summary> | |||||
/// Id | |||||
/// </summary> | |||||
[Column("ID")] | |||||
public string Id { get; set; } | |||||
/// <summary> | |||||
/// 主表Id | |||||
/// </summary> | |||||
[Column("APPLYID")] | |||||
public string ApplyId { get; set; } | |||||
/// <summary> | |||||
/// 项目内容 | |||||
/// </summary> | |||||
[Column("PROJECTCONTENT")] | |||||
public string ProjectContent { get; set; } | |||||
/// <summary> | |||||
/// 数量 | |||||
/// </summary> | |||||
[Column("NUMBER")] | |||||
public int? Number { get; set; } | |||||
/// <summary> | |||||
/// 单价 | |||||
/// </summary> | |||||
[Column("PRICE")] | |||||
public decimal? Price { get; set; } | |||||
/// <summary> | |||||
/// 金额(数量*单价) | |||||
/// </summary> | |||||
[Column("AMOUNT")] | |||||
public decimal? Amount { 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.AssetManagementSystem | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 12:26 | |||||
/// 描 述:经费申报明细 | |||||
/// </summary> | |||||
public interface FundsApplyDetailIBLL | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
IEnumerable<FundsApplyDetailEntity> GetPageList(Pagination pagination, string queryJson); | |||||
/// <summary> | |||||
/// 获取FundsApplyDetail表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
FundsApplyDetailEntity GetFundsApplyDetailEntity(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, FundsApplyDetailEntity entity); | |||||
#endregion | |||||
} | |||||
} |
@@ -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.AssetManagementSystem | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-07 12:26 | |||||
/// 描 述:经费申报明细 | |||||
/// </summary> | |||||
public class FundsApplyDetailService : RepositoryFactory | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">查询参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<FundsApplyDetailEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
var strSql = new StringBuilder(); | |||||
strSql.Append("SELECT "); | |||||
strSql.Append(@" | |||||
t.Id, | |||||
t.ProjectContent, | |||||
t.Number, | |||||
t.Price, | |||||
t.Amount | |||||
"); | |||||
strSql.Append(" FROM FundsApplyDetail t "); | |||||
strSql.Append(" WHERE 1=1 "); | |||||
var queryParam = queryJson.ToJObject(); | |||||
// 虚拟参数 | |||||
var dp = new DynamicParameters(new { }); | |||||
return this.BaseRepository("CollegeMIS").FindList<FundsApplyDetailEntity>(strSql.ToString(),dp, pagination); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取FundsApplyDetail表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public FundsApplyDetailEntity GetFundsApplyDetailEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<FundsApplyDetailEntity>(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<FundsApplyDetailEntity>(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, FundsApplyDetailEntity 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,208 @@ | |||||
using Learun.Util; | |||||
using System; | |||||
using System.Data; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-08 11:05 | |||||
/// 描 述:学生赛事奖励 | |||||
/// </summary> | |||||
public class StudentCompetitionBLL : StudentCompetitionIBLL | |||||
{ | |||||
private StudentCompetitionService studentCompetitionService = new StudentCompetitionService(); | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<StudentCompetitionEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
return studentCompetitionService.GetPageList(pagination, queryJson); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取StudentCompetition表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public StudentCompetitionEntity GetStudentCompetitionEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return studentCompetitionService.GetStudentCompetitionEntity(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
public IEnumerable<StudentCompetitionEntity> GetList(string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
return studentCompetitionService.GetList(queryJson); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取主表实体数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例ID</param> | |||||
/// <returns></returns> | |||||
public StudentCompetitionEntity GetEntityByProcessId(string processId) | |||||
{ | |||||
try | |||||
{ | |||||
return studentCompetitionService.GetEntityByProcessId(processId); | |||||
} | |||||
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 | |||||
{ | |||||
studentCompetitionService.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> | |||||
public void SaveEntity(string keyValue, StudentCompetitionEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
studentCompetitionService.SaveEntity(keyValue, entity); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
public void ChangeStatusByProcessId(string processId, int status) | |||||
{ | |||||
try | |||||
{ | |||||
studentCompetitionService.ChangeStatusByProcessId(processId, status); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
public void ChangeStatusById(string keyValue, int status, string processId) | |||||
{ | |||||
try | |||||
{ | |||||
studentCompetitionService.ChangeStatusById(keyValue, status, processId); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,138 @@ | |||||
using Learun.Util; | |||||
using System; | |||||
using System.ComponentModel.DataAnnotations.Schema; | |||||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-08 11:05 | |||||
/// 描 述:学生赛事奖励 | |||||
/// </summary> | |||||
public class StudentCompetitionEntity | |||||
{ | |||||
#region 实体成员 | |||||
/// <summary> | |||||
/// Id | |||||
/// </summary> | |||||
[Column("ID")] | |||||
public string Id { get; set; } | |||||
/// <summary> | |||||
/// StuNo | |||||
/// </summary> | |||||
[Column("STUNO")] | |||||
public string StuNo { get; set; } | |||||
/// <summary> | |||||
/// StuName | |||||
/// </summary> | |||||
[Column("STUNAME")] | |||||
public string StuName { get; set; } | |||||
/// <summary> | |||||
/// DeptNo | |||||
/// </summary> | |||||
[Column("DEPTNO")] | |||||
public string DeptNo { get; set; } | |||||
/// <summary> | |||||
/// MajorNo | |||||
/// </summary> | |||||
[Column("MAJORNO")] | |||||
public string MajorNo { get; set; } | |||||
/// <summary> | |||||
/// ClassNo | |||||
/// </summary> | |||||
[Column("CLASSNO")] | |||||
public string ClassNo { get; set; } | |||||
/// <summary> | |||||
/// 赛事名称 | |||||
/// </summary> | |||||
[Column("SCNAME")] | |||||
public string SCName { get; set; } | |||||
/// <summary> | |||||
/// 赛事级别 | |||||
/// </summary> | |||||
[Column("SCLEVEL")] | |||||
public string SCLevel { get; set; } | |||||
/// <summary> | |||||
/// 赛事获取时间 | |||||
/// </summary> | |||||
[Column("SCTIME")] | |||||
public DateTime? SCTime { get; set; } | |||||
/// <summary> | |||||
/// 赛事种类 | |||||
/// </summary> | |||||
[Column("SCTYPE")] | |||||
public string SCType { get; set; } | |||||
/// <summary> | |||||
/// 分值 | |||||
/// </summary> | |||||
[Column("SCORE")] | |||||
public decimal? Score { get; set; } | |||||
/// <summary> | |||||
/// 附件 | |||||
/// </summary> | |||||
[Column("URL")] | |||||
public string Url { get; set; } | |||||
/// <summary> | |||||
/// 颁发单位 | |||||
/// </summary> | |||||
[Column("UNIT")] | |||||
public string Unit { get; set; } | |||||
/// <summary> | |||||
/// CreateTime | |||||
/// </summary> | |||||
[Column("CREATETIME")] | |||||
public DateTime? CreateTime { get; set; } | |||||
/// <summary> | |||||
/// CreateUserId | |||||
/// </summary> | |||||
[Column("CREATEUSERID")] | |||||
public string CreateUserId { get; set; } | |||||
/// <summary> | |||||
/// processId | |||||
/// </summary> | |||||
[Column("PROCESSID")] | |||||
public string processId { get; set; } | |||||
/// <summary> | |||||
/// Status | |||||
/// </summary> | |||||
[Column("STATUS")] | |||||
public int? Status { get; set; } | |||||
/// <summary> | |||||
/// 学年 | |||||
/// </summary> | |||||
[Column("ACADEMICYEARNO")] | |||||
public string AcademicYearNo { get; set; } | |||||
/// <summary> | |||||
/// 学期 | |||||
/// </summary> | |||||
[Column("SEMESTER")] | |||||
public string Semester { get; set; } | |||||
#endregion | |||||
#region 扩展操作 | |||||
/// <summary> | |||||
/// 新增调用 | |||||
/// </summary> | |||||
public void Create() | |||||
{ | |||||
this.Id = Guid.NewGuid().ToString(); | |||||
this.CreateTime = DateTime.Now; | |||||
this.CreateUserId = LoginUserInfo.Get().userId; | |||||
this.Status = 0; | |||||
} | |||||
/// <summary> | |||||
/// 编辑调用 | |||||
/// </summary> | |||||
/// <param name="keyValue"></param> | |||||
public void Modify(string keyValue) | |||||
{ | |||||
this.Id = keyValue; | |||||
} | |||||
#endregion | |||||
#region 扩展字段 | |||||
#endregion | |||||
} | |||||
} | |||||
@@ -0,0 +1,63 @@ | |||||
using Learun.Util; | |||||
using System.Data; | |||||
using System.Collections.Generic; | |||||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-08 11:05 | |||||
/// 描 述:学生赛事奖励 | |||||
/// </summary> | |||||
public interface StudentCompetitionIBLL | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
IEnumerable<StudentCompetitionEntity> GetPageList(Pagination pagination, string queryJson); | |||||
/// <summary> | |||||
/// 获取StudentCompetition表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
StudentCompetitionEntity GetStudentCompetitionEntity(string keyValue); | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
IEnumerable<StudentCompetitionEntity> GetList(string queryJson); | |||||
/// <summary> | |||||
/// 获取主表实体数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例ID</param> | |||||
/// <returns></returns> | |||||
StudentCompetitionEntity GetEntityByProcessId(string processId); | |||||
#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, StudentCompetitionEntity entity); | |||||
void ChangeStatusByProcessId(string processId, int status); | |||||
void ChangeStatusById(string keyValue, int status,string processId); | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,308 @@ | |||||
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.EducationalAdministration | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2022-11-08 11:05 | |||||
/// 描 述:学生赛事奖励 | |||||
/// </summary> | |||||
public class StudentCompetitionService : RepositoryFactory | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<StudentCompetitionEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
var strSql = new StringBuilder(); | |||||
strSql.Append("SELECT "); | |||||
strSql.Append(@" | |||||
t.* | |||||
"); | |||||
strSql.Append(" FROM StudentCompetition t "); | |||||
strSql.Append(" WHERE 1=1 "); | |||||
var queryParam = queryJson.ToJObject(); | |||||
// 虚拟参数 | |||||
var dp = new DynamicParameters(new { }); | |||||
if (!queryParam["StuNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("StuNo", "%" + queryParam["StuNo"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.StuNo Like @StuNo "); | |||||
} | |||||
if (!queryParam["StuName"].IsEmpty()) | |||||
{ | |||||
dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.StuName Like @StuName "); | |||||
} | |||||
if (!queryParam["DeptNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.DeptNo = @DeptNo "); | |||||
} | |||||
if (!queryParam["MajorNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("MajorNo", queryParam["MajorNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.MajorNo = @MajorNo "); | |||||
} | |||||
if (!queryParam["ClassNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("ClassNo", queryParam["ClassNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.ClassNo = @ClassNo "); | |||||
} | |||||
if (!queryParam["SCName"].IsEmpty()) | |||||
{ | |||||
dp.Add("SCName", "%" + queryParam["SCName"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.SCName Like @SCName "); | |||||
} | |||||
if (!queryParam["SCLevel"].IsEmpty()) | |||||
{ | |||||
dp.Add("SCLevel",queryParam["SCLevel"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.SCLevel = @SCLevel "); | |||||
} | |||||
if (!queryParam["SCTime"].IsEmpty()) | |||||
{ | |||||
dp.Add("SCTime", queryParam["SCTime"].ToDate(), DbType.DateTime); | |||||
strSql.Append(" AND t.SCTime = @SCTime "); | |||||
} | |||||
if (!queryParam["SCType"].IsEmpty()) | |||||
{ | |||||
dp.Add("SCType", "%" + queryParam["SCType"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.SCType Like @SCType "); | |||||
} | |||||
if (!queryParam["Unit"].IsEmpty()) | |||||
{ | |||||
dp.Add("Unit", "%" + queryParam["Unit"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.Unit Like @Unit "); | |||||
} | |||||
return this.BaseRepository("CollegeMIS").FindList<StudentCompetitionEntity>(strSql.ToString(), dp, pagination); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取StudentCompetition表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public StudentCompetitionEntity GetStudentCompetitionEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<StudentCompetitionEntity>(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取主表实体数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例ID</param> | |||||
/// <returns></returns> | |||||
public StudentCompetitionEntity GetEntityByProcessId(string processId) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<StudentCompetitionEntity>(t => t.processId == processId); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
public IEnumerable<StudentCompetitionEntity> GetList(string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
var strSql = new StringBuilder(); | |||||
strSql.Append("SELECT t.* "); | |||||
strSql.Append(" FROM StudentCompetition t "); | |||||
strSql.Append(" WHERE 1=1 and t.Status=2 "); | |||||
var queryParam = queryJson.ToJObject(); | |||||
// 虚拟参数 | |||||
var dp = new DynamicParameters(new { }); | |||||
if (!queryParam["StuNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.StuNo = @StuNo "); | |||||
} | |||||
if (!queryParam["StuName"].IsEmpty()) | |||||
{ | |||||
dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.StuName Like @StuName "); | |||||
} | |||||
if (!queryParam["AcademicYearNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("AcademicYearNo", queryParam["AcademicYearNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.AcademicYearNo = @AcademicYearNo "); | |||||
} | |||||
if (!queryParam["Semester"].IsEmpty()) | |||||
{ | |||||
dp.Add("Semester", queryParam["Semester"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.Semester = @Semester "); | |||||
} | |||||
return this.BaseRepository("CollegeMIS").FindList<StudentCompetitionEntity>(strSql.ToString(), dp); | |||||
} | |||||
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<StudentCompetitionEntity>(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> | |||||
/// <returns></returns> | |||||
public void SaveEntity(string keyValue, StudentCompetitionEntity 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); | |||||
} | |||||
} | |||||
} | |||||
public void ChangeStatusByProcessId(string processId, int status) | |||||
{ | |||||
try | |||||
{ | |||||
this.BaseRepository("CollegeMIS").ExecuteBySql($"update StudentCompetition set Status='{status}' where processId='{processId}'"); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
public void ChangeStatusById(string keyValue, int status, string processId) | |||||
{ | |||||
try | |||||
{ | |||||
this.BaseRepository("CollegeMIS").ExecuteBySql($"update StudentCompetition set Status='{status}',processId='{processId}' where Id='{keyValue}'"); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -265,6 +265,10 @@ | |||||
<Compile Include="EducationalAdministration\ScoreStatistics\ScoreStatisticsIBLL.cs" /> | <Compile Include="EducationalAdministration\ScoreStatistics\ScoreStatisticsIBLL.cs" /> | ||||
<Compile Include="EducationalAdministration\ScoreStatistics\ScoreStatisticsService.cs" /> | <Compile Include="EducationalAdministration\ScoreStatistics\ScoreStatisticsService.cs" /> | ||||
<Compile Include="EducationalAdministration\SignUpHelper.cs" /> | <Compile Include="EducationalAdministration\SignUpHelper.cs" /> | ||||
<Compile Include="EducationalAdministration\StudentCompetition\StudentCompetitionBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\StudentCompetition\StudentCompetitionEntity.cs" /> | |||||
<Compile Include="EducationalAdministration\StudentCompetition\StudentCompetitionIBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\StudentCompetition\StudentCompetitionService.cs" /> | |||||
<Compile Include="EducationalAdministration\StudentHonor\StudentHonorBLL.cs" /> | <Compile Include="EducationalAdministration\StudentHonor\StudentHonorBLL.cs" /> | ||||
<Compile Include="EducationalAdministration\StudentHonor\StudentHonorEntity.cs" /> | <Compile Include="EducationalAdministration\StudentHonor\StudentHonorEntity.cs" /> | ||||
<Compile Include="EducationalAdministration\StudentHonor\StudentHonorIBLL.cs" /> | <Compile Include="EducationalAdministration\StudentHonor\StudentHonorIBLL.cs" /> | ||||
@@ -1979,6 +1983,14 @@ | |||||
<Compile Include="EducationalAdministration\SportEquipment\SportEquipmentService.cs" /> | <Compile Include="EducationalAdministration\SportEquipment\SportEquipmentService.cs" /> | ||||
<Compile Include="EducationalAdministration\SportEquipment\SportEquipmentBLL.cs" /> | <Compile Include="EducationalAdministration\SportEquipment\SportEquipmentBLL.cs" /> | ||||
<Compile Include="EducationalAdministration\SportEquipment\SportEquipmentIBLL.cs" /> | <Compile Include="EducationalAdministration\SportEquipment\SportEquipmentIBLL.cs" /> | ||||
<Compile Include="AssetManagementSystem\FundsApplyDetail\FundsApplyDetailEntity.cs" /> | |||||
<Compile Include="AssetManagementSystem\FundsApplyDetail\FundsApplyDetailService.cs" /> | |||||
<Compile Include="AssetManagementSystem\FundsApplyDetail\FundsApplyDetailBLL.cs" /> | |||||
<Compile Include="AssetManagementSystem\FundsApplyDetail\FundsApplyDetailIBLL.cs" /> | |||||
<Compile Include="AssetManagementSystem\FundsApply\FundsApplyEntity.cs" /> | |||||
<Compile Include="AssetManagementSystem\FundsApply\FundsApplyService.cs" /> | |||||
<Compile Include="AssetManagementSystem\FundsApply\FundsApplyBLL.cs" /> | |||||
<Compile Include="AssetManagementSystem\FundsApply\FundsApplyIBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\SportEquipmentLend\SportEquipmentLendEntity.cs" /> | <Compile Include="EducationalAdministration\SportEquipmentLend\SportEquipmentLendEntity.cs" /> | ||||
<Compile Include="EducationalAdministration\SportEquipmentLend\SportEquipmentLendService.cs" /> | <Compile Include="EducationalAdministration\SportEquipmentLend\SportEquipmentLendService.cs" /> | ||||
<Compile Include="EducationalAdministration\SportEquipmentLend\SportEquipmentLendBLL.cs" /> | <Compile Include="EducationalAdministration\SportEquipmentLend\SportEquipmentLendBLL.cs" /> | ||||
@@ -97,6 +97,7 @@ | |||||
<Compile Include="NodeMethod\ArrangeLessonTermAttemperMethod.cs" /> | <Compile Include="NodeMethod\ArrangeLessonTermAttemperMethod.cs" /> | ||||
<Compile Include="NodeMethod\ADR_AddApplyMethod.cs" /> | <Compile Include="NodeMethod\ADR_AddApplyMethod.cs" /> | ||||
<Compile Include="NodeMethod\Ass_AcceptanceMethod.cs" /> | <Compile Include="NodeMethod\Ass_AcceptanceMethod.cs" /> | ||||
<Compile Include="NodeMethod\StudentCompetitionMethod.cs" /> | |||||
<Compile Include="NodeMethod\StudentHonorMethod.cs" /> | <Compile Include="NodeMethod\StudentHonorMethod.cs" /> | ||||
<Compile Include="NodeMethod\StudentCertificateMethod.cs" /> | <Compile Include="NodeMethod\StudentCertificateMethod.cs" /> | ||||
<Compile Include="NodeMethod\FD_PayManageMethod.cs" /> | <Compile Include="NodeMethod\FD_PayManageMethod.cs" /> | ||||
@@ -0,0 +1,27 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Linq; | |||||
using System.Text; | |||||
using System.Threading.Tasks; | |||||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||||
namespace Learun.Application.WorkFlow | |||||
{ | |||||
public class StudentCompetitionMethod : IWorkFlowMethod | |||||
{ | |||||
StudentCompetitionIBLL asset = new StudentCompetitionBLL(); | |||||
public void Execute(WfMethodParameter parameter) | |||||
{ | |||||
if (parameter.code == "agree") | |||||
{ | |||||
asset.ChangeStatusByProcessId(parameter.processId, 2); | |||||
} | |||||
else | |||||
{ | |||||
asset.ChangeStatusByProcessId(parameter.processId, 0); | |||||
} | |||||
} | |||||
} | |||||
} |