ソースを参照

失物招领改为新建表,加发布、认领、撤下功能。首页失物招领新建查看详情页面

金隅分支
zhangli 3年前
コミット
fde18615b5
28個のファイルの変更1348行の追加423行の削除
  1. +178
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/LostArticleInfoController.cs
  2. +0
    -34
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs
  3. +25
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/Form.cshtml
  4. +9
    -9
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/Form.js
  5. +22
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/FormClaim.cshtml
  6. +143
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/FormClaim.js
  7. +41
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/FormView.cshtml
  8. +55
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/FormView.js
  9. +7
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/Index.cshtml
  10. +96
    -19
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/Index.js
  11. +0
    -50
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormLostArticle.cshtml
  12. +0
    -50
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormLostArticleView.cshtml
  13. +0
    -123
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormLostArticleView.js
  14. +9
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs
  15. +11
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  16. +14
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js
  17. +49
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndexLost.cshtml
  18. +59
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndexLost.js
  19. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_Desktop/LostArticleInfoMap.cs
  20. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  21. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Learun.Application.OA.csproj
  22. +193
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/LostArticleInfo/LostArticleInfoBLL.cs
  23. +109
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/LostArticleInfo/LostArticleInfoEntity.cs
  24. +64
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/LostArticleInfo/LostArticleInfoIBLL.cs
  25. +229
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/LostArticleInfo/LostArticleInfoService.cs
  26. +0
    -44
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs
  27. +0
    -14
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs
  28. +1
    -69
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs

+ 178
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/LostArticleInfoController.cs ファイルの表示

@@ -0,0 +1,178 @@
using Learun.Application.OA;
using Learun.Util;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Learun.Application.Base.AuthorizeModule;
using Learun.Application.Base.SystemModule;
using Learun.Application.Organization;
using Learun.Application.TwoDevelopment.LR_Desktop;
using Learun.Util.Operat;
using Microsoft.AspNet.SignalR.Client;
using Microsoft.Owin.Logging;
using Newtonsoft.Json;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using Learun.Application.TwoDevelopment.Permission;

namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创建人:zl
/// 日 期:2021.05.20
/// 描 述:失物招领管理
/// </summary>
public class LostArticleInfoController : MvcControllerBase
{
private LostArticleInfoIBLL lostArticleInfoIBLL = new LostArticleInfoBLL();

#region 视图功能
/// <summary>
/// 页面
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页面
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
/// <summary>
/// 失物招领表单
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult FormView()
{
return View();
}

/// <summary>
/// 认领
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult FormClaim()
{
return View();
}

#endregion

#region 获取数据
/// <summary>
/// 获取分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="keyword">关键词</param>
/// <returns></returns>
public ActionResult GetPageList(string pagination, string keyword)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = lostArticleInfoIBLL.GetPageList(paginationobj, keyword);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records,
};
return JsonResult(jsonData);
}
/// <summary>
/// 获取实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public ActionResult GetEntity(string keyValue)
{
var data = lostArticleInfoIBLL.GetLostArticleInfoEntity(keyValue);
data.F_Content = WebHelper.HtmlDecode(data.F_Content);
return JsonResult(data);
}

#endregion

#region 提交数据

/// <summary>
/// 保存表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
[HttpPost, ValidateAntiForgeryToken, AjaxOnly]
public ActionResult SaveForm(string keyValue, LostArticleInfoEntity entity)
{
entity.F_Content = WebHelper.HtmlEncode(entity.F_Content);
entity.F_State = 0;
lostArticleInfoIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
}

/// <summary>
/// 删除表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
lostArticleInfoIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}

/// <summary>
/// 发布
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult PublishForm(string keyValue)
{
lostArticleInfoIBLL.PublishForm(keyValue);
return Success("发布成功!");
}
/// <summary>
/// 认领
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult ClaimForm(string keyValue, LostArticleInfoEntity entity)
{
lostArticleInfoIBLL.ClaimForm(keyValue, entity);
return Success("认领成功!");
}
/// <summary>
/// 撤下
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult CancleForm(string keyValue)
{
lostArticleInfoIBLL.CancleForm(keyValue);
return Success("已撤下!");
}
#endregion

}
}

+ 0
- 34
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs ファイルの表示

@@ -177,26 +177,6 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
return JsonResult(jsonData);
}

/// <summary>
/// 获取失物招领分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="keyword">关键词</param>
/// <returns></returns>
public ActionResult GetPageListForLostArticle(string pagination, string keyword)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = noticeIBLL.GetPageListForLostArticle(paginationobj, keyword);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records,
};
return JsonResult(jsonData);
}

/// <summary>
/// 查看通知公告
/// </summary>
@@ -470,20 +450,6 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
}
}

/// <summary>
/// 保存表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
[HttpPost, ValidateAntiForgeryToken, AjaxOnly]
public ActionResult SaveFormForLostArticle(string keyValue, NewsEntity entity)
{
entity.F_NewsContent = WebHelper.HtmlEncode(entity.F_NewsContent);
noticeIBLL.SaveFormForLostArticle(keyValue, entity);
return Success("保存成功!");
}

/// <summary>
/// 删除表单数据
/// </summary>


+ 25
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/Form.cshtml ファイルの表示

@@ -0,0 +1,25 @@
@{
ViewBag.Title = "发布失物招领";
Layout = "~/Views/Shared/_Form.cshtml";
}

<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">公告标题<font face="宋体">*</font></div>
<input id="F_FullHead" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请输入标题" />
</div>
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">发布时间<font face="宋体">*</font></div>
<input id="F_ReleaseTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy/MM/dd HH:mm' })" isvalid="yes" checkexpession="NotNull" value="@Learun.Util.Time.GetToday("yyyy/MM/dd HH:mm")" />
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">标题图片</div>
<div id="F_Image"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">公告内容</div>
<div id="editor" style="height:300px;"></div>
</div>
</div>

@Html.AppendJsFile("/Areas/LR_OAModule/Views/LostArticleInfo/Form.js")

Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormLostArticle.js → Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/Form.js ファイルの表示

