List.cshtml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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/StudentWeb/InfoCenter/PostPractice.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_title">
  13. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  14. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  15. </div>
  16. <div class="search_list">
  17. @using (Ajax.BeginForm("Edit", "PostPractice", new AjaxOptions
  18. {
  19. OnSuccess = "EMISFunction.FormSuccess",
  20. OnBegin = "EMISFunction.FormSubmit",
  21. OnComplete = "EMISFunction.FormComplete"
  22. }))
  23. {
  24. @Html.DataGrid(new DataGridOptions
  25. {
  26. Columns = new List<DataGridColumn>()
  27. {
  28. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentPostPracticeID", IsHidden=true },
  29. new TextBoxColumn { FieldName="PracticePlace", HeaderText="实习地点", Align=AlignStyle.Center, Width=0.1 },
  30. new TextBoxColumn { FieldName="StartYear", HeaderText="开始年份", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
  31. Align=AlignStyle.Center, Width=0.03 },
  32. new TextBoxColumn { FieldName="StartMonth", HeaderText="月", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
  33. Align=AlignStyle.Center, Width=0.02 },
  34. new TextBoxColumn { FieldName="EndYear", HeaderText="至年", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
  35. Align=AlignStyle.Center, Width=0.03 },
  36. new TextBoxColumn { FieldName="EndMonth", HeaderText="月", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
  37. Align=AlignStyle.Center, Width=0.02 },
  38. new TextBoxColumn { FieldName="PracticeMentor", HeaderText="指导教师", Align=AlignStyle.Center, Width=0.04 },
  39. new TextBoxColumn { FieldName="PracticeContent", HeaderText="实习内容", Align=AlignStyle.Center, Width=0.2 },
  40. new TextBoxColumn { FieldName="SelfAppraise", HeaderText="自我鉴定", Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsPostBack = true,
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/PostPractice/List"),
  45. ID = "dgStudentPostPracticeList",
  46. IsPagination = false,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. IsAutoHeight = false,
  50. })
  51. }
  52. </div>
  53. </div>