コード例 #1
0
        public List <RequiredEventMeeting> getMeetingSignedUP(int reqID, int orgID)
        {
            List <RequiredEventMeeting> meetings = new List <RequiredEventMeeting>();
            var meet = dataContext.sp_GetMeetingForOrgSignedUP(reqID, orgID);

            foreach (var x in meet)
            {
                RequiredEventMeeting meeting = new RequiredEventMeeting();
                meeting.RequiredEventID = x.RequiredEventID;
                meeting.Session         = x.Session;
                meeting.Year            = x.Year;
                meeting.MeetingBuilding = x.MeetingBuilding;

                //Usind Meeting Time to store short datetime
                meeting.MeetingTime = Convert.ToDateTime(x.MeetingDate).ToShortDateString();

                meeting.MeetingDate       = x.MeetingDate;
                meeting.MeetingID         = x.MeetingID;
                meeting.MeetingRoomNumber = x.MeetingRoomNumber;
                //meeting.MeetingTime = x.MeetingTime;

                meetings.Add(meeting);
            }
            return(meetings);
        }