public DataTable gfFacCanObtieneStockdeFactura(int companynumber, int invoicenumber)
        {
            DataTable dt = new InvoiceBLL().ObtieneDisponibleDeFactura(companynumber, invoicenumber);

            if (dt != null)
            {
                return(dt);
            }
            else
            {
                return(new DataTable());
            }
        }
        public DataTable gfFacCanObtieneTicket(int companynumber, int invoicenumber)
        {
            DataTable dt = new InvoiceBLL().GetTicket(companynumber, invoicenumber);

            if (dt != null)
            {
                return(dt);
            }
            else
            {
                return(new DataTable());
            }
        }
        public DataTable gfFacCanObtieneOrigen(int companynumber, int invoicenumber)
        {
            DataTable dt = new InvoiceBLL().ObtieneOrigenFactura(companynumber, invoicenumber);

            if (dt != null)
            {
                return(dt);
            }
            else
            {
                return(new DataTable());
            }
        }
        public DataTable gfFacCanObtenRutaTransporte(int Numero_Empresa, int Numero_Factura)
        {
            DataTable dt = new InvoiceBLL().GetRutaTransporte(Numero_Empresa, Numero_Factura);

            if (dt != null)
            {
                return(dt);
            }
            else
            {
                return(new DataTable());
            }
        }
        public DataTable gfFacCanObtenDocCxC(int companynumber, int invoicenumber)
        {
            DataTable dt = new InvoiceBLL().GetDoctoCxC(companynumber, invoicenumber);

            if (dt != null)
            {
                return(dt);
            }
            else
            {
                return(new DataTable());
            }
        }
        public DataTable gfFacCanObtieneConceptoyEstatus(int companynumber, int number)
        {
            DataTable dt = InvoiceBLL.GetClientExchangeConceptAndEstatus(companynumber, number);

            if (dt != null)
            {
                return(dt);
            }
            else
            {
                return(new DataTable());
            }
        }
        public DataTable gfItemsParaCancelacion(int icompany, int iClient, int iCurrency, int idocument, int iSerie, DateTime?DateFrom, DateTime?DateTo, int idocFrom, int idocTo)
        {
            //InvoiceDAL objIDAL = new InvoiceDAL();
            DataTable dt = InvoiceBLL.GetInvoicesView(icompany, iClient, iCurrency, idocument, iSerie, DateFrom, DateTo, idocFrom, idocTo);

            if (dt != null)
            {
                return(dt);
            }
            else
            {
                return(new DataTable());
            }
        }