96 lines
4.1 KiB
Plaintext
96 lines
4.1 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "签约客户查询";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Quality/CustomerCheck/GetCustomerSignList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
data: GetControlValue
|
|
});
|
|
//function GetControlValue() {
|
|
// return { groupId: user.getGroups(), userId: user.getUser() };
|
|
//}
|
|
function GetControlValue() {
|
|
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val() };
|
|
}
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
|
|
|
|
});
|
|
//ifram 返回
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
function Export() {
|
|
var columns = getDataGridHeader();
|
|
var checkedFilds = "";
|
|
var checkedTitle = "";
|
|
$.each(columns, function (i, ex) {
|
|
checkedFilds += "[" + ex.field + "]";
|
|
checkedTitle += ex.title + ',';
|
|
});
|
|
var url = '/Quality/CustomerCheck/CustomerSignExport?checkedFilds=' + checkedFilds + "&checkedTitle=" + checkedTitle
|
|
+"&saleDeptId="+ $("#nb1_uc_org_depts").val()+"&groupId="+ $("#nb1_uc_org_groups").val()+"&userId="+ $("#nb1_uc_org_ids").val()
|
|
+ '&' + GetQueryStr();
|
|
this.window.open(url);
|
|
}
|
|
|
|
</script>
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
|
|
</div>
|
|
<div class="bas_datagrid">
|
|
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
|
<ul class="toolBar_ul">
|
|
<li>@Html.Action("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", type = "0", controlName = "nb1", roleCodes = ViewBag.roleCodes, saledeptid = "", salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid })</li>
|
|
<li>交易商码:<input type="text" name="txt_TradeCode" style="width:120px;" /> </li>
|
|
<li>
|
|
客户状态:@Html.DropDownList("slt_schedulestatus", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="所有",Value="所有"},
|
|
new SelectListItem(){ Text="已开户",Value="180"},
|
|
new SelectListItem(){ Text="未激活",Value="200"},
|
|
new SelectListItem(){ Text="正常",Value="220"}
|
|
})
|
|
</li>
|
|
<li>签约时间:@Html.WdatePickerText("txt_csigntime", "")~@Html.WdatePickerText("txt_esigntime", "")</li>
|
|
<li>审核时间:@Html.WdatePickerText("txt_ctime", "")~@Html.WdatePickerText("txt_etime", "")</li>
|
|
<li>
|
|
质检状态:@Html.DropDownList("slt_status", new List<SelectListItem>() {
|
|
new SelectListItem(){ Text="所有",Value="所有"},
|
|
new SelectListItem(){ Text="未审核",Value="61"},
|
|
new SelectListItem(){ Text="审核通过",Value="200"},
|
|
new SelectListItem(){ Text="审核不通过",Value="60"}
|
|
})
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.List)
|
|
</div>
|