Beispiel #1
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);
        }
Beispiel #2
0
        public List <E_Sector> obtener_sector_por_Dex(string codDex)
        {
            ServicioGestionCampania.Ges_CampaniaServiceClient campServices = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            Sector_por_Dex_request oRequest = new Sector_por_Dex_request();

            oRequest.codDex = codDex;

            string request;
            string dataJson;

            request  = Lucky.CFG.JavaMovil.HelperJson.Serialize <Sector_por_Dex_request>(oRequest);
            dataJson = campServices.Obtener_Sector_Por_Dex(request);

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

            return(response.listaSector);
        }
Beispiel #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);
        }