InventoryDetail.cshtml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. var teachingMaterialPoolID = ViewData["teachingMaterialPoolID"] == null ? Guid.Empty.ToString() : ViewData["teachingMaterialPoolID"];
  6. ComboGridOptions Csop = new ComboGridOptions
  7. {
  8. TextField = "CourseName",
  9. ValueField = "CoursematerialID",
  10. ID = "CourseDropdown",
  11. Name = "CourseDropdown",
  12. OnSelect = "QueryCourseDropdownList",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="CourseName", Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions Library = new ComboGridOptions
  27. {
  28. TextField = "LibraryName",
  29. ValueField = "LibraryID",
  30. ID = "LibraryDropdown",
  31. Name = "LibraryDropdown",
  32. OnSelect = "QueryLibraryDropdownList",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new BoundFieldColumn { FieldName="LibraryName", Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Library/List"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. }
  45. };
  46. ComboGridOptions Psop = new ComboGridOptions
  47. {
  48. TextField = "UnitName",
  49. ValueField = "PublishID",
  50. ID = "PublishDropdown",
  51. Name = "PublishDropdown",
  52. OnSelect = "QueryPublishDropdownList",
  53. GridOptions = new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. new BoundFieldColumn { FieldName="UnitName", Align=AlignStyle.Center }
  58. },
  59. IsCheckOnSelect = true,
  60. DataSourceUrl = Url.Content("~/Publisher/List"),
  61. IsPagination = true,
  62. IsShowRowNumbers = true,
  63. IsSingleSelect = false
  64. }
  65. };
  66. ComboGridOptions MaterialCode = new ComboGridOptions
  67. {
  68. TextField = "TeachingMaterialCode",
  69. ValueField = "TeachingMaterialPoolID",
  70. ID = "TeachingMaterialDropdown",
  71. Name = "TeachingMaterialDropdown",
  72. OnSelect = "QueryTeachingMaterialDropdownList",
  73. GridOptions = new DataGridOptions
  74. {
  75. Columns = new List<DataGridColumn>()
  76. {
  77. new BoundFieldColumn { FieldName="TeachingMaterialCode", Align=AlignStyle.Center }
  78. },
  79. IsCheckOnSelect = true,
  80. DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"),
  81. IsPagination = true,
  82. IsShowRowNumbers = true,
  83. IsSingleSelect = false
  84. }
  85. };
  86. ComboGridOptions MaterialName = new ComboGridOptions
  87. {
  88. TextField = "TeachingMaterialName",
  89. ValueField = "TeachingMaterialPoolID",
  90. ID = "TeachingMaterialDropdown",
  91. Name = "TeachingMaterialDropdown",
  92. OnSelect = "QueryTeachingMaterialDropdownList",
  93. GridOptions = new DataGridOptions
  94. {
  95. Columns = new List<DataGridColumn>()
  96. {
  97. new BoundFieldColumn { FieldName="TeachingMaterialName", Align=AlignStyle.Center }
  98. },
  99. IsCheckOnSelect = true,
  100. DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"),
  101. IsPagination = true,
  102. IsShowRowNumbers = true,
  103. IsSingleSelect = false
  104. }
  105. };
  106. }
  107. @section scripts{
  108. <script src="../../Scripts/Business/TeachingMaterial/TeachingMateriaInventory.js"
  109. type="text/javascript"></script>
  110. <script type="text/javascript">
  111. function Inventory_Excel() {
  112. $("#formQuery").submit();
  113. }
  114. </script>
  115. }
  116. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  117. @Html.Position()
  118. <form id="formQuery" method="post" action="@Url.Content("~/InventoryManagement/InventoryExcel?teachingMaterialPoolID=" + teachingMaterialPoolID)">
  119. </form>
  120. <div class="p_title">
  121. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  122. 库存明细列表
  123. </div>
  124. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Detail_Inventory")</div>
  125. </div>
  126. <div class="search_list">
  127. @Html.DataGrid(new DataGridOptions
  128. {
  129. Columns = new List<DataGridColumn>()
  130. {
  131. new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID" },
  132. new BoundFieldColumn { FieldName="LibraryName", HeaderText="书库名称", Align=AlignStyle.Center },
  133. new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center},
  134. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center },
  135. new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center },
  136. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center },
  137. new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center },
  138. new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center},
  139. new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center },
  140. new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center },
  141. new BoundFieldColumn { FieldName="IsLateName", HeaderText="是否过期", Align=AlignStyle.Center },
  142. new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center},
  143. new BoundFieldColumn { FieldName="MinInventory", HeaderText="最小库存量", Align=AlignStyle.Center },
  144. new BoundFieldColumn { FieldName="PresentInventory", HeaderText="当前库存量", Align=AlignStyle.Center},
  145. new BoundFieldColumn { FieldName="Total", HeaderText="码洋", Align=AlignStyle.Center },
  146. new BoundFieldColumn { FieldName="ModifyTime", HeaderText="最近响应时间",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay },
  147. new BoundFieldColumn { FieldName="Desc", HeaderText="备注", Align=AlignStyle.Center }
  148. },
  149. IsCheckOnSelect = true,
  150. DataSourceUrl = Url.Content("~/InventoryManagement/InventoryDetail?teachingMaterialPoolID=" + teachingMaterialPoolID),
  151. ID = "dgTeachingMateriaInventoryList",
  152. IsPagination = true,
  153. IsShowRowNumbers = true,
  154. IsSingleSelect = false
  155. })
  156. </div>
  157. </div>