예제 #1
0
        public List <M_Provincia> Obtener_Provincia_Por_CodDepartamento(Obtener_Provincia_Por_CodDepartamento_Request oM_Provincia_Request)
        {
            ServicioGestionMaps.Ges_MapsServiceClient client = new ServicioGestionMaps.Ges_MapsServiceClient("BasicHttpBinding_IGes_MapsService");

            string request  = HelperJson.Serialize <Obtener_Provincia_Por_CodDepartamento_Request>(oM_Provincia_Request);
            string datajson = client.Obtener_Provincia_Por_CodDepartamento(request);

            M_Provincia_Response oM_Provincia_Response = HelperJson.Deserialize <M_Provincia_Response>(datajson);

            return(oM_Provincia_Response.listaProvincia);
        }
예제 #2
0
        public List <E_Sector> obtener_sector_2(string company_Id)
        {
            ServicioGestionMaps.Ges_MapsServiceClient mapServices = new ServicioGestionMaps.Ges_MapsServiceClient("BasicHttpBinding_IGes_MapsService");

            Sector_request oRequest = new Sector_request();

            oRequest.codPais = company_Id;

            string request;
            string dataJson;

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

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

            return(response.listaSector);
        }
예제 #3
0
        public List <E_Sector> obtener_sector(string codPais, string codDepartamento, string codProvincia)
        {
            ServicioGestionMaps.Ges_MapsServiceClient mapServices = new ServicioGestionMaps.Ges_MapsServiceClient("BasicHttpBinding_IGes_MapsService");

            Sector_request oRequest = new Sector_request();

            oRequest.codPais         = codPais;
            oRequest.codDepartamento = codDepartamento;
            oRequest.codProvincia    = codProvincia;

            string request;
            string dataJson;

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

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

            return(response.listaSector);
        }
예제 #4
0
        public List <M_Distrito> obtener_Distritos_por_sector(string codPais, string codDepartamento, string codProvincia, string codSector)
        {
            ServicioGestionMaps.Ges_MapsServiceClient mapServices = new ServicioGestionMaps.Ges_MapsServiceClient("BasicHttpBinding_IGes_MapsService");

            Obtener_Distrito_Por_CodSector_Request oRequest = new Obtener_Distrito_Por_CodSector_Request();

            oRequest.codPais         = codPais;
            oRequest.codDepartamento = codDepartamento;
            oRequest.codProvincia    = codProvincia;
            oRequest.codSector       = codSector;

            string request;
            string dataJson;

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

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

            return(response.listaDistrito);
        }