Attachment.cshtml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "AttachmentList";
  5. }
  6. @section scripts
  7. {
  8. <script type="text/javascript">
  9. function downLoad(rowIndex, rowData) {
  10. window.open(rowData.FileUrl);
  11. }
  12. </script>
  13. }
  14. <div class="search_list">
  15. <form id="formQuery" method="post">
  16. @Html.Hidden("hidScoreConvertByApplyID", Request["scoreConvertByApplyID"], new Dictionary<string, object> { { "data-condition", "dgScoreConvertByApplyAttachmentList" } })
  17. </form>
  18. @Html.DataGrid(new DataGridOptions
  19. {
  20. Columns = new List<DataGridColumn>()
  21. {
  22. new LinkButtonColumn { FieldName="FileName", HeaderText="附件名称", Align=AlignStyle.Center, Handle="downLoad" }
  23. },
  24. IsCheckOnSelect = true,
  25. DataSourceUrl = Url.Content("~/ScoreConvert/Attachment"),
  26. ID = "dgScoreConvertByApplyAttachmentList",
  27. IsPagination = true,
  28. IsShowRowNumbers = true,
  29. IsSingleSelect = false
  30. })
  31. </div>