List.cshtml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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 },
  18. new BoundFieldColumn { FieldName="UnitName", HeaderText="出版单位", Align=AlignStyle.Center }
  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 },
  39. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  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="TeachingMaterialName",HeaderText="教材名称", Align=AlignStyle.Center },
  60. // new BoundFieldColumn { FieldName="TeachingMaterialCode",HeaderText="教材编号", Align=AlignStyle.Center }
  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/StockInStatistics.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("~/StockInStatistics/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", "dgStockInStatisticsList" } })
  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", "dgStockInStatisticsList" } })
  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", "dgStockInStatisticsList" } })
  96. </li>
  97. </ul>
  98. </div>
  99. </div>
  100. </form>
  101. <div class="p_title">
  102. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  103. 入库统计列表
  104. </div>
  105. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  106. </div>
  107. <div class="search_list">
  108. @Html.DataGrid(new DataGridOptions
  109. {
  110. Columns = new List<DataGridColumn>()
  111. {
  112. //new CheckBoxFieldColumn{ HeaderText="", FieldName="StockInDetailID", Align = AlignStyle.Center },
  113. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.06},
  114. //new BoundFieldColumn { FieldName="StockInDocumentNo", HeaderText="入库单据号", Align=AlignStyle.Center },
  115. //new BoundFieldColumn { FieldName="StockInNumber", HeaderText="入库编号", Align=AlignStyle.Center },
  116. //new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center,Width=0.04 },
  117. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=15 },
  118. //new BoundFieldColumn { FieldName="SupplierName", HeaderText="供应商", Align=AlignStyle.Center,Width=0.1 },
  119. //new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center,Width=0.08 },
  120. new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center,Width=0.08 },
  121. new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间",Align=AlignStyle.Center,Width=0.08 },
  122. new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center,Width=0.08, OverflowLength=10 },
  123. new BoundFieldColumn { FieldName="Price", HeaderText="单价(¥)", Align=AlignStyle.Center, Width=0.04 },
  124. new BoundFieldColumn { FieldName="Quantity", HeaderText="总数量", Align=AlignStyle.Center, Width=0.03 },
  125. new BoundFieldColumn { FieldName="DiscountStr", HeaderText="折扣率", Align=AlignStyle.Center, Width=0.04 },
  126. new BoundFieldColumn { FieldName="DiscountPriceStr", HeaderText="折合价(¥)", Align=AlignStyle.Center, Width=0.04 },
  127. new BoundFieldColumn { FieldName="TotalPriceStr", HeaderText="码洋(¥)", Align=AlignStyle.Center , Width=0.04},
  128. new BoundFieldColumn { FieldName="TotalDollarStr", HeaderText="实洋(¥)", Align=AlignStyle.Center, Width=0.04 }
  129. //new BoundFieldColumn { FieldName="HandlerUserName", HeaderText="经手人", Align=AlignStyle.Center, Width=0.04 },
  130. //new BoundFieldColumn { FieldName="StockInUserName", HeaderText="入库人",Align=AlignStyle.Center, Width=0.04 },
  131. //new BoundFieldColumn { FieldName="StockInTime", HeaderText="入库日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay }
  132. },
  133. PageSize = 30 ,
  134. IsCheckOnSelect = true,
  135. DataSourceUrl = Url.Content("~/StockInStatistics/List"),
  136. ID = "dgStockInStatisticsList",
  137. IsPagination = true,
  138. IsShowRowNumbers = true,
  139. IsSingleSelect = false
  140. })
  141. </div>
  142. </div>