Example #1
0
        public string imprimirxz(string xz, string marcafiscal)
        {
            string msg = "";

            if (marcafiscal == "")
            {
                msg = "La marca de la fiscal no se especifico correctamente";
            }
            switch (marcafiscal)
            {
            case "hasar":
            {
                break;
            }

            case "epson":
            {
                NegocioFEpson objepson = new NegocioFEpson();
                msg = objepson.imprimirxz(xz);
                break;
            }

            case "electronica":
            {
                break;
            }
            }

            return(msg);
        }
Example #2
0
        public string Descargarperiodo(string marca, string path, string desde, string hasta)
        {
            NegocioFEpson objepson = new NegocioFEpson();
            string        msg      = "";

            if (marca == "hasar")
            {
            }

            if (marca == "epson")
            {
                msg = objepson.DescargarElPeriodoPendiente(path, desde, hasta);
            }

            return(msg);
        }
Example #3
0
        public void Cancelardocumento()
        {
            NegocioFEpson obj = new NegocioFEpson();

            obj.cancelarcomprobante();
        }
Example #4
0
        public string factura(string marca, DataTable dt, double total, int modelofiscal, int puerto, int tiporesponsabilidad, string razonsocial = "CONSUMIDOR FINAL", string cuit = "9999999999", string domicilio = "", string tipoticket = "", string responsableiva = "CF", string tipocomprobante = "FACTURA", string tipofactura = "B", double neto21 = 0.00, double civa21 = 0.00, double neto105 = 0.00, double civa105 = 0.00)
        {
            string msg = "";

            try
            {
                switch (marca)
                {
                case "hasar":
                {
                    objhasar.Comprobantefiscal(modelofiscal, puerto, razonsocial, cuit, 1, "", dt, total);



                    break;
                }

                case "epson":
                {
                    NegocioFEpson objepson = new NegocioFEpson(razonsocial, cuit, domicilio);
                    msg = objepson.comprobantefiscal(tipoticket, responsableiva, dt, tipocomprobante);
                    break;
                }

                case "elec":
                {
                    NegocioFElectronica miclase = new Capa_negocio.NegocioFElectronica();
                    int tiponumerofactura       = 0;
                    switch (tipofactura)
                    {
                    case "A":
                    {
                        tiponumerofactura = TIPOCOMPROBANTE_FACTURA_A;
                        break;
                    }

                    case "B":
                    {
                        tiponumerofactura = TIPOCOMPROBANTE_FACTURA_B;
                        break;
                    }

                    case "C":
                    {
                        tiponumerofactura = TIPOCOMPROBANTE_FACTURA_C;
                        break;
                    }
                    }

                    msg = miclase.comprobante_electronico(tiponumerofactura, Convert.ToInt64(cuit), total, neto21, civa21, neto105, civa105, ref cae, ref fechavto, ref numerotipofactura, ref puntoventa);
                    break;
                }
                }

                return(msg);
            }
            catch
            {
                throw;
            }
        }