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

<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
       <script>
var menu_id=0;

function setPointer(theRow, thePointerColor,menu_id_over)
{
  if(menu_id!=menu_id_over)
  {
	if(thePointerColor == "#B3D1FF")
		theRow.className="menu_active";
	else
		theRow.className="menu_comon";
   }
}

function view_menu1()
{
 
   
 
   location.href="CheckList.aspx?type=unchecked"
   menu_id=1;
   menu_1.className="menu_active";
   menu_2.className="menu_comon";
  
}

function view_menu2()
{

   location.href ="CheckList.aspx?type=checked"
   menu_id=2;
   menu_1.className="menu_comon";
   menu_2.className="menu_active";
  
}
function setUp()
{
    if(document.form1.HidCode.value =="checked")
    {
          menu_1.className="menu_comon";
          menu_2.className="menu_active";
    }
    else
    {
           menu_1.className="menu_active";
           menu_2.className="menu_comon";
    }
}

</script>

</head>
<body class="bodycolor" topmargin="5" >
    <form id="form1" runat="server">
   <div id="pnlMain">
    	<TABLE class="small" cellSpacing="1" cellPadding="3"   align="center" border="0" bgcolor="black" >
    	<tr>
    	<td class="TableData" noWrap>
    <TABLE class="big" cellspacing="0" height="100%" width=800 bgcolor="#DDDDDD" border="1" cellpadding="1" bordercolorlight="#000000" bordercolordark="#FFFFFF">
 <TR>

   <TD title="未审核记录" id="menu_1" onclick="view_menu1()" onmouseover="setPointer(this, '#B3D1FF',1)" onmouseout="setPointer(this, '#DDDDDD',1)" style="cursor:hand">
       <img src="../images/menu/sms.gif" WIDTH="20" HEIGHT="20" align="absmiddle"><b><font color="#000000"> 未审核记录</font></b>
   </TD>

   <TD title="已审核记录" id="menu_2" onclick="view_menu2()" onmouseover="setPointer(this, '#B3D1FF',2)" onmouseout="setPointer(this, '#DDDDDD',2)" style="cursor:hand">
       <img src="../images/menu/sms.gif" WIDTH="18" HEIGHT="18" align="absMiddle"><b><font color="#000000"> 已审核记录</font></b>
   </TD>
   
 

   </TR>
</TABLE>
</td>
    	</tr>
 <tr>
<TD class="TableData" noWrap><SPAN class="big3"><asp:Label ID="LblType" runat="server" Text=""></asp:Label>：</span></TD>
</tr>
    	
    	<tr>
  	<td class="TableData">
	<table style="width: 100%" cellspacing="0" cellpadding="0">
		<tr>
			<td style="width: 73px" class="TableData">审核类型:</td>
			<td style="width: 140px" class="TableData"><select runat=server  name="SelType" id="SelType" class="BigSelect" >
	<option value="">所有审核类型</option>
	<option value="转意向客户审核">转意向客户申请</option>
	<option value="时间加权审核">时间加权申请</option>
	

</select></td>
			<td class="TableData">  <asp:Button ID="BtnQuery"  class="BigButton" runat="server" Text="查询" OnClick="BtnQuery_Click"  Width="72px" />
			</td>
		</tr>
	</table>
	</td>
    	</tr>

 <TR>
					<td align=center class="TableData" noWrap>
                        <asp:Label ID="LblInfo" Visible=false  runat="server" Text=""></asp:Label>
      <c1webgrid:c1webgrid SkinId="gridviewSkin" Width=800px   ID="C1WebGrid1" PageSize="20"  runat="server" AutoGenerateColumns="False"  AllowPaging=true OnPageIndexChanging="C1WebGrid1_PageIndexChanging" OnItemCreated="C1WebGrid1_ItemCreated"  >
        <Columns>

           
              <C1WebGrid:C1BoundColumn  DataField="ApplyType" HeaderText="审批类型" /> 
               <C1WebGrid:C1BoundColumn DataField="ClientName" HeaderText="审批客户" /> 
               <C1WebGrid:C1BoundColumn DataField="User_Name" HeaderText="申请人" /> 
                 <C1WebGrid:C1BoundColumn DataField="AgrUser" HeaderText="审批人" /> 
                     <C1WebGrid:C1BoundColumn DataField="ApplyDate" DataFormatString="{0:d}" HeaderText="申请时间" /> 
            <C1WebGrid:C1BoundColumn DataField="AgrDate" DataFormatString="{0:d}" HeaderText="审批时间" />
            <C1WebGrid:C1TemplateColumn HeaderText="申请原因">
              
                <ItemTemplate>
                    <asp:Label    ID="Lkba" Text='<%# Server.HtmlDecode(Eval("Reason").ToString()).Length > 10 ? Server.HtmlDecode(Eval("Reason").ToString()).Substring(0, 10) + "..." : Server.HtmlDecode(Eval("Reason").ToString())%>'  ToolTip='<%#Server.HtmlDecode(Eval("Reason").ToString())%>' runat="server"></asp:Label>
 
                </ItemTemplate>
            </C1WebGrid:C1TemplateColumn> 
             <C1WebGrid:C1TemplateColumn HeaderText="审批备注">
              
                <ItemTemplate>
                    <asp:Label    ID="Lkbc" Text='<%# Server.HtmlDecode(Eval("Exp1").ToString()).Length > 10 ? Server.HtmlDecode(Eval("Exp1").ToString()).Substring(0, 10) + "..." : Server.HtmlDecode(Eval("Exp1").ToString())%>'  ToolTip='<%#Server.HtmlDecode(Eval("Exp1").ToString())%>' runat="server"></asp:Label>
 
                </ItemTemplate>
            </C1WebGrid:C1TemplateColumn>
          <C1WebGrid:C1BoundColumn DataField="AgrState" HeaderText="审批结果" >
    <ItemStyle  ForeColor=red/>
          </C1WebGrid:C1BoundColumn>  
          
          
             <c1webgrid:C1TemplateColumn   HeaderText="审批"  >
<ItemStyle  ForeColor=red/>
<ItemTemplate  >
<a  target=_self  href='ClientCheck.aspx?id= <%#Eval("CheckID")%>&type=<%#Eval("ApplyType").ToString() == "转意向客户申请" ? "qz":"date"%>'>审批</a>
    
     
                    
</ItemTemplate>
</c1webgrid:C1TemplateColumn>
           
        
            
            
        </Columns> 
    
        </c1webgrid:c1webgrid></td>
  </TR>
<TR>
						<TD class="TableControl" height=22 noWrap align="center" >
                      
						</TD>
					</TR>
       </TABLE>
       </div>
      
        <input id="HidCode" type="hidden"  runat=server />
    </form>
</body>
</html>
