Browse Source

份数隐藏,年当前年、事由取上传附件的名字

master
edy 3 years ago
parent
commit
5b45c48c89
9 changed files with 124 additions and 40 deletions
  1. +14
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs
  2. +16
    -16
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Form.cshtml
  3. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Form.js
  4. +6
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/FormView.cshtml
  5. +25
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js
  6. +25
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js
  7. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Print.cshtml
  8. +6
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/ReadForm.cshtml
  9. +25
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/ReadIndex.js

+ 14
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs View File

@@ -177,6 +177,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{ {
DispatchEntity entity = strEntity.ToObject<DispatchEntity>(); DispatchEntity entity = strEntity.ToObject<DispatchEntity>();
entity.FlowNo = "0"; entity.FlowNo = "0";
entity.Reasons = entity.AttachmentName;
if (entity.DisOffice == "1") if (entity.DisOffice == "1")
{ {
entity.WorkName = "1"; entity.WorkName = "1";
@@ -225,7 +226,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
#region 获取附件名称 #region 获取附件名称
if (dispatchEntity.AttachmentName != null) if (dispatchEntity.AttachmentName != null)
{ {
dispatchEntity.AttachmentName = annexesFileIBLL.GetFileNames(dispatchEntity.AttachmentName);
string str = "";
string[] array = annexesFileIBLL.GetFileNames(dispatchEntity.AttachmentName).Split(',');
if (array.Length > 0)
{
for (int i = 0; i < array.Length; i++)
{
str += array[i].Substring(0, array[i].IndexOf(".")) + ",";
}
str.TrimEnd(',');
}
dispatchEntity.Reasons = str;
} }
#endregion #endregion


@@ -254,7 +265,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
} }
#endregion #endregion


//获取校长的签名盖章 批示+时间+阅
#region 获取校长的签名盖章 批示+时间+阅
//var listTaskLog = nWFTaskIBLL.GetLogList(dispatchEntity.processId); //var listTaskLog = nWFTaskIBLL.GetLogList(dispatchEntity.processId);
var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).OrderBy(o => o.F_CreateDate).ToList(); var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).OrderBy(o => o.F_CreateDate).ToList();
var Auditlist = dispatchAuditIBLL.ReadList(keyValue); var Auditlist = dispatchAuditIBLL.ReadList(keyValue);
@@ -281,6 +292,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
dispatchEntity.Listarray = dispatchEntity.Listarray.TrimEnd('&'); dispatchEntity.Listarray = dispatchEntity.Listarray.TrimEnd('&');
List<string> aaList = new List<string>(dispatchEntity.Listarray.Split('&')); List<string> aaList = new List<string>(dispatchEntity.Listarray.Split('&'));
ViewBag.aaList = aaList; ViewBag.aaList = aaList;
#endregion


return View(dispatchEntity); return View(dispatchEntity);
} }


+ 16
- 16
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Form.cshtml View File

@@ -11,18 +11,18 @@
<div class="lr-form-item-title">来文单位<font face="宋体">*</font></div> <div class="lr-form-item-title">来文单位<font face="宋体">*</font></div>
<input id="DisFrom" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> <input id="DisFrom" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div> </div>
<div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="col-xs-6 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">字<font face="宋体">*</font></div> <div class="lr-form-item-title">字<font face="宋体">*</font></div>
<input id="DisWork" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> <input id="DisWork" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div> </div>
<div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="col-xs-6 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">号<font face="宋体">*</font></div> <div class="lr-form-item-title">号<font face="宋体">*</font></div>
<input id="DisMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> <input id="DisMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div> </div>
<div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">份数<font face="宋体">*</font></div>
<input id="Copies" type="text" class="form-control" isvalid="yes" checkexpession="Num" />
</div>
@*<div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">份数<font face="宋体">*</font></div>
<input id="Copies" type="text" class="form-control" isvalid="yes" checkexpession="Num" />
</div>*@
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> <div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">年<font face="宋体">*</font></div> <div class="lr-form-item-title">年<font face="宋体">*</font></div>
<input id="DisYear" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> <input id="DisYear" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
@@ -35,24 +35,24 @@
<div class="lr-form-item-title">日<font face="宋体">*</font></div> <div class="lr-form-item-title">日<font face="宋体">*</font></div>
<input id="DisDay" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> <input id="DisDay" type="text" class="form-control" isvalid="yes" checkexpession="Num" />
</div> </div>
<div class="col-xs-12 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">事&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由</div>
<textarea id="Reasons" class="form-control" style="height:100px;"></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="Dispatch"> <div class="col-xs-12 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件</div> <div class="lr-form-item-title">附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件</div>
<div id="AttachmentName"></div> <div id="AttachmentName"></div>
</div> </div>
@*<div class="col-xs-12 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">事&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由</div>
<div id="Reasons" class="form-control" style="height:100px;" readonly="readonly"></div>
</div>*@
<div class="col-xs-4 lr-form-item" data-table="Dispatch" hidden="hidden"> <div class="col-xs-4 lr-form-item" data-table="Dispatch" hidden="hidden">
<div class="lr-form-item-title">收文单位</div> <div class="lr-form-item-title">收文单位</div>
<div id="DisOffice" readonly="readonly"></div> <div id="DisOffice" readonly="readonly"></div>
</div> </div>
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="Dispatch" style="display: none; " >
<div class="lr-form-item-title">呈送时间</div>
<input id="RenderDate" type="text" readonly class="form-control currentInfo lr-currentInfo-time" />
</div>
</div>
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="Dispatch" style="display: none; ">
<div class="lr-form-item-title">呈送时间</div>
<input id="RenderDate" type="text" readonly class="form-control currentInfo lr-currentInfo-time" />
</div>
</div>
@*<div class="col-xs-12 lr-form-item" data-table="Dispatch"> @*<div class="col-xs-12 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">呈送意见</div> <div class="lr-form-item-title">呈送意见</div>
<textarea id="Render" class="form-control" style="height:100px;"></textarea> <textarea id="Render" class="form-control" style="height:100px;"></textarea>


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Form.js View File

