public static WfClientOguObjectBase CreateWrapperObject(string id, string name, ClientOguSchemaType schemaType)
        {
            WfClientOguObjectBase result = null;

            switch (schemaType)
            {
                case ClientOguSchemaType.Organizations:
                    result = new WfClientOrganization(id, name);
                    break;
                case ClientOguSchemaType.Users:
                    result = new WfClientUser(id, name);
                    break;
                case ClientOguSchemaType.Groups:
                    result = new WfClientGroup(id, name);
                    break;
                default:
                    throw new ApplicationException(string.Format("schemaType错误{0}", schemaType));
            }

            return result;
        }
        public static WfClientOguObjectBase CreateWrapperObject(string id, string name, ClientOguSchemaType schemaType)
        {
            WfClientOguObjectBase result = null;

            switch (schemaType)
            {
            case ClientOguSchemaType.Organizations:
                result = new WfClientOrganization(id, name);
                break;

            case ClientOguSchemaType.Users:
                result = new WfClientUser(id, name);
                break;

            case ClientOguSchemaType.Groups:
                result = new WfClientGroup(id, name);
                break;

            default:
                throw new ApplicationException(string.Format("schemaType错误{0}", schemaType));
            }

            return(result);
        }
 public WfClientDepartmentResourceDescriptor(WfClientOrganization department)
 {
     this.Department = department;
 }