33 lines
860 B
C#
33 lines
860 B
C#
using dccdc.BLL;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace dccdc.Controllers
|
|
{
|
|
public class balanceController : Controller
|
|
{
|
|
// GET: balance
|
|
public ActionResult Index()
|
|
{
|
|
ViewBag.skr = (Session["loginUser"] as Models.ERPUser).TrueName;
|
|
return View();
|
|
}
|
|
|
|
public JsonResult getBalanceAll(string rq)
|
|
{
|
|
var bll = new chargeBll();
|
|
var result = bll.GetBalance((Session["loginUser"] as Models.ERPUser).TrueName,rq);
|
|
return Json(new { Rows = result });
|
|
}
|
|
|
|
public JsonResult SaveBalance(string ids)
|
|
{
|
|
var bll = new chargeBll();
|
|
var result = bll.SaveBalance(ids.TrimEnd(','));
|
|
return Json(result);
|
|
}
|
|
}
|
|
} |