Detail.cshtml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions Psop = new ComboGridOptions
  6. {
  7. TextField = "UnitName",
  8. ValueField = "PublishID",
  9. ID = "PublishDropdown",
  10. Name = "PublishDropdown",
  11. OnSelect = "QueryPublishDropdownList",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="UnitName", Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Publisher/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. ComboGridOptions Csop = new ComboGridOptions
  26. {
  27. TextField = "CourseName",
  28. ValueField = "CoursematerialID",
  29. ID = "CourseDropdown",
  30. Name = "CourseDropdown",
  31. OnSelect = "QueryCourseDropdownList",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="CourseName", Align=AlignStyle.Center }
  37. },
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. }
  44. };
  45. var schoolYearIDs = ViewData["schoolYearID"] == null ? Request.Params["schoolYearID"] : ViewData["schoolYearID"].ToString();
  46. var teachingMaterialPoolIDs = ViewData["teachingMaterialPoolID"] == null ? Request.Params["teachingMaterialPoolID"] : ViewData["teachingMaterialPoolID"].ToString();
  47. }
  48. @section scripts{
  49. <script src="../../Scripts/Business/TeachingMaterial/TeachersConfirmOrder.js" type="text/javascript"></script>
  50. }
  51. <style type="text/css">
  52. .search_keyword
  53. {
  54. display: none; /*隐藏查询框*/
  55. }
  56. </style>
  57. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  58. @Html.Position()
  59. <div class="p_title">
  60. @* <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  61. 教师征订统计明细列表</div>*@
  62. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Detail")</div>
  63. </div>
  64. <form id="formQuery" method="post" action="@Url.Content("~/TeachersConfirmOrder/DetailExcel?schoolYearID=" + schoolYearIDs + "&teachingMaterialPoolID=" + teachingMaterialPoolIDs)">
  65. @Html.PositionCondition()
  66. @Html.Hidden("hid_ApprovalStatusName")
  67. @Html.Hidden("hid_teachingMaterialPoolID", teachingMaterialPoolIDs)
  68. @Html.Hidden("hid_schoolYearID", schoolYearIDs)
  69. <div class="search_list">
  70. @Html.DataGrid(new DataGridOptions
  71. {
  72. Columns = new List<DataGridColumn>()
  73. {
  74. new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachersOrderID" },
  75. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center },
  76. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  77. new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center},
  78. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center },
  79. new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center },
  80. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center },
  81. new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center},
  82. new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center },
  83. new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center },
  84. new BoundFieldColumn { FieldName="OrderQty", HeaderText="征订数量", Align=AlignStyle.Center },
  85. new BoundFieldColumn { FieldName="OrderUserName", HeaderText="征订人", Align=AlignStyle.Center },
  86. new BoundFieldColumn { FieldName="OrderDate", HeaderText="征订日期", Align=AlignStyle.Center,Formatter=Formatter.OnlyYearMonthDay},
  87. new BoundFieldColumn { FieldName="OrderDesc", HeaderText="征订说明", Align=AlignStyle.Center },
  88. new BoundFieldColumn { FieldName="Desc", HeaderText="备注", Align=AlignStyle.Center,IsHidden=true}
  89. },
  90. IsCheckOnSelect = true,
  91. DataSourceUrl = Url.Content("~/TeachersConfirmOrder/Detail?schoolYearID=" + schoolYearIDs + "&teachingMaterialPoolID=" + teachingMaterialPoolIDs),
  92. ID = "dgTeachersConfirmOrderList",
  93. IsPagination = true,
  94. IsShowRowNumbers = true,
  95. IsSingleSelect = false
  96. })
  97. </div>
  98. </form>
  99. </div>