|
@@ -56,6 +56,7 @@ namespace Learun.Application.Web.Controllers |
|
|
private TeachSwitchIBLL teachSwitchIBLL = new TeachSwitchBLL(); |
|
|
private TeachSwitchIBLL teachSwitchIBLL = new TeachSwitchBLL(); |
|
|
private StuSaverecordIBLL stuSaverecordIBLL = new StuSaverecordBLL(); |
|
|
private StuSaverecordIBLL stuSaverecordIBLL = new StuSaverecordBLL(); |
|
|
private StuConsumptionIBLL stuConsumptionIBLL = new StuConsumptionBLL(); |
|
|
private StuConsumptionIBLL stuConsumptionIBLL = new StuConsumptionBLL(); |
|
|
|
|
|
private MealCardRunTabIBLL mealCardRunTabIBLL = new MealCardRunTabBLL(); |
|
|
|
|
|
|
|
|
#region 统一身份认证2.0 |
|
|
#region 统一身份认证2.0 |
|
|
/// <summary> |
|
|
/// <summary> |
|
@@ -1202,19 +1203,32 @@ namespace Learun.Application.Web.Controllers |
|
|
ViewBag.AllCount = allCount; |
|
|
ViewBag.AllCount = allCount; |
|
|
ViewBag.FlowType = flowType; |
|
|
ViewBag.FlowType = flowType; |
|
|
ViewBag.FlowList = JsonConvert.SerializeObject(flowList); |
|
|
ViewBag.FlowList = JsonConvert.SerializeObject(flowList); |
|
|
//校园一卡通余额 |
|
|
|
|
|
ViewBag.StuSaveRecordTotalNum = 0; |
|
|
|
|
|
var stuSaveRecordList = stuSaverecordIBLL.GetListByAccount(userInfo.account).OrderByDescending(x => x.UPLOADDATE); |
|
|
|
|
|
if (stuSaveRecordList.Any()) |
|
|
|
|
|
|
|
|
var card = ""; |
|
|
|
|
|
if (userInfo.Description == "学生") |
|
|
|
|
|
{ |
|
|
|
|
|
card = stuInfoData.Where(x => x.StuNo == userInfo.account).Select(x => x.IdentityCardNo).FirstOrDefault(); |
|
|
|
|
|
} |
|
|
|
|
|
else if (userInfo.Description == "教师") |
|
|
{ |
|
|
{ |
|
|
ViewBag.StuSaveRecordTotalNum = stuSaveRecordList.FirstOrDefault().ODDFARE; |
|
|
|
|
|
|
|
|
card = teacherData.Where(x => x.EmpNo == userInfo.account).Select(x => x.IdentityCardNo).FirstOrDefault(); |
|
|
} |
|
|
} |
|
|
|
|
|
//校园一卡通余额 |
|
|
|
|
|
ViewBag.StuSaveRecordTotalNum = 0; |
|
|
//红湖付款码余额 |
|
|
//红湖付款码余额 |
|
|
ViewBag.StuConsumptionTotalNum = 0; |
|
|
ViewBag.StuConsumptionTotalNum = 0; |
|
|
var stuConsumptionList = stuConsumptionIBLL.GetListByAccount(userInfo.account); |
|
|
|
|
|
if (stuConsumptionList.Any()) |
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(card)) |
|
|
{ |
|
|
{ |
|
|
ViewBag.StuConsumptionTotalNum = stuConsumptionList.Select(x => x.OPFARE.ToDecimal()).Sum(); |
|
|
|
|
|
|
|
|
var mealCardRunTabList = mealCardRunTabIBLL.GetListByAccount(card).OrderByDescending(x => x.centralTm); |
|
|
|
|
|
if (mealCardRunTabList.Any()) |
|
|
|
|
|
{ |
|
|
|
|
|
ViewBag.StuSaveRecordTotalNum = mealCardRunTabList.FirstOrDefault().balance / 10000; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var mealCardRunTabListJY = mealCardRunTabIBLL.GetListByAccount(card); |
|
|
|
|
|
if (mealCardRunTabListJY.Any()) |
|
|
|
|
|
{ |
|
|
|
|
|
ViewBag.StuConsumptionTotalNum = Math.Abs(mealCardRunTabListJY.Select(x => x.flowamount.ToDecimal() / 10000).Sum()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
//常用链接 |
|
|
//常用链接 |
|
|
var userfunctionlist = perm_FunctionIBLL.GetListByUserId(userInfo.userId); |
|
|
var userfunctionlist = perm_FunctionIBLL.GetListByUserId(userInfo.userId); |
|
@@ -1532,19 +1546,28 @@ namespace Learun.Application.Web.Controllers |
|
|
ViewBag.AllCount = allCount; |
|
|
ViewBag.AllCount = allCount; |
|
|
ViewBag.FlowType = flowType; |
|
|
ViewBag.FlowType = flowType; |
|
|
ViewBag.FlowList = JsonConvert.SerializeObject(flowList); |
|
|
ViewBag.FlowList = JsonConvert.SerializeObject(flowList); |
|
|
|
|
|
var card = ""; |
|
|
|
|
|
if (userInfo.Description == "学生") |
|
|
|
|
|
{ |
|
|
|
|
|
card = stuInfoData.Where(x => x.StuNo == userInfo.account).Select(x => x.IdentityCardNo).FirstOrDefault(); |
|
|
|
|
|
} |
|
|
|
|
|
else if (userInfo.Description == "教师") |
|
|
|
|
|
{ |
|
|
|
|
|
card = teacherData.Where(x => x.EmpNo == userInfo.account).Select(x => x.IdentityCardNo).FirstOrDefault(); |
|
|
|
|
|
} |
|
|
//校园一卡通余额 |
|
|
//校园一卡通余额 |
|
|
ViewBag.StuSaveRecordTotalNum = 0; |
|
|
ViewBag.StuSaveRecordTotalNum = 0; |
|
|
var stuSaveRecordList = stuSaverecordIBLL.GetListByAccount(userInfo.account).OrderByDescending(x => x.UPLOADDATE); |
|
|
|
|
|
if (stuSaveRecordList.Any()) |
|
|
|
|
|
|
|
|
var mealCardRunTabList = mealCardRunTabIBLL.GetListByAccount(card).OrderByDescending(x => x.centralTm); |
|
|
|
|
|
if (mealCardRunTabList.Any()) |
|
|
{ |
|
|
{ |
|
|
ViewBag.StuSaveRecordTotalNum = stuSaveRecordList.FirstOrDefault().ODDFARE; |
|
|
|
|
|
|
|
|
ViewBag.StuSaveRecordTotalNum = mealCardRunTabList.FirstOrDefault().balance / 10000; |
|
|
} |
|
|
} |
|
|
//红湖付款码余额 |
|
|
//红湖付款码余额 |
|
|
ViewBag.StuConsumptionTotalNum = 0; |
|
|
ViewBag.StuConsumptionTotalNum = 0; |
|
|
var stuConsumptionList = stuConsumptionIBLL.GetListByAccount(userInfo.account); |
|
|
|
|
|
if (stuConsumptionList.Any()) |
|
|
|
|
|
|
|
|
var mealCardRunTabListJY = mealCardRunTabIBLL.GetListByAccount(userInfo.IdentityCardNo); |
|
|
|
|
|
if (mealCardRunTabListJY.Any()) |
|
|
{ |
|
|
{ |
|
|
ViewBag.StuConsumptionTotalNum = stuConsumptionList.Select(x => x.OPFARE.ToDecimal()).Sum(); |
|
|
|
|
|
|
|
|
ViewBag.StuConsumptionTotalNum = Math.Abs(mealCardRunTabListJY.Select(x => x.flowamount.ToDecimal() / 10000).Sum()); |
|
|
} |
|
|
} |
|
|
//常用链接 |
|
|
//常用链接 |
|
|
var userfunctionlist = perm_FunctionIBLL.GetListByUserId(userInfo.userId); |
|
|
var userfunctionlist = perm_FunctionIBLL.GetListByUserId(userInfo.userId); |
|
|