Browse Source

搭建资产变动申请

新疆体育高职分支
ndbs 1 year ago
parent
commit
d659bf2cd5
16 changed files with 1366 additions and 0 deletions
  1. +143
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_FixAssetsApplyController.cs
  2. +47
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssetsApply/Form.cshtml
  3. +128
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssetsApply/Form.js
  4. +63
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssetsApply/Index.cshtml
  5. +273
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssetsApply/Index.js
  6. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  7. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config
  8. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/AssetManagementSystem/Ass_FixAssetsApplyMap.cs
  9. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  10. +186
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_FixAssetsApply/Ass_FixAssetsApplyBLL.cs
  11. +140
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_FixAssetsApply/Ass_FixAssetsApplyEntity.cs
  12. +63
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_FixAssetsApply/Ass_FixAssetsApplyIBLL.cs
  13. +253
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_FixAssetsApply/Ass_FixAssetsApplyService.cs
  14. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
  15. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj
  16. +28
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/Ass_FixAssetsApplyMethod.cs

+ 143
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_FixAssetsApplyController.cs View File

@@ -0,0 +1,143 @@
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;
using Learun.Application.Base.SystemModule;

namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-05 14:52
/// 描 述:Ass_FixAssetsApply
/// </summary>
public class Ass_FixAssetsApplyController : MvcControllerBase
{
private Ass_FixAssetsApplyIBLL ass_FixAssetsApplyIBLL = new Ass_FixAssetsApplyBLL();

#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 = ass_FixAssetsApplyIBLL.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 Ass_FixAssetsApplyData = ass_FixAssetsApplyIBLL.GetAss_FixAssetsApplyEntity(keyValue);
var jsonData = new
{
Ass_FixAssetsApply = Ass_FixAssetsApplyData,
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="processId">流程实例主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormDataByProcessId(string processId)
{
var Ass_FixAssetsApplyData = ass_FixAssetsApplyIBLL.GetEntityByProcessId(processId);
var jsonData = new
{
Ass_FixAssetsApply = Ass_FixAssetsApplyData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

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

}
}

+ 47
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssetsApply/Form.cshtml View File

@@ -0,0 +1,47 @@
@{
ViewBag.Title = "Ass_FixAssetsApply";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="Ass_FixAssetsApply" >
<div class="lr-form-item-title">申请人</div>
<input id="CreateUser" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_FixAssetsApply" >
<div class="lr-form-item-title">联系方式</div>
<input id="ContactWay" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_FixAssetsApply" >
<div class="lr-form-item-title">接收人<font face="宋体">*</font></div>
<div id="UsePeople" isvalid="yes" checkexpession="NotNull" ></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_FixAssetsApply" >
<div class="lr-form-item-title">联系方式<font face="宋体">*</font></div>
<input id="ContactWayNew" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_FixAssetsApply" >
<div class="lr-form-item-title">卡片编号<font face="宋体">*</font></div>
<input id="CardNumber" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_FixAssetsApply" >
<div class="lr-form-item-title">资产名称<font face="宋体">*</font></div>
<input id="FAName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_FixAssetsApply" >
<div class="lr-form-item-title">现存放地点<font face="宋体">*</font></div>
<div id="StorageId" isvalid="yes" checkexpession="NotNull" ></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_FixAssetsApply" >
<div class="lr-form-item-title">存放地点新<font face="宋体">*</font></div>
<div id="StorageIdNew" isvalid="yes" checkexpession="NotNull" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="Ass_FixAssetsApply" >
<div class="lr-form-item-title">申请事由<font face="宋体">*</font></div>
<textarea id="ApplyReasons" class="form-control" style="height:100px;" isvalid="yes" checkexpession="NotNull" ></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="Ass_FixAssetsApply" >
<div class="lr-form-item-title">附件说明</div>
<div id="Files" ></div>
</div>
</div>
@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/Ass_FixAssetsApply/Form.js")

+ 128
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssetsApply/Form.js View File

@@ -0,0 +1,128 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2023-05-05 14:52
* 描 述:Ass_FixAssetsApply
*/
var acceptClick;
var keyValue = request('keyValue');
// 设置权限
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 () {
$('#CreateUser')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
$('#CreateUser').val(learun.clientdata.get(['userinfo']).realName);
$('#ContactWay').val(learun.clientdata.get(['userinfo']).mobile);
$('#UsePeople').lrGirdSelect({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=FormulaMain',
selectWord: 'name',
value: 'id',
text: 'name',
headData:
[
{ label: "公式", name: "result", width: 300, align: "left" },
{ label: "公式名称", name: "name", width: 300, align: "left" }
],
select: function (item) {
//赋值
$("#StuName").val(item.stuname);
$("#StuId").val(item.stuno);
$("#ClassNo").val(item.classno);
}
});
$('#UsePeople').lrDataItemSelect({ code: '' });
//$('#StorageId').lrDataItemSelect({ code: '' });
//$('#StorageIdNew').lrDataItemSelect({ code: '' });
$('#Files').lrUploader();
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_FixAssetsApply/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 + '/AssetManagementSystem/Ass_FixAssetsApply/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 == 'Ass_FixAssetsApply' && 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;
}
var postData = {
strEntity: JSON.stringify(formData)
};
$.lrSaveForm(top.$.rootUrl + '/AssetManagementSystem/Ass_FixAssetsApply/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack(res, i);
}
});
};
page.init();
}

