Преглед изворни кода

事由显示列表去掉后缀

master
edy пре 3 година
родитељ
комит
bc2259858f
3 измењених фајлова са 43 додато и 6 уклоњено
  1. +12
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js
  2. +15
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js
  3. +16
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/ReadIndex.js

+ 12
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js Прегледај датотеку

@@ -197,11 +197,10 @@ var bootstrap = function ($, learun) {
console.log(res);
var bb = '';
$.each(res.data, function(i, item) {

bb += '<span onclick="downLoad(\'' +
item.F_Id +
'\')" style="color:blue">' +
item.F_FileName +
item.F_FileName.substring(0,item.F_FileName.indexOf(".")) +
'</span>,&nbsp;&nbsp;&nbsp;';
})
callback(bb);
@@ -230,7 +229,7 @@ var bootstrap = function ($, learun) {
param = param || {};
param.WorkName = 1;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
},
};
refreshGirdData = function (res, postData) {
if (res.code == 200) {
@@ -249,3 +248,13 @@ var bootstrap = function ($, learun) {
};
page.init();
}
function downLoad(fileId, fileTwo) {
console.log(222);
if (fileTwo) {

top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () {

});
}
top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' });
}

+ 15
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js Прегледај датотеку

@@ -202,7 +202,7 @@ var bootstrap = function ($, learun) {
bb += '<span onclick="downLoad(\'' +
item.F_Id +
'\')" style="color:blue">' +
item.F_FileName +
item.F_FileName.substring(0,item.F_FileName.indexOf(".")) +
'</span>,&nbsp;&nbsp;&nbsp;';
})
callback(bb);
@@ -231,6 +231,10 @@ var bootstrap = function ($, learun) {
param = param || {};
param.WorkName = 2;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
},
downLoad: function (fileId) {
console.log(111);
top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: top.$.lrToken }, method: 'POST' });
}
};
refreshGirdData = function (res, postData) {
@@ -250,3 +254,13 @@ var bootstrap = function ($, learun) {
};
page.init();
}
function downLoad(fileId, fileTwo) {
console.log(222);
if (fileTwo) {

top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () {

});
}
top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' });
}

+ 16
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/ReadIndex.js Прегледај датотеку

@@ -72,7 +72,7 @@ var bootstrap = function ($, learun) {
{ label: "年", name: "DisYear", width: 100, align: "center" },
{ label: "月", name: "DisMonth", 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',
@@ -89,7 +89,7 @@ var bootstrap = function ($, learun) {
bb += '<span onclick="downLoad(\'' +
item.F_Id +
'\')" style="color:blue">' +
item.F_FileName +
item.F_FileName.substring(0,item.F_FileName.indexOf(".")) +
'</span>,&nbsp;&nbsp;&nbsp;';
})
callback(bb);
@@ -123,6 +123,10 @@ var bootstrap = function ($, learun) {
param = param || {};
param.userId = userId;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
},
downLoad: function (fileId) {
console.log(111);
top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: top.$.lrToken }, method: 'POST' });
}
};
refreshGirdData = function (res, postData) {
@@ -142,3 +146,13 @@ var bootstrap = function ($, learun) {
};
page.init();
}
function downLoad(fileId, fileTwo) {
console.log(222);
if (fileTwo) {

top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () {

});
}
top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' });
}

Loading…
Откажи
Сачувај