@model EMIS.ViewModel.TeachingMaterial.TeachingMaterialPoolView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var textAreaHtmlAttributes = new Dictionary { { "style", "width:500px;" } }; if (true) { textAreaHtmlAttributes.Add("readonly", "readonly"); } ComboGridOptions Psop = new ComboGridOptions { TextField = "UnitName", ValueField = "PublishID", ID = "PublishDropdown", Name = "PublishDropdown", IsEnabled = false, OnSelect = "QueryPublishDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="UnitName", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Publisher/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions Csop = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", ID = "CourseDropdown", Name = "CourseDropdown", IsEnabled = false, OnSelect = "QueryCourseDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { Url = "/TeachingMateriaInventory/Edit", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) { @Html.HiddenFor(x => x.TeachingMaterialPoolID)
@*
教材基本信息
*@
@Html.ContextMenuBar("Edit")
@Html.LabelFor(x => x.TeachingMaterialCode): @Html.DisplayFor(x => x.TeachingMaterialCode, new { @readonly = "readonly" }) @Html.LabelFor(x => x.TeachingMaterialName): @Html.DisplayFor(x => x.TeachingMaterialName, new { @readonly = "readonly" })
@Html.LabelFor(x => x.TeachingMaterialShorName): @Html.DisplayFor(x => x.TeachingMaterialShorName, new { @readonly = "readonly" }) @Html.LabelFor(x => x.ISBN): @Html.DisplayFor(x => x.ISBN, new { @readonly = "readonly" })
@Html.LabelFor(x => x.TeachingMaterialTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_TeachingMaterialType, x => x.TeachingMaterialTypeID, new DropdownListOptions { IsEnabled = false }) @Html.LabelFor(x => x.PublishName): @Html.ComboGridFor(x => x.PublishID, Psop)
@Html.LabelFor(x => x.PublishTime): @Html.TextBoxFor(x => x.PublishTime) @Html.LabelFor(x => x.WnningLevel): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_WnningLevel, x => x.WnningLevel, new DropdownListOptions { IsEnabled = false })
@Html.LabelFor(x => x.Author): @Html.DisplayFor(x => x.Author, new { @readonly = "readonly" }) @Html.LabelFor(x => x.Price): @Html.DisplayFor(x => x.Price, new { @readonly = "readonly" })
@Html.LabelFor(x => x.MinInventory): @Html.TextBoxFor(x => x.MinInventory)    
@Html.LabelFor(x => x.CoursematerialName): @Html.DataGrid(new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=36, Width=0.3 }, new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类码", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.08 } }, IsPostBack = true, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingMaterialPool/GetTeachingMaterialPoolCoursematerialList?teachingMaterialPoolID=" + Model.TeachingMaterialPoolID), ID = "dgCoursematerialList", IsPagination = false, IsShowRowNumbers = true, IsSingleSelect = false })
@Html.LabelFor(x => x.Desc): @Html.DisplayFor(x => x.Desc, new { @readonly = "readonly" })
}