Exemplo n.º 1
0
        public List <M_Oficina> consultarOficinas_Por_CodPais_CodCliente_CodCampania(M_Oficina_Request oM_Oficina_Request)
        {
            ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");
            string             request             = HelperJson.Serialize <M_Oficina_Request>(oM_Oficina_Request);
            string             response            = client.Listar_Oficinas_Por_CodPais_CodCliente_CodCampania(request);
            M_Oficina_Response oM_Oficina_Response = HelperJson.Deserialize <M_Oficina_Response>(response);

            return(oM_Oficina_Response.listaOficinas);
        }
Exemplo n.º 2
0
        public List <M_Oficina> consulta(string idcompania)
        {
            ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            string dataJson;
            string request;

            request  = "{'a':'" + idcompania + "'}";
            dataJson = client.Listar_Oficinas_Por_CodCompania(request);

            M_Oficina_Response oM_Oficina_Response = HelperJson.Deserialize <M_Oficina_Response>(dataJson);

            return(oM_Oficina_Response.listaOficinas);
        }
Exemplo n.º 3
0
        public List <M_Oficina> Listar_oficinas_x_Distribuidor(string cod_planning, int cod_distribuidora)
        {
            // ServicioGestionOperativa.Ges_OperativaServiceClient client = new ServicioGestionOperativa.Ges_OperativaServiceClient("BasicHttpBinding_IGes_OperativaService");

            ServicioGestionCampania.Ges_CampaniaServiceClient clientcampania = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            Llenar_Ofinas_distribuidora_Request request = new Llenar_Ofinas_distribuidora_Request();
            M_Oficina_Response response = new M_Oficina_Response();
            string             requestJSON;
            string             responseJSON;

            request.cod_equipo        = cod_planning;
            request.cod_distribuidora = cod_distribuidora;
            requestJSON = HelperJson.Serialize <Llenar_Ofinas_distribuidora_Request>(request);

            responseJSON = clientcampania.Llenar_Oficinas_Distribuidor(requestJSON);

            response = HelperJson.Deserialize <M_Oficina_Response>(responseJSON);

            return(response.listaOficinas);
        }