Pokaż
Ignoruj:
Data:
2009-10-15 15:45:07 (17 years ago)
Autor:
marek
Opis:

re #184 - merged with latest trunk

Lokalizacja:
branches/Abonament
Pliki:
4 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • branches/Abonament

    • Property svn:mergeinfo
      •  

        old new  
        22/branches/ReklamaReorganizacja:568-731 
        33/tags/BazaReklam_1.1.28:831 
        4 /trunk:708-758,760-838 
         4/trunk:708-758,760-853 
  • branches/Abonament/Wierszowki/Wierszowki.Web/Views/Report/All.aspx

    r839 r854  
    1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Wierszowki.Core.Linq.MagazineItem>>" %> 
     1<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Wierszowki.Models.AllViewData>" %> 
    22 
    33<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 
    4         Wierszówki do wyceny 
     4        Wierszówki 
    55</asp:Content> 
    66 
    77<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 
    8     <h2>Wierszówki do wyceny</h2> 
     8    <%  if (ViewData.Model.naglowek != null){  %> 
     9            <h2><%= ViewData.Model.naglowek %></h2> 
     10    <%  } %>         
    911    <table> 
    1012        <tr> 
     
    2224            <th>Ostatnia aktualizacja</th> 
    2325        </tr> 
    24  
    25     <% foreach (var item in Model) { %> 
    2626     
     27    <% int number = 0; 
     28        foreach (var item in ViewData.Model.magazine) { 
     29            number += 1;          
     30    %>     
    2731        <tr> 
    2832            <td> 
    29                 <%= Html.ActionLink("Edycja", "Edit", "MagazineItem", new { id=item.Id }, null) %> 
     33                                   <% 
     34                     if (ViewData.Model.info.powrot == "1") 
     35                     { 
     36                    %> 
     37                        <%= Html.ActionLink("Edycja", "Edit", "MagazineItem", new { id = item.Id, powrot = "1", month = ViewData.Model.info.month, year = ViewData.Model.info.year, user_id = ViewData.Model.info.user_id }, null)%> 
     38                    <% 
     39                     } 
     40                     else if (ViewData.Model.info.powrot == "2") 
     41                     { 
     42                    %> 
     43                        <%= Html.ActionLink("Edycja", "Edit", "MagazineItem", new { id = item.Id, powrot = "2", month = ViewData.Model.info.month, year = ViewData.Model.info.year, user_id = ViewData.Model.info.user_id }, null)%> 
     44                    <% 
     45                     } 
     46                    %> 
    3047            </td> 
    3148            <td> 
    32                 <%= Html.ActionLink("Usuñ", "Delete", "MagazineItem", new { id=item.Id }, null) %> 
     49                <% 
     50                if (ViewData.Model.info.powrot == "1") 
     51                { 
     52                %> 
     53                    <%= Html.ActionLink("Usuñ", "Delete", "MagazineItem", new { id = item.Id, powrot="1", month = ViewData.Model.info.month, year = ViewData.Model.info.year, user_id = ViewData.Model.info.user_id }, null)%>  
     54                <% 
     55                } 
     56                else if (ViewData.Model.info.powrot == "2") 
     57                { 
     58                %> 
     59                    <%= Html.ActionLink("Usuñ", "Delete", "MagazineItem", new { id = item.Id, powrot="2", month = ViewData.Model.info.month, year = ViewData.Model.info.year, user_id = ViewData.Model.info.user_id }, null)%> 
     60                <% 
     61                } 
     62                %>                 
    3363            </td> 
    3464            <td> 
    3565                <%= Html.Encode(item.Date.ToString("yyyy-MM")) %> 
    3666            </td> 
    37             <td> 
     67            <td width="85px"> 
    3868                <%= Html.Encode(item.Author.FullName) %> 
    3969            </td> 
    40             <td> 
     70            <td width="62px"> 
    4171                <%= Html.Encode(item.Issue.Identifier)%> 
    4272            </td> 
    43             <td> 
     73            <td width="48px"> 
    4474                <%= Html.Encode(item.ItemType.Name) %> 
    4575            </td> 
    46             <td> 
     76            <td width="150px"> 
    4777                <%= Html.Encode(item.Caption) %> 
    4878            </td> 
    49             <td> 
     79            <td width="140px">  
    5080                <%= Html.Encode(item.Description) %> 
    5181            </td> 
     
    5989                <%= Html.Encode(item.CreatedByUser.Login) %> 
    6090            </td> 
    61             <td> 
     91            <td width="140px"> 
    6292                <%= Html.Encode(item.UpdatedOn) %> 
    6393            </td> 
     
    6898    </table> 
    6999    <p> 
    70         <%= Html.ActionLink("Powrót", "Index", "Report") %> 
     100        <% 
     101            if (ViewData.Model.info.powrot == "1") 
     102            { 
     103        %> 
     104            <%= Html.ActionLink("Powrót", "Index", "Home")%> | 
     105        <% 
     106            } 
     107            else 
     108            { 
     109        %> 
     110            <%= Html.ActionLink("Powrót", "Index", "Report")%> | 
     111        <% 
     112            }  
     113        %>     
     114        Liczba wierszówek: <%=number%> 
    71115    </p> 
    72116 
  • branches/Abonament/Wierszowki/Wierszowki.Web/Views/Report/Authors.aspx

    r752 r854  
    2626        <tr> 
    2727            <td> 
    28                 <%= Html.Encode(item.FirstName + " " + item.LastName)%> 
     28                <%= Html.Encode(item.FirstName + " " + item.LastName)%>                 
    2929            </td> 
    3030            <td> 
     
    3535            </td> 
    3636            <td> 
    37                 <%= Html.Encode(String.Format("{0:F}", item.Total)) %> 
     37                <%= Html.Encode(String.Format("{0:F}", item.Total))%> 
    3838            </td> 
    3939        </tr> 
  • branches/Abonament/Wierszowki/Wierszowki.Web/Views/Report/Index.aspx

    r839 r854  
    99    <h2>Raporty</h2> 
    1010    <h3>Proszê wybraæ raport:</h3> 
    11 <table class="reportTable"> 
     11<table class="reportTable" cellpadding=4 cellspacing=4> 
    1212    <tr> 
    1313        <td style="text-align:left; vertical-align:top;"> 
     
    176176    </tr> 
    177177</table> 
     178<%= Html.ActionLink("Strona g³ówna", "Index", "Home")%> 
    178179</asp:Content>