<%@ page language="C#" autoeventwireup="true" inherits="general_ClientManage_ClientCon, 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.href='ClientTract.aspx?id='+id;
              }
               
         }
       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;
   
   }
 function OpenOther(url)
{
  var R=window.showModalDialog(url,"水平","dialogWidth=780px;dialogHeight=600px");
   
}
   </script>
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
   <div  id="pnlMain">
    	<TABLE class="small" cellSpacing="1" cellPadding="2" width="100%" align="center" border="0" >
    	<tr>
				<td  class="TableData"><IMG height="18" src="../images/notify_new.gif" width="18" align="absMiddle">
				<SPAN class="big3">
				客户合同：</span></td>
			</tr>
					<TR>
					<td align=center valign= top  class="TableData" height=300  >
                        <asp:Label ID="LblInfo" Visible=false  runat="server" Text=""></asp:Label>
				 <c1webgrid:c1webgrid   SkinId="gridviewSkin" Width=700px   ID="C1WebGrid1"   runat="server"  AllowPaging=True  AllowSorting="True"
                                        AutoGenerateColumns="False" CallbackOptions="Sorting,Selection" PageSize=10 AllowColSizing="True" OnPageIndexChanging="C1WebGrid1_PageIndexChanging" OnItemCreated="C1WebGrid1_ItemCreated" OnSortingCommand="C1WebGrid1_SortingCommand" >
        <Columns>
           
           
           
            
             <C1WebGrid:C1TemplateColumn SortExpression="Cl_ContractId" HeaderText="合同编号"><ItemTemplate><A href='../Contract/ContractJbInfo.aspx?ConTrId=<%#Eval("Cl_ContractId") %>'><%#Eval("Contract_Num")%></A></ItemTemplate></C1WebGrid:C1TemplateColumn>
              
             <C1WebGrid:C1BoundColumn DataField="User_Name" HeaderText="跟踪人" SortExpression="User_Name">
                                            </C1WebGrid:C1BoundColumn>
                                        
                                            <C1WebGrid:C1BoundColumn DataField="Product_TotalPrice" DataFormatString="{0:C}"
                                                HeaderText="合同金额" SortExpression="Product_TotalPrice">
                                            </C1WebGrid:C1BoundColumn>
                                             <C1WebGrid:C1BoundColumn DataField="Product_YsPrice" DataFormatString="{0:C}"
                                                    HeaderText="已收金额" SortExpression="Product_YsPrice">
                                                </C1WebGrid:C1BoundColumn>
                                                 <C1WebGrid:C1BoundColumn DataField="Product_hsPrice" DataFormatString="{0:C}"
                                                    HeaderText="剩余金额" SortExpression="Product_hsPrice">
                                                </C1WebGrid:C1BoundColumn>

                                            <C1WebGrid:C1TemplateColumn HeaderText="签约日期" SortExpression="Tracd_Time">
                                                <ItemTemplate>
                                                    <%#string.Format("{0:d}",Eval("Tracd_Time"))%>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Wrap="True" />
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </C1WebGrid:C1TemplateColumn>
                                            <C1WebGrid:C1BoundColumn DataField="Contract_State" HeaderText="合同状态" SortExpression="Contract_State">
                                            </C1WebGrid:C1BoundColumn>
           
         
           
            
            
        				</Columns> 


        </c1webgrid:c1webgrid>
    </td>
    </TR> 
        
    </TABLE> 
    </div>
      <input id="HidCid" runat=server  type="hidden" />
    </form>
</body>
</html>
