123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @using EMIS.ViewModel;
- @{
- ViewBag.Title = "EditTeachingMaterialPool";
- ComboGridOptions Psop = new ComboGridOptions
- {
- TextField = "UnitName",
- ValueField = "PublishID",
- ID = "PublishDropdown",
- Name = "PublishDropdown",
- OnSelect = "QueryPublishDropdownList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- }
- };
- string IsOrdered = ViewData["IsOrdered"].ToString();
- }
- @section scripts{
- <script src="../../Scripts/Business/TeachingMaterial/TeachingMaterialPool.js" type="text/javascript"></script>
- <style type="text/css">
- .p_SearchTitle {
- display: none;
- }
- </style>
- <script type="text/javascript">
- $(document).ready(function () {
-
- var JsonDate = top.$("#@(Request["WindowID"])").data("inputData");
- $("#hidStudentsOrderIDs").val(JsonDate.StudentsOrderIDs);
- $("#hidCoursematerialID").val(JsonDate.CoursematerialID);
- $("#hidSpecialtyPlanIDs").val(JsonDate.SpecialtyPlanID);
- reload();
- });
- //确定指定教材
- function Students_SelectTeachingMaterialPool() {
-
- var studentsOrderIDs = $("#hidStudentsOrderIDs").val();
- var specialtyPlanIDs = $("#hidSpecialtyPlanIDs").val();
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要指定的教材信息。");
- return;
- }
- //if (d.length > 1) {
- // $.messager.alert("系统提示", "只能指定一个教材。");
- // return;
- //}
- $.messager.confirm("系统提示", "是否确定当前年级专业修习的课程使用此本教材?", function (r) {
- if (r) {
- $.post('/StudentsOrder/EditTeachingMaterialPool', { studentsOrderID: studentsOrderIDs, teachingMaterialPoolID: d, specialtyPlanID: specialtyPlanIDs }, function (data) {
- if (data == "指定成功") {
- $.messager.alert("系统提示", "指定成功!", "info", function () {
- parent.$("#index_center_tabs").tabs('getSelected').find('iframe')[0].contentWindow.reload();
- top.$('#@(Request["WindowID"])').dialog('close');
- });
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- });
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Hidden("hidStudentsOrderIDs")
- @Html.Hidden("hidSpecialtyPlanIDs")
- <div class="p_title">
- @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 待指定教材列表</div>*@
- @if (IsOrdered != "true")//如果已经提交、那么删除、增加按钮不显示
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("EditTeachingMaterialPool")</div>
- }
- </div>
- <form id="formQuery" method="post">
- @* <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 查询条件</div>
- </div>*@
- @* @Html.PositionCondition()*@
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">出版单位:</li>
- <li class="sv">
- @Html.ComboGrid(Psop, new Dictionary<string, string> { { "data-condition", "dgTeachingMaterialPoolList" } })
- @Html.Hidden("hidCoursematerialID", "", new Dictionary<string, object> { { "data-condition", "dgTeachingMaterialPoolList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">ISBN:</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions { ID = "txtISBN", Name = "txtISBN" }, new Dictionary<string, string> { { "data-condition", "dgTeachingMaterialPoolList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">教材名称:</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions { ID = "TeachingMaterialName", Name = "TeachingMaterialName" }, new Dictionary<string, string> { { "data-condition", "dgTeachingMaterialPoolList" } })
- </li>
- <li class="sn" style="padding-left: 5px;"><a href="#this" class="easyui-linkbutton" onclick="reload()">查询</a></li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;">
- 仅显示课程对应教材:
- </li>
- <li class="sv">
- @Html.CheckBox("isCheck", true, new Dictionary<string, object> { { "onclick", "checkBox()" }, { "data-condition", "dgTeachingMaterialPoolList" } })
- </li>
- </ul>
- </div>
- </div>
- </form>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID" ,IsFrozenColumn=true},
- new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center }
- },
- IsFitColumns = false,
- IsCheckOnSelect = true,
- IsPostBack = true,
- DataSourceUrl = Url.Content("~/TeachingMaterialPool/GetTeachingMaterialPoolIsEffectiveList"),
- ID = "dgTeachingMaterialPoolList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsAutoLoad = false
- })
- </div>
- </div>
|