瀏覽代碼

办事大厅增加一卡通余额,一卡通消费记录,数据从数据中心oracle中间库获取

西昌缴费二期
liangkun 1 年之前
父節點
當前提交
dcb6eb5d03
共有 5 個檔案被更改,包括 426 行新增283 行删除
  1. +68
    -30
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs
  2. +277
    -253
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/SSOSystem/DragModelOne.cshtml
  3. +36
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorBLL.cs
  4. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorIBLL.cs
  5. +43
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorService.cs

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

@@ -398,18 +398,18 @@ namespace Learun.Application.Web.Controllers
ViewBag.FlowList = JsonConvert.SerializeObject(flowList);
//校园一卡通余额
ViewBag.StuSaveRecordTotalNum = 0;
var stuSaveRecordList = stuSaverecordIBLL.GetListByAccount(userInfo.account).OrderByDescending(x => x.UPLOADDATE);
if (stuSaveRecordList.Any())
{
ViewBag.StuSaveRecordTotalNum = stuSaveRecordList.FirstOrDefault().ODDFARE;
}
//var stuSaveRecordList = stuSaverecordIBLL.GetListByAccount(userInfo.account).OrderByDescending(x => x.UPLOADDATE);
//if (stuSaveRecordList.Any())
//{
// ViewBag.StuSaveRecordTotalNum = stuSaveRecordList.FirstOrDefault().ODDFARE;
//}
//红湖付款码余额
ViewBag.StuConsumptionTotalNum = 0;
var stuConsumptionList = stuConsumptionIBLL.GetListByAccount(userInfo.account);
if (stuConsumptionList.Any())
{
ViewBag.StuConsumptionTotalNum = stuConsumptionList.Select(x => x.OPFARE.ToDecimal()).Sum();
}
//var stuConsumptionList = stuConsumptionIBLL.GetListByAccount(userInfo.account);
//if (stuConsumptionList.Any())
//{
// ViewBag.StuConsumptionTotalNum = stuConsumptionList.Select(x => x.OPFARE.ToDecimal()).Sum();
//}
//常用链接
var userfunctionlist = perm_FunctionIBLL.GetListByUserId(userInfo.userId);
var ff = userfunctionlist.GroupBy(x => x.FTName).Select(x => new Perm_FunctionEntity()
@@ -1401,18 +1401,19 @@ namespace Learun.Application.Web.Controllers
ViewBag.FlowList = JsonConvert.SerializeObject(flowList);
//校园一卡通余额
ViewBag.StuSaveRecordTotalNum = 0;
var stuSaveRecordList = stuSaverecordIBLL.GetListByAccount(userInfo.account).OrderByDescending(x => x.UPLOADDATE);
if (stuSaveRecordList.Any())
{
ViewBag.StuSaveRecordTotalNum = stuSaveRecordList.FirstOrDefault().ODDFARE;
}

//var stuSaveRecordList = stuSaverecordIBLL.GetListByAccount(userInfo.account).OrderByDescending(x => x.UPLOADDATE);
//if (stuSaveRecordList.Any())
//{
// ViewBag.StuSaveRecordTotalNum = stuSaveRecordList.FirstOrDefault().ODDFARE;
//}
//红湖付款码余额
ViewBag.StuConsumptionTotalNum = 0;
var stuConsumptionList = stuConsumptionIBLL.GetListByAccount(userInfo.account);
if (stuConsumptionList.Any())
{
ViewBag.StuConsumptionTotalNum = stuConsumptionList.Select(x => x.OPFARE.ToDecimal()).Sum();
}
//var stuConsumptionList = stuConsumptionIBLL.GetListByAccount(userInfo.account);
//if (stuConsumptionList.Any())
//{
// ViewBag.StuConsumptionTotalNum = stuConsumptionList.Select(x => x.OPFARE.ToDecimal()).Sum();
//}
//常用链接
var userfunctionlist = perm_FunctionIBLL.GetListByUserId(userInfo.userId);
var ff = userfunctionlist.GroupBy(x => x.FTName).Select(x => new Perm_FunctionEntity()
@@ -1734,18 +1735,18 @@ namespace Learun.Application.Web.Controllers
ViewBag.FlowList = JsonConvert.SerializeObject(flowList);
//校园一卡通余额
ViewBag.StuSaveRecordTotalNum = 0;
var stuSaveRecordList = stuSaverecordIBLL.GetListByAccount(userInfo.account).OrderByDescending(x => x.UPLOADDATE);
if (stuSaveRecordList.Any())
{
ViewBag.StuSaveRecordTotalNum = stuSaveRecordList.FirstOrDefault().ODDFARE;
}
//var stuSaveRecordList = stuSaverecordIBLL.GetListByAccount(userInfo.account).OrderByDescending(x => x.UPLOADDATE);
//if (stuSaveRecordList.Any())
//{
// ViewBag.StuSaveRecordTotalNum = stuSaveRecordList.FirstOrDefault().ODDFARE;
//}
//红湖付款码余额
ViewBag.StuConsumptionTotalNum = 0;
var stuConsumptionList = stuConsumptionIBLL.GetListByAccount(userInfo.account);
if (stuConsumptionList.Any())
{
ViewBag.StuConsumptionTotalNum = stuConsumptionList.Select(x => x.OPFARE.ToDecimal()).Sum();
}
//var stuConsumptionList = stuConsumptionIBLL.GetListByAccount(userInfo.account);
//if (stuConsumptionList.Any())
//{
// ViewBag.StuConsumptionTotalNum = stuConsumptionList.Select(x => x.OPFARE.ToDecimal()).Sum();
//}
//常用链接
var userfunctionlist = perm_FunctionIBLL.GetListByUserId(userInfo.userId);
var ff = userfunctionlist.GroupBy(x => x.FTName).Select(x => new Perm_FunctionEntity()
@@ -2020,5 +2021,42 @@ namespace Learun.Application.Web.Controllers
return Success("操作成功");
}

[HandlerLogin(FilterMode.Enforce)]
public ActionResult GetYKTPayed()
{
var yktpayed=cdMajorIBLL.GetYKTPayed(LoginUserInfo.Get().account);
if (yktpayed!=null&& yktpayed.Rows.Count>0)
{
return Success(new
{
YKTPayed = (yktpayed.Rows[0][0].ToDecimal()/100).ToDecimal(2)
});
}
else
{
return Success(new {
YKTPayed=0
});
}
}
[HandlerLogin(FilterMode.Enforce)]
public ActionResult GetYKTBalance()
{
var yktpayed = cdMajorIBLL.GetYKTBalance(LoginUserInfo.Get().account);
if (yktpayed != null && yktpayed.Rows.Count > 0)
{
return Success(new
{
YKTPayed = (yktpayed.Rows[0][0].ToDecimal()/100).ToDecimal(2)
});
}
else
{
return Success(new
{
YKTPayed = 0
});
}
}
}
}

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

