@model EMIS.ViewModel.DQPSystem.SOCView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @using EMIS.ViewModel; @{ ViewBag.Title = "Edit"; var socIDList = ViewBag.SOCIDList; 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("Setting")
@Html.Hidden("hid_ActionsType") @Html.HiddenFor(x => x.SOCID) @Html.HiddenFor(x => x.EducationMissionID) @Html.HiddenFor(x => x.CoursematerialID) @Html.HiddenFor(x => x.DepartmentID) @Html.HiddenFor(x => x.HandleModeID) @Html.HiddenFor(x => x.OptionalCourseTypeID) @Html.Hidden("socIDList") @* *@
@Html.LabelFor(x => x.SchoolyearCode): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), IsEnabled = false }) @Html.LabelFor(x => x.CourseCode): @Html.TextBoxFor(x => x.CourseCode, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.CourseName): @Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit) @Html.LabelFor(x => x.StudentCount): @Html.TextBoxFor(x => x.StudentCount, new TextBoxOptions { IsEnabled = false })
@Html.Label("SOC设置"): @Html.ContextMenuBar("Edit-SOCDetailGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCDetailID" }, new BoundFieldColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="Description", HeaderText="成果描述", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="StartTimeStr", HeaderText="开始上传时间", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="EndTimeStr", HeaderText="截止上传时间", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="SOCDetailAttachment", HeaderText="附件说明", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="IsGroupStr", HeaderText="是否分组", Align=AlignStyle.Center, Width=0.04 }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SOC/SOCDetail?SOCID=" + Model.SOCID), ID = "dgSOCDetailList", IsPagination = true, IsPostBack = true, IsShowRowNumbers = true, IsSingleSelect = false, })
}