| [842] | 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Wierszowki.Models.ConfirmViewData>" %>
|
|---|
| 2 | <%@ Import Namespace ="Wierszowki.Models" %>
|
|---|
| [752] | 3 | <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|---|
| 4 | Potwierdzenie dodania wierszówki
|
|---|
| 5 | </asp:Content>
|
|---|
| 6 | <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|---|
| [823] | 7 | <%
|
|---|
| [842] | 8 | if (ViewData.Model.akcja == OperationType.Delete)
|
|---|
| [823] | 9 | {
|
|---|
| 10 | %>
|
|---|
| [842] | 11 | <h2>Pomylnie usuniêto wierszówkê!</h2>
|
|---|
| 12 | <% }
|
|---|
| 13 | else if (ViewData.Model.akcja == OperationType.WrongId)
|
|---|
| 14 | {
|
|---|
| [823] | 15 | %>
|
|---|
| [842] | 16 | <h2>Nie mo¿na wykonaæ operacji. B³êdny numer id!!! </h2>
|
|---|
| [823] | 17 | <% }
|
|---|
| [842] | 18 | else if (ViewData.Model.akcja == OperationType.NullId)
|
|---|
| [823] | 19 | {
|
|---|
| 20 | %>
|
|---|
| [842] | 21 | <h2>Nie mo¿na wykonaæ operacji, gdy¿ nie podano numeru id wierszówki!!! </h2>
|
|---|
| 22 | <% }
|
|---|
| 23 | else if (ViewData.Model.akcja == OperationType.Update)
|
|---|
| 24 | {
|
|---|
| 25 | %>
|
|---|
| 26 | <h2>Pomylnie zaktualizowano wierszówkê dla: <%= Html.Encode(ViewData.Model.Author.FirstName + " " + ViewData.Model.Author.LastName)%></h2>
|
|---|
| [823] | 27 | <%
|
|---|
| 28 | }
|
|---|
| [842] | 29 | else if (ViewData.Model.akcja == OperationType.Create)
|
|---|
| 30 | {
|
|---|
| [823] | 31 | %>
|
|---|
| [842] | 32 | <h2>Pomylnie dodano wierszówkê dla: <%= Html.Encode(ViewData.Model.Author.FirstName + " " + ViewData.Model.Author.LastName)%></h2>
|
|---|
| 33 | <%
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | %>
|
|---|
| 37 | <div>
|
|---|
| 38 | <%
|
|---|
| 39 | if (ViewData.Model.info != null)
|
|---|
| 40 | {
|
|---|
| 41 | if (ViewData.Model.info.powrot == "2" && (ViewData.Model.akcja == OperationType.Delete || ViewData.Model.akcja == OperationType.Update))
|
|---|
| 42 | {
|
|---|
| 43 | var sciezka = "All/" + ViewData.Model.info.year + "/" + ViewData.Model.info.month + "/" + ViewData.Model.info.user_id;
|
|---|
| 44 | %>
|
|---|
| 45 | <%=Html.ActionLink("Powrót", sciezka, "Report")%> |
|
|---|
| 46 | <%=Html.ActionLink("Raporty", "Index", "Report")%>
|
|---|
| 47 | <%
|
|---|
| 48 | }
|
|---|
| 49 | else if (ViewData.Model.info.powrot == "1" && (ViewData.Model.akcja == OperationType.Delete || ViewData.Model.akcja == OperationType.Update))
|
|---|
| 50 | {
|
|---|
| 51 | %>
|
|---|
| 52 | <%=Html.ActionLink("Powrót", "ToPrice", "Report")%> |
|
|---|
| 53 | <%=Html.ActionLink("Strona G³ówna", "Index", "Home")%>
|
|---|
| 54 | <%
|
|---|
| 55 | }
|
|---|
| 56 | }
|
|---|
| 57 | if (ViewData.Model.akcja == OperationType.Create)
|
|---|
| 58 | {
|
|---|
| 59 | %>
|
|---|
| 60 | <%=Html.ActionLink("Powrót", "Index", "Home")%> |
|
|---|
| 61 | <%=Html.ActionLink("Dodaj now¹ wierszówkê", "Create", "MagazineItem")%>
|
|---|
| 62 | <%
|
|---|
| 63 | }
|
|---|
| 64 | else if (ViewData.Model.akcja == OperationType.WrongId || ViewData.Model.akcja == OperationType.NullId)
|
|---|
| 65 | {
|
|---|
| 66 | %>
|
|---|
| 67 | <%=Html.ActionLink("Strona G³ówna", "Index", "Home")%>
|
|---|
| 68 | <%
|
|---|
| 69 | }
|
|---|
| 70 | %>
|
|---|
| [752] | 71 | </div>
|
|---|
| 72 | </asp:Content> |
|---|