GraduationConditionList.cshtml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "GraduationConditionList";
  5. Guid? graduationConditionPackageID = new Guid(Request["GraduationConditionPackageID"]);
  6. }
  7. @section scripts{
  8. <script type="text/javascript">
  9. //获取选中的数据(All)
  10. function validChooseAll() {
  11. var d = [];
  12. $.each($("#dgGraduationConditionList").cmsXDataTable("getSelections"), function (index) {
  13. d.push(this);
  14. });
  15. return d;
  16. }
  17. //选中
  18. function GraduationCondition_Confirm() {
  19. var listData = validChooseAll();
  20. if (listData.length < 1) {
  21. $.messager.alert("系统提示", "请选择毕业条件。");
  22. return;
  23. }
  24. top.$("#@(Request["WindowID"])").data("resultData", validChooseAll());
  25. top.$("#@(Request["WindowID"])").dialog("close");
  26. }
  27. </script>
  28. }
  29. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  30. <div class="p_title">
  31. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  32. @*毕业条件列表*@
  33. </div>
  34. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  35. <div class="current_navbar toolbar">
  36. <div class="func_info">
  37. <a class="easyui-linkbutton" href="javascript:GraduationCondition_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  38. onfocus="this.blur()">选中</a>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <form id="formQuery" method="post">
  44. @*@Html.PositionCondition("GraduationConditionSelect", null)*@
  45. </form>
  46. <div class="search_list">
  47. @Html.DataGrid(new DataGridOptions
  48. {
  49. Columns = new List<DataGridColumn>()
  50. {
  51. new CheckBoxFieldColumn{ HeaderText="", FieldName="GraduationConditionID" },
  52. new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 },
  53. new BoundFieldColumn { FieldName="Title", HeaderText="条件名称", Align=AlignStyle.Center, Width=0.2 },
  54. new CheckButtonColumn { FieldName="IsEnable", HeaderText="启用状态", Align=AlignStyle.Center, Width=0.04, EnableFieldName="false" }
  55. },
  56. PageSize = 15,
  57. IsCheckOnSelect = true,
  58. DataSourceUrl = Url.Content("~/GraduationConditionPackage/GraduationConditionList?GraduationConditionPackageID=" + graduationConditionPackageID),
  59. ID = "dgGraduationConditionList",
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false
  63. })
  64. </div>
  65. </div>