List.cshtml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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="UnitCode", HeaderText="单位编号", Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="UnitName", HeaderText="出版单位", Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Publisher/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions Csop = new ComboGridOptions
  27. {
  28. TextField = "CourseName",
  29. ValueField = "CoursematerialID",
  30. ID = "CourseDropdown",
  31. Name = "CourseDropdown",
  32. OnSelect = "QueryCourseDropdownList",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. // new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. ComboGridOptions MaterialCode = new ComboGridOptions
  48. {
  49. TextField = "TeachingMaterialName",
  50. ValueField = "TeachingMaterialPoolID",
  51. ID = "TeachingMaterialDropdown",
  52. Name = "TeachingMaterialDropdown",
  53. OnSelect = "QueryTeachingMaterialDropdownList",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. // new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center },
  59. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false
  66. }
  67. };
  68. }
  69. @section scripts{
  70. <script src="../../Scripts/Business/TeachingMaterial/PurchasingStatistics.js" type="text/javascript"></script>
  71. }
  72. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  73. @Html.Position()
  74. <div class="p_SearchTitle">
  75. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  76. 查询条件</div>
  77. </div>
  78. <form id="formQuery" method="post" action="@Url.Content("~/PurchasingStatistics/Excel")">
  79. @Html.PositionCondition()
  80. <div class="search_keyword">
  81. <div class="search_input">
  82. <ul>
  83. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  84. <li class="sv">
  85. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "QuerySchoolYearDropdownList",SelectedValue = @ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgPurchasingStatisticsList" } })
  86. </li>
  87. <li class="sn" style="padding-left: 5px;">教材名称:</li>
  88. <li class="sv">
  89. @Html.ComboGrid(MaterialCode, new Dictionary<string, string> { { "data-condition", "dgPurchasingStatisticsList" } })
  90. </li>
  91. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  92. <li class="sv">
  93. @Html.ComboGrid(Csop, new Dictionary<string, string> { { "data-condition", "dgPurchasingStatisticsList" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">出版单位:</li>
  96. <li class="sv">
  97. @Html.ComboGrid(Psop, new Dictionary<string, string> { { "data-condition", "dgPurchasingStatisticsList" } })
  98. </li>
  99. </ul>
  100. </div>
  101. </div>
  102. </form>
  103. <div class="p_title">
  104. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  105. 采购统计列表</div>
  106. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  107. </div>
  108. <div class="search_list">
  109. @Html.DataGrid(new DataGridOptions
  110. {
  111. Columns = new List<DataGridColumn>()
  112. {
  113. //new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID" },
  114. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.06},
  115. //new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center,Width=0.04},
  116. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center,Width=0.1 },
  117. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  118. new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center, Width=0.08 },
  119. new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center, Width=0.08 },
  120. new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center, Width=0.08 },
  121. new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center, Width=0.04, OverflowLength=8 },
  122. new BoundFieldColumn { FieldName="CountNumber", HeaderText="总征订量", Align=AlignStyle.Center,Width=0.04 }
  123. },
  124. IsCheckOnSelect = true,
  125. DataSourceUrl = Url.Content("~/PurchasingStatistics/List"),
  126. ID = "dgPurchasingStatisticsList",
  127. IsPagination = true,
  128. IsShowRowNumbers = true,
  129. IsSingleSelect = false
  130. })
  131. </div>
  132. </div>