Git.Storage.Web/Areas/Client/Controllers/SupplierController.cs

(开头部分) 1KB

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

using Git.Storage.Web.Lib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Git.Framework.Controller;
using Git.Framework.DataTypes.ExtensionMethods;
using Git.Storage.Entity.Store;
using Git.Storage.Provider.Client;
using Git.Storage.Web.Lib.Filter;
using Git.Framework.DataTypes;
using Git.Storage.Common;


namespace Git.Storage.Web.Areas.Client.Controllers
{
    public class SupplierController : MasterPage
    {
        [LoginFilter]
        public ActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 添加供应商
        /// </summary>
        /// <returns></returns>
        [LoginFilter]
        public ActionResult AddSupplier()
        {
            string SupNum = WebUtil.GetQueryStringValue<string>("SupNum");
            if (SupNum.IsEmpty())
            {
                ViewBag.Supplier = new SupplierEntity();
                ViewBag.SupType = EnumHelper.GetOptions<ESupType>((int)ESupType.Invented, "请选择供应商类型");
                return View();
            }
            else
            {
                SupplierProvider provider = new SupplierProvider();
                SupplierEntity entity = provider.GetSupplier(SupNum);
                entity = entity == null ? new SupplierEntity() : entity;
                ViewBag.SupType = EnumHelper.GetOptions<ESupType>(entity.SupType,"请选择供应商类型");
                ViewBag.Supplier = entity;
                return View();
            }
        }

        /// <summary>
        /// 选择供应商
        /// </summary>
        /// <returns></returns>
        [LoginFilter]
        public ActionResult Dialog()
        {
            return View();
        }
    }
后面还有 1 行代码,购买后查看完整代码

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

AI 解读

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

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