|
Wersja 752, 1.8 KB
(wprowadzona przez marek, 17 years temu)
|
|
wiersz
|
| Rev | Line | |
|---|
| [752] | 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Wierszowki.Core.Linq.Report>>" %>
|
|---|
| 2 |
|
|---|
| 3 | <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|---|
| 4 | Zestawienie wycen wszystkich dziennikarzy
|
|---|
| 5 | </asp:Content>
|
|---|
| 6 |
|
|---|
| 7 | <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|---|
| 8 | <h2>Zestawienie wycen wszystkich dziennikarzy</h2>
|
|---|
| 9 | <h3>Rok, miesi¹c: <%= Html.Encode(((DateTime)ViewData["ReportDate"]).ToString("yyyy-MM"))%></h3>
|
|---|
| 10 | <table>
|
|---|
| 11 | <tr>
|
|---|
| 12 | <th>
|
|---|
| 13 | Imiê i nazwisko
|
|---|
| 14 | </th>
|
|---|
| 15 | <th>
|
|---|
| 16 | Podstawa
|
|---|
| 17 | </th>
|
|---|
| 18 | <th>
|
|---|
| 19 | Dodatek
|
|---|
| 20 | </th>
|
|---|
| 21 | <th>
|
|---|
| 22 | Razem
|
|---|
| 23 | </th>
|
|---|
| 24 | </tr>
|
|---|
| 25 | <% foreach (var item in Model) { %>
|
|---|
| 26 | <tr>
|
|---|
| 27 | <td>
|
|---|
| 28 | <%= Html.Encode(item.FirstName + " " + item.LastName)%>
|
|---|
| 29 | </td>
|
|---|
| 30 | <td>
|
|---|
| 31 | <%= Html.Encode(String.Format("{0:F}", item.Price)) %>
|
|---|
| 32 | </td>
|
|---|
| 33 | <td>
|
|---|
| 34 | <%= Html.Encode(String.Format("{0:F}", item.Bonus)) %>
|
|---|
| 35 | </td>
|
|---|
| 36 | <td>
|
|---|
| 37 | <%= Html.Encode(String.Format("{0:F}", item.Total)) %>
|
|---|
| 38 | </td>
|
|---|
| 39 | </tr>
|
|---|
| 40 |
|
|---|
| 41 | <% } %>
|
|---|
| 42 | <tr>
|
|---|
| 43 | <td><strong>Suma</strong></td>
|
|---|
| 44 | <td><strong><%= Html.Encode(String.Format("{0:F}", Model.Sum(r=>r.Price))) %></strong></td>
|
|---|
| 45 | <td><strong><%= Html.Encode(String.Format("{0:F}", Model.Sum(r=>r.Bonus))) %></strong></td>
|
|---|
| 46 | <td><strong><%= Html.Encode(String.Format("{0:F}", Model.Sum(r=>r.Total))) %></strong></td>
|
|---|
| 47 | </tr>
|
|---|
| 48 | </table>
|
|---|
| 49 |
|
|---|
| 50 | <p>
|
|---|
| 51 | <%= Html.ActionLink("Powrót", "Index") %>
|
|---|
| 52 | </p>
|
|---|
| 53 | </asp:Content> |
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.