36 lines
999 B
C#
36 lines
999 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 ChargeRefundController : Controller
|
|
{
|
|
// GET: ChargeRefund
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult getData(string start, string end, string where)
|
|
{
|
|
if (string.IsNullOrEmpty(start) || string.IsNullOrEmpty(end))
|
|
return Json(null);
|
|
var bll = new charge_refundBll();
|
|
var result = bll.GetAllList2(start, end, where);
|
|
return Json(new { Rows = result });
|
|
}
|
|
|
|
public JsonResult refund(string id)
|
|
{
|
|
if (string.IsNullOrEmpty(id))
|
|
return Json(null);
|
|
var bll = new charge_refundBll();
|
|
var result = bll.refund(id, Session["loginUser"] as Models.ERPUser);
|
|
return Json(result);
|
|
}
|
|
}
|
|
} |