public List <Lucky.Entity.Common.Servicio.E_Persona> Obtener_Generadores_Por_CodCampania_Por_CodSupervisor(string codCampania, string codSupervisor) { CampaniaService.Ges_CampaniaServiceClient campaniaServices = new CampaniaService.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); Listar_Generadores_Por_CodSupervisor_Request oRequest = new Listar_Generadores_Por_CodSupervisor_Request(); oRequest.CodCompania = codCampania; oRequest.CodSupervisor = codSupervisor; string request; string dataJson; request = Lucky.CFG.JavaMovil.HelperJson.Serialize <Listar_Generadores_Por_CodSupervisor_Request>(oRequest); dataJson = campaniaServices.Listar_Generadores_Por_CodCampania_Por_CodSupervisor(request); Listar_Generadores_Por_CodSupervisor_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <Listar_Generadores_Por_CodSupervisor_Response>(dataJson); return(response.oListaGenerador); }
public List <E_Persona> obtener_generador(string codEquipo, string CodSupervisor) { CampaniaService.Ges_CampaniaServiceClient campaniaServices = new CampaniaService.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); Generador_Request oRequest = new Generador_Request(); oRequest.codEquipo = codEquipo; oRequest.CodSupervisor = CodSupervisor; string request; string dataJson; request = Lucky.CFG.JavaMovil.HelperJson.Serialize <Generador_Request>(oRequest); dataJson = campaniaServices.Listar_Generadores_Por_CodCampania_Por_CodSupervisor(request); Generador_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <Generador_Response>(dataJson); return(response.oListaGenerador); }