List.cshtml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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 MaterialName = new ComboGridOptions
  26. {
  27. TextField = "TeachingMaterialName",
  28. ValueField = "TeachingMaterialPoolID",
  29. ID = "TeachingMaterialDropdown",
  30. Name = "TeachingMaterialDropdown",
  31. OnSelect = "QueryTeachingMaterialDropdownList",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="TeachingMaterialName",HeaderText="教材名称", Align=AlignStyle.Center }
  37. },
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"),
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. }
  44. };
  45. ComboGridOptions Library = new ComboGridOptions
  46. {
  47. TextField = "LibraryName",
  48. ValueField = "LibraryID",
  49. ID = "LibraryDropdown",
  50. Name = "LibraryDropdown",
  51. OnSelect = "QueryLibraryDropdownList",
  52. GridOptions = new DataGridOptions
  53. {
  54. Columns = new List<DataGridColumn>()
  55. {
  56. new BoundFieldColumn { FieldName="LibraryName",HeaderText="书库名称", Align=AlignStyle.Center }
  57. },
  58. IsCheckOnSelect = true,
  59. DataSourceUrl = Url.Content("~/Library/List"),
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false
  63. }
  64. };
  65. ComboGridOptions schoolYear = new ComboGridOptions
  66. {
  67. TextField = "Code",
  68. ValueField = "Value",
  69. ID = "SchoolYearDropdown",
  70. Name = "SchoolYearDropdown",
  71. OnSelect = "QuerySchoolYearDropdownList",
  72. GridOptions = new DataGridOptions
  73. {
  74. Columns = new List<DataGridColumn>()
  75. {
  76. new BoundFieldColumn { FieldName="Code", Align=AlignStyle.Center }
  77. },
  78. IsCheckOnSelect = true,
  79. DataSourceUrl = Url.Content("~/SchoolYear/List"),
  80. IsPagination = true,
  81. IsShowRowNumbers = true,
  82. IsSingleSelect = false
  83. }
  84. };
  85. }
  86. @section scripts{
  87. <script src="../../Scripts/Business/TeachingMaterial/InventoryManagement.js" type="text/javascript"></script>
  88. }
  89. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  90. @Html.Position()
  91. <div class="p_SearchTitle">
  92. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  93. 查询条件
  94. </div>
  95. </div>
  96. <form id="formQuery" method="post" action="@Url.Content("~/InventoryManagement/Excel")">
  97. @Html.PositionCondition()
  98. <div class="search_keyword">
  99. <div class="search_input">
  100. <ul>
  101. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  102. <li class="sv">
  103. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "QuerySchoolYearDropdownList", SelectedValue = ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgInventoryManagementList" } })
  104. </li>
  105. <li class="sn" style="padding-left: 5px;">教材名称:</li>
  106. <li class="sv">
  107. @Html.ComboGrid(MaterialName, new Dictionary<string, string> { { "data-condition", "dgInventoryManagementList" } })
  108. </li>
  109. <li class="sn" style="padding-left: 5px;">教材类型:</li>
  110. <li class="sv">
  111. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeachingMaterialType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "TeachingMaterialTypeDropdown", ID = "TeachingMaterialTypeDropdown", OnSelect = "QueryTeachingMaterialTypeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgInventoryManagementList" } })
  112. </li>
  113. <li class="sn" style="padding-left: 5px;">出版单位:</li>
  114. <li class="sv">
  115. @Html.ComboGrid(Psop, new Dictionary<string, string> { { "data-condition", "dgInventoryManagementList" } })
  116. </li>
  117. </ul>
  118. </div>
  119. </div>
  120. </form>
  121. <div class="p_title">
  122. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  123. 库存汇总列表
  124. </div>
  125. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  126. </div>
  127. <div class="search_list">
  128. @Html.DataGrid(new DataGridOptions
  129. {
  130. Columns = new List<DataGridColumn>()
  131. {
  132. //new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID", Align=AlignStyle.Center },
  133. new BoundFieldColumn { FieldName="SchoolYearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  134. new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center,Width=0.06},
  135. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.1 },
  136. //new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center },
  137. //new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center },
  138. new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center,Width=0.1 },
  139. //new BoundFieldColumn { FieldName="TeachingMaterialTypeName", HeaderText="教材类型", Align=AlignStyle.Center,Width=0.06 },
  140. //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center, Width=0.1},
  141. //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center, Width=0.1 },
  142. //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  143. new BoundFieldColumn { FieldName="MinInventory", HeaderText="最小库存量", Align=AlignStyle.Center,Width=0.05 },
  144. new BoundFieldColumn { FieldName="InventoryCollectQty", HeaderText="原库存量", Align=AlignStyle.Center,Width=0.04},
  145. new LinkButtonColumn { FieldName="StockInQty", HeaderText="入库数量", Align=AlignStyle.Center,Width=0.04, Handle="StockInDetail" },//
  146. new LinkButtonColumn { FieldName="StockOutQty", HeaderText="出库数量", Align=AlignStyle.Center,Width=0.04, Handle="StockOutDetail" },//
  147. new BoundFieldColumn { FieldName="PresentInventory", HeaderText="当前库存量", Align=AlignStyle.Center,Width=0.05},
  148. new BoundFieldColumn { FieldName="Price", HeaderText="单价(¥)", Align=AlignStyle.Center, Width=0.04},
  149. //new BoundFieldColumn { FieldName="Discount", HeaderText="折扣率", Align=AlignStyle.Center, Width=0.04},
  150. //new BoundFieldColumn { FieldName="DiscountPrice", HeaderText="折合价(¥)", Align=AlignStyle.Center,Width=0.06},
  151. //new BoundFieldColumn { FieldName="Total", HeaderText="码洋(¥)", Align=AlignStyle.Center,Width=0.04 },
  152. //new BoundFieldColumn { FieldName="TotalDollar", HeaderText="实洋(¥)", Align=AlignStyle.Center,Width=0.04},
  153. new BoundFieldColumn { FieldName="SchoolYearID", HeaderText="学年学期ID", Align=AlignStyle.Center,IsHidden=true },
  154. },
  155. IsCheckOnSelect = true,
  156. DataSourceUrl = Url.Content("~/InventoryManagement/List"),
  157. ID = "dgInventoryManagementList",
  158. IsPagination = true,
  159. IsShowRowNumbers = true,
  160. IsSingleSelect = false
  161. })
  162. </div>
  163. </div>