List.cshtml 6.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="../../Scripts/Business/Studentfile/student.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <div class="p_SearchTitle">
  13. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  14. 查询条件</div>
  15. </div>
  16. <form id="formQuery" method="post" action="@Url.Content("~/Students/Excel")">
  17. @Html.PositionCondition()
  18. <div class="search_keyword">
  19. <div class="search_input">
  20. <ul>
  21. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  22. <li class="sv">
  23. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "queryCollege" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  24. </li>
  25. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  26. <li class="sv">
  27. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  28. </li>
  29. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  30. <li class="sv">
  31. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  32. </li>
  33. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  34. <li class="sv">
  35. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Standard, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "StandardDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  36. </li>
  37. </ul>
  38. <ul>
  39. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  40. <li class="sv">
  41. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "LearningformDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  42. </li>
  43. <li class="sn" style="padding-left: 5px;">年级:</li>
  44. <li class="sv">
  45. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Schoolyear, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "SchoolyearDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  46. </li>
  47. <li class="sn" style="padding-left: 5px;">在校状态:</li>
  48. <li class="sv">
  49. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "InSchoolStatusDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  50. </li>
  51. <li class="sn" style="padding-left: 5px;">是否毕业生:</li>
  52. <li class="sv">
  53. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "GeneralPurposeDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  54. </li>
  55. </ul>
  56. </div>
  57. </div>
  58. </form>
  59. <div class="p_title">
  60. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  61. 我的信息</div>
  62. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  63. </div>
  64. @*@Html.PositionBatchModify()*@
  65. <div class="search_list">
  66. @Html.DataGrid(new DataGridOptions
  67. {
  68. Columns = new List<DataGridColumn>()
  69. {
  70. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  71. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Handle="edit" },
  72. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  73. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center},
  74. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center , },
  75. new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center },
  76. new BoundFieldColumn { FieldName="GradeMajorName", HeaderText="年级专业", Align=AlignStyle.Center },
  77. new BoundFieldColumn { FieldName="Politics", HeaderText="政治面貌", Align=AlignStyle.Center },
  78. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center },
  79. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center },
  80. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center },
  81. new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center}
  82. },
  83. IsCheckOnSelect = true,
  84. DataSourceUrl = Url.Content("~/Students/List"),
  85. ID = "dgList",
  86. IsPagination = true,
  87. IsShowRowNumbers = true,
  88. IsSingleSelect = false,
  89. IsAutoHeight = false,
  90. })
  91. </div>
  92. </div>