@@ -27,7 +27,7 @@ var bootstrap = function ($, learun) {
bind: function () {
//var loginInfo = top.learun.clientdata.get(['userinfo']);

$('#F_NewsImage').lrUploader();
$('#F_Image').lrUploader();

//内容编辑器
ue = UE.getEditor('editor');
@@ -36,10 +36,12 @@ var bootstrap = function ($, learun) {
if (!!keyValue) {
//$('#form').lrSetFormData(selectedRow);
//$("#F_ReleaseTime").val(learun.formatDate(selectedRow.F_ReleaseTime, 'yyyy/MM/dd hh:mm'));
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/Notice/GetEntity?keyValue=' + keyValue, function (data) {
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/GetEntity?keyValue=' + keyValue, function (data) {
$('#form').lrSetFormData(data);
setTimeout(function () {
ue.setContent(decodeURI(data.F_NewsContent));
if (data.F_Content) {
ue.setContent(decodeURI(data.F_Content));
};
}, 100);
});
}
@@ -77,9 +79,8 @@ var bootstrap = function ($, learun) {
return false;
}
var postData = $('#form').lrGetFormData(keyValue);
postData["F_NewsContent"] = encodeURI(ue.getContent(null, null, true));
console.log("1111111111111");
$.lrSaveForm(top.$.rootUrl + '/LR_OAModule/Notice/SaveFormForLostArticle?keyValue=' + keyValue, postData, function (res) {
postData["F_Content"] = encodeURI(ue.getContent(null, null, true));
$.lrSaveForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
@@ -117,9 +118,8 @@ var bootstrap = function ($, learun) {
return false;
}
var postData = $('#form').lrGetFormData(keyValue);
postData["F_NewsContent"] = encodeURI(ue.getContent(null, null, true));
console.log("2222222222");
$.lrSaveForm(top.$.rootUrl + '/LR_OAModule/Notice/SaveFormForLostArticle?keyValue=' + keyValue, postData, function (res) {
postData["F_Content"] = encodeURI(ue.getContent(null, null, true));
$.lrSaveForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();

+ 22
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/FormClaim.cshtml ファイルの表示

@@ -0,0 +1,22 @@
@{
ViewBag.Title = "失物招领认领";
Layout = "~/Views/Shared/_Form.cshtml";
}

<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">认领人<font face="宋体">*</font></div>
<input id="F_User" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请输入认领人" />
</div>
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">认领时间<font face="宋体">*</font></div>
<input id="F_UserTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy/MM/dd HH:mm' })" isvalid="yes" checkexpession="NotNull" value="@Learun.Util.Time.GetToday("yyyy/MM/dd HH:mm")" />
</div>

<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">认领照片</div>
<div id="F_ClaimImage"></div>
</div>
</div>

@Html.AppendJsFile("/Areas/LR_OAModule/Views/LostArticleInfo/FormClaim.js")

+ 143
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/FormClaim.js ファイルの表示

@@ -0,0 +1,143 @@
/*
* 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:陈彬彬
* 日 期:2017.11.11
* 描 述:公告通知
*/
var acceptClick;
var keyValue = request('keyValue');
// 设置权限
var setAuthorize;
// 设置表单数据
var setFormData;
var isUpdate;
// 验证数据是否填写完整
var validForm;
// 保存数据
var save;
var bootstrap = function ($, learun) {
"use strict";
var ue;
var page = {
init: function () {
page.bind();
page.initData();
},
bind: function () {
//var loginInfo = top.learun.clientdata.get(['userinfo']);

$('#F_ClaimImage').lrUploader();

//内容编辑器
//ue = UE.getEditor('editor');
},
initData: function () {
if (!!keyValue) {
//$('#form').lrSetFormData(selectedRow);
//$("#F_ReleaseTime").val(learun.formatDate(selectedRow.F_ReleaseTime, 'yyyy/MM/dd hh:mm'));
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/GetEntity?keyValue=' + keyValue, function (data) {
$('#form').lrSetFormData(data);
setTimeout(function () {
if (data.F_Content) {
ue.setContent(decodeURI(data.F_Content));
};
}, 100);
});
}
}
};
// 设置表单数据
//setFormData = function (processId) {
// if (!!processId) {
// $.lrSetForm(top.$.rootUrl + '/LR_OAModule/Notice/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 == 'Sys_ReceiveFile') {
// keyValue = data[id].F_DeptRelationId;
// }
// $('[data-table="' + id + '"]').lrSetFormData(data[id]);
// }
// }
// });
// }
//}
// 验证数据是否填写完整
validForm = function () {
if (!$('#form').lrValidform()) {
return false;
}
return true;
};
// 保存数据
save = function (processId, callBack, i) {

if (!$('#form').lrValidform()) {
return false;
}
var postData = $('#form').lrGetFormData(keyValue);
//postData["F_Content"] = encodeURI(ue.getContent(null, null, true));
$.lrSaveForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/ClaimForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
//callBack(res, formData, i);
}
});

//var formData = $('body').lrGetFormData();
//if (!!processId) {
// formData.RProcessId = processId;
//}

//learun.clientdata.getAsync('dataItem', {

// key: $("#F_CategoryId").lrselectGet(),
// code: 'NoticeCategory',
// callback: function (_data) {
// $("#F_Category").val(_data.text);

// }
//});


//$.lrSaveForm(top.$.rootUrl + '/LR_OAModule/Notice/SaveForm?keyValue=' + keyValue, formData, function (res) {
// // 保存成功后才回调
// if (!!callBack) {
// callBack(res, formData, i);
// }
//});
};

acceptClick = function (callBack) {
if (!$('#form').lrValidform()) {
return false;
}
var postData = $('#form').lrGetFormData(keyValue);
//postData["F_Content"] = encodeURI(ue.getContent(null, null, true));
$.lrSaveForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/ClaimForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
//learun.clientdata.getAsync('dataItem', {
// key: $("#F_CategoryId").lrselectGet(),
// code: 'NoticeCategory',
// callback: function (_data) {
// $("#F_Category").val(_data.text);

// }
//});


}
page.init();
}



+ 41
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/FormView.cshtml ファイルの表示

