Ejemplo n.º 1
0
        public void CargarReporte(String x_REBA_Tipo, ObservableCollection <Infrastructure.Aspect.DataAccess.DataAccessFilterSQL> x_filters)//(Nullable<Int32> ENTC_CodTransportista, Nullable<Int32> ENTC_CodCliente, Nullable<DateTime> FEC_IniEmbarque, Nullable<DateTime> FEC_FinEmbarque, Nullable<DateTime> FEC_IniLlegada, Nullable<DateTime> FEC_FinLlegada, String NRO_HBL, String NRO_OV)
        {
            try
            {
                DTReporte = new System.Data.DataTable();
                Int16  EMPR_Codigo = Delfin.Controls.Entorno.ItemEmpresa.EMPR_Codigo;
                Int16  SUCR_Codigo = Delfin.Controls.Entorno.ItemSucursal.SUCR_Codigo;
                String _mensaje    = String.Empty;
                DTReporte = Client.GetAllCab_Cotizacion_OVByReporteRebateHapagHamburg(x_REBA_Tipo, x_filters, ref _mensaje);//(EMPR_Codigo,SUCR_Codigo,ENTC_CodTransportista, ENTC_CodCliente, FEC_IniEmbarque, FEC_FinEmbarque, FEC_IniLlegada, FEC_FinLlegada, NRO_HBL, NRO_OV, ref _mensaje);

                if (!String.IsNullOrEmpty(_mensaje))
                {
                    Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeInformacion(Title, "Ha ocurrido un error cargando el reporte.", _mensaje);
                }
                else if (DTReporte != null && DTReporte.Rows.Count > 0)
                {
                    LView.FormatDataGrid();
                    LView.ShowItems(DTReporte);
                }
                else
                {
                    Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeInformacion(Title, "No se encontraron resultados.");
                }
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Title, "Ha ocurrido un error cargando el reporte.", ex); }
        }
Ejemplo n.º 2
0
 public void CargarReporte(Nullable <DateTime> FEC_IniConcluye, Nullable <DateTime> FEC_FinConcluye, String DOOV_HBL, String CCOT_NumDoc, Nullable <Int32> ENTC_Ejecutivo, Nullable <Int32> ENTC_Cliente)
 {
     try
     {
         DTReporte = new System.Data.DataTable();
         Int16 EMPR_Codigo = Delfin.Controls.Entorno.ItemEmpresa.EMPR_Codigo;
         Int16 SUCR_Codigo = Delfin.Controls.Entorno.ItemSucursal.SUCR_Codigo;
         //DTReporte = Client.GetAllCab_Cotizacion_OVByProfitNegativo
         String _mensaje = String.Empty;
         DTReporte = Client.GetAllCab_Cotizacion_OVByComEjecutivo(EMPR_Codigo, SUCR_Codigo, FEC_IniConcluye, FEC_FinConcluye, DOOV_HBL, CCOT_NumDoc, ENTC_Ejecutivo, ENTC_Cliente, ref _mensaje);
         if (!String.IsNullOrEmpty(_mensaje))
         {
             Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeInformacion(Title, "Ha ocurrido un error cargando el reporte.", _mensaje);
         }
         else if (DTReporte != null && DTReporte.Rows.Count > 0)
         {
             LView.FormatDataGrid();
             LView.ShowItems(DTReporte);
         }
         else
         {
             Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeInformacion(Title, "No se encontraron resultados.");
         }
     }
     catch (Exception ex)
     { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Title, "Ha ocurrido un error cargando el reporte.", ex); }
 }
Ejemplo n.º 3
0
        public void CargarReporte(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
            {
                DTReporte = new System.Data.DataTable();

                DTReporte = Client.GetAllNaveViajeByReporte(CONS_TabRGM, CONS_CodRGM, NVIA_FecETAIni, NVIA_FecETAFin, NVIA_FecZarpeIni, NVIA_FecZarpeFin, ENTC_CodTransportista, NAVE_Codigo);

                if (DTReporte != null && DTReporte.Rows.Count > 0)
                {
                    LView.FormatDataGrid(CONS_CodRGM);
                    LView.ShowItems(DTReporte);
                }
                else
                {
                    Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeInformacion(Title, "No se encontraron resultados.");
                }
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Title, "Ha ocurrido un error cargando el reporte.", ex); }
        }
Ejemplo n.º 4
0
        public void CargarReporte(String CONS_TabRGM, String CONS_CodRGM, String NVIA_NroViaje, Nullable <DateTime> FEC_IniETA, Nullable <DateTime> FEC_FinETA, Nullable <DateTime> FEC_IniZarpe, Nullable <DateTime> FEC_FinZarpe, Nullable <DateTime> FEC_IniEmbarque, Nullable <DateTime> FEC_FinEmbarque, Nullable <Int32> ENTC_Transportista, Nullable <Int32> ENTC_Vendedor, Nullable <Int32> ENTC_Deposito, Nullable <Int16> NAVE_Codigo, Boolean Detallado)
        {
            try
            {
                DTReporte = new System.Data.DataTable();
                Int16 EMPR_Codigo = Delfin.Controls.Entorno.ItemEmpresa.EMPR_Codigo;
                Int16 SUCR_Codigo = Delfin.Controls.Entorno.ItemSucursal.SUCR_Codigo;
                DTReporte = Client.GetAllCab_Cotizacion_OVByReporteTeus(EMPR_Codigo, SUCR_Codigo, CONS_TabRGM, CONS_CodRGM, NVIA_NroViaje, FEC_IniETA, FEC_FinETA, FEC_IniZarpe, FEC_FinZarpe, FEC_IniEmbarque, FEC_FinEmbarque, ENTC_Transportista, ENTC_Vendedor, ENTC_Deposito, NAVE_Codigo, Detallado);

                if (DTReporte != null && DTReporte.Rows.Count > 0)
                {
                    LView.FormatDataGrid();
                    LView.ShowItems(DTReporte);
                }
                else
                {
                    Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeInformacion(Title, "No se encontraron resultados.");
                }
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Title, "Ha ocurrido un error cargando el reporte.", ex); }
        }