Example #1
0
        public IHttpActionResult PrintDctoTbk([FromBody] DetallePagoClienteModel detalle)
        {
            string msg = string.Empty;

            int    ret;
            long   jid;
            string aux;
            string printerName = "NII ExD NP-K205";

            pipe = new PipeService();

            var respuesta = pipe.ComponentPipePrintVoutcher(printerName, detalle.ResumenPago);

            Log.Write("Usabilidad", msg, Evento.Response, ServicioPago.Comandos.PagoTbk);
            return(Ok(new ApiResponse()
            {
                Code = 0, Message = "OK".ToString()
            }));
        }
Example #2
0
        public IHttpActionResult CierreTbk()
        {
            Movimiento movimiento = null;
            string     msg        = string.Empty;

            movimiento = new Movimiento();
            msg        = movimiento.ValidarTbk(ServicioPago.Comandos.CierreTbk, oConfig.IdKiosko);
            PipeService pipe = new PipeService();

            var algo = msg.Split('~');

            var respuesta = pipe.ComponentPipePrintVoutcher("", algo[2]);

            Log.Write("Usabilidad", msg, Evento.Response, ServicioPago.Comandos.PagoTbk);
            return(Ok(new ApiResponse()
            {
                Code = 0, Message = "OK".ToString()
            }));
        }