List.cshtml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. string Daytime = DateTime.Now.AddMonths(8).ToLongDateString();
  5. ViewBag.Title = "List";
  6. ComboGridOptions Psop = new ComboGridOptions
  7. {
  8. TextField = "UnitName",
  9. ValueField = "PublishID",
  10. ID = "PublishDropdown",
  11. Name = "PublishDropdown",
  12. OnSelect = "QueryPublishDropdownList",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new BoundFieldColumn { FieldName="UnitCode", HeaderText="单位编号", Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="UnitName", HeaderText="出版单位", Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Publisher/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. ComboGridOptions Csop = new ComboGridOptions
  28. {
  29. TextField = "CourseName",
  30. ValueField = "CoursematerialID",
  31. ID = "CourseDropdown",
  32. Name = "CourseDropdown",
  33. OnSelect = "QueryCourseDropdownList",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  39. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.3 }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. }
  47. };
  48. ComboGridOptions MaterialCode = new ComboGridOptions
  49. {
  50. TextField = "TeachingMaterialName",
  51. ValueField = "TeachingMaterialPoolID",
  52. ID = "TeachingMaterialDropdown",
  53. Name = "TeachingMaterialDropdown",
  54. OnSelect = "QueryTeachingMaterialDropdownList",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. //new BoundFieldColumn { FieldName="TeachingMaterialCode",HeaderText="教材编号", Align=AlignStyle.Center, Width=0.1 },
  60. new BoundFieldColumn { FieldName="TeachingMaterialName",HeaderText="教材名称", Align=AlignStyle.Center, Width=0.3 }
  61. },
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"),
  64. IsPagination = true,
  65. IsShowRowNumbers = true,
  66. IsSingleSelect = false
  67. }
  68. };
  69. }
  70. @section scripts{
  71. <script src="../../Scripts/Business/TeachingMaterial/StockOutStatistics.js" type="text/javascript"></script>
  72. }
  73. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  74. @Html.Position()
  75. <div class="p_SearchTitle">
  76. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  77. 查询条件
  78. </div>
  79. </div>
  80. <form id="formQuery" method="post" action="@Url.Content("~/StockOutStatistics/Excel")">
  81. @Html.PositionCondition()
  82. <div class="search_keyword">
  83. <div class="search_input">
  84. <ul>
  85. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  86. <li class="sv">
  87. @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", "dgStockOutStatisticsList" } })
  88. </li>
  89. <li class="sn" style="padding-left: 5px;">教材名称:</li>
  90. <li class="sv">
  91. @Html.ComboGrid(MaterialCode, new Dictionary<string, string> { { "data-condition", "dgStockOutStatisticsList" } })
  92. </li>
  93. <li class="sn" style="padding-left: 5px;">出版单位:</li>
  94. <li class="sv">
  95. @Html.ComboGrid(Psop, new Dictionary<string, string> { { "data-condition", "dgStockOutStatisticsList" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">出库类型:</li>
  98. <li class="sv">
  99. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_StockOutType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "StockOutTypeDropdown", ID = "StockOutTypeDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStockOutStatisticsList" } })
  100. </li>
  101. </ul>
  102. </div>
  103. </div>
  104. </form>
  105. <div class="p_title">
  106. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  107. 出库统计列表
  108. </div>
  109. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  110. </div>
  111. <div class="search_list">
  112. @Html.DataGrid(new DataGridOptions
  113. {
  114. Columns = new List<DataGridColumn>()
  115. {
  116. new CheckBoxFieldColumn{ HeaderText="", FieldName="StockInDetailID", Align=AlignStyle.Center },
  117. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08},
  118. //new BoundFieldColumn { FieldName="StockOutNo", HeaderText="出库单据号", Align=AlignStyle.Center, Width=0.08 },
  119. //new BoundFieldColumn { FieldName="StockOutNumber", HeaderText="出库编号", Align=AlignStyle.Center, Width=0.08 },
  120. new BoundFieldColumn { FieldName="StockOutTypeName", HeaderText="出库类型", Align=AlignStyle.Center, Width=0.05 },
  121. new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center,Width=0.05 },
  122. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.12 },
  123. new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center,Width=0.1 },
  124. //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center,Width=0.1 },
  125. //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间",Align=AlignStyle.Center,Width=0.1 },
  126. new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center,Width=0.05, OverflowLength=4 },
  127. new BoundFieldColumn { FieldName="Price", HeaderText="单价(¥)", Align=AlignStyle.Center, Width=0.04 },
  128. new BoundFieldColumn { FieldName="Quantity", HeaderText="总数量", Align=AlignStyle.Center, Width=0.03 },
  129. new BoundFieldColumn { FieldName="DiscountStr", HeaderText="折扣率", Align=AlignStyle.Center, Width=0.04 },
  130. new BoundFieldColumn { FieldName="DiscountPriceStr", HeaderText="折合价(¥)", Align=AlignStyle.Center, Width=0.06 },
  131. new BoundFieldColumn { FieldName="TotalPriceStr", HeaderText="码洋(¥)", Align=AlignStyle.Center , Width=0.04},
  132. new BoundFieldColumn { FieldName="TotalDollarStr", HeaderText="实洋(¥)", Align=AlignStyle.Center, Width=0.04 },
  133. //new BoundFieldColumn { FieldName="HandlerUserName", HeaderText="经手人", Align=AlignStyle.Center, Width=0.04 },
  134. //new BoundFieldColumn { FieldName="StockInUserName", HeaderText="出库人" ,Align=AlignStyle.Center, Width=0.04},
  135. //new BoundFieldColumn { FieldName="StockInTime", HeaderText="出库日期",Align=AlignStyle.Center, Width=0.04, Formatter= Formatter.OnlyYearMonthDay }
  136. },
  137. PageSize = 50,
  138. IsCheckOnSelect = true,
  139. DataSourceUrl = Url.Content("~/StockOutStatistics/List"),
  140. ID = "dgStockOutStatisticsList",
  141. IsPagination = true,
  142. IsShowRowNumbers = true,
  143. IsSingleSelect = false
  144. })
  145. </div>
  146. </div>