@model EMIS.ViewModel.ExaminationApply.ExaminationSubjectView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions ExaminationSubject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationSubjectID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试类别", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="科目名称", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationSubject/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
考试科目信息
@if (Request["isView"] != "1") {
@Html.ContextMenuBar("Edit")
}
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name) @Html.LabelFor(x => x.ExaminationTypeID): @Html.DropdownListFor((x => x.ExaminationTypeID), new DropdownListOptions { ID = "ExaminationTypeDropdown", Name = "ExaminationTypeDropdown", BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList"), OnSelect = "reload()", OnLoadSuccess="" })
@Html.LabelFor(x => x.ExaminationFormID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EX_ExaminationForm, x => x.ExaminationFormID) @Html.LabelFor(x => x.PreposeSubjectID): @Html.ComboGridFor(x => x.PreposeSubjectID, ExaminationSubject) @*@Html.DropdownListFor((x => x.PreposeSubjectID), new DropdownListOptions { ID = "PreposeSubjectDropdown", Name = "PreposeSubjectDropdown", BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropDownList?examinationSubjectID=" + @ViewBag.ID),OnLoadSuccess="" })*@
@Html.LabelFor(x => x.PreposeScoreLimit): @Html.TextBoxFor(x => x.PreposeScoreLimit, new TextBoxOptions() { }) @Html.LabelFor(x => x.Cost): @Html.TextBoxFor(x => x.Cost, new TextBoxOptions() { })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new { style = "width: 90%;" })
@Html.LabelFor(x => x.ExaminationDate): @Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.SchoolyearID): @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect="reload()", ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })
}
@section scripts{ }