WebHost/Controllers/CustomerController.cs

(开头部分) 15KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Domain;
using ViewModel;
using IService;
using Common;
using System.Data;
using WebUI.App_Start;
using Service;
using System.Web.Security;
using System.Text;
using Senparc.Weixin.MP.Entities;

namespace WebUI.Controllers
{
    public class CustomerController : BaseController
    {

        public ICustomerService _Iobj { get; set; }
        public IDiscountRuleService _Idrs { get; set; }
        public IGlobleCustomerDiscountService _Igcd { get; set; }
        public ICashAccountLogService _cashAcountLog { get; set; }
        public ISendSMG SendSMG { get; set; }
        public IRechargeRuleService RechargeRuleService { get; set; }
        public List<SelectListItem> ddlStatusList = typeof(EnumCE.EnableEM).GetItems(defaultOption: false, isShowDefaultAllItem: false);
        public CustomerController(ICustomerService Iobj, IDiscountRuleService Idrs, IGlobleCustomerDiscountService Igcd, ICashAccountLogService IcashAcountLog, ISendSMG SendSMG, IRechargeRuleService RechargeRuleService)
        {
            this._Iobj = Iobj;
            _Idrs = Idrs;
            _Igcd = Igcd;
            _cashAcountLog = IcashAcountLog;
            this.SendSMG = SendSMG;
            this.RechargeRuleService = RechargeRuleService;
        }

        public ActionResult customersView()
        {
            ViewBag.permission_add = CheckPermission(SC.Menu.CustomerInformation, SC.Function.Add);
            ViewBag.permission_del = CheckPermission(SC.Menu.CustomerInformation, SC.Function.Delete);
            ViewBag.permission_edit = CheckPermission(SC.Menu.CustomerInformation, SC.Function.Edit);
            ViewBag.permission_view = CheckPermission(SC.Menu.CustomerInformation, SC.Function.View);
            ViewBag.permission_search = CheckPermission(SC.Menu.CustomerInformation, SC.Function.Search);
            ViewBag.permission_operateshell = CheckPermission(SC.Menu.CustomerInformation, SC.Function.OperateShell);
            ViewBag.permission_SetFreeOrder = CheckPermission(SC.Menu.CustomerInformation, SC.Function.SetFreeOrder);
            return View();
        }


        #region JSON数据获取
        /// <summary>
        /// 绑定datagrid数据显示
        /// </summary>
        /// <returns></returns>
        /// 
        public ActionResult _QueryList(CommonQueryOption option)
        {
            int totalrecords = 0;
后面还有 322 行代码,购买后查看完整代码

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

AI 解读

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

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