Explorar el Código

合同归档添加作废选项

金隅分支
zhichao lei hace 4 años
padre
commit
765a3e0eca
Se han modificado 3 ficheros con 22 adiciones y 0 borrados
  1. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFiling.cshtml
  2. +10
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFiling.js
  3. +11
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFiling.cshtml Ver fichero

@@ -9,6 +9,7 @@
<ul class="lr-left-list" id="lr_left_list">
<li class="active lrlg" data-value="1">未完成</li>
<li data-value="2" class="lrlg">已完成</li>
<li data-value="3" class="lrlg">作废</li>
</ul>
</div>
</div>


+ 10
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFiling.js Ver fichero

@@ -10,6 +10,7 @@ var bootstrap = function ($, learun) {
var categoryId = '1';
var logbegin = '';
var logend = '';
var F_EnabledMark = false;

var page = {
init: function () {
@@ -99,6 +100,12 @@ var bootstrap = function ($, learun) {
$parent.find('.active').removeClass('active');
$this.addClass('active');
categoryId = $this.attr('data-value');
if (categoryId == 3) {
categoryId = 1;
F_EnabledMark = true;
} else {
F_EnabledMark = false;
}
page.search();
});
},
@@ -179,6 +186,9 @@ var bootstrap = function ($, learun) {
param.EndTime = logend;
param.categoryId = categoryId;
param.F_Category = '合同类';
if (F_EnabledMark) {
param.F_EnabledMark = 3;
}
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
},
eye: function () {


+ 11
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs Ver fichero

@@ -108,6 +108,17 @@ namespace Learun.Application.WorkFlow
if (queryParam["categoryId"].ToString() == "1")
{
expression = expression.And(t => t.F_IsFinished == 0);
// 是否作废
if (!queryParam["F_EnabledMark"].IsEmpty()) // 是否作废
{
expression = expression.And(t => t.F_EnabledMark == 3);
}
else
{
expression = expression.And(t => t.F_EnabledMark != 3);

}

}
else
{


Cargando…
Cancelar
Guardar