List.cshtml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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/MinorPlanApprove.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("~/MinorPlanApprove/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", "dgMinorPlanApprove" } })
  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", "dgMinorPlanApprove" } })
  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", "dgMinorPlanApprove" } })
  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", "dgMinorPlanApprove" } })
  57. </li>*@
  58. @*导出数据*@
  59. <li style="display:none" class="sv" >
  60. <input id="GradeMinorApplicationID" name="GradeMinorApplicationID" 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="YearID", HeaderText="年级", Align=AlignStyle.Center, Handle="edit"},
  79. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center },
  80. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  81. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center},
  82. new BoundFieldColumn { FieldName="StudentLimit", HeaderText="人数上限", Align=AlignStyle.Center},
  83. new BoundFieldColumn { FieldName="CreateTime", HeaderText="申请时间", Align=AlignStyle.Center, Formatter= Formatter.LongDate},
  84. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="申请人", Align=AlignStyle.Center},
  85. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.CF_GrademinorApplication).Name, IDFieldName="GradeMinorApplicationID", HeaderText="状态", Align=AlignStyle.Center}
  86. },
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/MinorPlanApprove/List"),
  89. ID = "dgMinorPlanApprove",
  90. IsPagination = true,
  91. IsShowRowNumbers = true,
  92. IsSingleSelect = false
  93. })
  94. </div>
  95. </div>