Error compiling template "/Designs/isabella/Paragraph/SalesInvoiceOverview.cshtml"
Line 54: Le nom de type ou d'espace de noms 'SalesInvoice' est introuvable (vous manque-t-il une directive using ou une référence d'assembly ?)
Line 54: Impossible de convertir implicitement le type 'System.Collections.Generic.IEnumerable' en 'System.Collections.Generic.IEnumerable'. Une conversion explicite existe (un cast est-il manquant ?)
Line 209: Le nom de type ou d'espace de noms 'SalesInvoice' est introuvable (vous manque-t-il une directive using ou une référence d'assembly ?)
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.42000
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10 11 namespace CompiledRazorTemplates.Dynamic {
12 using System;
13 using System.Collections.Generic;
14 using System.Linq;
15 16 #line 2 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
17 using Co3.Isabella.Data.DAL.Models.AX;
18 19 #line default
20 #line hidden
21 22 #line 12 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
23 using Co3.Espresso.Website.Services;
24 25 #line default
26 #line hidden
27 28 #line 13 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
29 using Co3.Espresso.Base.Extensions;
30 31 #line default
32 #line hidden
33 34 #line 14 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
35 using System.Web;
36 37 #line default
38 #line hidden
39 40 41 public class RazorEngine_f24bdb615cac4796ae8c7ee69da49562 : Dynamicweb.Rendering.RazorTemplateBase< Dynamicweb.Rendering.RazorTemplateModel< Dynamicweb.Rendering.Template > > {
42 43 #line hidden
44 45 public RazorEngine_f24bdb615cac4796ae8c7ee69da49562() {
46 }
47 48 public override void Execute() {
49 WriteLiteral("\n\n\n\n");
50 51 52 #line 7 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
53 54 IEnumerable<SalesInvoice> invoices = Co3.Isabella.Dw.Services.OrderService.Instance.GetSalesInvoicesByUser();
55 56 57 #line default
58 #line hidden
59 WriteLiteral("\n\n");
60 61 WriteLiteral("\n<div");
62 63 WriteLiteral(" class=\"card mx-auto w-100\"");
64 65 WriteLiteral(">\n <div");
66 67 WriteLiteral(" class=\"card-header\"");
68 69 WriteLiteral(">\n <h4");
70 71 WriteLiteral(" class=\"align-items-center card-title d-flex justify-content-between\"");
72 73 WriteLiteral(">\n <span");
74 75 WriteLiteral(" class=\"text-nowrap\"");
76 77 WriteLiteral(">\n <i");
78 79 WriteLiteral(" class=\"material-icons material-icons-large\"");
80 81 WriteLiteral(">view_list</i>\n <span>");
82 83 84 #line 21 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
85 Write(Translate( "CostumerCenter - My invoices - Heading", "My invoices" ));
86 87 88 #line default
89 #line hidden
90 WriteLiteral("</span>\n <span");
91 92 WriteLiteral(" class=\"font-weight-normal text-muted\"");
93 94 WriteLiteral("> (");
95 96 97 #line 22 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
98 Write(invoices.Count().ToString());
99100101 #line default
102 #line hidden
103 WriteLiteral(")</span>\n </span>\n </h4>\n </div>\n <div");
104105 WriteLiteral(" class=\"card-body\"");
106107 WriteLiteral(">\n");
108109110 #line 27 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
111112113 #line default
114 #line hidden
115116 #line 27 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
117 if (invoices != null && invoices.Any()){
118119120 #line default
121 #line hidden
122 WriteLiteral(" <div");
123124 WriteLiteral(" class=\"table-responsive\"");
125126 WriteLiteral(">\n <table");
127128 WriteLiteral(" class=\"table\"");
129130 WriteLiteral(">\n <thead");
131132 WriteLiteral(" class=\"thead-light\"");
133134 WriteLiteral(">\n <tr>\n <th");
135136 WriteLiteral(" scope=\"col\"");
137138 WriteLiteral(">");
139140141 #line 32 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
142 Write(Translate( "CostumerCenter - My invoices - ORDERACCOUNT", "ORDERACCOUNT" ));
143144145 #line default
146 #line hidden
147 WriteLiteral("</th>\n <th");
148149 WriteLiteral(" scope=\"col\"");
150151 WriteLiteral(">");
152153154 #line 33 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
155 Write(Translate( "CostumerCenter - My invoices - INVOICEID", "INVOICEID" ));
156157158 #line default
159 #line hidden
160 WriteLiteral("</th>\n <th");
161162 WriteLiteral(" scope=\"col\"");
163164 WriteLiteral(">");
165166167 #line 34 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
168 Write(Translate( "CostumerCenter - My invoices - INVOICEDATE", "INVOICEDATE" ));
169170171 #line default
172 #line hidden
173 WriteLiteral("</th>\n <th");
174175 WriteLiteral(" scope=\"col\"");
176177 WriteLiteral(">");
178179180 #line 35 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
181 Write(Translate( "CostumerCenter - My invoices INVOICEAMOUNT", "INVOICEAMOUNT" ));
182183184 #line default
185 #line hidden
186 WriteLiteral("</th>\n <th");
187188 WriteLiteral(" scope=\"col\"");
189190 WriteLiteral(">");
191192193 #line 36 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
194 Write(Translate( "CostumerCenter - My invoices CURRENCY", "CURRENCY" ));
195196197 #line default
198 #line hidden
199 WriteLiteral("</th>\n </tr>\n </thead>\n <tbody>\n");
200201202 #line 40 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
203204205 #line default
206 #line hidden
207208 #line 40 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
209 foreach (SalesInvoice invoice in invoices)
210 {
211212213 #line default
214 #line hidden
215 WriteLiteral(" <tr>\n <td>");
216217218 #line 43 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
219 Write(invoice.ORDERACCOUNT);
220221222 #line default
223 #line hidden
224 WriteLiteral("</td>\n <td>");
225226227 #line 44 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
228 Write(invoice.INVOICEID);
229230231 #line default
232 #line hidden
233 WriteLiteral("</td>\n <td>");
234235236 #line 45 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
237 Write(invoice.INVOICEDATE.ToShortEspressoFormat());
238239240 #line default
241 #line hidden
242 WriteLiteral("</td>\n <td>");
243244245 #line 46 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
246 Write(invoice.INVOICEAMOUNT.ToString("N"));
247248249 #line default
250 #line hidden
251 WriteLiteral("</td>\n <td>");
252253254 #line 47 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
255 Write(invoice.CURRENCY);
256257258 #line default
259 #line hidden
260 WriteLiteral("</td>\n </tr>\n");
261262263 #line 49 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
264 }
265266267 #line default
268 #line hidden
269 WriteLiteral(" </tbody>\n </table>\n </div>\n");
270271272 #line 53 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
273 }
274 else
275 {
276277278 #line default
279 #line hidden
280 WriteLiteral(" <p");
281282 WriteLiteral(" class=\"text-muted\"");
283284 WriteLiteral(">");
285286287 #line 56 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
288 Write(Translate( "CostumerCenter - My orders - No orders to show - Text", "[none]" ));
289290291 #line default
292 #line hidden
293 WriteLiteral("</p>\n");
294295296 #line 57 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\Paragraph\SalesInvoiceOverview.cshtml"
297 }
298299300 #line default
301 #line hidden
302 WriteLiteral(" </div>\n</div>\n");
303304 }
305 }
306 }
307
1 @inherits Co3.Espresso.Website.TemplateBases.Paragraphs.Module
2 @using Co3.Isabella.Data.DAL.Models.AX;
3 4 5 6 7 @{
8 IEnumerable<SalesInvoice> invoices = Co3.Isabella.Dw.Services.OrderService.Instance.GetSalesInvoicesByUser();
9 }
10 11 @inherits Dynamicweb.Rendering.RazorTemplateBase< Dynamicweb.Rendering.RazorTemplateModel< Dynamicweb.Rendering.Template > >
12 @using Co3.Espresso.Website.Services
13 @using Co3.Espresso.Base.Extensions
14 @using System.Web
15 16 <div class="card mx-auto w-100">
17 <div class="card-header">
18 <h4 class="align-items-center card-title d-flex justify-content-between">
19 <span class="text-nowrap">
20 <i class="material-icons material-icons-large">view_list</i>
21 <span>@Translate( "CostumerCenter - My invoices - Heading", "My invoices" )</span>
22 <span class="font-weight-normal text-muted"> (@invoices.Count().ToString())</span>
23 </span>
24 </h4>
25 </div>
26 <div class="card-body">
27 @if (invoices != null && invoices.Any()){
28 <div class="table-responsive">
29 <table class="table">
30 <thead class="thead-light">
31 <tr>
32 <th scope="col">@Translate( "CostumerCenter - My invoices - ORDERACCOUNT", "ORDERACCOUNT" )</th>
33 <th scope="col">@Translate( "CostumerCenter - My invoices - INVOICEID", "INVOICEID" )</th>
34 <th scope="col">@Translate( "CostumerCenter - My invoices - INVOICEDATE", "INVOICEDATE" )</th>
35 <th scope="col">@Translate( "CostumerCenter - My invoices INVOICEAMOUNT", "INVOICEAMOUNT" )</th>
36 <th scope="col">@Translate( "CostumerCenter - My invoices CURRENCY", "CURRENCY" )</th>
37 </tr>
38 </thead>
39 <tbody>
40 @foreach (SalesInvoice invoice in invoices)
41 {
42 <tr>
43 <td>@invoice.ORDERACCOUNT</td>
44 <td>@invoice.INVOICEID</td>
45 <td>@invoice.INVOICEDATE.ToShortEspressoFormat()</td>
46 <td>@invoice.INVOICEAMOUNT.ToString("N")</td>
47 <td>@invoice.CURRENCY</td>
48 </tr>
49 }
50 </tbody>
51 </table>
52 </div>
53 }
54 else
55 {
56 <p class="text-muted">@Translate( "CostumerCenter - My orders - No orders to show - Text", "[none]" )</p>
57 }
58 </div>
59 </div>
60