Ejemplo n.º 1
0
        public static XmlDocument GetFirstAttendanceRead(string StartDate, string EndDate)
        {
            DateTime CStartDate = DateTime.ParseExact(StartDate, "yyyy-MM-dd'T'HH:mm:ss%K", System.Globalization.CultureInfo.InvariantCulture);
            //EndDate = "2018-09-18T18:33:00";
            DateTime CendDate = DateTime.ParseExact(EndDate, "yyyy-MM-dd'T'HH:mm:ss%K", System.Globalization.CultureInfo.InvariantCulture);

            SIMS.Processes.TPAttendanceRead ATR = new SIMS.Processes.TPAttendanceRead();
            // 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 = ATR.GetXmlChangedSessionAttendancesInRange(CStartDate, CendDate);
            return(doc);
        }