61 lines
2.3 KiB
Plaintext
61 lines
2.3 KiB
Plaintext
@model WX.CRM.Model.Entity.GJS_TRADERUSER
|
|
@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", "TraderUser", null, FormMethod.Post, new { Id = "CreateForm" }))
|
|
{
|
|
@Html.ValidationSummary(true)
|
|
<table class="fromEditTable setTextWidth300">
|
|
<tbody>
|
|
<tr>
|
|
|
|
<td style="width: 50px;">
|
|
@Html.HiddenFor(m=>m.PKID)
|
|
@Html.HiddenFor(m => m.TRADECODE)
|
|
@Html.HiddenFor(m => m.CTIME)
|
|
@Html.Hidden("hid_option", Request.QueryString["type"])
|
|
用户名
|
|
</td>
|
|
<td style="width: 150px;">
|
|
@*@Html.RadioButtonListFor(m => m.USERNAME, (IEnumerable<SelectListItem>)ViewBag.UserNameList, System.Web.UI.WebControls.RepeatDirection.Vertical, 30)*@
|
|
@Html.DropDownListFor(m => m.USERNAME, (IEnumerable<SelectListItem>)ViewBag.UserNameList, new { style = "width:305px" })
|
|
</td>
|
|
<td style="width: 25px;"></td>
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#btnSave").click(function () {
|
|
if ($("#CreateForm").valid()) {
|
|
$.r_ajax({
|
|
url: "/Res/TraderUser/Edit",
|
|
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> |