123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- @{
- ViewBag.Title = "Show";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- @using MES.Production.Service;
- @using Central.Control.Domain;
- @using Ant.Service.Common;
- @using Ant.Service.Common.Enums;
- @model SYS_MSG
- @{
- var attach = ViewData["Attach"] == null ? "" : ViewData["Attach"] as dynamic;
- var readUser = ViewData["ReadUser"] == null ? "" : ViewData["ReadUser"] as dynamic;
- }
- <style>
- body{background-color:#fff;}
- .tab-pane .form-group .under {
- border-bottom: 1px solid #ccc;
- min-height: 18px;
- float: left;
- margin-top: 7px;
- font-weight: normal;
- }
- .tab-pane .form-group .col-sm-1 {
- width: 12%;
- font-weight: normal;
- }
- </style>
- <div class="wrapper-content form-horizontal">
- <div class="panel-body" style="height:420px; overflow:auto;">
- <div class="tab-content">
- <div id="tab-1" class="tab-pane active">
- <div class="form-group">
- <label class="col-sm-1 control-label">标题</label>
- <label class="col-sm-10 under">
- @Model.MSGNAME
- </label>
- </div>
- <div class="form-group">
- <label class="col-sm-1 control-label">发件人</label>
- <label class="col-sm-10 under" style="word-break:break-all;">
- @{
- string per = readUser;
- string res = string.Empty;
- if (!string.IsNullOrEmpty(per))
- {
- for (int i = 0; i < per.Split(',').Length; i++)
- {
- if (per.Split(',')[i].ToString().Split('|')[0] == "0")
- {
- res += " <i class=\"im-envelop3\" style=\"color:#f0ad4e;\"></i>";
- }
- else
- {
- res += " <i class=\"im-envelop-opened\" style=\"color:#1ab394;\"></i>";
- }
- res += per.Split(',')[i].ToString().Split('|')[1];
- }
- }
- @Html.Raw(res);
- }
- </label>
- </div>
- <div class="form-group">
- <label class="col-sm-1 control-label">正文</label>
- <div class="panel-content col-sm-10 under">
- @Html.Raw(Model.MSGCONTENT)
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-1 control-label">附件</label>
- <label class="col-sm-10 under">
- @{
- //处理附件
- if (attach != null)
- {
- foreach (var item in attach)
- {
- <a href="@item.UPFILEPATH" target="_blank">@item.UPOLDNAME</a>
- <input type="hidden" name="attchs" value="@item.UPFILEPATH" />
- <br />
- }
- }
- }
- </label>
- </div>
- </div>
- </div>
- </div>
- <div class="hr-line-dashed" style="margin:0;">
- <div class="form-group m20" style="text-align:center;">
- <div>
- <button class="btn btn-primary btn-save"><i class="fa fa-check"></i> <span>关 闭</span></button>
- </div>
- </div>
- </div>
- </div>
- @section scripts{
- <script type="text/javascript">
- $('.btn-save').click(function () {
- dig.remove();
- });
- </script>
- }
|