HN.UI/Controllers/BalanceController.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using HN.BLL;
using HN.Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace HN.UI.Controllers
{
public class BalanceController : Controller
{
Balance balBll = new Balance();
Settlement setbll = new Settlement();
//
// GET: /Balance/
public ActionResult Index()
{
return View();
}
#region 获取账户余额(客户余额或供应商余额)
[HttpPost]
public ActionResult GetModel(BalanceInfo info)
{
BalanceInfo model = new BalanceInfo();
//获取所有未本供应商所有未审核的预付款金额
//decimal modelY = 0;
string Where = "";
if (info.VenID != null)
{
Where = " VenID=" + info.VenID;
//modelY=setbll.GetDecimalByVenID(info.VenID);
}
if (info.CustID != null)
{
Where = " CustID=" + info.CustID;
}
if (Where == "")
{
return Json(new { row = model });
}
DataTable dt = balBll.GetList(Where);
if (dt != null && dt.Rows.Count > 0)
{
model.BaID = Convert.ToInt32(dt.Rows[0]["BaID"].ToString());
model.CustID = Convert.ToInt32((dt.Rows[0]["CustID"] as string) == null ? "0" : dt.Rows[0]["CustID"].ToString());
model.LockMoney = Convert.ToDecimal(dt.Rows[0]["LockMoney"].ToString());
model.Money = Convert.ToDecimal(dt.Rows[0]["Money"].ToString());
model.AvaMoney = Convert.ToDecimal(dt.Rows[0]["AvaMoney"].ToString());
return Json(new { row = model });
}
return Json(new { row = "" });
}
后面还有 14 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
