CRM_EasyUI_2016/Controllers/CRM_UserController.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GroupThink.CRM.Model.Sys;
using GroupThink.CRM.Common;
using GroupThink.CRM.IBLL;
using CRM_EasyUI_2016.Core;
using GroupThink.CRM.Model;
namespace CRM_EasyUI_2016.Controllers
{
public class CRM_UserController : BaseController
{
DBContainer db = new DBContainer();
[Microsoft.Practices.Unity.Dependency]
public ICRM_User_BLL m_BLL { get; set; }
[Microsoft.Practices.Unity.Dependency]
public ICRM_Role_BLL r_BLL { get; set; }
[Microsoft.Practices.Unity.Dependency]
public ICRM_RoleUser_BLL ru_BLL { get; set; }
private ValidationErrors errors = new ValidationErrors();
//
// GET: /CRM_User/
#region 列表
public ActionResult Index()
{
return View();
}
[HttpPost]
public JsonResult GetList_(GridPager pager)
{
List<string> users = (List<string>)Session["GetUsers"];
string UserName = Utils.DbString(Request["UserName"]);
int DeptId = Utils.DbInt(Request["DeptId"]);
int RoleId = Utils.DbInt(Request["RoleId"]);
int UserType = Utils.DbInt(Request["UserType"]);
int UserState = Utils.DbInt(Request["UserState"]);
List<CRM_User_Model> list = m_BLL.GetList(ref pager, users, UserName, DeptId, RoleId,UserType,UserState);
var json = new
{
total = pager.totalRows,
rows = (from r in list
select new CRM_User_Model()
{
ID = r.ID,
UserName = r.UserName,
PassWord = r.PassWord,
Sex = r.Sex,
Tel = r.Tel,
DeptName = r.DeptName,
UserType = (int)r.UserType,
后面还有 191 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
