@model EMIS.ViewModel.DQPSystem.SOCDetailView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @using EMIS.ViewModel; @{ ViewBag.Title = "Edit"; ComboGridOptions cgopFacultymajor = new ComboGridOptions { TextField = "Name", ValueField = "FacultymajorID", Name = "FacultymajorComboGrid", ID = "FacultymajorComboGrid", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="院系专业编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Facultymajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsShowHeader = false } }; ComboGridOptions cgopCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", Name = "CoursematerialIDDropdownGridBo", ID = "CoursematerialIDDropdownGridBo", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //开课教研室 ComboGridOptions cgopDepartment = new ComboGridOptions { ID = "DepartmentDropdown", Name = "DepartmentDropdown", TextField = "Name", ValueField = "DepartmentID", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 } }, //IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Edit")
@Html.Hidden("hid_ActionsType") @Html.HiddenFor(x => x.SOCDetailID) @Html.HiddenFor(x => x.IsChangeAttachment)
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name) @Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.Description): @Html.TextAreaFor(x => x.Description, 3, 70, null)
@Html.LabelFor(x => x.StartTime): @Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.EndTime): @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.Date })
@Html.LabelFor(x => x.SOCDetailAttachment): @Html.TextBoxFor(x => x.SOCDetailAttachment, new TextBoxOptions { IsEnabled = false, ID = "SOCDetailAttachment", Name = "SOCDetailAttachment" }) @Html.LabelFor(x => x.IsGroup): @Html.CheckBoxFor(x => x.IsGroupin)
}