List.cshtml 5.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgopCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. OnSelect = "reload",
  10. Name = "CollegeDropdown",
  11. ID = "CollegeDropdown",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  18. },
  19. OnLoadSuccessFun = "reload",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. }
  28. @section scripts{
  29. <script src="~/Scripts/Business/MinorManage/MinorPlanManage/MinorPlanApply.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("~/MinorPlanApply/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.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgMinorPlanApply" } })
  45. </li>
  46. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  47. <li class="sv">
  48. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgMinorPlanApply" } })
  49. </li>
  50. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  51. <li class="sv">
  52. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgMinorPlanApply" } })
  53. </li>
  54. <li class="sn" style="padding-left: 5px;">审批状态:</li>
  55. <li class="sv">
  56. @Html.DropdownList(new DropdownListOptions { Name = "DictionaryApprovalStatus", SelectedValue = BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.CF_GrademinorApplication).Name), ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.CF_GrademinorApplication).Name), BindType = DropdownListBindType.SelectAll, OnLoadSuccess = "reload", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgMinorPlanApply" } })
  57. </li>
  58. @*导出数据*@
  59. <li style="display:none" class="sv" >
  60. <input id="MinorCourseID" name="MinorCourseID" type="text" value="" />
  61. </li>
  62. </ul>
  63. </div>
  64. </div>
  65. </form>
  66. <div class="p_title">
  67. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  68. 辅修申请列表</div>
  69. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  70. </div>
  71. @Html.PositionBatchModify()
  72. <div class="search_list">
  73. @Html.DataGrid(new DataGridOptions
  74. {
  75. Columns = new List<DataGridColumn>()
  76. {
  77. new CheckBoxFieldColumn{ HeaderText="", FieldName="GradeMinorApplicationID" },
  78. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="edit"},
  79. new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center},
  80. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center },
  81. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  82. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center},
  83. new BoundFieldColumn { FieldName="StudentLimit", HeaderText="人数上限", Align=AlignStyle.Center},
  84. new BoundFieldColumn { FieldName="CreateTime", HeaderText="申请时间", Align=AlignStyle.Center, Formatter= Formatter.LongDate},
  85. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="申请人", Align=AlignStyle.Center},
  86. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.CF_GrademinorApplication).Name, IDFieldName="GradeMinorApplicationID", HeaderText="状态", Align=AlignStyle.Center}
  87. },
  88. IsCheckOnSelect = true,
  89. DataSourceUrl = Url.Content("~/MinorPlanApply/List"),
  90. ID = "dgMinorPlanApply",
  91. IsPagination = true,
  92. IsShowRowNumbers = true,
  93. IsSingleSelect = false
  94. })
  95. </div>
  96. </div>