Преглед на файлове

【修改】办事大厅模式;

master
dyy преди 3 години
родител
ревизия
f0723f822e
променени са 2 файла, в които са добавени 123 реда и са изтрити 65 реда
  1. +41
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs
  2. +82
    -65
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/SSOSystem/DragModelOne.cshtml

+ 41
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs Целия файл

@@ -954,6 +954,47 @@ namespace Learun.Application.Web.Controllers
}
ViewBag.NewsList = outnewslist.Take(5);
ViewBag.NewsListStr = JsonConvert.SerializeObject(ViewBag.NewsList);
//宣传报道
var newsListOfxuanchuan = outnewslist.Where(x => x.F_CategoryId == "15").Take(4);
foreach (var item in newsListOfxuanchuan)
{
if (!string.IsNullOrEmpty(item.F_NewsImage))
{
var imagePath = annexesFileIBLL.GetEntityByFolderId(item.F_NewsImage)?.F_FilePath;
if (!string.IsNullOrEmpty(imagePath))
{
item.F_NewsImage = imagePath.Substring(imagePath.IndexOf("Resource"));
}
else
{
item.F_NewsImage = "/Content/images/DragSSO/noLogin.png";
}
}
}
ViewBag.NewsListOfxuanchuan = newsListOfxuanchuan;
ViewBag.NewsListOfxuanchuanStr = JsonConvert.SerializeObject(ViewBag.NewsListOfxuanchuan);
//智慧教育
ViewBag.NewsListOfzhihui = outnewslist.Where(x => x.F_CategoryId == "16").Take(6);
ViewBag.NewsListOfzhihuiStr = JsonConvert.SerializeObject(ViewBag.NewsListOfzhihui);
//专题推荐
var newsListOfzhuanti = outnewslist.Where(x => x.F_CategoryId == "17").Take(7);
foreach (var item in newsListOfzhuanti)
{
if (!string.IsNullOrEmpty(item.F_NewsImage))
{
var imagePath = annexesFileIBLL.GetEntityByFolderId(item.F_NewsImage)?.F_FilePath;
if (!string.IsNullOrEmpty(imagePath))
{
item.F_NewsImage = imagePath.Substring(imagePath.IndexOf("Resource"));
}
else
{
item.F_NewsImage = "/Content/images/DragSSO/noLogin.png";
}
}
}
ViewBag.NewsListOfzhuanti = newsListOfzhuanti;
ViewBag.NewsListOfzhuantiStr = JsonConvert.SerializeObject(ViewBag.NewsListOfzhuanti);
//办公事项-待办任务
paginationobj.sidx = "F_CreateDate";
paginationobj.rows = 4;


+ 82
- 65
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/SSOSystem/DragModelOne.cshtml Целия файл

