Example #1
0
        public List <M_Supervisor> ListarSupervisorCampaniaOficina(string idCompany, string Cod_Campania, string CodOficina)
        {
            ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            string dataJson;
            string request;

            request  = "{'a':'" + idCompany + "','b':'" + Cod_Campania + "','c':'" + CodOficina + "'}";
            dataJson = client.Listar_Supervisor_Por_CodCampania_Por_CodOficina(request);
            M_Supervisor_Response oM_Supervisor_Response = HelperJson.Deserialize <M_Supervisor_Response>(dataJson);

            return(oM_Supervisor_Response.listaSupervisor);
        }
Example #2
0
        public List <M_Supervisor> ListarSupervisorCampaniaDptoProvDist(string Cod_Campania, string CodDpto, string CodProv, string CodDist)
        {
            ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            string dataJson;
            string request;

            request  = "{'a':'" + Cod_Campania + "','b':'" + CodDpto + "','c':'" + CodProv + "','d':'" + CodDist + "'}";
            dataJson = client.Listar_Supervisor_Por_CodCampania_Dpto_Prov_Dist(request);
            M_Supervisor_Response oM_Supervisor_Response = HelperJson.Deserialize <M_Supervisor_Response>(dataJson);

            return(oM_Supervisor_Response.listaSupervisor);
        }
Example #3
0
        public List <M_Supervisor> consulta(string idC)
        {
            ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            string dataJson;
            string request;

            request  = "{'a':'" + idC + "'}";
            dataJson = client.Listar_Supervisor_Por_CodCampania(request);
            M_Supervisor_Response oM_Supervisor_Response = HelperJson.Deserialize <M_Supervisor_Response>(dataJson);

            return(oM_Supervisor_Response.listaSupervisor);
        }