예제 #1
0
        public List <E_VentasZonaDistrito> Obtener_Ventas_ZonaDistrito(int tipo, string codigo, int reportsPlanning)
        {
            MapService.Ges_MapsServiceClient mapServices = new MapService.Ges_MapsServiceClient("BasicHttpBinding_IGes_MapsService");

            VentasPtoVenta_Request oRequest = new VentasPtoVenta_Request();

            oRequest.tipo            = tipo;
            oRequest.codigo          = codigo;
            oRequest.reportsPlanning = reportsPlanning;

            string request;
            string dataJson;

            request  = Lucky.CFG.JavaMovil.HelperJson.Serialize <VentasPtoVenta_Request>(oRequest);
            dataJson = mapServices.Obtener_Ventas_ZonaDistrito(request);

            VentasPtoVenta_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <VentasPtoVenta_Response>(dataJson);

            return(response.listaVentas);
        }