Sfoglia il codice sorgente

公告回收站功能

金隅分支
liangkun 3 anni fa
parent
commit
d81756ba22
3 ha cambiato i file con 22 aggiunte e 2 eliminazioni
  1. +9
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.cshtml
  3. +12
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.js

+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs Vedi File

@@ -94,6 +94,15 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
return View();
}
/// <summary>
/// 回收站
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexRecycle()
{
return View();
}
/// <summary>
/// 表单页面【查看通知公告】
/// </summary>
/// <returns></returns>


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.cshtml Vedi File

@@ -25,6 +25,7 @@
<a id="lr_submit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;<span class="lrlt">提交</span></a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;<span class="lrlt">删除</span></a>
<a id="lr_recycle" class="btn btn-default"><i class="fa fa-circle-o-notch"></i>&nbsp;<span class="lrlt">放入回收站</span></a>
<a id="lr_openrecycle" class="btn btn-default"><i class="fa fa-circle-o-notch"></i>&nbsp;<span class="lrlt">打开回收站</span></a>
</div>
</div>
</div>


+ 12
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.js Vedi File

@@ -91,12 +91,22 @@ var bootstrap = function ($, learun) {
});
}
});
$('#lr_openrecycle').on('click', function () {
learun.layerForm({
id: 'formrecycle',
title: '查看回收站',
url: top.$.rootUrl + '/LR_OAModule/Notice/IndexRecycle',
width: 1100,
height: 700,
btn: null
});
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('F_NewsId');
var status = $('#gridtable').jfGridValue('F_Status');
console.log(status);
if (status.indexOf("1")>0 || status.indexOf("2")>0) {
if (status.indexOf("1") > 0 || status.indexOf("2") > 0) {
learun.alert.warning("只能删除草稿!");
return;
} else {
@@ -132,7 +142,7 @@ var bootstrap = function ($, learun) {
learun.alert.warning('只能提交一个!');
return;
}
if (learun.checkrow(keyValue) ) {
if (learun.checkrow(keyValue)) {
var SendFlag = $('#gridtable').jfGridValue('F_Status');
if (SendFlag == "1" || SendFlag == "2") {
learun.alert.warning("当前项目已提交,请耐心等待审批!");


Caricamento…
Annulla
Salva