@@ -45,7 +45,7 @@
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-3.png" alt=""></div>'
+'<span>图书馆借阅(未还) </span>'
+ '</div>'
+ '<div class="inSec3MajorTxt"><span>' + parseInt(Math.random() * 100) + '</span></div>'
+ '<div class="inSec3MajorTxt"><span>0</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
@@ -59,14 +59,14 @@
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-5.png" alt=""></div>'
+'<span>智慧教育在线学习时长</span>'
+'</div>'
+ '<div class="inSec3MajorTxt"><span>' + (Math.random() * 50).toFixed(2)+'</span></div>'
+ '<div class="inSec3MajorTxt"><span>0</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-6.png" alt=""></div>'
+'<span>办公业务往来人员</span>'
+'</div>'
+ '<div class="inSec3MajorTxt"><span>' + parseInt(Math.random() * 100)+'</span></div>'
+ '<div class="inSec3MajorTxt"><span>0</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
@@ -80,7 +80,7 @@
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-8.png" alt=""></div>'
+'<span>累计在线时长</span>'
+'</div>'
+ '<div class="inSec3MajorTxt"><span>' + (Math.random() * 100).toFixed(2)+'</span></div>'
+ '<div class="inSec3MajorTxt"><span>0</span></div>'
+'</div>'
+'</div>'
+'</div>'
@@ -458,32 +458,43 @@
};
//宣传报道
var card8Fun = function (ind) {
var listStr = "@ViewBag.NewsListOfxuanchuanStr";
var list = JSON.parse(listStr.replace(/&quot;/g, "\""));
var html = '<div class="inSec3Col3" id="' + ind + '_card8">'
+'<div class="inSec3Box" >'
+'<div class="inSecT">'
+'<span>宣传报道</span>'
+'<a href="#" class="more"><span></span><span></span><span></span></a>'
+'</div>'
+'<div class="inSec3Con">'
+'<ul class="inSec2List">'
+'<li>'
+'<a href="#" class="propagateBox">'
+'<span class="propagateL">'
+'<span class="propagateImg"><img src="../../Content/images/DragSSO/indexSec3-15.jpg" alt=""></span></span>'
+'<span class="propagateR">'
+'<span class="propagateT">宣传报道一</span>'
+'<span class="inSec2Time">2019-10-22</span>'
+'</span>'
+'</a>'
+'</li>'
+'<li>'
+'<a href="#">'
+'<span class="inSec2Time">2019-10-22</span>'
+'<span class="inSec2T"><img src="../../Content/images/DragSSO/inSec2-17.png" alt="">宣传报道二</span>'
+'</a>'
+'</li>'
+'</ul>'
+'</div>'
+ '<div class="inSec3Box" >'
+ '<div class="inSecT">'
+ '<span>宣传报道</span>'
+ '<a href="/Home/Index?autoopen=433d5658-40b0-4e2d-b736-c4e8561d017e" class="more" target="_blank"><span></span><span></span><span></span></a>'
+ '</div>'
+ '<div class="inSec3Con">';
if (list.length > 0) {
html += '<ul class="inSec2List">';
for (var i = 0; i < list.length; i++) {
if (i == 0) {
html += '<li>'
+ '<a href="/Home/Index?autoopen=433d5658-40b0-4e2d-b736-c4e8561d017e&keyValue=' + list[i].F_NewsId +'" target="_blank" class="propagateBox">'
+ '<span class="propagateL">'
+ '<span class="propagateImg"><img src="../../' + list[i].F_NewsImage+'" alt=""></span></span>'
+ '<span class="propagateR">'
+ '<span class="propagateT">' + list[i].F_FullHead+'</span>'
+ '<span class="inSec2Time">' + list[i].F_CreateDate.replace("T", " ").slice(0, 10) +'</span>'
+ '</span>'
+ '</a>'
+ '</li>';
} else {
html+= '<li>'
+ '<a href="/Home/Index?autoopen=433d5658-40b0-4e2d-b736-c4e8561d017e&keyValue=' + list[i].F_NewsId +'" target="_blank">'
+ '<span class="inSec2Time">' + list[i].F_CreateDate.replace("T", " ").slice(0, 10) +'</span>'
+ '<span class="inSec2T"><img src="../../Content/images/DragSSO/inSec2-17.png" alt="">' + list[i].F_FullHead +'</span>'
+ '</a>'
+ '</li>';
}
}
html+= '</ul>';
} else {
html += noHtml;
}
html+='</div>'
+'</div>'
+'</div>'
;
@@ -590,22 +601,23 @@
};
//智慧教育
var card11Fun = function (ind) {
var listStr = "@ViewBag.NewsListOfzhihuiStr";
var list = JSON.parse(listStr.replace(/&quot;/g, "\""));
var html = '<div class="inSec3Col3" id="' + ind + '_card11">'
+ '<div class="inSec3Box">'
+ '<div class="inSecT">'
+ '<span>智慧教育</span>'
+ '<a href="#" class="more"><span></span><span></span><span></span></a>'
+ '</div>'
+ '<div class="inSec3Con">'
+ '<a href="/Home/Index?autoopen=496c6ad3-aa1c-4a58-8e15-f15c6cc167fe" target="_blank" class="inSec3Link inSec3Link1">教务管理系统</a>'
+ '<a href="/Home/Index?autoopen=614" target="_blank" class="inSec3Link inSec3Link2">学生管理系统</a>'
+ '<a href="/Home/Index?autoopen=92a85055-67f2-4a06-902a-f10ec5576d92" target="_blank" class="inSec3Link inSec3Link3">人事管理系统</a>'
+ '<a href="/Home/Index?autoopen=6a7af1da-c6fd-4c13-a487-149288eeb64d" target="_blank" class="inSec3Link inSec3Link4">财务管理系统</a>'
+ '<a href="/Home/Index?autoopen=d1d3ad5d-ffd5-4299-939a-ab9f8fcf420e" target="_blank" class="inSec3Link inSec3Link5">资产管理系统</a>'
+ '<a href="/Home/Index?autoopen=e2e6fcd5-adbd-4595-b4cf-f92727142f34" target="_blank" class="inSec3Link inSec3Link6">宿舍管理系统</a>'
+ '<a href="/Home/Index?autoopen=17cc7785-8b77-4109-990c-4cf1a61e7ace" target="_blank" class="inSec3Link inSec3Link7">教科研系统</a>'
+ '<a href="/Home/Index?autoopen=792ed9e4-3292-4eb4-9f6a-c0385e304550" target="_blank" class="inSec3Link inSec3Link8">后勤管理系统</a>'
+ '<a href="/Home/Index?autoopen=433d5658-40b0-4e2d-b736-c4e8561d017e" class="more" target="_blank"><span></span><span></span><span></span></a>'
+ '</div>'
+ '<div class="inSec3Con">';
if (list.length > 0) {
for (var i = 0; i < list.length; i++) {
html += '<a href="/Home/Index?autoopen=433d5658-40b0-4e2d-b736-c4e8561d017e&keyValue=' + list[i].F_NewsId + '" target="_blank" class="inSec3Link inSec3Link' + (i + 3) + '">' + list[i].F_FullHead+'</a>';
}
} else {
html += noHtml;
}
html+= '</div>'
+ '</div>'
+ '</div>'
;
@@ -613,32 +625,37 @@
};
//专题推荐
var card12Fun = function (ind) {
var listStr = "@ViewBag.NewsListOfzhuantiStr";
var list = JSON.parse(listStr.replace(/&quot;/g, "\""));
var html = '<div class="inSec3Col3" id="' + ind + '_card12">'
+'<div class="inSec3Box" >'
+'<div class="inSecT">'
+'<span>专题推荐</span>'
+'<a href="#" class="more"><span></span><span></span><span></span></a>'
+'</div>'
+'<div class="inSec3Con">'
+'<a class="specialBox specialBox1" href="#">'
+'<img src="../../Content/images/DragSSO/indexSec3-16.jpg" alt="">'
+'<div class="specialTxt"><div>不忘初心牢记使命</div></div>'
+'</a>'
+'<div class="specialRow">'
+'<div class="specialCol4">'
+'<a class="specialBox" href="#">'
+'<img src="../../Content/images/DragSSO/indexSec3-17.jpg" alt="">'
+'<div class="specialTxt"><div>三进两联一交友</div></div>'
+'</a>'
+'</div>'
+'<div class="specialCol4">'
+'<a class="specialBox" href="#">'
+'<img src="../../Content/images/DragSSO/indexSec3-18.jpg" alt="">'
+'<div class="specialTxt"><div>三进两联一交友</div></div>'
+'</a>'
+'</div>'
+'</div>'
+'</div>'
+ '<div class="inSec3Box" >'
+ '<div class="inSecT">'
+ '<span>专题推荐</span>'
+ '<a href="/Home/Index?autoopen=433d5658-40b0-4e2d-b736-c4e8561d017e" class="more" target="_blank"><span></span><span></span><span></span></a>'
+ '</div>'
+ '<div class="inSec3Con">';
if (list.length > 0) {
for (var i = 0; i < list.length; i++) {
if (i == 0) {
html += '<a class="specialBox specialBox1" href="/Home/Index?autoopen=433d5658-40b0-4e2d-b736-c4e8561d017e&keyValue=' + list[i].F_NewsId + '" target="_blank">'
+ '<img src="../../' + list[i].F_NewsImage + '" alt="">'
+ '<div class="specialTxt"><div>' + list[i].F_FullHead +'</div></div>'
+ '</a>'
+ '<div class="specialRow">';
} else {
html += '<div class="specialCol4">'
+ '<a class="specialBox" href="/Home/Index?autoopen=433d5658-40b0-4e2d-b736-c4e8561d017e&keyValue=' + list[i].F_NewsId + '" target="_blank">'
+ '<img src="../../' + list[i].F_NewsImage + '" alt="">'
+ '<div class="specialTxt"><div>' + list[i].F_FullHead +'</div></div>'
+ '</a>'
+ '</div>';
}
}
html+= '</div>';
} else {
html += noHtml;
}
html+='</div>'
+'</div>'
+'</div>'
;


Зареждане…
Отказ
Запис