Esempio n. 1
0
        private SalesReports_DisplayQueryReport buildRequestWS(string officeId, string fecha)
        {
            var iata = new Service().obtenerIata(officeId);

            var dia  = fecha.Split('/')[0];
            var mes  = fecha.Split('/')[1];
            var anio = fecha.Split('/')[2];

            var reporte_RQ = new SalesReports_DisplayQueryReport();

            reporte_RQ.agencyDetails            = new AdditionalBusinessSourceInformationTypeI();
            reporte_RQ.agencyDetails.sourceType = new SourceTypeDetailsTypeI();
            reporte_RQ.agencyDetails.sourceType.sourceQualifier1              = "REP";
            reporte_RQ.agencyDetails.originatorDetails                        = new OriginatorIdentificationDetailsTypeI();
            reporte_RQ.agencyDetails.originatorDetails.originatorId           = iata;
            reporte_RQ.agencyDetails.originatorDetails.inHouseIdentification1 = officeId;
            reporte_RQ.requestOption = new SelectionDetailsTypeI();
            reporte_RQ.requestOption.selectionDetails        = new SelectionDetailsInformationTypeI();
            reporte_RQ.requestOption.selectionDetails.option = "SOF";
            reporte_RQ.dateDetails = new StructuredDateTimeInformationType();
            reporte_RQ.dateDetails.businessSemantic = "S";
            reporte_RQ.dateDetails.dateTime         = new StructuredDateTimeType();
            reporte_RQ.dateDetails.dateTime.year    = anio;
            reporte_RQ.dateDetails.dateTime.month   = mes;
            reporte_RQ.dateDetails.dateTime.day     = dia;
            return(reporte_RQ);
        }
Esempio n. 2
0
        public SalesReports_DisplayQueryReportReply obtenerReporte(string officeId, SalesReports_DisplayQueryReport RQ)
        {
            var reporte_RS = new SalesReports_DisplayQueryReportReply();

            autenticarse(officeId);
            reporte_RS = WSCliente.SalesReports_DisplayQueryReport(RQ);
            signOut();
            return(reporte_RS);
        }