@@ -20,71 +20,71 @@
//数据看板
var card1Fun = function (ind) {
var html = '<div class="inSec3Col6" id="' + ind+'_card1">'
+'<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="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-1.png" alt=""></div>'
+'<span>校园一卡通余额</span>'
+ '</div>'
+ '<div class="inSec3MajorTxt">¥<span>@ViewBag.StuSaveRecordTotalNum</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-2.png" alt=""></div>'
+'<span>校园一卡通消费金额</span>'
+ '</div>'
+ '<div class="inSec3MajorTxt">¥<span>@ViewBag.StuConsumptionTotalNum</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-3.png" alt=""></div>'
+'<span>图书馆借阅(未还) </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-4.png" alt=""></div>'
+'<span>已完成办公事项</span>'
+'</div>'
+'<div class="inSec3MajorTxt"><span>@ViewBag.FinishTaskTotalNum</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-5.png" alt=""></div>'
+'<span>智慧教育在线学习时长</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>0</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-7.png" alt=""></div>'
+'<span>来往邮件数量</span>'
+'</div>'
+'<div class="inSec3MajorTxt"><span>@ViewBag.LanMailTotalNum</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-8.png" alt=""></div>'
+'<span>累计在线时长</span>'
+'</div>'
+ '<div class="inSec3MajorTxt"><span>0</span></div>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
+'<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="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-1.png" alt=""></div>'
+'<span>校园一卡通余额</span>'
+ '</div>'
+ '<div class="inSec3MajorTxt">¥<span id="YKTBalance">@ViewBag.StuSaveRecordTotalNum</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-2.png" alt=""></div>'
+'<span>校园一卡通消费金额</span>'
+ '</div>'
+ '<div class="inSec3MajorTxt">¥<span id="YKTPayed">@ViewBag.StuConsumptionTotalNum</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-3.png" alt=""></div>'
+'<span>图书馆借阅(未还) </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-4.png" alt=""></div>'
+'<span>已完成办公事项</span>'
+'</div>'
+'<div class="inSec3MajorTxt"><span>@ViewBag.FinishTaskTotalNum</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-5.png" alt=""></div>'
+'<span>智慧教育在线学习时长</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>0</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-7.png" alt=""></div>'
+'<span>来往邮件数量</span>'
+'</div>'
+'<div class="inSec3MajorTxt"><span>@ViewBag.LanMailTotalNum</span></div>'
+'</div>'
+'<div class="inSec3Major">'
+'<div class="inSec3MajorImgBox">'
+'<div class="inSec3MajorImg"><img src="../../Content/images/DragSSO/indexSec3-8.png" alt=""></div>'
+'<span>累计在线时长</span>'
+'</div>'
+ '<div class="inSec3MajorTxt"><span>0</span></div>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
;
return html;
};
@@ -160,11 +160,11 @@
} else {
html += noHtml;
}
html+='</div>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
html+='</div>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
;
return html;
};
@@ -194,37 +194,37 @@
} else {
html += noHtml;
}
html+= '</div>'
+ '</div>'
+ '</div>'
html+= '</div>'
+ '</div>'
+ '</div>'
;
return html;
};
//专业总览
var card4Fun = function (ind) {
var html = '<div class="inSec3Col6" id="' + ind + '_card4">'
+'<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="' + ind + '_major"></div>'
+'<div class="inSec3majorTxt inSec3majorTxt1">'
+'<div>班级总数</div>'
+'<div>@ViewBag.ClassInfoTotalNum</div>'
+'</div>'
+'<div class="inSec3majorTxt inSec3majorTxt2">'
+'<div>专业学生</div>'
+'<div>@ViewBag.StuInfoTotalNum</div>'
+'</div>'
+'<div class="inSec3majorTxt inSec3majorTxt3">'
+'<div>专业教室</div>'
+'<div>@ViewBag.ClassRoomTotalNum</div>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
+'<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="' + ind + '_major"></div>'
+'<div class="inSec3majorTxt inSec3majorTxt1">'
+'<div>班级总数</div>'
+'<div>@ViewBag.ClassInfoTotalNum</div>'
+'</div>'
+'<div class="inSec3majorTxt inSec3majorTxt2">'
+'<div>专业学生</div>'
+'<div>@ViewBag.StuInfoTotalNum</div>'
+'</div>'
+'<div class="inSec3majorTxt inSec3majorTxt3">'
+'<div>专业教室</div>'
+'<div>@ViewBag.ClassRoomTotalNum</div>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
;
return html;
};
@@ -257,12 +257,12 @@
for (var j = 0; j < list[i].PFunctionList.length; j++) {
html += '<a href="/Home/GoToApplication?appid=' + list[i].PFunctionList[j].FId + '" target="_blank" class="inSec3Link inSec3Link'+(j+1)+'">' + list[i].PFunctionList[j].FName+'</a>';
}
html+= '</div>';
html+= '</div>';
}
html+='</div>'
+'</div>'
+'</div>'
+'</div>'
html+='</div>'
+'</div>'
+'</div>'
+'</div>'
;
return html;
};
@@ -309,67 +309,67 @@
+ '</div>';
}
html+='</div>'
+'</div>'
+'</div>'
+'</div>'
html+='</div>'
+'</div>'
+'</div>'
+'</div>'
;
return html;
};
//校园总览
var card7Fun = function (ind) {
var html = '<div class="inSec3Col6" id="' + ind + '_card7">'
+'<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">@ViewBag.MajorTotalNum</div>'
+'</div>'
+'<div class="overviewBox">'
+'<div class="overviewImg">'
+'<img src="../../Content/images/DragSSO/indexSec3-24.png" alt="">'
+'<span>班级总数</span>'
+'</div>'
+'<div class="overviewTxt">@ViewBag.ClassInfoTotalNum</div>'
+'</div>'
+'<div class="overviewBox">'
+'<div class="overviewImg">'
+'<img src="../../Content/images/DragSSO/indexSec3-25.png" alt="">'
+'<span>在校学生</span>'
+'</div>'
+'<div class="overviewTxt">@ViewBag.StuInfoTotalNum</div>'
+'</div>'
+'<div class="overviewBox">'
+'<div class="overviewImg">'
+'<img src="../../Content/images/DragSSO/indexSec3-26.png" alt="">'
+'<span>在校教师</span>'
+'</div>'
+'<div class="overviewTxt">@ViewBag.TeacherTotalNum</div>'
+'</div>'
+'<div class="overviewBox">'
+'<div class="overviewImg">'
+'<img src="../../Content/images/DragSSO/indexSec3-27.png" alt="">'
+'<span>在用教室</span>'
+'</div>'
+'<div class="overviewTxt">@ViewBag.ClassRoomTotalNum</div>'
+'</div>'
+'<div class="overviewBox">'
+'<div class="overviewImg">'
+'<img src="../../Content/images/DragSSO/indexSec3-28.png" alt="">'
+'<span>课程总数</span>'
+'</div>'
+'<div class="overviewTxt">@ViewBag.LessonTotalNum</div>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
+'<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">@ViewBag.MajorTotalNum</div>'
+'</div>'
+'<div class="overviewBox">'
+'<div class="overviewImg">'
+'<img src="../../Content/images/DragSSO/indexSec3-24.png" alt="">'
+'<span>班级总数</span>'
+'</div>'
+'<div class="overviewTxt">@ViewBag.ClassInfoTotalNum</div>'
+'</div>'
+'<div class="overviewBox">'
+'<div class="overviewImg">'
+'<img src="../../Content/images/DragSSO/indexSec3-25.png" alt="">'
+'<span>在校学生</span>'
+'</div>'
+'<div class="overviewTxt">@ViewBag.StuInfoTotalNum</div>'
+'</div>'
+'<div class="overviewBox">'
+'<div class="overviewImg">'
+'<img src="../../Content/images/DragSSO/indexSec3-26.png" alt="">'
+'<span>在校教师</span>'
+'</div>'
+'<div class="overviewTxt">@ViewBag.TeacherTotalNum</div>'
+'</div>'
+'<div class="overviewBox">'
+'<div class="overviewImg">'
+'<img src="../../Content/images/DragSSO/indexSec3-27.png" alt="">'
+'<span>在用教室</span>'
+'</div>'
+'<div class="overviewTxt">@ViewBag.ClassRoomTotalNum</div>'
+'</div>'
+'<div class="overviewBox">'
+'<div class="overviewImg">'
+'<img src="../../Content/images/DragSSO/indexSec3-28.png" alt="">'
+'<span>课程总数</span>'
+'</div>'
+'<div class="overviewTxt">@ViewBag.LessonTotalNum</div>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
;
return html;
};
@@ -411,9 +411,9 @@
} else {
html += noHtml;
}
html+='</div>'
+'</div>'
+'</div>'
html+='</div>'
+'</div>'
+'</div>'
;
return html;
};
@@ -477,12 +477,12 @@
} else {
html += noHtml;
}
html+='</div>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
;
html+='</div>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
;
return html;
};
//通知公告
@@ -510,9 +510,9 @@
} else {
html += noHtml;
}
html+= '</div>'
+ '</div>'
+ '</div>'
html+= '</div>'
+ '</div>'
+ '</div>'
;
return html;
};
@@ -534,9 +534,9 @@
} else {
html += noHtml;
}
html+= '</div>'
+ '</div>'
+ '</div>'
html+= '</div>'
+ '</div>'
+ '</div>'
;
return html;
};
@@ -572,35 +572,35 @@
} else {
html += noHtml;
}
html+='</div>'
+'</div>'
+'</div>'
html+='</div>'
+'</div>'
+'</div>'
;
return html;
};
//办公业务流量
var card13Fun = function (ind) {
var html = '<div class="inSec3Col3" id="' + ind + '_card13">'
+'<div class="inSec3Box" >'
+'<div class="inSecT">'
+'<span>办公业务流量</span>'
+'<a href="#" class="more"><span></span><span></span><span></span></a>'
+'</div>'
+ '<div class="inSec3Con">'
+ '<div id="' + ind + '_serviceEchart" class="echartBox"></div>'
+ '<div class="layui-input-block">'
+ '<select id="' + ind + '_zy" name="' + ind + '_zy" lay-filter="' + ind + '_zy">'
+'<option value="" selected>请选择</option>'
+'<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">80-100</option>'
+'</select>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
+'<div class="inSec3Box" >'
+'<div class="inSecT">'
+'<span>办公业务流量</span>'
+'<a href="#" class="more"><span></span><span></span><span></span></a>'
+'</div>'
+ '<div class="inSec3Con">'
+ '<div id="' + ind + '_serviceEchart" class="echartBox"></div>'
+ '<div class="layui-input-block">'
+ '<select id="' + ind + '_zy" name="' + ind + '_zy" lay-filter="' + ind + '_zy">'
+'<option value="" selected>请选择</option>'
+'<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">80-100</option>'
+'</select>'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
;
return html;
};
@@ -728,6 +728,30 @@
});
}
</script>
<script type="text/javascript">
$(document).ready(function() {
$.ajax({
url: "/SSOSystem/GetYKTBalance",
type: "get",
dataType: "json",
success: function(res) {
if (res.code == 200) {
$("#YKTBalance").html(res.data.YKTPayed);
}
}
});
$.ajax({
url: "/SSOSystem/GetYKTPayed",
type: "get",
dataType: "json",
success: function (res) {
if (res.code == 200) {
$("#YKTPayed").html(res.data.YKTPayed);
}
}
});
});
</script>
<style>
.desktopSetBox b {
font-weight: normal;
@@ -1267,17 +1291,17 @@
{
case "card1":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card1Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card1Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card2":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card2Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card2Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card3":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card3Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card3Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card4":
@@ -1288,42 +1312,42 @@
break;
case "card5":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card5Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card5Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card6":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card6Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card6Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card7":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card7Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card7Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card8":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card8Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card8Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card9":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card9Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card9Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card10":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card10Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card10Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card11":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card11Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card11Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card12":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card12Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card12Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card13":
@@ -1344,69 +1368,69 @@
{
case "card1":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card1Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card1Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card2":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card2Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card2Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card3":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card3Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card3Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card4":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card4Fun("@desktopItem.DesktopCode"));
majorEchart("@desktopItem.DesktopCode");
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card4Fun("@desktopItem.DesktopCode"));
majorEchart("@desktopItem.DesktopCode");
</script>
break;
case "card5":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card5Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card5Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card6":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card6Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card6Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card7":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card7Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card7Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card8":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card8Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card8Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card9":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card9Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card9Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card10":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card10Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card10Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card11":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card11Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card11Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card12":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card12Fun("@desktopItem.DesktopCode"));
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card12Fun("@desktopItem.DesktopCode"));
</script>
break;
case "card13":
<script>
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card13Fun("@desktopItem.DesktopCode"));
serviceEchart("@desktopItem.DesktopCode");
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card13Fun("@desktopItem.DesktopCode"));
serviceEchart("@desktopItem.DesktopCode");
</script>
break;
default:
@@ -1589,34 +1613,34 @@
var ind = $('.inSec3Row.active').attr('ind');
var html = '';
switch (cardId) {
case 'card1':
html = card1Fun(ind); break;
case 'card2':
html = card2Fun(ind); break;
case 'card3':
html = card3Fun(ind); break;
case 'card4':
html = card4Fun(ind); break;
case 'card5':
html = card5Fun(ind); break;
case 'card6':
html = card6Fun(ind); break;
case 'card7':
html = card7Fun(ind); break;
case 'card8':
html = card8Fun(ind); break;
case 'card9':
html = card9Fun(ind); break;
case 'card10':
html = card10Fun(ind); break;
case 'card11':
html = card11Fun(ind); break;
case 'card12':
html = card12Fun(ind); break;
case 'card13':
html = card13Fun(ind); break;
default:
html = ''; break;
case 'card1':
html = card1Fun(ind); break;
case 'card2':
html = card2Fun(ind); break;
case 'card3':
html = card3Fun(ind); break;
case 'card4':
html = card4Fun(ind); break;
case 'card5':
html = card5Fun(ind); break;
case 'card6':
html = card6Fun(ind); break;
case 'card7':
html = card7Fun(ind); break;
case 'card8':
html = card8Fun(ind); break;
case 'card9':
html = card9Fun(ind); break;
case 'card10':
html = card10Fun(ind); break;
case 'card11':
html = card11Fun(ind); break;
case 'card12':
html = card12Fun(ind); break;
case 'card13':
html = card13Fun(ind); break;
default:
html = ''; break;
}

