예제 #1
0
        /*Listar_Supervisor_Por_CodCampania*/

        public List <M_Supervisor> Listar_Supervisores_equipo(string cod_planning, int cod_emprea)
        {
            ServicioGestionCampania.Ges_CampaniaServiceClient clientcampania = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            Llenar_Supervisor_equipo_Request  request  = new Llenar_Supervisor_equipo_Request();
            Llenar_Supervisor_equipo_Response response = new Llenar_Supervisor_equipo_Response();
            string requestJSON;
            string responseJSON;

            request.cod_equipo  = cod_planning;
            request.cod_empresa = cod_emprea;
            requestJSON         = HelperJson.Serialize <Llenar_Supervisor_equipo_Request>(request);

            responseJSON = clientcampania.Llenar_Supervisores_equipo(requestJSON);

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

            return(response.oListaSupervisores);
        }