@@ -42,8 +42,8 @@ | |||||
</div> | </div> | ||||
<div class="lr-form-row " data-table="StuInfoBasic"> | <div class="lr-form-row " data-table="StuInfoBasic"> | ||||
<label>开户行位置</label> | |||||
<input id="BankLocation" type="text" /> | |||||
<label>开户网点</label> | |||||
<input id="BankLocation" type="text" placeholder="例如中国建设银行西昌西客站支行" /> | |||||
</div> | </div> | ||||
<div class="lr-form-row " data-table="StuInfoBasic"> | <div class="lr-form-row " data-table="StuInfoBasic"> | ||||
@@ -176,6 +176,7 @@ | |||||
// type: 'dataItem', | // type: 'dataItem', | ||||
// }); | // }); | ||||
// | |||||
$page.find('#DepositBank').lrpickerex({ | $page.find('#DepositBank').lrpickerex({ | ||||
code: 'DepositBank', | code: 'DepositBank', | ||||
type: 'dataItem' | type: 'dataItem' | ||||
@@ -92,8 +92,8 @@ | |||||
<input id="BankCard" type="text" placeholder="请填写银行卡号"/> | <input id="BankCard" type="text" placeholder="请填写银行卡号"/> | ||||
</div> | </div> | ||||
<div class="welInput "> | <div class="welInput "> | ||||
<span>开户行位置</span> | |||||
<input id="BankLocation" type="text" placeholder="请填写开户行位置" /> | |||||
<span>开户网点</span> | |||||
<input id="BankLocation" type="text" placeholder="例如中国建设银行西昌西客站支行" /> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="welLine"></div> | <div class="welLine"></div> | ||||
@@ -143,6 +143,7 @@ | |||||
} | } | ||||
$("#Birthday").html($("#Birthday").text().substr(0, $("#Birthday").text() | $("#Birthday").html($("#Birthday").text().substr(0, $("#Birthday").text() | ||||
.indexOf(' '))); | .indexOf(' '))); | ||||
//编辑回显 | |||||
$("#DepositBank").lrpickerSet(data.StuInfoFreshEntity.DepositBank); | $("#DepositBank").lrpickerSet(data.StuInfoFreshEntity.DepositBank); | ||||
//头像 | //头像 | ||||
$('#PhotoImg').attr('src', config.web + data['Url']); | $('#PhotoImg').attr('src', config.web + data['Url']); | ||||
@@ -241,7 +242,6 @@ | |||||
StuInfoFreshFamilyEntities: family(), | StuInfoFreshFamilyEntities: family(), | ||||
StuInfoFreshEmergePeopleEntities: emergePeople() | StuInfoFreshEmergePeopleEntities: emergePeople() | ||||
}; | }; | ||||
console.log(postdata) | |||||
// return | // return | ||||
learun.layer.loading(true, '正在提交数据'); | learun.layer.loading(true, '正在提交数据'); | ||||
learun.httpget(config.webapi + "StuInfoFresh/saveStuInfoFresh", postdata, ( | learun.httpget(config.webapi + "StuInfoFresh/saveStuInfoFresh", postdata, ( | ||||
@@ -267,6 +267,7 @@ | |||||
//赋值 | //赋值 | ||||
$(item).lrpickerSet($(item).attr('value')); | $(item).lrpickerSet($(item).attr('value')); | ||||
}); | }); | ||||
//所属银行赋值 | |||||
$page.find('#DepositBank').lrpickerex({ | $page.find('#DepositBank').lrpickerex({ | ||||
code: 'DepositBank', | code: 'DepositBank', | ||||
type: 'dataItem' | type: 'dataItem' | ||||
@@ -34,7 +34,6 @@ | |||||
<a id="lr_answer" class="btn btn-default"><i class="fa fa-building-o"></i> 答题情况</a> | <a id="lr_answer" class="btn btn-default"><i class="fa fa-building-o"></i> 答题情况</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | <div class=" btn-group btn-group-sm" learun-authorize="yes"> | ||||
<a id="lr_submit" class="btn btn-default"><i class="fa fa-lock"></i> 审核</a> | |||||
<a id="lr_unsubmit" class="btn btn-default"><i class="fa fa-unlock"></i> 去审核</a> | <a id="lr_unsubmit" class="btn btn-default"><i class="fa fa-unlock"></i> 去审核</a> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -0,0 +1,207 @@ | |||||
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.WorkFlow; | |||||
using Learun.Application.Base.SystemModule; | |||||
using System.Linq; | |||||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-06-01 11:49 | |||||
/// 描 述:收文报告 | |||||
/// </summary> | |||||
public class DispatchController : MvcControllerBase | |||||
{ | |||||
private DispatchIBLL dispatchIBLL = new DispatchBLL(); | |||||
private NWFTaskIBLL nWFTaskIBLL = new NWFTaskBLL(); | |||||
private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL(); | |||||
#region 视图功能 | |||||
/// <summary> | |||||
/// 主页面党建 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult Index() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 校方 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
public ActionResult IndexXF() | |||||
{ | |||||
return View("IndexXF"); | |||||
} | |||||
/// <summary> | |||||
/// 表单页 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult Form() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 流程 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult FormView() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetPageList(string pagination, string queryJson) | |||||
{ | |||||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||||
var data = dispatchIBLL.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 DispatchData = dispatchIBLL.GetDispatchEntity(keyValue); | |||||
var jsonData = new | |||||
{ | |||||
Dispatch = DispatchData, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
/// <summary> | |||||
/// 获取表单数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例主键</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetFormDataByProcessId(string processId) | |||||
{ | |||||
var DispatchData = dispatchIBLL.GetEntityByProcessId(processId); | |||||
var jsonData = new | |||||
{ | |||||
Dispatch = DispatchData, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
#endregion | |||||
#region 提交数据 | |||||
/// <summary> | |||||
/// 删除实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult DeleteForm(string keyValue) | |||||
{ | |||||
dispatchIBLL.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) | |||||
{ | |||||
DispatchEntity entity = strEntity.ToObject<DispatchEntity>(); | |||||
entity.FlowNo = "0"; | |||||
dispatchIBLL.SaveEntity(keyValue, entity); | |||||
if (string.IsNullOrEmpty(keyValue)) | |||||
{ | |||||
} | |||||
return Success("保存成功!"); | |||||
} | |||||
#endregion | |||||
#region 扩展数据 | |||||
/// <summary> | |||||
/// 提交单子 | |||||
/// </summary> | |||||
/// <param name="keyValue">表主键</param> | |||||
/// <param name="pastatus">审核状态</param> | |||||
/// <param name="processId">流程Id</param> | |||||
/// <returns></returns> | |||||
public ActionResult ModifyStatus(string keyValue, int pastatus, string processId) | |||||
{ | |||||
dispatchIBLL.ModifyStatus(keyValue, pastatus, processId); | |||||
return Success("提交成功!"); | |||||
} | |||||
/// <summary> | |||||
/// 打印 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult Print(string keyValue) | |||||
{ | |||||
var dispatchEntity = dispatchIBLL.GetDispatchEntity(keyValue); | |||||
if (dispatchEntity == null) | |||||
{ | |||||
return View(new DispatchEntity()); | |||||
} | |||||
if (dispatchEntity.AttachmentName != null) | |||||
{ | |||||
dispatchEntity.AttachmentName = annexesFileIBLL.GetFileNames(dispatchEntity.AttachmentName); | |||||
} | |||||
//获取校长的签名盖章 | |||||
var listTaskLog = nWFTaskIBLL.GetLogList(dispatchEntity.processId); | |||||
var nwfTaskLogEntity = listTaskLog.FirstOrDefault(a => a.F_TaskUserName == "超级管理员"); | |||||
if (nwfTaskLogEntity != null) | |||||
{ | |||||
ViewBag.StampImg = nwfTaskLogEntity.F_StampImg; | |||||
ViewBag.SignImg = nwfTaskLogEntity.F_SignImg; | |||||
ViewBag.F_Des = nwfTaskLogEntity.F_Des; | |||||
} | |||||
return View(dispatchEntity); | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,77 @@ | |||||
@{ | |||||
ViewBag.Title = "收文报告"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">工作名称<font face="宋体">*</font></div> | |||||
<input id="WorkName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">标题<font face="宋体">*</font></div> | |||||
<div id="DisTitle" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">来文<font face="宋体">*</font></div> | |||||
<input id="DisFrom" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">字<font face="宋体">*</font></div> | |||||
<input id="DisWork" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">号<font face="宋体">*</font></div> | |||||
<input id="DisMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">份数<font face="宋体">*</font></div> | |||||
<input id="Copies" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">年<font face="宋体">*</font></div> | |||||
<input id="DisYear" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">月<font face="宋体">*</font></div> | |||||
<input id="DisMonth" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">日<font face="宋体">*</font></div> | |||||
<input id="DisDay" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">事由</div> | |||||
<textarea id="Reasons" class="form-control" style="height:100px;"></textarea> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">附件</div> | |||||
<div id="AttachmentName"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">呈送意见</div> | |||||
<textarea id="Render" class="form-control" style="height:100px;"></textarea> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">呈送时间</div> | |||||
<input id="RenderDate" type="text" autocomplete="off" class="form-control lr-input-wdatepicker" | |||||
onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#RenderDate').trigger('change'); } })" | |||||
isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
@*<div class="col-xs-12 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">批示</div> | |||||
<textarea id="Instructions" class="form-control" style="height:100px;"></textarea> | |||||
</div>*@ | |||||
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">收文</div> | |||||
<div id="DisOffice"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="Dispatch" style="display: none; "> | |||||
<div class="lr-form-item-title">流程</div> | |||||
<input id="FlowNo" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="Dispatch" style="display: none; "> | |||||
<div class="lr-form-item-title">关联流程</div> | |||||
<input id="processId" type="text" class="form-control" /> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Dispatch/Form.js") |
@@ -0,0 +1,121 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-06-01 11:49 | |||||
* 描 述:收文报告 | |||||
*/ | |||||
var acceptClick; | |||||
var keyValue = request('keyValue'); | |||||
var DisTitle = request('DisTitle'); | |||||
var DisOffice = request('DisOffice'); | |||||
// 设置权限 | |||||
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 () { | |||||
//var DisOfficeUE = UE.getEditor('DisOffice'); | |||||
//$('#DisOffice')[0].ue = DisOfficeUE; | |||||
$('#AttachmentName').lrUploader(); | |||||
$('#DisTitle').lrDataItemSelect({ code: 'Dispatch' }); | |||||
if (DisTitle == "1") { | |||||
$('#DisTitle').lrselectSet("1"); | |||||
} else { | |||||
$('#DisTitle').lrselectSet("2"); | |||||
} | |||||
$('#DisOffice').lrDataItemSelect({ code: 'DisOffice' }); | |||||
if (DisOffice == "1") { | |||||
$('#DisOffice').lrselectSet("1"); | |||||
} else { | |||||
$('#DisOffice').lrselectSet("2"); | |||||
} | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/Dispatch/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/Dispatch/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 == 'Dispatch' && 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.FlowNo =processId; | |||||
} | |||||
var postData = { | |||||
strEntity: JSON.stringify(formData) | |||||
}; | |||||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Dispatch/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(res, i); | |||||
} | |||||
}); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -0,0 +1,81 @@ | |||||
@{ | |||||
ViewBag.Title = "收文报告"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">工作名称<font face="宋体">*</font></div> | |||||
<input id="WorkName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">标题<font face="宋体">*</font></div> | |||||
<div id="DisTitle" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">来文<font face="宋体">*</font></div> | |||||
<input id="DisFrom" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">字<font face="宋体">*</font></div> | |||||
<input id="DisWork" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">号<font face="宋体">*</font></div> | |||||
<input id="DisMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">份数<font face="宋体">*</font></div> | |||||
<input id="Copies" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">年<font face="宋体">*</font></div> | |||||
<input id="DisYear" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">月<font face="宋体">*</font></div> | |||||
<input id="DisMonth" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||||
</div> | |||||
<div class="col-xs-2 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">日<font face="宋体">*</font></div> | |||||
<input id="DisDay" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">事由</div> | |||||
<textarea id="Reasons" class="form-control" style="height:100px;"></textarea> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">附件</div> | |||||
<div id="AttachmentName"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">呈送意见</div> | |||||
<textarea id="Render" class="form-control" style="height:100px;"></textarea> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">呈送时间</div> | |||||
<input id="RenderDate" type="text" autocomplete="off" class="form-control lr-input-wdatepicker" | |||||
onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#RenderDate').trigger('change'); } })" | |||||
isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">批示</div> | |||||
<textarea id="Instructions" class="form-control" style="height:100px;"></textarea> | |||||
</div> | |||||
@*<div class="col-xs-12 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">收文</div> | |||||
<input id="DisOffice" type="text" class="form-control" /> | |||||
</div>*@ | |||||
<div class="col-xs-6 lr-form-item" data-table="Dispatch" style="display: none; "> | |||||
<div class="lr-form-item-title">流程</div> | |||||
<input id="FlowNo" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item" data-table="Dispatch" style="display: none; "> | |||||
<div class="lr-form-item-title">关联流程</div> | |||||
<input id="processId" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> | |||||
<div class="lr-form-item-title">收文</div> | |||||
<div id="DisOffice"></div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Dispatch/FormView.js") |
@@ -0,0 +1,126 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-06-01 11:49 | |||||
* 描 述:收文报告 | |||||
*/ | |||||
var acceptClick; | |||||
var keyValue = request('keyValue'); | |||||
var DisTitle = request('DisTitle'); | |||||
var DisOffice = request('DisOffice'); | |||||
// 设置权限 | |||||
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 () { | |||||
$('#AttachmentName').lrUploader(); | |||||
$('#DisTitle').lrDataItemSelect({ code: 'Dispatch' }); | |||||
if (DisTitle == "1") { | |||||
$('#DisTitle').lrselectSet("1"); | |||||
} else { | |||||
$('#DisTitle').lrselectSet("2"); | |||||
} | |||||
$('#DisOffice').lrDataItemSelect({ code: 'DisOffice' }); | |||||
if (DisOffice == "1") { | |||||
$('#DisOffice').lrselectSet("1"); | |||||
} else { | |||||
$('#DisOffice').lrselectSet("2"); | |||||
} | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/Dispatch/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/Dispatch/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 == 'Dispatch' && 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.FlowNo = processId; | |||||
} | |||||
var postData = { | |||||
strEntity: JSON.stringify(formData) | |||||
}; | |||||
if (!!callBack) { | |||||
var res = { | |||||
code: 200 | |||||
} | |||||
callBack(res, i); | |||||
} | |||||
//$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Dispatch/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||||
// // 保存成功后才回调 | |||||
// if (!!callBack) { | |||||
// callBack(res, i); | |||||
// } | |||||
//}); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -0,0 +1,42 @@ | |||||
@{ | |||||
ViewBag.Title = "收文报告"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<div class="lr-layout " > | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||||
<div class="lr-layout-tool"> | |||||
<div class="lr-layout-tool-left"> | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="multiple_condition_query"> | |||||
<div class="lr-query-formcontent"> | |||||
@*<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">标题</div> | |||||
<input id="DisTitle" type="text" class="form-control" /> | |||||
</div>*@ | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">收文</div> | |||||
<input id="DisOffice" 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_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_submit" class="btn btn-default"><i class="fa fa-lock"></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/Dispatch/Index.js") |
@@ -0,0 +1,210 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-06-01 11:49 | |||||
* 描 述:收文报告 | |||||
*/ | |||||
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); | |||||
}, 220, 400); | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
// 新增 | |||||
$('#lr_add').on('click', function () { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '新增', | |||||
url: top.$.rootUrl + '/EducationalAdministration/Dispatch/Form?DisTitle=' + 1 + '&DisOffice=' + 1, | |||||
width: 1000, | |||||
height: 700, | |||||
callBack: function (id) { | |||||
var res = false; | |||||
// 验证数据 | |||||
res = top[id].validForm(); | |||||
// 保存数据 | |||||
if (res) { | |||||
res = top[id].save('', function () { | |||||
page.search(); | |||||
}); | |||||
} | |||||
//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 FlowNo = $('#gridtable').jfGridValue('FlowNo'); | |||||
if (FlowNo != 0) { | |||||
learun.alert.warning("当前项目已提交不能编辑!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '编辑', | |||||
url: top.$.rootUrl + '/EducationalAdministration/Dispatch/Form?keyValue=' + keyValue + '&DisTitle=' + 1 + '&DisOffice=' + 1, | |||||
width: 1000, | |||||
height: 700, | |||||
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 FlowNo = $('#gridtable').jfGridValue('FlowNo'); | |||||
if (FlowNo != 0) { | |||||
learun.alert.warning("当前项目已提交不能删除!"); | |||||
return; | |||||
} | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | |||||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Dispatch/DeleteForm', { keyValue: keyValue }, function () { | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
//提交 | |||||
$('#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/Dispatch/ModifyStatus', { keyValue: keyValue, pastatus: 1, processId: processId }, function (res) { | |||||
refreshGirdData(res, {}); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 打印 | |||||
$('#lr_print').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var FlowNo = $('#gridtable').jfGridValue('FlowNo'); | |||||
if (FlowNo < 2) { | |||||
learun.alert.warning("当前项目未审核通过,不能打印!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'from', | |||||
title: '收文通告', | |||||
url: top.$.rootUrl + '/EducationalAdministration/Dispatch/Print?keyValue=' + keyValue, | |||||
width: 1200, | |||||
height: 1200, | |||||
callBack: null | |||||
}); | |||||
} | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/Dispatch/GetPageList', | |||||
headData: [ | |||||
{ label: "工作名称", name: "WorkName", width: 200, align: "center" }, | |||||
{ | |||||
label: "标题", name: "DisTitle", width: 250, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | |||||
code: 'Dispatch', | |||||
callback: function (_data) { | |||||
callback(_data.text); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "来文", name: "DisFrom", width: 100, align: "center" }, | |||||
{ label: "字", name: "DisWork", width: 80, align: "center" }, | |||||
{ label: "号", name: "DisMark", width: 80, align: "center" }, | |||||
{ label: "份数", name: "Copies", width: 50, align: "center" }, | |||||
{ label: "年", name: "DisYear", width: 100, align: "center" }, | |||||
{ label: "月", name: "DisMonth", width: 50, align: "center" }, | |||||
{ label: "日", name: "DisDay", width: 50, align: "center" }, | |||||
{ label: "事由", name: "Reasons", width: 150, align: "center" }, | |||||
//{ label: "附件", name: "AttachmentName", width: 100, align: "center" }, | |||||
{ label: "呈送意见", name: "Render", width: 100, align: "center" }, | |||||
{ | |||||
label: "呈送时间", name: "RenderDate", width: 100, align: "center", | |||||
}, | |||||
{ label: "收文", name: "DisOffice", width: 100, align: "center" }, | |||||
{ label: "批示", name: "Instructions", width: 100, align: "center" }, | |||||
{ | |||||
label: "审批状态", name: "FlowNo", 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 | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
param.DisTitle = 1; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function (res, postData) { | |||||
if (res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: 'Dispatch',// 填写流程对应模板编号 | |||||
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,42 @@ | |||||
@{ | |||||
ViewBag.Title = "收文报告"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<div class="lr-layout " > | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||||
<div class="lr-layout-tool"> | |||||
<div class="lr-layout-tool-left"> | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="multiple_condition_query"> | |||||
<div class="lr-query-formcontent"> | |||||
@*<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">标题</div> | |||||
<input id="DisTitle" type="text" class="form-control" /> | |||||
</div>*@ | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">收文</div> | |||||
<input id="DisOffice" 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_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_submit" class="btn btn-default"><i class="fa fa-lock"></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/Dispatch/IndexXF.js") |
@@ -0,0 +1,207 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-06-01 11:49 | |||||
* 描 述:收文报告 | |||||
*/ | |||||
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); | |||||
}, 220, 400); | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
// 新增 | |||||
$('#lr_add').on('click', function () { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '新增', | |||||
url: top.$.rootUrl + '/EducationalAdministration/Dispatch/Form?DisTitle=' + 2 + '&DisOffice=' + 2, | |||||
width: 1000, | |||||
height: 700, | |||||
callBack: function (id) { | |||||
var res = false; | |||||
// 验证数据 | |||||
res = top[id].validForm(); | |||||
// 保存数据 | |||||
if (res) { | |||||
res = top[id].save('', function () { | |||||
page.search(); | |||||
}); | |||||
} | |||||
return res; | |||||
} | |||||
}); | |||||
}); | |||||
// 编辑 | |||||
$('#lr_edit').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.layerForm({ | |||||
id: 'form', | |||||
title: '编辑', | |||||
url: top.$.rootUrl + '/EducationalAdministration/Dispatch/Form?keyValue=' + keyValue + '&DisTitle=' + 2 + '&DisOffice=' + 2, | |||||
width: 1000, | |||||
height: 700, | |||||
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 FlowNo = $('#gridtable').jfGridValue('FlowNo'); | |||||
if (FlowNo != 0) { | |||||
learun.alert.warning("当前项目已提交不能删除!"); | |||||
return; | |||||
} | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | |||||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Dispatch/DeleteForm', { keyValue: keyValue }, function () { | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
//提交 | |||||
$('#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/Dispatch/ModifyStatus', { keyValue: keyValue, pastatus: 1, processId: processId }, function (res) { | |||||
refreshGirdData(res, {}); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 打印 | |||||
$('#lr_print').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var FlowNo = $('#gridtable').jfGridValue('FlowNo'); | |||||
if (FlowNo < 2) { | |||||
learun.alert.warning("当前项目未审核通过,不能打印!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'from', | |||||
title: '收文通告', | |||||
url: top.$.rootUrl + '/EducationalAdministration/Dispatch/Print?keyValue=' + keyValue, | |||||
width: 1200, | |||||
height: 1200, | |||||
callBack: null | |||||
}); | |||||
} | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/Dispatch/GetPageList', | |||||
headData: [ | |||||
{ label: "工作名称", name: "WorkName", width: 200, align: "center" }, | |||||
//{ label: "标题", name: "DisTitle", width: 200, align: "center" }, | |||||
{ | |||||
label: "标题", name: "DisTitle", width: 250, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | |||||
code: 'Dispatch', | |||||
callback: function (_data) { | |||||
callback(_data.text); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "来文", name: "DisFrom", width: 100, align: "center" }, | |||||
{ label: "字", name: "DisWork", width: 80, align: "center" }, | |||||
{ label: "号", name: "DisMark", width: 80, align: "center" }, | |||||
{ label: "份数", name: "Copies", width: 50, align: "center" }, | |||||
{ label: "年", name: "DisYear", width: 100, align: "center" }, | |||||
{ label: "月", name: "DisMonth", width: 50, align: "center" }, | |||||
{ label: "日", name: "DisDay", width: 50, align: "center" }, | |||||
{ label: "事由", name: "Reasons", width: 150, align: "center" }, | |||||
//{ label: "附件", name: "AttachmentName", width: 100, align: "center" }, | |||||
{ label: "呈送意见", name: "Render", width: 100, align: "center" }, | |||||
{ | |||||
label: "呈送时间", name: "RenderDate", width: 100, align: "center", | |||||
}, | |||||
{ label: "收文", name: "DisOffice", width: 100, align: "center" }, | |||||
{ label: "批示", name: "Instructions", width: 100, align: "center" }, | |||||
{ | |||||
label: "审批状态", name: "FlowNo", 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 | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
param.DisTitle = 2; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function (res, postData) { | |||||
if (res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: 'Dispatch',// 填写流程对应模板编号 | |||||
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,295 @@ | |||||
<!DOCTYPE html> | |||||
<html lang="en"> | |||||
<head> | |||||
<meta charset="UTF-8"> | |||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||||
<title>收文通告</title> | |||||
<style> | |||||
/*.btn { | |||||
width: 100px; | |||||
height: 34px; | |||||
line-height: 34px; | |||||
text-align: center; | |||||
margin: 30px auto; | |||||
border: 1px solid #ccc; | |||||
cursor: pointer; | |||||
border-radius: 4px; | |||||
}*/ | |||||
.lr-query-btn { | |||||
position: absolute; | |||||
width: 122px; | |||||
height: 40px; | |||||
line-height: 40px; | |||||
cursor: pointer; | |||||
border: 1px solid #ccc; | |||||
border-radius: 4px; | |||||
text-align: center; | |||||
color: #fff; | |||||
background-color: #039cfd; | |||||
border-color: #039cfd; | |||||
right: 80px; | |||||
top: 40px; | |||||
font-size: 18px; | |||||
} | |||||
.table { | |||||
width: 90%; | |||||
margin: 30px auto; | |||||
} | |||||
* { | |||||
padding: 0; | |||||
margin: 0; | |||||
font-weight: bold; | |||||
} | |||||
i, | |||||
em { | |||||
font-style: normal | |||||
} | |||||
.box { | |||||
border-left: 2px dotted red; | |||||
width: 1100px; | |||||
margin-left: 30px; | |||||
position: relative; | |||||
/* float: right; */ | |||||
} | |||||
.zdx { | |||||
position: absolute; | |||||
width: 20px; | |||||
background: #fff; | |||||
top: 40%; | |||||
left: -20px; | |||||
padding: 10px; | |||||
} | |||||
.zdx span { | |||||
display: inline-block; | |||||
margin-top: 10px; | |||||
} | |||||
h5 { | |||||
font-size: 28px; | |||||
margin-top: 40px; | |||||
margin-bottom: 50px; | |||||
text-align: center; | |||||
color: red; | |||||
} | |||||
span { | |||||
color: red; | |||||
} | |||||
.heder { | |||||
height: 180px; | |||||
width: 90%; | |||||
margin: 0 auto; | |||||
border-top: 2px solid red; | |||||
border-bottom: 2px solid red; | |||||
} | |||||
.hederL { | |||||
float: left; | |||||
} | |||||
.hederR { | |||||
float: right; | |||||
width: 40%; | |||||
border-left: 2px solid red; | |||||
height: 180px; | |||||
padding-left: 50px; | |||||
} | |||||
.hederR p { | |||||
margin-top: 20px; | |||||
} | |||||
.hederR p:nth-child(2) { | |||||
margin-top: 40px; | |||||
} | |||||
.hederR span, em { | |||||
padding: 10px 20px; | |||||
} | |||||
.sy { | |||||
width: 90%; | |||||
margin: 0 auto; | |||||
height: 200px; | |||||
border-bottom: 2px solid red; | |||||
} | |||||
.sy span em { | |||||
display: inline-block; | |||||
padding: 10px 20px; | |||||
} | |||||
.yj { | |||||
width: 90%; | |||||
margin: 0 auto; | |||||
height: 270px; | |||||
border-bottom: 2px solid red; | |||||
} | |||||
.yj div { | |||||
height: 232px; | |||||
} | |||||
.yj div span { | |||||
display: inline-block; | |||||
padding: 10px 20px; | |||||
} | |||||
.yj p { | |||||
float: right; | |||||
} | |||||
.yj p span { | |||||
display: inline-block; | |||||
padding: 10px 20px; | |||||
} | |||||
.ps { | |||||
height: 500px; | |||||
width: 90%; | |||||
margin: 0 auto; | |||||
} | |||||
.ps div { | |||||
height: 480px; | |||||
border-bottom: 2px solid red; | |||||
} | |||||
.ps div span { | |||||
display: block; | |||||
padding: 10px 20px; | |||||
height: 235px; | |||||
} | |||||
.ps p { | |||||
float: right; | |||||
} | |||||
.ps p span { | |||||
display: inline-block; | |||||
padding: 10px 20px; | |||||
margin-bottom: 40px; | |||||
} | |||||
.ulzp { | |||||
text-indent: 32px; | |||||
font-size: 14px; | |||||
line-height: 30px; | |||||
position: relative; | |||||
} | |||||
.ulzp li { | |||||
float: left; | |||||
padding: 0; | |||||
margin: 0; | |||||
list-style: none; | |||||
} | |||||
.ulzp span { | |||||
display: inline-block; | |||||
width: 80px; | |||||
height: 24px; | |||||
border-bottom: 1px solid #000; | |||||
vertical-align: bottom; | |||||
position: relative; | |||||
top: -5px; | |||||
text-indent: 0; | |||||
text-align: center; | |||||
} | |||||
</style> | |||||
</head> | |||||
<body> | |||||
<div id="content" class="content"> | |||||
<div class="box"> | |||||
<p class="zdx"> | |||||
<span>装</span> | |||||
<span>订</span> | |||||
<span>线</span> | |||||
</p> | |||||
<h5>@Model.WorkName</h5> | |||||
<div class="heder"> | |||||
<div class="hederL"></div> | |||||
<div class="hederR"> | |||||
<p><span> 来 文 </span><em>@Model.DisFrom</em><span>字</span>@Model.DisWork<span>号</span><em>@Model.DisMark</em></p> | |||||
<p><span> 份 数 </span><em>@Model.Copies</em></p> | |||||
<p><span>年</span><em>@Model.DisYear</em><span>月</span><em>@Model.DisMonth</em><span>日</span><em>@Model.DisDay</em></p> | |||||
</div> | |||||
</div> | |||||
<div class="sy"> | |||||
<span><em>事</em><em>由:</em>@Model.Reasons</span> | |||||
</div> | |||||
<div class="sy"> | |||||
<span> | |||||
<em>附</em><em>件:</em>@Model.AttachmentName | |||||
</span> | |||||
</div> | |||||
<div class="yj"> | |||||
<div> | |||||
<span>呈送意见:@Model.Render</span> | |||||
</div> | |||||
<p> | |||||
<span> | |||||
<em> | |||||
@Model.RenderDate.ToShortDateString().ToString().Replace("/", "-") | |||||
</em> | |||||
</span> | |||||
@*<span>年</span><span>月</span><em></em><span>日</span><em></em>*@ | |||||
</p> | |||||
</div> | |||||
<div class="ps"> | |||||
<div> | |||||
<span> 批 示:@ViewBag.F_Des</span> | |||||
<ul class="ulzp" style="height: 200px"> | |||||
<li>(签字):</li> | |||||
<li> <img id="signImg" hidden="hidden"></li> | |||||
<li>(签章):</li> | |||||
<li><img id="stampImg" hidden="hidden"></li> | |||||
</ul> | |||||
</div> | |||||
<p><span> 收 文 </span><em>@Model.DisOffice</em><span>字</span><em>@Model.DisWork</em><span>号</span><em>@Model.DisMark</em><span>年</span><em>@Model.DisYear</em><span>月</span><em>@Model.DisMonth</em><span>日</span><em>@Model.DisDay</em></p> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-query-btn" id="lr_print">打印</div> | |||||
@*<input class="lr-query-btn" id="dy" />*@ | |||||
<script src="~/Content/jquery/jquery-1.10.2.min.js"></script> | |||||
<script src="~/Content/jquery/plugin/fullcalendar/js/jquery-1.7.2.min.js"></script> | |||||
<script src="~/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js"></script> | |||||
<script> | |||||
//盖章图片 | |||||
var stampUrl = '/LR_NewWorkFlow/StampInfo/GetImg?keyValue=@ViewBag.StampImg'; | |||||
var signUrl = '/LR_SystemModule/Img/GetImg?keyValue=@ViewBag.SignImg'; | |||||
$('#signImg').attr('src', signUrl); | |||||
$('#stampImg').attr('src', stampUrl); | |||||
var signImg = new Image(); | |||||
var stampImg = new Image(); | |||||
signImg.src = $('#signImg')[0].src; | |||||
stampImg.src = $('#stampImg')[0].src; | |||||
signImg.onload=function() { | |||||
$('#signImg').show(); | |||||
} | |||||
stampImg.onload=function() { | |||||
$('#stampImg').show(); | |||||
} | |||||
$('#lr_print').on('click', function () { | |||||
$('#content').jqprint(); | |||||
}); | |||||
</script> | |||||
</body> | |||||
</html> |
@@ -88,7 +88,7 @@ | |||||
<input id="BankCard" type="text" class="form-control" isvalid="yes" checkexpession="BankCard" /> | <input id="BankCard" type="text" class="form-control" isvalid="yes" checkexpession="BankCard" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasic"> | <div class="col-xs-6 lr-form-item" data-table="StuInfoBasic"> | ||||
<div class="lr-form-item-title">开户银行位置</div> | |||||
<div class="lr-form-item-title">开户网点</div> | |||||
<input id="BankLocation" type="text" class="form-control" /> | <input id="BankLocation" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StuInfoBasic"> | <div class="col-xs-12 lr-form-item" data-table="StuInfoBasic"> | ||||
@@ -354,7 +354,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
{ label: '开户银行', name: 'DepositBank', width: 100, align: "left" }, | { label: '开户银行', name: 'DepositBank', width: 100, align: "left" }, | ||||
{ label: '银行卡账号', name: 'BankCard', width: 150, align: "left" }, | { label: '银行卡账号', name: 'BankCard', width: 150, align: "left" }, | ||||
{ label: '开户银行位置', name: 'BankLocation', width: 200, align: "left" }, | |||||
{ label: '开户网点', name: 'BankLocation', width: 200, align: "left" }, | |||||
], | ], | ||||
mainId: 'StuId', | mainId: 'StuId', | ||||
isPage: true, | isPage: true, | ||||
@@ -138,7 +138,7 @@ | |||||
<input id="BankCard" type="text" class="form-control" isvalid="yes" checkexpession="BankCard" /> | <input id="BankCard" type="text" class="form-control" isvalid="yes" checkexpession="BankCard" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="StuInfoFresh" > | <div class="col-xs-6 lr-form-item" data-table="StuInfoFresh" > | ||||
<div class="lr-form-item-title">开户银行位置</div> | |||||
<div class="lr-form-item-title">开户网点</div> | |||||
<input id="BankLocation" type="text" class="form-control" /> | <input id="BankLocation" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
@@ -323,7 +323,7 @@ var bootstrap = function ($, learun) { | |||||
{ label: '综合', name: 'ComprehensiveScore', width: 100, align: "left" }, | { label: '综合', name: 'ComprehensiveScore', width: 100, align: "left" }, | ||||
{ label: '开户银行', name: 'DepositBank', width: 100, align: "left" }, | { label: '开户银行', name: 'DepositBank', width: 100, align: "left" }, | ||||
{ label: '银行卡账号', name: 'BankCard', width: 150, align: "left" }, | { label: '银行卡账号', name: 'BankCard', width: 150, align: "left" }, | ||||
{ label: '开户银行位置', name: 'BankLocation', width: 200, align: "left" }, | |||||
{ label: '开户网点', name: 'BankLocation', width: 200, align: "left" }, | |||||
], | ], | ||||
mainId: 'ID', | mainId: 'ID', | ||||
isPage: true, | isPage: true, | ||||
@@ -33,15 +33,13 @@ | |||||
</div> | </div> | ||||
<div class="entrTxt"> | <div class="entrTxt"> | ||||
(签字) | (签字) | ||||
<img id="signImg" hidden="hidden">) | |||||
<img id="signImg" hidden="hidden"> | |||||
<img id="stampImg" hidden="hidden"> | <img id="stampImg" hidden="hidden"> | ||||
</div> | </div> | ||||
<div class="entrTime"> | <div class="entrTime"> | ||||
@ViewBag.OperationYear 年<span></span>@ViewBag.OperationMonth 月<span></span>@ViewBag.OperationDay 日 | @ViewBag.OperationYear 年<span></span>@ViewBag.OperationMonth 月<span></span>@ViewBag.OperationDay 日 | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -811,7 +811,7 @@ | |||||
<Compile Include="Areas\CustomFunction\Controllers\SRProjectTypeController.cs" /> | <Compile Include="Areas\CustomFunction\Controllers\SRProjectTypeController.cs" /> | ||||
<Compile Include="Areas\CustomFunction\Controllers\SRProjectPlanController.cs" /> | <Compile Include="Areas\CustomFunction\Controllers\SRProjectPlanController.cs" /> | ||||
<Compile Include="Areas\CustomFunction\Controllers\SRProjectWorkController.cs" /> | <Compile Include="Areas\CustomFunction\Controllers\SRProjectWorkController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\StuInfoSemsterController.cs" /> | |||||
<Compile Include="Areas\EducationalAdministration\Controllers\DispatchController.cs" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | <Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | ||||
@@ -936,6 +936,11 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\CertificateResult\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\CertificateResult\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\CertificateResult\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\CertificateResult\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ClassInfo\FormType.js" /> | <Content Include="Areas\EducationalAdministration\Views\ClassInfo\FormType.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Dispatch\Form.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\Dispatch\FormView.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\Dispatch\Index.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\Dispatch\IndexXF.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\Dispatch\IndexXF.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\EADateArrange\InitByConditionForm.js" /> | <Content Include="Areas\EducationalAdministration\Views\EADateArrange\InitByConditionForm.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\FormModify.js" /> | <Content Include="Areas\EducationalAdministration\Views\EmpInfo\FormModify.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EmpInfo\FormEdit.js" /> | <Content Include="Areas\EducationalAdministration\Views\EmpInfo\FormEdit.js" /> | ||||
@@ -6399,10 +6404,6 @@ | |||||
<Content Include="Areas\CustomFunction\Views\SRProjectWork\Index.js" /> | <Content Include="Areas\CustomFunction\Views\SRProjectWork\Index.js" /> | ||||
<Content Include="Areas\CustomFunction\Views\SRProjectWork\Form.cshtml" /> | <Content Include="Areas\CustomFunction\Views\SRProjectWork\Form.cshtml" /> | ||||
<Content Include="Areas\CustomFunction\Views\SRProjectWork\Form.js" /> | <Content Include="Areas\CustomFunction\Views\SRProjectWork\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoSemster\Index.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoSemster\Index.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoSemster\Form.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoSemster\Form.js" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<Folder Include="Areas\LR_Desktop\Models\" /> | <Folder Include="Areas\LR_Desktop\Models\" /> | ||||
@@ -6422,7 +6423,9 @@ | |||||
<Content Include="XmlConfig\database.config"> | <Content Include="XmlConfig\database.config"> | ||||
<SubType>Designer</SubType> | <SubType>Designer</SubType> | ||||
</Content> | </Content> | ||||
<Content Include="XmlConfig\ioc.config" /> | |||||
<Content Include="XmlConfig\ioc.config"> | |||||
<SubType>Designer</SubType> | |||||
</Content> | |||||
<Content Include="XmlConfig\log4net.config" /> | <Content Include="XmlConfig\log4net.config" /> | ||||
<Content Include="XmlConfig\system.config"> | <Content Include="XmlConfig\system.config"> | ||||
<SubType>Designer</SubType> | <SubType>Designer</SubType> | ||||
@@ -7204,6 +7207,10 @@ | |||||
<Content Include="Areas\LR_OrganizationModule\Views\User\FamilyIndex.cshtml" /> | <Content Include="Areas\LR_OrganizationModule\Views\User\FamilyIndex.cshtml" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.cshtml" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.cshtml" /> | ||||
<Content Include="Areas\CustomFunction\Views\web.config" /> | <Content Include="Areas\CustomFunction\Views\web.config" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Dispatch\Form.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\Dispatch\FormView.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\Dispatch\Index.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\Dispatch\Print.cshtml" /> | |||||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | <None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.cshtml" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.cshtml" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\IndexAttendance.cshtml" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\IndexAttendance.cshtml" /> | ||||
@@ -28,6 +28,7 @@ | |||||
<typeAlias alias="OA_NewsMethod" type="Learun.Application.WorkFlow.OA_NewsMethod,Learun.Application.WorkFlow" /> | <typeAlias alias="OA_NewsMethod" type="Learun.Application.WorkFlow.OA_NewsMethod,Learun.Application.WorkFlow" /> | ||||
<typeAlias alias="Ass_AcceptanceMethod" type="Learun.Application.WorkFlow.Ass_AcceptanceMethod,Learun.Application.WorkFlow" /> | <typeAlias alias="Ass_AcceptanceMethod" type="Learun.Application.WorkFlow.Ass_AcceptanceMethod,Learun.Application.WorkFlow" /> | ||||
<typeAlias alias="MeetingManagementApplyMethod" type="Learun.Application.WorkFlow.MeetingManagementApplyMethod,Learun.Application.WorkFlow" /> | <typeAlias alias="MeetingManagementApplyMethod" type="Learun.Application.WorkFlow.MeetingManagementApplyMethod,Learun.Application.WorkFlow" /> | ||||
<typeAlias alias="DispatchMethod" type="Learun.Application.WorkFlow.DispatchMethod,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" /> | ||||
@@ -66,6 +67,7 @@ | |||||
<type type="IWorkFlowMethod" mapTo="OA_NewsMethod" name="OA_NewsMethod"></type> | <type type="IWorkFlowMethod" mapTo="OA_NewsMethod" name="OA_NewsMethod"></type> | ||||
<type type="IWorkFlowMethod" mapTo="Ass_AcceptanceMethod" name="Ass_AcceptanceMethod"></type> | <type type="IWorkFlowMethod" mapTo="Ass_AcceptanceMethod" name="Ass_AcceptanceMethod"></type> | ||||
<type type="IWorkFlowMethod" mapTo="MeetingManagementApplyMethod" name="MeetingManagementApplyMethod"></type> | <type type="IWorkFlowMethod" mapTo="MeetingManagementApplyMethod" name="MeetingManagementApplyMethod"></type> | ||||
<type type="IWorkFlowMethod" mapTo="DispatchMethod" name="DispatchMethod"></type> | |||||
</container> | </container> | ||||
@@ -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 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-06-01 11:49 | |||||
/// 描 述:收文报告 | |||||
/// </summary> | |||||
public class DispatchMap : EntityTypeConfiguration<DispatchEntity> | |||||
{ | |||||
public DispatchMap() | |||||
{ | |||||
#region 表、主键 | |||||
//表 | |||||
this.ToTable("DISPATCH"); | |||||
//主键 | |||||
this.HasKey(t => t.Id); | |||||
#endregion | |||||
#region 配置关系 | |||||
#endregion | |||||
} | |||||
} | |||||
} | |||||
@@ -564,7 +564,7 @@ | |||||
<Compile Include="CustomFunction\SRProjectTypeMap.cs" /> | <Compile Include="CustomFunction\SRProjectTypeMap.cs" /> | ||||
<Compile Include="CustomFunction\SRProjectPlanMap.cs" /> | <Compile Include="CustomFunction\SRProjectPlanMap.cs" /> | ||||
<Compile Include="CustomFunction\SRProjectWorkMap.cs" /> | <Compile Include="CustomFunction\SRProjectWorkMap.cs" /> | ||||
<Compile Include="EducationalAdministration\StuInfoSemsterMap.cs" /> | |||||
<Compile Include="EducationalAdministration\DispatchMap.cs" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | <ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | ||||
@@ -0,0 +1,219 @@ | |||||
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 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-06-01 11:49 | |||||
/// 描 述:收文报告 | |||||
/// </summary> | |||||
public class DispatchBLL : DispatchIBLL | |||||
{ | |||||
private DispatchService dispatchService = new DispatchService(); | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<DispatchEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
return dispatchService.GetPageList(pagination, queryJson); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取Dispatch表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public DispatchEntity GetDispatchEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return dispatchService.GetDispatchEntity(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取主表实体数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例ID</param> | |||||
/// <returns></returns> | |||||
public DispatchEntity GetEntityByProcessId(string processId) | |||||
{ | |||||
try | |||||
{ | |||||
return dispatchService.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 | |||||
{ | |||||
dispatchService.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, DispatchEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
dispatchService.SaveEntity(keyValue, entity); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
#region 扩展数据 | |||||
/// <summary> | |||||
/// 提交申请单 | |||||
/// </summary> | |||||
/// <param name="keyValue">表主键</param> | |||||
/// <param name="pastatus">审核状态</param> | |||||
/// <param name="processId">流程Id</param> | |||||
/// <returns></returns> | |||||
public void ModifyStatus(string keyValue, int pastatus, string processId) | |||||
{ | |||||
try | |||||
{ | |||||
dispatchService.ModifyStatus(keyValue, pastatus, processId); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 修改审核状态 | |||||
/// </summary> | |||||
/// <param name="pastatus">审核状态</param> | |||||
/// <param name="processId">流程Id</param> | |||||
public void ModifyStatusByProcessId(int pastatus, string processId) | |||||
{ | |||||
try | |||||
{ | |||||
dispatchService.ModifyStatusByProcessId(pastatus, processId); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
public void ModifTimeByProcessId(string processId) | |||||
{ | |||||
try | |||||
{ | |||||
dispatchService.ModifTimeByProcessId( processId); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,130 @@ | |||||
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 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-06-01 11:49 | |||||
/// 描 述:收文报告 | |||||
/// </summary> | |||||
public class DispatchEntity | |||||
{ | |||||
#region 实体成员 | |||||
/// <summary> | |||||
/// 主键 | |||||
/// </summary> | |||||
[Column("ID")] | |||||
public string Id { get; set; } | |||||
/// <summary> | |||||
/// 工作名称 | |||||
/// </summary> | |||||
[Column("WORKNAME")] | |||||
public string WorkName { get; set; } | |||||
/// <summary> | |||||
/// 标题 | |||||
/// </summary> | |||||
[Column("DISTITLE")] | |||||
public string DisTitle { get; set; } | |||||
/// <summary> | |||||
/// 来文 | |||||
/// </summary> | |||||
[Column("DISFROM")] | |||||
public string DisFrom { get; set; } | |||||
/// <summary> | |||||
/// 字 | |||||
/// </summary> | |||||
[Column("DISWORK")] | |||||
public string DisWork { get; set; } | |||||
/// <summary> | |||||
/// 号 | |||||
/// </summary> | |||||
[Column("DISMARK")] | |||||
public string DisMark { get; set; } | |||||
/// <summary> | |||||
/// 份数 | |||||
/// </summary> | |||||
[Column("COPIES")] | |||||
public string Copies { get; set; } | |||||
/// <summary> | |||||
/// 年 | |||||
/// </summary> | |||||
[Column("DISYEAR")] | |||||
public string DisYear { get; set; } | |||||
/// <summary> | |||||
/// 月 | |||||
/// </summary> | |||||
[Column("DISMONTH")] | |||||
public string DisMonth { get; set; } | |||||
/// <summary> | |||||
/// 日 | |||||
/// </summary> | |||||
[Column("DISDAY")] | |||||
public string DisDay { get; set; } | |||||
/// <summary> | |||||
/// 事由 | |||||
/// </summary> | |||||
[Column("REASONS")] | |||||
public string Reasons { get; set; } | |||||
/// <summary> | |||||
/// 附件 | |||||
/// </summary> | |||||
[Column("ATTACHMENTNAME")] | |||||
public string AttachmentName { get; set; } | |||||
/// <summary> | |||||
/// 呈送意见 | |||||
/// </summary> | |||||
[Column("RENDER")] | |||||
public string Render { get; set; } | |||||
/// <summary> | |||||
/// 呈送时间 | |||||
/// </summary> | |||||
[Column("RENDERDATE")] | |||||
public DateTime? RenderDate { get; set; } | |||||
/// <summary> | |||||
/// 批示 | |||||
/// </summary> | |||||
[Column("INSTRUCTIONS")] | |||||
public string Instructions { get; set; } | |||||
/// <summary> | |||||
/// 办公室 | |||||
/// </summary> | |||||
[Column("DISOFFICE")] | |||||
public string DisOffice { get; set; } | |||||
/// <summary> | |||||
/// 0:草稿 1:审核中 2:已完成 | |||||
/// </summary> | |||||
[Column("FLOWNO")] | |||||
public string FlowNo { get; set; } | |||||
/// <summary> | |||||
/// 关联的流程Id | |||||
/// </summary> | |||||
[Column("PROCESSID")] | |||||
public string processId { 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,58 @@ | |||||
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 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-06-01 11:49 | |||||
/// 描 述:收文报告 | |||||
/// </summary> | |||||
public interface DispatchIBLL | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
IEnumerable<DispatchEntity> GetPageList(Pagination pagination, string queryJson); | |||||
/// <summary> | |||||
/// 获取Dispatch表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
DispatchEntity GetDispatchEntity(string keyValue); | |||||
/// <summary> | |||||
/// 获取主表实体数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例ID</param> | |||||
/// <returns></returns> | |||||
DispatchEntity 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, DispatchEntity entity); | |||||
#endregion | |||||
void ModifyStatus(string keyValue, int pastatus, string processId); | |||||
void ModifyStatusByProcessId(int i, string processId); | |||||
void ModifTimeByProcessId(string processId); | |||||
} | |||||
} |
@@ -0,0 +1,263 @@ | |||||
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 力软信息技术(苏州)有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2021-06-01 11:49 | |||||
/// 描 述:收文报告 | |||||
/// </summary> | |||||
public class DispatchService : RepositoryFactory | |||||
{ | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<DispatchEntity> GetPageList(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
var strSql = new StringBuilder(); | |||||
strSql.Append("SELECT "); | |||||
strSql.Append(@" | |||||
t.Id, | |||||
t.WorkName, | |||||
t.DisTitle, | |||||
t.DisFrom, | |||||
t.DisWork, | |||||
t.DisMark, | |||||
t.Copies, | |||||
t.DisYear, | |||||
t.DisMonth, | |||||
t.DisDay, | |||||
t.Reasons, | |||||
t.AttachmentName, | |||||
t.Render, | |||||
t.RenderDate, | |||||
t.Instructions, | |||||
t.DisOffice, | |||||
t.FlowNo, | |||||
t.processId | |||||
"); | |||||
strSql.Append(" FROM Dispatch t "); | |||||
strSql.Append(" WHERE 1=1 "); | |||||
var queryParam = queryJson.ToJObject(); | |||||
// 虚拟参数 | |||||
var dp = new DynamicParameters(new { }); | |||||
if (!queryParam["DisTitle"].IsEmpty()) | |||||
{ | |||||
dp.Add("DisTitle", queryParam["DisTitle"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.DisTitle = @DisTitle "); | |||||
} | |||||
if (!queryParam["DisOffice"].IsEmpty()) | |||||
{ | |||||
dp.Add("DisOffice", "%" + queryParam["DisOffice"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.DisOffice Like @DisOffice "); | |||||
} | |||||
return this.BaseRepository("CollegeMIS").FindList<DispatchEntity>(strSql.ToString(), dp, pagination); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取Dispatch表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public DispatchEntity GetDispatchEntity(string keyValue) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<DispatchEntity>(keyValue); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// 获取主表实体数据 | |||||
/// </summary> | |||||
/// <param name="processId">流程实例ID</param> | |||||
/// <returns></returns> | |||||
public DispatchEntity GetEntityByProcessId(string processId) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<DispatchEntity>(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<DispatchEntity>(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, DispatchEntity 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("CollegeMIS").FindEntity<DispatchEntity>(a => a.Id == keyValue); | |||||
entity.processId = processId; | |||||
entity.FlowNo = pastatus.ToString(); | |||||
this.BaseRepository("CollegeMIS").Update(entity); | |||||
} | |||||
catch (Exception e) | |||||
{ | |||||
if (e is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(e); | |||||
} | |||||
} | |||||
} | |||||
public void ModifTimeByProcessId(string processId) | |||||
{ | |||||
try | |||||
{ | |||||
var entity = this.BaseRepository("CollegeMIS").FindEntity<DispatchEntity>(a => a.processId == processId); | |||||
entity.FlowNo = "2"; | |||||
this.BaseRepository("CollegeMIS").Update(entity); | |||||
} | |||||
catch (Exception e) | |||||
{ | |||||
if (e is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(e); | |||||
} | |||||
} | |||||
} | |||||
public void ModifyStatusByProcessId(int pastatus, string processId) | |||||
{ | |||||
try | |||||
{ | |||||
var entity = this.BaseRepository("CollegeMIS").FindEntity<DispatchEntity>(a => a.processId == processId); | |||||
entity.FlowNo = pastatus.ToString(); | |||||
this.BaseRepository("CollegeMIS").Update(entity); | |||||
} | |||||
catch (Exception e) | |||||
{ | |||||
if (e is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(e); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -1674,10 +1674,10 @@ | |||||
<Compile Include="CustomFunction\SRProjectWork\SRProjectWorkService.cs" /> | <Compile Include="CustomFunction\SRProjectWork\SRProjectWorkService.cs" /> | ||||
<Compile Include="CustomFunction\SRProjectWork\SRProjectWorkBLL.cs" /> | <Compile Include="CustomFunction\SRProjectWork\SRProjectWorkBLL.cs" /> | ||||
<Compile Include="CustomFunction\SRProjectWork\SRProjectWorkIBLL.cs" /> | <Compile Include="CustomFunction\SRProjectWork\SRProjectWorkIBLL.cs" /> | ||||
<Compile Include="EducationalAdministration\StuInfoSemster\StuInfoSemsterEntity.cs" /> | |||||
<Compile Include="EducationalAdministration\StuInfoSemster\StuInfoSemsterService.cs" /> | |||||
<Compile Include="EducationalAdministration\StuInfoSemster\StuInfoSemsterIBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\StuInfoSemster\StuInfoSemsterBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\Dispatch\DispatchEntity.cs" /> | |||||
<Compile Include="EducationalAdministration\Dispatch\DispatchService.cs" /> | |||||
<Compile Include="EducationalAdministration\Dispatch\DispatchBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\Dispatch\DispatchIBLL.cs" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | <ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | ||||
@@ -97,6 +97,7 @@ | |||||
<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\Ass_ReceiveMethod.cs" /> | <Compile Include="NodeMethod\Ass_ReceiveMethod.cs" /> | ||||
<Compile Include="NodeMethod\DispatchMethod.cs" /> | |||||
<Compile Include="NodeMethod\MeetingManagementApplyMethod.cs" /> | <Compile Include="NodeMethod\MeetingManagementApplyMethod.cs" /> | ||||
<Compile Include="NodeMethod\SW_Ask_StudentMainMethod.cs" /> | <Compile Include="NodeMethod\SW_Ask_StudentMainMethod.cs" /> | ||||
<Compile Include="NodeMethod\SW_Ask_TypeMethod.cs" /> | <Compile Include="NodeMethod\SW_Ask_TypeMethod.cs" /> | ||||
@@ -0,0 +1,29 @@ | |||||
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 DispatchMethod : IWorkFlowMethod | |||||
{ | |||||
DispatchIBLL aispatchIBLL = new DispatchBLL(); | |||||
/// <summary> | |||||
/// 审核 | |||||
/// </summary> | |||||
/// <param name="parameter"></param> | |||||
public void Execute(WfMethodParameter parameter) | |||||
{ | |||||
if (parameter.code == "agree") | |||||
{ | |||||
aispatchIBLL.ModifyStatusByProcessId(2, parameter.processId); | |||||
} | |||||
else | |||||
{ | |||||
aispatchIBLL.ModifyStatusByProcessId(0, parameter.processId); | |||||
} | |||||
} | |||||
} | |||||
} |