@model EMIS.ViewModel.TeachingMaterial.TeachingMaterialPoolView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions Psop = new ComboGridOptions { TextField = "UnitName", ValueField = "PublishID", ID = "PublishDropdown", Name = "PublishDropdown", OnSelect = "QueryPublishDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="UnitCode", HeaderText="单位编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UnitName", HeaderText="出版单位", 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", OnSelect = "QueryCourseDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类码", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingMaterialPool/CoursematerialList?isEnable=1"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { Url = "/TeachingMaterialPool/Edit", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) { @Html.HiddenFor(x => x.TeachingMaterialPoolID)
@*
教材基本信息
*@ @if (Request["isView"] != "1") {
@Html.ContextMenuBar("Edit")
}
@**@
@Html.LabelFor(x => x.TeachingMaterialCode): @Html.TextBoxFor(x => x.TeachingMaterialCode, new TextBoxOptions() { }) @Html.LabelFor(x => x.TeachingMaterialName): @Html.TextBoxFor(x => x.TeachingMaterialName, new TextBoxOptions() { Title = Model.TeachingMaterialName, OnChange = "Title" }, new Dictionary { { "OnChange", "NameTitle()" } })
@Html.LabelFor(x => x.TeachingMaterialShorName): @Html.TextBoxFor(x => x.TeachingMaterialShorName, new TextBoxOptions() { Title = Model.TeachingMaterialShorName }, new Dictionary { { "OnChange", "ShortNameTitle()" } }) @Html.LabelFor(x => x.TeachingMaterialTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_TeachingMaterialType, x => x.TeachingMaterialTypeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, Name = "TeachingMaterialTypeID", ID = "TeachingMaterialTypeID" })
@Html.LabelFor(x => x.ISBN): @Html.TextBoxFor(x => x.ISBNPre1, new TextBoxOptions { }, new Dictionary { { "style", "width: 28px" } }) -@Html.TextBoxFor(x => x.ISBNPre2, new TextBoxOptions { }, new Dictionary { { "style", "width: 16px" } }) -@Html.TextBoxFor(x => x.ISBNPre3, new TextBoxOptions { }, new Dictionary { { "style", "width: 45px" } }) -@Html.TextBoxFor(x => x.ISBNPre4, new TextBoxOptions { }, new Dictionary { { "style", "width: 45px" } }) -@Html.TextBoxFor(x => x.ISBNPre5, new TextBoxOptions { }, new Dictionary { { "style", "width: 16px" } }) *
注:共13位ISBN码,国家编号-出版社国代号-出版社代号-出版序号-校验位
@Html.LabelFor(x => x.PublishName): @Html.ComboGridFor(x => x.PublishID, Psop) @Html.LabelFor(x => x.PublishTime): @Html.TextBoxFor(x => x.PublishTime) *
例如:2016年11月1版6次
@Html.LabelFor(x => x.WnningLevel): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_WnningLevel, x => x.WnningLevel, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, Name = "WnningLevel", ID = "WnningLevel" }) @Html.LabelFor(x => x.Author): @Html.TextBoxFor(x => x.Author)
@Html.LabelFor(x => x.Price): @Html.TextBoxFor(x => x.Price) @Html.LabelFor(x => x.IsLate): @Html.CheckBoxFor(x => x.IsLate)
@Html.LabelFor(x => x.CoursematerialName): @Html.ContextMenuBar("Edit-CoursematerialGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursematerialID" }, new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center , Handle="edit", Width=0.06 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 }, //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.03 } }, IsPostBack = true, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingMaterialPool/GetTeachingMaterialPoolCoursematerialList?teachingMaterialPoolID=" + Request["teachingMaterialPoolID"]), ID = "dgCoursematerialList", IsPagination = false, IsShowRowNumbers = true, IsSingleSelect = false })
@Html.LabelFor(x => x.Desc): @Html.TextAreaFor(x => x.Desc, new Dictionary { { "style", "width:98%;" } })
}