Parcourir la source

处理长阳一卡通余额和交易显示

临城职教中职
ndbs il y a 2 ans
Parent
révision
132e31cecc
2 fichiers modifiés avec 6 ajouts et 16 suppressions
  1. +2
    -12
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js
  2. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs

+ 2
- 12
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js Voir le fichier

@@ -136,18 +136,8 @@ var bootstrap = function ($, learun) {
{ label: '身份证号', name: 'personId', width: 150, align: "left" },
{ label: '身份名称', name: 'identiName', width: 80, align: "left" },
{ label: '流水类型', name: 'flowtype', width: 100, align: "left" },
{
label: '交易金额', name: 'flowamount', width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue / 10000;
}
},
{
label: '余额', name: 'balance', width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue / 10000;
}
},
{ label: '交易金额', name: 'flowamount', width: 100, align: "left" },
{ label: '余额', name: 'balance', width: 100, align: "left" },
{ label: '卡号', name: 'cardNo', width: 100, align: "left" },
{ label: '中心时间', name: 'centralTm', width: 150, align: "left" },
{ label: '中心序号', name: 'centralNo', width: 100, align: "left" },


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs Voir le fichier

@@ -1221,13 +1221,13 @@ namespace Learun.Application.Web.Controllers
var mealCardRunTabList = mealCardRunTabIBLL.GetListByAccount(card).OrderByDescending(x => x.centralTm);
if (mealCardRunTabList.Any())
{
ViewBag.StuSaveRecordTotalNum = mealCardRunTabList.FirstOrDefault().balance / 10000;
ViewBag.StuSaveRecordTotalNum = mealCardRunTabList.FirstOrDefault().balance;
}

var mealCardRunTabListJY = mealCardRunTabIBLL.GetListByAccount(card);
if (mealCardRunTabListJY.Any())
{
ViewBag.StuConsumptionTotalNum = Math.Abs(mealCardRunTabListJY.Select(x => x.flowamount.ToDecimal() / 10000).Sum());
ViewBag.StuConsumptionTotalNum = Math.Abs(mealCardRunTabListJY.Select(x => x.flowamount).Sum());
}
}
//常用链接
@@ -1560,14 +1560,14 @@ namespace Learun.Application.Web.Controllers
var mealCardRunTabList = mealCardRunTabIBLL.GetListByAccount(card).OrderByDescending(x => x.centralTm);
if (mealCardRunTabList.Any())
{
ViewBag.StuSaveRecordTotalNum = mealCardRunTabList.FirstOrDefault().balance / 10000;
ViewBag.StuSaveRecordTotalNum = mealCardRunTabList.FirstOrDefault().balance;
}
//红湖付款码余额
ViewBag.StuConsumptionTotalNum = 0;
var mealCardRunTabListJY = mealCardRunTabIBLL.GetListByAccount(userInfo.IdentityCardNo);
if (mealCardRunTabListJY.Any())
{
ViewBag.StuConsumptionTotalNum = Math.Abs(mealCardRunTabListJY.Select(x => x.flowamount.ToDecimal() / 10000).Sum());
ViewBag.StuConsumptionTotalNum = Math.Abs(mealCardRunTabListJY.Select(x => x.flowamount).Sum());
}
//常用链接
var userfunctionlist = perm_FunctionIBLL.GetListByUserId(userInfo.userId);


Chargement…
Annuler
Enregistrer