List.cshtml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //学制
  6. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  7. {
  8. TextField = "LearnSystem",
  9. ValueField = "LearnSystem",
  10. ID = "DictionaryLearnSystem",
  11. Name = "DictionaryLearnSystem",
  12. OnSelect = "reload",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. IsShowHeader = false
  25. }
  26. };
  27. }
  28. @section scripts{
  29. <script src="~/Scripts/Business/EnrollManage/SpecialtyManage/SpecialtyClassSetting.js" type="text/javascript"></script>
  30. }
  31. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  32. @Html.Position()
  33. <div class="p_SearchTitle">
  34. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  35. </div>
  36. <form id="formQuery" method="post" action="@Url.Content("~/SpecialtyClassSetting/Excel")">
  37. @Html.PositionCondition()
  38. <div class="search_keyword">
  39. <div class="search_input">
  40. <ul>
  41. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  42. <li class="sv">
  43. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll,
  44. new ComboGridOptions
  45. {
  46. ID = "DictionaryStandard",
  47. Name = "DictionaryStandard",
  48. OnSelect = "queryStandard",
  49. GridOptions = new DataGridOptions
  50. {
  51. Columns = new List<DataGridColumn>()
  52. {
  53. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  54. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  55. }
  56. }
  57. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyClassSettingList" } })
  58. </li>
  59. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("EducationID"):</li>
  60. <li class="sv">
  61. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  62. new ComboGridOptions
  63. {
  64. ID = "DictionaryEducation",
  65. Name = "DictionaryEducation",
  66. OnSelect = "queryEducation"
  67. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyClassSettingList" } })
  68. </li>
  69. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  70. <li class="sv">
  71. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  72. new ComboGridOptions
  73. {
  74. ID = "DictionaryLearningform",
  75. Name = "DictionaryLearningform",
  76. OnSelect = "queryLearningform"
  77. },
  78. new Dictionary<string, string> { { "data-condition", "dgSpecialtyClassSettingList" } })
  79. </li>
  80. <li class="sn" style="padding-left: 5px;">学制:</li>
  81. <li class="sv">
  82. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgSpecialtyClassSettingList" } })
  83. </li>
  84. </ul>
  85. </div>
  86. </div>
  87. </form>
  88. <div class="p_title">
  89. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">专业分班列表</div>
  90. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  91. </div>
  92. @Html.PositionBatchModify()
  93. <div class="search_list">
  94. @Html.DataGrid(new DataGridOptions
  95. {
  96. Columns = new List<DataGridColumn>()
  97. {
  98. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyClassSettingID" },
  99. new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Handle="edit", Width=0.06 },
  100. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.1 },
  101. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.04 },
  102. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.04 },
  103. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  104. new BoundFieldColumn { FieldName="ScienceclassName", HeaderText="专业科类", Align=AlignStyle.Center, OrderFieldName="ScienceclassID", Width=0.05 },
  105. //new BoundFieldColumn { FieldName="PropertyName", HeaderText="专业属性", Align=AlignStyle.Center, OrderFieldName="PropertyID", Width=0.05 },
  106. new BoundFieldColumn { FieldName="PlanRecruitStudentCount", HeaderText="计划招生人数", Align=AlignStyle.Center, Width=0.06 },
  107. new BoundFieldColumn { FieldName="ClassArrangeStudentCount", HeaderText="每班预招人数", Align=AlignStyle.Center, Width=0.06 },
  108. new BoundFieldColumn { FieldName="ClassMaxStudentCount", HeaderText="每班最大人数", Align=AlignStyle.Center, Width=0.06 },
  109. new BoundFieldColumn { FieldName="ClassNumber", HeaderText="班级个数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" }
  110. },
  111. IsCheckOnSelect = true,
  112. DataSourceUrl = Url.Content("~/SpecialtyClassSetting/List"),
  113. ID = "dgSpecialtyClassSettingList",
  114. IsPagination = true,
  115. IsShowRowNumbers = true,
  116. IsSingleSelect = false
  117. })
  118. </div>
  119. </div>