SourceCode/jiouosdp/Areas/HeadOffice/Controllers/HeadController.cs

(开头部分) 20KB

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

using jiouosdp.Controllers;
using RFrameGenerate.BLL;
using RFrameGenerate.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RFrameGenerate.Common;

namespace jiouosdp.Areas.HeadOffice.Controllers
{
    public class HeadController : BaseController
    {
        #region 商家
        //
        // GET: /HeadOffice/Head/

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

        public JsonResult LoadMerchantListdata(GridModel gridModel, string agent, string userid, string title, string type)
        {
            Guid? guid = null;

            if (!string.IsNullOrEmpty(agent))
            {
                guid = new Guid(agent);
            }

            gridModel.datarows = (from s in MerchantManage.GetMerchantPageList(gridModel, guid, userid, title, type)
                                  select new
                                  {
                                      id = s.MerchantGuid,//定义当前行数据的一个传输识别名称,一般以主键为名称,可以省略()
                                      cell = new object[]
                                                     {
                                                         s.MerchantGuid,
                                                         s.StoreTitle,
                                                         s.UserID,
                                                         s.Telephone,
                                                         s.EMail,
                                                         s.UserType == null ? "" : DictionaryConst.Versionb.GetText(s.UserType.Value),
                                                         GetPackName(s.UserType,s.MerchantGuid),
                                                         s.CreateDate != null ? s.CreateDate.Value.ToString("yyyy-MM-dd"):"",
                                                         s.ExpireDate !=null ? s.ExpireDate.Value.ToString("yyyy-MM-dd"):"",
                                                         s.IsEnable,
                                                         GetYear(s.CreateDate,s.ExpireDate)
                                                      }
                                  }).ToArray();
            return Json(gridModel.PackagePageModel());
        }

        private int GetYear(DateTime? CreateDate, DateTime? ExpireDate)
        {
            if (CreateDate == null || ExpireDate == null)
                return 0;
            return ExpireDate.Value.Year - CreateDate.Value.Year;
        }
后面还有 446 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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