List.cshtml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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 BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. ComboGridOptions Library = new ComboGridOptions
  26. {
  27. TextField = "LibraryName",
  28. ValueField = "LibraryID",
  29. ID = "LibraryDropdown",
  30. Name = "LibraryDropdown",
  31. OnSelect = "QueryLibraryDropdownList",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="LibraryName",HeaderText="书库名称", Align=AlignStyle.Center }
  37. },
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/Library/List"),
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. }
  44. };
  45. }
  46. @section scripts{
  47. <script src="../../Scripts/Business/TeachingMaterial/TeacherRetail.js" type="text/javascript"></script>
  48. }
  49. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  50. @Html.Position()
  51. <div class="p_SearchTitle">
  52. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  53. 查询条件
  54. </div>
  55. </div>
  56. <form id="formQuery" method="post" action="@Url.Content("~/TeacherRetail/Excel")">
  57. @Html.PositionCondition()
  58. <div class="search_keyword">
  59. <div class="search_input">
  60. <ul>
  61. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  62. <li class="sv">
  63. @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", "dgTeacherRetailList" } })
  64. </li>
  65. <li class="sn" style="padding-left: 5px;">零售日期:</li>
  66. <li class="sv">
  67. <li class="sv">
  68. @Html.TextBox(new TextBoxOptions
  69. {
  70. TextBoxType = TextBoxType.Date,
  71. Value = DateTime.Now.AddMonths(-8).ToString()
  72. ,
  73. ID = "StartStockInTime",
  74. Name = "StartStockInTime",
  75. OnChange = "QueryStartStockInTimeList"
  76. }
  77. , new Dictionary<string, string> { { "data-condition", "dgTeacherRetailList" } })
  78. @Html.TextBox(new TextBoxOptions
  79. {
  80. TextBoxType = TextBoxType.Date,
  81. Value = DateTime.Now.ToString(),
  82. ID = "EndStockInTime",
  83. Name = "EndStockInTime",
  84. OnChange = "QueryEndStockInTimeList"
  85. }, new Dictionary<string, string> { { "data-condition", "dgTeacherRetailList" } })
  86. </li>
  87. </ul>
  88. </div>
  89. </div>
  90. </form>
  91. <div class="p_title">
  92. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  93. 教材零售列表
  94. </div>
  95. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  96. </div>
  97. <div class="search_list">
  98. @Html.DataGrid(new DataGridOptions
  99. {
  100. Columns = new List<DataGridColumn>()
  101. {
  102. new CheckBoxFieldColumn{ HeaderText="", FieldName="StockOutID" },
  103. new LinkButtonColumn { FieldName="StockOutNo", HeaderText="出库单据号", Align=AlignStyle.Center, Handle="TeacherRetailDetailView", Width=0.06 },
  104. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  105. new BoundFieldColumn { FieldName="StockOutTypeName", HeaderText="出库类型", Align=AlignStyle.Center, Width=0.04 },
  106. new BoundFieldColumn { FieldName="StockOutTime", HeaderText="零售日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.06 },
  107. new BoundFieldColumn { FieldName="GetBookNo", HeaderText="零售对象", Align=AlignStyle.Center, Width=0.04 },
  108. //new BoundFieldColumn { FieldName="RecipientUserName", HeaderText="签收人", Align=AlignStyle.Center, Width=0.04 },
  109. new BoundFieldColumn { FieldName="StockOutSumMoney", HeaderText="单据总金额(¥)", Align=AlignStyle.Center, Width=0.05 },
  110. new BoundFieldColumn { FieldName="StockOutUserName", HeaderText="经手人", Align=AlignStyle.Center, Width=0.04 },
  111. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="是否出库",Align=AlignStyle.Center, Width=0.04 },
  112. new BoundFieldColumn { FieldName="LibraryName", HeaderText="书库名称", Align=AlignStyle.Center, IsHidden=true, Width=0.04 },
  113. new BoundFieldColumn { FieldName="Desc", HeaderText="领书说明", Align=AlignStyle.Center, Width=0.04, OverflowLength=5 }
  114. },
  115. PageSize = 30,
  116. IsCheckOnSelect = true,
  117. DataSourceUrl = Url.Content("~/TeacherRetail/List"),
  118. ID = "dgTeacherRetailList",
  119. IsPagination = true,
  120. IsShowRowNumbers = true,
  121. IsSingleSelect = false
  122. })
  123. </div>
  124. </div>