資料建立表單

系統自動編號
@Html.HiddenFor(model => model.SituationID) @Html.Hidden("NGUID", ViewContext.RouteData.Values["NGUID"])
@Html.MyDropDownListSelect2For(model=>model.DataYear,ViewBag.YearsSelectList as IEnumerable, optionLabel:null,htmlAttributes:new{@class= "form-control" }) @Html.ValidationMessageFor(model => model.DataYear, "", new { @class = "error" })
@Html.MyDateTimePickerFor(model => model.ReportedTime) @Html.ValidationMessageFor(model => model.ReportedTime, "", new { @class = "error" })

系統自動計算
@Html.MyDateTimePickerFor(model => model.ApprovedTime) @Html.ValidationMessageFor(model => model.ApprovedTime, "", new { @class = "error" })
@Html.TextBoxFor(model => model.ApprovedNum, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.ApprovedNum)
Change Select file @Html.TextBoxFor(model => model.UploadFile, new { type = "file" }) Remove

上傳檔案限定為 @(string.Join(", ", appConfig.FileAllowExtension)).

@Html.ValidationMessageFor(model => model.UploadFile, "", new { @class = "error" })
@Html.TextBoxFor(model => model.Sort, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Sort)
@Html.MyRadioButtonListBooleanFor(model => model.Display) @Html.ValidationMessageFor(model => model.Display, "", new { @class = "error" })
@Html.Hidden("CreatorID", ViewContext.RouteData.Values["CreatorID"]) @Html.Hidden("UpdaterID", ViewContext.RouteData.Values["UpdaterID"])
@Html.ValidationSummary("", new { @class = "validation-message" })