TG.WXCRM.V4/WEB/Views/Res/Customer/SetZJL.cshtml

63 lines
1.9 KiB
Plaintext

@model WX.CRM.Model.Entity.RES_CUSTOMERDETAIL
@using System.Web.UI.WebControls
@using WX.CRM.WEB.Areas.Res.Controllers
@using WX.CRM.WebHelper;
@using WX.CRM.Model
@{
ViewBag.Title = "编辑";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<style>
.setTextWidth300 input[type="text"] {
width: auto;
}
</style>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
<div class="formContent">
@using (Html.BeginForm("Edit", "Customer", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<table class="fromEditTable setTextWidth300">
<tbody>
<tr>
<td>资金量</td>
<td>
@Html.DropDownListFor(c => c.AMOUNTTYPEID, ViewBag.ZJL as IEnumerable<SelectListItem>)
@Html.HiddenFor(m => m.RESID)
</td>
<td>@Html.ValidationMessageFor(c => c.AMOUNTTYPEID)</td>
</tr>
</tbody>
</table>
}
</div>
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/Res/Customer/SaveZJL",
type: "POST",
data: $("#CreateForm").serialize(),
dataType: "json",
loading: true,
success: function (data) {
if (data.type == 1) {
$.messager.alert('提示', data.message, 'info', function () { window.parent.location.reload(); });
} else {
window.parent.frameReturnByMes(data.message);
}
}
});
}
return false;
});
});
</script>