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

<%@ 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">
   <script src="../../Javascript/CheckALL.js"  language=javascript></script>
   <script>
   function CheckForm(formName,chkName,str,width,heigth)
   {
       if(!CheckOk(formName,chkName,str,width,heigth))
       {
          
          return false;
       }
       else
       {
         return  confirm('确定要删除吗？');
       }
   }
   function OpenWin(str)
   {
      var id=document.getElementById("HidCid").value;
     
      var url=str+"?id="+id;
    
         if(id !="")
         {
          
           var R=  window.showModalDialog(url,"newwindow","dialogWidth=650px;dialogHeight=480px");
           
              if(R == "ok")
              {
                  location.reload();
              }
               
         }
       return false;
   
   }
     function ShowWin(id)
   {
    
     
      var url="TractInfo.aspx?id="+id;
    
         if(id !="")
         {
          
           var R=  window.showModalDialog(url,"newwindow","dialogWidth=650px;dialogHeight=300px");
           
              if(R == "ok")
              {
                  location.reload();
              }
             
               
         }
       return false;
   
   }
   </script>
    <title>选择部门</title>
</head>
<body>
    <form id="form1" runat="server">
   <div  id="pnlMain">
    	<TABLE class="small" cellSpacing="1" cellPadding="2" width="750" align="center" border="0" bgcolor=#000000>
    	<tr>
    	<td class="TableData" noWrap style="width: 208px"><font size=4><b>客户跟踪记录</b></font>:</td>
      <td class="TableData" noWrap> </td>
    	</tr>
					<TR>
					<td align=center noWrap class="TableData" colspan=2>
				 <c1webgrid:c1webgrid   SkinId="gridviewSkin" Width=700px  Height=300 ID="C1WebGrid1" 

HScrollBarStyle="Automatic"   runat="server" AutoGenerateColumns="False"  AllowPaging=true  

PageSize=20  >
        <Columns>
         <C1WebGrid:C1TemplateColumn HeaderText="全选"><HeaderTemplate>
                    <input id="all" type="checkbox"  value="全选" onclick="CheckAll

('form1','item','all')" /></HeaderTemplate> <ItemTemplate > <input id="item" type="checkbox" 

runat="server" value='<%#Eval("Client_TrackID") %>'/></ItemTemplate></C1WebGrid:C1TemplateColumn>
  
            <C1WebGrid:C1BoundColumn  Visible=false    DataField="Client_TrackID" HeaderText="客户编

号"/> 
            <C1WebGrid:C1BoundColumn Fixed=true DataField="Client_Name" HeaderText="客户名称" /> 
            <C1WebGrid:C1BoundColumn  DataField="Exp1" HeaderText="跟踪人员" /> 
            
<c1webgrid:C1TemplateColumn  HeaderText="跟踪活动" >
<ItemStyle Width=300 />
<ItemTemplate>
    
   <a onclick='return ShowWin(<%# Eval("Client_TrackID")%>)' href='javascript:'> <%# Server.HtmlDecode(Eval

("Client_TrackContent").ToString()).Length > 30 ? Server.HtmlDecode(Eval

("Client_TrackContent").ToString()).Substring(0, 29) + "..." : Server.HtmlDecode(Eval

("Client_TrackContent").ToString())%></a>
                    
</ItemTemplate>
</c1webgrid:C1TemplateColumn>
           <C1WebGrid:C1BoundColumn DataField="Client_TrackDate"   HeaderText="记录日期" /> 
           
         
           
            
            
        </Columns> 
    
        </c1webgrid:c1webgrid>
    </td>
    </TR> 
        <tr><td align=center  colspan=2 class="TableData"><TABLE class="small" cellSpacing="0" cellPadding="0" width="100%">
								<TR><td  align=left  class="TableData" noWrap>&nbsp;&nbsp;<asp:Button ID="BtnCancel" OnClientClick=" return  CheckForm('form1','item','','','')" class="BigButton" runat="server" Text="删除"  Width="95px" /></td></tr>
    </TABLE> 
</td></tr>
    </TABLE> 
    </div>
      <input id="HidCid" runat=server  type="hidden" />
    </form>
</body>
</html>