List.cshtml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "ClassmajorReport";
  5. var status = ViewBag.Status;
  6. string LoginUserID = ViewBag.UserID;
  7. var DataRange = ViewBag.DataRange;
  8. ComboGridOptions cgopStandard = new ComboGridOptions
  9. {
  10. TextField = "StandardName",
  11. ValueField = "StandardID",
  12. OnSelect = "reload",
  13. Name = "DictionaryStandard",
  14. ID = "DictionaryStandard",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. IsShowHeader = false
  27. }
  28. };
  29. ListControlOptions course = new ListControlOptions
  30. {
  31. Name = "StatusID",
  32. TextField = "Name",
  33. ValueField = "Value",
  34. ColumnCount = 10,
  35. SelectedValueUrl = @Url.Content("~/EducationMissionClass/GetEducationMissionClassStatus"),
  36. //SelectedValues =
  37. };
  38. }
  39. @section scripts{
  40. <script type="text/javascript">
  41. var nonSelect = "@DropdownList.SELECT_ALL";
  42. var status = '@status';
  43. var LoginUserID = '@LoginUserID';
  44. var DataRange = '@DataRange';
  45. function reload() {
  46. var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
  47. if (schoolYearID != nonSelect) {
  48. $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fStudentGraduationCountView&SchoolyearID_RAP=" + schoolYearID + "&DataRange_RAP=" + DataRange + "&LoginUserID_RAP=" + LoginUserID);
  49. }
  50. }
  51. </script>
  52. }
  53. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  54. @Html.Position()
  55. <div class="p_SearchTitle">
  56. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  57. 查询条件
  58. </div>
  59. </div>
  60. <form id="formQuery" method="post">
  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.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = @ViewBag.SchoolYearID, ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" })
  67. </li>
  68. <li class="sn" style="padding-right: 10px; float: left;"><a class="easyui-linkbutton l-btn"
  69. onclick="reload();" href="javascript:void(0)" data-options="iconCls:'icon-search'">
  70. 预览 </a></li>
  71. </ul>
  72. </div>
  73. </div>
  74. </form>
  75. <div class="search_list">
  76. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 85%; position: absolute; left: 5px;"></iframe>
  77. </div>
  78. </div>