List.cshtml 6.5 KB

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