List.cshtml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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/TeachersOrder.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("~/TeachersOrder/Excel")">
  59. @Html.PositionCondition()
  60. @Html.Hidden("ExcelType")
  61. <div class="search_keyword">
  62. <div class="search_input">
  63. <ul>
  64. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  65. <li class="sv">
  66. @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", "dgTeachersOrderList" } })
  67. </li>
  68. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  69. <li class="sv">
  70. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgTeachersOrderList" } })
  71. </li>
  72. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  73. <li class="sv">
  74. @Html.ComboGrid(Csop, new Dictionary<string, string> { { "data-condition", "dgTeachersOrderList" } })
  75. </li>
  76. <li class="sn" style="padding-left: 5px;">出版单位:</li>
  77. <li class="sv">
  78. @Html.ComboGrid(Psop, new Dictionary<string, string> { { "data-condition", "dgTeachersOrderList" } })
  79. </li>
  80. </ul>
  81. <ul>
  82. <li class="sn" style="padding-left: 5px;">审核状态:</li>
  83. <li class="sv">
  84. @Html.DropdownList(new DropdownListOptions { Name = "StatusDropdown", ID = "StatusDropdown", BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ET_TeachersOrder).Name), OnSelect = "QueryStatusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgTeachersOrderList" } })
  85. </li>
  86. </ul>
  87. </div>
  88. </div>
  89. </form>
  90. <div class="p_title">
  91. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  92. 教师征订申请列表
  93. </div>
  94. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  95. </div>
  96. <div class="search_list">
  97. @Html.Hidden("hid_ApprovalStatusName")
  98. @Html.DataGrid(new DataGridOptions
  99. {
  100. Columns = new List<DataGridColumn>()
  101. {
  102. new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachersOrderID"},
  103. new LinkButtonColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center,Handle="TeachersOrderDetail",Width=0.06 },
  104. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center,Width=0.08 },
  105. //new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center},
  106. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center,Width=0.1 },
  107. //new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center },
  108. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center,Width=0.1 },
  109. //new BoundFieldColumn { FieldName="CoursematerialLevelName", HeaderText="课程级别", Align=AlignStyle.Center },
  110. //new BoundFieldColumn { FieldName="CoursematerialTypeName", HeaderText="课程科类", Align=AlignStyle.Center,OverflowLength=6,Width=0.02 },
  111. new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center,Width=0.08 },
  112. //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间" },
  113. //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center },
  114. //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center },
  115. new BoundFieldColumn { FieldName="OrderQty", HeaderText="征订数量", Align=AlignStyle.Center,Width=0.04 },
  116. new BoundFieldColumn { FieldName="OrderUserName", HeaderText="征订人", Align=AlignStyle.Center,Width=0.06 },
  117. new BoundFieldColumn { FieldName="OrderDate", HeaderText="征订日期", Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay,Width=0.05 },
  118. //new BoundFieldColumn { FieldName="OrderDesc", HeaderText="征订说明", Align=AlignStyle.Center ,OverflowLength=6,Width=0.1},
  119. new ApproveStatusColumn { FieldName="ApproveStatusName", TableName="ET_TeachersOrder", IDFieldName="TeachersOrderID",
  120. HeaderText="审批状态", Align=AlignStyle.Center ,Width=0.04},
  121. //new BoundFieldColumn { FieldName="ApprovalStatus", HeaderText="审批状态", Align=AlignStyle.Center, IsHidden = true },
  122. //new LinkButtonColumn { FieldName="ApproveStatusName", HeaderText="审核状态", Align=AlignStyle.Center, Handle="ShoAuditStatusView"}
  123. },
  124. IsCheckOnSelect = true,
  125. DataSourceUrl = Url.Content("~/TeachersOrder/List"),
  126. ID = "dgTeachersOrderList",
  127. IsPagination = true,
  128. IsShowRowNumbers = true,
  129. IsSingleSelect = false
  130. })
  131. </div>
  132. </div>