71 lines
2.5 KiB
Plaintext
71 lines
2.5 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;
|
|
@{
|
|
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", "OrderCustomerVisit", null, FormMethod.Post, new { Id = "CreateForm" }))
|
|
{
|
|
@Html.ValidationSummary(true)
|
|
<table class="fromEditTable">
|
|
<tbody>
|
|
<tr>
|
|
<td>状态</td>
|
|
<td>@Html.DropDownListFor(c => c.VISITSTATUS, new List<SelectListItem>() { new SelectListItem() { Text = "", Value = "" }, new SelectListItem() { Text = "未回访", Value = "0" }, new SelectListItem() { Text = "已回访", Value = "1" }, new SelectListItem() { Text = "回访中", Value = "2" } })</td>
|
|
<td>@Html.HiddenFor(c => c.RESID)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>备注</td>
|
|
<td>@Html.TextAreaFor(c => c.VISITREMARK, 5, 50, new { })</td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
|
|
$("#btnSave").click(function () {
|
|
|
|
if ($("#CreateForm").valid()) {
|
|
var visitremark = $("#VISITREMARK");
|
|
if (visitremark.val().length > 200) {
|
|
$.messager.alert('提示', "备注字数超长了!", 'error');
|
|
return false;
|
|
}
|
|
|
|
$.r_ajax({
|
|
url: "/Res/OrderCustomerVisit/Edit",
|
|
type: "POST",
|
|
data: $("#CreateForm").serialize(),
|
|
dataType: "json",
|
|
loading: true,
|
|
success: function (data) {
|
|
if (data.type == 1) {
|
|
$.messager.alert('提示', data.message, 'info', function () {
|
|
window.parent.frameReturnByReload(true);
|
|
window.parent.frameReturnByClose();
|
|
});
|
|
} else {
|
|
window.parent.frameReturnByMes(data.message);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
return false;
|
|
});
|
|
|
|
});
|
|
|
|
|
|
</script>
|