+ 63
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssetsApply/Index.cshtml View File

@@ -0,0 +1,63 @@
@{
ViewBag.Title = "Ass_FixAssetsApply";
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="datesearch"></div>
</div>
<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="CreateUser"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">接收人</div>
<div id="UsePeople"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">存放地点新</div>
<div id="StorageIdNew"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">现存放地点</div>
<div id="StorageId"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">卡片编号</div>
<input id="CardNumber" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">资产名称</div>
<input id="FAName" 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>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/Ass_FixAssetsApply/Index.js")

+ 273
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_FixAssetsApply/Index.js View File

@@ -0,0 +1,273 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2023-05-05 14:52
* 描 述:Ass_FixAssetsApply
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var startTime;
var endTime;
var processId = '';
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
// 时间搜索框
$('#datesearch').lrdate({
dfdata: [
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
],
// 月
mShow: false,
premShow: false,
// 季度
jShow: false,
prejShow: false,
// 年
ysShow: false,
yxShow: false,
preyShow: false,
yShow: false,
// 默认
dfvalue: '1',
selectfn: function (begin, end) {
startTime = begin;
endTime = end;
page.search();
}
});
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#CreateUser').lrUserSelect(0);
$('#UsePeople').lrDataItemSelect({ code: '' });
$('#StorageIdNew').lrDataItemSelect({ code: '' });
$('#StorageId').lrDataItemSelect({ code: '' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_FixAssetsApply/Form',
width: 600,
height: 400,
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: 'form',
title: '编辑',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_FixAssetsApply/Form?keyValue=' + keyValue,
width: 600,
height: 400,
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/Ass_FixAssetsApply/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
//提交
$('#lr_submit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var FlowNo = $('#gridtable').jfGridValue('FlowNo');
if (FlowNo != 0) {
learun.alert.warning("当前项目已提交,请耐心等待审批!");
return;
}
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
processId = learun.newGuid();
learun.postForm(top.$.rootUrl + '/EducationalAdministration/ModifyStatus/ModifyStatus', { keyValue: keyValue, pastatus: 1, processId: processId }, function (res) {
refreshGirdData(res, {});
});
}
});
}
});
//  查看
$('#lr_view').on('click', function () {
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/AssetManagementSystem/Ass_FixAssetsApply/GetPageList',
headData: [
{
label: "申请人", name: "CreateUser", 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: "ContactWay", width: 100, align: "left" },
{
label: "接收人", name: "UsePeople", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: '',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "联系方式", name: "ContactWayNew", width: 100, align: "left" },
{ label: "卡片编号", name: "CardNumber", width: 200, align: "left" },
{ label: "资产名称", name: "FAName", width: 200, align: "left" },
{
label: "现存放地点", name: "StorageId", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: '',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "存放地点新", name: "StorageIdNew", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: '',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "申请事由", name: "ApplyReasons", width: 240, align: "left" },
{
label: "附件说明", name: "Files", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
$.ajax({
url: '/LR_SystemModule/Annexes/GetAnnexesFileList',
data: { folderId: value },
type: 'GET',
dataType: "json",
async: false,
cache: false,
success: function (res) {
var bb = '';
$.each(res.data, function (i, item) {
bb += item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + ','
})
//$.each(res.data, function(i, item) {
// bb += '<span onclick="downLoad(\'' +
// item.F_Id +
// '\')" style="color:blue">' +
// item.F_FileName.substring(0,item.F_FileName.indexOf(".")) +
// '</span>,&nbsp;&nbsp;&nbsp;';
//})
callback(bb);
}
});
}
},
{
label: "审批状态", name: "Status", width: 100, align: "center",
formatter: function (cellvalue, row) {
if (cellvalue == 0) {
return '<span class=\"label label-warning\">草稿</span>';
} if (cellvalue == 1) {
return '<span class=\"label label-warning\">审批中</span>';
} else if (cellvalue == 2) {
return '<span class=\"label label-success\">审批通过</span>';
}
}
}
],
mainId: 'ID',
isPage: true
});
},
search: function (param) {
param = param || {};
param.StartTime = startTime;
param.EndTime = endTime;
$('#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();
}
function downLoad(fileId, fileTwo) {
if (fileTwo) {

top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () {

});
}
top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' });
}

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj View File

