示例#1
0
        public List <E_Mes> obtener_Meses()
        {
            CampaniaService.Ges_CampaniaServiceClient campaniServices = new CampaniaService.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            string dataJson;

            dataJson = campaniServices.Listar_Meses();

            Mes_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <Mes_Response>(dataJson);

            return(response.oListaMes);
        }
示例#2
0
        public E_DinamicArray Obtener_Mercados_Ubigeo(String codCanal, String codCompania, String tipoubigeo, String ubigeo)
        {
            CampaniaService.Ges_CampaniaServiceClient campaniServices = new CampaniaService.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            llenarCombos_Request oRequest = new llenarCombos_Request();

            oRequest.opcion  = "NodeCommercial";
            oRequest.filtros = "" + codCanal + "," + codCompania + "," + tipoubigeo + "," + ubigeo;

            String request  = Lucky.CFG.JavaMovil.HelperJson.Serialize <llenarCombos_Request>(oRequest);
            String dataJson = campaniServices.llenarCombos_Campania(request);

            llenarCombos_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <llenarCombos_Response>(dataJson);

            return(response.oE_DinamicArray);
        }
示例#3
0
        public List <E_Persona> obtener_supervisor(string codEquipo)
        {
            CampaniaService.Ges_CampaniaServiceClient campaniaServices = new CampaniaService.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            Supervisor_Request oRequest = new Supervisor_Request();

            oRequest.codEquipo = codEquipo;

            string request;
            string dataJson;

            request  = Lucky.CFG.JavaMovil.HelperJson.Serialize <Supervisor_Request>(oRequest);
            dataJson = campaniaServices.Listar_Supervisor_Por_CodCampania(request);

            Supervisor_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <Supervisor_Response>(dataJson);

            return(response.oListaSupervisor);
        }
示例#4
0
        public List <Lucky.Entity.Common.Servicio.E_Categoria> obtener_Categoria(string CodEquipo, string CodReporte)
        {
            CampaniaService.Ges_CampaniaServiceClient      campaniServices = new CampaniaService.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");
            Categoria_Por_CodCampania_y_CodReporte_Request oRequest        = new Categoria_Por_CodCampania_y_CodReporte_Request();

            oRequest.CodEquipo  = CodEquipo;
            oRequest.CodReporte = CodReporte;

            string request;
            string dataJson;

            request  = Lucky.CFG.JavaMovil.HelperJson.Serialize <Categoria_Por_CodCampania_y_CodReporte_Request>(oRequest);
            dataJson = campaniServices.Listar_Categoria_Por_CodCampania_y_CodReporte(request);

            Categoria_Por_CodCampania_y_CodReporte_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <Categoria_Por_CodCampania_y_CodReporte_Response>(dataJson);

            return(response.oListaCategoria);
        }
示例#5
0
        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);
        }
示例#6
0
        public List <Lucky.Entity.Common.Servicio.E_Producto> obtener_producto(string CodEquipo, string CodCliente, string CodCategoria, string CodSubCategoria, string CodMarca)
        {
            CampaniaService.Ges_CampaniaServiceClient campaniServices = new CampaniaService.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");
            Producto_Por_CodCampania_CodCategoria_CodSubCategoria_CodMarca_Request oRequest = new Producto_Por_CodCampania_CodCategoria_CodSubCategoria_CodMarca_Request();

            oRequest.CodEquipo       = CodEquipo;
            oRequest.CodCliente      = CodCliente;
            oRequest.CodCategoria    = CodCategoria;
            oRequest.CodSubCategoria = CodSubCategoria;
            oRequest.CodMarca        = CodMarca;

            string request;
            string dataJson;

            request  = Lucky.CFG.JavaMovil.HelperJson.Serialize <Producto_Por_CodCampania_CodCategoria_CodSubCategoria_CodMarca_Request>(oRequest);
            dataJson = campaniServices.Listar_Producto_Por_CodCampania_CodCliente_CodCategoria_CodSubCategoria_CodMarca(request);

            Producto_Por_CodCampania_CodCategoria_CodSubCategoria_CodMarca_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <Producto_Por_CodCampania_CodCategoria_CodSubCategoria_CodMarca_Response>(dataJson);

            return(response.oListaProducto);
        }
示例#7
0
        public List <E_Periodo> obtener_Periodo(string CodServicio, string CodCanal, string CodCliente, string CodReporte, string Anio, string Mes)
        {
            CampaniaService.Ges_CampaniaServiceClient campaniServices = new CampaniaService.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");
            Periodo_Request oRequest = new Periodo_Request();

            oRequest.CodServicio = CodServicio;
            oRequest.CodCanal    = CodCanal;
            oRequest.CodCliente  = CodCliente;
            oRequest.CodReporte  = CodReporte;
            oRequest.Anio        = Anio;
            oRequest.Mes         = Mes;

            string request;
            string dataJson;

            request  = Lucky.CFG.JavaMovil.HelperJson.Serialize <Periodo_Request>(oRequest);
            dataJson = campaniServices.Listar_Periodo_Por_CodServicio_CodCanal_CodCliente_CodReporte_Anio_Mes(request);

            Periodo_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <Periodo_Response>(dataJson);

            return(response.oListaPeriodo);
        }