<%@ page language="C#" autoeventwireup="true" inherits="general_ClientManage_PublicClient, CrmCommand" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>
<html >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <script src="../../Javascript/CheckALL.js"  language=javascript></script>
    <script src="../../Javascript/Provice.js"  language=javascript></script>

<SCRIPT LANGUAGE = JavaScript> 

 function Check(formName,chkName,str,width,heigth)
   {
    if(CheckOk(formName,chkName,str,width,heigth))
    {
       return confirm('确定保护选择的客户吗?');
    }
      
     return false;
        
      
      
   }
    function Checkdel(formName,chkName,str,width,heigth)
   {
    if(CheckOk(formName,chkName,str,width,heigth))
    {
       return confirm('确定删除选择的客户吗?');
    }
      
     return false;
        
      
      
   }
</SCRIPT> 
</head>
<body class="bodycolor" topmargin="5"  onload="setup();" >
    <form id="profile" runat="server">
        	<table style="width: 100%" cellspacing="0" cellpadding="0" >
	<TR>
						<TD>
						
						
						
					<table style="width: 100%">
						<tr>
							<td style="width: 18px"><img alt="x" src="../images/notify_new.gif" width="18" height="18" /></td>
							<td><SPAN class="big3">公司公共客户：</span></td>
						</tr>
					</table>
					<br>
					</TD>	
						
					</TR>
						<tr>
		<td>
    	<TABLE class="small" cellSpacing="1" cellPadding="3" width="800" align="center" border="0" bgcolor=#000000>
    	    	<tr>
    	<td class="TableData" style="width: 130px" >客户名称:</td><td class="TableData" ><asp:TextBox  CssClass="BigInput" ID="TxtName" runat="server"></asp:TextBox></td><td class="TableData" >客户介绍:</td><td class="TableData" ><asp:TextBox CssClass="BigInput" ID="TxtMail" runat="server"></asp:TextBox></td>
    	</tr>
    	<tr>
    	<td class="TableData" style="width: 130px" >客户电话:</td><td class="TableData" ><asp:TextBox CssClass="BigInput" ID="TxtTel" runat="server"></asp:TextBox></td><td class="TableData" >行业:</td><td class="TableData" ><select runat=server  name="SelType" id="SelType" class="BigSelect" >
	<option value="">选择客户行业</option>
	<option value="计算机互联网">计算机互联网</option>
	<option value="电子/通讯/电器">电子/通讯/电器</option>
	<option value="机械/仪器/仪表">机械/仪器/仪表</option>
	<option value="房地产/建筑/安装/装璜">房地产/建筑/安装/装璜</option>
	<option value="金融/投资/保险/经济">金融/投资/保险/经济</option>
	<option value="生产/制造">生产/制造</option>
	<option value="造纸/印刷/包装">造纸/印刷/包装</option>
	<option value="动力/电力/能源">动力/电力/能源</option>
	<option value="五金矿产/金属制品">五金矿产/金属制品</option>
	<option value="运输/物流/快递">运输/物流/快递</option>
	<option value="广告/策划/设计">广告/策划/设计</option>
	<option value="新闻/媒体/出版">新闻/媒体/出版</option>
	<option value="信息咨询/事务所/人才交流">信息咨询/事务所/人才交流</option>
	<option value="教育/文化/科研/培训">教育/文化/科研/培训</option>
	<option value="政府/公共事业">政府/公共事业</option>
	<option value="医疗/卫生事业">医疗/卫生事业</option>
	<option value="制药/生物工程">制药/生物工程</option>
	<option value="旅游/酒店/餐饮服务">旅游/酒店/餐饮服务</option>
	<option value="纺织服装">纺织服装</option>
	<option value="农林牧渔">农林牧渔</option>
	<option value="娱乐/运动/休闲">娱乐/运动/休闲</option>
	<option value="日用生活服务/商业服务">日用生活服务/商业服务</option>
	<option value="物资供销">物资供销</option>
	<option value="轻工">轻工</option>
	<option value="其它行业">其它行业</option>
</select></td>
    	</tr>
    	<tr>
    	<td  class="TableData" style="width: 130px" >所在地:</td><td colspan=3 class="TableData" ><select id="s1" class="BigSelect" runat=server ><option>省份</option></select> 
<select id="s2" class="BigSelect" runat=server   ><option>地级市</option></select> 
<select id="s3" class="BigSelect" runat=server  onchange="setValue();"  ><option>市、县级市、县</option></select> 

            <asp:Button ID="BtnQuery"  class="BigButton" runat="server" Text="查询" OnClick="BtnQuery_Click"  Width="72px" /></td>
    	</tr>
 <TR>
					<td  colspan=4 align=center class="TableData" >
      <c1webgrid:c1webgrid  SkinId="gridviewSkin" Width=800px  Height=300px ID="C1WebGrid1" HScrollBarStyle="Automatic"  PageSize="20"  runat="server" AutoGenerateColumns="False" OnPageIndexChanging="C1WebGrid1_PageIndexChanging" AllowColSizing="True" VScrollBarStyle="Always"  >
        <Columns>
            <C1WebGrid:C1TemplateColumn Fixed="True" HeaderText="全选">
                <HeaderTemplate>
                    <input id="all" type="checkbox"  value="全选" onclick="CheckAll('profile','item','all')" />
                </HeaderTemplate>
                <ItemStyle Width="22px" />
                <ItemTemplate>
                    <input id="item" type="checkbox" runat=server value='<%#Eval("Client_Id") %>'  />
                </ItemTemplate>
            </C1WebGrid:C1TemplateColumn>
          
            <C1WebGrid:C1TemplateColumn Fixed="True" HeaderText="客户名称">
                <ItemStyle  Width="160px"  ForeColor="Red" />
                <ItemTemplate>
