76 lines
2.7 KiB
Plaintext
76 lines
2.7 KiB
Plaintext
@model WX.CRM.Model.Entity.BAS_NOTICE
|
|
@using WX.CRM.WebHelper;
|
|
|
|
@{
|
|
ViewBag.Title = "通知编辑";
|
|
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
|
|
|
|
}
|
|
<script type="text/javascript" charset="utf-8" src="/Scripts/ueditor/ueditor.config.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="/Scripts/ueditor/ueditor.all.min.js"> </script>
|
|
<script type="text/javascript" charset="utf-8" src="/Scripts/ueditor/lang/zh-cn/zh-cn.js"></script>
|
|
|
|
|
|
<div class="mvctool bgb">
|
|
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
|
|
</div>
|
|
|
|
@using (Html.BeginForm("Edit", "Notice", null, FormMethod.Post, new { Id = "CreateForm" }))
|
|
{
|
|
@Html.ValidationSummary(true)
|
|
<table class="fromEditTable ">
|
|
|
|
<tr>
|
|
<td style="width:80px;">
|
|
标题
|
|
</td>
|
|
<td style="width:310px">
|
|
@Html.HiddenFor(m => m.PKID)
|
|
@Html.HiddenFor(m => m.CTIME)
|
|
@Html.TextBoxFor(m => m.TITLE)
|
|
</td>
|
|
<td width="120px">
|
|
@Html.ValidationMessageFor(m =>m.TITLE)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width:80px;">
|
|
内容:
|
|
</td>
|
|
<td colspan="2" style="width:430px">
|
|
<script id="CONTENT" name="CONTENT" type="text/plain" style="width:650px;height:310px;">
|
|
@Html.Raw(Model.CONTENT)
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
}
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#btnSave").click(function () {
|
|
if ($("#CreateForm").valid()) {
|
|
$.r_ajax({
|
|
url: "/Base/Notice/Edit",
|
|
type: "Post",
|
|
data: { "TITLE": $('#TITLE').val(), "CONTENT": UE.getEditor('CONTENT').getContent(), "PKID": $('#PKID').val(), "CTIME": $('#CTIME').val() },
|
|
dataType: "json",
|
|
loading: true,
|
|
success: function (data) {
|
|
if (data.type == 1) {
|
|
window.parent.frameReturnByMes(data.message);
|
|
window.parent.frameReturnByReload(true);
|
|
window.parent.frameReturnByClose();
|
|
}
|
|
else {
|
|
$.messager.alert("警告", data.message, "error");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
return false;
|
|
});
|
|
|
|
var ue = UE.getEditor('CONTENT');
|
|
});
|
|
|
|
</script> |