<%@ page language="C#" autoeventwireup="true" inherits="general_SystemManage_Dept_Select, CrmCommand" %>
<%@ Register Assembly="SControls" Namespace="SControls" TagPrefix="yyc" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<base  target=_self></base>
    <title>选择部门</title>
    <script>
     function selDept()
     {
            var objForm = document.forms["form1"];
    var objLen = objForm.length;
    for (var iCount = 0; iCount < objLen; iCount++)
    {
		if (objForm.elements[iCount].type == "checkbox")
		{
		     //if((objForm.elements[iCount].name.indexOf("chkExport")>-1))
		    // if((objForm.elements[iCount].name.indexOf(chkName)>-1))
		    // {
		        if(objForm.elements[iCount].checked)
		        {
		      
			         alert(objForm.elements[iCount].value);
			    }
	
			// }
		}
		
    }
     }
    </script>
</head>
<body>
    <form id="form1" runat="server">
           <table style="width: 200px" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td>
   <yyc:smarttreeview  id="SmartTreeView1" runat="server"  width="180px"  AllowCascadeCheckbox="True">
    <NodeStyle   CssClass="treenode"  Height=30px  />
   
   </yyc:smarttreeview>
   				</td>
			</tr>
			<tr>
				<td align="center">
				<br>
        <asp:Button ID="BtnSel" class="BigButton" runat="server" Text="选择部门" OnClick="BtnSel_Click" />
     
    			</td>
			</tr>
	</table>
     
    </form>
</body>
</html>
