RefundList.cshtml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions Csop = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. ID = "CourseDropdown",
  10. Name = "CourseDropdown",
  11. OnSelect = "QueryCourseDropdownList",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", 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",HeaderText="书库名称", 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. }
  47. @section scripts{
  48. <script type="text/javascript">
  49. var refundTypeID = @((int)EMIS.ViewModel.CF_StockOutType.Refund);
  50. </script>
  51. <script src="../../Scripts/Business/TeachingMaterial/Refund.js" type="text/javascript"></script>
  52. }
  53. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  54. @Html.Position()
  55. <div class="p_SearchTitle">
  56. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  57. 查询条件
  58. </div>
  59. </div>
  60. <form id="formQuery" method="post" action="@Url.Content("~/StockOut/RefundExcel")">
  61. @Html.PositionCondition()
  62. <div class="search_keyword">
  63. <div class="search_input">
  64. <ul>
  65. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  66. <li class="sv">
  67. @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", "dgStockOutList" } })
  68. </li>
  69. <li class="sn" style="padding-left: 5px;">领书日期:</li>
  70. <li class="sv">
  71. @Html.TextBox(new TextBoxOptions
  72. {
  73. TextBoxType = TextBoxType.Date,
  74. Value = DateTime.Now.AddMonths(-8).ToString(),
  75. ID = "StartStockInTime",
  76. Name = "StartStockInTime",
  77. OnChange = "QueryStartStockInTimeList"
  78. }
  79. , new Dictionary<string, string> { { "data-condition", "dgStockOutList" } })
  80. </li>
  81. <li class="sn" style="padding-left: 5px;">截止日期:</li>
  82. <li class="sv">
  83. @Html.TextBox(new TextBoxOptions
  84. {
  85. TextBoxType = TextBoxType.Date,
  86. Value = DateTime.Now.ToString(),
  87. ID = "EndStockInTime",
  88. Name = "EndStockInTime",
  89. OnChange = "QueryEndStockInTimeList"
  90. }, new Dictionary<string, string> { { "data-condition", "dgStockOutList" } })
  91. </li>
  92. </ul>
  93. </div>
  94. </div>
  95. </form>
  96. <div class="p_title">
  97. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  98. 个人领书列表
  99. </div>
  100. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  101. </div>
  102. <div class="search_list">
  103. @Html.DataGrid(new DataGridOptions
  104. {
  105. Columns = new List<DataGridColumn>()
  106. {
  107. new CheckBoxFieldColumn{ HeaderText="", FieldName="StockOutID" },
  108. new LinkButtonColumn { FieldName="StockOutNo", HeaderText="出库单据号", Align=AlignStyle.Center, Handle="StockOutDetailView", Width=0.06 },
  109. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  110. new BoundFieldColumn { FieldName="StockOutTypeName", HeaderText="出库类型", Align=AlignStyle.Center, Width=0.04 },
  111. new BoundFieldColumn { FieldName="StockOutTime", HeaderText="领书日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.06 },
  112. new BoundFieldColumn { FieldName="RecipientUserName", HeaderText="领书人", Align=AlignStyle.Center, Width=0.04 },
  113. new BoundFieldColumn { FieldName="StockOutSumMoney", HeaderText="单据总金额(¥)", Align=AlignStyle.Center, Width=0.05 },
  114. new BoundFieldColumn { FieldName="StockOutUserName", HeaderText="经手人", Align=AlignStyle.Center, Width=0.04 },
  115. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="是否出库",Align=AlignStyle.Center, Width=0.04 },
  116. new BoundFieldColumn { FieldName="LibraryName", HeaderText="书库名称", Align=AlignStyle.Center, IsHidden=true, Width=0.04 },
  117. new BoundFieldColumn { FieldName="Desc", HeaderText="领书说明", Align=AlignStyle.Center, Width=0.04, OverflowLength=5 }
  118. },
  119. PageSize = 30,
  120. IsCheckOnSelect = true,
  121. DataSourceUrl = Url.Content("~/StockOut/RefundList"),
  122. ID = "dgStockOutList",
  123. IsPagination = true,
  124. IsShowRowNumbers = true,
  125. IsSingleSelect = false
  126. })
  127. </div>
  128. </div>