WebHost/Controllers/ShopCashRegisterController.cs

(完整代码) 1KB

using Common;
using Domain;
using IService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ViewModel;

namespace WebUI.Controllers
{
    public class ShopCashRegisterController : BaseController
    {
        public IOderDataServer OderDataServer { get; set; }
        public ShopCashRegisterController(IOderDataServer OderDataServer)
        {
            this.OderDataServer = OderDataServer;
        }
        ///页面权限控制
        public ActionResult Index()
        {
            ViewBag.Search = CheckPermission(SC.Menu.ShopCashRegister, SC.Function.Search);
            ViewBag.OutPut = CheckPermission(SC.Menu.ShopCashRegister, SC.Function.OutPut);//CashRegister
            ViewBag.shopid = Sys_Shop_User.ShopID;
            ViewBag.ShopName = Sys_Shop_User.ShopName;
            return View();
        }
        /// <summary>
        /// 查询店铺收银记录(副本)
        /// </summary>
        /// <param name="option"></param>
        /// <returns></returns>
        [HttpPost]
        public ActionResult GetShopCashRegisterInfo(CommonQueryOption option)
        {

            option._ID = "2";//区别是查询本店的收银还是副本收银
            if (string.IsNullOrEmpty(option._ShopID))
            {
                option._ShopID = Sys_Shop_User.ShopID;
            }

            int totalrecords = 0;
            //根据条件分页查询
            var response = OderDataServer.GetCashRegisterInfoPaging(option, out totalrecords);
            if (response == null)
                response = new List<OrdersViewextend>();
            var jsonResult = new { total = totalrecords, rows = response };

            return Json(jsonResult, JsonRequestBehavior.AllowGet);
        }

    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。