TemplateDetail.cshtml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "StudentList";
  6. Guid? templateID = ViewBag.TemplateID;
  7. var list = ViewBag.FileList;
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. @using (Ajax.BeginForm(new AjaxOptions
  11. {
  12. OnSuccess = "EMISFunction.FormSuccess",
  13. OnBegin = "EMISFunction.FormSubmit",
  14. OnComplete = "EMISFunction.FormComplete"
  15. }))
  16. {
  17. @Html.Position()
  18. <div class="search_list">
  19. @Html.DataGrid(new DataGridOptions
  20. {
  21. Columns = new List<DataGridColumn>()
  22. {
  23. new BoundFieldColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=0.1 },
  24. new BoundFieldColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=0.05 },
  25. new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=0.05},
  26. new BoundFieldColumn { FieldName="Description", HeaderText="成果描述", Align=AlignStyle.Center, Width=0.12 },
  27. new BoundFieldColumn { FieldName="AttachmentName", HeaderText="附件说明", Align=AlignStyle.Center, Width=0.12 },
  28. new BoundFieldColumn { FieldName="IsGroupStr", HeaderText="是否分组", Align=AlignStyle.Center, Width=0.05 },
  29. },
  30. IsCheckOnSelect = false,
  31. DataSourceUrl = Url.Content("~/SOCTemplate/TemplateDetail?templateID=" + templateID),
  32. ID = "dgTemplateDetailList",
  33. IsPagination = true,
  34. IsShowRowNumbers = true,
  35. IsSingleSelect = false,
  36. IsAutoHeight = false,
  37. })
  38. </div>
  39. }
  40. </div>