List.cshtml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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/TeachingMaterialPool.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("~/TeachingMaterialPool/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.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeachingMaterialType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "TeachingMaterialTypeDropdown", ID = "TeachingMaterialTypeDropdown", OnSelect = "QueryTeachingMaterialTypeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgTeachingMaterialPoolList" } })
  66. </li>
  67. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  68. <li class="sv">
  69. @Html.ComboGrid(Csop, new Dictionary<string, string> { { "data-condition", "dgTeachingMaterialPoolList" } })
  70. </li>
  71. <li class="sn" style="padding-left: 5px;">出版单位:</li>
  72. <li class="sv">
  73. @Html.ComboGrid(Psop, new Dictionary<string, string> { { "data-condition", "dgTeachingMaterialPoolList" } })
  74. </li>
  75. <li class="sn" style="padding-left: 5px;">是否过期:</li>
  76. <li class="sv">
  77. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "LateDropdown", ID = "LateDropdown", OnSelect = "QueryLateDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgTeachingMaterialPoolList" } })
  78. </li>
  79. </ul>
  80. </div>
  81. </div>
  82. </form>
  83. <div class="p_title">
  84. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  85. 教材信息列表
  86. </div>
  87. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  88. </div>
  89. @Html.PositionBatchModify()
  90. <div class="search_list">
  91. @Html.DataGrid(new DataGridOptions
  92. {
  93. Columns = new List<DataGridColumn>()
  94. {
  95. new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID" },
  96. new LinkButtonColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center , Handle="edit",Width=0.04 },
  97. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center,Width=0.1 },
  98. new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center, OverflowLength=10 ,Width=0.04 },
  99. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=15, Width=0.1 },
  100. new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center,Width=0.08 },
  101. //new BoundFieldColumn { FieldName="TeachingMaterialTypeName", HeaderText="教材类型", Align=AlignStyle.Center,Width=0.04 },
  102. new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间",Align=AlignStyle.Center, Width=0.08 },
  103. new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center,Width=0.08 },
  104. new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center,Width=0.06 },
  105. new BoundFieldColumn { FieldName="Price", HeaderText="单价(¥)", Align=AlignStyle.Center,Width=0.03 },
  106. new BoundFieldColumn { FieldName="IsLateName", HeaderText="是否过期", Align=AlignStyle.Center,Width=0.03 }
  107. //new BoundFieldColumn { FieldName="Desc", HeaderText="备注", Align=AlignStyle.Center }
  108. },
  109. IsCheckOnSelect = true,
  110. DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"),
  111. ID = "dgTeachingMaterialPoolList",
  112. IsPagination = true,
  113. IsShowRowNumbers = true,
  114. IsSingleSelect = false
  115. })
  116. </div>
  117. </div>