ComplianceServer/oldcode/WEB/Views/Res/CustomerLabel/Set.cshtml

66 lines
2.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using WX.CRM.WebHelper;
@model WX.CRM.Model.Entity.RES_CUSTOMER_LABEL
@{
ViewBag.Title = "Edit";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
var resId = $("#resId").val();
var type = $("#type").val();
var remark = $("#REAMRK").val();
if (remark.length > 200) {
$.messager.alert("警告", "字数太多了!", "error");
return;
}
if ($("#CreateForm").valid()) {
var para = { resId: resId, type: type, remark: remark };
$.r_post("/Res/CustomerLabel/Set", para, function (rsp) {
if (rsp.ret) {
//$.messager.alert("警告", "操作成功!", "suceess", function () { window.location.reload(); });
$.messager.alert("警告", "操作成功!", "suceess");
}
else {
$.messager.alert("警告", rsp.message, "error");
}
});
}
return false;
});
});
</script>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
<div class="formContent">
@using (Html.BeginForm("Set", "CustomerLabel", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<input type="hidden" id="resId" name="resId" value="@Model.RESID" />
<table class="fromEditTable setTextWidth300">
<tbody>
<tr>
<td>客户ID</td>
<td>@Model.RESID</td>
</tr>
<tr>
<td>风险:</td>
<td>
<select id="type" name="type">
<option value="1" @{ if (Model.RFMTYPE == 1) { @Html.Raw("selected = \"selected\"") } }>是</option>
<option value="0" @{ if (Model.RFMTYPE == 0) { @Html.Raw("selected = \"selected\"") } }>否</option>
</select>
</td>
</tr>
<tr>
<td>备注:</td>
<td>@Html.TextAreaFor(m => m.REAMRK)</td>
</tr>
</tbody>
</table>
}
</div>