@model EMIS.ViewModel.ExaminationBatchView @using EMIS.Web.Controls; @using EMIS.Entities; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgopExamType = new ComboGridOptions { TextField = "Code", ValueField = "SchoolYearID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="学年学期", Align=AlignStyle.Center ,Width=0.2}, new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center ,Width=0.2}, new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center ,Width=0.2}, }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SchoolYear/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限 { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.ExaminationBatchID)
@Html.LabelFor(x => x.SchoolyearID): @Html.ComboGridFor(x => x.SchoolyearID, cgopExamType)
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = true }, new Dictionary { { "style", "width:90%;" } })
@Html.LabelFor(x => x.StartDate): @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.EndDate): @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions { TextBoxType = TextBoxType.Date })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 50px" } })
}