public MappingProfile() { CreateMap <Produto, ProdutoItem>(); CreateMap <Cliente, EnderecoEntrega>() .ForMember(dest => dest.Id, opt => opt.MapFrom(orig => 0)) .ForMember(dest => dest.Nome, opt => opt.MapFrom( orig => string.Format("Endereço do cliente ({0})", orig.Nome) )); CreateMap <Transaction, TransacaoPagarMe>(); CreateMap <TransacaoPagarMe, Pedido>() .ForMember(dest => dest.Id, opt => opt.MapFrom(orig => 0)) .ForMember(dest => dest.ClienteId, opt => opt.MapFrom(orig => int.Parse(orig.Customer.ExternalId))) .ForMember(dest => dest.TransactionId, opt => opt.MapFrom(orig => orig.Id)) .ForMember(dest => dest.FreteEmpresa, opt => opt.MapFrom(orig => "ECT - Correios")) .ForMember(dest => dest.FormaPagamento, opt => opt.MapFrom(orig => (orig.PaymentMethod == 0) ? MetodoPagamentoConstant.CartaoCredito : MetodoPagamentoConstant.Boleto)) .ForMember(dest => dest.DadosTransaction, opt => opt.MapFrom(orig => JsonConvert.SerializeObject(orig, new JsonSerializerSettings() { ReferenceLoopHandling = ReferenceLoopHandling.Ignore }))) .ForMember(dest => dest.DataRegistro, opt => opt.MapFrom(orig => DateTime.Now)) .ForMember(dest => dest.ValorTotal, opt => opt.MapFrom(orig => Mascara.ConverterPagarMeIntToDecimal(orig.Amount))); CreateMap <List <ProdutoItem>, Pedido>() .ForMember(dest => dest.DadosProdutos, opt => opt.MapFrom(orig => JsonConvert.SerializeObject(orig, new JsonSerializerSettings() { ContractResolver = new ProdutoItemResolver <List <ProdutoItem> >(), ReferenceLoopHandling = ReferenceLoopHandling.Ignore }))); CreateMap <Pedido, PedidoSituacao>() .ForMember(dest => dest.Id, opt => opt.MapFrom(orig => 0)) .ForMember(dest => dest.PedidoId, opt => opt.MapFrom(orig => orig.Id)) .ForMember(dest => dest.Data, opt => opt.MapFrom(orig => DateTime.Now)); CreateMap <TransactionProduto, PedidoSituacao>() .ForMember(dest => dest.Dados, opt => opt.MapFrom(orig => JsonConvert.SerializeObject(orig, new JsonSerializerSettings() { ContractResolver = new ProdutoItemResolver <List <ProdutoItem> >(), ReferenceLoopHandling = ReferenceLoopHandling.Ignore }))); CreateMap <DadosCancelamentoBoleto, BankAccount>() .ForMember(dest => dest.BankCode, opt => opt.MapFrom(orig => orig.BancoCodigo)) .ForMember(dest => dest.Agencia, opt => opt.MapFrom(orig => orig.Agencia)) .ForMember(dest => dest.AgenciaDv, opt => opt.MapFrom(orig => orig.AgenciaDV)) .ForMember(dest => dest.Conta, opt => opt.MapFrom(orig => orig.Conta)) .ForMember(dest => dest.ContaDv, opt => opt.MapFrom(orig => orig.ContaDV)) .ForMember(dest => dest.LegalName, opt => opt.MapFrom(orig => orig.Nome)) .ForMember(dest => dest.DocumentNumber, opt => opt.MapFrom(orig => orig.CPF)); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 2 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" ViewData["Title"] = "Visualizar"; TransacaoPagarMe transacao = JsonConvert.DeserializeObject <TransacaoPagarMe>(Model.DadosTransaction); List <ProdutoItem> produtos = JsonConvert.DeserializeObject <List <ProdutoItem> >(Model.DadosProdutos, new JsonSerializerSettings() { ContractResolver = new ProdutoItemResolver <List <ProdutoItem> >() }); var aniversario = DateTime.Parse(transacao.Customer.Birthday); #line default #line hidden BeginContext(439, 119, true); WriteLiteral("<br /><br />\r\n<div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12 text-center\">\r\n "); EndContext(); BeginContext(558, 38, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("vc:pedido-situacao", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0b076aef24bf649b0b0572361700a7dfaa50cbc35285", async() => { } ); __PedidoSituacaoViewComponentTagHelper = CreateTagHelper <global::AspNetCore.Areas_Cliente_Views_Pedido_Visualizar.__Generated__PedidoSituacaoViewComponentTagHelper>(); __tagHelperExecutionContext.Add(__PedidoSituacaoViewComponentTagHelper); #line 12 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" __PedidoSituacaoViewComponentTagHelper.pedido = Model; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("pedido", __PedidoSituacaoViewComponentTagHelper.pedido, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(596, 288, true); WriteLiteral(@" <br /> </div> </div> <div class=""row""> <div class=""col-md-12""> <h3>Dados pedido</h3> <table class=""table table-bordered""> <tr> <td colspan=""2""><strong>Situação do pedido:</strong> "); EndContext(); BeginContext(885, 14, false); #line 22 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(899, 104, true); WriteLiteral("</td>\r\n\r\n </tr>\r\n <tr>\r\n <td><strong>Cliente:</strong> "); EndContext(); BeginContext(1004, 23, false); #line 26 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Customer.Name); #line default #line hidden EndContext(); BeginContext(1027, 60, true); WriteLiteral("</td>\r\n <td><strong>Nascimento:</strong> "); EndContext(); BeginContext(1088, 34, false); #line 27 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(aniversario.ToString("dd/MM/yyyy")); #line default #line hidden EndContext(); BeginContext(1122, 113, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td><strong>Forma de pagamento: </strong>"); EndContext(); BeginContext(1236, 20, false); #line 30 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.FormaPagamento); #line default #line hidden EndContext(); BeginContext(1256, 74, true); WriteLiteral("</td>\r\n <td><strong>Nota Fiscal Eletrônica: </strong>- "); EndContext(); BeginContext(1331, 9, false); #line 31 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.NFE); #line default #line hidden EndContext(); BeginContext(1340, 256, true); WriteLiteral(@"</td> </tr> </table> <h3>Entrega</h3> <table class=""table table-bordered""> <tr> <td colspan=""4""> <strong>Endereço de entrega: </strong>"); EndContext(); BeginContext(1597, 23, false); #line 39 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Name); #line default #line hidden EndContext(); BeginContext(1620, 120, true); WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <td><strong>CEP: </strong>"); EndContext(); BeginContext(1741, 34, false); #line 43 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Zipcode); #line default #line hidden EndContext(); BeginContext(1775, 56, true); WriteLiteral("</td>\r\n <td><strong>Estado:</strong> "); EndContext(); BeginContext(1832, 32, false); #line 44 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.State); #line default #line hidden EndContext(); BeginContext(1864, 56, true); WriteLiteral("</td>\r\n <td><strong>Cidade:</strong> "); EndContext(); BeginContext(1921, 31, false); #line 45 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.City); #line default #line hidden EndContext(); BeginContext(1952, 56, true); WriteLiteral("</td>\r\n <td><strong>Bairro:</strong> "); EndContext(); BeginContext(2009, 39, false); #line 46 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Neighborhood); #line default #line hidden EndContext(); BeginContext(2048, 116, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\"><strong>Endereço: </strong> "); EndContext(); BeginContext(2165, 33, false); #line 49 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Street); #line default #line hidden EndContext(); BeginContext(2198, 61, true); WriteLiteral("</td>\r\n <td><strong>Complemento: </strong>"); EndContext(); BeginContext(2260, 40, false); #line 50 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Complementary); #line default #line hidden EndContext(); BeginContext(2300, 56, true); WriteLiteral("</td>\r\n <td><strong>Número: </strong>"); EndContext(); BeginContext(2357, 39, false); #line 51 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.StreetNumber); #line default #line hidden EndContext(); BeginContext(2396, 121, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\"><strong>Transportadora:</strong> "); EndContext(); BeginContext(2518, 18, false); #line 54 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.FreteEmpresa); #line default #line hidden EndContext(); BeginContext(2536, 64, true); WriteLiteral("</td>\r\n <td><strong>Valor do frete:</strong> "); EndContext(); BeginContext(2601, 74, false); #line 55 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Mascara.ConverterPagarMeIntToDecimal(transacao.Shipping.Fee).ToString("C")); #line default #line hidden EndContext(); BeginContext(2675, 65, true); WriteLiteral("</td>\r\n <td><strong>Rastreamento: </strong> - "); EndContext(); BeginContext(2741, 26, false); #line 56 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.FreteCodRastreamento); #line default #line hidden EndContext(); BeginContext(2767, 335, true); WriteLiteral(@"</td> </tr> </table> <h3>Lista de produtos</h3> <table class=""table table-bordered""> <tr> <th>Quantidade</th> <th>Nome</th> <th>Valor</th> <th>TOTAL</th> </tr> "); EndContext(); #line 67 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" foreach (var produto in produtos) { #line default #line hidden BeginContext(3173, 54, true); WriteLiteral(" <tr>\r\n <td>"); EndContext(); BeginContext(3228, 23, false); #line 70 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(produto.UnidadesPedidas); #line default #line hidden EndContext(); BeginContext(3251, 35, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(3287, 12, false); #line 71 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(produto.Nome); #line default #line hidden EndContext(); BeginContext(3299, 35, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(3335, 27, false); #line 72 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(produto.Valor.ToString("C")); #line default #line hidden EndContext(); BeginContext(3362, 35, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(3399, 55, false); #line 73 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write((produto.Valor * produto.UnidadesPedidas).ToString("C")); #line default #line hidden EndContext(); BeginContext(3455, 34, true); WriteLiteral("</td>\r\n </tr>\r\n"); EndContext(); #line 75 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(3508, 111, true); WriteLiteral(" <tr>\r\n <td colspan=\"3\"><strong>FRETE</strong></td>\r\n <td>"); EndContext(); BeginContext(3620, 74, false); #line 78 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Mascara.ConverterPagarMeIntToDecimal(transacao.Shipping.Fee).ToString("C")); #line default #line hidden EndContext(); BeginContext(3694, 141, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\"><strong>TOTAL</strong></td>\r\n <td>"); EndContext(); BeginContext(3836, 30, false); #line 82 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.ValorTotal.ToString("C")); #line default #line hidden EndContext(); BeginContext(3866, 220, true); WriteLiteral("</td>\r\n </tr>\r\n </table>\r\n\r\n <br />\r\n <br />\r\n <button class=\"btn btn-outline-primary btn-lg btn-imprimir\">Imprimir</button> \r\n </div>\r\n </div>\r\n</div>"); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 2 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" ViewData["Title"] = "Visualizar"; TransacaoPagarMe transacao = JsonConvert.DeserializeObject <TransacaoPagarMe>(Model.DadosTransaction); List <ProdutoItem> produtos = JsonConvert.DeserializeObject <List <ProdutoItem> >(Model.DadosProdutos, new JsonSerializerSettings() { ContractResolver = new ProdutoItemResolver <List <ProdutoItem> >() }); var aniversario = DateTime.Parse(transacao.Customer.Birthday); #line default #line hidden BeginContext(439, 121, true); WriteLiteral("<br />\r\n<br />\r\n<div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12 text-center\">\r\n "); EndContext(); BeginContext(560, 38, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("vc:pedido-situacao", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "c8c9926f7033f2240311cfc45c4931ce669f09215258", async() => { } ); __PedidoSituacaoViewComponentTagHelper = CreateTagHelper <global::AspNetCore.Areas_Cliente_Views_Pedido_Visualizar.__Generated__PedidoSituacaoViewComponentTagHelper>(); __tagHelperExecutionContext.Add(__PedidoSituacaoViewComponentTagHelper); #line 13 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" __PedidoSituacaoViewComponentTagHelper.pedido = Model; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("pedido", __PedidoSituacaoViewComponentTagHelper.pedido, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(598, 335, true); WriteLiteral(@" <br /> <br /> </div> </div> <div class=""row""> <div class=""col-md-12""> <h3>Dados pedido</h3> <table class=""table table-bordered""> <tr> <td colspan=""2""> <strong>Situação do pedido:</strong> "); EndContext(); #line 26 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.PEDIDO_REALIZADO) { #line default #line hidden BeginContext(1077, 65, true); WriteLiteral(" <span class=\"label pedido-realizado\">"); EndContext(); BeginContext(1143, 14, false); #line 28 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(1157, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 29 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(1193, 24, true); WriteLiteral(" "); EndContext(); #line 30 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.PAGAMENTO_APROVADO) { #line default #line hidden BeginContext(1339, 67, true); WriteLiteral(" <span class=\"label pagamento-aprovado\">"); EndContext(); BeginContext(1407, 14, false); #line 32 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(1421, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 33 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(1457, 24, true); WriteLiteral(" "); EndContext(); #line 34 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.NF_EMITIDA) { #line default #line hidden BeginContext(1595, 59, true); WriteLiteral(" <span class=\"label nf-emitida\">"); EndContext(); BeginContext(1655, 14, false); #line 36 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(1669, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 37 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(1705, 24, true); WriteLiteral(" "); EndContext(); #line 38 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.EM_TRANSPORTE) { #line default #line hidden BeginContext(1846, 62, true); WriteLiteral(" <span class=\"label em-transporte\">"); EndContext(); BeginContext(1909, 14, false); #line 40 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(1923, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 41 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(1959, 24, true); WriteLiteral(" "); EndContext(); #line 42 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.ENTREGUE) { #line default #line hidden BeginContext(2095, 57, true); WriteLiteral(" <span class=\"label entregue\">"); EndContext(); BeginContext(2153, 14, false); #line 44 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(2167, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 45 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(2203, 24, true); WriteLiteral(" "); EndContext(); #line 46 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.FINALIZADO) { #line default #line hidden BeginContext(2341, 59, true); WriteLiteral(" <span class=\"label finalizado\">"); EndContext(); BeginContext(2401, 14, false); #line 48 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(2415, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 49 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(2451, 24, true); WriteLiteral(" "); EndContext(); #line 50 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.DEVOLVER) { #line default #line hidden BeginContext(2587, 57, true); WriteLiteral(" <span class=\"label devolver\">"); EndContext(); BeginContext(2645, 14, false); #line 52 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(2659, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 53 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(2695, 24, true); WriteLiteral(" "); EndContext(); #line 54 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.DEVOLVER_ENTREGUE) { #line default #line hidden BeginContext(2840, 66, true); WriteLiteral(" <span class=\"label devolver-entregue\">"); EndContext(); BeginContext(2907, 14, false); #line 56 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(2921, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 57 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(2957, 24, true); WriteLiteral(" "); EndContext(); #line 58 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.DEVOLUCAO_ACEITA) { #line default #line hidden BeginContext(3101, 65, true); WriteLiteral(" <span class=\"label devolucao-aceita\">"); EndContext(); BeginContext(3167, 14, false); #line 60 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(3181, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 61 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(3217, 24, true); WriteLiteral(" "); EndContext(); #line 62 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.DEVOLUCAO_REJEITADA) { #line default #line hidden BeginContext(3364, 68, true); WriteLiteral(" <span class=\"label devolucao-rejeitada\">"); EndContext(); BeginContext(3433, 14, false); #line 64 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(3447, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 65 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(3483, 24, true); WriteLiteral(" "); EndContext(); #line 66 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" if (Model.Situacao == LojaVirtual.Models.Contants.PedidoSituacaoConstant.DEVOLVER_ESTORNO) { #line default #line hidden BeginContext(3627, 56, true); WriteLiteral(" <span class=\"label estorno\">"); EndContext(); BeginContext(3684, 14, false); #line 68 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(3698, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 69 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(3734, 123, true); WriteLiteral(" </td>\r\n </tr>\r\n <tr>\r\n <td><strong>Cliente: </strong> "); EndContext(); BeginContext(3858, 23, false); #line 73 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Customer.Name); #line default #line hidden EndContext(); BeginContext(3881, 60, true); WriteLiteral("</td>\r\n <td><strong>Nascimento: </strong>"); EndContext(); BeginContext(3942, 34, false); #line 74 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(aniversario.ToString("dd/MM/yyyy")); #line default #line hidden EndContext(); BeginContext(3976, 110, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td><strong>Forma pagamento: </strong>"); EndContext(); BeginContext(4087, 20, false); #line 77 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.FormaPagamento); #line default #line hidden EndContext(); BeginContext(4107, 74, true); WriteLiteral("</td>\r\n <td><strong>Nota Fiscal Eletronica: </strong>- "); EndContext(); BeginContext(4182, 90, false); #line 78 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Html.Raw(Model.NFE == null ? "-" : "<a href='" + Model.NFE + "' target='_blank'>NF-e</a>")); #line default #line hidden EndContext(); BeginContext(4272, 258, true); WriteLiteral(@"</td> </tr> </table> <h3>Entrega</h3> <table class=""table table-bordered""> <tr> <td colspan=""4""> <strong>Endereço de Entrega: </strong>"); EndContext(); BeginContext(4531, 23, false); #line 87 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Name); #line default #line hidden EndContext(); BeginContext(4554, 137, true); WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\"><strong>Endereço: </strong>"); EndContext(); BeginContext(4692, 33, false); #line 91 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Street); #line default #line hidden EndContext(); BeginContext(4725, 56, true); WriteLiteral("</td>\r\n <td><strong>Numero: </strong>"); EndContext(); BeginContext(4782, 39, false); #line 92 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.StreetNumber); #line default #line hidden EndContext(); BeginContext(4821, 61, true); WriteLiteral("</td>\r\n <td><strong>Complemento: </strong>"); EndContext(); BeginContext(4883, 40, false); #line 93 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Complementary); #line default #line hidden EndContext(); BeginContext(4923, 101, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td><strong>Bairro: </strong>"); EndContext(); BeginContext(5025, 39, false); #line 96 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Neighborhood); #line default #line hidden EndContext(); BeginContext(5064, 56, true); WriteLiteral("</td>\r\n <td><strong>Cidade: </strong>"); EndContext(); BeginContext(5121, 31, false); #line 97 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.City); #line default #line hidden EndContext(); BeginContext(5152, 56, true); WriteLiteral("</td>\r\n <td><strong>Estado: </strong>"); EndContext(); BeginContext(5209, 32, false); #line 98 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.State); #line default #line hidden EndContext(); BeginContext(5241, 53, true); WriteLiteral("</td>\r\n <td><strong>CEP: </strong>"); EndContext(); BeginContext(5295, 34, false); #line 99 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Zipcode); #line default #line hidden EndContext(); BeginContext(5329, 121, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\"><strong>Transportadora: </strong>"); EndContext(); BeginContext(5451, 18, false); #line 102 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.FreteEmpresa); #line default #line hidden EndContext(); BeginContext(5469, 64, true); WriteLiteral("</td>\r\n <td><strong>Valor do Frete: </strong>"); EndContext(); BeginContext(5534, 74, false); #line 103 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Mascara.ConverterPagarMeIntToDecimal(transacao.Shipping.Fee).ToString("C")); #line default #line hidden EndContext(); BeginContext(5608, 62, true); WriteLiteral("</td>\r\n <td><strong>Rastreamento: </strong>"); EndContext(); BeginContext(5671, 26, false); #line 104 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.FreteCodRastreamento); #line default #line hidden EndContext(); BeginContext(5697, 339, true); WriteLiteral(@"</td> </tr> </table> <h3>Lista de produtos</h3> <table class=""table table-bordered""> <tr> <th>Quantidade</th> <th>Nome</th> <th>Valor</th> <th>TOTAL</th> </tr> "); EndContext(); #line 117 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" foreach (var produto in produtos) { #line default #line hidden BeginContext(6107, 54, true); WriteLiteral(" <tr>\r\n <td>"); EndContext(); BeginContext(6162, 23, false); #line 120 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(produto.UnidadesPedidas); #line default #line hidden EndContext(); BeginContext(6185, 35, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(6221, 12, false); #line 121 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(produto.Nome); #line default #line hidden EndContext(); BeginContext(6233, 35, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(6269, 27, false); #line 122 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(produto.Valor.ToString("C")); #line default #line hidden EndContext(); BeginContext(6296, 35, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(6333, 55, false); #line 123 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write((produto.Valor * produto.UnidadesPedidas).ToString("C")); #line default #line hidden EndContext(); BeginContext(6389, 34, true); WriteLiteral("</td>\r\n </tr>\r\n"); EndContext(); #line 125 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(6442, 113, true); WriteLiteral("\r\n <tr>\r\n <td colspan=\"3\"><strong>FRETE</strong></td>\r\n <td>"); EndContext(); BeginContext(6556, 74, false); #line 129 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Mascara.ConverterPagarMeIntToDecimal(transacao.Shipping.Fee).ToString("C")); #line default #line hidden EndContext(); BeginContext(6630, 141, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\"><strong>TOTAL</strong></td>\r\n <td>"); EndContext(); BeginContext(6772, 30, false); #line 133 "C:\Users\ander\Desktop\Git\LojaVirtual\Novo\LojaVirtual\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.ValorTotal.ToString("C")); #line default #line hidden EndContext(); BeginContext(6802, 214, true); WriteLiteral("</td>\r\n </tr>\r\n </table>\r\n\r\n <br />\r\n <br />\r\n <button class=\"btn btn-outline-primary btn-imprimir\">Imprimir</button>\r\n\r\n </div>\r\n </div>\r\n</div>"); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 2 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" ViewData["Title"] = "Index"; decimal valorTotal = 0; #line default #line hidden BeginContext(104, 180, true); WriteLiteral("<br />\r\n<br />\r\n<div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12 text-center\">\r\n <h1>Pedido</h1>\r\n <div class=\"numero-pedido\">nº "); EndContext(); BeginContext(285, 8, false); #line 12 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" Write(Model.Id); #line default #line hidden EndContext(); BeginContext(293, 1, true); WriteLiteral("-"); EndContext(); BeginContext(295, 19, false); #line 12 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" Write(Model.TransactionId); #line default #line hidden EndContext(); BeginContext(314, 292, true); WriteLiteral(@"</div> <table class=""table table-bordered""> <thread> <tr> <th>Nome</th> <th>Quantidade</th> <th>Valor</th> </tr> </thread> "); EndContext(); #line 23 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" foreach (ProdutoItem produto in ViewBag.Produtos) { valorTotal += (produto.UnidadesPedidas * produto.Valor); #line default #line hidden BeginContext(771, 54, true); WriteLiteral(" <tr>\r\n <td>"); EndContext(); BeginContext(826, 12, false); #line 27 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" Write(produto.Nome); #line default #line hidden EndContext(); BeginContext(838, 35, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(874, 23, false); #line 28 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" Write(produto.UnidadesPedidas); #line default #line hidden EndContext(); BeginContext(897, 65, true); WriteLiteral("</td>\r\n <td>\r\n "); EndContext(); BeginContext(964, 55, false); #line 30 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" Write((produto.UnidadesPedidas * produto.Valor).ToString("C")); #line default #line hidden EndContext(); BeginContext(1020, 31, true); WriteLiteral("\r\n ("); EndContext(); BeginContext(1052, 27, false); #line 31 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" Write(produto.Valor.ToString("C")); #line default #line hidden EndContext(); BeginContext(1079, 66, true); WriteLiteral(" unid)\r\n </td>\r\n </tr>\r\n"); EndContext(); #line 34 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" } #line default #line hidden BeginContext(1164, 98, true); WriteLiteral("\r\n <tr>\r\n <td colspan=\"2\">Frete</td>\r\n <td>\r\n"); EndContext(); #line 39 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" var frete = Mascara.ConverterPagarMeIntToDecimal(ViewBag.Transacao.Shipping.Fee); valorTotal += frete; #line default #line hidden BeginContext(1478, 24, true); WriteLiteral(" "); EndContext(); BeginContext(1503, 19, false); #line 43 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" Write(frete.ToString("C")); #line default #line hidden EndContext(); BeginContext(1522, 146, true); WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\">TOTAL</td>\r\n <td>"); EndContext(); BeginContext(1669, 24, false); #line 48 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" Write(valorTotal.ToString("C")); #line default #line hidden EndContext(); BeginContext(1693, 54, true); WriteLiteral("</td>\r\n </tr>\r\n </table>\r\n\r\n"); EndContext(); #line 52 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" if (Model.FormaPagamento == MetodoPagamentoConstant.Boleto) { #line default #line hidden BeginContext(1835, 56, true); WriteLiteral(" <h3>Boleto</h3>\r\n <iframe"); EndContext(); BeginWriteAttribute("src", " src=\"", 1891, "\"", 1925, 1); #line 55 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" WriteAttributeValue("", 1897, ViewBag.Transacao.BoletoUrl, 1897, 28, false); #line default #line hidden EndWriteAttribute(); BeginContext(1926, 110, true); WriteLiteral(" style=\"width: 100%; min-height: 400px; border: 1px solid #CCC;\"></iframe>\r\n <a target=\"_blank\""); EndContext(); BeginWriteAttribute("href", " href=\"", 2036, "\"", 2071, 1); #line 56 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" WriteAttributeValue("", 2043, ViewBag.Transacao.BoletoUrl, 2043, 28, false); #line default #line hidden EndWriteAttribute(); BeginContext(2072, 49, true); WriteLiteral(" class=\"btn btn-outline-secondary\">Imprimir</a>\r\n"); EndContext(); #line 57 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Views\Pedido\Index.cshtml" } #line default #line hidden BeginContext(2136, 52, true); WriteLiteral(" <br />\r\n <br />\r\n "); EndContext(); BeginContext(2188, 103, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "20a6235a0886679b99980d3d350929ba303b4b4712278", async() => { BeginContext(2271, 16, true); WriteLiteral("Voltar a comprar"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2291, 42, true); WriteLiteral("\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n"); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 2 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" ViewData["Title"] = "Visualizar"; TransacaoPagarMe transacao = JsonConvert.DeserializeObject <TransacaoPagarMe>(Model.DadosTransaction); List <ProdutoItem> produtos = JsonConvert.DeserializeObject <List <ProdutoItem> >(Model.DadosProdutos, new JsonSerializerSettings() { ContractResolver = new ProdutoItemResolver <List <ProdutoItem> >() }); var aniversario = DateTime.Parse(transacao.Customer.Birthday); #line default #line hidden BeginContext(439, 119, true); WriteLiteral("<br /><br />\r\n<div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12 text-center\">\r\n "); EndContext(); BeginContext(558, 38, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("vc:pedido-situacao", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f0879198662b3bb72fe036151665641a608d87b65225", async() => { } ); __PedidoSituacaoViewComponentTagHelper = CreateTagHelper <global::AspNetCore.Areas_Cliente_Views_Pedido_Visualizar.__Generated__PedidoSituacaoViewComponentTagHelper>(); __tagHelperExecutionContext.Add(__PedidoSituacaoViewComponentTagHelper); #line 12 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" __PedidoSituacaoViewComponentTagHelper.pedido = Model; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("pedido", __PedidoSituacaoViewComponentTagHelper.pedido, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(596, 316, true); WriteLiteral(@" <br /> <br /> </div> </div> <div class=""row""> <div class=""col-md-12""> <h3>Dados pedido</h3> <table class=""table table-bordered""> <tr> <td colspan=""2""><strong>Situação do pedido:</strong> "); EndContext(); BeginContext(913, 14, false); #line 23 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.Situacao); #line default #line hidden EndContext(); BeginContext(927, 124, true); WriteLiteral("</td>\r\n \r\n </tr>\r\n <tr>\r\n <td><strong>Cliente:</strong> "); EndContext(); BeginContext(1052, 23, false); #line 27 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Customer.Name); #line default #line hidden EndContext(); BeginContext(1075, 60, true); WriteLiteral("</td>\r\n <td><strong>Nascimento:</strong> "); EndContext(); BeginContext(1136, 34, false); #line 28 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(aniversario.ToString("dd/MM/yyyy")); #line default #line hidden EndContext(); BeginContext(1170, 113, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td><strong>Forma de pagamento: </strong>"); EndContext(); BeginContext(1284, 20, false); #line 31 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.FormaPagamento); #line default #line hidden EndContext(); BeginContext(1304, 74, true); WriteLiteral("</td>\r\n <td><strong>Nota Fiscal Eletrônica: </strong>- "); EndContext(); BeginContext(1379, 9, false); #line 32 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.NFE); #line default #line hidden EndContext(); BeginContext(1388, 258, true); WriteLiteral(@"</td> </tr> </table> <h3>Entrega</h3> <table class=""table table-bordered""> <tr> <td colspan=""4""> <strong>Endereço de entrega: </strong>"); EndContext(); BeginContext(1647, 23, false); #line 41 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Name); #line default #line hidden EndContext(); BeginContext(1670, 120, true); WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <td><strong>CEP:</strong> "); EndContext(); BeginContext(1791, 34, false); #line 45 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Zipcode); #line default #line hidden EndContext(); BeginContext(1825, 56, true); WriteLiteral("</td>\r\n <td><strong>Estado:</strong> "); EndContext(); BeginContext(1882, 32, false); #line 46 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.State); #line default #line hidden EndContext(); BeginContext(1914, 56, true); WriteLiteral("</td>\r\n <td><strong>Cidade:</strong> "); EndContext(); BeginContext(1971, 31, false); #line 47 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.City); #line default #line hidden EndContext(); BeginContext(2002, 56, true); WriteLiteral("</td>\r\n <td><strong>Bairro:</strong> "); EndContext(); BeginContext(2059, 39, false); #line 48 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Neighborhood); #line default #line hidden EndContext(); BeginContext(2098, 116, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\"><strong>Endereço: </strong> "); EndContext(); BeginContext(2215, 33, false); #line 51 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Street); #line default #line hidden EndContext(); BeginContext(2248, 61, true); WriteLiteral("</td>\r\n <td><strong>Complemento: </strong>"); EndContext(); BeginContext(2310, 40, false); #line 52 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.Complementary); #line default #line hidden EndContext(); BeginContext(2350, 56, true); WriteLiteral("</td>\r\n <td><strong>Número: </strong>"); EndContext(); BeginContext(2407, 39, false); #line 53 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(transacao.Shipping.Address.StreetNumber); #line default #line hidden EndContext(); BeginContext(2446, 121, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\"><strong>Transportadora:</strong> "); EndContext(); BeginContext(2568, 18, false); #line 56 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.FreteEmpresa); #line default #line hidden EndContext(); BeginContext(2586, 64, true); WriteLiteral("</td>\r\n <td><strong>Valor do frete:</strong> "); EndContext(); BeginContext(2651, 74, false); #line 57 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Mascara.ConverterPagarMeIntToDecimal(transacao.Shipping.Fee).ToString("C")); #line default #line hidden EndContext(); BeginContext(2725, 65, true); WriteLiteral("</td>\r\n <td><strong>Rastreamento: </strong> - "); EndContext(); BeginContext(2791, 26, false); #line 58 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.FreteCodRastreamento); #line default #line hidden EndContext(); BeginContext(2817, 339, true); WriteLiteral(@"</td> </tr> </table> <h3>Lista de produtos</h3> <table class=""table table-bordered""> <tr> <th>Quantidade</th> <th>Nome</th> <th>Valor</th> <th>TOTAL</th> </tr> "); EndContext(); #line 71 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" foreach (var produto in produtos) { #line default #line hidden BeginContext(3227, 54, true); WriteLiteral(" <tr>\r\n <td>"); EndContext(); BeginContext(3282, 23, false); #line 74 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(produto.UnidadesPedidas); #line default #line hidden EndContext(); BeginContext(3305, 35, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(3341, 12, false); #line 75 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(produto.Nome); #line default #line hidden EndContext(); BeginContext(3353, 35, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(3389, 27, false); #line 76 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(produto.Valor.ToString("C")); #line default #line hidden EndContext(); BeginContext(3416, 35, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(3453, 55, false); #line 77 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write((produto.Valor * produto.UnidadesPedidas).ToString("C")); #line default #line hidden EndContext(); BeginContext(3509, 34, true); WriteLiteral("</td>\r\n </tr>\r\n"); EndContext(); #line 79 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" } #line default #line hidden BeginContext(3562, 113, true); WriteLiteral("\r\n <tr>\r\n <td colspan=\"3\"><strong>FRETE</strong></td>\r\n <td>"); EndContext(); BeginContext(3676, 74, false); #line 83 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Mascara.ConverterPagarMeIntToDecimal(transacao.Shipping.Fee).ToString("C")); #line default #line hidden EndContext(); BeginContext(3750, 141, true); WriteLiteral("</td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\"><strong>TOTAL</strong></td>\r\n <td>"); EndContext(); BeginContext(3892, 30, false); #line 87 "C:\Users\Lucas Lima\Desktop\LojaVirtualNorton\32_Fim\LojaVirtual\Areas\Cliente\Views\Pedido\Visualizar.cshtml" Write(Model.ValorTotal.ToString("C")); #line default #line hidden EndContext(); BeginContext(3922, 219, true); WriteLiteral("</td>\r\n </tr>\r\n </table>\r\n\r\n <br />\r\n <br />\r\n <button class=\"btn btn-outline-primary btn-lg btn-imprimir\">Imprimir</button>\r\n </div>\r\n </div>\r\n</div>"); EndContext(); }