示例#1
0
 public Boolean SaveDocsVta(ref DocsVta Item, Entities.DocsVta.TInterfazDocsVta x_opcion)
 {
     try
     {
         return(BL_DocsVta.Save(ref Item, x_opcion));
     }
     catch (Exception)
     { throw; }
 }
示例#2
0
        public Boolean Save(ref DocsVta Item, Entities.DocsVta.TInterfazDocsVta x_opcion)
        {
            try
            {
                Boolean m_isCorrect = true;
                switch (x_opcion)
                {
                case DocsVta.TInterfazDocsVta.Normal:
                    m_isCorrect = Save(ref Item);
                    break;

                case DocsVta.TInterfazDocsVta.NotaCredito:
                    m_isCorrect = SaveNotaCredito(ref Item);
                    break;

                case DocsVta.TInterfazDocsVta.AnularNotaCredito:
                    m_isCorrect = Save(ref Item);
                    break;

                case DocsVta.TInterfazDocsVta.AnularNotaCreditoFE:
                    m_isCorrect = Save(ref Item);
                    break;

                case DocsVta.TInterfazDocsVta.AnularFactura:
                    m_isCorrect = SaveAnularFactura(ref Item);
                    break;

                case DocsVta.TInterfazDocsVta.AnularFacturaFE:
                    m_isCorrect = SaveAnularFacturaFE(ref Item);
                    break;

                case DocsVta.TInterfazDocsVta.ActualizarFormaPago:
                    m_isCorrect = SaveFormaPagoFactura(ref Item);
                    break;

                case DocsVta.TInterfazDocsVta.RegenerarDocumentoVenta:
                    m_isCorrect = SaveRenegerar(ref Item);
                    break;

                case DocsVta.TInterfazDocsVta.FacturacionLibre:
                    m_isCorrect = SaveFacturacionLibre(ref Item);
                    break;

                case DocsVta.TInterfazDocsVta.ActualizarFactura:
                    m_isCorrect = SaveActualizarFactura(Item);
                    break;

                default:
                    break;
                }
                return(m_isCorrect);
            }
            catch (Exception)
            { throw; }
        }