DetailList.cshtml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. string teachersOrderID = ViewData["TeachersOrderID"].ToString();
  6. }
  7. @section scripts{
  8. <script src="../../Scripts/Business/TeachingMaterial/TeachersOrder.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. <div class="p_title">
  12. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  13. 教师征订明细列表</div>
  14. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("DetailList")</div>
  15. </div>
  16. <div class="search_list">
  17. @Html.Hidden("hid_ApprovalStatusName")
  18. @Html.DataGrid(new DataGridOptions
  19. {
  20. Columns = new List<DataGridColumn>()
  21. {
  22. new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachersOrderID" },
  23. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center },
  24. new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center},
  25. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center },
  26. new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center },
  27. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center },
  28. //new BoundFieldColumn { FieldName="CoursematerialLevelName", HeaderText="课程级别", Align=AlignStyle.Center },
  29. //new BoundFieldColumn { FieldName="CoursematerialTypeName", HeaderText="课程科类", Align=AlignStyle.Center },
  30. new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center },
  31. new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间" },
  32. new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center },
  33. new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center },
  34. new BoundFieldColumn { FieldName="OrderQty", HeaderText="征订数量", Align=AlignStyle.Center },
  35. new BoundFieldColumn { FieldName="OrderUserName", HeaderText="征订人", Align=AlignStyle.Center },
  36. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  37. new BoundFieldColumn { FieldName="OrderDate", HeaderText="征订日期", Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay },
  38. new BoundFieldColumn { FieldName="OrderDesc", HeaderText="征订说明", Align=AlignStyle.Center },
  39. //new BoundFieldColumn { FieldName="ApprovalStatus", HeaderText="审批状态", Align=AlignStyle.Center, IsHidden = true },
  40. new BoundFieldColumn { FieldName="ApproveStatusName", HeaderText="审核状态", Align=AlignStyle.Center}
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/TeachersOrder/DetailList?teachersOrderID=" + Request.Params["TeachersOrderID"]),
  44. ID = "dgTeachersOrderList",
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false
  48. })
  49. </div>
  50. </div>