Browse Source

通知公告调整编辑 查看

新疆影视学院高职
zhangli 3 years ago
parent
commit
7fc5b3bd53
2 changed files with 12 additions and 6 deletions
  1. +5
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.js
  2. +7
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/MessageRind/MessageRindService.cs

+ 5
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.js View File

@@ -68,14 +68,15 @@ var bootstrap = function ($, learun) {
height: 650, height: 650,
maxmin: true, maxmin: true,
callBack: function (id) { callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
//return top[id].acceptClick(refreshGirdData);
return top[id].save(refreshGirdData);
} }
}); });
} }
}); });
// 查看 // 查看
$('#lr_view').on('click', function () { $('#lr_view').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('SFileId');
var keyValue = $('#gridtable').jfGridValue('F_NewsId');
if (learun.checkrow(keyValue)) { if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(",") != -1) { if (keyValue.indexOf(",") != -1) {
learun.alert.warning("只能选择一条记录查看!"); learun.alert.warning("只能选择一条记录查看!");
@@ -85,8 +86,8 @@ var bootstrap = function ($, learun) {
id: 'form', id: 'form',
title: '查看', title: '查看',
url: top.$.rootUrl + '/LR_OAModule/Notice/FormFlow?keyValue=' + keyValue, url: top.$.rootUrl + '/LR_OAModule/Notice/FormFlow?keyValue=' + keyValue,
width: 800,
height: 700,
width: 1000,
height: 650,
btn: null btn: null
}); });
} }


+ 7
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/MessageRind/MessageRindService.cs View File

@@ -4,6 +4,7 @@ using Learun.Util;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Linq;
using System.Text; using System.Text;


namespace Learun.Application.TwoDevelopment.LR_Desktop namespace Learun.Application.TwoDevelopment.LR_Desktop
@@ -183,8 +184,12 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
} }
else else
{ {
entity.Create();
this.BaseRepository().Insert(entity);
if (this.BaseRepository().FindList<MessageRemindEntity>(x =>
x.ReceiptId == entity.ReceiptId && x.InstanceId == entity.InstanceId).Count() <= 0)
{
entity.Create();
this.BaseRepository().Insert(entity);
}
} }
} }
catch (Exception ex) catch (Exception ex)


Loading…
Cancel
Save