Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 28.32 KB | None | 0 0
  1. @model WerehouseProject.ViewModels.EventRealDataViewModel
  2.  
  3. @{
  4.     ViewBag.Title = "EventAdultRealData";
  5.     Layout = "~/Views/Shared/_LayoutWindows.cshtml";
  6. }
  7.  
  8. <h2>Rozliczenie podstawowe</h2>
  9. <br />
  10. <h4>Dla: @Model.DataDetails.Person</h4>
  11. <h4>Telefon: @Model.DataDetails.Phone</h4>
  12. <h4>Email: @Model.DataDetails.Email</h4>
  13. <h4>@Model.DataDetails.GetTimes</h4>
  14. <hr />
  15. <table border="1">
  16.     <thead>
  17.         <tr>
  18.             <th width="60%">
  19.  
  20.             </th>
  21.             <th width="20%">
  22.                 Paintball
  23.             </th>
  24.             <th width="20%">
  25.                 Catering
  26.             </th>
  27.         </tr>
  28.     </thead>
  29.     <tbody>
  30.         <tr>
  31.             <td width="60%">
  32.                 Planowana liczba osób
  33.             </td>
  34.             <td width="20%">
  35.                 @Model.DataDetails.PlanPersonCount
  36.             </td>
  37.             <td width="20%">
  38.                 @Model.DataCatering.PlanPersonCount
  39.             </td>
  40.         </tr>
  41.     </tbody>
  42. </table>
  43. <hr />
  44.  
  45. @using (Html.BeginForm())
  46. {
  47.     @Html.AntiForgeryToken()
  48.     @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  49.  
  50.     <div class="form-horizontal">
  51.         <div name="EventDetails">
  52.             @Html.HiddenFor(model => model.DataDetails.EventID)
  53.             @Html.HiddenFor(model => model.DataDetails.Email)
  54.             @Html.HiddenFor(model => model.DataDetails.End)
  55.             @Html.HiddenFor(model => model.DataDetails.Person)
  56.             @Html.HiddenFor(model => model.DataDetails.PlanPersonCount)
  57.             @Html.HiddenFor(model => model.DataDetails.Phone)
  58.             @Html.HiddenFor(model => model.DataDetails.Start)
  59.  
  60.             <div class="form-group">
  61.                 @Html.Label("Rodzaj dokumentu", htmlAttributes: new { @class = "control-label col-md-6" })
  62.                 <div class="col-md-3">
  63.                     @Html.DropDownListFor(model => model.DataDetails.PaymentType, new SelectList(ViewBag.PaymentType, "Value", "Text"), htmlAttributes: new { @class = "form-control" })
  64.                     @Html.ValidationMessageFor(model => model.DataDetails.PaymentType, "", new { @class = "text-danger" })
  65.                 </div>
  66.             </div>
  67.             <hr />
  68.         </div>
  69.  
  70.         <div id="InvoiceDetails">
  71.             <div class="form-group">
  72.                 @Html.LabelFor(model => model.DataInvoice.InvoiceOption, htmlAttributes: new { @class = "control-label col-md-6" })
  73.                 <div class="col-md-6">
  74.                     @Html.DropDownListFor(model => model.DataInvoice.InvoiceOption, new SelectList(ViewBag.InvoiceOption, "Value", "Text"), htmlAttributes: new { @class = "form-control" })
  75.                     @Html.ValidationMessageFor(model => model.DataInvoice.InvoiceOption, "", new { @class = "text-danger" })
  76.                 </div>
  77.             </div>
  78.  
  79.             <div class="form-group">
  80.                 @Html.LabelFor(model => model.DataInvoice.NIP, htmlAttributes: new { @class = "control-label col-md-6" })
  81.                 <div class="col-md-3">
  82.                     @Html.EditorFor(model => model.DataInvoice.NIP, new { htmlAttributes = new { @class = "form-control" } })
  83.                     @Html.ValidationMessageFor(model => model.DataInvoice.NIP, "", new { @class = "text-danger" })
  84.                 </div>
  85.             </div>
  86.             <div class="col-md-3">
  87.                 <a class="btn btn-success" onclick="getCompanyData()"><span class="glyphicon glyphicon-search"></span> Sprawdź</a>
  88.             </div>
  89.  
  90.             <div class="form-group">
  91.                 @Html.LabelFor(model => model.DataInvoice.CompanyName, htmlAttributes: new { @class = "control-label col-md-6" })
  92.                 <div class="col-md-6">
  93.                     @Html.EditorFor(model => model.DataInvoice.CompanyName, new { htmlAttributes = new { @class = "form-control" } })
  94.                     @Html.ValidationMessageFor(model => model.DataInvoice.CompanyName, "", new { @class = "text-danger" })
  95.                 </div>
  96.             </div>
  97.  
  98.             <div class="form-group">
  99.                 @Html.LabelFor(model => model.DataInvoice.Street, htmlAttributes: new { @class = "control-label col-md-6" })
  100.                 <div class="col-md-6">
  101.                     @Html.EditorFor(model => model.DataInvoice.Street, new { htmlAttributes = new { @class = "form-control" } })
  102.                     @Html.ValidationMessageFor(model => model.DataInvoice.Street, "", new { @class = "text-danger" })
  103.                 </div>
  104.             </div>
  105.  
  106.             <div class="form-group">
  107.                 @Html.LabelFor(model => model.DataInvoice.City, htmlAttributes: new { @class = "control-label col-md-6" })
  108.                 <div class="col-md-6">
  109.                     @Html.EditorFor(model => model.DataInvoice.City, new { htmlAttributes = new { @class = "form-control" } })
  110.                     @Html.ValidationMessageFor(model => model.DataInvoice.City, "", new { @class = "text-danger" })
  111.                 </div>
  112.             </div>
  113.  
  114.             <div class="form-group">
  115.                 @Html.LabelFor(model => model.DataInvoice.ZipCode, htmlAttributes: new { @class = "control-label col-md-6" })
  116.                 <div class="col-md-6">
  117.                     @Html.EditorFor(model => model.DataInvoice.ZipCode, new { htmlAttributes = new { @class = "form-control" } })
  118.                     @Html.ValidationMessageFor(model => model.DataInvoice.ZipCode, "", new { @class = "text-danger" })
  119.                 </div>
  120.             </div>
  121.  
  122.             <div id="vatButtons">
  123.                 <div class="form-group">
  124.                     <div class="control-label col-md-6">
  125.                         @Html.Label("Stawka VAT")
  126.                     </div>
  127.                     @{
  128.                         foreach (var itm in ViewBag.VAT)
  129.                         {
  130.                             <div class="col-md-2">
  131.                                 @Html.RadioButtonFor(model => model.DataInvoice.VAT, (int)itm, new { id = itm, @readonly = "readonly" })
  132.                                 @Html.Label((int)itm + "%")
  133.                             </div>
  134.                         }
  135.                     }
  136.                 </div>
  137.             </div>
  138.  
  139.             <div class="form-group">
  140.                 @Html.LabelFor(model => model.DataInvoice.InvoiceName, htmlAttributes: new { @class = "control-label col-md-6" })
  141.                 <div class="col-md-6">
  142.                     @Html.DropDownList("InvoiceNameSelect", new SelectList(ViewBag.InvoiceNames, "Value", "Text", ViewBag.InvoiceNames.SelectedValue), htmlAttributes: new { @class = "form-control" })
  143.                 </div>
  144.             </div>
  145.  
  146.             @if (ViewBag.InvoiceNameReadonly == true)
  147.             {
  148.                 <div class="form-group" id="invoiceNameDiv" hidden="hidden">
  149.                     <div class="col-md-6">
  150.                         @Html.EditorFor(model => model.DataInvoice.InvoiceName, new { htmlAttributes = new { @class = "form-control", @readonly = "readony" } })
  151.                         @Html.ValidationMessageFor(model => model.DataInvoice.InvoiceName, "", new { @class = "text-danger" })
  152.                     </div>
  153.                 </div>
  154.             }
  155.             else
  156.             {
  157.                 <div class="form-group" id="invoiceNameDiv">
  158.                     <div class="col-md-6">
  159.                         @Html.EditorFor(model => model.DataInvoice.InvoiceName, new { htmlAttributes = new { @class = "form-control" } })
  160.                         @Html.ValidationMessageFor(model => model.DataInvoice.InvoiceName, "", new { @class = "text-danger" })
  161.                     </div>
  162.                 </div>
  163.             }
  164.  
  165.             <hr />
  166.         </div>
  167.  
  168.         <div name="PaintballBundles">
  169.             <h3>Pakiety paintballowe <input type="button" class="btn btn-success" value="+" name="addPaintballBundle" onclick="addBundlePrompt()" />  ||  Vouchery <input type="button" class="btn btn-success" value="+" name="addVoucher" onclick="addVoucherPrompt()" /></h3>
  170.             <hr />
  171.             <table>
  172.                 <thead>
  173.                     <tr>
  174.                         <td width="36%">
  175.                             Nazwa pakietu
  176.                         </td>
  177.                         <td width="10%">
  178.                             Ilość osób
  179.                         </td>
  180.                         <td width="13%" hidden="hidden" id="pbNetPrice">
  181.                             Cena netto
  182.                         </td>
  183.                         <td width="13%">
  184.                             Cena brutto
  185.                         </td>
  186.                         <td width="13%" hidden="hidden" id="pbNetSum">
  187.                             Suma netto
  188.                         </td>
  189.                         <td width="13%">
  190.                             Suma brutto
  191.                         </td>
  192.                         <td width="2%"></td>
  193.                     </tr>
  194.                 </thead>
  195.                 <tbody id="paintballBundlesBody">
  196.                     @for (int i = 0; i < Model.DataBundles.SingleBundles.Count; i++)
  197.                     {
  198.                         if (Model.DataBundles.SingleBundles[i].Quantity > 0)
  199.                         {
  200.                             <tr id="pb_@Model.DataBundles.SingleBundles[i].BundleID">
  201.                                 @Html.HiddenFor(model => model.DataBundles.SingleBundles[i].Active)
  202.                                 @Html.HiddenFor(model => model.DataBundles.SingleBundles[i].BundleID)
  203.                                 @Html.HiddenFor(model => model.DataBundles.SingleBundles[i].DefaultPrice)
  204.                                 @Html.HiddenFor(model => model.DataBundles.SingleBundles[i].MinimumPrice8)
  205.                                 @Html.HiddenFor(model => model.DataBundles.SingleBundles[i].MinimumPrice23)
  206.                                 <td width="36%">
  207.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].Name, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  208.                                 </td>
  209.                                 <td width="10%">
  210.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].Quantity, new { htmlAttributes = new { @class = "form-control", @onchange = "countSingleBundle(" + Model.DataBundles.SingleBundles[i].BundleID + ")" } })
  211.                                 </td>
  212.                                 <td width="13%" id="pbNetPrice_@i" hidden="hidden">
  213.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].NetPrice, new { htmlAttributes = new { @class = "form-control", @onchange = "countSingleBundle(" + Model.DataBundles.SingleBundles[i].BundleID + ")" } })
  214.                                 </td>
  215.                                 <td width="13%">
  216.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].GrossPrice, new { htmlAttributes = new { @class = "form-control", @onchange = "countSingleBundle(" + Model.DataBundles.SingleBundles[i].BundleID + ")" } })
  217.                                 </td>
  218.                                 <td width="13%" id="pbNetSum_@i" hidden="hidden">
  219.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].NetSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  220.                                 </td>
  221.                                 <td width="13%">
  222.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].GrossSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  223.                                 </td>
  224.                                 <td width="2%">
  225.                                     <input type="button" class="btn btn-danger" value="-" onclick="deleteBundle(@Model.DataBundles.SingleBundles[i].BundleID)" />
  226.                                 </td>
  227.                             </tr>
  228.                         }
  229.                         else
  230.                         {
  231.                             <tr id="pb_@Model.DataBundles.SingleBundles[i].BundleID" hidden="hidden">
  232.                                 @Html.HiddenFor(model => model.DataBundles.SingleBundles[i].Active)
  233.                                 @Html.HiddenFor(model => model.DataBundles.SingleBundles[i].BundleID)
  234.                                 @Html.HiddenFor(model => model.DataBundles.SingleBundles[i].DefaultPrice)
  235.                                 @Html.HiddenFor(model => model.DataBundles.SingleBundles[i].MinimumPrice8)
  236.                                 @Html.HiddenFor(model => model.DataBundles.SingleBundles[i].MinimumPrice23)
  237.                                 <td width="36%">
  238.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].Name, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  239.                                 </td>
  240.                                 <td width="10%">
  241.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].Quantity, new { htmlAttributes = new { @class = "form-control", @onchange = "countSingleBundle(" + Model.DataBundles.SingleBundles[i].BundleID + ")" } })
  242.                                 </td>
  243.                                 <td width="13%" id="pbNetPrice_@i" hidden="hidden">
  244.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].NetPrice, new { htmlAttributes = new { @class = "form-control", @onchange = "countSingleBundle(" + Model.DataBundles.SingleBundles[i].BundleID + ")" } })
  245.                                 </td>
  246.                                 <td width="13%">
  247.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].GrossPrice, new { htmlAttributes = new { @class = "form-control", @onchange = "countSingleBundle(" + Model.DataBundles.SingleBundles[i].BundleID + ")" } })
  248.                                 </td>
  249.                                 <td width="13%" id="pbNetSum_@i" hidden="hidden">
  250.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].NetSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  251.                                 </td>
  252.                                 <td width="13%">
  253.                                     @Html.EditorFor(model => model.DataBundles.SingleBundles[i].GrossSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  254.                                 </td>
  255.                                 <td width="2%">
  256.                                     <input type="button" class="btn btn-danger" value="-" onclick="deleteBundle(@Model.DataBundles.SingleBundles[i].BundleID)" />
  257.                                 </td>
  258.                             </tr>
  259.                         }
  260.                     }
  261.                 </tbody>
  262.             </table>
  263.             <br />
  264.             <table id="vouchersTable">
  265.                 <thead>
  266.                     <tr>
  267.                         <td width="40%">
  268.                             Voucher
  269.                         </td>
  270.                         <td width="40%">
  271.                             Pakiet
  272.                         </td>
  273.                         <td width="20%">
  274.                             Ilość osób
  275.                         </td>
  276.                     </tr>
  277.                 </thead>
  278.                 <tbody id="vouchersBody">
  279.                     @for (int i = 0; i < Model.DataVouchers.SingleVouchers.Count; i++)
  280.                     {
  281.                         <tr id="v_@i">
  282.                             <td width="40%">
  283.                                 @Html.EditorFor(model => model.DataVouchers.SingleVouchers[i].VoucherCode, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  284.                             </td>
  285.                             <td width="40%">
  286.                                 @Html.EditorFor(model => model.DataVouchers.SingleVouchers[i].BundleName, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  287.                             </td>
  288.                             <td width="20%">
  289.                                 @Html.EditorFor(model => model.DataVouchers.SingleVouchers[i].PersonCount, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  290.                             </td>
  291.                         </tr>
  292.                     }
  293.                 </tbody>
  294.             </table>
  295.             <br />
  296.             <div class="form-group">
  297.                 @Html.LabelFor(model => model.DataDetails.PersonCount, htmlAttributes: new { @class = "control-label col-md-6" })
  298.                 <div class="col-md-3">
  299.                     @Html.EditorFor(model => model.DataDetails.PersonCount, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  300.                     @Html.ValidationMessageFor(model => model.DataDetails.PersonCount, "", new { @class = "text-danger" })
  301.                 </div>
  302.             </div>
  303.             <div class="form-group" id="pbFullNetSum" hidden="hidden">
  304.                 @Html.Label("Suma netto", htmlAttributes: new { @class = "control-label col-md-6" })
  305.                 <div class="col-md-3">
  306.                     @Html.EditorFor(model => model.DataBundles.NetSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  307.                     @Html.ValidationMessageFor(model => model.DataBundles.NetSum, "", new { @class = "text-danger" })
  308.                 </div>
  309.             </div>
  310.             <div class="form-group" id="pbFullGrossSum">
  311.                 @Html.Label("Suma brutto", htmlAttributes: new { @class = "control-label col-md-6" })
  312.                 <div class="col-md-3">
  313.                     @Html.EditorFor(model => model.DataBundles.GrossSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  314.                     @Html.ValidationMessageFor(model => model.DataBundles.GrossSum, "", new { @class = "text-danger" })
  315.                 </div>
  316.             </div>
  317.             <hr />
  318.         </div>
  319.  
  320.         <div name="Catering">
  321.             <h3>Catering</h3>
  322.             <hr />
  323.             <table>
  324.                 <thead>
  325.                     <tr>
  326.                         <td width="38%"></td>
  327.                         <td width="10%">
  328.                             Ilość osób
  329.                         </td>
  330.                         <td width="13%" hidden="hidden" id="cateringNetPriceHeader">
  331.                             Cena netto
  332.                         </td>
  333.                         <td width="13%">
  334.                             Cena brutto
  335.                         </td>
  336.                         <td width="13%" hidden="hidden" id="cateringNetSumHeader">
  337.                             Suma netto
  338.                         </td>
  339.                         <td width="13%">
  340.                             Suma brutto
  341.                         </td>
  342.                     </tr>
  343.                 </thead>
  344.                 <tbody>
  345.                     <tr>
  346.                         <td width="36%">
  347.                             @Html.DropDownListFor(model => model.DataCatering.CateringID, new SelectList(ViewBag.PO_ID, "Value", "Text"), htmlAttributes: new { @class = "form-control" })
  348.                         </td>
  349.                         <td width="10%">
  350.                             @Html.EditorFor(model => model.DataCatering.Price.Quantity, new { htmlAttributes = new { @class = "form-control", @onchange = "countCateringSums()" } })
  351.                         </td>
  352.                         <td width="13%" hidden="hidden" id="cateringNetPrice">
  353.                             @Html.EditorFor(model => model.DataCatering.Price.NetPrice, new { htmlAttributes = new { @class = "form-control", @onchange = "countCateringNetSum()" } })
  354.                         </td>
  355.                         <td width="13%">
  356.                             @Html.EditorFor(model => model.DataCatering.Price.GrossPrice, new { htmlAttributes = new { @class = "form-control", @onchange = "countCateringGrossSum()" } })
  357.                         </td>
  358.                         <td width="13%" hidden="hidden" id="cateringNetSum">
  359.                             @Html.EditorFor(model => model.DataCatering.Price.NetSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  360.                         </td>
  361.                         <td width="13%">
  362.                             @Html.EditorFor(model => model.DataCatering.Price.GrossSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  363.                         </td>
  364.                     </tr>
  365.                 </tbody>
  366.             </table>
  367.             <hr />
  368.         </div>
  369.  
  370.         <div name="OtherOptions">
  371.             <h3>
  372.                 Usługi dodatkowe <input type="button" class="btn btn-success" value="+" name="addOtherOption" onclick="addOptionPrompt()" />
  373.             </h3>
  374.             <hr />
  375.             <table id="otherOptionsTable">
  376.                 <thead>
  377.                     <tr>
  378.                         <td width="38%">
  379.                             Nazwa usługi
  380.                         </td>
  381.                         <td width="10%">
  382.                             Ilość
  383.                         </td>
  384.                         <td width="13%" hidden="hidden" id="otherOptionsNetPrice">
  385.                             Cena netto
  386.                         </td>
  387.                         <td width="13%">
  388.                             Cena brutto
  389.                         </td>
  390.                         <td width="13%" hidden="hidden" id="otherOptionsNetSum">
  391.                             Suma netto
  392.                         </td>
  393.                         <td width="13%">
  394.                             Suma brutto
  395.                         </td>
  396.                     </tr>
  397.                 </thead>
  398.                 <tbody name="otherOptionsBody" id="otherOptionsBody">
  399.                     @for (int i = 0; i < Model.DataOtherOptions.Options.Count; i++)
  400.                     {
  401.                         <tr id="oo_@i">
  402.                             @Html.HiddenFor(model => model.DataOtherOptions.Options[i].ID)
  403.                             <td width="36%">
  404.                                 @Html.EditorFor(model => model.DataOtherOptions.Options[i].Name, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  405.                             </td>
  406.                             <td width="10%">
  407.                                 @Html.EditorFor(model => model.DataOtherOptions.Options[i].Quantity, new { htmlAttributes = new { @class = "form-control", @onchange = "countSingleOption(" + i + ")" } })
  408.                             </td>
  409.                             <td width="13%" hidden="hidden" id="otherOptionsNetPrice_@i">
  410.                                 @Html.EditorFor(model => model.DataOtherOptions.Options[i].NetPrice, new { htmlAttributes = new { @class = "form-control", @onchange = "countSingleOption(" + i + ")" } })
  411.                             </td>
  412.                             <td width="13%">
  413.                                 @Html.EditorFor(model => model.DataOtherOptions.Options[i].GrossPrice, new { htmlAttributes = new { @class = "form-control", @onchange = "countSingleOption(" + i + ")" } })
  414.                             </td>
  415.                             <td width="13%" hidden="hidden" id="otherOptionsNetSum_@i">
  416.                                 @Html.EditorFor(model => model.DataOtherOptions.Options[i].NetSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  417.                             </td>
  418.                             <td width="13%">
  419.                                 @Html.EditorFor(model => model.DataOtherOptions.Options[i].GrossSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  420.                             </td>
  421.                             <td width="2%">
  422.                                 <input type="button" class="btn btn-danger" value="-" onclick="deleteOption(@i)" />
  423.                             </td>
  424.                         </tr>
  425.                     }
  426.                 </tbody>
  427.             </table>
  428.             <div class="form-group" id="ooFullNetSum" hidden="hidden">
  429.                 @Html.Label("Suma netto", htmlAttributes: new { @class = "control-label col-md-6" })
  430.                 <div class="col-md-3">
  431.                     @Html.EditorFor(model => model.DataOtherOptions.NetSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  432.                     @Html.ValidationMessageFor(model => model.DataOtherOptions.NetSum, "", new { @class = "text-danger" })
  433.                 </div>
  434.             </div>
  435.             <div class="form-group" id="ooFullGrossSum">
  436.                 @Html.Label("Suma brutto", htmlAttributes: new { @class = "control-label col-md-6" })
  437.                 <div class="col-md-3">
  438.                     @Html.EditorFor(model => model.DataOtherOptions.GrossSum, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  439.                     @Html.ValidationMessageFor(model => model.DataOtherOptions.GrossSum, "", new { @class = "text-danger" })
  440.                 </div>
  441.             </div>
  442.             <hr />
  443.         </div>
  444.  
  445.         <div name="Summary">
  446.             <h3>Podsumowanie</h3>
  447.             <hr />
  448.             <table id="summaryTable">
  449.                 <thead>
  450.                     <tr>
  451.                         <td width="70%"></td>
  452.                         <td width="30%"></td>
  453.                     </tr>
  454.                 </thead>
  455.                 <tbody name="summaryTableBody" id="summaryTableBody">
  456.                     <tr id="fullNetSum">
  457.                         <td width="70%">
  458.                             Całkowita suma netto
  459.                         </td>
  460.                         <td width="30%">
  461.                             @Html.EditorFor(model => model.DataSummary.EventNetCost, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  462.                         </td>
  463.                     </tr>
  464.                     <tr id="NetTax">
  465.                         <td width="70%">
  466.                             VAT
  467.                         </td>
  468.                         <td width="30%">
  469.                             @Html.EditorFor(model => model.DataSummary.ValueAddedTax, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  470.                         </td>
  471.                     </tr>
  472.                     <tr>
  473.                         <td width="70%">
  474.                             Całkowita suma brutto
  475.                         </td>
  476.                         <td width="30%">
  477.                             @Html.EditorFor(model => model.DataSummary.EventGrossCost, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  478.                         </td>
  479.                     </tr>
  480.                     <tr>
  481.                         <td width="70%" style="color:red">
  482.                             Zadatek / Faktura zaliczkowa
  483.                         </td>
  484.                         <td width="30%">
  485.                             @Html.EditorFor(model => model.DataSummary.Installment, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  486.                         </td>
  487.                     </tr>
  488.                     <tr id="NetInvoice">
  489.                         <td width="70%">
  490.                             Faktura do wystawienia
  491.                         </td>
  492.                         <td width="30%">
  493.                             @Html.EditorFor(model => model.DataSummary.Invoice, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  494.                         </td>
  495.                     </tr>
  496.                     <tr>
  497.                         <td width="70%">
  498.                             Pracownik otrzymał
  499.                         </td>
  500.                         <td width="30%">
  501.                             @Html.EditorFor(model => model.DataSummary.WorkerMoney, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
  502.                         </td>
  503.                     </tr>
  504.                 </tbody>
  505.             </table>
  506.             <hr />
  507.         </div>
  508.         <br />
  509.         <div class="form-group">
  510.             <div class="col-md-offset-2 col-md-10">
  511.                 <input type="submit" value="Zapisz" class="btn btn-success" />
  512.                 <input type="button" value="Wyjdź" class="btn btn-danger" />
  513.             </div>
  514.         </div>
  515.     </div>
  516. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement