<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> <%@ Import Namespace ="Wierszowki.Models" %> Potwierdzenie dodania wierszówki <% if (ViewData.Model.akcja == OperationType.Delete) { %>

Pomyślnie usunięto wierszówkę!

<% } else if (ViewData.Model.akcja == OperationType.WrongId) { %>

Nie można wykonać operacji. Błędny numer id!!!

<% } else if (ViewData.Model.akcja == OperationType.NullId) { %>

Nie można wykonać operacji, gdyż nie podano numeru id wierszówki!!!

<% } else if (ViewData.Model.akcja == OperationType.Update) { %>

Pomyślnie zaktualizowano wierszówkę dla: <%= Html.Encode(ViewData.Model.Author.FirstName + " " + ViewData.Model.Author.LastName)%>

<% } else if (ViewData.Model.akcja == OperationType.Create) { %>

Pomyślnie dodano wierszówkę dla: <%= Html.Encode(ViewData.Model.Author.FirstName + " " + ViewData.Model.Author.LastName)%>

<% } %>
<% if (ViewData.Model.info != null) { if (ViewData.Model.info.powrot == "2" && (ViewData.Model.akcja == OperationType.Delete || ViewData.Model.akcja == OperationType.Update)) { var sciezka = "All/" + ViewData.Model.info.year + "/" + ViewData.Model.info.month + "/" + ViewData.Model.info.user_id; %> <%=Html.ActionLink("Powrót", sciezka, "Report")%> | <%=Html.ActionLink("Raporty", "Index", "Report")%> <% } else if (ViewData.Model.info.powrot == "1" && (ViewData.Model.akcja == OperationType.Delete || ViewData.Model.akcja == OperationType.Update)) { %> <%=Html.ActionLink("Powrót", "ToPrice", "Report")%> | <%=Html.ActionLink("Strona Główna", "Index", "Home")%> <% } } if (ViewData.Model.akcja == OperationType.Create) { %> <%=Html.ActionLink("Powrót", "Index", "Home")%> | <%=Html.ActionLink("Dodaj nową wierszówkę", "Create", "MagazineItem")%> <% } else if (ViewData.Model.akcja == OperationType.WrongId || ViewData.Model.akcja == OperationType.NullId) { %> <%=Html.ActionLink("Strona Główna", "Index", "Home")%> <% } %>