private void im1_LoadGroupInfo(object sender, IMLoadGroupInfoArgs e) { IMGroupEntry group = new IMGroupEntry(); CGroupDto CGroupDto = AutofacConfig.cGroupService.GetByID(e.GroupId); group.GroupID = e.GroupId; if (CGroupDto != null) { group.GroupName = CGroupDto.G_NAME; } group.PortraitUri = MobileResourceManager.DefaultImagePath + "group.PNG"; e.Result = group; }
private void im1_LoadGroupMembers(object sender, IMLoadGroupMembersArgs e) { CGroupDto CGroupDto = AutofacConfig.cGroupService.GetByID(e.GroupId); string[] groupusers; if (CGroupDto != null) { groupusers = CGroupDto.G_USER.Split(','); } else { groupusers = new String[1]; } e.Result = groupusers; }
/// <summary> /// 根据请假单ID返回请假单对象 /// </summary> /// <param name="ID">请假单ID</param> public CGroupDto GetByID(string ID) { CGroupDto group = Mapper.Map <CGroup, CGroupDto>(_cGroupRepository.GetByID(ID).AsNoTracking().FirstOrDefault()); return(group); }