@model EMIS.ViewModel.DQPSystem.SOCTemplateView @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 BoundFieldColumn { 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, } }; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", Name = "StandardDictionaryDropDown", ID = "StandardDictionaryDropDown", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopStandardCan = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", Name = "StandardDictionaryDropDown", ID = "StandardDictionaryDropDown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), 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.SOCTemplateID)
@Html.LabelFor(x => x.StandardName): @if (Model.SOCTemplateID == null || Model.SOCTemplateID == Guid.Empty) { @Html.ComboGridFor(x => x.StandardID, cgopStandardCan) } else { @Html.ComboGridFor(x => x.StandardID, cgopStandard) } @Html.LabelFor(x => x.FacultymajorName): @Html.ComboGridFor(x => x.FacultymajorID, cgopFacultymajor) @Html.LabelFor(x => x.CourseName): @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
@Html.LabelFor(x => x.CreditStr): @Html.TextBoxFor(x => x.Credit) @Html.LabelFor(x => x.SchoolyearNumName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID) @Html.LabelFor(x => x.SchoolcodeName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID)
@Html.LabelFor(x => x.DepartmentName): @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment) @Html.LabelFor(x => x.HandleModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, x => x.HandleModeID) @Html.LabelFor(x => x.IsEnableName): @Html.CheckBoxFor(x => x.IsEnable)
@Html.Label("SOC设置"): @Html.ContextMenuBar("Edit-SOCTemplateDetailGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCTemplateItemID" }, new TextBoxColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=80 }, new TextBoxColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=60 }, new TextBoxColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=60 }, new TextBoxColumn { FieldName="Description", IsMultiLine=true, HeaderText="成果描述", Align=AlignStyle.Center, Width=320 }, new BoundFieldColumn { FieldName="AttachmentName", HeaderText="附件说明", Align=AlignStyle.Center, Width=120 }, new CheckButtonColumn { FieldName="IsGroup", HeaderText="是否分组", Align=AlignStyle.Center, Width=60 }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SOCTemplate/TemplateDetail?templateID=" + Request.Params["templateID"]), ID = "dgSOCTemplateDetailList", IsPagination = true, IsPostBack = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 180 })
}