public Boolean OPE_Save_GenerarCuentasCorrientes(Int16 x_EMPR_Codigo, Int16 x_SUCR_Codigo, Int32 x_NVIA_Codigo, Nullable <Int16> x_CCOT_Tipo, Nullable <Int32> x_CCOT_Numero, Decimal x_CCCT_TipoCambio, DateTime x_CCCT_FecEmision, String x_AUDI_Usuario, Boolean AprobarViaje, ref String x_mensaje)
        {
            try
            {
                Boolean _isCorrect = true;

                Infrastructure.Aspect.DataAccess.DataAccessEnterpriseSQL.DABeginTransaction();

                _isCorrect = OPE_Validate_GenerarCuentasCorrientes(x_EMPR_Codigo, x_SUCR_Codigo, x_NVIA_Codigo, x_CCOT_Tipo, x_CCOT_Numero, ref x_mensaje);

                if (_isCorrect)
                {
                    _isCorrect = OPE_Insert_GenerarCuentasCorrientes(x_EMPR_Codigo, x_SUCR_Codigo, x_NVIA_Codigo, x_CCOT_Tipo, x_CCOT_Numero, x_CCCT_TipoCambio, x_CCCT_FecEmision, x_AUDI_Usuario, ref x_mensaje);
                }

                if (_isCorrect && AprobarViaje)
                {
                    _isCorrect = BL_NaveViaje.SaveAprobarStatment(x_NVIA_Codigo, x_AUDI_Usuario, ref x_mensaje);
                }

                if (_isCorrect)
                {
                    Infrastructure.Aspect.DataAccess.DataAccessEnterpriseSQL.DACommitTransaction();
                }
                else
                {
                    Infrastructure.Aspect.DataAccess.DataAccessEnterpriseSQL.DARollbackTransaction();
                }

                return(_isCorrect);
            }
            catch (Exception)
            { Infrastructure.Aspect.DataAccess.DataAccessEnterpriseSQL.DARollbackTransaction(); throw; }
        }
示例#2
0
 public System.Data.DataTable GetAllEmisionHBLByNaveViaje(Nullable <Int32> NVIA_Codigo, Nullable <Int32> CCOT_Numero)
 {
     try
     {
         return(BL_NaveViaje.EmisionHBLByNaveViaje(NVIA_Codigo, CCOT_Numero));
     }
     catch (Exception)
     { throw; }
 }
示例#3
0
 public System.Data.DataTable GetAllCargaTarjadaByNaveViaje(Nullable <Int32> NVIA_Codigo, String TIPO_Embarque, Nullable <Int32> CCOT_Codigo)
 {
     try
     {
         return(BL_NaveViaje.CargaTarjadaByNaveViaje(NVIA_Codigo, TIPO_Embarque, CCOT_Codigo));
     }
     catch (Exception)
     { throw; }
 }
示例#4
0
 public System.Data.DataTable GetAllMBLsByNaveViaje(Nullable <Int32> NVIA_Codigo, Int32 TIPO_Direccionamiento, Nullable <Int32> CCOT_Codigo)
 {
     try
     {
         return(BL_NaveViaje.MBLsByNaveViaje(NVIA_Codigo, TIPO_Direccionamiento, CCOT_Codigo));
     }
     catch (Exception)
     { throw; }
 }
示例#5
0
 public System.Data.DataTable GetAllNaveViajeByReporte(String CONS_TabRGM, String CONS_CodRGM, Nullable <DateTime> NVIA_FecETAIni, Nullable <DateTime> NVIA_FecETAFin, Nullable <DateTime> NVIA_FecZarpeIni, Nullable <DateTime> NVIA_FecZarpeFin, Nullable <Int32> ENTC_CodTransportista, Nullable <Int16> NAVE_Codigo)
 {
     try
     {
         return(BL_NaveViaje.ReportByFilters(CONS_TabRGM, CONS_CodRGM, NVIA_FecETAIni, NVIA_FecETAFin, NVIA_FecZarpeIni, NVIA_FecZarpeFin, ENTC_CodTransportista, NAVE_Codigo));
     }
     catch (Exception)
     { throw; }
 }
示例#6
0
 public ObservableCollection <Cab_Cotizacion_OV> GetAllCab_OV_CabByNVIA_Codigo(Int32 NVIA_Codigo)//Int16 EMPR_Codigo, Int16 SUCR_Codigo,
 {
     try
     {
         return(BL_NaveViaje.GetAllCab_OV_CabByNVIA_Codigo(NVIA_Codigo));//EMPR_Codigo, SUCR_Codigo,
     }
     catch (Exception ex)
     { throw ex; }
 }