@@ -0,0 +1,41 @@
@{
ViewBag.Title = "发布失物招领";
Layout = "~/Views/Shared/_Form.cshtml";
}

<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">公告标题<font face="宋体">*</font></div>
<input id="F_FullHead" readonly="readonly" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请输入标题" />
</div>
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">发布时间<font face="宋体">*</font></div>
<input id="F_ReleaseTime" readonly="readonly" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy/MM/dd HH:mm' })" isvalid="yes" checkexpession="NotNull" value="@Learun.Util.Time.GetToday("yyyy/MM/dd HH:mm")" />
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">标题图片</div>
<div id="F_Image" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">公告内容</div>
<div id="editor" style="height:300px;" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">认领人</div>
<input id="F_User" readonly="readonly" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">认领时间</div>
<input id="F_UserTime" readonly="readonly" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy/MM/dd HH:mm' })" isvalid="yes" checkexpession="NotNull" value="@Learun.Util.Time.GetToday("yyyy/MM/dd HH:mm")" />
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">认领照片</div>
<div id="F_ClaimImage" readonly="readonly"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">经手人</div>
<input id="F_ManageUserName" readonly="readonly" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
</div>

@Html.AppendJsFile("/Areas/LR_OAModule/Views/LostArticleInfo/FormView.js")

+ 55
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/FormView.js ファイルの表示

@@ -0,0 +1,55 @@
/*
* 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:陈彬彬
* 日 期:2017.11.11
* 描 述:公告通知
*/
var acceptClick;
var keyValue = request('keyValue');
// 设置权限
var setAuthorize;
// 设置表单数据
var setFormData;
var isUpdate;
// 验证数据是否填写完整
var validForm;
// 保存数据
var save;
var bootstrap = function ($, learun) {
"use strict";
var ue;
var page = {
init: function () {
page.bind();
page.initData();
},
bind: function () {
//var loginInfo = top.learun.clientdata.get(['userinfo']);

$('#F_Image').lrUploader();
$('#F_ClaimImage').lrUploader();

//内容编辑器
ue = UE.getEditor('editor');
},
initData: function () {
if (!!keyValue) {
//$('#form').lrSetFormData(selectedRow);
//$("#F_ReleaseTime").val(learun.formatDate(selectedRow.F_ReleaseTime, 'yyyy/MM/dd hh:mm'));
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/GetEntity?keyValue=' + keyValue, function (data) {
$('#form').lrSetFormData(data);
setTimeout(function () {
if (data.F_Content) {
ue.setContent(decodeURI(data.F_Content));
}
}, 100);
});
}
}
};

page.init();
}



Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexLostArticle.cshtml → Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/Index.cshtml ファイルの表示

@@ -20,15 +20,20 @@
</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;<span class="lrlt">录入</span></a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;<span class="lrlt">修改</span></a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;<span class="lrlt">编辑</span></a>
<a id="lr_view" 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>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr-publish" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 发布</a>
<a id="lr-claim" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 认领</a>
<a id="lr-cancle" 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/LR_OAModule/Views/Notice/IndexLostArticle.js")
@Html.AppendJsFile("/Areas/LR_OAModule/Views/LostArticleInfo/Index.js")


Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexLostArticle.js → Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/LostArticleInfo/Index.js ファイルの表示