@@ -883,6 +883,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\StuFellowshipController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\SchoolLevelScholarshipController.cs" />
<Compile Include="Areas\AssetManagementSystem\Controllers\Ass_FixAssetsController.cs" />
<Compile Include="Areas\AssetManagementSystem\Controllers\Ass_FixAssetsApplyController.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" />
@@ -6756,6 +6757,10 @@
<Content Include="Areas\AssetManagementSystem\Views\Ass_FixAssets\Index.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_FixAssets\Form.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_FixAssets\Form.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_FixAssetsApply\Index.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_FixAssetsApply\Index.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_FixAssetsApply\Form.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_FixAssetsApply\Form.js" />
</ItemGroup>
<ItemGroup>
<Folder Include="Areas\EducationalAdministration\Views\HomeStatistics\" />


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config View File

@@ -38,6 +38,7 @@
<typeAlias alias="StuLeaveManagementMethod" type="Learun.Application.WorkFlow.StuLeaveManagementMethod,Learun.Application.WorkFlow" />
<typeAlias alias="StuCancelLeaveManageMethod" type="Learun.Application.WorkFlow.StuCancelLeaveManageMethod,Learun.Application.WorkFlow" />
<typeAlias alias="Acc_DormitoryChangeMethod" type="Learun.Application.WorkFlow.Acc_DormitoryChangeMethod,Learun.Application.WorkFlow" />
<typeAlias alias="Ass_FixAssetsApplyMethod" type="Learun.Application.WorkFlow.Ass_FixAssetsApplyMethod,Learun.Application.WorkFlow" />


<!--任务调度器-->
@@ -87,6 +88,7 @@
<type type="IWorkFlowMethod" mapTo="StuLeaveManagementMethod" name="StuLeaveManagementMethod"></type>
<type type="IWorkFlowMethod" mapTo="StuCancelLeaveManageMethod" name="StuCancelLeaveManageMethod"></type>
<type type="IWorkFlowMethod" mapTo="Acc_DormitoryChangeMethod" name="Acc_DormitoryChangeMethod"></type>
<type type="IWorkFlowMethod" mapTo="Ass_FixAssetsApplyMethod" name="Ass_FixAssetsApplyMethod"></type>