示例#7
0
 public System.Data.DataTable GetAllNaveViajeByFilters(String x_procedure, ObservableCollection <Infrastructure.Aspect.DataAccess.DataAccessFilterSQL> x_filters)
 {
     try
     {
         return(BL_NaveViaje.GetAllByFilters(x_procedure, x_filters));
     }
     catch (Exception)
     { throw; }
 }
示例#8
0
 public System.Data.DataSet GetAllNaveViajeEmisionAduanaTeledespacho(Int32 NVIA_Codigo)
 {
     try
     {
         return(BL_NaveViaje.GetEmisionAduanaTeledespacho(NVIA_Codigo));
     }
     catch (Exception)
     { throw; }
 }
示例#9
0
 public Boolean UpdateTransportistaOVsByNVIA(Nullable <Int32> x_NVIA_Codigo, Nullable <Int32> x_ENTC_CodTransportista)
 {
     try
     {
         return(BL_NaveViaje.UpdateTransportistaOVs(x_NVIA_Codigo, x_ENTC_CodTransportista));
     }
     catch (Exception)
     { throw; }
 }
示例#10
0
 public String OrdenesVentaByNVIA(Nullable <Int32> x_NVIA_Codigo)
 {
     try
     {
         return(BL_NaveViaje.OVsByNVIA(x_NVIA_Codigo));
     }
     catch (Exception)
     { throw; }
 }
示例#11
0
 public String CheckNaveViaje(NaveViaje Item)
 {
     try
     {
         return(BL_NaveViaje.CheckAllNaveViaje(Item));
     }
     catch (Exception)
     { throw; }
 }
示例#12
0
 public System.Data.DataTable GetAllNaveViajeByControlTransmisiones(String CONS_TabRGM, String CONS_CodRGM, Nullable <DateTime> NVIA_FecETA_ETDIni, Nullable <DateTime> NVIA_FecETA_ETDFin)
 {
     try
     {
         return(BL_NaveViaje.GetAllByControlTransmisiones(CONS_TabRGM, CONS_CodRGM, NVIA_FecETA_ETDIni, NVIA_FecETA_ETDFin));
     }
     catch (Exception)
     { throw; }
 }
示例#13
0
 public Boolean EmiteStatment_Update_User(Nullable <Int32> NVIA_Codigo, String NVIA_UsrEmiteStatment)
 {
     try
     {
         return(BL_NaveViaje.EmiteStatment(NVIA_Codigo, NVIA_UsrEmiteStatment));
     }
     catch (Exception)
     { throw; }
 }
示例#14
0
 public Boolean AbrirStatment_Update_NaveViaje_OV(Nullable <Int32> NVIA_Codigo, ref String x_Mensaje)
 {
     try
     {
         return(BL_NaveViaje.AbrirStatment(NVIA_Codigo, ref x_Mensaje));
     }
     catch (Exception)
     { throw; }
 }
示例#15
0
 public bool SaveAprobarStatment(Int32 x_NVIA_Codigo, String x_AUDI_Usuario, ref String x_NVIA_MensajeError)
 {
     try
     {
         return(BL_NaveViaje.SaveAprobarStatment(x_NVIA_Codigo, x_AUDI_Usuario, ref x_NVIA_MensajeError));
     }
     catch (Exception)
     { throw; }
 }
示例#16
0
 public System.Data.DataTable GetAllAvisosByNaveViaje(Nullable <Int32> NVIA_Codigo, Nullable <Int32> CCOT_Numero, String CCOT_NumDoc, Nullable <Int32> ENTC_CodCliente)
 {
     try
     {
         return(BL_NaveViaje.AvisosByNaveViaje(NVIA_Codigo, CCOT_Numero, CCOT_NumDoc, ENTC_CodCliente));
     }
     catch (Exception)
     { throw; }
 }
示例#17
0
 public Boolean SaveNaveViaje(ref ObservableCollection <NaveViaje> Items, Entities.NaveViaje.TInterfazNaveViaje x_opcion)
 {
     try
     {
         return(BL_NaveViaje.Save(ref Items, x_opcion));
     }
     catch (Exception)
     { throw; }
 }
示例#18
0
 public System.Data.DataSet GetAllNaveViajeEmisionAduana(Int32 NVIA_Codigo, string Formato)
 {
     try
     {
         return(BL_NaveViaje.GetEmisionAduana(NVIA_Codigo, Formato));
     }
     catch (Exception)
     { throw; }
 }