ClassmajorReport.cshtml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "ClassmajorReport";
  5. ComboGridOptions cgopStandard = new ComboGridOptions
  6. {
  7. TextField = "StandardName",
  8. ValueField = "StandardID",
  9. OnSelect = "SelectClassmajorDropdownList",
  10. Name = "DictionaryStandard",
  11. ID = "DictionaryStandard",
  12. EmptyText = "请选择",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. IsShowHeader = false
  25. }
  26. };
  27. ComboGridOptions cgopClassmajor = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "ClassmajorID",
  31. Name = "ClassmajorDropdown",
  32. ID = "ClassmajorDropdown",
  33. OnSelect = "reload",
  34. EmptyText = "请选择",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Classmajor/List"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false
  47. }
  48. };
  49. }
  50. @section scripts{
  51. <script src="~/Scripts/Business/SchedulingManage/ScheduleReport/ClassmajorReport.js"
  52. type="text/javascript"></script>
  53. <script type="text/javascript">
  54. var nonSelect = "@DropdownList.SELECT_ALL";
  55. </script>
  56. }
  57. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  58. @Html.Position()
  59. <div class="p_SearchTitle">
  60. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  61. 查询条件</div>
  62. </div>
  63. <form id="formQuery" method="post">
  64. <div class="search_keyword">
  65. <div class="search_input">
  66. <ul>
  67. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  68. <li class="sv">
  69. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = @ViewBag.SchoolYearID, ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" })
  70. </li>
  71. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  72. <li class="sv">
  73. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege"), SelectedValue = Request["collegeID"], ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList", OnLoadSuccess = "" })
  74. </li>
  75. <li class="sn" style="padding-left: 5px;">年级:</li>
  76. <li class="sv">
  77. @Html.SchoolYearDropDownList(new DropdownListOptions { Name = "DictionarySchoolyear", BindType = DropdownListBindType.PleaseSelect, OnSelect = "SelectClassmajorDropdownList", ID = "DictionarySchoolyear" }, new Dictionary<string, string> { { "style", "width:150px" } })
  78. </li>
  79. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  80. <li class="sv">
  81. @Html.ComboGrid(cgopStandard)
  82. @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { Name = "DictionaryStandard", OnSelect = "QueryStandardDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })*@
  83. </li>
  84. @*<li class="sn" style="padding-left: 5px;">年级专业:</li>
  85. <li class="sv">
  86. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "GrademajorDropdown", Name = "GrademajorDropdown", OnSelect = "SelectGrademajorDropdownList", OnLoadSuccess = "" })
  87. </li>*@
  88. </ul>
  89. <ul>
  90. @*<li class="sn" style="padding-left: 5px;">班级专业:</li>
  91. <li class="sv">
  92. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnSelect = "reload", OnLoadSuccess = "" })
  93. </li>*@
  94. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  95. <li class="sv">
  96. @Html.ComboGrid(cgopClassmajor)
  97. </li>
  98. <li class="sv">@Html.Button(new ButtonOptions { OnClick = "Report_Search()", Icon = ButtonIcon.Search, Text = "查询" })</li>
  99. </ul>
  100. </div>
  101. </div>
  102. </form>
  103. <div class="search_list">
  104. <iframe id="reportContent" scrolling="no" frameborder="0" style="width: 99%; height: 85%; position: absolute;
  105. left: 5px;"></iframe>
  106. </div>
  107. </div>