GetXCalendarsByXLea() public method

Returns Calendars associated to a specific Lea by refId
public GetXCalendarsByXLea ( string refId ) : ResponseMulti
refId string
return ResponseMulti
Ejemplo n.º 1
0
 //RETURN CALENDARS BY LEA
 public static void XCalendars_GetXCalendarsByXLeaLastPage(XPress xPress)
 {
     for (int i = 1; i <= xPress.GetLastPage(navigationPageSize, XPress.ServicePath.GetXCalendarsByXLea, refId); i++)
     {
         foreach (XCalendarType calendar in xPress.GetXCalendarsByXLea(refId, i, navigationPageSize).Data)
         {
             Console.WriteLine("refId: " + calendar.refId);
             Console.WriteLine("schoolRefId: " + calendar.schoolRefId);
             Console.WriteLine("schoolYear: " + calendar.schoolYear);
             Console.WriteLine("##### BEGIN SESSIONLIST #####");
             foreach (XSessionType sl in calendar.sessions.sessionList)
             {
                 Console.WriteLine("sessionType: " + sl.sessionType);
                 Console.WriteLine("sessionCode: " + sl.sessionCode);
                 Console.WriteLine("description: " + sl.description);
                 Console.WriteLine("markingTerm: " + sl.markingTerm);
                 Console.WriteLine("schedulingTerm: " + sl.schedulingTerm);
                 Console.WriteLine("linkedSessionCode: " + sl.linkedSessionCode);
                 Console.WriteLine("startDate: " + sl.startDate);
                 Console.WriteLine("endDate: " + sl.endDate);
             }
             Console.WriteLine("##### END SESSIONLIST #####");
             Console.WriteLine("========================================");
         }
         Console.WriteLine("######## PAGE " + i + " ########");
     }
 }
Ejemplo n.º 2
0
 //RETURN CALENDARS BY LEA
 public static void XCalendars_GetXCalendarsByXLea(XPress xPress)
 {
     if (xPress.GetXCalendarsByXLea(refId).Data != null)
     {
         foreach (XCalendarType calendar in xPress.GetXCalendarsByXLea(refId).Data)
         {
             Console.WriteLine("refId: " + calendar.refId);
             Console.WriteLine("schoolRefId: " + calendar.schoolRefId);
             Console.WriteLine("schoolYear: " + calendar.schoolYear);
             Console.WriteLine("##### BEGIN SESSIONLIST #####");
             foreach (XSessionType sl in calendar.sessions.sessionList)
             {
                 Console.WriteLine("sessionType: " + sl.sessionType);
                 Console.WriteLine("sessionCode: " + sl.sessionCode);
                 Console.WriteLine("description: " + sl.description);
                 Console.WriteLine("markingTerm: " + sl.markingTerm);
                 Console.WriteLine("schedulingTerm: " + sl.schedulingTerm);
                 Console.WriteLine("linkedSessionCode: " + sl.linkedSessionCode);
                 Console.WriteLine("startDate: " + sl.startDate);
                 Console.WriteLine("endDate: " + sl.endDate);
             }
             Console.WriteLine("##### END SESSIONLIST #####");
             Console.WriteLine("========================================");
         }
     }
 }