List.cshtml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/EvaluationManage/EvaluationEnter.js"></script>
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. @Html.Position()
  11. <div class="p_SearchTitle">
  12. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  13. 查询条件
  14. </div>
  15. </div>
  16. <form id="formQuery" method="post" action="@Url.Action("Excel")">
  17. @Html.PositionCondition()
  18. <div class="search_keyword">
  19. <div class="search_input">
  20. <ul>
  21. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  22. <li class="sv">
  23. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgEvaluationEnterList" } })
  24. </li>
  25. </ul>
  26. </div>
  27. </div>
  28. </form>
  29. <div class="p_title">
  30. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  31. 进入评价列表
  32. </div>
  33. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  34. </div>
  35. <div class="search_list">
  36. @Html.DataGrid(new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationEnterID" },
  41. new LinkButtonColumn { Text="进入评价", HeaderText="进入评价", Align=AlignStyle.Center, Handle="edit", Width=0.04 },
  42. new BoundFieldColumn { FieldName="EvaluationSettingCode", HeaderText="评价编号", Align=AlignStyle.Center, Width=0.1 },
  43. //new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.1 },
  44. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  45. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  46. new BoundFieldColumn { FieldName="UserCodes", HeaderText="被评教师编号", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  47. new BoundFieldColumn { FieldName="UserNames", HeaderText="被评教师", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  48. new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04 },
  49. new BoundFieldColumn { FieldName="EvaluationTableTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.04 },
  50. new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.05, OverflowLength=8 },
  51. new BoundFieldColumn { FieldName="EvaluationTableID", HeaderText="评价表ID", Align=AlignStyle.Center,IsHidden=true },
  52. new BoundFieldColumn { FieldName="EvaluationSettingID", HeaderText="评价设定ID", Align=AlignStyle.Center,IsHidden=true },
  53. new BoundFieldColumn { FieldName="IsEvaluation", HeaderText="是否可评", Align=AlignStyle.Center,IsHidden=true },
  54. new BoundFieldColumn { FieldName="EvaluationCount", HeaderText="已评次数", Align=AlignStyle.Center, Width=0.04 }
  55. },
  56. PageSize = 30,
  57. IsCheckOnSelect = true,
  58. DataSourceUrl = Url.Content("~/EvaluationEnter/List"),
  59. ID = "dgEvaluationEnterList",
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false
  63. })
  64. </div>
  65. </div>