123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- @{
- ViewBag.Title = "RevShow";
- 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;
- }
- <style>
- .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;
- }
- body {
- background-color: #fff;
- }
- </style>
- @using (Ajax.BeginForm("Save", null, new AjaxOptions()
- {
- HttpMethod = "Post",
- OnBegin = "SubInfo.Loading",
- OnComplete = "SubInfo.Complate",
- OnFailure = "SubInfo.Failure",
- OnSuccess = "SubInfo.Success",
- }, new { @class = "form-horizontal dig-from" }))
- {
- <div class="wrapper-content">
- <div class="panel-body">
- <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
- @Html.Hidden("id", Model.ID)
- </label>
- </div>
- <div class="form-group">
- <label class="col-sm-1 control-label">发送人</label>
- <label class="col-sm-10 under">
- @ViewData["RevUser"]
- </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>
- <br />
- }
- }
- }
- </label>
- </div>
- </div>
- <div class="hr-line-dashed">
- <div class="form-group m20">
- <div class="col-sm-2 col-sm-offset-2">
- <button class="btn btn-primary btn-save" type="submit" id="reply"><i class="fa fa-check"></i> <span>回 复</span></button>
- <button class="btn btn-warning" id="btn-dig-close" type="button"><i class="im-undo2"></i> 取消返回</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- }
- @section scripts{
- <script type="text/javascript">
- //回复
- $('#reply').click(function () {
- dig.addModel('回复消息', '/Sys/Msg/RevDetail/?id=' + $('#id').val(), 900, 500, function () {
- dig.remove();
- });
- });
- </script>
- }
|