/// <summary>
 /// 分两种,一种是类型为叶节点,另一种是条目为叶子节点
 /// 本层加载的是类型
 /// </summary>
 protected void AddTopNodes()
 {
     List<SWFVersion> WFVList = new WorkFlowDB().SelectWFVersionList();
     for (int i = 0; i < WFVList.Count; i++)
     {
         ZJGEportTreeNode node = new ZJGEport.WebControls35.ZJGEportTreeNode();
         node.Text = WFVList[i].VersionName;
         node.Value = WFVList[i].VersionGuid;
         node.NavigateUrl = "VersionStep_List.aspx?VersionGuid=" + node.Value;
         node.PopulateOnDemand = false;
         TreeView1.Nodes.Add(node);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         string StepGuid = Convert.ToString(Request.QueryString["StepGuid"]);
         SWFStep Step = new WorkFlowDB().SelectSWFStep(StepGuid);
         if (Step.StepName == "��ʼ" || Step.StepName == "����")
         {
             CallJsFun("alert('��ʼ�ͽ����ڵ㲻�ܽ����޸�.');window.close();");
         }
         txtStepName.Text = Step.StepName;
         txtRoleName.Text = Step.CheckRoleName;
         hidRoleGuid.Value = Step.CheckRoleGuid;
         txtStepOrder.Text = Step.StepOrder.ToString();
     }
 }
 /// <summary>
 /// 加载该版本的所有节点,除自身外
 /// </summary>
 protected void AddTopNodes()
 {
     //根据版本GUID获取全部子节点
     string VersionGuid = Convert.ToString(Request.QueryString["VersionGuid"]);
     string StepGuid = Convert.ToString(Request.QueryString["StepGuid"]);
     List<SWFStep> WFSList = new WorkFlowDB().SelectSWFStepList(VersionGuid);
     for (int i = 0; i < WFSList.Count; i++)
     {
         if (WFSList[i].StepGuid != StepGuid)
         {
             ZJGEportTreeNode node = new ZJGEport.WebControls35.ZJGEportTreeNode();
             node.Text = WFSList[i].StepName;
             node.Value = WFSList[i].StepGuid;
             node.PopulateOnDemand = false;
             node.CtrlClickFunction = "SetStepVal('" + node.Value + "','" + node.Text + "') ";
             TreeView1.Nodes.Add(node);
         }
     }
 }