RevShow.cshtml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @{
  2. ViewBag.Title = "RevShow";
  3. Layout = "~/Views/Shared/_Layout.cshtml";
  4. }
  5. @using MES.Production.Service;
  6. @using Central.Control.Domain;
  7. @using Ant.Service.Common;
  8. @using Ant.Service.Common.Enums;
  9. @model SYS_MSG
  10. @{
  11. var attach = ViewData["Attach"] == null ? "" : ViewData["Attach"] as dynamic;
  12. }
  13. <style>
  14. .tab-pane .form-group .under {
  15. border-bottom: 1px solid #ccc;
  16. min-height: 18px;
  17. float: left;
  18. margin-top: 7px;
  19. font-weight: normal;
  20. }
  21. .tab-pane .form-group .col-sm-1 {
  22. width: 12%;
  23. font-weight: normal;
  24. }
  25. body {
  26. background-color: #fff;
  27. }
  28. </style>
  29. @using (Ajax.BeginForm("Save", null, new AjaxOptions()
  30. {
  31. HttpMethod = "Post",
  32. OnBegin = "SubInfo.Loading",
  33. OnComplete = "SubInfo.Complate",
  34. OnFailure = "SubInfo.Failure",
  35. OnSuccess = "SubInfo.Success",
  36. }, new { @class = "form-horizontal dig-from" }))
  37. {
  38. <div class="wrapper-content">
  39. <div class="panel-body">
  40. <div class="tab-content">
  41. <div id="tab-1" class="tab-pane active">
  42. <div class="form-group">
  43. <label class="col-sm-1 control-label">标题</label>
  44. <label class="col-sm-10 under">
  45. @Model.MSGNAME
  46. @Html.Hidden("id", Model.ID)
  47. </label>
  48. </div>
  49. <div class="form-group">
  50. <label class="col-sm-1 control-label">发送人</label>
  51. <label class="col-sm-10 under">
  52. @ViewData["RevUser"]
  53. </label>
  54. </div>
  55. <div class="form-group">
  56. <label class="col-sm-1 control-label">正文</label>
  57. <div class="panel-content col-sm-10 under">
  58. @Html.Raw(Model.MSGCONTENT)
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label class="col-sm-1 control-label">附件</label>
  63. <label class="col-sm-10 under">
  64. @{
  65. //处理附件
  66. if (attach != null)
  67. {
  68. foreach (var item in attach)
  69. {
  70. <a href="@item.UPFILEPATH" target="_blank">@item.UPOLDNAME</a>
  71. <br />
  72. }
  73. }
  74. }
  75. </label>
  76. </div>
  77. </div>
  78. <div class="hr-line-dashed">
  79. <div class="form-group m20">
  80. <div class="col-sm-2 col-sm-offset-2">
  81. <button class="btn btn-primary btn-save" type="submit" id="reply"><i class="fa fa-check"></i> <span>回 复</span></button>
  82. <button class="btn btn-warning" id="btn-dig-close" type="button"><i class="im-undo2"></i> 取消返回</button>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. }
  90. @section scripts{
  91. <script type="text/javascript">
  92. //回复
  93. $('#reply').click(function () {
  94. dig.addModel('回复消息', '/Sys/Msg/RevDetail/?id=' + $('#id').val(), 900, 500, function () {
  95. dig.remove();
  96. });
  97. });
  98. </script>
  99. }