List.cshtml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions Psop = new ComboGridOptions
  6. {
  7. TextField = "UnitName",
  8. ValueField = "PublishID",
  9. ID = "PublishDropdown",
  10. Name = "PublishDropdown",
  11. OnSelect = "QueryPublishDropdownList",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new BoundFieldColumn { FieldName="UnitCode", HeaderText="单位编号", Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="UnitName", HeaderText="出版单位", Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Publisher/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions Csop = new ComboGridOptions
  27. {
  28. TextField = "CourseName",
  29. ValueField = "CoursematerialID",
  30. ID = "CourseDropdown",
  31. Name = "CourseDropdown",
  32. OnSelect = "QueryCourseDropdownList",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. // new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. }
  48. @section scripts{
  49. <script src="../../Scripts/Business/TeachingMaterial/StockIn.js" type="text/javascript"></script>
  50. }
  51. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  52. @Html.Position()
  53. <div class="p_SearchTitle">
  54. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  55. 查询条件
  56. </div>
  57. </div>
  58. <form id="formQuery" method="post" action="@Url.Content("~/StockIn/Excel")">
  59. @Html.PositionCondition()
  60. <div class="search_keyword">
  61. <div class="search_input">
  62. <ul>
  63. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  64. <li class="sv">
  65. @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", "dgStockInList" } })
  66. </li>
  67. <li class="sn" style="padding-left: 5px;">供应商:</li>
  68. <li class="sv">
  69. @Html.ComboGrid(Psop, new Dictionary<string, string> { { "data-condition", "dgStockInList" } })
  70. </li>
  71. </ul>
  72. <ul>
  73. <li class="sn" style="padding-left: 5px;">入库日期:</li>
  74. <li class="sv">
  75. @Html.TextBox(new TextBoxOptions
  76. {
  77. TextBoxType = TextBoxType.Date,
  78. Value = DateTime.Now.AddMonths(-8).ToString(),
  79. ID = "StartStockInTime",
  80. Name = "StartStockInTime",
  81. OnChange = "QueryStartStockInTimeList"
  82. }
  83. , new Dictionary<string, string> { { "data-condition", "dgStockInList" } })
  84. </li>
  85. <li class="sn" style="padding-left: 5px;">截止日期:</li>
  86. <li class="sv">
  87. @Html.TextBox(new TextBoxOptions
  88. {
  89. TextBoxType = TextBoxType.Date,
  90. Value = DateTime.Now.ToString(),
  91. ID = "EndStockInTime",
  92. Name = "EndStockInTime",
  93. OnChange = "QueryEndStockInTimeList"
  94. }, new Dictionary<string, string> { { "data-condition", "dgStockInList" } })
  95. </li>
  96. <li class="sn" style="padding-left: 5px;">是否入库:</li>
  97. <li class="sv">
  98. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "LateDropdown", ID = "LateDropdown", OnSelect = "QueryLateDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgStockInList" } })
  99. </li>
  100. </ul>
  101. </div>
  102. </div>
  103. </form>
  104. <div class="p_title">
  105. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  106. 教材入库列表
  107. </div>
  108. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  109. </div>
  110. <div class="search_list">
  111. @Html.DataGrid(new DataGridOptions
  112. {
  113. Columns = new List<DataGridColumn>()
  114. {
  115. new CheckBoxFieldColumn{ HeaderText="", FieldName="StorageID" },
  116. new LinkButtonColumn { FieldName="StockInDocumentNo", HeaderText="入库单据号", Align=AlignStyle.Center, Handle="StockInDetailView", Width=0.05 },
  117. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.05 },
  118. new BoundFieldColumn { FieldName="StockInDJTime", HeaderText="入库单据日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.04 },
  119. new BoundFieldColumn { FieldName="SupplierName", HeaderText="供应商", Align=AlignStyle.Center, Width=0.08 },
  120. new BoundFieldColumn { FieldName="HandlerUserName", HeaderText="经手人", Align=AlignStyle.Center, Width=0.02 },
  121. new BoundFieldColumn { FieldName="StockInSumMoneyStr", HeaderText="入库总金额(¥)", Align=AlignStyle.Center, Width=0.03 },
  122. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="是否入库", Align=AlignStyle.Center, Width=0.02 },
  123. new BoundFieldColumn { FieldName="Desc", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=6 }
  124. },
  125. PageSize = 30,
  126. IsCheckOnSelect = true,
  127. DataSourceUrl = Url.Content("~/StockIn/List"),
  128. ID = "dgStockInList",
  129. IsPagination = true,
  130. IsShowRowNumbers = true,
  131. IsSingleSelect = false
  132. })
  133. </div>
  134. </div>