StudentExperience.cshtml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "StudentExperience";
  6. }
  7. @section scripts{
  8. <script src="../../Scripts/Business/Studentfile/StudentExperience.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;">
  14. 学生简历
  15. </div>
  16. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  17. </div>
  18. <div class="search_list">
  19. @using (Ajax.BeginForm("SaveStudentExperience", "Students", new AjaxOptions
  20. {
  21. OnSuccess = "EMISFunction.FormSuccess",
  22. OnBegin = "EMISFunction.FormSubmit",
  23. OnComplete = "EMISFunction.FormComplete"
  24. }))
  25. {
  26. @Html.DataGrid(new DataGridOptions
  27. {
  28. Columns = new List<DataGridColumn>()
  29. {
  30. new TextBoxColumn { FieldName="StartYear", HeaderText="开始年份", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
  31. Align=AlignStyle.Center, Width=0.05 },
  32. new TextBoxColumn { FieldName="StartMonth", HeaderText="月", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
  33. Align=AlignStyle.Center, Width=0.05 },
  34. new TextBoxColumn { FieldName="EndYear", HeaderText="至年", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
  35. Align=AlignStyle.Center, Width=0.05 },
  36. new TextBoxColumn { FieldName="EndMonth", HeaderText="月", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
  37. Align=AlignStyle.Center, Width=0.05 },
  38. new TextBoxColumn { FieldName="Experience", HeaderText="学习工作经历", Align=AlignStyle.Center,Width=0.75 }
  39. },
  40. IsPostBack = true,
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/Students/StudentExperienceList"),
  43. ID = "dgStudentExperienceList",
  44. IsPagination = false,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. IsAutoHeight = false,
  48. })
  49. }
  50. </div>
  51. </div>