@@ -29,7 +29,7 @@ var bootstrap = function ($, learun) {
learun.layerForm({
id: 'form',
title: '添加公告',
url: top.$.rootUrl + '/LR_OAModule/Notice/FormLostArticle',
url: top.$.rootUrl + '/LR_OAModule/LostArticleInfo/Form',
width: 1000,
height: 650,
maxmin: true,
@@ -49,21 +49,21 @@ var bootstrap = function ($, learun) {
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('F_NewsId');
var keyValue = $('#gridtable').jfGridValue('F_LId');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(",") != -1) {
learun.alert.warning("只能选择一条记录进行编辑!");
return false;
}
var SendFlag = $('#gridtable').jfGridValue('F_Status');
if (SendFlag == "1" || SendFlag == "2") {
var F_State = $('#gridtable').jfGridValue('F_State');
if (F_State != "0") {
learun.alert.warning("当前项目已提交不能编辑!");
return;
}
learun.layerForm({
id: 'formedit',
title: '编辑公告',
url: top.$.rootUrl + '/LR_OAModule/Notice/FormLostArticle?keyValue=' + keyValue,
url: top.$.rootUrl + '/LR_OAModule/LostArticleInfo/Form?keyValue=' + keyValue,
width: 1000,
height: 650,
maxmin: true,
@@ -75,7 +75,7 @@ var bootstrap = function ($, learun) {
});
// 查看
$('#lr_view').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('F_NewsId');
var keyValue = $('#gridtable').jfGridValue('F_LId');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(",") != -1) {
learun.alert.warning("只能选择一条记录查看!");
@@ -84,9 +84,9 @@ var bootstrap = function ($, learun) {
learun.layerForm({
id: 'form',
title: '查看',
url: top.$.rootUrl + '/LR_OAModule/Notice/FormLostArticleView?keyValue=' + keyValue,
url: top.$.rootUrl + '/LR_OAModule/LostArticleInfo/FormView?keyValue=' + keyValue,
width: 800,
height: 650,
height: 750,
btn: null
});
}
@@ -94,11 +94,11 @@ var bootstrap = function ($, learun) {
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('F_NewsId');
var keyValue = $('#gridtable').jfGridValue('F_LId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/LR_OAModule/Notice/DeleteForm', { keyValue: keyValue }, function () {
learun.deleteForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
@@ -106,29 +106,106 @@ var bootstrap = function ($, learun) {
}
});

//  发布
$('#lr-publish').on('click', function () {
var F_State = $('#gridtable').jfGridValue('F_State');
if (F_State != "0") {
learun.alert.warning("当前项目已提交不能发布!");
return;
}

var keyValue = $('#gridtable').jfGridValue('F_LId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认发布!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/PublishForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
//  认领
$('#lr-claim').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('F_LId');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(",") != -1) {
learun.alert.warning("只能选择一条记录进行认领!");
return false;
}
var F_State = $('#gridtable').jfGridValue('F_State');
if (F_State != "1") {
learun.alert.warning("只有已发布才可以认领!");
return;
}
learun.layerForm({
id: 'formedit',
title: '认领',
url: top.$.rootUrl + '/LR_OAModule/LostArticleInfo/FormClaim?keyValue=' + keyValue,
width: 600,
height: 350,
maxmin: true,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
//  撤下
$('#lr-cancle').on('click', function () {
//var F_State = $('#gridtable').jfGridValue('F_State');
//if (F_State != "2") {
// learun.alert.warning("当前项目已认领不能撤下!");
// return;
//}
var keyValue = $('#gridtable').jfGridValue('F_LId');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认撤下!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/CancleForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});

},
initGrid: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LR_OAModule/Notice/GetPageListForLostArticle',
url: top.$.rootUrl + '/LR_OAModule/LostArticleInfo/GetPageList',
headData: [
{ label: '标题', name: 'F_FullHead', index: 'F_FullHead', width: 600, align: 'left' },
{ label: '发布人员', name: 'F_CreateUserName', index: 'F_CreateUserName', width: 100, align: 'left' },
{
label: "发布时间", name: "F_ReleaseTime", index: "F_ReleaseTime", width: 140, align: "left",
formatter: function (cellvalue) {
label: "发布时间",
name: "F_ReleaseTime",
index: "F_ReleaseTime",
width: 140,
align: "left",
formatter: function(cellvalue) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm');
}
},
{ label: "创建时间", name: "F_CreateDate", index: "F_CreateDate", width: 130, align: 'left' }
{
label: "状态", name: "F_State", index: "F_State", width: 140, align: "left",
formatter: function(cellvalue) {
if (cellvalue == 0)
return "<span class=\"label label-default\">草稿</span>";
else if (cellvalue == 1)
return "<span class=\"label label-success\">已发布</span>";
else if (cellvalue == 3)
return "<span class=\"label label-warning\">已撤下</span>";
}
},
//{ label: "创建时间", name: "F_CreateTime", index: "F_CreateDate", width: 130, align: 'left' }
],
mainId: 'F_NewsId',
mainId: 'F_LId',
reloadSelected: true,
isMultiselect: true,
isPage: true,
sidx: 'F_CreateDate',
sidx: 'F_CreateTime',
sord: 'desc'
});
page.search();

+ 0
- 50
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormLostArticle.cshtml ファイルの表示

@@ -1,50 +0,0 @@
@{
ViewBag.Title = "发布失物招领";
Layout = "~/Views/Shared/_Form.cshtml";
}

<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">公告标题<font face="宋体">*</font></div>
<input id="F_FullHead" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请输入标题" />
</div>
@*<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">公告类别<font face="宋体">*</font></div>
<div id="F_CategoryId" isvalid="yes" checkexpession="NotNull"></div>
<input type="hidden" id="F_Category" />
</div>*@
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">发布时间<font face="宋体">*</font></div>
<input id="F_ReleaseTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy/MM/dd HH:mm' })" isvalid="yes" checkexpession="NotNull" value="@Learun.Util.Time.GetToday("yyyy/MM/dd HH:mm")" />
</div>
@*<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">信息来源<font face="宋体">*</font></div>
<input id="F_SourceName" type="text" isvalid="yes" checkexpession="NotNull" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">来源地址</div>
<input id="F_SourceAddress" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">接收部门</div>
<div id="F_SendDeptId"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">接收岗位</div>
<div id="F_SendPostId"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">下发飞星</div>
<div id="F_IsSendFX"></div>
</div>*@
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">标题图片</div>
<div id="F_NewsImage"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">公告内容</div>
<div id="editor" style="height:300px;"></div>
</div>
</div>

@Html.AppendJsFile("/Areas/LR_OAModule/Views/Notice/FormLostArticle.js")

+ 0
- 50
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormLostArticleView.cshtml ファイルの表示

@@ -1,50 +0,0 @@
@{
ViewBag.Title = "发布失物招领";
Layout = "~/Views/Shared/_Form.cshtml";
}

<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">公告标题<font face="宋体">*</font></div>
<input id="F_FullHead" readonly="readonly" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请输入标题" />
</div>
@*<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">公告类别<font face="宋体">*</font></div>
<div id="F_CategoryId" isvalid="yes" checkexpession="NotNull"></div>
<input type="hidden" id="F_Category" />
</div>*@
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">发布时间<font face="宋体">*</font></div>
<input id="F_ReleaseTime" readonly="readonly" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy/MM/dd HH:mm' })" isvalid="yes" checkexpession="NotNull" value="@Learun.Util.Time.GetToday("yyyy/MM/dd HH:mm")" />
</div>
@*<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">信息来源<font face="宋体">*</font></div>
<input id="F_SourceName" type="text" isvalid="yes" checkexpession="NotNull" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">来源地址</div>
<input id="F_SourceAddress" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">接收部门</div>
<div id="F_SendDeptId"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">接收岗位</div>
<div id="F_SendPostId"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">下发飞星</div>
<div id="F_IsSendFX"></div>
</div>*@
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">标题图片</div>
<div id="F_NewsImage" readonly="readonly" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="OANews">
<div class="lr-form-item-title">公告内容</div>
<div id="editor" style="height:300px;" readonly="readonly" ></div>
</div>
</div>

@Html.AppendJsFile("/Areas/LR_OAModule/Views/Notice/FormLostArticleView.js")

+ 0
- 123
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormLostArticleView.js ファイルの表示

@@ -1,123 +0,0 @@
/*
* 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:陈彬彬
* 日 期:2017.11.11
* 描 述:公告通知
*/
var acceptClick;
var keyValue = request('keyValue');
// 设置权限
var setAuthorize;
// 设置表单数据
var setFormData;
var isUpdate;
// 验证数据是否填写完整
var validForm;
// 保存数据
var save;
var bootstrap = function ($, learun) {
"use strict";
var ue;
var page = {
init: function () {
page.bind();
page.initData();
},
bind: function () {
//var loginInfo = top.learun.clientdata.get(['userinfo']);

$('#F_NewsImage').lrUploader();

//内容编辑器
ue = UE.getEditor('editor');
},
initData: function () {
if (!!keyValue) {
//$('#form').lrSetFormData(selectedRow);
//$("#F_ReleaseTime").val(learun.formatDate(selectedRow.F_ReleaseTime, 'yyyy/MM/dd hh:mm'));
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/Notice/GetEntity?keyValue=' + keyValue, function (data) {
$('#form').lrSetFormData(data);
setTimeout(function () {
ue.setContent(decodeURI(data.F_NewsContent));
}, 100);
});
}
}
};

//// 验证数据是否填写完整
//validForm = function () {
// if (!$('#form').lrValidform()) {
// return false;
// }
// return true;
//};
//// 保存数据
//save = function (processId, callBack, i) {

// if (!$('#form').lrValidform()) {
// return false;
// }
// var postData = $('#form').lrGetFormData(keyValue);
// postData["F_NewsContent"] = ue.getContent(null, null, true);
// $.lrSaveForm(top.$.rootUrl + '/LR_OAModule/Notice/SaveFormForLostArticle?keyValue=' + keyValue, postData, function (res) {
// // 保存成功后才回调
// if (!!callBack) {
// callBack(res, formData, i);
// }
// });

// //var formData = $('body').lrGetFormData();
// //if (!!processId) {
// // formData.RProcessId = processId;
// //}

// //learun.clientdata.getAsync('dataItem', {

// // key: $("#F_CategoryId").lrselectGet(),
// // code: 'NoticeCategory',
// // callback: function (_data) {
// // $("#F_Category").val(_data.text);


// // }
// //});


// //$.lrSaveForm(top.$.rootUrl + '/LR_OAModule/Notice/SaveForm?keyValue=' + keyValue, formData, function (res) {
// // // 保存成功后才回调
// // if (!!callBack) {
// // callBack(res, formData, i);
// // }
// //});
//};

//acceptClick = function (callBack) {
// if (!$('#form').lrValidform()) {
// return false;
// }
// var postData = $('#form').lrGetFormData(keyValue);
// postData["F_NewsContent"] = ue.getContent(null, null, true);
// $.lrSaveForm(top.$.rootUrl + '/LR_OAModule/Notice/SaveFormForLostArticle?keyValue=' + keyValue, postData, function (res) {
// // 保存成功后才回调
// if (!!callBack) {
// callBack();
// }
// });
// //learun.clientdata.getAsync('dataItem', {
// // key: $("#F_CategoryId").lrselectGet(),
// // code: 'NoticeCategory',
// // callback: function (_data) {
// // $("#F_Category").val(_data.text);


// // }
// //});


//}
page.init();
}



+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs ファイルの表示

@@ -595,6 +595,15 @@ namespace Learun.Application.Web.Controllers
{
return View();
}
/// <summary>
/// 失物招领
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult ListContentIndexLost()
{
return View();
}
#endregion

#region 开发向导


+ 11
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj ファイルの表示

@@ -416,6 +416,7 @@
<Compile Include="Areas\LR_OAModule\Controllers\EmailController.cs" />
<Compile Include="Areas\LR_OAModule\Controllers\ModuleExportController.cs" />
<Compile Include="Areas\LR_OAModule\Controllers\NewsController.cs" />
<Compile Include="Areas\LR_OAModule\Controllers\LostArticleInfoController.cs" />
<Compile Include="Areas\LR_OAModule\Controllers\NoticeController.cs" />
<Compile Include="Areas\LR_OAModule\Controllers\ProjectGanttController.cs" />
<Compile Include="Areas\LR_OAModule\Controllers\ResourceFileController.cs" />
@@ -1305,11 +1306,12 @@
<Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\Form.js" />
<Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\Index.js" />
<Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\StampDetailIndex.js" />
<Content Include="Areas\LR_OAModule\Views\Notice\FormLostArticleView.js" />
<Content Include="Areas\LR_OAModule\Views\Notice\FormLostArticle.js" />
<Content Include="Areas\LR_OAModule\Views\LostArticleInfo\FormClaim.js" />
<Content Include="Areas\LR_OAModule\Views\LostArticleInfo\Form.js" />
<Content Include="Areas\LR_OAModule\Views\LostArticleInfo\FormView.js" />
<Content Include="Areas\LR_OAModule\Views\LostArticleInfo\Index.js" />
<Content Include="Areas\LR_OAModule\Views\Notice\FormFlowView.js" />
<Content Include="Areas\LR_OAModule\Views\Notice\FormFlow.js" />
<Content Include="Areas\LR_OAModule\Views\Notice\IndexLostArticle.js" />
<Content Include="Areas\LR_OAModule\Views\Notice\IndexRecycle.js" />
<Content Include="Areas\LR_OAModule\Views\Notice\IndexFlow.js" />
<Content Include="Areas\LR_OAModule\Views\ResourceFile\BcIndex.js" />
@@ -5128,6 +5130,7 @@
<Content Include="Views\Utility\GirdSelectIndex.js" />
<Content Include="Views\Utility\JfGirdLayerForm.css" />
<Content Include="Views\Utility\JfGirdLayerForm.js" />
<Content Include="Views\Utility\ListContentIndexLost.js" />
<Content Include="Views\Utility\ListContentIndex.js" />
<Content Include="Views\Utility\PCDevGuideIndex.js" />
<Content Include="Views\Utility\PreviewForm.js" />
@@ -7175,9 +7178,6 @@
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\Peichart.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\StatisticIndex.cshtml" />
<Content Include="Areas\LR_Desktop\Views\MessageRind\UnreadIndex.cshtml" />
<Content Include="Areas\LR_OAModule\Views\Notice\IndexLostArticle.cshtml" />
<Content Include="Areas\LR_OAModule\Views\Notice\FormLostArticle.cshtml" />
<Content Include="Areas\LR_OAModule\Views\Notice\FormLostArticleView.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\Emp_Payroll\StatisticIndex.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\VisitorInfo\FormAdd.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\VisitorInfo\FormAdd2.cshtml" />
@@ -7185,6 +7185,10 @@
<Content Include="Areas\PersonnelManagement\Views\Emp_PayrollOnce\Index.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\Emp_PayrollOnce\StatisticIndex.cshtml" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\LeaveFiling.cshtml" />
<Content Include="Areas\LR_OAModule\Views\LostArticleInfo\Form.cshtml" />
<Content Include="Areas\LR_OAModule\Views\LostArticleInfo\FormView.cshtml" />
<Content Include="Areas\LR_OAModule\Views\LostArticleInfo\Index.cshtml" />
<Content Include="Areas\LR_OAModule\Views\LostArticleInfo\FormClaim.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" />
@@ -7267,6 +7271,7 @@
<None Include="Properties\PublishProfiles\FolderProfile2.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile3.pubxml" />
<None Include="Properties\PublishProfiles\learunadms6.1.pubxml" />
<Content Include="Views\Utility\ListContentIndexLost.cshtml" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />


+ 14
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js ファイルの表示

@@ -114,13 +114,15 @@ $(function () {
var n = $(this).parents(".col-xs-6");
var o = n.attr("data-Id");
var p = $(this)[0].item;
if (d[o].F_ItemUrl) {
top.learun.frameTab.open({
F_ModuleId: "dtlist" + p.f_id,
F_FullName: p.f_title,
F_UrlAddress: d[o].F_ItemUrl + p.f_id
})
} else {
});
}
else {
//判断点击项是否为‘待办’的子项
if (d[o].F_Id == "33d50f1a-a64d-4b86-a6d4-2d937226de95") {
if (p.f_tasktype != 2) {
@@ -134,11 +136,20 @@ $(function () {
}
} else {
top["dtlist" + p.f_id] = p;
if (p.islost) {
top.learun.frameTab.open({
F_ModuleId: "dtlist" + p.f_id,
F_FullName: p.f_title,
F_UrlAddress: "/Utility/ListContentIndexLost?id=" + p.f_id
});
} else {
top.learun.frameTab.open({
F_ModuleId: "dtlist" + p.f_id,
F_FullName: p.f_title,
F_UrlAddress: "/Utility/ListContentIndex?id=" + p.f_id
})
})
}

}
}
return false


+ 49
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndexLost.cshtml ファイルの表示

@@ -0,0 +1,49 @@

@{
ViewBag.Title = "ListContentIndex";
Layout = "~/Views/Shared/_Form.cshtml";
}
<link rel="stylesheet" type="text/css" href="~/Content/news/css/common.css">
<link rel="stylesheet" type="text/css" href="~/Content/news/css/style.css">
<script src="~/Content/news/js/easing.js"></script>
<script src="~/Content/news/js/main.js"></script>
<style>
body {
background-color: #ffffff !important
}
</style>
<!-- / warpper -->
<div class="warpper" style="margin-top: 50px;">
<!-- / list_sec1 -->
<div class="list_sec list_sec1">
<div class="index_box">
<div class="listDotT" id="F_FullHead"></div>
<div class="listDotTime">
<span>发布时间:<span id="F_CreateDate"></span></span>
<span id="msgSource">信息来源:<span id="F_CreateUserName"></span></span>
<span id="newType">公告类别:<span id="F_Category"></span></span>
</div>
<div class="listDotBox" id="F_NewsContent">
</div>
<div id="F_NewsImage"></div>
</div>
</div>
<div class="list_sec2s list_sec">
<div class="index_box">
<!-- <div class="listSec2sTitle">已读人员</div> -->
<div class="inSec1T"><span>已读人员</span></div>
<ul class="listSec2sList" id="readlist">
@*<li>
<span class="listSec2sT">一个的</span>
<span class="listSec2sTime">2018-09-02</span>
</li>*@
</ul>
</div>
</div>
<!-- / list_sec1 -->
</div>
<!-- / warpper -->


@Html.AppendJsFile("/Views/Utility/ListContentIndexLost.js")

+ 59
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndexLost.js ファイルの表示

@@ -0,0 +1,59 @@
/*
* 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:陈彬彬
* 日 期:2018.04.28
* 描 述:桌面消息查看
*/
var id = request('id');
var bootstrap = function ($, learun) {
"use strict";

var page = {
init: function () {
$('#F_NewsImage').lrUploader({ isUpload: false, isView:false});
$('.warpper').lrscroll();
var item = top['dtlist' + id];
if(false){// (!!item) {
$("#F_FullHead").text(item.f_title);
$("#F_CreateDate").text(item.f_createdate);
$("#F_CreateUserName").text(item.f_createusername);
$("#F_Category").text(item.f_category);
$("#F_NewsContent").html($('<div></div>').html(item.f_content).text());
} else {
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/LostArticleInfo/GetEntity?keyValue=' + id, function (data) {
data.F_NewsContent = decodeURI(data.F_Content);
$('.inSec1T').attr("hidden", "hidden");
$('#readlist').attr("hidden", "hidden");
$('#msgSource').attr("hidden", "hidden");
$('#newType').attr("hidden", "hidden");

$("#F_FullHead").text(data.F_FullHead);
$("#F_CreateDate").text(data.F_CreateTime);
$("#F_CreateUserName").text(data.F_CreateUserName == null ? "" : data.F_CreateUserName);
$("#F_Category").text('失物招领');
$("#F_NewsContent").html($('<div></div>').html(data.F_NewsContent));
$('#F_NewsImage').lrUploaderSet(data.F_Image);
});
}
//阅读
learun.httpAsyncPost(top.$.rootUrl + "/LR_Desktop/LR_OA_NewsRead/NewsRead", { newsId: id }, function (res) {

});
//阅读者列表
learun.httpAsyncGet(top.$.rootUrl + "/LR_Desktop/LR_OA_NewsRead/GetNewsReadList?newsId=" + id, function (res) {
if (res.code == 200) {
var html = '';
for (var i = 0; i < res.data.rows.length; i++) {
var item = res.data.rows[i];
html += '<li><span class="listSec2sT">' + item.RUserName + '</span><span class="listSec2sTime">' + item.RTime + '</span></li>';
}
$('#readlist').html(html);
}
});


}
};
page.init();
}

+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_Desktop/LostArticleInfoMap.cs ファイルの表示

@@ -0,0 +1,29 @@
using Learun.Application.OA;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-20 15:14
/// 描 述:失物招领
/// </summary>
public class LostArticleInfoMap : EntityTypeConfiguration<LostArticleInfoEntity>
{
public LostArticleInfoMap()
{
#region 表、主键
//表
this.ToTable("LOSTARTICLEINFO");
//主键
this.HasKey(t => t.F_LId);
#endregion

#region 配置关系
#endregion
}
}
}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj ファイルの表示

@@ -559,6 +559,7 @@
<Compile Include="LR_Desktop\MessageRemindMap.cs" />
<Compile Include="AssetManagementSystem\Ass_Storage_RoomMap.cs" />
<Compile Include="PersonnelManagement\VisitorInfoMap.cs" />
<Compile Include="LR_Desktop\LostArticleInfoMap.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Learun.Application.OA.csproj ファイルの表示

@@ -132,6 +132,10 @@
<Compile Include="Gantt\JQueryGanttEntity.cs" />
<Compile Include="Gantt\JQueryGanttIBLL.cs" />
<Compile Include="Gantt\JQueryGanttService.cs" />
<Compile Include="LostArticleInfo\LostArticleInfoBLL.cs" />
<Compile Include="LostArticleInfo\LostArticleInfoEntity.cs" />
<Compile Include="LostArticleInfo\LostArticleInfoIBLL.cs" />
<Compile Include="LostArticleInfo\LostArticleInfoService.cs" />
<Compile Include="LR_StampManage\LR_StampManageBLL.cs" />
<Compile Include="LR_StampManage\LR_StampManageEntity.cs" />
<Compile Include="LR_StampManage\LR_StampManageIBLL.cs" />


+ 193
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/LostArticleInfo/LostArticleInfoBLL.cs ファイルの表示

@@ -0,0 +1,193 @@
using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.OA
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-20 15:14
/// 描 述:失物招领
/// </summary>
public class LostArticleInfoBLL : LostArticleInfoIBLL
{
private LostArticleInfoService lostArticleInfoService = new LostArticleInfoService();

#region 获取数据

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

/// <summary>
/// 获取LostArticleInfo表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public LostArticleInfoEntity GetLostArticleInfoEntity(string keyValue)
{
try
{
return lostArticleInfoService.GetLostArticleInfoEntity(keyValue);
}
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
{
lostArticleInfoService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 发布
/// </summary>
/// <param name="keyValue">主键</param>
public void PublishForm(string keyValue)
{
try
{
lostArticleInfoService.PublishForm(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
public void ClaimForm(string keyValue, LostArticleInfoEntity entity)
{
try
{
lostArticleInfoService.ClaimForm(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 撤下
/// </summary>
/// <param name="keyValue">主键</param>
public void CancleForm(string keyValue)
{
try
{
lostArticleInfoService.CancleForm(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
public void SaveEntity(string keyValue, LostArticleInfoEntity entity)
{
try
{
lostArticleInfoService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}
}

+ 109
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/LostArticleInfo/LostArticleInfoEntity.cs ファイルの表示

@@ -0,0 +1,109 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.OA
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-20 15:14
/// 描 述:失物招领
/// </summary>
public class LostArticleInfoEntity
{
#region 实体成员
/// <summary>
/// 主键
/// </summary>
[Column("F_LID")]
public string F_LId { get; set; }
/// <summary>
/// 标题
/// </summary>
[Column("F_FULLHEAD")]
public string F_FullHead { get; set; }
/// <summary>
/// 图片
/// </summary>
[Column("F_IMAGE")]
public string F_Image { get; set; }
/// <summary>
/// 内容
/// </summary>
[Column("F_CONTENT")]
public string F_Content { get; set; }
/// <summary>
/// 发布人员
/// </summary>
[Column("F_CREATEUSERNAME")]
public string F_CreateUserName { get; set; }
/// <summary>
/// 发布时间
/// </summary>
[Column("F_RELEASETIME")]
public DateTime? F_ReleaseTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("F_CREATETIME")]
public DateTime? F_CreateTime { get; set; }
/// <summary>
/// 状态 草稿0、已发布1、已认领2、撤下3
/// </summary>
[Column("F_STATE")]
public int? F_State { get; set; }
/// <summary>
/// 认领人
/// </summary>
[Column("F_USER")]
public string F_User { get; set; }
/// <summary>
/// 认领时间
/// </summary>
[Column("F_USERTIME")]
public DateTime? F_UserTime { get; set; }
/// <summary>
/// 认领照片
/// </summary>
[Column("F_CLAIMIMAGE")]
public string F_ClaimImage { get; set; }
/// <summary>
/// 经手人
/// </summary>
[Column("F_MANAGEUSERNAME")]
public string F_ManageUserName { get; set; }
/// <summary>
/// 经手人
/// </summary>
[Column("F_MANAGEUSERID")]
public string F_ManageUserId { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.F_LId = Guid.NewGuid().ToString();
UserInfo userInfo = LoginUserInfo.Get();
this.F_CreateUserName = userInfo.realName;
this.F_CreateTime = DateTime.Now;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.F_LId = keyValue;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 64
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/LostArticleInfo/LostArticleInfoIBLL.cs ファイルの表示

@@ -0,0 +1,64 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.OA
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-20 15:14
/// 描 述:失物招领
/// </summary>
public interface LostArticleInfoIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<LostArticleInfoEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取LostArticleInfo表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
LostArticleInfoEntity GetLostArticleInfoEntity(string keyValue);
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
void DeleteEntity(string keyValue);
/// <summary>
/// 发布
/// </summary>
/// <param name="keyValue"></param>
void PublishForm(string keyValue);
/// <summary>
/// 认领
/// </summary>
/// <param name="keyValue"></param>
/// <param name="entity"></param>
void ClaimForm(string keyValue, LostArticleInfoEntity entity);
/// <summary>
/// 撤下
/// </summary>
/// <param name="keyValue"></param>
void CancleForm(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
void SaveEntity(string keyValue, LostArticleInfoEntity entity);
#endregion

}
}

+ 229
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/LostArticleInfo/LostArticleInfoService.cs ファイルの表示

@@ -0,0 +1,229 @@
using Dapper;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Learun.Application.OA
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-05-20 15:14
/// 描 述:失物招领
/// </summary>
public class LostArticleInfoService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<LostArticleInfoEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"t.*
");
strSql.Append(" FROM LostArticleInfo t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (queryParam.HasValues)
{
if (!queryParam["F_FullHead"].IsEmpty())
{
dp.Add("F_FullHead", "%" + queryParam["F_FullHead"].ToString() + "%", DbType.String);
strSql.Append(" AND t.F_FullHead like @F_FullHead ");
}
}

return this.BaseRepository().FindList<LostArticleInfoEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取LostArticleInfo表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public LostArticleInfoEntity GetLostArticleInfoEntity(string keyValue)
{
try
{
return this.BaseRepository().FindEntity<LostArticleInfoEntity>(keyValue);
}
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().Delete<LostArticleInfoEntity>(t => t.F_LId == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
public void SaveEntity(string keyValue, LostArticleInfoEntity entity)
{
try
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
this.BaseRepository().Update(entity);
}
else
{
entity.Create();
this.BaseRepository().Insert(entity);
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}


/// <summary>
/// 发布
/// </summary>
/// <param name="keyValue">主键</param>
public void PublishForm(string keyValue)
{
try
{
//草稿0、已发布1、已认领2、撤下3
string sql = $"update LostArticleInfo set F_State=1 where F_LId='{keyValue}'";
this.BaseRepository().ExecuteBySql(sql);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 认领
/// </summary>
/// <param name="keyValue">主键</param>
public void ClaimForm(string keyValue, LostArticleInfoEntity entity)
{
try
{
//草稿0、已发布1、已认领2、撤下3
UserInfo userInfo = LoginUserInfo.Get();
string sql = $@"update LostArticleInfo set F_State=3,F_User='{entity.F_User}',F_UserTime='{entity.F_UserTime}',F_ClaimImage='{entity.F_ClaimImage}',
F_ManageUserId='{userInfo.userId}',F_ManageUserName='{userInfo.realName}' where F_LId='{keyValue}'";
this.BaseRepository().ExecuteBySql(sql);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 撤下
/// </summary>
/// <param name="keyValue">主键</param>
public void CancleForm(string keyValue)
{
try
{
//草稿0、已发布1、已认领2、撤下3
string sql = $"update LostArticleInfo set F_State=3 where F_LId='{keyValue}'";
this.BaseRepository().ExecuteBySql(sql);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion

}
}

+ 0
- 44
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs ファイルの表示

@@ -60,24 +60,6 @@ namespace Learun.Application.OA
}
}
public IEnumerable<NewsEntity> GetPageListForLostArticle(Pagination pagination, string keyword)
{
try
{
return noticeService.GetPageListForLostArticle(pagination, keyword);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 公告实体
/// </summary>
@@ -170,32 +152,6 @@ namespace Learun.Application.OA
}

}

/// <summary>
/// 保存(新增、修改)失物招领
/// </summary>
/// <param name="keyValue">主键值</param>
/// <param name="newsEntity">公告实体</param>
/// <returns></returns>
public void SaveFormForLostArticle(string keyValue, NewsEntity newsEntity)
{
try
{
noticeService.SaveFormForLostArticle(keyValue, newsEntity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}

}
#endregion
#region 扩展数据


+ 0
- 14
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs ファイルの表示

@@ -22,13 +22,6 @@ namespace Learun.Application.OA
IEnumerable<NewsEntity> GetPageList(Pagination pagination, string keyword);
IEnumerable<NewsEntity> GetPageListRevert(Pagination pagination, string keyword);
/// <summary>
/// 获取失物招领分页数据
/// </summary>
/// <param name="pagination"></param>
/// <param name="keyword"></param>
/// <returns></returns>
IEnumerable<NewsEntity> GetPageListForLostArticle(Pagination pagination, string keyword);
/// <summary>
/// 公告实体
/// </summary>
/// <param name="keyValue">主键值</param>
@@ -49,13 +42,6 @@ namespace Learun.Application.OA
/// <param name="newsEntity">公告实体</param>
/// <returns></returns>
void SaveEntity(string keyValue, NewsEntity newsEntity);

/// <summary>
/// 保存失物招领信息
/// </summary>
/// <param name="keyValue"></param>
/// <param name="newsEntity"></param>
void SaveFormForLostArticle(string keyValue, NewsEntity newsEntity);
#endregion
#region 扩展数据



+ 1
- 69
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs ファイルの表示

@@ -71,37 +71,6 @@ namespace Learun.Application.OA
}
}

/// <summary>
/// 失物招领分页列表
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="keyword">关键词</param>
/// <returns></returns>
public IEnumerable<NewsEntity> GetPageListForLostArticle(Pagination pagination, string keyword)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT * FROM LR_OA_News t WHERE t.F_TypeId = 3 and F_CategoryId=99 ");
if (!string.IsNullOrEmpty(keyword))
{
strSql.Append(" AND F_FullHead like @keyword");
}
return this.BaseRepository().FindList<NewsEntity>(strSql.ToString(), new { keyword = "%" + keyword + "%" }, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 新闻公告实体
/// </summary>
@@ -228,44 +197,7 @@ namespace Learun.Application.OA
}

}

/// <summary>
/// 保存(新增、修改)失物招领
/// </summary>
/// <param name="keyValue">主键值</param>
/// <param name="newsEntity">新闻公告实体</param>
/// <returns></returns>
public void SaveFormForLostArticle(string keyValue, NewsEntity newsEntity)
{
try
{
newsEntity.F_TypeId = 3;
newsEntity.F_CategoryId = "99";
newsEntity.F_Category = "失物招领";
if (!string.IsNullOrEmpty(keyValue))
{
newsEntity.Modify(keyValue);
this.BaseRepository().Update(newsEntity);
}
else
{
newsEntity.Create();
this.BaseRepository().Insert(newsEntity);
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}

}
#endregion
#region 扩展数据



読み込み中…
キャンセル
保存