List.cshtml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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 MaterialNmae = 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/TeachersConfirmOrder.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. 查询条件
  77. </div>
  78. </div>
  79. <form id="formQuery" method="post" action="@Url.Content("~/TeachersConfirmOrder/Excel")">
  80. @Html.PositionCondition()
  81. <div class="search_keyword">
  82. <div class="search_input">
  83. <ul>
  84. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  85. <li class="sv">
  86. @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", "dgTeachersConfirmOrderList" } })
  87. </li>
  88. <li class="sn" style="padding-left: 5px;">教材名称:</li>
  89. <li class="sv">
  90. @Html.ComboGrid(MaterialNmae, new Dictionary<string, string> { { "data-condition", "dgTeachersConfirmOrderList" } })
  91. </li>
  92. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  93. <li class="sv">
  94. @Html.ComboGrid(Csop, new Dictionary<string, string> { { "data-condition", "dgTeachersConfirmOrderList" } })
  95. </li>
  96. <li class="sn" style="padding-left: 5px;">出版单位:</li>
  97. <li class="sv">
  98. @Html.ComboGrid(Psop, new Dictionary<string, string> { { "data-condition", "dgTeachersConfirmOrderList" } })
  99. </li>
  100. </ul>
  101. </div>
  102. </div>
  103. </form>
  104. <div class="p_title">
  105. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  106. 教师征订统计列表
  107. </div>
  108. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  109. </div>
  110. <div class="search_list">
  111. @Html.Hidden("hid_ApprovalStatusName")
  112. @Html.DataGrid(new DataGridOptions
  113. {
  114. Columns = new List<DataGridColumn>()
  115. {
  116. new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachersOrderID"},
  117. new LinkButtonColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center, Handle="TeachersOrderDetail",Width=0.06 },
  118. //new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center,Width=0.04},
  119. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=15},
  120. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=15 },
  121. new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center,Width=0.08 },
  122. new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间",Align=AlignStyle.Center,Width=0.08},
  123. new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center,Width=0.08},
  124. new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center, Width=0.04},
  125. new BoundFieldColumn { FieldName="Price", HeaderText="单价(¥)", Align=AlignStyle.Center, Width=0.04},
  126. new BoundFieldColumn { FieldName="OrderQty", HeaderText="征订数量", Align=AlignStyle.Center,Width=0.04 },
  127. new BoundFieldColumn { FieldName="PreAddedValue", HeaderText="增加数量", Align=AlignStyle.Center,Width=0.04 },
  128. new BoundFieldColumn { FieldName="CountNumber", HeaderText="总数量", Align=AlignStyle.Center,Width=0.03 },
  129. new BoundFieldColumn { FieldName="TeachingMaterialPoolID", HeaderText="教材ID", Align=AlignStyle.Center,IsHidden=true },
  130. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="学年学期ID", Align=AlignStyle.Center,IsHidden=true },
  131. },
  132. IsCheckOnSelect = true,
  133. DataSourceUrl = Url.Content("~/TeachersConfirmOrder/List"),
  134. ID = "dgTeachersConfirmOrderList",
  135. IsPagination = true,
  136. IsShowRowNumbers = true,
  137. IsSingleSelect = false
  138. })
  139. </div>
  140. </div>