List.cshtml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions optCourse = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. OnSelect = "reload",
  10. Name = "cgbCourse",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  16. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions optUser = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "UserID",
  29. OnSelect = "reload",
  30. Name = "cgbUser",
  31. GridOptions = new DataGridOptions
  32. {
  33. Columns = new List<DataGridColumn>()
  34. {
  35. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.2 }
  36. },
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/Staff/List"),
  39. IsPagination = true,
  40. IsShowRowNumbers = true,
  41. IsSingleSelect = false,
  42. }
  43. };
  44. }
  45. @section scripts{
  46. <script src="~/Scripts/Business/PaymentManage/WorktimeAdjustment.js" 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. 查询条件
  53. </div>
  54. </div>
  55. <form id="formQuery" method="post" action="@Url.Content("~/WorktimeAdjustment/Excel")">
  56. @Html.PositionCondition()
  57. <div class="search_keyword">
  58. <div class="search_input">
  59. <ul>
  60. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  61. <li class="sv">
  62. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdjustmentList" } })
  63. </li>
  64. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  65. <li class="sv">
  66. @Html.ComboGrid(optCourse, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdjustmentList" } })
  67. </li>
  68. <li class="sn" style="padding-left: 5px;">教师:</li>
  69. <li class="sv">
  70. @Html.ComboGrid(optUser, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdjustmentList" } })
  71. </li>
  72. <li class="sn" style="padding-left: 5px;">登记类型:</li>
  73. <li class="sv">
  74. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.TP_WorktimeAdjustmentType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlWorktimeAdjustmentType", ID = "ddlWorktimeAdjustmentType", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgWorktimeAdjustmentList" } })
  75. </li>
  76. </ul>
  77. </div>
  78. </div>
  79. <div class="p_title">
  80. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  81. 工作量调整
  82. </div>
  83. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  84. </div>
  85. </form>
  86. @Html.PositionBatchModify()
  87. <div class="search_list">
  88. @Html.DataGrid(new DataGridOptions
  89. {
  90. Columns = new List<DataGridColumn>()
  91. {
  92. new CheckBoxFieldColumn{ HeaderText="", FieldName="WorktimeAdjustmentID" },
  93. new BoundFieldColumn { FieldName="AdjustDate", HeaderText="记录时间", Align=AlignStyle.Center, Formatter=Formatter.OnlyYearMonthDay, Width=60 },
  94. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=60 },
  95. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班级", Align=AlignStyle.Center, Width=240 },
  96. new BoundFieldColumn { FieldName="TeacherName", HeaderText="教师", Align=AlignStyle.Center, Width=50 },
  97. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程编码", Align=AlignStyle.Center, Width=50 },
  98. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=100 },
  99. new BoundFieldColumn { FieldName="WorktimeAdjustmentTypeDesc", HeaderText="登记类型", Align=AlignStyle.Center, Width=60 },
  100. new BoundFieldColumn { FieldName="Worktime", HeaderText="课时数", Align=AlignStyle.Center, Width=40 }
  101. },
  102. IsCheckOnSelect = true,
  103. DataSourceUrl = Url.Content("~/WorktimeAdjustment/List"),
  104. ID = "dgWorktimeAdjustmentList",
  105. IsPagination = true,
  106. IsShowRowNumbers = true,
  107. IsSingleSelect = false
  108. })
  109. </div>
  110. </div>