List.cshtml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/StudentManage/OnlineChecking/OpenObject.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @Html.Position()
  14. <div class="p_SearchTitle">
  15. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  16. </div>
  17. <form id="formQuery" method="post" action="@Url.Content("~/OpenObject/Excel")">
  18. @Html.PositionCondition()
  19. <div class="search_keyword">
  20. <div class="search_input">
  21. <ul>
  22. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationName"):</li>
  23. <li class="sv">
  24. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  25. new ComboGridOptions
  26. {
  27. ID = "DictionaryEducation",
  28. Name = "DictionaryEducation",
  29. OnSelect = "reload"
  30. }, new Dictionary<string, string> { { "data-condition", "dgStudentEditObjectList" } })
  31. </li>
  32. <li class="sn" style="padding-left: 5px;">开放学年:</li>
  33. <li class="sv">
  34. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, DropdownListBindType.SelectAll,
  35. new ComboGridOptions
  36. {
  37. ID = "DictionarySchoolyearNum",
  38. Name = "DictionarySchoolyearNum",
  39. OnSelect = "reload"
  40. }, new Dictionary<string, string> { { "data-condition", "dgStudentEditObjectList" } })
  41. </li>
  42. <li class="sn" style="padding-left: 5px;color:red;">日期范围:</li>
  43. <li class="sv">
  44. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "txtDateRange"}, new Dictionary<string, string> { { "data-condition", "dgStudentEditObjectList" } })
  45. </li>
  46. @*<li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  47. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>*@
  48. </ul>
  49. </div>
  50. </div>
  51. </form>
  52. <div class="p_title">
  53. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  54. 开放对象列表</div>
  55. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  56. </div>
  57. @Html.PositionBatchModify()
  58. <div class="search_list">
  59. @Html.DataGrid(new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentEditObjectsID" },
  64. new LinkButtonColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Handle="edit", OrderFieldName="EducationID", Width=0.05 },
  65. new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开放学年", Align=AlignStyle.Center, OrderFieldName="SchoolyearNumID", Width=0.05 },
  66. new BoundFieldColumn { FieldName="Starttime", HeaderText="开始时间", Align=AlignStyle.Center, Formatter = Formatter.LongDate, Width=0.1 },
  67. new BoundFieldColumn { FieldName="Endtime", HeaderText="结束时间", Align=AlignStyle.Center, Formatter = Formatter.LongDate, Width=0.1 },
  68. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02 },
  69. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 },
  70. new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 },
  71. new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate }
  72. },
  73. IsCheckOnSelect = true,
  74. DataSourceUrl = Url.Content("~/OpenObject/List"),
  75. ID = "dgStudentEditObjectList",
  76. IsPagination = true,
  77. IsShowRowNumbers = true,
  78. IsSingleSelect = false
  79. })
  80. </div>
  81. </div>