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 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 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); }