TG.WXCRM.V4/WEB/Views/Csvr/ApplyPrimNum/Edit.cshtml

58 lines
1.5 KiB
Plaintext

@using WX.CRM.WebHelper;
@using WX.CRM.Model
@{
ViewBag.Title = "申请";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
<div class="formContent">
@using (Html.BeginForm("Edit", "ApplyPrimNum", null, FormMethod.Post, new { Id = "CreateForm" }))
{
<table class="fromEditTable setTextWidth300">
<tbody>
<tr>
<td style="width: 25px;">申请理由</td>
<td style="width: 150px;"><textarea id="applyMemo" name="applyMemo"> </textarea></td>
<td style="width: 25px;"></td>
</tbody>
</table>
}
</div>
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
$.r_ajax({
url: "/Csvr/ApplyPrimNum/Edit?resid=@ViewBag.resId",
type: "POST",
data: $("#CreateForm").serialize(),
dataType: "json",
loading: true,
success: function (data) {
if (data.type == 1) {
window.parent.frameReturnByMes(data.message);
window.parent.frameReturnByReload(true);
window.parent.frameReturnByClose();
} else {
window.parent.frameReturnByMes(data.message);
}
}
});
return false;
});
});
</script>