📄 allprovide.ascx
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="allProvide.ascx.cs" Inherits="CRM.WEB.Setting.UserControls.allProvide" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc2" %>
<%@ Register Assembly="PowerEasy.Controls" Namespace="PowerEasy.Controls" TagPrefix="cc1" %>
<script language="javascript" type="text/javascript">
<!--
var pageindex=1;var custid=1;
function openWin(url,w,h,custid)
{
var top=(screen.availHeight-h)/2;
var left=(screen.availWidth-w)/2;
var win=window.open(url+"?custid="+custid, "新窗口", "height="+h+", width="+w+
", top="+top+", left="+left+", toolbar=0, menubar=0, scrollbars=1, resizable=0,location=0, status=1");
win.focus();
}
function getRowValue(sender)
{
if(sender.checked)
{
var tblRow = sender.parentNode.parentNode;
pageindex=tblRow.cells[1].innerText;
custid=sender.value;
document.getElementById("<%=hd.ClientID%>").value=custid+","+pageindex;
}
}
function BatchDelete()
{
var delcustid="";
var oElements = document.getElementsByTagName("INPUT");
var num=0;
for(var i=1;i<oElements.length;i++)
{
if(IsCheckBox(oElements[i])&&IsMatch(oElements[i].id,'chkItem')&&oElements[i].checked)
{
num+=1;
}
}
if(num ==0)
{
alert("请选择需要处理的数据!");
return false;
}
else
{
for(var i=1;i< oElements.length;i++)
{
if(IsCheckBox(oElements[i])&&IsMatch(oElements[i].id,'chkItem')&&oElements[i].checked)
{
delcustid+=oElements[i].value +",";
}
}
document.getElementById("<%=hd.ClientID%>").value=delcustid;
return true;
}
}
function CheckEdit()
{
var oElements = document.getElementsByTagName("INPUT");
var num=0;
for(var i=1;i<oElements.length;i++)
{
if(IsCheckBox(oElements[i])&&IsMatch(oElements[i].id,'chkItem')&&oElements[i].checked)
{
num+=1;
}
}
if(num==0)
{
alert("请选择需要处理的数据!");
return false;
}
else if(num>1)
{
alert("该操作只允许单选");
for(var i=1;i< oElements.length;i++)
{
if(IsCheckBox(oElements[i])&&IsMatch(oElements[i].id,'chkItem')&&oElements[i].checked)
{
oElements[i].checked=false;
}
}
return false;
}
else
{
return true;
}
}
function changecust(url)
{
var custid="";
var oElements = document.getElementsByTagName("INPUT");
var num=0;
for(var i=1;i<oElements.length;i++)
{
if(IsCheckBox(oElements[i])&&IsMatch(oElements[i].id,'chkItem')&&oElements[i].checked)
{
num+=1;
}
}
if(num ==0)
{
alert("请选择需要处理的数据!");
return false;
}
else
{
for(var i=1;i< oElements.length;i++)
{
if(IsCheckBox(oElements[i])&&IsMatch(oElements[i].id,'chkItem')&&oElements[i].checked)
{
custid+=oElements[i].value +",";
}
}
url=url+"?custid="+encodeURI(custid);
var sFeatures='height=400, width=700, top=100, left=200,toolbar=0, menubar=0, scrollbars=auto, resizable=1, location=0, status=0';
window.open(url,"客户转变",sFeatures);
return true;
}
}
//-->
</script>
<table border="0" cellpadding="2" cellspacing="2" height="25" width="100%">
<tr>
<td align="right" class="style3">
<asp:Button ID="btnAll" runat="server" CssClass="button"
Text="全 部" Width="60px" OnClick="btnAll_Click" /><asp:Button ID="btnDetail" runat="server" CssClass="button" OnClientClick="return CheckEdit();"
Text="客户详情" Width="100px" OnClick="btnDetail_Click" /><input id="btnSearch" Class="button" style="width: 60px" type="button" value="查 询" onclick="checkselect('alert','','close');" /><asp:Button ID="btnOut" runat="server" CssClass="button"
Text="导 出" Width="60px" OnClick="btnOut_Click" /> </td>
</tr>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%">
<div id="TList" style="height:470px;width:expression(document.body.clientWidth-15);">
<div id="THead">
<asp:Literal id="lit_head" runat="server"></asp:Literal>
</div>
<div id="TBody" onscroll="HeadScroll();">
<asp:Repeater id="rptTB" runat="server" OnItemDataBound="rp_ItemDataBound" EnableViewState="True">
<ItemTemplate>
<tr class="tdbg" id='<%# String.Format("TR{0}",Container.ItemIndex+1)%>' onmouseover='rowover(<%# String.Format("TR{0}",Container.ItemIndex+1)%>);' onmouseout='rowout(<%# String.Format("TR{0}",Container.ItemIndex+1)%>);' onclick='rowclick(<%# String.Format("TR{0}",Container.ItemIndex+1)%>);' ondblclick="openWin('../../Bussiness/adcustomer/ViewCustomer.aspx','700','400',<%# Eval("c_custId")%>)">
<asp:Literal id="lit_item" runat="server"></asp:Literal>
</tr>
</ItemTemplate>
<HeaderTemplate>
<table id="MyBodyTab" class="border" cellspacing="1" cellpadding="0" border="0" style="border-collapse:collapse;"
frame="void">
</HeaderTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
<div id="kb" runat="server" visible="false">
<table class="border" cellspacing="1" cellpadding="0" border="0" id="ctl00" style="width:100%;">
<tr class="tdbg" align="center" style="height:100px;">
<td colspan="11">没有任何符合条件的记录!</td>
</tr>
</table>
</div></div>
</div>
</td>
</tr>
</table>
<table border="0" cellpadding="3" cellspacing="0" style="width: 100%">
<tr>
<td align="center" colspan="4">
<div>
<asp:Button ID="btnmod" runat="server" Text="编 辑" Width="60px" CssClass="button" OnClientClick="return CheckEdit();" OnClick="btnmod_Click"/>
<asp:Button ID="btndel" runat="server" Text="删 除" Width="60px" CssClass="button" OnClientClick="return BatchDelete();" OnClick="btndel_Click1"/></div>
</td>
<td align="left" colspan="4">
<div id="wep" align="right">
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" Width="330px" PageSize="20" FirstPageText="首页" LastPageText="尾页"
NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" PrevPageText="上一页" AlwaysShow="True" NumericButtonCount="5" ShowInputBox="Always">
</webdiyer:AspNetPager>
</div>
</td>
<td align="left" colspan="4">
<div id="dv" align="left" style="text-align: center">
<asp:Label ID="CustText" runat="server"></asp:Label>
</div>
</td>
</tr>
</table>
<asp:HiddenField ID="hd" runat="server" />
<!--查询窗口开始-->
<div id="alert" class=alert><div><h4 class=h4><span>查询设置</span><span id="close" class=close title="关闭">×</span></h4>
</div><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD width=1 bgColor=#add7fd></TD><TD bgColor=#f6f7f8 height=100> <!--搜索 begin-->
<table id="advancedSearchTable" cellSpacing="1" cellPadding="0" width="98%" align="center"
bgColor="#e7e7e7" border="0">
<tr>
<td style="WIDTH: 110px; HEIGHT: 20px" width="110" bgColor="#ffffff" height="20">
客户名称:</td>
<td style="HEIGHT: 20px" width="307" bgColor="#ffffff" height="20">
<asp:TextBox ID="TxtNameFull" runat="server"></asp:TextBox></td>
<td style="HEIGHT: 20px" width="98" bgColor="#ffffff"> 分类:</td>
<td style="HEIGHT: 20px" width="274" bgColor="#ffffff">
<asp:DropDownList ID="ddlstage" runat="server">
<asp:ListItem Selected=true Text="选择客户阶段" Value=""></asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="WIDTH: 110px" width="110" bgColor="#ffffff" height="20"> 电话:</td>
<td bgColor="#ffffff" height="20"> <input name="kehu1id" type="text" id="kehu1id" style="width:0px;" /><input name="iPage" type="text" id="iPage" style="width:0px;" />
<asp:TextBox ID="TxtTel" runat="server"></asp:TextBox></td>
<td bgColor="#ffffff"><FONT face="宋体"> E-Mail:</FONT></td>
<td bgColor="#ffffff"><FONT face="宋体"> <asp:TextBox ID="TxtEmail" runat="server"></asp:TextBox></FONT></td>
</tr>
<tr style="DISPLAY: none">
<td style="WIDTH: 110px" width="110" bgColor="#ffffff" height="20"> 创建时间:</td>
<td bgColor="#ffffff" colSpan="3" height="20">
<cc2:ZLTextBox ID="TxtBegin" runat="server" InputType="date" IsDisplayTime="False"></cc2:ZLTextBox>
至
<cc2:ZLTextBox ID="TxtEnd" runat="server" InputType="date" IsDisplayTime="False"></cc2:ZLTextBox></td>
</tr>
<tr style="DISPLAY: none">
<td style="WIDTH: 110px" bgColor="#ffffff" height="20"> 所在地区:</td>
<td bgColor="#ffffff" height="-1">
<asp:DropDownList ID="ddlcity" runat="server">
<asp:ListItem Selected=true Value="">请选择地区</asp:ListItem>
<asp:ListItem value="北京">北京</asp:ListItem>
<asp:ListItem value="上海">上海</asp:ListItem>
<asp:ListItem value="天津">天津</asp:ListItem>
<asp:ListItem value="重庆">重庆</asp:ListItem>
<asp:ListItem value="辽宁">辽宁</asp:ListItem>
<asp:ListItem value="吉林">吉林</asp:ListItem>
<asp:ListItem value="河北">河北</asp:ListItem>
<asp:ListItem value="陕西">陕西</asp:ListItem>
<asp:ListItem value="山西">山西</asp:ListItem>
<asp:ListItem value="甘肃">甘肃</asp:ListItem>
<asp:ListItem value="宁夏">宁夏</asp:ListItem>
<asp:ListItem value="新疆">新疆</asp:ListItem>
<asp:ListItem value="青海">青海</asp:ListItem>
<asp:ListItem value="四川">四川</asp:ListItem>
<asp:ListItem value="云南">云南</asp:ListItem>
<asp:ListItem value="贵州">贵州</asp:ListItem>
<asp:ListItem value="湖北">湖北</asp:ListItem>
<asp:ListItem value="河南">河南</asp:ListItem>
<asp:ListItem value="山东">山东</asp:ListItem>
<asp:ListItem value="江苏">江苏</asp:ListItem>
<asp:ListItem value="台湾">台湾</asp:ListItem>
<asp:ListItem value="海南">海南</asp:ListItem>
<asp:ListItem value="福建">福建</asp:ListItem>
<asp:ListItem value="广东">广东</asp:ListItem>
<asp:ListItem value="江西">江西</asp:ListItem>
<asp:ListItem value="香港">香港</asp:ListItem>
<asp:ListItem value="澳门">澳门</asp:ListItem>
<asp:ListItem value="安徽">安徽</asp:ListItem>
<asp:ListItem value="西藏">西藏</asp:ListItem>
<asp:ListItem value="湖南">湖南</asp:ListItem>
<asp:ListItem value="浙江">浙江</asp:ListItem>
<asp:ListItem value="广西">广西</asp:ListItem>
<asp:ListItem value="内蒙">内蒙</asp:ListItem>
<asp:ListItem value="黑龙江">黑龙江</asp:ListItem>
<asp:ListItem value="其他">其他</asp:ListItem>
</asp:DropDownList></td>
<td bgColor="#ffffff"><FONT face="宋体"> 客户来源:</FONT></td>
<td bgColor="#ffffff"><FONT face="宋体"> <asp:DropDownList ID="ddlly" runat="server">
<asp:ListItem Selected=true Text="选择客户来源" Value=""></asp:ListItem>
</asp:DropDownList>
</FONT></td>
</tr>
<tr style="DISPLAY: none">
<td style="WIDTH: 110px" bgColor="#ffffff" height="20"> 所属行业:</td>
<td bgColor="#ffffff" height="-1" colspan="3">
<asp:DropDownList ID="ddlhy" runat="server">
<asp:ListItem Selected=true Text="选择行业" Value=""></asp:ListItem>
</asp:DropDownList></td>
</tr>
</table>
<TABLE class="botline" cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
<TR>
<td align="center"><asp:Button ID="Button1" CssClass="button" Width="101px" Text="搜索" runat="server" OnClick="btnsearch_Click"/>
<input class="button" id="showAdvanceSearchButton" onclick="showAdvancedSearchLayer(this, 2)"
type="button" value="显示高级搜索>>>" style="width: 121px">
</td>
</TR>
</TABLE>
<script language="javascript">
function showAdvancedSearchLayer(theElement, startRow) {
var isShow = theElement.value == '显示高级搜索>>>'
var searchTable = document.all('advancedSearchTable');
var rows = searchTable.rows;
for (i = startRow; i < rows.length; i++) {
searchTable.rows(i).style.display = isShow ? 'inline' : 'none';
}
theElement.value = isShow ? '隐藏高级搜索<<<' : '显示高级搜索>>>';
}function t3_onclick() {
}
</script>
<!--搜索 end--></TD><TD width=1
bgColor=#add7fd></TD></TR></TBODY></TABLE>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -