Пример #1
0
        public string Validando(string Checked, string unChecked)
        {
            ServicioGestionOperativa.Ges_OperativaServiceClient client = new ServicioGestionOperativa.Ges_OperativaServiceClient("BasicHttpBinding_IGes_OperativaService");

            string dataJson;
            string request;

            request  = "{'a':'" + Checked + "','b':'" + unChecked + "'}";
            dataJson = client.Validar_Reporte_Exhibicion(request);

            //M_Reporte_Exhibicion_Response response = HelperJson.Deserialize<M_Reporte_Exhibicion_Response>(dataJson);

            return(dataJson);
        }
Пример #2
0
        public List <M_Reporte_Exhibicion> consulta(string CodPersona, string CodCampania, string CodCanal, string CodOficina, string CodNodoComercial, string CodigoPDV_Compania, string CodCategoria, string CodMarca, string f_incio, string f_fin)
        {
            ServicioGestionOperativa.Ges_OperativaServiceClient client = new ServicioGestionOperativa.Ges_OperativaServiceClient("BasicHttpBinding_IGes_OperativaService");

            string dataJson;
            string request;

            request  = "{'a':'" + CodPersona + "','b':'" + CodCampania + "','c':'" + CodCanal + "','d':'" + CodOficina + "','e':'" + CodNodoComercial + "','f':'" + CodigoPDV_Compania + "','g':'" + CodCategoria + "','h':'" + CodMarca + "','i':'" + f_incio + "','j':'" + f_fin + "'}";
            dataJson = client.Consultar_Reporte_Exhibicion(request);

            M_Reporte_Exhibicion_Response oM_Reporte_Exhibicion_Response = HelperJson.Deserialize <M_Reporte_Exhibicion_Response>(dataJson);

            return(oM_Reporte_Exhibicion_Response.listaReporteExhibicion);
        }
Пример #3
0
        public string Update(string CodReporte, int Cantidad, string ModifyBy, string DateModify, string DateRegistro)
        {
            ServicioGestionOperativa.Ges_OperativaServiceClient client = new ServicioGestionOperativa.Ges_OperativaServiceClient("BasicHttpBinding_IGes_OperativaService");

            string dataJson;
            string request;

            request  = "{'a':'" + CodReporte + "','b':" + Cantidad + ",'c':'" + ModifyBy + "','d':'" + DateModify + "','e':'" + DateRegistro + "'}";
            dataJson = client.Actualizar_Reporte_Exhibicion(request);

            //M_Reporte_Exhibicion_Response response = HelperJson.Deserialize<M_Reporte_Exhibicion_Response>(dataJson);

            return(dataJson);
        }
Пример #4
0
        public Consul_perfil_Unacem_Response Consultar_Perfil_Unacem(Consul_perfil_Unacem_Request oConsul_perfil_Unacem_Request)
        {
            ServicioGestionOperativa.Ges_OperativaServiceClient oOperativaServiceClient = new ServicioGestionOperativa.Ges_OperativaServiceClient("BasicHttpBinding_IGes_OperativaService");
            string request;
            string dataJson;

            request = Lucky.CFG.JavaMovil.HelperJson.Serialize <Consul_perfil_Unacem_Request>(oConsul_perfil_Unacem_Request);

            dataJson = oOperativaServiceClient.Consul_Perfil_user_Unacem(request);

            oOperativaServiceClient.Close();

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

            return(response);
        }
Пример #5
0
        public List <M_Distribuidor> ListarDistribuidorasPorCampania(string codCampania)
        {
            ServicioGestionOperativa.Ges_OperativaServiceClient client = new ServicioGestionOperativa.Ges_OperativaServiceClient("BasicHttpBinding_IGes_OperativaService");
            Distribuidor_Request  request  = new Distribuidor_Request();
            Distribuidor_Response response = new Distribuidor_Response();
            string requestJSON;
            string responseJSON;

            request.codCompania = codCampania;
            requestJSON         = HelperJson.Serialize <Distribuidor_Request>(request);
            responseJSON        = client.ListarDistribuidorasPorCampania(requestJSON);

            response = HelperJson.Deserialize <Distribuidor_Response>(responseJSON);

            return(response.Distribuidores);
        }