46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using Core.Web.App_Start;
|
|
using Core.Web.WebHelper;
|
|
using CRM.Core.BLL.Application.Order;
|
|
using CRM.Core.BLL.B;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using WX.CRM.Common;
|
|
|
|
namespace Core.Web.Controllers
|
|
{
|
|
public class CashFlowController : BaseController
|
|
{
|
|
B_Audit_Items_BL b_Audit_Items_Bl = new B_Audit_Items_BL();
|
|
// GET: CashFlow
|
|
|
|
[AuthorizeRedirect(RightsConfig.CONST_每日收款, ToolBarConfig.CONST_NotButton, true)]
|
|
[HttpGet]
|
|
public ActionResult Index()
|
|
{
|
|
ViewBag.AuditItems = b_Audit_Items_Bl.GetAuditItemsFromId(0);
|
|
return View();
|
|
}
|
|
|
|
[AuthorizeRedirect(RightsConfig.CONST_每日收款, ToolBarConfig.CONST_NotButton, true)]
|
|
[HttpGet]
|
|
public ActionResult GetItems()
|
|
{
|
|
var result = b_Audit_Items_Bl.GetAuditItemsFromId(0);
|
|
return Json(new { result }, JsonRequestBehavior.AllowGet);
|
|
}
|
|
|
|
|
|
[AuthorizeRedirect(RightsConfig.CONST_每日收款, ToolBarConfig.CONST_NotButton, true)]
|
|
[HttpPost]
|
|
public ActionResult query(DateTime day)
|
|
{
|
|
QueryCashFlow queryCashFlow = new QueryCashFlow();
|
|
var result= queryCashFlow.cashFlowQueryResult(day);
|
|
return Json(new { result }, JsonRequestBehavior.AllowGet);
|
|
}
|
|
|
|
}
|
|
} |