</container>



+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/AssetManagementSystem/Ass_FixAssetsApplyMap.cs View File

@@ -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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-05 14:52
/// 描 述:Ass_FixAssetsApply
/// </summary>
public class Ass_FixAssetsApplyMap : EntityTypeConfiguration<Ass_FixAssetsApplyEntity>
{
public Ass_FixAssetsApplyMap()
{
#region 表、主键
//表
this.ToTable("ASS_FIXASSETSAPPLY");
//主键
this.HasKey(t => t.ID);
#endregion

#region 配置关系
#endregion
}
}
}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj View File

@@ -614,6 +614,7 @@
<Compile Include="EducationalAdministration\StuFellowshipMap.cs" />
<Compile Include="EducationalAdministration\SchoolLevelScholarshipMap.cs" />
<Compile Include="AssetManagementSystem\Ass_FixAssetsMap.cs" />
<Compile Include="AssetManagementSystem\Ass_FixAssetsApplyMap.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 186
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_FixAssetsApply/Ass_FixAssetsApplyBLL.cs View File

@@ -0,0 +1,186 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-05 14:52
/// 描 述:Ass_FixAssetsApply
/// </summary>
public class Ass_FixAssetsApplyBLL : Ass_FixAssetsApplyIBLL
{
private Ass_FixAssetsApplyService ass_FixAssetsApplyService = new Ass_FixAssetsApplyService();

#region 获取数据

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

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

/// <summary>
/// 获取主表实体数据
/// </summary>
/// <param name="processId">流程实例ID</param>
/// <returns></returns>
public Ass_FixAssetsApplyEntity GetEntityByProcessId(string processId)
{
try
{
return ass_FixAssetsApplyService.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
{
ass_FixAssetsApplyService.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, Ass_FixAssetsApplyEntity entity)
{
try
{
ass_FixAssetsApplyService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

#region MyRegion
public void ModifyStatusByProcessId(int status, string processId)
{
try
{
ass_FixAssetsApplyService.ModifyStatusByProcessId(status, processId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public void ModifyStatus(string keyValue, int pastatus, string processId)
{
try
{
ass_FixAssetsApplyService.ModifyStatus(keyValue, pastatus, processId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
}
}

+ 140
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_FixAssetsApply/Ass_FixAssetsApplyEntity.cs View File

@@ -0,0 +1,140 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-05 14:52
/// 描 述:Ass_FixAssetsApply
/// </summary>
public class Ass_FixAssetsApplyEntity
{
#region 实体成员
/// <summary>
/// ID
/// </summary>
[Column("ID")]
public string ID { get; set; }
/// <summary>
/// 资产编号
/// </summary>
[Column("FACODE")]
public string FACode { get; set; }
/// <summary>
/// 资产名称
/// </summary>
[Column("FANAME")]
public string FAName { get; set; }
/// <summary>
/// 存放地点
/// </summary>
[Column("STORAGEID")]
public string StorageId { get; set; }
/// <summary>
/// 现存放地点
/// </summary>
[Column("STORAGEIDNEW")]
public string StorageIdNew { get; set; }
/// <summary>
/// 接收人
/// </summary>
[Column("RECIPIENTS")]
public string Recipients { get; set; }
/// <summary>
/// ContactWay
/// </summary>
[Column("CONTACTWAY")]
public string ContactWay { get; set; }
/// <summary>
/// 联系方式
/// </summary>
[Column("CONTACTWAYNEW")]
public string ContactWayNew { get; set; }
/// <summary>
/// 卡片编号
/// </summary>
[Column("CARDNUMBER")]
public string CardNumber { get; set; }
/// <summary>
/// 资产名称
/// </summary>
[Column("NAME")]
public string Name { get; set; }
/// <summary>
/// 使用人
/// </summary>
[Column("USEPEOPLE")]
public string UsePeople { get; set; }
/// <summary>
/// 申请事由
/// </summary>
[Column("APPLYREASONS")]
public string ApplyReasons { get; set; }
/// <summary>
/// 附件说明
/// </summary>
[Column("FILES")]
public string Files { get; set; }
/// <summary>
/// CreateTime
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// CreateUser
/// </summary>
[Column("CREATEUSER")]
public string CreateUser { get; set; }
/// <summary>
/// UpdateTime
/// </summary>
[Column("UPDATETIME")]
public DateTime? UpdateTime { get; set; }
/// <summary>
/// UpdateUser
/// </summary>
[Column("UPDATEUSER")]
public string UpdateUser { get; set; }
/// <summary>
/// 0草稿,1部门审批2接收人查看3资产负责人
/// </summary>
[Column("STATUS")]
public int? Status { get; set; }
/// <summary>
/// 流程主键
/// </summary>
[Column("PROCESSID")]
public string ProcessId { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.ID = Guid.NewGuid().ToString();
this.CreateTime = DateTime.Now;
this.Status = 0;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
var user = LoginUserInfo.Get();
this.ID = keyValue;
this.UpdateTime = DateTime.Now;
this.UpdateUser = user.userId;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 63
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_FixAssetsApply/Ass_FixAssetsApplyIBLL.cs View File

@@ -0,0 +1,63 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-05 14:52
/// 描 述:Ass_FixAssetsApply
/// </summary>
public interface Ass_FixAssetsApplyIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<Ass_FixAssetsApplyEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取Ass_FixAssetsApply表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
Ass_FixAssetsApplyEntity GetAss_FixAssetsApplyEntity(string keyValue);
/// <summary>
/// 获取主表实体数据
/// </summary>
/// <param name="processId">流程实例ID</param>
/// <returns></returns>
Ass_FixAssetsApplyEntity 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, Ass_FixAssetsApplyEntity entity);
#endregion

#region MyRegion
void ModifyStatus(string keyValue, int pastatus, string processId);

void ModifyStatusByProcessId(int status, string processId);

#endregion


}
}

+ 253
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_FixAssetsApply/Ass_FixAssetsApplyService.cs View File

@@ -0,0 +1,253 @@
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 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-05 14:52
/// 描 述:Ass_FixAssetsApply
/// </summary>
public class Ass_FixAssetsApplyService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<Ass_FixAssetsApplyEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@" t.* ");
strSql.Append(" FROM Ass_FixAssetsApply t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty())
{
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime);
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime);
strSql.Append(" AND ( t.CreateTime >= @startTime AND t.CreateTime <= @endTime ) ");
}
if (!queryParam["CreateUser"].IsEmpty())
{
dp.Add("CreateUser", queryParam["CreateUser"].ToString(), DbType.String);
strSql.Append(" AND t.CreateUser = @CreateUser ");
}
if (!queryParam["UsePeople"].IsEmpty())
{
dp.Add("UsePeople", queryParam["UsePeople"].ToString(), DbType.String);
strSql.Append(" AND t.UsePeople = @UsePeople ");
}
if (!queryParam["StorageIdNew"].IsEmpty())
{
dp.Add("StorageIdNew", queryParam["StorageIdNew"].ToString(), DbType.String);
strSql.Append(" AND t.StorageIdNew = @StorageIdNew ");
}
if (!queryParam["StorageId"].IsEmpty())
{
dp.Add("StorageId", queryParam["StorageId"].ToString(), DbType.String);
strSql.Append(" AND t.StorageId = @StorageId ");
}
if (!queryParam["CardNumber"].IsEmpty())
{
dp.Add("CardNumber", "%" + queryParam["CardNumber"].ToString() + "%", DbType.String);
strSql.Append(" AND t.CardNumber Like @CardNumber ");
}
if (!queryParam["FAName"].IsEmpty())
{
dp.Add("FAName", "%" + queryParam["FAName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.FAName Like @FAName ");
}
return this.BaseRepository("CollegeMIS").FindList<Ass_FixAssetsApplyEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取Ass_FixAssetsApply表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public Ass_FixAssetsApplyEntity GetAss_FixAssetsApplyEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<Ass_FixAssetsApplyEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取主表实体数据
/// </summary>
/// <param name="processId">流程实例ID</param>
/// <returns></returns>
public Ass_FixAssetsApplyEntity GetEntityByProcessId(string processId)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<Ass_FixAssetsApplyEntity>(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<Ass_FixAssetsApplyEntity>(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, Ass_FixAssetsApplyEntity 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

#region

public void ModifyStatus(string keyValue, int pastatus, string processId)
{
try
{
var entity = this.BaseRepository().FindEntity<Ass_FixAssetsApplyEntity>(a => a.ID == keyValue);
entity.ProcessId = processId;
entity.Status = pastatus;
this.BaseRepository().Update(entity);
}
catch (Exception e)
{
if (e is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(e);
}
}
}
/// <summary>
/// 审批后修改状态
/// </summary>
/// <param name="pastatus"></param>
/// <param name="processId"></param>
public void ModifyStatusByProcessId(int pastatus, string processId)
{
try
{
var entity = this.BaseRepository().FindEntity<Ass_FixAssetsApplyEntity>(a => a.ProcessId == processId);
entity.Status = pastatus;
this.BaseRepository().Update(entity);
}
catch (Exception e)
{
if (e is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(e);
}
}

}
#endregion
}
}

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj View File

@@ -1879,6 +1879,10 @@
<Compile Include="AssetManagementSystem\Ass_FixAssets\Ass_FixAssetsService.cs" />
<Compile Include="AssetManagementSystem\Ass_FixAssets\Ass_FixAssetsBLL.cs" />
<Compile Include="AssetManagementSystem\Ass_FixAssets\Ass_FixAssetsIBLL.cs" />
<Compile Include="AssetManagementSystem\Ass_FixAssetsApply\Ass_FixAssetsApplyEntity.cs" />
<Compile Include="AssetManagementSystem\Ass_FixAssetsApply\Ass_FixAssetsApplyService.cs" />
<Compile Include="AssetManagementSystem\Ass_FixAssetsApply\Ass_FixAssetsApplyBLL.cs" />
<Compile Include="AssetManagementSystem\Ass_FixAssetsApply\Ass_FixAssetsApplyIBLL.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj View File

@@ -95,6 +95,7 @@
<Compile Include="Delegate\NWFDelegateRuleEntity.cs" />
<Compile Include="Delegate\NWFDelegateService.cs" />
<Compile Include="NodeMethod\Acc_DormitoryChangeMethod.cs" />
<Compile Include="NodeMethod\Ass_FixAssetsApplyMethod.cs" />
<Compile Include="NodeMethod\DispatchMethod.cs" />
<Compile Include="NodeMethod\MeetingManagementApplyMethod.cs" />
<Compile Include="NodeMethod\StuCancelDisciplineManageMethod.cs" />


+ 28
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/Ass_FixAssetsApplyMethod.cs View File

@@ -0,0 +1,28 @@
using Learun.Application.TwoDevelopment.AssetManagementSystem;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Learun.Application.WorkFlow
{
public class Ass_FixAssetsApplyMethod : IWorkFlowMethod
{
Ass_FixAssetsApplyIBLL ass_FixAssetsApplyIBLL = new Ass_FixAssetsApplyBLL();
public void Execute(WfMethodParameter parameter)
{
if (parameter.code == "agree")
{
ass_FixAssetsApplyIBLL.ModifyStatusByProcessId(2, parameter.processId);
}
else
{
ass_FixAssetsApplyIBLL.ModifyStatusByProcessId(0, parameter.processId);
}
}
}
}

Loading…
Cancel
Save