EmailLookDetail.cshtml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @{
  2. ViewBag.Title = "查看邮件";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var keyValue = '@ViewBag.keyValue';
  7. var contentId = '@ViewBag.contentId';
  8. $(function () {
  9. $("#EmailContent").height($(window).height() - 195);
  10. initControl();
  11. })
  12. //初始化控件
  13. function initControl() {
  14. if (keyValue) {
  15. $.ajax({
  16. url: "../../PublicInfoManage/Email/ReadEmail",
  17. data: { keyValue: keyValue, IsRead: 1 },
  18. type: "post",
  19. dataType: "json",
  20. success: function (data) {
  21. $.currentIframe().InitialEmailNavCount();
  22. $.currentIframe().$("#gridTable").trigger("reloadGrid");
  23. }
  24. });
  25. }
  26. $.SetForm({
  27. url: "../../PublicInfoManage/Email/GetEmailFormJson",
  28. param: { keyValue: contentId },
  29. success: function (data) {
  30. $("#Theme").html(data.Theme).css("color", data.ThemeColor);
  31. $("#SenderName").html(data.SenderName);
  32. $("#SenderTime").html(data.SenderTimeName)
  33. $("#AddresssHtml").html(data.AddresssHtml);
  34. $("#EmailContent").html(data.EmailContent);
  35. $(".mail-send-address-del").remove();
  36. $('.mail-send-addresss').css("padding-top", "0");
  37. }
  38. });
  39. }
  40. </script>
  41. <div class="border-bottom" style="padding-top: 10px; background: #F5F5F5; padding-bottom: 8px; height: 130px;">
  42. <div style="position: absolute; right: 38px; top: 38px;">
  43. <img style="height: 50px; width: 50px;" src="~/Content/images/80_1.png" />
  44. </div>
  45. <div id="Theme" style="padding-bottom: 8px; padding-left: 18px; font-weight: bold; font-size: 16px;">关于2015.9.22服务故障的事故报告与赔偿声明</div>
  46. <table class="form" style="color: #95A0AA;">
  47. <tr>
  48. <th class="formTitle" style="width: 75px; padding-bottom: 4px;">发件人:</th>
  49. <td class="formValue" style="padding: 0px; padding-bottom: 4px;"><span id="SenderName" style="color: #5fa207;"></span>
  50. </td>
  51. </tr>
  52. <tr>
  53. <th class="formTitle" style="width: 75px; padding-bottom: 4px;">时 间:</th>
  54. <td class="formValue" style="padding: 0px; padding-bottom: 4px;">
  55. <div id="SenderTime">2015年9月22日(星期二) 晚上7:50</div>
  56. </td>
  57. </tr>
  58. <tr>
  59. <th class="formTitle" style="width: 75px; padding-bottom: 4px;">收件人:</th>
  60. <td class="formValue" style="padding: 0px; padding-bottom: 4px;">
  61. <div id="AddresssHtml"></div>
  62. </td>
  63. </tr>
  64. <tr>
  65. <th class="formTitle" style="width: 75px; padding-bottom: 4px;">附 件:</th>
  66. <td class="formValue" style="padding: 0px; padding-bottom: 4px;">0 个(点击查看)
  67. </td>
  68. </tr>
  69. </table>
  70. </div>
  71. <div id="EmailContent" style="margin: 5px; overflow: auto; padding: 10px; padding-bottom: 0px;">
  72. </div>
  73. <div class="form-button" id="wizard-actions">
  74. <a class="btn btn-success" onclick="AcceptClick(1)">回复邮件</a>
  75. </div>