<a  target=_self  href='Public_ClientInfo.aspx?id= <%#Eval("Client_Id")%>'><%#Eval("Client_Name")%></a>
                </ItemTemplate>
            </C1WebGrid:C1TemplateColumn>
             <C1WebGrid:C1BoundColumn DataField="Client_Phone" HeaderText="电话">
            </C1WebGrid:C1BoundColumn>
                 <C1WebGrid:C1BoundColumn DataField="Client_Email" HeaderText="E-Mail">
            </C1WebGrid:C1BoundColumn>
             <C1WebGrid:C1TemplateColumn HeaderText="详细地址">
                <ItemStyle Width="200px" />
                <ItemTemplate>
                    <asp:Label    ID="Lkb" Text='<%# Server.HtmlDecode(Eval("Client_Addr").ToString()).Length > 10 ? Server.HtmlDecode(Eval("Client_Addr").ToString()).Substring(0, 10) + "..." : Server.HtmlDecode(Eval("Client_Addr").ToString())%>'  ToolTip='<%# Eval("Client_Addr")%>' runat="server"></asp:Label>
 
                </ItemTemplate>
            </C1WebGrid:C1TemplateColumn>
             <C1WebGrid:C1BoundColumn DataField="Client_Province" HeaderText="省份">
            </C1WebGrid:C1BoundColumn>
            <C1WebGrid:C1BoundColumn DataField="Client_City" HeaderText="城市">
            </C1WebGrid:C1BoundColumn>
             <C1WebGrid:C1BoundColumn DataField="Exp3" HeaderText="区域">
            </C1WebGrid:C1BoundColumn>
             
            <C1WebGrid:C1BoundColumn DataField="Client_Way"  HeaderText="行业">
            <ItemStyle Width=200/>
            </C1WebGrid:C1BoundColumn>
          <%--  <C1WebGrid:C1BoundColumn  DataField="Client_CrDate" DataFormatString="{0:d}"  HeaderText="保护开始日期">
            </C1WebGrid:C1BoundColumn>
            <C1WebGrid:C1BoundColumn DataField="Client_ProEndDate"  DataFormatString="{0:d}"  HeaderText="保护截止日期">
        
            </C1WebGrid:C1BoundColumn>--%>
            <C1WebGrid:C1BoundColumn DataField="Client_StateType" HeaderText="客户状态">
            </C1WebGrid:C1BoundColumn>
             <%-- <C1WebGrid:C1BoundColumn DataField="User_Name" HeaderText="跟踪人">  </C1WebGrid:C1BoundColumn>--%>
      
            
            
        </Columns> 
    
        </c1webgrid:c1webgrid>
        </td>
        </TR> 
        <tr>
        <td  colspan=4 align="center" class="TableData" >
                       <webdiyer:AspNetPager CssClass="anpager" CurrentPageButtonClass="cpb"  ID="AspNetPager2" runat="server" RecordCount="228"
        FirstPageText="首页" LastPageText="尾页" NextPageText="后页" PrevPageText="前页" OnPageChanged="AspNetPager2_PageChanged" CustomInfoHTML="第 %CurrentPageIndex% / %PageCount% 页" PageSize="15" SubmitButtonText="GO" Width="100%">
    </webdiyer:AspNetPager>
                    </td>
    </TR> 
    <tr><td align=center  colspan=4 class="TableData"><TABLE class="small" cellSpacing="0" cellPadding="0" width="100%">
								<TR><td class="TableData" align="center" ><asp:Button ID="Button1" OnClientClick=" return  Checkdel('profile','item','','','')" class="BigButton" runat="server" Text="删除客户" OnClick="Button1_Click" Enabled="False" Visible="False" />
                                    <asp:Button ID="BtnCancel" OnClientClick=" return  Check('profile','item','','','')" class="BigButton" runat="server" Text="保护客户" OnClick="BtnCancel_Click" /></td></tr>
    </TABLE> 
</td></tr>
<TR>
						<TD class="TableControl"  align="center" colSpan="4">
                            注意:1.保护公共客户成功后将转入潜在客户中,保护时间为<asp:Label ID="LblPDate" runat="server" Text=""></asp:Label>天,如需增时限请申请为意向客户.
                            
						</TD>
					</TR>
       </TABLE>
      </td>
      </tr>
     </table>
      

<input id="HidProvince" type=hidden  runat="server"  /> <input id="HidCity" type=hidden runat="server" /> <input id="HidArea" type=hidden runat="server"   /><input id="HidCode" type=hidden runat="server"   />

<div id="ShowJs" runat="Server"> </div>
</form>
</body>
</html>


