60 lines
2.1 KiB
Plaintext
60 lines
2.1 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@using System.Web.UI.WebControls;
|
|
@model WX.CRM.WEB.ViewModel.Level2.HtModel
|
|
@{
|
|
ViewBag.Title = "SetIsCanKicked";
|
|
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
|
|
}
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#btnSave").click(function () {
|
|
if ($("#CreateForm").valid()) {
|
|
$.r_ajax({
|
|
url: "/Level2/L2UserKicked/SetIsCanKicked",
|
|
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>
|
|
@using (Html.BeginForm("SetIsCanKicked", "L2UserKicked", null, FormMethod.Post, new { Id = "CreateForm" }))
|
|
{
|
|
<div class="formContent">
|
|
|
|
<table class="fromEditTable setTextWidth300">
|
|
<tr>
|
|
<td style=" width: 120px;">@Html.LabelFor(model => model.userName)</td>
|
|
<td>@Html.TextBoxFor(model => model.userName)</td>
|
|
<td width="100px">
|
|
@Html.ValidationMessageFor(m => m.userName)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" width: 120px;">@Html.LabelFor(model => model.u)</td>
|
|
<td>
|
|
@Html.RadioButtonListFor(c => c.u, ViewBag.DisInfo as IEnumerable<ListItem>, Model.u.ToString())
|
|
</td>
|
|
<td width="100px"></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
}
|