CRM.Web/Controllers/DefaultController.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CRM.BLL;
using CRM.Model;
namespace CRM.Web.Controllers
{
[MyException]
[LoginValidator]
public class DefaultController : Controller
{
private sys_rightService rightSer = new sys_rightService();
//
// GET: /Default/
public ActionResult Index()
{
return View();
}
public ActionResult Middle()
{
return View();
}
public ActionResult Top()
{
return View((Session["user"] as sys_user));
}
public ActionResult Buttom()
{
return View();
}
public ActionResult Menu()
{
return View();
}
[HttpPost]
public string Menu(FormCollection forms)
{
int roleId = ((sys_user)Session["user"]).usr_role_id;
#region 递归
//List<sys_right> rightList = rightSer.GetRightsByRoleId(roleId);
//string strMenu = string.Empty;
//foreach (var item in rightList)
//{
// if (item.right_parent_code.Equals("000"))
// {
// GetChildMenu(ref strMenu, item, rightList);
// }
//}
//if (string.IsNullOrEmpty(strMenu))
//{
// throw new Exception("对不起!你的账号存在异常无法正常使用,请联系客服");
//}
后面还有 67 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
