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); }
public List <M_Anio> GetAnios() { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string responseJSON = client.Listar_Anios(); Anio_Response response = HelperJson.Deserialize <Anio_Response>(responseJSON); return(response.Anios); }
public List <M_Distrito> listarDistritos_Por_Campania_Por_CodPais_Por_codOficina_Por_codDepartamento_Por_Provincia(M_Distrito_Request oM_Distrito_Request) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string request = HelperJson.Serialize <M_Distrito_Request>(oM_Distrito_Request); string dataJson = client.listarDistritos_Por_Campania_Por_CodPais_Por_codOficina_Por_codDepartamento_Por_Provincia(request); M_Distrito_Response oM_Dsitrito_Response = HelperJson.Deserialize <M_Distrito_Response>(dataJson); return(oM_Dsitrito_Response.listaDistrito); }
public List<M_NodeComercial_receive> Listar_NodeComercial_Por_CodCampania_CodOficina(string idCampania, string idOficina) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + idCampania + "','b':'" + idOficina + "'}"; dataJson = client.Listar_NodeComercial_Por_CodCampania_CodCiudad(request); M_NodeComercial_Response oM_NodeComercial_Response = HelperJson.Deserialize<M_NodeComercial_Response>(dataJson); return oM_NodeComercial_Response.M_NodeComercial_receive; }
//CEYA public List<M_NodeComercial_receive> Listar_NodeComercial_Por_ClienteCanalOficinaSector(string cod_Cliente, string cod_Canal, string cod_Oficina, string id_Sector) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + cod_Cliente + "','b':'" + cod_Canal + "','c':'" + cod_Oficina + "','d':'" + id_Sector + "'}"; dataJson = client.Listar_NodeComercial_Por_ClienteCanalOficinaSector(request); M_NodeComercial_Response oM_NodeComercial_Response = HelperJson.Deserialize<M_NodeComercial_Response>(dataJson); return oM_NodeComercial_Response.M_NodeComercial_receive; }
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); }
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); }
public List <M_PuntoDeVenta> consulta(string CodCampania, string CodOficina, string CodZona) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + CodCampania + "','b':'" + CodOficina + "','c':'" + CodZona + "'}"; dataJson = client.Listar_PuntoDeVenta_Por_CodCampania_CodOficina_CodCadena(request); M_PuntoDeVenta_Response oM_PuntoDeVenta_Response = HelperJson.Deserialize <M_PuntoDeVenta_Response>(dataJson); return(oM_PuntoDeVenta_Response.listaPDV); }
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); }
public List <M_Mercaderista> consulta(string idC, string idS) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + idC + "','b':'" + idS + "'}"; dataJson = client.Listar_Generadores_Por_CodCampania_Por_CodSupervisor(request); M_Mercaderista_Response oM_Mercaderista_Response = HelperJson.Deserialize <M_Mercaderista_Response>(dataJson); return(oM_Mercaderista_Response.listaMercaderista); }
public List <M_PuntoDeVenta> ListarPDV_Campania_Person(string CodCampania, string CodPerson, string Fecha_Ini, string Fecha_Fin) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + CodCampania + "','b':'" + CodPerson + "','c':'" + Fecha_Ini + "','d':'" + Fecha_Fin + "'}"; dataJson = client.ListarPuntodeVenta_Por_CodCampania_codPersona(request); M_PuntoDeVenta_Response oM_PuntoDeVenta_Response = HelperJson.Deserialize <M_PuntoDeVenta_Response>(dataJson); return(oM_PuntoDeVenta_Response.listaPDV); }
public List <M_Categoria> Listar_Categoria_por_Compania_Status(string Company_id, string Status) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + Company_id + "','b':'" + Status + "'}"; dataJson = client.Listar_Categoria_Sancela(request); M_Categoria_Response oM_Categoria_Response = HelperJson.Deserialize <M_Categoria_Response>(dataJson); return(oM_Categoria_Response.listaCategoria); }
public List <M_Sub_Reporte> consulta(string idreporte, string idcampania, string idcanal) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + idreporte + "','b':'" + idcampania + "','c':'" + idcanal + "'}"; dataJson = client.Listar_Sub_Reportes(request); M_Sub_Reporte_Response oM_Sub_Reporte = HelperJson.Deserialize <M_Sub_Reporte_Response>(dataJson); return(oM_Sub_Reporte.listaSubReportes); }
public List <M_Categoria> consulta_Fotografico(string CodCampania) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + CodCampania + "'}"; dataJson = client.Listar_Categoria_Por_CodCampania_Fotografico(request); M_Categoria_Response oM_Categoria_Response = HelperJson.Deserialize <M_Categoria_Response>(dataJson); return(oM_Categoria_Response.listaCategoria); }
public List <M_Canal> obtenerAnio(string id_planning) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + id_planning + "'}"; dataJson = client.Listar_Anios_Planning(request); M_Canal_Response oM_Canal = HelperJson.Deserialize <M_Canal_Response>(dataJson); return(oM_Canal.listaCanales); }
public List <M_Periodo> Listar_Periodo_Por_CodServicio_CodCanal_CodCliente_CodReporte_Anio_Mes (string CodServicio, string CodCanal, string CodCliente, string CodReporte, string Anio, string Mes) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + CodServicio + "','b':'" + CodCanal + "','c':'" + CodCliente + "','d':'" + CodReporte + "','e':'" + Anio + "','f':'" + Mes + "'}"; dataJson = client.Listar_Periodo_Por_CodServicio_CodCanal_CodCliente_CodReporte_Anio_Mes(request); M_Periodo_Response oM_Periodo_Response = HelperJson.Deserialize <M_Periodo_Response>(dataJson); return(oM_Periodo_Response.listaPeriodos); }
public List <M_Menu> obtenerMenu(string idcompany, string nodo, string canal, string modulo) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + modulo + "','b':'" + idcompany + "','c':'" + nodo + "','d':'" + canal + "'}"; dataJson = client.Listar_Menu_Datamercaderista(request); client.Close(); M_Menu_Response oM_Menu = HelperJson.Deserialize <M_Menu_Response>(dataJson); return(oM_Menu.listaMenu); }
public List <M_PuntoDeVenta> Listar_PDV_Por_Campania_NodeCommercial(string idCampania, string idNode) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + idCampania + "','b':'" + idNode + "'}"; dataJson = client.Listar_PDV_Por_Campania_NodeCommercial(request); M_PuntoDeVenta_Response oM_PuntoDeVenta_Response = HelperJson.Deserialize <M_PuntoDeVenta_Response>(dataJson); return(oM_PuntoDeVenta_Response.listaPDV); }
public List <M_PuntoDeVenta> consultaPDV_CodCampania_CodCiudad_CodCadena(string idC, string idCiudad, string idM) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'a':'" + idC + "','b':'" + idCiudad + "','c':'" + idM + "'}"; dataJson = client.Listar_NodeComercial_Por_CodCampania_CodCiudad(request); M_PuntoDeVenta_Response oM_PuntoDeVenta_Response = HelperJson.Deserialize <M_PuntoDeVenta_Response>(dataJson); return(oM_PuntoDeVenta_Response.listaPDV); }
public Listar_Combo_UPTable_Unacem_Response Listar_Combo_UPTable_Unacem(Listar_Combo_UPTable_Unacem_Request oListar_Combo_UPTable_Unacem_Request) { ServicioGestionCampania.Ges_CampaniaServiceClient oGes_CampaniaServiceClient = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string request; string dataJson; request = Lucky.CFG.JavaMovil.HelperJson.Serialize <Listar_Combo_UPTable_Unacem_Request>(oListar_Combo_UPTable_Unacem_Request); dataJson = oGes_CampaniaServiceClient.Listar_Combo_UPTable_Unacem(request); oGes_CampaniaServiceClient.Close(); Listar_Combo_UPTable_Unacem_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <Listar_Combo_UPTable_Unacem_Response>(dataJson); return(response); }
public List <M_Ciudad_receive> getCiudadesxCampania(string idcampania) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = request = "{'a':'" + idcampania + "'}"; dataJson = client.Listar_Ciudad_Por_CodCampania(request); M_Ciudad_Response oM_Ciudad_Response = HelperJson.Deserialize <M_Ciudad_Response>(dataJson); return(oM_Ciudad_Response.M_Ciudad_receive); }
public List <M_Malla> Consultar_Malla(M_Malla_Request oM_Malla) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = HelperJson.Serialize <M_Malla_Request>(oM_Malla); dataJson = client.Listar_Malla(request);//se tiene que cambier por el metodo correcto M_Malla_Response oM_Malla_Response = HelperJson.Deserialize <M_Malla_Response>(dataJson); return(oM_Malla_Response.listaMalla); }
public List<M_NodeComercial_receive> Listar_NodoCommercial_Por_CodCampania_CodDepartamento_CodProvincia(string idcampania, string idDpto, string idCiudad) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); M_NodeComercial oM_NodeComercial=new M_NodeComercial(); oM_NodeComercial.Cod_Campania = idcampania; oM_NodeComercial.Cod_Departamento = idDpto; oM_NodeComercial.Cod_Provincia = idCiudad; string dataJson; string request; request = HelperJson.Serialize<M_NodeComercial>(oM_NodeComercial); dataJson = client.Listar_NodoCommercial_Por_CodCampania_CodDepartamento_CodProvincia(request); M_NodeComercial_Response oM_NodeComercial_Response = HelperJson.Deserialize<M_NodeComercial_Response>(dataJson); return oM_NodeComercial_Response.M_NodeComercial_receive; }
public List <M_Campana> consulta(string id, string idcompania) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = "{'b':'" + idcompania + "','a':'" + id + "'}"; dataJson = client.Listar_Campania_Por_CodCanal_y_CodCompania(request); M_Campana_Response oM_Campana_Response = HelperJson.Deserialize <M_Campana_Response>(dataJson); return(oM_Campana_Response.listaCampanias); }
public List <M_Ciudad_receive> Consultar(M_Ciudad oM_Ciudad) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = HelperJson.Serialize <M_Ciudad>(oM_Ciudad); dataJson = client.Listar_Ciudad_Por_CodCampania_CodDepartamento(request);//se tiene que cambier por el metodo correcto M_Ciudad_Response oM_Ciudad_Response = HelperJson.Deserialize <M_Ciudad_Response>(dataJson); return(oM_Ciudad_Response.M_Ciudad_receive); }
public List <M_Departamento> getDepartamentoxCampania(string campania) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); string dataJson; string request; request = request = "{'a':'" + campania + "'}"; dataJson = client.Listar_Departamento_Por_CodCampania(request);//se tiene que cambier por el metodo correcto M_Departamento_Response oM_Departamento_Response = HelperJson.Deserialize <M_Departamento_Response>(dataJson); return(oM_Departamento_Response.listaDepartamento); }
public List<M_NodeComercial_receive> Listar_NodoCommercial_Por_CodCampania_CodPerson(string idcampania, string idPerson) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); Listar_NodoCommercial_Por_CodCampania_CodPerson_Request oM_NodeComercial = new Listar_NodoCommercial_Por_CodCampania_CodPerson_Request(); oM_NodeComercial.Cod_Campania = idcampania; oM_NodeComercial.Cod_Person = idPerson; string dataJson; string request; request = HelperJson.Serialize<Listar_NodoCommercial_Por_CodCampania_CodPerson_Request>(oM_NodeComercial); dataJson = client.Listar_NodoCommercial_Por_CodCampania_CodPerson(request); M_NodeComercial_Response oM_NodeComercial_Response = HelperJson.Deserialize<M_NodeComercial_Response>(dataJson); return oM_NodeComercial_Response.M_NodeComercial_receive; }
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); }
public List<M_NodeType> Listar_NodeTypePorCanal(string canal) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); NodeType_Response response = new NodeType_Response(); NodeType_Request request = new NodeType_Request(); request.codCanal = canal; string requesJSON; string responseJSON; requesJSON = HelperJson.Serialize<NodeType_Request>(request); responseJSON = client.ListarTypeNodePorCanal(requesJSON); response = HelperJson.Deserialize<NodeType_Response>(responseJSON); return response.M_NodeTypes; }
public M_DynamicArray GetDynamicArrayResult(string opcion, string filtros) { ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService"); llenarCombos_Request request = new llenarCombos_Request(); request.opcion = opcion; request.filtros = filtros; string requestJson = HelperJson.Serialize <llenarCombos_Request>(request); string responseJson = client.llenarCombos_Campania(requestJson); client.Close(); llenarCombos_Response response = HelperJson.Deserialize <llenarCombos_Response>(responseJson); return(response.DynamicArray); }