@{ ViewBag.Title = "Detail"; 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; } @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" })) {
@Html.TextBoxFor(p => p.MSGNAME, new { @class = "form-control", @placeholder = "请输入标题", @maxlength = "200", @datatype = "*1-200", @nullmsg = "请输入标题!", @errormsg = "请输入标题!最长不能超过200个字符" })
@{ var fromuser = ViewData["userid"] as string; } @if (!string.IsNullOrEmpty(fromuser)) { @Html.Raw(fromuser.Split('|')[1]); } @Html.Hidden("hidsendUserid", (!string.IsNullOrEmpty(fromuser)?fromuser.Split('|')[0]:""))
@Html.TextAreaFor(p => p.MSGCONTENT, new { @rows = "3", @cols = "5" })
@Html.TextBox("SendTimer", null, new { @class = "form-control", @maxlength = "12", @onclick = "ldate('SendTimer','YYYY-MM-DD hh:mm:ss')", @style = "width:240px;float:left;" })
@{ //处理附件 if (attach != null) { foreach (var item in attach) { } } }
操作 名称 大小
@item.UPOLDNAME @item.UPFILESIZE.ToString()@item.UPFILEUNIT
} @section scripts{ }