Web/Controllers/CategoryController.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Web.Controllers
{

    [Conris.Web.Controllers.Filter.AuthAttribute(Code = Conris.DBA.ViewModel.UserType.Manage)]
    public class CategoryController : Controller
    {
        //
        // GET: /Category/

        Conris.Services.CategoryService service = new Conris.Services.CategoryService();

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult CategoryManager()
        {
            return View();
        }


        public ActionResult NewsCategoryManager(Conris.DBA.ViewModel.SearchNews model)
        {
            return View(model);
        }

        public PartialViewResult CategoryCreate(string ID)
        {

            Conris.DBA.ViewModel.ViewDepartment model = new Conris.DBA.ViewModel.ViewDepartment();
            if (!string.IsNullOrEmpty(ID))
            {
                Conris.DBA.Model.Category department = service.GetModel(ID);
                if (department != null)
                {
                    model.ID = department.ID;
                    model.DepartmentName = department.DepartmentName;
                    model.DepartmentNum = department.DepartmentNum;
                    model.PdepartmentName = service.GetPdepartmentName(model.DepartmentNum);
                    model.PID = service.GetPdepartmentID(model.DepartmentNum);
                }
            }
            return PartialView(model);
        }

        public PartialViewResult CategoryInfo(string ID)
        {
            Conris.DBA.Model.Category departmentInfo = new Conris.DBA.Model.Category();
            Conris.DBA.ViewModel.ViewDepartment model = new Conris.DBA.ViewModel.ViewDepartment();
            if (!string.IsNullOrEmpty(ID))
            {
                departmentInfo = service.GetModel(ID);
                if (departmentInfo != null)
后面还有 65 行代码,购买后查看完整代码

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

AI 解读

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

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