Exemplo n.º 1
0
 public static XmlDocument GetGroupTypes()
 {
     SIMS.Processes.TPGroupManagement TGM = new SIMS.Processes.TPGroupManagement();
     // XML Document needed to get the codes
     System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
     // This is the actual call to get the codes
     doc.InnerXml = TGM.GetXmlGroupTypes();
     return(doc);
 }
Exemplo n.º 2
0
 public static void LoadYearGroups()
 {
     SIMS.Processes.TPGroupManagement TGM = new SIMS.Processes.TPGroupManagement();
     // XML Document needed to get the codes
     System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
     // This is the actual call to get the codes
     // doc.InnerXml = TGM.GetXmlGroupTypes();
     // The code for year groups is YearGp
     doc.InnerXml = TGM.GetXmlGroups(DateTime.Now, "YearGp");
     ListYearGroupIDs.Clear();
     foreach (XmlNode n in doc.SelectNodes("Groups/Group"))
     {
         ListYearGroupIDs.Add(int.Parse(n["BaseGroupID"].InnerXml));
     }
 }