List.cshtml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. }
  49. @section scripts{
  50. <script src="../../Scripts/Business/TeachingMaterial/StockInDetail.js" type="text/javascript"></script>
  51. }
  52. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  53. @Html.Position()
  54. <div class="p_SearchTitle">
  55. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  56. 查询条件
  57. </div>
  58. </div>
  59. <form id="formQuery" method="post" action="@Url.Content("~/StockInDetail/Excel")">
  60. @Html.PositionCondition()
  61. <div class="search_keyword">
  62. <div class="search_input">
  63. <ul>
  64. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  65. <li class="sv">
  66. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "QuerySchoolYearDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgStockInDetailList" } })
  67. </li>
  68. <li class="sn" style="padding-left: 5px;">供应商:</li>
  69. <li class="sv">
  70. @Html.ComboGrid(Psop, new Dictionary<string, string> { { "data-condition", "dgStockInDetailList" } })
  71. </li>
  72. <li class="sn" style="padding-left: 5px;">入库日期:</li>
  73. <li class="sv">
  74. <input class="easyui-datetimebox" name="birthday" id="dt"
  75. data-options="required:true,showSeconds:false" value=@DateTime.Now; style="width: 150px">—
  76. <li class="sv">
  77. <input class="easyui-datetimebox" name="birthdayEnd" id="dtEnd"
  78. data-options="required:true,showSeconds:false" value=@Daytime; style="width: 150px">
  79. </li>
  80. </ul>
  81. </div>
  82. </div>
  83. </form>
  84. <div class="p_title">
  85. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  86. 入库明细列表
  87. </div>
  88. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  89. </div>
  90. <div class="search_list">
  91. @Html.DataGrid(new DataGridOptions
  92. {
  93. Columns = new List<DataGridColumn>()
  94. {
  95. new CheckBoxFieldColumn{ HeaderText="", FieldName="StockInDetailID" },
  96. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center},
  97. new BoundFieldColumn { FieldName="StockInDocumentNo", HeaderText="入库单据号", Align=AlignStyle.Center },
  98. new BoundFieldColumn { FieldName="", HeaderText="入库编号", Align=AlignStyle.Center },
  99. new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center },
  100. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center },
  101. new BoundFieldColumn { FieldName="PublishName", HeaderText="供应商", Align=AlignStyle.Center },
  102. new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center },
  103. new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间",Align=AlignStyle.Center },
  104. new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center },
  105. new BoundFieldColumn { FieldName="Quantity", HeaderText="数量", Align=AlignStyle.Center },
  106. new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center },
  107. new BoundFieldColumn { FieldName="DiscountStr", HeaderText="折扣率", Align=AlignStyle.Center },
  108. new BoundFieldColumn { FieldName="DiscountPriceStr", HeaderText="折合价", Align=AlignStyle.Center },
  109. new BoundFieldColumn { FieldName="TotalPriceStr", HeaderText="码洋", Align=AlignStyle.Center },
  110. new BoundFieldColumn { FieldName="TotalDollarStr", HeaderText="总价", Align=AlignStyle.Center },
  111. new BoundFieldColumn { FieldName="HandlerUserName", HeaderText="经手人", Align=AlignStyle.Center },
  112. new BoundFieldColumn { FieldName="StockInUserName", HeaderText="入库人" },
  113. new BoundFieldColumn { FieldName="StockInTime", HeaderText="入库日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay }
  114. },
  115. IsCheckOnSelect = true,
  116. DataSourceUrl = Url.Content("~/StockInDetail/List"),
  117. ID = "dgStockInDetailList",
  118. IsPagination = true,
  119. IsShowRowNumbers = true,
  120. IsSingleSelect = false
  121. })
  122. </div>
  123. </div>