private void ultraTree1_AfterActivate(object sender, Infragistics.Win.UltraWinTree.NodeEventArgs e) { UltraTree tree = sender as UltraTree; if (tree.ActiveNode != null) { QueryPost((tree.ActiveNode.Tag as SysOrganization).OrganizationId); } }
private void ultraTree1_AfterActivate(object sender, Infragistics.Win.UltraWinTree.NodeEventArgs e) { UltraTreeNode node = ultraTree1.ActiveNode; if (node != null) { this.dataTable1.Clear(); dataTable1.Merge(this.FindDataTable(Globals.EMPLOYEE_SERVICE_NAME, "recursiveSingleFindByOrgId", new object[] { node.Key })); } }
private void ultraTree1_AfterActivate(object sender, Infragistics.Win.UltraWinTree.NodeEventArgs e) { if (e.TreeNode.Key.StartsWith("dept")) { gbOper.Visible = true; Dept dept = e.TreeNode.Tag as Dept; txtOperName.Text = ""; txtOperName.Tag = ""; txtCredentials.Text = ""; txtTel.Text = ""; cmbDept.Value = dept.cnnDeptID; btnAddOper.Visible = true; btnModifyOper.Visible = false; btnDeleteOper.Visible = false; } if (e.TreeNode.Key.StartsWith("oper")) { gbOper.Visible = true; Sales sales = e.TreeNode.Tag as Sales; btnAddOper.Visible = false; btnModifyOper.Visible = true; btnDeleteOper.Visible = true; txtOperName.Text = sales.cnvcSales; txtCredentials.Text = sales.cnvcCredentials; txtTel.Text = sales.cnvcTel; cmbDept.Value = sales.cnnDeptID; txtOperName.Tag = sales; } //if (e.TreeNode.Key == "0") //{ // if (this.dept.cnnDeptID != 0) // { // gbOper.Visible = false; // } // else // { // gbOper.Visible = true; // btnAddOper.Visible = true; // btnModifyOper.Visible = false; // btnDeleteOper.Visible = false; // txtOperName.Text = ""; // txtTel.Text = ""; // txtCredentials.Text = ""; // } //} }
private void ultraTreeFun_AfterActivate(object sender, Infragistics.Win.UltraWinTree.NodeEventArgs e) { UltraTreeNode node = (sender as UltraTree).ActiveNode; if (node != null) { SysFunction fun = node.Tag as SysFunction; if (fun.FunctionType.Equals("1014")) { QueryDataRight(fun.FunctionId); } } }
/// <summary> /// Handles the UltraTree's AfterCheck event. /// We need to propogate the change to our children and parents as necessary /// </summary> private void locationsTree_AfterCheck(object sender, Infragistics.Win.UltraWinTree.NodeEventArgs e) { // Disable checking node states while we play around with them locationsTree.AfterCheck -= locationsTree_AfterCheck; // Update check state for parents / children of this node UpdateStates(e.TreeNode); // Update our parent(s) state VerifyParentNodeCheckState(e.TreeNode); // Re-establish the AfterCheck event locationsTree.AfterCheck += new Infragistics.Win.UltraWinTree.AfterNodeChangedEventHandler(this.locationsTree_AfterCheck); }
/// <summary> /// Handles the UltraTree's AfterCheck event. /// We need to propogate the change to our children and parents as necessary /// </summary> private void fieldsTree_AfterCheck(object sender, Infragistics.Win.UltraWinTree.NodeEventArgs e) { // Disable checking node states while we play around with them fieldsTree.AfterCheck -= fieldsTree_AfterCheck; // Update check state for parents / children of this node UpdateStates(e.TreeNode); // Update our parent(s) state VerifyParentNodeCheckState(e.TreeNode); // Re-establish the AfterCheck event fieldsTree.AfterCheck += new Infragistics.Win.UltraWinTree.AfterNodeChangedEventHandler(this.fieldsTree_AfterCheck); // Inform interested parties of a change in the check state of the tree if (CheckChanged != null) { CheckChanged(this, e.TreeNode); } }