protected void TreeView2_SelectedNodeChanged(object sender, EventArgs e) { TreeNode trnCur = TreeView2.SelectedNode; ltrDeptID.Text = trnCur.Value.ToString(); ltrDeptPath.Text = WebCommon.GetParentTreeText(TreeView2); }
protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e) { DeptInfos dept = new DeptInfos(); string deptid = this.TreeView1.SelectedNode.Value; string deptname = this.TreeView1.SelectedNode.Text; ltrHiddenDeptID.Text = deptid; int level = 0; if (Request["mode"].Equals("New")) { ltrTreePath_New.Text = dept.GetDeptpath(int.Parse(deptid), ref level); ltrHiddenLevel.Text = level.ToString(); } else if (Request["mode"].Equals("Rename")) { ltrTreePath_Rename.Text = dept.GetDeptpath(int.Parse(deptid), ref level).Replace(deptname, "").Replace("//", "/"); ltrHiddenLevel.Text = level.ToString(); txtDeptRename.Text = deptname; } else if (Request["mode"].Equals("Move")) { ltrTreePath_Move.Text = dept.GetDeptpath(int.Parse(deptid), ref level); ltrHiddenLevel.Text = level.ToString(); } else if (Request["mode"].Equals("Remove")) { //ltrTreePath_Remove.Text = dept.GetDeptpath(int.Parse(deptid), ref level); ltrTreePath_Remove.Text = WebCommon.GetParentTreeText(TreeView1); ltrHiddenLevel.Text = level.ToString(); } }
protected void TreeView2_SelectedNodeChanged(object sender, EventArgs e) { DeptInfos dept = new DeptInfos(); string deptid = this.TreeView2.SelectedNode.Value; string deptname = this.TreeView2.SelectedNode.Text; int level = 0; //txtDeptMove.Text = dept.GetDeptpath(int.Parse(deptid), ref level); txtDeptMove.Text = WebCommon.GetParentTreeText(TreeView2); txtMoveLevel.Text = level.ToString(); txtMoveDeptID.Text = deptid; }
protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e) { DeptInfos dept = new DeptInfos(); string deptid = this.TreeView1.SelectedNode.Value; string deptname = this.TreeView1.SelectedNode.Text; ltrHiddenDeptID.Text = deptid; int level = 0; //ltrTreePath_Move.Text = dept.GetDeptpath(int.Parse(deptid), ref level); ltrTreePath_Move.Text = WebCommon.GetParentTreeText(TreeView1); ltrHiddenLevel.Text = level.ToString(); }