ComplianceServer/oldcode/WEB/Views/QH/AccountApply/Check.cshtml

74 lines
2.4 KiB
Plaintext

@using WX.CRM.WebHelper;
@using WX.CRM.Model
@using WX.CRM.WEB.Handler
@model WX.CRM.Model.MAP.QH_Audituserid
@{
ViewBag.Title = "创建bas_agent";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/QH/AccountApply/Check",
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>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
<div class="formContent">
@using (Html.BeginForm("Check", "AccountApply", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<table class="fromEditTable setTextWidth300">
<tbody>
<tr>
<td style="width:100px;">
@Html.LabelFor(m => m.resid)
@Html.HiddenFor(m => m.resid)
</td>
<td style="width:310px">
@Html.Raw(Model.resid)
</td>
<td width="120px">
</td>
</tr>
<tr>
<td style="width:100px;">
@Html.LabelFor(m => m.useraccount)
</td>
<td style="width:310px">
@Html.TextBoxFor(m => m.useraccount )
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.useraccount )
</td>
</tr>
</tbody>
</table>
}
</div>