Browse Source

阳光教育页面优化

娄底高职分支
ndbs 2 years ago
parent
commit
ccf9e3ca41
9 changed files with 248 additions and 9 deletions
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/FormReply.cshtml
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/FormReply.js
  3. +40
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/Index.js
  4. +40
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/IndexComplaint.js
  5. +40
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/IndexHelp.js
  6. +40
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/IndexPolicy.js
  7. +40
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/IndexPraise.js
  8. +40
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/IndexSuggest.js
  9. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SunshineEducation/SunshineEducationService.cs

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/FormReply.cshtml View File

@@ -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>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/FormReply.js View File

@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) {
page.initData();
},
bind: function () {
$('#Path').lrUploader({ isUpload: false });
//$('#Path').lrUploader({ isUpload: false });
//内容编辑器
ue = UE.getEditor('editor');
},


+ 40
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/Index.js View File

@@ -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>,&nbsp;&nbsp;&nbsp;';
//})
$.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>,&nbsp;&nbsp;&nbsp;';
})
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' });
}

+ 40
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/IndexComplaint.js View File

@@ -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>,&nbsp;&nbsp;&nbsp;';
//})
$.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>,&nbsp;&nbsp;&nbsp;';
})
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' });
}

+ 40
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/IndexHelp.js View File

@@ -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>,&nbsp;&nbsp;&nbsp;';
//})
$.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>,&nbsp;&nbsp;&nbsp;';
})
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' });
}

+ 40
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/IndexPolicy.js View File

@@ -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>,&nbsp;&nbsp;&nbsp;';
//})
$.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>,&nbsp;&nbsp;&nbsp;';
})
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' });
}

+ 40
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/IndexPraise.js View File

@@ -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>,&nbsp;&nbsp;&nbsp;';
//})
$.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>,&nbsp;&nbsp;&nbsp;';
})
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' });
}

+ 40
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SunshineEducation/IndexSuggest.js View File

@@ -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>,&nbsp;&nbsp;&nbsp;';
//})
$.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>,&nbsp;&nbsp;&nbsp;';
})
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' });
}

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SunshineEducation/SunshineEducationService.cs View File

@@ -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)


Loading…
Cancel
Save