예제 #1
0
 protected void LoadObectjToTreeNode(UserOUGraphControl treeControl, IOguObject oguObj, DeluxeTreeNode newTreeNode, ref bool cancel)
 {
     if (oguObj.ObjectType == SchemaType.Groups)
     {
         cancel = true;
     }
 }
		private void AddSelectedData(UserOUGraphControl ctrl, StringBuilder strB)
		{
			for (int i = 0; i < ctrl.SelectedOuUserData.Count; i++ )
			{
				if (strB.Length > 0)
					strB.Append("<BR/>");

				strB.Append(ctrl.SelectedOuUserData[i].FullPath);
			}
		}
예제 #3
0
        private static UserOUGraphControl CreateDialogControl()
        {
            UserOUGraphControl control = new UserOUGraphControl();

            control.ShowingMode           = ControlShowingMode.Dialog;
            control.RootExpanded          = true;
            control.SelectMask            = UserControlObjectMask.Organization;
            control.ListMask              = UserControlObjectMask.All;
            control.ControlIDToShowDialog = "showDialogBtn";

            return(control);
        }
        private void AddSelectedData(UserOUGraphControl ctrl, StringBuilder strB)
        {
            for (int i = 0; i < ctrl.SelectedOuUserData.Count; i++)
            {
                if (strB.Length > 0)
                {
                    strB.Append("<BR/>");
                }

                strB.Append(ctrl.SelectedOuUserData[i].FullPath);
            }
        }
		private static UserOUGraphControl CreateDialogControl()
		{
			UserOUGraphControl control = new UserOUGraphControl();

			control.ShowingMode = ControlShowingMode.Dialog;
			control.RootExpanded = true;
			control.SelectMask = UserControlObjectMask.Organization;
			control.ListMask = UserControlObjectMask.All;
			control.ControlIDToShowDialog = "showDialogBtn";

			return control;
		}
예제 #6
0
        private static UserOUGraphControl CreateNormalControl()
        {
            UserOUGraphControl control = new UserOUGraphControl();

            control.Width        = Unit.Pixel(300);
            control.Height       = Unit.Pixel(400);
            control.ShowingMode  = ControlShowingMode.Normal;
            control.RootExpanded = true;
            control.BorderStyle  = BorderStyle.Solid;
            control.BorderWidth  = Unit.Pixel(1);
            control.SelectMask   = UserControlObjectMask.Organization;
            control.ListMask     = UserControlObjectMask.All;

            return(control);
        }
		private static UserOUGraphControl CreateNormalControl()
		{
			UserOUGraphControl control = new UserOUGraphControl();

			control.Width = Unit.Pixel(300);
			control.Height = Unit.Pixel(400);
			control.ShowingMode = ControlShowingMode.Normal;
			control.RootExpanded = true;
			control.BorderStyle = BorderStyle.Solid;
			control.BorderWidth = Unit.Pixel(1);
			control.SelectMask = UserControlObjectMask.Organization;
			control.ListMask = UserControlObjectMask.All;

			return control;
		}
예제 #8
0
 protected void LoadObectjToTreeNode(UserOUGraphControl treeControl, IOguObject oguObj, DeluxeTreeNode newTreeNode, ref bool cancel)
 {
     if (oguObj.ObjectType == SchemaType.Groups)
         cancel = true;
 }
		private void groupControl_LoadingObjectToTreeNode(UserOUGraphControl treeControl, IOguObject oguObj, DeluxeTreeNode newTreeNode, ref bool cancel)
		{
			if ((oguObj is IUser) == false)
			{
				newTreeNode.ChildNodesLoadingType = ChildNodesLoadingTypeDefine.LazyLoading;

				if (oguObj is IGroup)
				{
					IGroup group = (IGroup)oguObj;

					int count = GroupMemberSelectedCount(group, treeControl.SelectedOuUserData);

					if (count > 0 && group.Members.Count == count)
					{
						newTreeNode.Checked = true;
						treeControl.SelectedOuUserData.Add(group);
					}
				}
			}
			else
			{
				OguUser user = (OguUser)oguObj;

				StringBuilder strB = new StringBuilder();

				foreach (IGroup group in user.MemberOf)
				{
					if (strB.Length > 0)
						strB.Append(",");

					strB.Append(group.ID);
				}

				user.Tag = strB.ToString();
			}

			newTreeNode.ShowCheckBox = true;
		}
		private IEnumerable<IOguObject> groupControl_GetChildren(UserOUGraphControl treeControl, IOguObject parent)
		{
			IEnumerable<IOguObject> result = null;

			if (parent is IOrganization)
				result = ((IOrganization)parent).Children;
			else
			{
				List<IOguObject> resultList = new List<IOguObject>();

				if (parent is IGroup)
				{
					foreach (IUser user in ((IGroup)parent).Members)
					{
						resultList.Add(OguBase.CreateWrapperObject(user));
					}

					result = resultList;
				}

				result = resultList;
			}

			return result;
		}
 protected void userSelector_LoadingObjectToTreeNode(UserOUGraphControl treeControl, IOguObject oguObj, DeluxeTreeNode newTreeNode, ref bool cancel)
 {
     newTreeNode.ShowCheckBox = true;
     newTreeNode.Checked = true;
 }
 protected void userSelector_LoadingObjectToTreeNode(UserOUGraphControl treeControl, IOguObject oguObj, DeluxeTreeNode newTreeNode, ref bool cancel)
 {
     newTreeNode.ShowCheckBox = true;
     newTreeNode.Checked      = true;
 }