<%@ page language="C#" autoeventwireup="true" inherits="general_ClientManage_ClientService, 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="Head" 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=600px;dialogHeight=550px");
           
              if(R == "ok")
              {
                   location.href='ClientService.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.href="TractInfo.aspx?id="+id;
              }
             
               
         }
       return false;
   
   }
     function CheckEdit(formName,chkName,str,width,heigth)
   {
     var id=document.getElementById("HidCid").value;
     
       var R= CheckOk(formName,chkName,str,width,heigth)
         if(R == "ok")
              {
               location.href='ClientService.aspx?id='+id;
                
              }
     
          return false;
      
      
   }
   </script>
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
   <div  id="pnlMain">
    	 
   
	<table style="width: 100%" cellspacing="0" cellpadding="0">
		<tr>
			<td><IMG height="18" src="../images/notify_new.gif" width="18" align="absMiddle">
				<SPAN class="big3">
				客户售后服务：</span></td>
		</tr>
		<tr>
			<td><TABLE class="small" cellSpacing="1" cellPadding="2" width="750" align="center" border="0">
    						<TR>
					<td align=center  class="TableData" valign=top>
				 <c1webgrid:c1webgrid   SkinId="gridviewSkin" Width=700px   ID="C1WebGrid1" 

   runat="server" AutoGenerateColumns="False" OnPageIndexChanging="C1WebGrid1_PageIndexChanging" AllowPaging=True OnItemCreated="C1WebGrid1_ItemCreated"  >
        <Columns>
            <C1WebGrid:C1TemplateColumn HeaderText="全选">
                <HeaderTemplate>
                    <input id="all" type="checkbox"  value="全选" onclick="CheckAll

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

runat="server" value='<%#Eval("Product_ServicesID") %>'/>
                </ItemTemplate>
            </C1WebGrid:C1TemplateColumn>
            <C1WebGrid:C1BoundColumn DataField="Client_Name" HeaderText="客户名称">
            </C1WebGrid:C1BoundColumn>
            <C1WebGrid:C1BoundColumn DataField="Product_Name" HeaderText="客户投诉/服务产品">
            </C1WebGrid:C1BoundColumn>
            <C1WebGrid:C1TemplateColumn HeaderText="是否解决" SortDirection="Descending">
                <ItemTemplate>
    
 <%#Eval("IsFinish").ToString() == "0" ? "<font  color=red>未解决</font>" : "已解决"%>
                </ItemTemplate>
            </C1WebGrid:C1TemplateColumn>
            <C1WebGrid:C1BoundColumn DataField="Exp1" HeaderText="记录人员">
            </C1WebGrid:C1BoundColumn>
            <C1WebGrid:C1BoundColumn DataField="Creadata" HeaderText="记录日期" SortExpression="Column0">
            </C1WebGrid:C1BoundColumn>
           
         
           
            
            
        			</Columns> 
    
        </c1webgrid:c1webgrid>
    </td>
    </TR> 
        <tr><td align=left class="TableData"><TABLE class="small" cellSpacing="0" cellPadding="0" width="100%">
								<TR><td class="TableData"  style="height: 24px" align="center">
									&nbsp;&nbsp;<input id="Button1" type="button"  class="BigButton" value="新增" onclick="return OpenWin('AddService.aspx')" style="width: 80px" />&nbsp;&nbsp;<asp:Button ID="Button2" OnClientClick=" return  CheckEdit('form1','item','EditService.aspx','600px','550px')" class="BigButton" runat="server" Text="编   辑"  Width="80px" />&nbsp;&nbsp;<asp:Button ID="BtnCancel" OnClientClick=" return  CheckForm('form1','item','','','')" class="BigButton" runat="server" Text="删除" OnClick="BtnDel_Click" Width="80px" /></td></tr>
    </TABLE> 
</td></tr>
    </TABLE></td>
		</tr>
	</table>
	 </div>
      <input id="HidCid" runat=server  type="hidden" />
       <div id="ShowJs" runat="Server"> </div>
    </form>
</body>
</html>
