Explorar el Código

公文接收批示全部查看

金隅分支
zhichao lei hace 3 años
padre
commit
4fb83302e0
Se han modificado 6 ficheros con 86 adiciones y 3 borrados
  1. +16
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveFileController.cs
  2. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Form.cshtml
  3. +20
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Form.js
  4. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileBLL.cs
  5. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileIBLL.cs
  6. +26
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileService.cs

+ 16
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveFileController.cs Ver fichero

@@ -120,6 +120,22 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
return Success(jsonData);
}
/// <summary>
/// 获取批示信息
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetInstructions(string keyValue)
{
var data = sys_ReceiveFileIBLL.GetInstructions(keyValue);
var jsonData = new
{
rows = data,
};
return Success(jsonData);
}
/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Form.cshtml Ver fichero

@@ -31,5 +31,9 @@
<div class="lr-form-item-title">通知管理员</div>
<div id="RStatus"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">批示记录</div>
<div id="gridtable"></div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Form.js")

+ 20
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Form.js Ver fichero

@@ -58,6 +58,25 @@ var bootstrap = function ($, learun) {
}
$("#lrUploader_uploadBtn_Url").hide();
});

var data= learun.httpGet(top.$.rootUrl +
'/EducationalAdministration/Sys_ReceiveFile/GetInstructions?keyValue=' +
keyValue,
'');
console.log(data);

$('#gridtable').jfGrid({
headData: [
{ label: "批阅人", name: "Receiver", width: 100, align: "left" },
{ label: "内容", name: "SpecifyReceiver", width: 500, align: "left" },
],
mainId: 'RFileId',
isPage: true,
sidx: 'SendTime',
sord: 'DESC'
});
$('#gridtable').jfGridSet('refreshdata', data.data.rows);

}
}
};
@@ -66,7 +85,7 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};


+ 19
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileBLL.cs Ver fichero

@@ -368,6 +368,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}

public object GetInstructions(string keyValue)
{
try
{
return sys_ReceiveFileService.GetInstructions(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileIBLL.cs Ver fichero

@@ -84,5 +84,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
void ReceiveDocumentIssue(Sys_IssueEntity entity);
string ZhuRenP();
string XiaoZhangP();
object GetInstructions(string keyValue);
}
}

+ 26
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileService.cs Ver fichero

@@ -145,7 +145,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
try
{
var userInfo = LoginUserInfo.Get();
var list = this.BaseRepository().FindList<Sys_ReceiveFileEntity>(a => a.SenderId == userId && a.RStatus==0);
var list = this.BaseRepository().FindList<Sys_ReceiveFileEntity>(a => a.SenderId == userId && a.RStatus == 0);
return list;
}
catch (Exception ex)
@@ -537,7 +537,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration

public string XiaoZhangP()
{
var xiaozhangID = this.BaseRepository().FindEntity<UserEntity>(a=>a.F_RealName.Contains("关亮"))?.F_UserId;
var xiaozhangID = this.BaseRepository().FindEntity<UserEntity>(a => a.F_RealName.Contains("关亮"))?.F_UserId;

return xiaozhangID;
}
@@ -687,5 +687,29 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}

public object GetInstructions(string keyValue)
{
try
{
var sendId = this.BaseRepository().FindEntity<Sys_ReceiveFileEntity>(a => a.RFileId == keyValue)
?.SFileId;
var data = this.BaseRepository().FindList<Sys_ReceiveFileEntity>(a => a.SFileId == sendId && a.SpecifyReceiver != null)
.OrderBy(a => a.ReplyTime);

return data;
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}

}
}
}

Cargando…
Cancelar
Guardar