<%@ page language="C#" autoeventwireup="true" inherits="general_ClientManage_Yx_Client, CrmCommand" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<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 CheckForm(formName,chkName,str,width,heigth)
   {
       if(!CheckOk(formName,chkName,str,width,heigth))
       {
          
          return false;
       }
       else
       {
         return  confirm('确定要放弃该客户吗？');
       }
   }
  function tran(formName,chkName,str,width,heigth)
   {
      var R=window.showModalDialog('SclientTran.aspx',"水平","dialogWidth=500px;dialogHeight=200px");
    
       if(!CheckOk(formName,chkName,str,width,heigth))
       {
          return false;
       }
       else
       {
          if(R != null)
          {
          var k =R.split('|');
          document.getElementById("HidName").value = k[0];
          document.getElementById("HidUser").value = k[1];
          
           return  confirm('确定要将所选客户转移到['+k[0]+']吗？');
           }
           else
           {
             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" width="160px" >客户名称:</td>
		<td class="TableData" style="width: 129px" ><asp:TextBox  CssClass="BigInput" ID="TxtName" runat="server"></asp:TextBox></td>
		<td class="TableData"  align="right" >E-Mail:</td><td class="TableData" ><asp:TextBox CssClass="BigInput" ID="TxtMail" runat="server"></asp:TextBox></td>
    	</tr>
    	<tr>
    	<td class="TableData"  >客户电话:</td>
		<td class="TableData" style="width: 129px" ><asp:TextBox CssClass="BigInput" ID="TxtTel" runat="server"></asp:TextBox></td>
		<td class="TableData"  align="right">行业:</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: 110px" >所在地:</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> 
            </td>
    	</tr>
    	<tr>
    	<td class="TableData" colspan="4" >
		<table><tr><td style="width: 110px; height: 22px">客户范围:</td>
		  <td style="width: 220px; height: 22px"><asp:RadioButtonList  ID="ChkContract" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="ChkContract_SelectedIndexChanged">
            <asp:ListItem Selected=True   Text="我的客户" Value="我的客户"></asp:ListItem>
            <asp:ListItem   Text="下属客户" Value="下属客户"></asp:ListItem>
          </asp:RadioButtonList></td>
		  <td width="115" style="height: 22px">
              <asp:DropDownList ID="DropDownList1" runat="server" Width="114px" Visible=false>
              </asp:DropDownList></td>
		  <td width="168" style="height: 22px"><asp:CheckBox ID="ChbDate" runat="server" Text="快过期客户" /></td>
		  <td style="width: 347px; height: 22px"><asp:Button ID="BtnQuery"  class="BigButton" runat="server" Text="查询" OnClick="BtnQuery_Click"  Width="72px" /></td>
		</tr></table>
		</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='Yx_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>
                     <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" noWrap><asp:Button ID="BtnTran" OnClientClick=" return  tran('profile','item','','100','300')" class="BigButton" runat="server" Text="转移客户" OnClick="BtnTran_Click" Enabled=false Visible="False" />&nbsp;&nbsp;<asp:Button ID="BtnCancel" OnClientClick=" return  CheckForm('profile','item','','','')" class="BigButton" runat="server" Text="放弃保护" OnClick="BtnCancel_Click" /></td></tr>
    </TABLE> 
</td>
<TR>
						<TD class="TableControl" noWrap align="center" colSpan="4">
                           
                             注意: 1.放弃的客户将转入客户池中,并且<asp:Label ID="LblLockDate" 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"   />
           <input id="HidUser" type="hidden"  runat=server /> <input id="HidName" type="hidden"  runat=server />

    </form>
</body>
</html>

