@@ -40,10 +40,10 @@ | |||
<div class="lr-form-item-title">地址</div> | |||
<input id="Address" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
@*<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">附件</div> | |||
<div id="Path" readonly="readonly"></div> | |||
</div> | |||
</div>*@ | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">回复</div> | |||
<textarea id="Responses" style="height:150px;width:90%"></textarea> | |||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#Path').lrUploader({ isUpload: false }); | |||
//$('#Path').lrUploader({ isUpload: false }); | |||
//内容编辑器 | |||
ue = UE.getEditor('editor'); | |||
}, | |||
@@ -153,11 +153,42 @@ var bootstrap = function ($, learun) { | |||
//{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
//{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
//{ label: '信件内容', name: 'Contents', width: 300, align: "left", sort: 'false' }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: "附件", name: "Path", 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) { | |||
var bb = ''; | |||
//$.each(res.data, function (i, item) { | |||
// bb += '<span onclick="downLoad(\'' + | |||
// item.F_Id + | |||
// '\')" style="color:blue">' + | |||
// item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
// '</span>, '; | |||
//}) | |||
$.each(res.data, function(i, item) { | |||
bb += '<span onclick="downLoad(\'' + | |||
item.F_Id + | |||
'\')" style="color:blue">' + | |||
item.F_FileName.substring(0,item.F_FileName.indexOf(".")) + | |||
'</span>, '; | |||
}) | |||
callback(bb); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
@@ -242,3 +273,11 @@ 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' }); | |||
} |
@@ -153,11 +153,42 @@ var bootstrap = function ($, learun) { | |||
{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
//{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: "附件", name: "Path", 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) { | |||
var bb = ''; | |||
//$.each(res.data, function (i, item) { | |||
// bb += '<span onclick="downLoad(\'' + | |||
// item.F_Id + | |||
// '\')" style="color:blue">' + | |||
// item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
// '</span>, '; | |||
//}) | |||
$.each(res.data, function (i, item) { | |||
bb += '<span onclick="downLoad(\'' + | |||
item.F_Id + | |||
'\')" style="color:blue">' + | |||
item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
'</span>, '; | |||
}) | |||
callback(bb); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
@@ -244,3 +275,11 @@ 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' }); | |||
} |
@@ -153,11 +153,42 @@ var bootstrap = function ($, learun) { | |||
//{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
//{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
//{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: "附件", name: "Path", 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) { | |||
var bb = ''; | |||
//$.each(res.data, function (i, item) { | |||
// bb += '<span onclick="downLoad(\'' + | |||
// item.F_Id + | |||
// '\')" style="color:blue">' + | |||
// item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
// '</span>, '; | |||
//}) | |||
$.each(res.data, function (i, item) { | |||
bb += '<span onclick="downLoad(\'' + | |||
item.F_Id + | |||
'\')" style="color:blue">' + | |||
item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
'</span>, '; | |||
}) | |||
callback(bb); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
@@ -242,3 +273,11 @@ 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' }); | |||
} |
@@ -153,11 +153,42 @@ var bootstrap = function ($, learun) { | |||
{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
//{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: "附件", name: "Path", 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) { | |||
var bb = ''; | |||
//$.each(res.data, function (i, item) { | |||
// bb += '<span onclick="downLoad(\'' + | |||
// item.F_Id + | |||
// '\')" style="color:blue">' + | |||
// item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
// '</span>, '; | |||
//}) | |||
$.each(res.data, function (i, item) { | |||
bb += '<span onclick="downLoad(\'' + | |||
item.F_Id + | |||
'\')" style="color:blue">' + | |||
item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
'</span>, '; | |||
}) | |||
callback(bb); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
@@ -242,3 +273,11 @@ 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' }); | |||
} |
@@ -153,11 +153,42 @@ var bootstrap = function ($, learun) { | |||
//{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
//{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
// { label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: "附件", name: "Path", 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) { | |||
var bb = ''; | |||
//$.each(res.data, function (i, item) { | |||
// bb += '<span onclick="downLoad(\'' + | |||
// item.F_Id + | |||
// '\')" style="color:blue">' + | |||
// item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
// '</span>, '; | |||
//}) | |||
$.each(res.data, function (i, item) { | |||
bb += '<span onclick="downLoad(\'' + | |||
item.F_Id + | |||
'\')" style="color:blue">' + | |||
item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
'</span>, '; | |||
}) | |||
callback(bb); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
@@ -242,3 +273,11 @@ 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' }); | |||
} |
@@ -154,11 +154,42 @@ var bootstrap = function ($, learun) { | |||
//{ label: '事项类型', name: 'MatterType', width: 100, align: "left" }, | |||
//{ label: '事项类别内容', name: 'MatterTypeContent', width: 150, align: "left" }, | |||
{ label: '标题', name: 'Title', width: 200, align: "left" }, | |||
{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
//{ label: '信件内容', name: 'Contents', width: 300, align: "left" }, | |||
{ label: '姓名', name: 'Name', width: 100, align: "left" }, | |||
{ label: '电话号码', name: 'Phone', width: 100, align: "left" }, | |||
{ label: 'EMail', name: 'EMail', width: 120, align: "left" }, | |||
{ label: '地址', name: 'Address', width: 200, align: "left" }, | |||
{ | |||
label: "附件", name: "Path", 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) { | |||
var bb = ''; | |||
//$.each(res.data, function (i, item) { | |||
// bb += '<span onclick="downLoad(\'' + | |||
// item.F_Id + | |||
// '\')" style="color:blue">' + | |||
// item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
// '</span>, '; | |||
//}) | |||
$.each(res.data, function (i, item) { | |||
bb += '<span onclick="downLoad(\'' + | |||
item.F_Id + | |||
'\')" style="color:blue">' + | |||
item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + | |||
'</span>, '; | |||
}) | |||
callback(bb); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '提交时间', name: 'Createdate', width: 140, align: "left", | |||
formatter: function (cellvalue) { | |||
@@ -243,3 +274,11 @@ 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' }); | |||
} |
@@ -75,6 +75,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
dp.Add("UserName", "%" + queryParam["UserName"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND u.F_RealName Like @UserName "); | |||
} | |||
if (!queryParam["AcceptanceCode"].IsEmpty()) | |||
{ | |||
dp.Add("AcceptanceCode", "%" + queryParam["AcceptanceCode"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND u.AcceptanceCode Like @AcceptanceCode "); | |||
} | |||
return this.BaseRepository("CollegeMIS").FindList<SunshineEducationEntity>(strSql.ToString(), dp); | |||
} | |||
catch (Exception ex) | |||