From 9c4cdd3b93ead945aec4d0264f2063ad12423c37 Mon Sep 17 00:00:00 2001 From: ROBERTO ALVES PEREIRA Date: Mon, 2 Sep 2019 11:15:09 -0300 Subject: [PATCH] =?UTF-8?q?cte=20evento=20corre=C3=A7=C3=A3o=20no=20dateti?= =?UTF-8?q?meoffset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CTe.Dacte.Fast/Resources/CTeEvento.frx | 404 +++++++++++++------------ 1 file changed, 214 insertions(+), 190 deletions(-) diff --git a/CTe.Dacte.Fast/Resources/CTeEvento.frx b/CTe.Dacte.Fast/Resources/CTeEvento.frx index cef1128e4..123cf018e 100644 --- a/CTe.Dacte.Fast/Resources/CTeEvento.frx +++ b/CTe.Dacte.Fast/Resources/CTeEvento.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -173,7 +173,20 @@ namespace FastReport Text49.Text = Text1.Text; Text51.Text = Convert.ToInt32((Estado)Report.GetColumnValue("procEventoCTe.eventoCTe.infEvento.cOrgao")).ToString(); Text67.Text = ((TipoAmbiente)Report.GetColumnValue("procEventoCTe.eventoCTe.infEvento.tpAmb") == TipoAmbiente.Homologacao) ? "HOMOLOGAÇÃO - SEM VALOR FISCAL" : "PRODUÇÃO - COM VALOR FISCAL"; - Text64.Text = ((String)Report.GetColumnValue("procEventoCTe.retEvento.infEvento.nProt")) + " " + FormatDateTime((Nullable<DateTime>)Report.GetColumnValue("procEventoCTe.retEvento.infEvento.dhRegEvento") ?? DateTime.MinValue, @"dd/MM/yyyy HH:mm:ss"); + + var dhRegEventoOffset = ((Nullable<DateTimeOffset>)Report.GetColumnValue("procEventoCTe.retEvento.infEvento.dhRegEvento")); + + var dhRegEvento = DateTime.MinValue; + + if (dhRegEventoOffset != null) + { + dhRegEvento = dhRegEventoOffset.Value.DateTime; + } + + + + + Text64.Text = ((String)Report.GetColumnValue("procEventoCTe.retEvento.infEvento.nProt")) + " " + FormatDateTime(dhRegEvento, @"dd/MM/yyyy HH:mm:ss"); Text70.Text = Convert.ToInt32((CTeTipoEvento)Report.GetColumnValue("procEventoCTe.eventoCTe.infEvento.tpEvento")).ToString(); Text73.Text = ((CTeTipoEvento)Report.GetColumnValue("procEventoCTe.eventoCTe.infEvento.tpEvento") == CTeTipoEvento.Cancelamento) ? "DESCRIÇÃO" : "CONDIÇÕES DE USO"; @@ -238,72 +251,72 @@ namespace FastReport } - - - - + + + + - - + + - - + + - + - + - + - - + + - - - + + + - + - - + + - + - + - - + + - + - + - - + + - - + + - + @@ -311,7 +324,7 @@ namespace FastReport - + @@ -323,41 +336,45 @@ namespace FastReport - + - + - + - - - + + + + + + + - + - + - + - + @@ -366,19 +383,19 @@ namespace FastReport - + - + - + @@ -386,7 +403,7 @@ namespace FastReport - + @@ -394,14 +411,14 @@ namespace FastReport - + - + @@ -410,14 +427,14 @@ namespace FastReport - + - + @@ -427,17 +444,17 @@ namespace FastReport - + - + - + @@ -446,7 +463,7 @@ namespace FastReport - + @@ -454,13 +471,13 @@ namespace FastReport - + - + @@ -469,7 +486,7 @@ namespace FastReport - + @@ -477,14 +494,14 @@ namespace FastReport - + - + @@ -493,14 +510,14 @@ namespace FastReport - + - + @@ -510,41 +527,41 @@ namespace FastReport - + - + - + - - - - - - - + + + + + + - + - + + - + @@ -557,14 +574,15 @@ namespace FastReport - - + + + - + - + @@ -574,21 +592,21 @@ namespace FastReport - + - - + + - - + + - + @@ -600,19 +618,20 @@ namespace FastReport - + + - + - - + + @@ -625,15 +644,15 @@ namespace FastReport - + - - + + - + @@ -645,19 +664,20 @@ namespace FastReport - + + - + - - + + @@ -670,31 +690,31 @@ namespace FastReport - - - + + + - - - + + + - + - + - + @@ -704,17 +724,17 @@ namespace FastReport - + - + - + - + - + - + @@ -722,21 +742,21 @@ namespace FastReport - + - + - + - + - + @@ -745,16 +765,16 @@ namespace FastReport - + - + - - + + @@ -764,12 +784,12 @@ namespace FastReport - + - + - + @@ -785,120 +805,123 @@ namespace FastReport - + - + - - + + - + - + - + + - - - + + + - + - + - + - + - - + + + - - - + + + - + - + - - - + + + - + - + - + - + - - + + + - + - - - + + + - - + + - + - + - - - + + + - + @@ -909,72 +932,73 @@ namespace FastReport - - - + + + - + - + - + - + - - + + - - - + + + - + - + - + - - - + + + - + - + - + - + - - + + +