TG.WXCRM.V4/WEB/Views/Res/WX/BindWorkAccount.cshtml

106 lines
3.3 KiB
Plaintext

@model WX.CRM.Model.Entity.WX_WORKACCOUNT
@using WX.CRM.WebHelper;
@{
ViewBag.Title = "WX_WORKACCOUNT";
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 () {
$('#tablist').tablegrid({
url: '/Res/WX/GetInnerUserJobNumHtmlList?alias=@Model.ALIAS',
height: $(window).height() - 200,
loadNow: true,
onLoadError: function () {
$.messager.alert("警告", "信息加载失败!", "error");
}
});
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 200
});
});
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/Res/WX/BindWorkAccountSave",
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("BindWorkAccountAdd", "WX", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<table class="fromEditTable ">
<tbody>
<tr>
<td style="width:120px;">
当前绑定客服工号
</td>
<td style="width:310px">
@ViewBag.WorkAccountEid
</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.ALIAS)
@Html.HiddenFor(c => c.PKID)
</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>
}
<div class="bas_datagrid" style="height:300px;">
@Html.Raw(ViewBag.gridTable)
</div>
<script>
</script>