@model PagedList.IPagedList @using PagedList.Mvc @using HSS_DB_Settings; @using HorvathSoftwareSolutions.Controllers; @*@*@ @{ ViewBag.Title = "tblPRESSInventory"; } @section AdditionalMeta { }

Buy

Note to make a purchase on this page you must first download the application setup file for which you want to purchase an activation key.

Download now »



@Html.Label("SearchString", "Filter:", new { @class = " col-md-2 control-label", @style = "top: -3px; width: 140; text-align: right;" }) @Html.AntiForgeryToken()
@Html.TextBox("SearchString", @ViewBag.CurrentFilter as string, new { @style = "width: 284px; vertical-align: inherit;", @placeholder = "File Name" }) @*@*@
@Html.Label("customerID", "Customer Info:", new { @class = "col-md-2 control-label", @style = "top: -3px; width: 140; text-align: right;" })
@{ string optionalIndicator = Request.Cookies["userInfo"] != null ? "(optional)" : "(required)"; string placeholderCustID = "Customer ID " + optionalIndicator; string placeholderEmail = "Email Address (required)"; } @Html.TextBox("customerID", @ViewBag.CustomerID as string, new { @style = "width: 284px; vertical-align: inherit;", @placeholder = @placeholderCustID, @onchange = "submitSearch();" }) @*@*@ @Html.TextBox("currentEmail", @ViewBag.CurrentEmail as string, new { @style = "width: 284px; vertical-align: inherit;", @placeholder = placeholderEmail, @onchange = "submitSearch();" }) @*@*@ @Html.TextBox("productID", @ViewBag.ProductID as int?, new { @style = "display: none;", @placeholder = "Product ID", @onchange = "submitSearch();" })
@foreach (var item in Model) { @: @: }
Selected File Name Price
@Html.CheckBoxFor(modelItem => item.Selected, new { @disabled = "disabled" }) Select @Html.DisplayFor(modelItem => item.FileName) @{ var variableWidth = DBAppSettings.GetSetting("buyPageImageWidth");} Image File or Icon for the HSS Application: @item.FileName @if (!item.SalePrice.HasValue && !item.AlreadyPaid) { @Html.Hidden("PriceOfProduct" + item.ID.ToString(), (double)item.Price) } else if (item.AlreadyPaid) { @Html.Hidden("PriceOfProduct" + item.ID.ToString(), (double)0.0) } else if (item.SalePrice.HasValue) { @Html.Hidden("PriceOfProduct" + item.ID.ToString(), (double)item.SalePrice) } @if (item.SalePrice.HasValue || item.AlreadyPaid) { @: } @{ string formattedPrice = item.Price.Format(); } @Html.DisplayFor(modelItem => formattedPrice) @if (item.SalePrice.HasValue || item.AlreadyPaid) { @: } @if (item.SalePrice.HasValue && item.SalePrice != 0.0M && !item.AlreadyPaid) { @: string formattedPrice1 = ((decimal)item.SalePrice).Format(); @Html.DisplayFor(modelItem => formattedPrice1) } else if (item.SalePrice.HasValue || item.AlreadyPaid) { @: string formattedPrice2 = "free"; @Html.DisplayFor(modelItem => formattedPrice2) }

Page @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) of @Model.PageCount @*@Html.PagedListPager(Model, page => Url.Action("Buy", new { page, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter, customerID = ViewBag.CustomerID, currentEmail = ViewBag.CurrentEmail }))*@ @Html.PagedListPager(Model, page => Url.Action("Buy", new { page }), new PagedListRenderOptions { FunctionToTransformEachPageLink = (liTag, aTag) => { aTag.Attributes.Remove("href"); aTag.Attributes.Add("href", "javascript:void(0);"); aTag.Attributes.Add("onclick","updatePage('" + aTag.InnerHtml + "'," + Model.PageCount + ");"); liTag.InnerHtml = aTag.ToString(); return liTag; } })

@Html.Raw(TempData["msg"])

Home