TG.WXCRM.V4/WEB/Views/Res/AllocateKFB/SeniordistributeBind.cshtml

90 lines
2.7 KiB
Plaintext

@model WX.CRM.Model.Entity.WX_AFTERSALES2
@using WX.CRM.WebHelper;
@{
ViewBag.Title = "绑定高级客服";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<link href="/Content/data_grid_list.css" rel="stylesheet" />
<script src="/Scripts/op/jquery.tablegrid.js"></script>
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/WeiXin/AllocateKFB/SeniordistributeBindSave",
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 {
$.messager.alert("警告", data.message, "error");
}
}
});
}
return false;
});
});
</script>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "绑定", false, "")
</div>
@using (Html.BeginForm("SeniordistributeBindSave", "AllocateKFB", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<table class="fromEditTable ">
<tbody>
<tr>
<td style="width:120px;">
当前绑定客服部工号
</td>
<td style="width:310px">
@ViewBag.Eid
</td>
<td>
</td>
</tr>
<tr>
<td style="width:100px;">
客服部工号
</td>
<td style="width:310px">
<input id="eid" name="eid" style="width:200px;" />
@Html.HiddenFor(c => c.RESID)
</td>
<td>
请输入客服部工号
</td>
</tr>
<tr>
<td style="width:100px;">
绑定日期
</td>
<td style="width:310px">
@Html.WdatePickerText("startDate", string.Format("{0:yyyy-MM-dd}", System.DateTime.Now))
</td>
<td>
请选择开始时间,日期不能大于当天日期
</td>
</tr>
</tbody>
</table>
}
@Html.Raw(ViewBag.gridTable)
<script>
</script>