@@ -44,6 +44,8 @@ var bootstrap = function ($, learun) {
page.initData(); page.initData();
}, },
bind: function () { bind: function () {
var NowYear = new Date();
$('#DisYear').val(NowYear.getFullYear());
$('#AttachmentName').lrUploader(); $('#AttachmentName').lrUploader();
$('#DisOffice').lrDataItemSelect({ code: 'DisOffice' }); $('#DisOffice').lrDataItemSelect({ code: 'DisOffice' });
if (DisOffice == "1") { if (DisOffice == "1") {
@@ -70,6 +72,7 @@ var bootstrap = function ($, learun) {
$('[data-table="' + id + '"]').lrSetFormData(data[id]); $('[data-table="' + id + '"]').lrSetFormData(data[id]);
} }
} }
}); });
} }
} }


+ 6
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/FormView.cshtml View File

@@ -11,18 +11,18 @@
<div class="lr-form-item-title">来文单位<font face="宋体">*</font></div> <div class="lr-form-item-title">来文单位<font face="宋体">*</font></div>
<input id="DisFrom" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> <input id="DisFrom" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div> </div>
<div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="col-xs-6 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">字<font face="宋体">*</font></div> <div class="lr-form-item-title">字<font face="宋体">*</font></div>
<input id="DisWork" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> <input id="DisWork" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div> </div>
<div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="col-xs-6 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">号<font face="宋体">*</font></div> <div class="lr-form-item-title">号<font face="宋体">*</font></div>
<input id="DisMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> <input id="DisMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div> </div>
<div class="col-xs-4 lr-form-item" data-table="Dispatch">
@*<div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">份数<font face="宋体">*</font></div> <div class="lr-form-item-title">份数<font face="宋体">*</font></div>
<input id="Copies" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> <input id="Copies" type="text" class="form-control" isvalid="yes" checkexpession="Num" />
</div>
</div>*@
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> <div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">年<font face="宋体">*</font></div> <div class="lr-form-item-title">年<font face="宋体">*</font></div>
<input id="DisYear" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> <input id="DisYear" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
@@ -35,10 +35,10 @@
<div class="lr-form-item-title">日<font face="宋体">*</font></div> <div class="lr-form-item-title">日<font face="宋体">*</font></div>
<input id="DisDay" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> <input id="DisDay" type="text" class="form-control" isvalid="yes" checkexpession="Num" />
</div> </div>
<div class="col-xs-12 lr-form-item" data-table="Dispatch">
@*<div class="col-xs-12 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">事&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由</div> <div class="lr-form-item-title">事&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由</div>
<textarea id="Reasons" class="form-control" style="height:100px;"></textarea> <textarea id="Reasons" class="form-control" style="height:100px;"></textarea>
</div>
</div>*@
<div class="col-xs-12 lr-form-item" data-table="Dispatch"> <div class="col-xs-12 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件</div> <div class="lr-form-item-title">附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件</div>
<div id="AttachmentName"></div> <div id="AttachmentName"></div>


+ 25
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js View File

