/// <summary> /// 从Request的QueryString获得类参数 /// </summary> public override void LoadDataFromQueryString() { this.rootID = WebUtility.GetRequestQueryValue("uspRoot", string.Empty); this.listMask = WebUtility.GetRequestQueryValue("uspListMask", UserControlObjectMask.All); this.selectMask = WebUtility.GetRequestQueryValue("uspSelectMask", UserControlObjectMask.All); this.multiSelect = WebUtility.GetRequestQueryValue("uspMultiSelect", false); this.showOpinionInput = WebUtility.GetRequestQueryValue("soi", false); base.LoadDataFromQueryString(); }
/// <summary> /// 从Request的QueryString获得类参数 /// </summary> public override void LoadDataFromQueryString() { this.rootPath = WebUtility.GetRequestQueryValue("ucpRoot", string.Empty); this.listMask = WebUtility.GetRequestQueryValue("ucpListMask", UserControlObjectMask.All); this.selectMask = WebUtility.GetRequestQueryValue("ucpSelectMask", UserControlObjectMask.All); this.multiSelect = WebUtility.GetRequestQueryValue("ucpMultiSelect", false); this.mergeSelectResult = WebUtility.GetRequestQueryValue("msr", false); this.showDeletedObjects = WebUtility.GetRequestQueryValue("sdo", false); this.enableUserPresence = WebUtility.GetRequestQueryValue("eup", true); base.LoadDataFromQueryString(); }
protected void Page_Load(object sender, EventArgs e) { int resourceType = Int32.Parse(Request.Params["resourceType"]); UserControlObjectMask resType = (UserControlObjectMask)resourceType; OuUserInputControl.SelectMask = resType; //if (isOrg) //{ // sResType = "部门 "; // OuUserInputControl.SelectMask = MCS.OA.Web.WebControls.UserControlObjectMask.Organization; //} //else //{ // sResType = "用户"; // OuUserInputControl.SelectMask = MCS.OA.Web.WebControls.UserControlObjectMask.All; //} }
private void BindOguObjToTreeNode(IOguObject obj, DeluxeTreeNode treeNode, bool multiSelect, UserControlObjectMask selectMask) { treeNode.Text = obj.DisplayName; if (obj.ObjectType == SchemaType.Organizations) { treeNode.ChildNodesLoadingType = ChildNodesLoadingTypeDefine.LazyLoading; } string nodeImg = GetImageUrlByObjectType(obj, treeNode); treeNode.NodeOpenImg = nodeImg; treeNode.NodeCloseImg = nodeImg; treeNode.ShowCheckBox = multiSelect && (((int)obj.ObjectType & (int)selectMask) != 0); treeNode.ExtendedData = obj; treeNode.ExtendedDataKey = TreeExtendedDataKey; }
private static void FilterObjectToTreeNode(IOguObject obj, DeluxeTreeNode treeNode, UserControlObjectMask listMask, ref bool cancel) { int mask = (int)obj.ObjectType & (int)listMask; if (mask == 0) { cancel = true; } }
private void BindChildren(DeluxeTreeNodeCollection nodes, IEnumerable <IOguObject> objects, bool multiSelect, UserControlObjectMask listMask, UserControlObjectMask selectMask) { OguDataCollection <IOguObject> wrappedObjects = CreateWrappedObjects(objects); foreach (IOguObject obj in wrappedObjects) { DeluxeTreeNode treeNode = new DeluxeTreeNode(); bool cancel = false; BindOguObjToTreeNode(obj, treeNode, multiSelect, selectMask); FilterObjectToTreeNode(obj, treeNode, listMask, ref cancel); if (cancel == false) { if (LoadingObjectToTreeNode != null) { LoadingObjectToTreeNode(this, obj, treeNode, ref cancel); } } if (this.selectedOuUserData.FindSingleObjectByFullPath(obj.FullPath) != null) { treeNode.Checked = true; } if (cancel == false) { nodes.Add(treeNode); } } if (ObjectsLoaded != null) { ObjectsLoaded(this, wrappedObjects); } }
/// <summary> /// 从Request的QueryString获得类参数 /// </summary> public override void LoadDataFromQueryString() { this.rootID = WebUtility.GetRequestQueryValue("uspRoot", string.Empty); this.listMask = WebUtility.GetRequestQueryValue("uspListMask", UserControlObjectMask.All); this.selectMask = WebUtility.GetRequestQueryValue("uspSelectMask", UserControlObjectMask.All); this.multiSelect = WebUtility.GetRequestQueryValue("uspMultiSelect", false); this.isConsign = WebUtility.GetRequestQueryValue("uspIsConsign", false); base.LoadDataFromQueryString(); }
private void BindOguObjToTreeNode(IOguObject obj, DeluxeTreeNode treeNode, bool multiSelect, UserControlObjectMask selectMask) { treeNode.Text = obj.DisplayName; if (obj.ObjectType == SchemaType.Organizations) treeNode.ChildNodesLoadingType = ChildNodesLoadingTypeDefine.LazyLoading; string nodeImg = GetImageUrlByObjectType(obj, treeNode); treeNode.NodeOpenImg = nodeImg; treeNode.NodeCloseImg = nodeImg; treeNode.ShowCheckBox = multiSelect && (((int)obj.ObjectType & (int)selectMask) != 0); treeNode.ExtendedData = obj; treeNode.ExtendedDataKey = TreeExtendedDataKey; }
private static void FilterObjectToTreeNode(IOguObject obj, DeluxeTreeNode treeNode, UserControlObjectMask listMask, ref bool cancel) { int mask = (int)obj.ObjectType & (int)listMask; if (mask == 0) cancel = true; }
private void BindChildren(DeluxeTreeNodeCollection nodes, IEnumerable<IOguObject> objects, bool multiSelect, UserControlObjectMask listMask, UserControlObjectMask selectMask) { OguDataCollection<IOguObject> wrappedObjects = CreateWrappedObjects(objects); foreach (IOguObject obj in wrappedObjects) { DeluxeTreeNode treeNode = new DeluxeTreeNode(); bool cancel = false; BindOguObjToTreeNode(obj, treeNode, multiSelect, selectMask); FilterObjectToTreeNode(obj, treeNode, listMask, ref cancel); if (cancel == false) { if (LoadingObjectToTreeNode != null) LoadingObjectToTreeNode(this, obj, treeNode, ref cancel); } if (this.selectedOuUserData.FindSingleObjectByFullPath(obj.FullPath) != null) treeNode.Checked = true; if (cancel == false) nodes.Add(treeNode); } if (ObjectsLoaded != null) ObjectsLoaded(this, wrappedObjects); }