public Status getAll(out List <MeetingPlace> meetingPlaces) { meetingPlaces = new List <MeetingPlace>(); MeetingPlaceDAO meetingPlaceDao = Factory.getInstance <MeetingPlaceDAO>(); List <MeetingPlaceVO> meetingPlaceVos = meetingPlaceDao.getAll <MeetingPlaceVO>(); if (meetingPlaceVos == null) { return(Status.NONFOUND); } foreach (MeetingPlaceVO vo in meetingPlaceVos) { meetingPlaces.Add(new MeetingPlace { meetingPlaceID = vo.meetingPlaceID, meetingPlaceName = vo.meetingPlaceName, meetingPlaceCapacity = vo.meetingPlaceCapacity, meetingPlaceFreezeState = vo.meetingPlaceState }); } return(Status.SUCCESS); }
public Status getAllForMeeting(out List <MeetingPlaceForMeeting> meetingPlaces) { meetingPlaces = new List <MeetingPlaceForMeeting>(); MeetingPlaceDAO meetingPlaceDao = Factory.getInstance <MeetingPlaceDAO>(); Dictionary <string, object> wherelist = new Dictionary <string, object>(); wherelist.Add("meetingPlaceState", 0); //获取未冻结的会场信息 List <MeetingPlaceVO> meetingPlaceVos = meetingPlaceDao.getAll <MeetingPlaceVO>(wherelist); if (meetingPlaceVos == null) { return(Status.NONFOUND); } foreach (MeetingPlaceVO vo in meetingPlaceVos) { meetingPlaces.Add( new MeetingPlaceForMeeting { meetingPlaceID = vo.meetingPlaceID, meetingPlaceName = vo.meetingPlaceName, seatType = vo.seatType }); } return(Status.SUCCESS); }