/// <summary>Extracts from the XML message the filters that have to be solved</summary> /// <param name="xmlReader">XML with the request message</param> /// <param name="dtdVersion">Version of DTD that follows the XML message</param> public PasajeroLMDFilter GetFilter_FUM(XmlReader xmlReader, double dtdVersion) { // Create filter PasajeroLMDFilter lFilter = new PasajeroLMDFilter(); // Process the variable filters ONServiceInfo lSInfo = new ONServiceInfo("", "FUM", "Clas_1348178542592658_Alias", "Pasajero"); lSInfo.AddFilterVariable("FDesde", DataTypeEnumerator.Date, 0, "", "FDesde"); lSInfo.AddFilterVariable("FHasta", DataTypeEnumerator.Date, 0, "", "FHasta"); try { lSInfo.XML2ONFilterVariables(xmlReader, dtdVersion); } catch (Exception e) { throw new ONServiceArgumentsException(e, "Clas_1348178542592658_Alias", "Pasajero", "", "FUM"); } lFilter.InitDateVar = (ONDate)((ONArgumentInfo)lSInfo.mArgumentList["FDesde"]).Value; lFilter.FinalDateVar = (ONDate)((ONArgumentInfo)lSInfo.mArgumentList["FHasta"]).Value; return(lFilter); }
/// <summary>Extracts from the XML message the filters that have to be solved</summary> /// <param name="xmlReader">XML with the request message</param> /// <param name="dtdVersion">Version of DTD that follows the XML message</param> public AeronaveLMDFilter GetFilter_LMD(XmlReader xmlReader, double dtdVersion) { // Create filter AeronaveLMDFilter lFilter = new AeronaveLMDFilter(); // Process the variable filters ONServiceInfo lSInfo = new ONServiceInfo("", "LMD", "Clas_1348178411520734_Alias", "Aeronave"); lSInfo.AddFilterVariable("InitDate", DataTypeEnumerator.Date, 0, "", "InitDate"); lSInfo.AddFilterVariable("FinalDate", DataTypeEnumerator.Date, 0, "", "FinalDate"); try { lSInfo.XML2ONFilterVariables(xmlReader, dtdVersion); } catch (Exception e) { throw new ONServiceArgumentsException(e, "Clas_1348178411520734_Alias", "Aeronave", "", "LMD"); } lFilter.InitDateVar = (ONDate)((ONArgumentInfo)lSInfo.mArgumentList["InitDate"]).Value; lFilter.FinalDateVar = (ONDate)((ONArgumentInfo)lSInfo.mArgumentList["FinalDate"]).Value; return(lFilter); }
/// <summary>Extracts from the XML message the filters that have to be solved</summary> /// <param name="xmlReader">XML with the request message</param> /// <param name="dtdVersion">Version of DTD that follows the XML message</param> public PasajeroLMDFilter GetFilter_LMD(XmlReader xmlReader, double dtdVersion) { // Create filter PasajeroLMDFilter lFilter = new PasajeroLMDFilter(); // Process the variable filters ONServiceInfo lSInfo = new ONServiceInfo("", "LMD", "Clas_1348178542592658_Alias", "Pasajero"); lSInfo.AddFilterVariable("InitDate", DataTypeEnumerator.Date, 0, "", "InitDate"); lSInfo.AddFilterVariable("FinalDate", DataTypeEnumerator.Date, 0, "", "FinalDate"); try { lSInfo.XML2ONFilterVariables(xmlReader, dtdVersion); } catch (Exception e) { throw new ONServiceArgumentsException(e, "Clas_1348178542592658_Alias", "Pasajero", "", "LMD"); } lFilter.InitDateVar = (ONDate) ((ONArgumentInfo) lSInfo.mArgumentList["InitDate"]).Value; lFilter.FinalDateVar = (ONDate) ((ONArgumentInfo) lSInfo.mArgumentList["FinalDate"]).Value; return lFilter; }
/// <summary>Extracts from the XML message the filters that have to be solved</summary> /// <param name="xmlReader">XML with the request message</param> /// <param name="dtdVersion">Version of DTD that follows the XML message</param> public RevisionPasajeroLMDFilter GetFilter_FUM(XmlReader xmlReader, double dtdVersion) { // Create filter RevisionPasajeroLMDFilter lFilter = new RevisionPasajeroLMDFilter(); // Process the variable filters ONServiceInfo lSInfo = new ONServiceInfo("", "FUM", "Clas_1348178673664478_Alias", "RevisionPasajero"); lSInfo.AddFilterVariable("FDesde", DataTypeEnumerator.Date, 0, "", "FDesde"); lSInfo.AddFilterVariable("FHasta", DataTypeEnumerator.Date, 0, "", "FHasta"); try { lSInfo.XML2ONFilterVariables(xmlReader, dtdVersion); } catch (Exception e) { throw new ONServiceArgumentsException(e, "Clas_1348178673664478_Alias", "RevisionPasajero", "", "FUM"); } lFilter.InitDateVar = (ONDate) ((ONArgumentInfo) lSInfo.mArgumentList["FDesde"]).Value; lFilter.FinalDateVar = (ONDate) ((ONArgumentInfo) lSInfo.mArgumentList["FHasta"]).Value; return lFilter; }