@@ -180,11 +180,34 @@ var bootstrap = function ($, learun) {
{ label: "来文单位", name: "DisFrom", width: 400, align: "center" }, { label: "来文单位", name: "DisFrom", width: 400, align: "center" },
{ label: "字", name: "DisWork", width: 150, align: "center" }, { label: "字", name: "DisWork", width: 150, align: "center" },
{ label: "号", name: "DisMark", width: 150, align: "center" }, { label: "号", name: "DisMark", width: 150, align: "center" },
{ label: "份数", name: "Copies", width: 100, align: "center" },
//{ label: "份数", name: "Copies", width: 100, align: "center" },
{ label: "年", name: "DisYear", width: 100, align: "center" }, { label: "年", name: "DisYear", width: 100, align: "center" },
{ label: "月", name: "DisMonth", width: 100, align: "center" }, { label: "月", name: "DisMonth", width: 100, align: "center" },
{ label: "日", name: "DisDay", width: 100, align: "center" }, { label: "日", name: "DisDay", width: 100, align: "center" },
{ label: "事由", name: "Reasons", width: 500, align: "center" },
{ label: "事由", name: "Reasons", width: 500, align: "center" ,
formatterAsync: function (callback, value, row, op, $cell) {
$.ajax({
url: '/LR_SystemModule/Annexes/GetAnnexesFileList',
data: { folderId: value },
type: 'GET',
dataType: "json",
async: false,
cache: false,
success: function (res) {
console.log(res);
var bb = '';
$.each(res.data, function(i, item) {

bb += '<span onclick="downLoad(\'' +
item.F_Id +
'\')" style="color:blue">' +
item.F_FileName +
'</span>,&nbsp;&nbsp;&nbsp;';
})
callback(bb);
}
});
}},
{ {
label: "审批状态", name: "FlowNo", width: 100, align: "center", label: "审批状态", name: "FlowNo", width: 100, align: "center",
formatter: function (cellvalue, row) { formatter: function (cellvalue, row) {


+ 25
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js View File

@@ -181,11 +181,34 @@ var bootstrap = function ($, learun) {
{ label: "来文单位", name: "DisFrom", width: 400, align: "center" }, { label: "来文单位", name: "DisFrom", width: 400, align: "center" },
{ label: "字", name: "DisWork", width: 150, align: "center" }, { label: "字", name: "DisWork", width: 150, align: "center" },
{ label: "号", name: "DisMark", width: 150, align: "center" }, { label: "号", name: "DisMark", width: 150, align: "center" },
{ label: "份数", name: "Copies", width: 100, align: "center" },
//{ label: "份数", name: "Copies", width: 100, align: "center" },
{ label: "年", name: "DisYear", width: 100, align: "center" }, { label: "年", name: "DisYear", width: 100, align: "center" },
{ label: "月", name: "DisMonth", width: 100, align: "center" }, { label: "月", name: "DisMonth", width: 100, align: "center" },
{ label: "日", name: "DisDay", width: 100, align: "center" }, { label: "日", name: "DisDay", width: 100, align: "center" },
{ label: "事由", name: "Reasons", width: 500, align: "center" },
{ label: "事由", name: "Reasons", width: 500, align: "center" ,
formatterAsync: function (callback, value, row, op, $cell) {
$.ajax({
url: '/LR_SystemModule/Annexes/GetAnnexesFileList',
data: { folderId: value },
type: 'GET',
dataType: "json",
async: false,
cache: false,
success: function (res) {
console.log(res);
var bb = '';
$.each(res.data, function(i, item) {

bb += '<span onclick="downLoad(\'' +
item.F_Id +
'\')" style="color:blue">' +
item.F_FileName +
'</span>,&nbsp;&nbsp;&nbsp;';
})
callback(bb);
}
});
}},
{ {
label: "审批状态", name: "FlowNo", width: 100, align: "center", label: "审批状态", name: "FlowNo", width: 100, align: "center",
formatter: function (cellvalue, row) { formatter: function (cellvalue, row) {


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Print.cshtml View File

@@ -240,8 +240,8 @@
<div class="hederR"> <div class="hederR">
<p><em>@Model.DisFrom</em><h6> 来 文 单 位 </h6></p> <p><em>@Model.DisFrom</em><h6> 来 文 单 位 </h6></p>
<p> <p>
<em>@Model.Copies</em>
<span> 份 数 </span>
@*<em>@Model.Copies</em>
<span> 份 数 </span>*@
<em>@Model.DisWork</em> <em>@Model.DisWork</em>
<span>字</span> <span>字</span>
<em>@Model.DisMark</em> <em>@Model.DisMark</em>
@@ -265,11 +265,11 @@
</em> </em>
</span> </span>
</div> </div>
<div class="sy">
@*<div class="sy">
<span> <span>
<em> 附 </em><em> 件: </em><em style="color: #000000">@Model.AttachmentName</em> <em> 附 </em><em> 件: </em><em style="color: #000000">@Model.AttachmentName</em>
</span> </span>
</div>
</div>*@
<div class="yj"> <div class="yj">
<div> <div>
<span>呈送意见:<em style="color: #000000">@Model.Render</em></span> <span>呈送意见:<em style="color: #000000">@Model.Render</em></span>


+ 6
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/ReadForm.cshtml View File

@@ -11,18 +11,18 @@
<div class="lr-form-item-title">来文单位<font face="宋体">*</font></div> <div class="lr-form-item-title">来文单位<font face="宋体">*</font></div>
<input id="DisFrom" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" /> <input id="DisFrom" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div> </div>
<div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="col-xs-6 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">字<font face="宋体">*</font></div> <div class="lr-form-item-title">字<font face="宋体">*</font></div>
<input id="DisWork" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" /> <input id="DisWork" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div> </div>
<div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="col-xs-6 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">号<font face="宋体">*</font></div> <div class="lr-form-item-title">号<font face="宋体">*</font></div>
<input id="DisMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" /> <input id="DisMark" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div> </div>
<div class="col-xs-4 lr-form-item" data-table="Dispatch">
@*<div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">份数<font face="宋体">*</font></div> <div class="lr-form-item-title">份数<font face="宋体">*</font></div>
<input id="Copies" type="text" class="form-control" isvalid="yes" checkexpession="Num" readonly="readonly" /> <input id="Copies" type="text" class="form-control" isvalid="yes" checkexpession="Num" readonly="readonly" />
</div>
</div>*@
<div class="col-xs-4 lr-form-item" data-table="Dispatch"> <div class="col-xs-4 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">年<font face="宋体">*</font></div> <div class="lr-form-item-title">年<font face="宋体">*</font></div>
<input id="DisYear" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" /> <input id="DisYear" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
@@ -35,10 +35,10 @@
<div class="lr-form-item-title">日<font face="宋体">*</font></div> <div class="lr-form-item-title">日<font face="宋体">*</font></div>
<input id="DisDay" type="text" class="form-control" isvalid="yes" checkexpession="Num" readonly="readonly" /> <input id="DisDay" type="text" class="form-control" isvalid="yes" checkexpession="Num" readonly="readonly" />
</div> </div>
<div class="col-xs-12 lr-form-item" data-table="Dispatch">
@*<div class="col-xs-12 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">事&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由</div> <div class="lr-form-item-title">事&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由</div>
<textarea id="Reasons" class="form-control" style="height:100px;" readonly="readonly"></textarea> <textarea id="Reasons" class="form-control" style="height:100px;" readonly="readonly"></textarea>
</div>
</div>*@
<div class="col-xs-12 lr-form-item" data-table="Dispatch"> <div class="col-xs-12 lr-form-item" data-table="Dispatch">
<div class="lr-form-item-title">附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件</div> <div class="lr-form-item-title">附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件</div>
<div id="AttachmentName"></div> <div id="AttachmentName"></div>


+ 25
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/ReadIndex.js View File

@@ -68,11 +68,34 @@ var bootstrap = function ($, learun) {
{ label: "来文单位", name: "DisFrom", width: 300, align: "center" }, { label: "来文单位", name: "DisFrom", width: 300, align: "center" },
{ label: "字", name: "DisWork", width: 100, align: "center" }, { label: "字", name: "DisWork", width: 100, align: "center" },
{ label: "号", name: "DisMark", width: 100, align: "center" }, { label: "号", name: "DisMark", width: 100, align: "center" },
{ label: "份数", name: "Copies", width: 100, align: "center" },
//{ label: "份数", name: "Copies", width: 100, align: "center" },
{ label: "年", name: "DisYear", width: 100, align: "center" }, { label: "年", name: "DisYear", width: 100, align: "center" },
{ label: "月", name: "DisMonth", width: 100, align: "center" }, { label: "月", name: "DisMonth", width: 100, align: "center" },
{ label: "日", name: "DisDay", width: 100, align: "center" }, { label: "日", name: "DisDay", width: 100, align: "center" },
{ label: "事由", name: "Reasons", width: 400, align: "center" },
{ label: "事由", name: "Reasons", width: 400, align: "center" ,,
formatterAsync: function (callback, value, row, op, $cell) {
$.ajax({
url: '/LR_SystemModule/Annexes/GetAnnexesFileList',
data: { folderId: value },
type: 'GET',
dataType: "json",
async: false,
cache: false,
success: function (res) {
console.log(res);
var bb = '';
$.each(res.data, function(i, item) {

bb += '<span onclick="downLoad(\'' +
item.F_Id +
'\')" style="color:blue">' +
item.F_FileName +
'</span>,&nbsp;&nbsp;&nbsp;';
})
callback(bb);
}
});
}},
{ label: "传阅人员", name: "Reader", width: 100, align: "center",hidden:true}, { label: "传阅人员", name: "Reader", width: 100, align: "center",hidden:true},
//{ label: "呈送意见", name: "Render", width: 200, align: "center" }, //{ label: "呈送意见", name: "Render", width: 200, align: "center" },
//{ label: "呈送时间", name: "RenderDate", width: 100, align: "center" }, //{ label: "呈送时间", name: "RenderDate", width: 100, align: "center" },


Loading…
Cancel
Save