123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- @model EMIS.ViewModel.TeachingMaterial.TeachingMaterialPoolView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var textAreaHtmlAttributes = new Dictionary<string, object> { { "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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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{
- <script src="../../Scripts/Business/TeachingMaterial/TeachingMaterialPool.js" type="text/javascript"></script>
- <script type="text/javascript">
- //保存
- function TeachingMateriaInventory_Save() {
- $(document.forms[0]).submit();
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions { Url = "/TeachingMateriaInventory/Edit", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
- {
- @Html.HiddenFor(x => x.TeachingMaterialPoolID)
- <div class="p_title">
- @* <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 教材基本信息
- </div>*@
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- </div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0">
- <tr>
- <td>@Html.LabelFor(x => x.TeachingMaterialCode):
- </td>
- <td>@Html.DisplayFor(x => x.TeachingMaterialCode, new { @readonly = "readonly" })
- </td>
- <td>@Html.LabelFor(x => x.TeachingMaterialName):
- </td>
- <td>@Html.DisplayFor(x => x.TeachingMaterialName, new { @readonly = "readonly" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.TeachingMaterialShorName):
- </td>
- <td>@Html.DisplayFor(x => x.TeachingMaterialShorName, new { @readonly = "readonly" })
- </td>
- <td>@Html.LabelFor(x => x.ISBN):
- </td>
- <td>@Html.DisplayFor(x => x.ISBN, new { @readonly = "readonly" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.TeachingMaterialTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_TeachingMaterialType, x => x.TeachingMaterialTypeID, new DropdownListOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.PublishName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.PublishID, Psop)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.PublishTime):
- </td>
- <td>@Html.TextBoxFor(x => x.PublishTime)
- </td>
- <td>@Html.LabelFor(x => x.WnningLevel):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_WnningLevel, x => x.WnningLevel, new DropdownListOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Author):
- </td>
- <td>
- @Html.DisplayFor(x => x.Author, new { @readonly = "readonly" })
- </td>
- <td>@Html.LabelFor(x => x.Price):
- </td>
- <td>
- @Html.DisplayFor(x => x.Price, new { @readonly = "readonly" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.MinInventory):
- </td>
- <td>
- @Html.TextBoxFor(x => x.MinInventory)
- </td>
- <td>
- </td>
- <td>
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CoursematerialName):
- </td>
- <td colspan="3">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Desc):
- </td>
- <td colspan="3">@Html.DisplayFor(x => x.Desc, new { @readonly = "readonly" })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|