List.cshtml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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 = "LearnSystemStr",
  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/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;">
  35. 查询条件</div>
  36. </div>
  37. <form id="formQuery" method="post" action="@Url.Content("~/Specialty/Excel")">
  38. @Html.PositionCondition()
  39. <div class="search_keyword">
  40. <div class="search_input">
  41. <ul>
  42. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  43. <li class="sv">
  44. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll,
  45. new ComboGridOptions
  46. {
  47. Name = "DictionaryStandard",
  48. OnSelect = "QueryStandardDropdownList",
  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. },
  58. new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  59. </li>
  60. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("EducationID"):</li>
  61. <li class="sv">
  62. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  63. new ComboGridOptions
  64. {
  65. ID = "DictionaryEducation",
  66. Name = "DictionaryEducation",
  67. OnSelect = "QueryEducationDropdownList"
  68. },
  69. new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  70. </li>
  71. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  72. <li class="sv">
  73. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  74. new ComboGridOptions
  75. {
  76. ID = "DictionaryLearningform",
  77. Name = "DictionaryLearningform",
  78. OnSelect = "QueryLearningformDropdownList"
  79. },
  80. new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  81. </li>
  82. <li class="sn" style="padding-left: 5px;">学制:</li>
  83. <li class="sv">
  84. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  85. </li>
  86. </ul>
  87. <ul>
  88. <li class="sn" style="padding-left: 5px;">专业科类:</li>
  89. <li class="sv">
  90. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, DropdownListBindType.SelectAll,
  91. new ComboGridOptions
  92. {
  93. ID = "DictionaryScienceclass",
  94. Name = "DictionaryScienceclass",
  95. OnSelect = "reload"
  96. },
  97. new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  98. </li>
  99. <li class="sn" style="padding-left: 5px;">专业属性:</li>
  100. <li class="sv">
  101. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Property, DropdownListBindType.SelectAll,
  102. new ComboGridOptions
  103. {
  104. ID = "DictionaryProperty",
  105. Name = "DictionaryProperty",
  106. OnSelect = "reload"
  107. },
  108. new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  109. </li>
  110. <li class="sn" style="padding-left: 5px;color:red;">启用状态:</li>
  111. <li class="sv">
  112. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.SYS_STATUS, new DropdownListOptions
  113. {
  114. ID = "DictionaryRecordStatus",
  115. Name = "DictionaryRecordStatus",
  116. BindType = DropdownListBindType.SelectAll,
  117. OnSelect = "reload"
  118. },
  119. new Dictionary<string, string> { { "data-condition", "dgSpecialtyList" } })
  120. </li>
  121. </ul>
  122. </div>
  123. </div>
  124. </form>
  125. <div class="p_title">
  126. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  127. 专业信息列表</div>
  128. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  129. </div>
  130. @Html.PositionBatchModify()
  131. <div class="search_list">
  132. @Html.DataGrid(new DataGridOptions
  133. {
  134. Columns = new List<DataGridColumn>()
  135. {
  136. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyID" },
  137. new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardID", Handle="edit", Width=0.06 },
  138. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  139. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.05 },
  140. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.05 },
  141. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  142. new BoundFieldColumn { FieldName="ScienceclassName", HeaderText="专业科类", Align=AlignStyle.Center, Width=0.05 },
  143. new BoundFieldColumn { FieldName="PropertyName", HeaderText="专业属性", Align=AlignStyle.Center, Width=0.05 },
  144. //new BoundFieldColumn { FieldName="StandardTitleName", HeaderText="专业称号", Align=AlignStyle.Center, Width=0.05 },
  145. //new BoundFieldColumn { FieldName="StandardLevelName", HeaderText="称号级别", Align=AlignStyle.Center, Width=0.05 },
  146. new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="启用状态", Align=AlignStyle.Center, Width=0.04 },
  147. new BoundFieldColumn { FieldName="Remarks", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=6 }
  148. },
  149. CustomerRowStyleFun = "SetRedGrid",
  150. IsCheckOnSelect = true,
  151. DataSourceUrl = Url.Content("~/Specialty/List"),
  152. ID = "dgSpecialtyList",
  153. IsPagination = true,
  154. IsShowRowNumbers = true,
  155. IsSingleSelect = false
  156. })
  157. </div>
  158. </div>