/// <summary> /// 详情 /// </summary> /// <param name="customerId"></param> /// <param name="resultCode"></param> /// <returns></returns> public object Detail(int customerId, out int resultCode) { var entity = this.handle.Detail(customerId); if (entity == null) { resultCode = OperationWidget.NoRecord; return(new { }); } resultCode = OperationWidget.Success; return(new { entity.UserId, entity.UserName, entity.Phone, entity.AreaID, entity.OpenId, entity.OUId, entity.RoleId, entity.PersonalAuth, Creator = RelationWidget.GetUserName(entity.Creator), CreateTime = ConvertHelper.ToString(entity.CreateTime, "yyyy-MM-dd HH:mm") }); }
/// <summary> /// 列表分页 /// </summary> /// <param name="gvMgt"></param> /// <param name="map"></param> /// <returns></returns> public List <object> GetMgt(Grid gvMgt, Dictionary <string, string> map) { List <object> list = new List <object>(); SysAreaDAL sysAreaDAL = new SysAreaDAL(); foreach (var item in handle.GetMgt(gvMgt, map)) { var sysArea = sysAreaDAL.Detail((int)item.AreaID); list.Add(new { item.UserId, item.UserName, item.Phone, item.AreaID, sysArea.AreaName, item.OpenId, item.OUId, item.RoleId, item.PersonalAuth, Creator = RelationWidget.GetUserName(item.Creator), CreateTime = ConvertHelper.ToString(item.CreateTime, "yyyy-MM-dd HH:mm") }); } return(list); }
/// <summary> /// 列表分页 /// </summary> /// <param name="gvMgt"></param> /// <param name="map"></param> /// <returns></returns> public List <object> GetMgt(Grid gvMgt, Dictionary <string, string> map) { List <object> list = new List <object>(); foreach (var item in handle.GetMgt(gvMgt, map)) { list.Add(new { item.AreaID, item.AreaName, Creator = RelationWidget.GetUserName(item.Creator), CreateTime = ConvertHelper.ToString(item.CreateTime, "yyyy-MM-dd HH:mm") }); } return(list); }
/// <summary> /// 列表分页 /// </summary> /// <param name="gvMgt"></param> /// <param name="map"></param> /// <returns></returns> public List <object> GetMgt(Grid gvMgt, Dictionary <string, string> map) { List <object> list = new List <object>(); foreach (var item in handle.GetMgt(gvMgt, map)) { list.Add(new { item.MenuID, ParentName = RelationWidget.GetMenuName(item.ParentID), item.MenuName, Status = ConvertHelper.ToString(item.Status), item.MenuCode, item.SortNo, Creator = RelationWidget.GetUserName(item.Creator), CreateTime = ConvertHelper.ToString(item.CreateTime, "yyyy-MM-dd HH:mm") }); } return(list); }