@using Resources @{ ViewBag.Title = Resource.StaticLabelSimaproParameter; Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml"; var History = ViewBag.History as List; var counts = ViewBag.ParameterCounts as List; var relatedCount = ViewBag.relatedCount as List; }

@Resource.StaticLabelImport


@using (Html.BeginForm("Upload", "ParameterDatabase", FormMethod.Post, new { enctype = "multipart/form-data" })) {
} @if (!string.IsNullOrWhiteSpace(ViewBag.successMsg)) {
@ViewBag.successMsg
} @if (!string.IsNullOrWhiteSpace(ViewBag.errorMsg)) {
@ViewBag.errorMsg
}

@Resource.Log


@for (int i = 0; i < History.Count(); i++) { }
@Resource.ImportDateTime @Resource.VersionDecsription @Resource.StaticLabelGlobal_Description @Resource.NumberOfCoefficients @Resource.RAIntlTravelScalarSource @Resource.EnabledStatus
@History[i].CreatedDate.ToString("yyyy/MM/dd HH:mm:ss") @History[i].Version @History[i].Description @counts[i] @History[i].paraSource @History[i].IsActive @Html.ActionLink(History[i].IsActive ? Resource.DeActive : Resource.Active, "ToggleStatus", new { id = History[i].ID }, new { @class = "btn btn-xs btn-default" }) @if (History[i].IsActive) { @Html.ActionLink(Resource.StaticLabelGlobal_Delete, "DeleteVersion", new { id = History[i].ID }, new { @class = "btn btn-xs btn-default disabled", data = relatedCount[i], onclick = "deleteItem(this)" }) @Html.ActionLink(Resource.StaticLabelGlobal_Edit, "EditSimaproVersion", new { simaproVersionID = History[i].ID }, new { @class = "btn btn-xs btn-default disabled" }) } else { @Html.ActionLink(Resource.StaticLabelGlobal_Delete, "DeleteVersion", new { id = History[i].ID }, new { @class = "btn btn-xs btn-default", data = relatedCount[i], onclick = "deleteItem(this)" }) @Html.ActionLink(Resource.StaticLabelGlobal_Edit, "EditSimaproVersion", new { simaproVersionID = History[i].ID }, new { @class = "btn btn-xs btn-default" })}
@section PageScripts { }