List.cshtml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "List";
  7. ComboGridOptions cgopCollege = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "CollegeID",
  11. OnSelect = "reload",
  12. Name = "CollegeDropdown",
  13. ID = "CollegeDropdown",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="Name", HeaderText=RSL.Get("CollegeName"), Align=AlignStyle.Center }
  20. },
  21. OnLoadSuccessFun = "reload",
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. ComboGridOptions cgopStandard = new ComboGridOptions
  30. {
  31. TextField = "StandardName",
  32. ValueField = "StandardID",
  33. OnSelect = "reload",
  34. Name = "StandardDictionaryDropDown",
  35. ID = "StandardDictionaryDropDown",
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  50. {
  51. TextField = "LearnSystem",
  52. ValueField = "LearnSystem",
  53. OnSelect = "reload",
  54. Name = "DictionaryLearnSystem",
  55. ID = "DictionaryLearnSystem",
  56. GridOptions = new DataGridOptions
  57. {
  58. Columns = new List<DataGridColumn>()
  59. {
  60. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  61. },
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  64. IsPagination = true,
  65. IsShowRowNumbers = true,
  66. IsSingleSelect = false,
  67. IsShowHeader = false
  68. }
  69. };
  70. }
  71. @section scripts{
  72. <script src="~/Scripts/Business/EvaluationManage/EvaluationOpenControl.js" type="text/javascript"></script>
  73. <script type="text/javascript">
  74. var nonSelect = "@DropdownList.SELECT_ALL";
  75. var notSubmitStatus = "@((int)EMIS.ViewModel.EM_ExecuteStatus.NotSubmited)";
  76. </script>
  77. }
  78. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  79. @Html.Position()
  80. <div class="p_SearchTitle">
  81. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  82. 查询条件</div>
  83. </div>
  84. <form id="formQuery" method="post" action="@Url.Content("~/StudentCharge/Excel")">
  85. @Html.PositionCondition()
  86. <div class="search_keyword">
  87. <div class="search_input">
  88. <ul>
  89. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  90. <li class="sv">
  91. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgOpenControl" } })
  92. </li>
  93. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  94. <li class="sv">
  95. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgOpenControl" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">年级:</li>
  98. <li class="sv">
  99. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentYearID() }, new Dictionary<string, string> { { "data-condition", "dgOpenControl" } })
  100. </li>
  101. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  102. <li class="sv">
  103. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgOpenControl" } })
  104. </li>
  105. </ul>
  106. <ul>
  107. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  108. <li class="sv">
  109. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgOpenControl" } })
  110. </li>
  111. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  112. <li class="sv">
  113. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { Name = "DictionaryLearningform", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgOpenControl" } })
  114. </li>
  115. <li class="sn" style="padding-left: 5px;">学制:</li>
  116. <li class="sv">
  117. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgOpenControl" } })
  118. </li>
  119. </ul>
  120. </div>
  121. </div>
  122. </form>
  123. <div class="p_title">
  124. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  125. 应收名单列表</div>
  126. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  127. </div>
  128. @Html.PositionBatchModify()
  129. <div class="search_list">
  130. @Html.DataGrid(new DataGridOptions
  131. {
  132. Columns = new List<DataGridColumn>()
  133. {
  134. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationGradeControlID" },
  135. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  136. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.04 },
  137. new BoundFieldColumn { FieldName="GrademajorCode", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.12},
  138. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业", Align=AlignStyle.Center, Width=0.12},
  139. new BoundFieldColumn { FieldName="StartTimeStr", HeaderText="开始日期", Align=AlignStyle.Center, Width=0.06 },
  140. new BoundFieldColumn { FieldName="EndTimeStr", HeaderText="结束日期", Align=AlignStyle.Center, Width=0.04 },
  141. new BoundFieldColumn { FieldName="EvaluationCount", HeaderText="可评次数", Align=AlignStyle.Center, Width=0.04}
  142. },
  143. IsCheckOnSelect = true,
  144. DataSourceUrl = Url.Content("~/EvaluationOpenControl/List"),
  145. ID = "dgOpenControl",
  146. IsPagination = true,
  147. IsShowRowNumbers = true,
  148. IsSingleSelect = false
  149. })
  150. </div>
  151. </div>