瀏覽代碼

【修改】办事大厅模式:桌面设置管理;【增加】增加效率优先模式;管理驾驶舱模式;

master
dyy 3 年之前
父節點
當前提交
a37c41b239
共有 12 個檔案被更改,包括 3055 行新增403 行删除
  1. +155
    -72
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/js/DragSSO/inSecHead.js
  2. +161
    -156
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/js/DragSSO/index2.js
  3. +7
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/js/DragSSO/index3.js
  4. +261
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs
  5. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  6. +50
    -167
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/SSOSystem/DragModelOne.cshtml
  7. +587
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/SSOSystem/DragModelThree.cshtml
  8. +1606
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/SSOSystem/DragModelTwo.cshtml
  9. +66
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/SSO_Drag_DesktopManage/SSO_Drag_DesktopManageBLL.cs
  10. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/SSO_Drag_DesktopManage/SSO_Drag_DesktopManageEntity.cs
  11. +16
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/SSO_Drag_DesktopManage/SSO_Drag_DesktopManageIBLL.cs
  12. +138
    -6
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/SSO_Drag_DesktopManage/SSO_Drag_DesktopManageService.cs

+ 155
- 72
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/js/DragSSO/inSecHead.js 查看文件

@@ -4,7 +4,6 @@ $(document).ready(function () {
$('.inSec3Head').on('click', '.inSec3HeadTab', function () {
if ($(this).hasClass('active')) return;
var ind = $(this).attr('ind');
// console.log(ind);
$('.inSec3Row.active').sortable("destroy");
$(this).addClass('active').siblings('.inSec3HeadTab').removeClass('active');
$('.inSec3Row').css('display', 'none').removeClass('active').siblings('.inSec3Row[ind="' + ind + '"]').fadeIn().addClass('active');
@@ -24,33 +23,75 @@ $(document).ready(function () {
} else {
var txt = $(this).parent().attr('txt');
parents.removeClass('active');
//if(ind > 1){
var desktopId = parents.attr('desktopId');
var defaultFlag = parents.attr('defaultFlag');
if (defaultFlag != 1) {
var ind = parents.attr('ind');
var desktopId = parents.attr('desktopId');
desktopDel(ind, desktopId);
} else {
//todo:ajax默认桌面的恢复操作
//ajax默认桌面的恢复操作
if (desktopId != "" && desktopId != undefined) {
$.ajax({
url: "/SSOSystem/RestoreDefaultDesktop",
headers: { __RequestVerificationToken: $.lrToken },
data: { desktopId: desktopId },
type: "post",
dataType: "json",
success: function (res) {
if (res.code == 200) {
layer.msg('恢复成功!');
//操作成功后执行的代码开始
location.reload();
//操作成功后执行的代码结束
}
else if (res.code == 400) {
layer.msg(res.info);
}
else if (res.code == 500) {
layer.msg('服务端异常,请联系管理员');
}
}
});
}
}
//todo:操作成功后执行代码开始
layer.msg(txt);
//todo:操作成功后执行代码结束
}
}).on('click', '.deskNameTxt', function () {
$(this).siblings('.deskNameInput').addClass('active').find('input').focus();
}).on('blur', '.deskSetList input', function () { //桌面名称表单失去焦点时
var ind = $(this).parents('.deskSetLi').attr('ind');
var parents = $(this).parents('.deskSetLi');
var ind = parents.attr('ind');
var txt = $(this).val();
if (txt.length == 0) {
layer.msg('桌面不能为空!');
$(this).focus();
return;
}
//var spans = $(this).parents('.deskName').find('.deskNameTxt span');
//txt = spans.length? txt + '<span>(默认桌面)</span>' : txt;
$(this).parent().removeClass('active').siblings('.deskNameTxt').find('b').html(txt);
$('.inSec3HeadTab[ind="' + ind + '"] .inSec3HeadTabTxt').html(txt);
//ajax桌面的修改名称操作
var desktopId = parents.attr('desktopId');
if (desktopId != "" && desktopId != undefined) {
$.ajax({
url: "/SSOSystem/ModifyDesktop",
headers: { __RequestVerificationToken: $.lrToken },
data: { desktopId: desktopId, desktopName: txt },
type: "post",
dataType: "json",
success: function (res) {
if (res.code == 200) {
layer.msg('桌面名称修改成功!');
//操作成功后执行的代码开始
parents.find('.deskNameInput').removeClass('active').siblings('.deskNameTxt').find('b').html(txt);
$('.inSec3HeadTab[ind="' + ind + '"] .inSec3HeadTabTxt').html(txt);
//操作成功后执行的代码结束
}
else if (res.code == 400) {
layer.msg(res.info);
}
else if (res.code == 500) {
layer.msg('服务端异常,请联系管理员');
}
}
});
}
}).on('input', '.deskNameInput input', function () { //监听桌面名称表单input事件
var txt = $(this).val();
var len = txt.length;
@@ -139,75 +180,117 @@ $(window).load(function () {

//新建桌面
function desktopNew(name) {
//var ind = inSec3TabArr[0];
//inSec3TabArr.splice(0,1);
var ind = getRandomNum();
//todo:ajax自建桌面新增操作,操作成功后执行下面代码,需要返回Id值并绑定到htmlT的desktopId中;
//todo:操作成功后执行代码开始
var htmlC = '<div class="inSec3Row clearfix" ind="' + ind + '">' + noCard + '</div>';
var htmlT = '<div class="inSec3HeadTab newlyBuild" ind="' + ind + '" desktopId="">' +
'<div class="inSec3HeadTabTxt">' + name + '</div>' +
'</div>' +
'<div class="inSec3HeadLine"></div>';
var deskSetLi = '<div class="deskSetLi" ind="' + ind + '" defaultFlag="0" desktopId="">' +
'<i class="fa fa-navicon"></i>' +
'<div class="deskName">' +
'<div class="deskNameTxt"><b>' + name + '</b></div>' +
'<div class="deskNameInput">' +
'<input type="text" value="' + name + '">' +
'<span>4/8</span>' +
'</div>' +
'</div>' +
'<i class="fa fa-trash-o fa-lg faR"></i>' +
'<div class="deskSetLiTips" txt="删除该桌面成功">' +
'<span>确认删除该桌面?</span>' +
'<div class="deskSetTrue">' +
'<img src="images/duigou.png" alt="">' +
'</div>' +
'<div class="deskSetClose">' +
'<img src="images/close2.png" alt="">' +
'</div>' +
'</div>' +
'</div>';
$('.deskSetLiNew').removeClass('active').find('.deskNameInput').removeClass('active');
$('.inSec3Row.active').sortable("destroy");
$('.inSec3RowBox').append(htmlC).find('.inSec3Row').css('display', 'none').removeClass('active').last().addClass('active').fadeIn();
$('.inSec3HeadTabBox').append(htmlT).find('.inSec3HeadTab').removeClass('active').last().addClass('active');
$('.deskSetList').append(deskSetLi);
sortableInit();
deskNum();
//最多新建3个桌面
if (($('.inSec3HeadTab').length + 1) > desktopNum) {
$('.inSec3HeadAdd').css('display', 'none').next().css('display', 'none');
$('.deskSetLiNew').css('display', 'none');
//ajax自建桌面新增操作,操作成功后执行下面代码,需要返回Id值并绑定到htmlT的desktopId中;
var modelCode = $('#ModelCode').val();
var userId = $('#UserId').val();
if (userId != "" && userId != undefined && modelCode != "" && modelCode != undefined && name != "" && name != undefined && ind != "" && ind != undefined) {
$.ajax({
url: "/SSOSystem/AddDesktop",
headers: { __RequestVerificationToken: $.lrToken },
data: { userId: userId, modelCode: modelCode, desktopName: name, desktopCode: ind },
type: "post",
dataType: "json",
success: function (res) {
if (res.code == 200) {
layer.msg('添加桌面成功!');
if (res.data != null) {
//操作成功后执行代码开始
var htmlC = '<div class="inSec3Row clearfix" ind="' + ind + '">' + noCard + '</div>';
var htmlT = '<div class="inSec3HeadTab newlyBuild" ind="' + ind + '" desktopId="' + res.data.Id+'">' +
'<div class="inSec3HeadTabTxt">' + name + '</div>' +
'</div>' +
'<div class="inSec3HeadLine"></div>';
var deskSetLi = '<div class="deskSetLi" ind="' + ind + '" defaultFlag="0" desktopId="' + res.data.Id + '">' +
'<i class="fa fa-navicon"></i>' +
'<div class="deskName">' +
'<div class="deskNameTxt"><b>' + name + '</b><span></span></div>' +
'<div class="deskNameInput">' +
'<input type="text" value="' + name + '">' +
'<span>4/8</span>' +
'</div>' +
'</div>' +
'<i class="fa fa-trash-o fa-lg faR"></i>' +
'<div class="deskSetLiTips" txt="删除该桌面成功">' +
'<span>确认删除该桌面?</span>' +
'<div class="deskSetTrue">' +
'<img src="../../Content/images/DragSSO/duigou.png" alt="">' +
'</div>' +
'<div class="deskSetClose">' +
'<img src="../../Content/images/DragSSO/close2.png" alt="">' +
'</div>' +
'</div>' +
'</div>';
$('.deskSetLiNew').removeClass('active').find('.deskNameInput').removeClass('active');
$('.inSec3Row.active').sortable("destroy");
$('.inSec3RowBox').append(htmlC).find('.inSec3Row').css('display', 'none').removeClass('active').last().addClass('active').fadeIn();
$('.inSec3HeadTabBox').append(htmlT).find('.inSec3HeadTab').removeClass('active').last().addClass('active');
$('.deskSetList').append(deskSetLi);
sortableInit();
deskNum();
//最多新建3个桌面
if (($('.inSec3HeadTab').length + 1) > desktopNum) {
$('.inSec3HeadAdd').css('display', 'none').next().css('display', 'none');
$('.deskSetLiNew').css('display', 'none');
}
//操作成功后执行代码结束
}
}
else if (res.code == 400) {
layer.msg(res.info);
}
else if (res.code == 500) {
layer.msg('服务端异常,请联系管理员');
}
}
});
}
//todo:操作成功后执行代码结束
}
//删除桌面
function desktopDel(ind, desktopId) {
//todo:ajax自建桌面的删除操作
//todo:操作成功后执行代码开始
$('.deskSetLi[ind="' + ind + '"]').remove();
$('.inSec3HeadTab[ind="' + ind + '"]').next().remove().end().remove();
var inSec3Row = $('.inSec3Row[ind="' + ind + '"]');
if (inSec3Row.hasClass('active')) {
$('.inSec3Row.active').sortable("destroy");
inSec3Row.remove();
$('.inSec3Row').eq(0).addClass('active').fadeIn();
$('.inSec3HeadTab').eq(0).addClass('active');
sortableInit()
} else {
inSec3Row.remove();
//ajax自建桌面的删除操作
if (desktopId != "" && desktopId != undefined) {
$.ajax({
url: "/SSOSystem/DeleteDesktop",
headers: { __RequestVerificationToken: $.lrToken },
data: { desktopId: desktopId },
type: "post",
dataType: "json",
success: function (res) {
if (res.code == 200) {
layer.msg('删除该桌面成功!');
//操作成功后执行代码开始
$('.deskSetLi[ind="' + ind + '"]').remove();
$('.inSec3HeadTab[ind="' + ind + '"]').next().remove().end().remove();
var inSec3Row = $('.inSec3Row[ind="' + ind + '"]');
if (inSec3Row.hasClass('active')) {
$('.inSec3Row.active').sortable("destroy");
inSec3Row.remove();
$('.inSec3Row').eq(0).addClass('active').fadeIn();
$('.inSec3HeadTab').eq(0).addClass('active');
sortableInit()
} else {
inSec3Row.remove();
}
deskNum();
$('.inSec3HeadAdd').css('display', 'inline-block').next().css('display', 'inline-block');
$('.deskSetLiNew').css('display', 'block');
//操作成功后执行代码结束
}
else if (res.code == 400) {
layer.msg(res.info);
}
else if (res.code == 500) {
layer.msg('服务端异常,请联系管理员');
}
}
});
}
//inSec3TabArr.push(ind);
deskNum();
$('.inSec3HeadAdd').css('display', 'inline-block').next().css('display', 'inline-block');
$('.deskSetLiNew').css('display', 'block');
//todo:操作成功后执行代码结束

}
//初始化桌面设置
function deskNum() {
//console.log($('.newlyBuild').length);
$('.deskSetInfo span').eq(0).html($('.newlyBuild').length);
}
//获取随机数


+ 161
- 156
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/js/DragSSO/index2.js 查看文件

@@ -7,7 +7,7 @@ layui.use('form', function() {
// form.render()
//监听select选择 专业总览
form.on('select', function(data) {
console.log(data);
//console.log(data);
});
});
$(window).load(function() {
@@ -15,7 +15,12 @@ $(window).load(function() {
resizes()
setTimeout(function() {
resizes()
}, 0)
}, 0)
//导航栏
$(".headModeList li").eq(0).removeClass("active");
$(".headModeList li").eq(1).addClass("active");
$(".headModeList li").eq(2).removeClass("active");
$(".headModeTxt").find('span').html($(".headModeList li").eq(1).find('a').html());

//右侧菜单显示隐藏
$('.index_sec2').on('click', '.inSecLeftCon', function() {
@@ -51,9 +56,9 @@ $(window).load(function() {


//办公业务流量
serviceEchart()
//serviceEchart()
//专业总览
majorEchart()
//majorEchart()
}).resize(function() {
resizes()
})
@@ -65,158 +70,158 @@ function resizes() {


//专业总览
function majorEchart() {
var myChart5 = echarts.init(document.getElementById('major'));
option = {
tooltip: {
trigger: 'item',
formatter: '{b} : {c}'
},
series: [{
name: '专业学生',
type: 'pie',
radius: [60, 75],
center: ['50%', '50%'],
label: {
// show: true
show: false
},
color: ['#6C5CEA', '#57C5F5', '#E7C900', '#FF9C95', '#59D078', '#C97FEF', '#ECBD02', '#DF59B8', '#F6685E',
'#00E7B9', '#7A74F1', '#4A9ADE', '#33F0E5', '#ECBD02', '#DF59B8'
],
// hoverAnimation: false,
data: [{
value: 10,
name: '物理',
},
{
value: 5,
name: '数学',
},
{
value: 15,
name: '化学',
},
{
value: 15,
name: '历史',
},
{
value: 5,
name: '医学',
},
{
value: 15,
name: '计算机',
},
{
value: 15,
name: '矿业',
}
]
}, {
name: '班级总数',
type: 'pie',
radius: [50, 65],
center: ['17%', '50%'],
label: {
// show: true
show: false
},
color: ['#59D078', '#57C5F5', '#E7C900'],
// hoverAnimation: false,
data: [{
value: 10,
name: '班级总数',
}]
}, {
name: '专业教室',
type: 'pie',
radius: [50, 65],
center: ['83%', '50%'],
label: {
// show: true
show: false
},
color: ['#3E49E2', '#677BF5', '#67A0F5', '#E7C900'],
// hoverAnimation: false,
data: [{
value: 10,
name: '教室1',
}, {
value: 5,
name: '教室2',
}, {
value: 20,
name: '教室3',
}, {
value: 30,
name: '教室4',
}]
}, ]
};
// 使用刚指定的配置项和数据显示图表。
myChart5.setOption(option);
window.addEventListener("resize", function() {
myChart5.resize();
});
}
//function majorEchart() {
// var myChart5 = echarts.init(document.getElementById('major'));
// option = {
// tooltip: {
// trigger: 'item',
// formatter: '{b} : {c}'
// },
// series: [{
// name: '专业学生',
// type: 'pie',
// radius: [60, 75],
// center: ['50%', '50%'],
// label: {
// // show: true
// show: false
// },
// color: ['#6C5CEA', '#57C5F5', '#E7C900', '#FF9C95', '#59D078', '#C97FEF', '#ECBD02', '#DF59B8', '#F6685E',
// '#00E7B9', '#7A74F1', '#4A9ADE', '#33F0E5', '#ECBD02', '#DF59B8'
// ],
// // hoverAnimation: false,
// data: [{
// value: 10,
// name: '物理',
// },
// {
// value: 5,
// name: '数学',
// },
// {
// value: 15,
// name: '化学',
// },
// {
// value: 15,
// name: '历史',
// },
// {
// value: 5,
// name: '医学',
// },
// {
// value: 15,
// name: '计算机',
// },
// {
// value: 15,
// name: '矿业',
// }
// ]
// }, {
// name: '班级总数',
// type: 'pie',
// radius: [50, 65],
// center: ['17%', '50%'],
// label: {
// // show: true
// show: false
// },
// color: ['#59D078', '#57C5F5', '#E7C900'],
// // hoverAnimation: false,
// data: [{
// value: 10,
// name: '班级总数',
// }]
// }, {
// name: '专业教室',
// type: 'pie',
// radius: [50, 65],
// center: ['83%', '50%'],
// label: {
// // show: true
// show: false
// },
// color: ['#3E49E2', '#677BF5', '#67A0F5', '#E7C900'],
// // hoverAnimation: false,
// data: [{
// value: 10,
// name: '教室1',
// }, {
// value: 5,
// name: '教室2',
// }, {
// value: 20,
// name: '教室3',
// }, {
// value: 30,
// name: '教室4',
// }]
// }, ]
// };
// // 使用刚指定的配置项和数据显示图表。
// myChart5.setOption(option);
// window.addEventListener("resize", function() {
// myChart5.resize();
// });
//}


//办公业务流量
function serviceEchart() {
// 基于准备好的dom,初始化echarts实例
myChart2 = echarts.init(document.getElementById('serviceEchart'));
option = {
tooltip: {
trigger: 'axis'
},
color: ['#CB0005', '#EF9116', '#466AD2', '#7408A6', '#0CB5C4', '#DEBC03', '#0BB56C', '#CB1FA1'],
legend: {
data: ['语文'],
icon: "circle",
itemWidth: 7,
right: '40px',
top: '20px'
},
grid: {
left: '3%',
right: '3%',
bottom: '3%',
top: '23%',
containLabel: true
},
xAxis: {
type: 'category',
name: '星期',
boundaryGap: false,
data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
formatter: function(params) {
console.log(params)
// return params[0].name + ' : ' + params[0].value + ' 小时';
},
},
yAxis: {
type: 'value',
name: '办公量',
},
series: [{
name: '办公量',
type: 'line',
stack: '总量',
// lineStyle: {
// color: '#000'
// },
data: [120, 132, 101, 134, 90, 230, 210]
}]
};
// 使用刚指定的配置项和数据显示图表。
myChart2.setOption(option);
window.addEventListener("resize", function() {
myChart2.resize();
});
}
//function serviceEchart() {
// // 基于准备好的dom,初始化echarts实例
// myChart2 = echarts.init(document.getElementById('serviceEchart'));
// option = {
// tooltip: {
// trigger: 'axis'
// },
// color: ['#CB0005', '#EF9116', '#466AD2', '#7408A6', '#0CB5C4', '#DEBC03', '#0BB56C', '#CB1FA1'],
// legend: {
// data: ['语文'],
// icon: "circle",
// itemWidth: 7,
// right: '40px',
// top: '20px'
// },
// grid: {
// left: '3%',
// right: '3%',
// bottom: '3%',
// top: '23%',
// containLabel: true
// },
// xAxis: {
// type: 'category',
// name: '星期',
// boundaryGap: false,
// data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
// formatter: function(params) {
// console.log(params)
// // return params[0].name + ' : ' + params[0].value + ' 小时';
// },
// },
// yAxis: {
// type: 'value',
// name: '办公量',
// },
// series: [{
// name: '办公量',
// type: 'line',
// stack: '总量',
// // lineStyle: {
// // color: '#000'
// // },
// data: [120, 132, 101, 134, 90, 230, 210]
// }]
// };
// // 使用刚指定的配置项和数据显示图表。
// myChart2.setOption(option);
// window.addEventListener("resize", function() {
// myChart2.resize();
// });
//}

+ 7
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/js/DragSSO/index3.js 查看文件

@@ -1,4 +1,10 @@
$(window).load(function() {
$(window).load(function () {
//导航栏
$(".headModeList li").eq(0).removeClass("active");
$(".headModeList li").eq(1).removeClass("active");
$(".headModeList li").eq(2).addClass("active");
$(".headModeTxt").find('span').html($(".headModeList li").eq(2).find('a').html());

//学生到课率预警
var toClassNum = 43;
var toClassBl = $('.toClassBl')


+ 261
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs 查看文件

@@ -881,7 +881,7 @@ namespace Learun.Application.Web.Controllers
//桌面管理表、卡片块排序管理表增加默认数据
sSO_Drag_DesktopManageIBLL.AddDefaultData(userInfo.userId, "one");
//获取桌面、卡片块排序列表
ViewBag.DesktopList = sSO_Drag_DesktopManageIBLL.GetListByModelCode(userInfo.userId, "one").OrderByDescending(x=>x.DefaultFlag).ThenBy(x => x.Sort);
ViewBag.DesktopList = sSO_Drag_DesktopManageIBLL.GetListByModelCode(userInfo.userId, "one").OrderByDescending(x => x.DefaultFlag).ThenBy(x => x.Sort).ThenBy(x => x.CreateDate);
ViewBag.DesktopListStr = JsonConvert.SerializeObject(ViewBag.DesktopList);
//分页查询条件设置
Pagination paginationobj = new Pagination() { rows = 5, page = 1, sidx = "readflag asc,SENDTIME desc ", sord = "desc" };
@@ -1033,6 +1033,167 @@ namespace Learun.Application.Web.Controllers
/// <returns></returns>
public ActionResult DragModelTwo()
{
//判断登录状态码
string account = "";
if (!Request.Headers["account"].IsEmpty())
{
account = Request.Headers["account"].ToString();
}
OperatorHelper helper = new OperatorHelper();
var result = helper.IsOnLine(account);
if (result.stateCode != 1)
{
return Redirect("DragNoLogin");
}
//登录用户
var userInfo = LoginUserInfo.Get();
ViewBag.UserId = userInfo.userId;
//桌面管理表、卡片块排序管理表增加默认数据
sSO_Drag_DesktopManageIBLL.AddDefaultData(userInfo.userId, "two");
//获取桌面、卡片块排序列表
ViewBag.DesktopList = sSO_Drag_DesktopManageIBLL.GetListByModelCode(userInfo.userId, "two").OrderByDescending(x => x.DefaultFlag).ThenBy(x => x.Sort).ThenBy(x => x.CreateDate);
ViewBag.DesktopListStr = JsonConvert.SerializeObject(ViewBag.DesktopList);
//分页查询条件设置
Pagination paginationobj = new Pagination() { rows = 5, page = 1, sidx = "readflag asc,SENDTIME desc ", sord = "desc" };
//邮件-收件箱
var maildata = sYS_ReceiveMessageIBLL.GetPageList(paginationobj, "{\"userId\":\"" + userInfo.userId + "\"}");
var maildataAll = sYS_ReceiveMessageIBLL.GetList("{\"userId\":\"" + userInfo.userId + "\"}");
ViewBag.LanMail = maildata;
ViewBag.LanMailStr = JsonConvert.SerializeObject(ViewBag.LanMail);
ViewBag.LanMailUnReadCount = maildataAll.Count(m => m.READFLAG == 0);
//邮件-已发送
paginationobj.sidx = "SENDTIME desc";
var mailsenddata = sYS_SendMessageIBLL.GetPageList(paginationobj, "{\"userId\":\"" + userInfo.userId + "\"}");
var mailsenddataAll = sYS_SendMessageIBLL.GetList2("{\"userId\":\"" + userInfo.userId + "\"}");
ViewBag.LanMailSend = mailsenddata;
ViewBag.LanMailSendStr = JsonConvert.SerializeObject(ViewBag.LanMailSend);
//来往邮件数量
ViewBag.LanMailTotalNum = maildataAll.Count() + mailsenddataAll.Count();
//公文
paginationobj.sidx = "SendTime";
ViewBag.ReceiveFileList = sys_ReceiveFileIBLL.GetPageList(paginationobj, "{\"ReceiverId\":\"" + userInfo.userId + "\"}");
ViewBag.ReceiveFileListStr = JsonConvert.SerializeObject(ViewBag.ReceiveFileList);
//公告
List<NewsEntity> outnewslist = new List<NewsEntity>();
var newsList = newsIBLL.GetList("", userInfo.userId);
foreach (var newsitemEntity in newsList)
{
if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId))
{
if (!string.IsNullOrEmpty(userInfo.postIds))
{
if (userInfo.postIds.Contains(","))
{
foreach (var postid in userInfo.postIds.Split(','))
{
if (newsitemEntity.F_SendPostId.Contains(postid))
{
outnewslist.Add(newsitemEntity);
break;
}
}
}
else
{
if (newsitemEntity.F_SendPostId.Contains(userInfo.postIds))
{
outnewslist.Add(newsitemEntity);
}
}
}
}
else
{
if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId))
{
if (newsitemEntity.F_SendDeptId.Contains(userInfo.departmentId))
{
outnewslist.Add(newsitemEntity);
}
}
else
{
outnewslist.Add(newsitemEntity);
}
}
}
ViewBag.NewsList = outnewslist.Take(5);
ViewBag.NewsListStr = JsonConvert.SerializeObject(ViewBag.NewsList);
//办公事项-待办任务
paginationobj.sidx = "F_CreateDate";
paginationobj.rows = 4;
var taskListAll = nWFProcessIBLL.GetMyTaskPageList(userInfo, "{}");
ViewBag.TaskList = nWFProcessIBLL.GetMyTaskPageList(userInfo, paginationobj, "{}");
ViewBag.TaskListStr = JsonConvert.SerializeObject(ViewBag.TaskList);
ViewBag.TaskTotalNum = taskListAll.Count();
//办公事项-已办任务
var finishTaskListAll = nWFProcessIBLL.GetMyFinishTaskPageList(userInfo, "{}");
ViewBag.FinishTaskList = nWFProcessIBLL.GetMyFinishTaskPageList(userInfo, paginationobj, "{}");
ViewBag.FinishTaskListStr = JsonConvert.SerializeObject(ViewBag.FinishTaskList);
ViewBag.FinishTaskTotalNum = finishTaskListAll.Count();
//办公事项-我发起的
var myListAll = nWFProcessIBLL.GetMyPageList(userInfo.userId, "{}");
ViewBag.MyList = nWFProcessIBLL.GetMyPageList(userInfo.userId, paginationobj, "{}");
ViewBag.MyListStr = JsonConvert.SerializeObject(ViewBag.MyList);
ViewBag.MyListTotalNum = myListAll.Count();
//常用服务
List<ModuleEntity> modulelist = new List<ModuleEntity>();
List<string> offenused = LogBLL.GetGroupLog(userInfo.userId).Select(m => m.F_Module).Take(20).ToList();
var moduledata = moduleIBLL.GetModuleList().Where(m => m.F_EnabledMark == 1 && m.F_DeleteMark == 0 && !string.IsNullOrEmpty(m.F_UrlAddress));
foreach (var oitem in offenused)
{
ModuleEntity fod = moduledata.FirstOrDefault(m => m.F_FullName == oitem);
if (fod != null)
{
modulelist.Add(fod);
}
}
ViewBag.OffenusedJiao = modulelist.Where(x => x.F_FullName.Contains("教"));
ViewBag.OffenusedGuan = modulelist.Where(x => x.F_FullName.Contains("管理"));
ViewBag.Offenused = modulelist.Except(modulelist.Where(x => x.F_FullName.Contains("教") || x.F_FullName.Contains("管理"))).Take(6);
ViewBag.OffenusedJiaoStr = JsonConvert.SerializeObject(ViewBag.OffenusedJiao);
ViewBag.OffenusedGuanStr = JsonConvert.SerializeObject(ViewBag.OffenusedGuan);
ViewBag.OffenusedStr = JsonConvert.SerializeObject(ViewBag.Offenused);
//校园总览
//专业
var majorData = cdMajorIBLL.GetAllList();
ViewBag.MajorTotalNum = majorData.Count();
//班级
var classInfoData = classInfoIBLL.GetAllClass();
ViewBag.ClassInfoTotalNum = classInfoData.Count();
//学生
var stuInfoData = stuInfoBasicIBLL.GetAllList();
ViewBag.StuInfoTotalNum = stuInfoData.Count();
//教师
var teacherData = empInfoIBLL.GetAllList();
ViewBag.TeacherTotalNum = teacherData.Count();
//教室
var classRoomData = classroomInfoIBLL.GetAllList();
ViewBag.ClassRoomTotalNum = classRoomData.Count();
//专业总览
//专业学生
var stuByMajor = stuInfoData.GroupBy(x => x.MajorNo).Select(x => new
{
value = x.Select(y => y.StuId).Count(),
name = cdMajorIBLL.GetCdMajorEntityByMajorNo(x.Key)?.MajorName
});
ViewBag.StuByMajorStr = JsonConvert.SerializeObject(stuByMajor);
//流程
var flowType = dataItemIBLL.GetDetailList("FlowSort", "");
var flowList = wfSchemeIBLL.GetWfSchemeStart().ToList();
var allCount = 0;
foreach (var flow in flowType)
{
var count = flowList.Count(a => a.F_Category == flow.F_ItemName);
flow.FlowCount = count;
allCount += count;

}
ViewBag.AllCount = allCount;
ViewBag.FlowType = flowType;
ViewBag.FlowList = JsonConvert.SerializeObject(flowList);


return View();
}
/// <summary>
@@ -1041,6 +1202,60 @@ namespace Learun.Application.Web.Controllers
/// <returns></returns>
public ActionResult DragModelThree()
{
//判断登录状态码
string account = "";
if (!Request.Headers["account"].IsEmpty())
{
account = Request.Headers["account"].ToString();
}
OperatorHelper helper = new OperatorHelper();
var result = helper.IsOnLine(account);
if (result.stateCode != 1)
{
return Redirect("DragNoLogin");
}
//登录用户
var userInfo = LoginUserInfo.Get();
ViewBag.UserId = userInfo.userId;
//校园总览
//专业
var majorData = cdMajorIBLL.GetAllList();
ViewBag.MajorTotalNum = majorData.Count();
//班级
var classInfoData = classInfoIBLL.GetAllClass();
ViewBag.ClassInfoTotalNum = classInfoData.Count();
//学生
var stuInfoData = stuInfoBasicIBLL.GetAllList();
ViewBag.StuInfoTotalNum = stuInfoData.Count();
//教师
var teacherData = empInfoIBLL.GetAllList();
ViewBag.TeacherTotalNum = teacherData.Count();
//教室
var classRoomData = classroomInfoIBLL.GetAllList();
ViewBag.ClassRoomTotalNum = classRoomData.Count();
//专业总览
//专业学生
var stuByMajor = stuInfoData.GroupBy(x => x.MajorNo).Select(x => new
{
value = x.Select(y => y.StuId).Count(),
name = cdMajorIBLL.GetCdMajorEntityByMajorNo(x.Key)?.MajorName
});
ViewBag.StuByMajorStr = JsonConvert.SerializeObject(stuByMajor);
//流程
var flowType = dataItemIBLL.GetDetailList("FlowSort", "");
var flowList = wfSchemeIBLL.GetWfSchemeStart().ToList();
var allCount = 0;
foreach (var flow in flowType)
{
var count = flowList.Count(a => a.F_Category == flow.F_ItemName);
flow.FlowCount = count;
allCount += count;

}
ViewBag.AllCount = allCount;
ViewBag.FlowType = flowType;
ViewBag.FlowList = JsonConvert.SerializeObject(flowList);

return View();
}
/// <summary>
@@ -1053,5 +1268,50 @@ namespace Learun.Application.Web.Controllers
return Success("操作成功");
}

/// <summary>
/// 网上办事大厅拖拽版-新增桌面
/// </summary>
/// <returns></returns>
public ActionResult AddDesktop(string userId, string modelCode, string desktopName, string desktopCode)
{
sSO_Drag_DesktopManageIBLL.AddDesktop(userId, modelCode, desktopName, desktopCode);
var data = sSO_Drag_DesktopManageIBLL.GetEntityByDesktopCode(userId, modelCode, desktopCode);
return Success("操作成功", data);
}

/// <summary>
/// 网上办事大厅拖拽版-删除桌面
/// </summary>
/// <returns></returns>
public ActionResult DeleteDesktop(string desktopId)
{
sSO_Drag_DesktopManageIBLL.DeleteEntity(desktopId);
return Success("操作成功");
}

/// <summary>
/// 网上办事大厅拖拽版-修改桌面
/// </summary>
/// <returns></returns>
public ActionResult ModifyDesktop(string desktopId, string desktopName)
{
var entity = new SSO_Drag_DesktopManageEntity()
{
DesktopName = desktopName
};
sSO_Drag_DesktopManageIBLL.SaveEntity(desktopId, entity);
return Success("操作成功");
}

/// <summary>
/// 网上办事大厅拖拽版-默认桌面恢复默认设置
/// </summary>
/// <returns></returns>
public ActionResult RestoreDefaultDesktop(string desktopId)
{
sSO_Drag_DesktopManageIBLL.RestoreDefaultDesktop(desktopId);
return Success("操作成功");
}

}
}

+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj 查看文件

@@ -7163,6 +7163,8 @@
<Content Include="Views\SSOSystem\DragNoLogin.cshtml" />
<Content Include="Views\SSOSystem\DragModelOne.cshtml" />
<Content Include="Views\SSOSystem\_LayoutSSODrag.cshtml" />
<Content Include="Views\SSOSystem\DragModelTwo.cshtml" />
<Content Include="Views\SSOSystem\DragModelThree.cshtml" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />


+ 50
- 167
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/SSOSystem/DragModelOne.cshtml 查看文件

@@ -14,12 +14,7 @@

<script src="/Content/js/DragSSO/indexData.js"></script>
<script>
//测试登录后获取的数据
var aa = "@ViewBag.DesktopListStr";
var aaa = aa.replace(/&quot;/g, "\"");
var aaaa = JSON.parse(aaa);
//console.log(aaaa);


//定义卡片块
//数据看板
@@ -814,13 +809,8 @@
<div class="searchLT">最近使用</div>
<ul class="searchLList">
<li>
<a href="javascript:;">
<img src="~/Content/images/DragSSO/inSec1-3.png" alt=""><span>接待停车申请结算</span>
</a>
</li>
<li>
<a href="javascript:;">
<img src="~/Content/images/DragSSO/inSec1-3.png" alt=""><span>接待停车申请结算</span>
<a href="/Home/Index?autoopen=92a85055-67f2-4a06-902a-f10ec5576d92" target="_blank">
<img src="~/Content/images/DragSSO/inSec1-3.png" alt=""><span>人事管理系统</span>
</a>
</li>
</ul>
@@ -846,7 +836,7 @@
</div>
<div class="searchRBox">
<div class="searchRTop">
<b>A-D</b> (<span>10</span>)
<b>A-D</b> (<span>1</span>)
</div>
<div class="searchList clearfix">
<div class="searchLi">
@@ -872,125 +862,36 @@
</span>
</a>
</div>
<div class="searchLi">
<div class="searchLiImg"><img src="~/Content/images/DragSSO/inSec1-2.png" alt=""></div>
<div class="searchLiTxt">班级课表</div>
<a href="#" class="searchLink">
<span class="searchLinkT" title="班级课表">班级课表</span>
<span class="searchLinkBox">
<span class="searchLinkImg">
<img src="~/Content/images/DragSSO/inSec1-2.png" alt="">
</span>
<span class="searchLinkCon">
<span class="searchLinkTxt">大学直通车</span>
<span class="searchLinkIcon">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
</span>
<span class="searchLinkTxt">38人收藏</span>
</span>
</span>
</a>
</div>
<div class="searchLi">
<div class="searchLiImg"><img src="~/Content/images/DragSSO/inSec1-2.png" alt=""></div>
<div class="searchLiTxt">班级课表</div>
<a href="#" class="searchLink">
<span class="searchLinkT" title="班级课表">班级课表</span>
<span class="searchLinkBox">
<span class="searchLinkImg">
<img src="~/Content/images/DragSSO/inSec1-2.png" alt="">
</span>
<span class="searchLinkCon">
<span class="searchLinkTxt">大学直通车</span>
<span class="searchLinkIcon">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
</span>
<span class="searchLinkTxt">38人收藏</span>
</span>
</span>
</a>
</div>
</div>
<div class="searchRTop">
<b>E-H</b> (<span>10</span>)
<b>E-H</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
<div class="searchLi">
<div class="searchLiImg"><img src="~/Content/images/DragSSO/inSec1-2.png" alt=""></div>
<div class="searchLiTxt">班级课表</div>
<a href="#" class="searchLink">
<span class="searchLinkT" title="班级课表">班级课表</span>
<span class="searchLinkBox">
<span class="searchLinkImg">
<img src="~/Content/images/DragSSO/inSec1-2.png" alt="">
</span>
<span class="searchLinkCon">
<span class="searchLinkTxt">大学直通车</span>
<span class="searchLinkIcon">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
</span>
<span class="searchLinkTxt">38人收藏</span>
</span>
</span>
</a>
</div>
</div>
<div class="searchRTop">
<b>I-L</b> (<span>10</span>)
<b>I-L</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
<div class="searchLi">
<div class="searchLiImg"><img src="~/Content/images/DragSSO/inSec1-2.png" alt=""></div>
<div class="searchLiTxt">班级课表</div>
</div>
</div>
<div class="searchRTop">
<b>M-P</b> (<span>10</span>)
<b>M-P</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
<div class="searchLi">
<div class="searchLiImg"><img src="~/Content/images/DragSSO/inSec1-2.png" alt=""></div>
<div class="searchLiTxt">班级课表</div>
</div>
</div>
<div class="searchRTop">
<b>Q-T</b> (<span>10</span>)
<b>Q-T</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
<div class="searchLi">
<div class="searchLiImg"><img src="~/Content/images/DragSSO/inSec1-2.png" alt=""></div>
<div class="searchLiTxt">班级课表</div>
</div>
</div>
<div class="searchRTop">
<b>U-X</b> (<span>10</span>)
<b>U-X</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
<div class="searchLi">
<div class="searchLiImg"><img src="~/Content/images/DragSSO/inSec1-2.png" alt=""></div>
<div class="searchLiTxt">班级课表</div>
</div>
</div>
<div class="searchRTop">
<b>Y-Z</b> (<span>10</span>)
<b>Y-Z</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
<div class="searchLi">
<div class="searchLiImg"><img src="~/Content/images/DragSSO/inSec1-2.png" alt=""></div>
<div class="searchLiTxt">班级课表</div>
</div>
</div>
</div>
</div>
@@ -1304,14 +1205,6 @@
<div class="indexSec3Box">
<div class="inSec3Head">
<div class="inSec3HeadTabBox">
@*<div class="inSec3HeadTab active" ind="teacherDesktop">
<div class="inSec3HeadTabTxt">教师桌面</div>
</div>
<div class="inSec3HeadLine"></div>
<div class="inSec3HeadTab" ind="workDesktop">
<div class="inSec3HeadTabTxt">OA办公桌面</div>
</div>
<div class="inSec3HeadLine"></div>*@
@foreach (SSO_Drag_DesktopManageEntity desktopItem in ViewBag.DesktopList)
{
<div class="inSec3HeadTab @(desktopItem.DesktopCode =="teacherDesktop"?"active":"") @(desktopItem.DefaultFlag!="1"?"newlyBuild":"")" ind="@desktopItem.DesktopCode" desktopId="@desktopItem.Id">
@@ -1320,10 +1213,16 @@
<div class="inSec3HeadLine"></div>
}
</div>
<div class="inSec3HeadAdd">
<img src="~/Content/images/DragSSO/indSec3-5.png" alt="">
</div>
<div class="inSec3HeadLine"></div>
@{
var DesktopList = ViewBag.DesktopList as IEnumerable<SSO_Drag_DesktopManageEntity>;
if (DesktopList.Count() < 5)
{
<div class="inSec3HeadAdd">
<img src="~/Content/images/DragSSO/indSec3-5.png" alt="">
</div>
<div class="inSec3HeadLine"></div>
}
}
<div class="inSec3Setting">
<img src="~/Content/images/DragSSO/indSec3-6.png" alt="">
</div>
@@ -1512,40 +1411,43 @@
<div class="deskSetT">桌面设置</div>
<div class="deskSetInfo">共 <span>0</span>/<span>3</span> 个自建桌面</div>
<div class="deskSetList">
<div class="deskSetLi" ind="0" defaultFlag="1" desktopId="">
<i class="fa fa-navicon"></i>
<div class="deskName">
@*span需要判断*@
<div class="deskNameTxt"><b>教师桌面</b><span>(默认桌面)</span></div>
<div class="deskNameInput">
<input type="text" value="教师桌面">
<span>8/8</span>
</div>
</div>
@*小图标需要判断*@
<i class="fa fa-repeat faR"></i>
<div class="deskSetLiTips" txt="恢复成功">
<span>确认恢复默认设置?</span>
<div class="deskSetTrue">
<img src="~/Content/images/DragSSO/duigou.png" alt="">
@foreach (SSO_Drag_DesktopManageEntity item in ViewBag.DesktopList)
{
<div class="deskSetLi" ind="@item.DesktopCode" defaultFlag="@item.DefaultFlag" desktopId="@item.Id">
<i class="fa fa-navicon"></i>
<div class="deskName">
<div class="deskNameTxt"><b>@item.DesktopName</b><span>@(item.DefaultFlag == "1" ? "(默认桌面)" : "")</span></div>
<div class="deskNameInput">
<input type="text" value="@item.DesktopName">
<span>8/8</span>
</div>
</div>
<div class="deskSetClose">
<img src="~/Content/images/DragSSO/close2.png" alt="">
<i class="fa @(item.DefaultFlag == "1"?"fa-repeat":"fa-trash-o fa-lg") faR"></i>
<div class="deskSetLiTips" txt="@(item.DefaultFlag == "1"?"恢复成功":"删除该桌面成功")">
<span>@(item.DefaultFlag == "1" ? "确认恢复默认设置?" : "确认删除该桌面?")</span>
<div class="deskSetTrue">
<img src="~/Content/images/DragSSO/duigou.png" alt="">
</div>
<div class="deskSetClose">
<img src="~/Content/images/DragSSO/close2.png" alt="">
</div>
</div>
</div>
</div>
<div class="deskSetLi" ind="1" defaultFlag="1" desktopId="">
<i class="fa fa-navicon"></i>
}
</div>
@if (DesktopList.Count() < 5)
{
<div class="deskSetLi deskSetLiNew">
<i class="fa fa-file-text-o"></i>
<div class="deskName">
<div class="deskNameTxt"><b>OA桌面</b><span>(默认桌面)</span></div>
<div class="deskNameTxt"><b>新建桌面</b></div>
<div class="deskNameInput">
<input type="text" value="OA桌面">
<input type="text" value="新建桌面">
<span>8/8</span>
</div>
</div>
<i class="fa fa-repeat faR"></i>
<div class="deskSetLiTips" txt="恢复成功">
<span>确认恢复默认设置?</span>
<div class="deskSetLiTips" txt="添加桌面成功">
<span>保存该桌面?</span>
<div class="deskSetTrue">
<img src="~/Content/images/DragSSO/duigou.png" alt="">
</div>
@@ -1554,26 +1456,7 @@
</div>
</div>
</div>
</div>
<div class="deskSetLi deskSetLiNew">
<i class="fa fa-file-text-o"></i>
<div class="deskName">
<div class="deskNameTxt"><b>新建桌面</b></div>
<div class="deskNameInput">
<input type="text" value="新建桌面">
<span>8/8</span>
</div>
</div>
<div class="deskSetLiTips" txt="添加桌面成功">
<span>保存该桌面?</span>
<div class="deskSetTrue">
<img src="~/Content/images/DragSSO/duigou.png" alt="">
</div>
<div class="deskSetClose">
<img src="~/Content/images/DragSSO/close2.png" alt="">
</div>
</div>
</div>
}
<div class="deskSetBtn">完成</div>
</div>
</div>


+ 587
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/SSOSystem/DragModelThree.cshtml 查看文件

@@ -0,0 +1,587 @@
@using Learun.Application.OA
@using Learun.Application.Base.SystemModule
@using Learun.Application.TwoDevelopment.EducationalAdministration
@using Learun.Application.TwoDevelopment.Permission
@using Learun.Application.WorkFlow
@using Learun.Util
@using Learun.Application.TwoDevelopment.LR_Desktop


@{
ViewBag.Title = "网上办事大厅拖拽版";
Layout = "~/Views/SSOSystem/_LayoutSSODrag.cshtml";
}

<link rel="stylesheet" type="text/css" href="/Content/css/DragSSO/index3.css" />
<!-- / warpper -->
<div class="warpper">
<!-- search -->
<div class="search">
<div class="searchL">
<div class="searchLT">最近使用</div>
<ul class="searchLList">
<li>
<a href="/Home/Index?autoopen=92a85055-67f2-4a06-902a-f10ec5576d92" target="_blank">
<img src="/Content/images/DragSSO/inSec1-3.png" alt=""><span>人事管理系统</span>
</a>
</li>
</ul>
</div>
<div class="searchR">
<div class="searchTop">
<span>服务角色</span>
<ul class="searchTopList">
<li class="active">全部</li>
<li>校领导</li>
<li>游客</li>
<li>教师</li>
<li>学生</li>
</ul>
</div>
<div class="searchTop">
<span>服务角色</span>
<ul class="searchTopList">
<li class="active">全部</li>
<li>最新应用</li>
<li>常用链接</li>
</ul>
</div>
<div class="searchRBox">
<div class="searchRTop">
<b>A-D</b> (<span>1</span>)
</div>
<div class="searchList clearfix">
<div class="searchLi">
<div class="searchLiImg"><img src="/Content/images/DragSSO/inSec1-2.png" alt=""></div>
<div class="searchLiTxt">班级课表</div>
<a href="#" class="searchLink">
<span class="searchLinkT" title="班级课表">班级课表</span>
<span class="searchLinkBox">
<span class="searchLinkImg">
<img src="/Content/images/DragSSO/inSec1-2.png" alt="">
</span>
<span class="searchLinkCon">
<span class="searchLinkTxt">大学直通车</span>
<span class="searchLinkIcon">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
</span>
<span class="searchLinkTxt">38人收藏</span>
</span>
</span>
</a>
</div>
</div>
<div class="searchRTop">
<b>E-H</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
</div>
<div class="searchRTop">
<b>I-L</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
</div>
<div class="searchRTop">
<b>M-P</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
</div>
<div class="searchRTop">
<b>Q-T</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
</div>
<div class="searchRTop">
<b>U-X</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
</div>
<div class="searchRTop">
<b>Y-Z</b> (<span>0</span>)
</div>
<div class="searchList clearfix">
</div>
</div>
</div>
</div>
<!-- search -->
<!-- / index_sec1 -->
<div class="index_sec index_sec1">
<div class="inSecLeftBox">
<div class="inSecLeftCon">
<div class="inSecLeftImg">
<img src="/Content/images/DragSSO/indSec1-1.png" alt="">
<img src="/Content/images/DragSSO/indSec1-2.png" alt="">
</div>
<div class="inSecLeftTxt">我的收藏</div>
</div>
<div class="inSecLeftCon">
<div class="inSecLeftImg">
<img src="/Content/images/DragSSO/indSec1-3.png" alt="">
<img src="/Content/images/DragSSO/indSec1-4.png" alt="">
</div>
<div class="inSecLeftTxt">可用应用</div>
</div>
</div>
<div class="indexSec1Con inSecShadow">
<div class="aLeft">
<i class="fa fa-angle-left"></i>
</div>
<div class="inSec1Tab">
<div class="inSec1TabBox">
<img src="/Content/images/DragSSO/indSec1-1.png" alt="">
<span>我的收藏</span>
</div>
<div class="inSec1TabBox">
<img src="/Content/images/DragSSO/indSec1-3.png" alt="">
<span>可用应用</span>
</div>
</div>
<div class="indSec1Line"></div>
<div class="indSec1Box">
<div class="inSec1Box">
<!-- 第一级列表 -->
<ul class="inSec1List1">
<li class="active">
<a href="#">
<span>全部</span> <span>1</span>
</a>
</li>
</ul>
<!-- 第一级列表 -->
<!-- 第二级列表 -->
<ul class="inSec1List2 inSecShadow">
<li class="active">
<a href="/Home/Index?autoopen=92a85055-67f2-4a06-902a-f10ec5576d92" target="_blank">
<img src="/Content/images/DragSSO/inSec1-2.png" alt="" /><span>人事管理系统</span>
</a>
</li>
</ul>
<!-- 第二级列表 -->
</div>
<div class="inSec1Box">
<!-- 第一级列表 -->
<ul class="inSec1List1" id="flowTypeList">
<li class="active">
<a href="#" class="itemName" itemName="全部">
<span>全部</span> <span>@ViewBag.AllCount</span>
</a>
</li>
@foreach (DataItemDetailEntity item in ViewBag.FlowType)
{
<li>
<a href="#" class="itemName" itemName="@item.F_ItemName">
<span>@item.F_ItemName</span> <span>@item.FlowCount</span>
</a>
</li>
}
</ul>
<!-- 第一级列表 -->
<!-- 第二级列表 -->
<ul class="inSec1List2 inSecShadow" id="flowList"></ul>
<!-- 第二级列表 -->
</div>
</div>
</div>
</div>
<!-- / index_sec1 -->
<!-- / index_sec3 -->
<div class="index_sec index_sec3">
<form class="layui-form" action="">
<div class="indexSec3Box">
<div class="inSec3Row clearfix">
<div class="inSec3Col6" id="id_4">
<div class="inSec3Box">
<div class="inSecT">
<span>专业总览</span>
<a href="#" class="more"><span></span><span></span><span></span></a>
</div>
<div class="inSec3Con">
<div class="echartBox" id="major"></div>
<div class="inSec3majorTxt inSec3majorTxt1">
<div>班级总数</div>
<div>12</div>
</div>
<div class="inSec3majorTxt inSec3majorTxt2">
<div>专业学生</div>
<div>252</div>
</div>
<div class="inSec3majorTxt inSec3majorTxt3">
<div>专业教室 </div>
<div>97</div>
</div>
</div>
</div>
</div>
<div class="inSec3Col6">
<div class="inSec3Box">
<div class="inSecT">
<span>学生总览</span>
<a href="#" class="more"><span></span><span></span><span></span></a>
</div>
<div class="inSec3Con teacherBox">
<div class="teacherCon">
<div class="in3Sec3Total">在校学生总数 <b>1752</b> 人</div>
<div class="in3Sec3PerBox">
<div class="in3Sec3Per">
男 <b>66</b> 人 <div class="in3Sec3Icon in3Sec3Green">43%</div>
</div>
</div>
<div class="in3Sec3PerBox">
<div class="in3Sec3Per">
女 <b>66</b> 人 <div class="in3Sec3Icon in3Sec3Red">43%</div>
</div>
</div>
</div>
<div class="in3Sec3Echart1Box">
<div class="in3Sec3Echart1Con1">
<div>学生成绩预警</div>
<div><b>21人</b></div>
</div>
<img src="/Content/images/DragSSO/inSec6-3.png" class="in3Sec3Echart1Img1" alt="">
<div class="echartBox" id="achWarn"></div>
</div>
<div class="in3Sec3Echart1Box">
<div class="in3Sec3Echart1Con2">
学生到课率预警<b>43%</b>
</div>
<div class="echartBox" id="">
<div class="toClass">
<img class="toClassImg1" src="/Content/images/DragSSO/inSec6-5.png" alt="">
<div class="toClassImg2">
<img src="/Content/images/DragSSO/inSec6-6.png" alt="">
</div>
<div class="toClassBl"></div>
</div>
<div class="toClassLegend">
<div class="green">
<i></i><span>80%~100%</span>
</div>
<div class="blue">
<i></i><span>60%~80%</span>
</div>
<div class="red">
<i></i><span>0%~60%</span>
</div>
</div>
</div>
</div>
<div class="in3Sec3Echart1Box">
<div class="in3Sec3Echart1Con3">
<div>学生逃课预警</div>
<div><b>21人</b></div>
</div>
<div class="echartBox" id="skipClass"></div>
<div class="toClassLegend">
<div class="green">
<i></i><span>80%~100%</span>
</div>
<div class="blue">
<i></i><span>60%~80%</span>
</div>
<div class="red">
<i></i><span>0%~60%</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="inSec3Col6" id="id_7">
<div class="inSec3Box">
<div class="inSecT">
<span>校园总览</span>
<a href="#" class="more"><span></span><span></span><span></span></a>
</div>
<div class="inSec3Con">
<div class="overviewBox">
<div class="overviewImg">
<img src="/Content/images/DragSSO/indexSec3-23.png" alt="">
<span>专业总数</span>
</div>
<div class="overviewTxt">
27
</div>
</div>
<div class="overviewBox">
<div class="overviewImg">
<img src="/Content/images/DragSSO/indexSec3-24.png" alt="">
<span>班级总数</span>
</div>
<div class="overviewTxt">
27
</div>
</div>
<div class="overviewBox">
<div class="overviewImg">
<img src="/Content/images/DragSSO/indexSec3-25.png" alt="">
<span>在校学生</span>
</div>
<div class="overviewTxt">
27
</div>
</div>
<div class="overviewBox">
<div class="overviewImg">
<img src="/Content/images/DragSSO/indexSec3-26.png" alt="">
<span>在校教师</span>
</div>
<div class="overviewTxt">
27
</div>
</div>
<div class="overviewBox">
<div class="overviewImg">
<img src="/Content/images/DragSSO/indexSec3-27.png" alt="">
<span>在用教室</span>
</div>
<div class="overviewTxt">
27
</div>
</div>
<div class="overviewBox">
<div class="overviewImg">
<img src="/Content/images/DragSSO/indexSec3-28.png" alt="">
<span>在用实验室</span>
</div>
<div class="overviewTxt">
27
</div>
</div>
</div>
</div>
</div>
<div class="inSec3Col6">
<div class="inSec3Box">
<div class="inSecT">
<span>教师总览</span>
<a href="#" class="more"><span></span><span></span><span></span></a>
</div>
<div class="inSec3Con teacherBox">
<div class="teacherCon">
<div class="in3Sec3Total">教师总数 <b>1752</b> 人</div>
<div class="in3Sec3PerBox">
<div class="in3Sec3Per">
男 <b>66</b> 人 <div class="in3Sec3Icon in3Sec3Green">43%</div>
</div>
</div>
<div class="in3Sec3PerBox">
<div class="in3Sec3Per">
女 <b>66</b> 人 <div class="in3Sec3Icon in3Sec3Red">43%</div>
</div>
</div>
</div>
<div class="in3Sec3Echart1Box">
<div class="echartBox" id="age"></div>
<div class="ageTxt">教师年龄<br>比例</div>
</div>
<div class="in3Sec3Echart1Box">
<div class="in3Sec3Echart1Con">
<div>教师学历比例</div>
</div>
<div class="echartBox" id="education"></div>
</div>
<div class="in3Sec3Echart1Box">
<div class="organT">教师编制比例</div>
<div class="organBox">
<div class="organLine">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div class="organZ" style="height: 30%;"></div>
<div class="organCon organCon1">
<div>在编教师</div>
<div><span>95</span>人</div>
<div><span>62%</span></div>
</div>
<div class="organCon organCon2">
<div>非在编教师</div>
<div><span>95</span>人</div>
<div><span>62%</span></div>
</div>
</div>
</div>
</div>

</div>
</div>
</div>
<div class="inSec3Col6">
<div class="inSec3Box">
<div class="inSecT">
<span>课程总览</span>
<a href="#" class="more"><span></span><span></span><span></span></a>
</div>
<div class="inSec3Con">
<div class="in3Sec3L">
<div class="in3Sec3LBox">
<img src="/Content/images/DragSSO/inSec6-14.png" alt="">
<div>
<div>课程建设总数</div>
<div class="in3Sec3LT">167</div>
</div>
</div>
<div class="in3Sec3LBox">
<img src="/Content/images/DragSSO/inSec6-13.png" alt="">
<div>
<div>本学期开课总数</div>
<div class="in3Sec3LT">167</div>
</div>
</div>
<div class="in3Sec3LBox">
<img src="/Content/images/DragSSO/inSec6-12.png" alt="">
<div>
<div>课程运行预警</div>
<div class="in3Sec3LT">167</div>
</div>
</div>
</div>
<div class="echartBox" id="class"></div>
<div class="in3Sec3ClassTxt">课程分类</div>
<div class="layui-input-block classSort">
<select id="" name="wh" lay-filter="wh" lay-verify="required">
<option value="0-20">0-20</option>
<option value="20-40">20-40</option>
<option value="40-60">40-60</option>
<option value="60-80">60-80</option>
<option value="80-100" selected>机械执照专业机械执照专业机械执照专业</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<!-- / index_sec3 -->
<!-- login -->
<div class="logins">
<div class="loginZhe"></div>
<div class="loginBox">
<div class="login commonClear">
<div class="loginTab">
<div class="active">
<img class="loginTabImg1" src="/Content/images/DragSSO/login5-3.png" alt="" />
<img class="loginTabImg2" src="/Content/images/DragSSO/login5-3s.png" alt="" />
</div>
<div>
<img class="loginTabImg1" src="/Content/images/DragSSO/login5-2.png" alt="" />
<img class="loginTabImg2" src="/Content/images/DragSSO/login5-2s.png" alt="" />
</div>
</div>
<div class="loginCon">
<form id="loginForm" role="form" action="/a/login" method="post" novalidate="novalidate">
<div class="loginTitle">用户登录</div>
<div class="loginInput">
<div class="loginInputTxt">用户名</div>
<input type="text" placeholder="用户名" id="username" name="username"
class="form-control required">
</div>
<div class="loginInput">
<div class="loginInputTxt">用户名</div>
<input type="password" placeholder="密码" id="password" name="password"
class="form-control required">
</div>
<div class="loginInput">
<div class="loginInputTxt">验证码</div>
<div class="codeBox">
<input type="code" placeholder="验证码" id="code" name="code"
class="form-control required">
<div class="variCode"><img src="/Content/images/DragSSO/verCode.png" alt="" /></div>
</div>
</div>
<div class="loginBtn">
<input type="submit" class="btn btn-white btn-outline btn-lg btn-rounded progress-login"
value="登录" style="cursor:pointer">
</div>
<div class="loginBtn loginBtn2">
<input type="submit" class="btn btn-white btn-outline btn-lg btn-rounded progress-login"
value="教师注册" style="cursor:pointer">
</div>
<div class="wx">
<img src="/Content/images/DragSSO/weixin.png" alt="">
<span>微信登录</span>
</div>
</form>
<div class="qrCodeBox">
<div class="loginTitle">移动端登录</div>
<div id="qrCode"></div>
</div>
</div>
<div class="tips">
<img src="/Content/images/DragSSO/tips1.png" alt=""> <span>建议使用360或谷歌浏览器</span>
</div>
</div>
</div>
</div>
<!-- login -->
</div>
<!-- / warpper -->


<script src="/Content/js/DragSSO/index3.js"></script>
<script src="/Content/js/DragSSO/aLeft.js"></script>
<script>
//左侧-可用应用
var flowList = '@ViewBag.FlowList';
flowList = flowList.replace(/&quot;/g, "\"");
var flowListJson = JSON.parse(flowList);
$("#flowTypeList").find(".itemName").bind("click", function() {
var html = "";
var category = $(this).attr("itemName");
$('#flowTypeList').find('li.active').removeClass('active');
$(this).parent('li').addClass("active");
$.each(flowListJson,function(i, item) {
if (category == "全部") {
html += "<li> <a href=\"/Home/Index?autoopen=56ce34c2-882e-47d1-b12d-5036e3b79fcf&id="+item.F_Id+"&shcemeCode="+item.F_Code+"\" target=\"_blank\"> <img src=\"/Content/images/DragSSO/inSec1-"+Math.floor(Math.random()*21+2)+".png\" /><span>"+item.F_Name+"</span> </a> </li>";
}else if (item.F_Category==category) {
html += "<li> <a href=\"/Home/Index?autoopen=56ce34c2-882e-47d1-b12d-5036e3b79fcf&id=" + item.F_Id + "&shcemeCode=" + item.F_Code +"\" target=\"_blank\"> <img src=\"/Content/images/DragSSO/inSec1-"+Math.floor(Math.random()*21+2)+".png\" /><span>"+item.F_Name+"</span> </a> </li>";
}
});
$("#flowList").html(html);
})
$("#flowTypeList").find(".itemName").eq(0).trigger("click");

</script>

+ 1606
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/SSOSystem/DragModelTwo.cshtml
文件差異過大導致無法顯示
查看文件


+ 66
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/SSO_Drag_DesktopManage/SSO_Drag_DesktopManageBLL.cs 查看文件

@@ -113,6 +113,29 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
}
}
}

/// <summary>
/// 获取实体数据
/// </summary>
/// <returns></returns>
public SSO_Drag_DesktopManageEntity GetEntityByDesktopCode(string userId, string modelCode, string desktopCode)
{
try
{
return sSO_Drag_DesktopManageService.GetEntityByDesktopCode(userId, modelCode, desktopCode);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

#region 提交数据
@@ -189,6 +212,49 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
}
}

/// <summary>
/// 新建桌面
/// </summary>
public void AddDesktop(string userId, string modelCode, string desktopName, string desktopCode)
{
try
{
sSO_Drag_DesktopManageService.AddDesktop(userId, modelCode, desktopName, desktopCode);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 默认桌面恢复默认设置
/// </summary>
public void RestoreDefaultDesktop(string desktopId)
{
try
{
sSO_Drag_DesktopManageService.RestoreDefaultDesktop(desktopId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

}


+ 6
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/SSO_Drag_DesktopManage/SSO_Drag_DesktopManageEntity.cs 查看文件

@@ -62,6 +62,12 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
/// <returns></returns>
[Column("DEFAULTNAME")]
public string DefaultName { get; set; }
/// <summary>
/// 创建时间
/// </summary>
/// <returns></returns>
[Column("CREATEDATE")]
public DateTime? CreateDate { get; set; }
#endregion

#region 扩展操作


+ 16
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/SSO_Drag_DesktopManage/SSO_Drag_DesktopManageIBLL.cs 查看文件

@@ -40,6 +40,12 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
IEnumerable<SSO_Drag_DesktopManageEntity> GetListByModelCode(string userId, string modelCode);

/// <summary>
/// 获取实体数据
/// </summary>
/// <returns></returns>
SSO_Drag_DesktopManageEntity GetEntityByDesktopCode(string userId, string modelCode, string desktopCode);
#endregion

#region 提交数据
@@ -63,6 +69,16 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
/// <param name="modelCode">模式编号</param>
/// </summary>
void AddDefaultData(string userId, string modelCode);

/// <summary>
/// 新建桌面
/// </summary>
void AddDesktop(string userId, string modelCode, string desktopName, string desktopCode);

/// <summary>
/// 默认桌面恢复默认设置
/// </summary>
void RestoreDefaultDesktop(string desktopId);
#endregion

}


+ 138
- 6
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/SSO_Drag_DesktopManage/SSO_Drag_DesktopManageService.cs 查看文件

@@ -150,6 +150,28 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
}
}

/// <summary>
/// 获取实体数据
/// </summary>
/// <returns></returns>
public SSO_Drag_DesktopManageEntity GetEntityByDesktopCode(string userId, string modelCode, string desktopCode)
{
try
{
return this.BaseRepository().FindEntity<SSO_Drag_DesktopManageEntity>(x => x.UserId == userId && x.ModelCode == modelCode && x.DesktopCode == desktopCode);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion

#region 提交数据
@@ -160,12 +182,19 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
var db = this.BaseRepository().BeginTrans();
try
{
this.BaseRepository().Delete<SSO_Drag_DesktopManageEntity>(t => t.Id == keyValue);
//this.BaseRepository().Delete<SSO_Drag_DesktopManageEntity>(t => t.Id == keyValue);
//删除卡片块排序
db.Delete<SSO_Drag_CardSortManageEntity>(x => x.DesktopId == keyValue);
//删除桌面
db.Delete<SSO_Drag_DesktopManageEntity>(x => x.Id == keyValue);
db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
@@ -221,11 +250,14 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
var db = this.BaseRepository().BeginTrans();
try
{
var now = DateTime.Now;
//判断用户是否存在默认数据:不存在则增加;
var desktopEntity = db.FindEntity<SSO_Drag_DesktopManageEntity>(x => x.UserId == userId && x.ModelCode == modelCode && x.DesktopCode == "teacherDesktop");
if (desktopEntity == null)
{
//默认数据为:教师桌面(卡片块排序为:card1,card2,card3,card4,card5,card6,card7,card8,card9,card10,card11,card12,card13)、OA办公桌面()、
//默认数据为:教师桌面(模式一卡片块排序为:card1,card2,card3,card4,card5,card6,card7,card8,card9,card10,card11,card12,card13;模式二的卡片块排序为:card2,card3,card4,card5,card6,card7,card8,card9,card10,card11,card12,card13)、OA办公桌面()、
var cardSortInOne = "card1,card2,card3,card4,card5,card6,card7,card8,card9,card10,card11,card12,card13";
var cardSortInTwo = "card2,card3,card4,card5,card6,card7,card8,card9,card10,card11,card12,card13";
var desktopModel1 = new SSO_Drag_DesktopManageEntity()
{
UserId = userId,
@@ -233,8 +265,9 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
DesktopName = "教师桌面",
DesktopCode = "teacherDesktop",
Sort = "0",
DefaultFlag="1",
DefaultName="教师桌面"
DefaultFlag = "1",
DefaultName = "教师桌面",
CreateDate = now
};
desktopModel1.Create();
db.Insert(desktopModel1);
@@ -246,7 +279,8 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
DesktopCode = "workDesktop",
Sort = "1",
DefaultFlag = "1",
DefaultName = "OA办公桌面"
DefaultName = "OA办公桌面",
CreateDate = now
};
desktopModel2.Create();
db.Insert(desktopModel2);
@@ -255,7 +289,7 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
UserId = userId,
ModelCode = modelCode,
DesktopId = desktopModel1.Id,
CardSort = "card1,card2,card3,card4,card5,card6,card7,card8,card9,card10,card11,card12,card13"
CardSort = modelCode == "one" ? cardSortInOne : cardSortInTwo
};
cardSortModel1.Create();
db.Insert(cardSortModel1);
@@ -288,6 +322,104 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
}
}


/// <summary>
/// 新建桌面
/// </summary>
public void AddDesktop(string userId, string modelCode, string desktopName, string desktopCode)
{
var db = this.BaseRepository().BeginTrans();
try
{
//增加桌面数据
var desktopModel = new SSO_Drag_DesktopManageEntity()
{
UserId = userId,
ModelCode = modelCode,
DesktopName = desktopName,
DesktopCode = desktopCode,
Sort = "2",
DefaultFlag = "0",
CreateDate = DateTime.Now
};
desktopModel.Create();
db.Insert(desktopModel);
//增加卡片块排序数据
var cardModel = new SSO_Drag_CardSortManageEntity()
{
UserId = userId,
ModelCode = modelCode,
DesktopId = desktopModel.Id,
CardSort = ""
};
cardModel.Create();
db.Insert(cardModel);

db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 默认桌面恢复默认设置
/// </summary>
public void RestoreDefaultDesktop(string desktopId)
{
var db = this.BaseRepository().BeginTrans();
try
{
//桌面
var desktopEntity = db.FindEntity<SSO_Drag_DesktopManageEntity>(x => x.Id == desktopId);
if (desktopEntity != null && desktopEntity.DefaultFlag == "1")
{
desktopEntity.DesktopName = desktopEntity.DefaultName;
db.Update(desktopEntity);
//卡片块排序
var cardEntity = db.FindEntity<SSO_Drag_CardSortManageEntity>(x => x.DesktopId == desktopEntity.Id);
if (cardEntity != null)
{
if (desktopEntity.DesktopCode == "teacherDesktop")
{
var cardSortInOne = "card1,card2,card3,card4,card5,card6,card7,card8,card9,card10,card11,card12,card13";
var cardSortInTwo = "card2,card3,card4,card5,card6,card7,card8,card9,card10,card11,card12,card13";

cardEntity.CardSort = desktopEntity.ModelCode == "one" ? cardSortInOne : cardSortInTwo;
}
else
{
cardEntity.CardSort = "";
}
db.Update(cardEntity);
}
}

db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

}


Loading…
取消
儲存