List.cshtml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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/Specialty.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("~/Specialty/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 = "reload",
  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", "dgSpecialtyList" } })
  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 = "reload"
  67. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  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 = "reload"
  77. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  78. </li>
  79. <li class="sn" style="padding-left: 5px;">学制:</li>
  80. <li class="sv">
  81. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  82. </li>
  83. </ul>
  84. <ul>
  85. <li class="sn" style="padding-left: 5px;">专业科类:</li>
  86. <li class="sv">
  87. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, DropdownListBindType.SelectAll,
  88. new ComboGridOptions
  89. {
  90. ID = "DictionaryScienceclass",
  91. Name = "DictionaryScienceclass",
  92. OnSelect = "reload"
  93. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">专业属性:</li>
  96. <li class="sv">
  97. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Property, DropdownListBindType.SelectAll,
  98. new ComboGridOptions
  99. {
  100. ID = "DictionaryProperty",
  101. Name = "DictionaryProperty",
  102. OnSelect = "reload"
  103. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  104. </li>
  105. <li class="sn" style="padding-left: 5px;color:red;">启用状态:</li>
  106. <li class="sv">
  107. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.SYS_STATUS, new DropdownListOptions
  108. {
  109. ID = "DictionaryRecordStatus",
  110. Name = "DictionaryRecordStatus",
  111. BindType = DropdownListBindType.SelectAll,
  112. SelectedValue = (int)EMIS.ViewModel.SYS_STATUS.USABLE,
  113. OnSelect = "reload"
  114. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  115. </li>
  116. </ul>
  117. </div>
  118. </div>
  119. </form>
  120. <div class="p_title">
  121. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">专业信息列表</div>
  122. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  123. </div>
  124. @Html.PositionBatchModify()
  125. <div class="search_list">
  126. @Html.DataGrid(new DataGridOptions
  127. {
  128. Columns = new List<DataGridColumn>()
  129. {
  130. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyID" },
  131. new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Handle="edit", Width=0.06 },
  132. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  133. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.05 },
  134. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.05 },
  135. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  136. new BoundFieldColumn { FieldName="ScienceclassName", HeaderText="专业科类", Align=AlignStyle.Center, OrderFieldName="ScienceclassID", Width=0.05 },
  137. new BoundFieldColumn { FieldName="PropertyName", HeaderText="专业属性", Align=AlignStyle.Center, OrderFieldName="PropertyID", Width=0.05 },
  138. //new BoundFieldColumn { FieldName="StandardTitleName", HeaderText="专业称号", Align=AlignStyle.Center, OrderFieldName="StandardTitle", Width=0.05 },
  139. //new BoundFieldColumn { FieldName="StandardLevelName", HeaderText="称号级别", Align=AlignStyle.Center, OrderFieldName="StandardLevel", Width=0.05 },
  140. new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="启用状态", Align=AlignStyle.Center, OrderFieldName="RecordStatus", Width=0.04 },
  141. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=6 }
  142. },
  143. CustomerRowStyleFun = "SetRedGrid",
  144. IsCheckOnSelect = true,
  145. DataSourceUrl = Url.Content("~/Specialty/List"),
  146. ID = "dgSpecialtyList",
  147. IsPagination = true,
  148. IsShowRowNumbers = true,
  149. IsSingleSelect = false
  150. })
  151. </div>
  152. </div>