$('.inSec3Row.active').append(html);
@@ -1649,12 +1673,12 @@
$('#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>";
}
});
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");


+ 36
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorBLL.cs 查看文件

@@ -288,6 +288,42 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
public DataTable GetYKTBalance(string EmpNo)
{
try
{
return cdMajorService.GetYKTBalance(EmpNo);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
public DataTable GetYKTPayed(string EmpNo)
{
try
{
return cdMajorService.GetYKTPayed(EmpNo);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

}


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorIBLL.cs 查看文件

@@ -62,5 +62,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
IEnumerable<CdMajorEntity> GetAllList();
DataTable GetCountInfos();
DataTable Getmajorstu();
DataTable GetYKTBalance(string EmpNo);
DataTable GetYKTPayed(string EmpNo);
}
}

+ 43
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorService.cs 查看文件

@@ -442,5 +442,48 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}

public DataTable GetYKTBalance(string EmpNo)
{
try
{
return BaseRepository("xcdatacenter").FindTable(@"select card_balance from (select people_no,pay_money,card_balance,to_char(to_date(pay_time,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd') from V_YKTXX t
where people_no is not null and Trim(people_no) = '" + EmpNo+"' and pay_money < 0 and to_char(to_date(pay_time, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') = '"+ DateTime.Now.ToString("yyyy-MM-dd") + @"'
group by people_no, pay_money, card_balance, pay_time order by pay_time desc) tt where rownum <= 1");
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

public DataTable GetYKTPayed(string EmpNo)
{
try
{
return BaseRepository("xcdatacenter").FindTable(@"select NVL(sum(abs(pay_money)),0) from (
select people_no, pay_money, card_balance, to_char(to_date(pay_time, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') from V_YKTXX t
where people_no is not null and Trim(people_no) = '" + EmpNo+"' and pay_money < 0 and to_char(to_date(pay_time, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd') = '"+ DateTime.Now.ToString("yyyy-MM-dd") +@"'
group by people_no, pay_money, card_balance, pay_time) tt");
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
}
}

Loading…
取消
儲存