SOCDetail.cshtml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "Detail";
  6. Guid? SOCID = ViewBag.SOCID;
  7. var list = ViewBag.FileList;
  8. }
  9. @section scripts{
  10. <script type="text/javascript">
  11. var nonSelect = "@DropdownList.SELECT_ALL";
  12. var mnu = "";
  13. //加载
  14. $(function () {
  15. mnu = $.SystemGeneral.getUrlParam("MNU");
  16. });
  17. function showAttachment(rowIndex, rowValue) {
  18. var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOC/AttachmentList?detailID=' + rowValue.SOCDetailID + '&MNU=' + mnu;
  19. $.popupTopWindow('附件列表', redirectTo, 500, 350, null, null);
  20. }
  21. </script>
  22. }
  23. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  24. @using (Ajax.BeginForm(new AjaxOptions
  25. {
  26. OnSuccess = "EMISFunction.FormSuccess",
  27. OnBegin = "EMISFunction.FormSubmit",
  28. OnComplete = "EMISFunction.FormComplete"
  29. }))
  30. {
  31. @Html.Position()
  32. <div class="search_list">
  33. @Html.DataGrid(new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCDetailID" },
  38. new BoundFieldColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=0.05 },
  39. new BoundFieldColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=0.04 },
  40. new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=0.04 },
  41. new BoundFieldColumn { FieldName="Description", HeaderText="成果描述", Align=AlignStyle.Center, Width=0.16 },
  42. new BoundFieldColumn { FieldName="IsGroupStr", HeaderText="是否分组", Align=AlignStyle.Center, Width=0.04 },
  43. new LinkButtonColumn { FieldName="SOCDetailAttachment", HeaderText="附件说明", Align=AlignStyle.Center, Width=0.1, Handle="showAttachment" },
  44. new BoundFieldColumn { FieldName="StartTimeStr", HeaderText="开始上传时间", Align=AlignStyle.Center, Width=0.06 },
  45. new BoundFieldColumn { FieldName="EndTimeStr", HeaderText="截止上传时间", Align=AlignStyle.Center, Width=0.06 },
  46. },
  47. IsCheckOnSelect = false,
  48. DataSourceUrl = Url.Content("~/SOC/SOCDetail?SOCID=" + SOCID),
  49. ID = "dgSOCDetailList",
  50. IsPagination = true,
  51. IsShowRowNumbers = true,
  52. IsSingleSelect = false,
  53. IsAutoHeight = false,
  54. })
  55. </div>
  56. }
  57. </div>