List.cshtml 7.8 KB

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