public BaseResultDto <RQUserListDto> GetUserList(int userType) { BaseResultDto <RQUserListDto> resultDto = new BaseResultDto <RQUserListDto>(); try { RQProcParam proc = new RQProcParam(); proc.ProcName = "Proc_GetUserList"; proc.DicParam.Add("userType", userType); RQUserListDto userListDto = new RQUserListDto(); userListDto.UserList = helper.GetDataByProc <UserRow>(proc); resultDto.Tag = userListDto; if (userListDto != null && userListDto.UserList.Count > 0) { resultDto.ErrorMsg = "成功"; resultDto.ErrorCode = 1; resultDto.IsSeccess = true; } else { resultDto.ErrorMsg = "失败"; resultDto.ErrorCode = 0; } } catch (Exception ex) { resultDto.ErrorMsg = ex.Message; resultDto.ErrorCode = -1; } return(resultDto); }
public BaseResultDto <StatisticalDto> GetStatistical() { BaseResultDto <StatisticalDto> result = new BaseResultDto <StatisticalDto>(); try { RQProcParam proc = new RQProcParam(); proc.ProcName = "proc_Statistical"; StatisticalDto statisticalDto = helper.GetDataByProc <StatisticalDto>(proc).FirstOrDefault(); result.Tag = statisticalDto; } catch (Exception ex) { result.ErrorMsg = ex.Message; result.ErrorCode = -1; } return(result); }