List.cshtml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "UserID",
  9. Name = "StaffComboGrid",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. // new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Width=0.1, Align=AlignStyle.Center },
  15. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Width=0.3, Align=AlignStyle.Center }
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/Staff/List"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false
  22. }
  23. };
  24. ComboGridOptions cgopcollge = new ComboGridOptions
  25. {
  26. TextField = "Name",
  27. ValueField = "CollegeID",
  28. Name = "CollegeComboGrid",
  29. GridOptions = new DataGridOptions
  30. {
  31. Columns = new List<DataGridColumn>()
  32. {
  33. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
  34. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
  35. },
  36. IsCheckOnSelect = true,
  37. DataSourceUrl = Url.Content("~/College/List"),
  38. IsPagination = true,
  39. IsShowRowNumbers = true,
  40. IsSingleSelect = false
  41. }
  42. };
  43. }
  44. @section scripts{
  45. <script src="~/Scripts/Business/SchedulingManage/SchedulingSettings/TeacherScheduleSetting.js"
  46. type="text/javascript"></script>
  47. }
  48. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  49. @Html.Position()
  50. <div class="p_SearchTitle">
  51. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  52. 查询条件</div>
  53. </div>
  54. <div class="search_keyword">
  55. <div class="search_input">
  56. <ul>
  57. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  58. <li class="sv">
  59. @Html.ComboGrid(cgopcollge, new Dictionary<string, string> { { "data-condition", "dgTeacherScheduleSettingList" } })
  60. </li>
  61. <li class="sn" style="padding-left: 5px;">教职工:</li>
  62. <li class="sv">
  63. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgTeacherScheduleSettingList" } })
  64. </li>
  65. <li class="sn" style="padding-left: 5px;">教职工类别:</li>
  66. <li class="sv">
  67. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeacherType, new DropdownListOptions { Name = "DictionaryTeacherType", BindType = DropdownListBindType.SelectAll }, new Dictionary<string, string> { { "data-condition", "dgTeacherScheduleSettingList" } })
  68. </li>
  69. <li class="sn" style="padding-left: 5px;">在职状态:</li>
  70. <li class="sv">
  71. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_IncumbencyState, new DropdownListOptions { Name = "DictionaryIncumbencyState", BindType = DropdownListBindType.SelectAll }, new Dictionary<string, string> { { "data-condition", "dgTeacherScheduleSettingList" } })
  72. </li>
  73. <li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  74. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>
  75. </ul>
  76. <ul>
  77. <li class="sn" style="padding-left: 5px;">职称:</li>
  78. <li class="sv">
  79. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Title, new DropdownListOptions { Name = "DictionaryTitle", BindType = DropdownListBindType.SelectAll }, new Dictionary<string, string> { { "data-condition", "dgTeacherScheduleSettingList" } })
  80. </li>
  81. </ul>
  82. </div>
  83. </div>
  84. <div class="p_title">
  85. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  86. 教师可排时间设置列表</div>
  87. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  88. </div>
  89. <div class="search_list">
  90. @Html.DataGrid(new DataGridOptions
  91. {
  92. Columns = new List<DataGridColumn>()
  93. {
  94. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  95. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center , Handle="edit"},
  96. new BoundFieldColumn { FieldName="StaffName", HeaderText="教职工名称", Align=AlignStyle.Center },
  97. new BoundFieldColumn { FieldName="TeacherTypeName", HeaderText="教职工类型", Align=AlignStyle.Center },
  98. new BoundFieldColumn { FieldName="IncumbencyStateName", HeaderText="在职状态", Align=AlignStyle.Center },
  99. new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center },
  100. new BoundFieldColumn { FieldName="CollegeName", HeaderText="所在"+@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }
  101. },
  102. IsCheckOnSelect = true,
  103. DataSourceUrl = Url.Content("~/TeacherScheduleSetting/List"),
  104. ID = "dgTeacherScheduleSettingList",
  105. IsPagination = true,
  106. IsShowRowNumbers = true,
  107. IsSingleSelect = false
  108. })
  109. </div>
  110. </div>