예제 #1
0
 /// <summary>
 /// 设置用户额外属性
 /// </summary>
 /// <param name="name"></param>
 /// <param name="value"></param>
 public void AddExtAttr(string name, string value)
 {
     if (extattr == null)
     {
         extattr = new UserExtensionAttribute();
     }
     extattr.Add(name, value);
 }
예제 #2
0
 /// <summary>
 /// 设置额外属性
 /// </summary>
 /// <param name="items"></param>
 public void SetExtAttr(params UserExtensionAttributeItem[] items)
 {
     if (extattr == null)
     {
         extattr = new UserExtensionAttribute();
     }
     foreach (var item in items)
     {
         extattr.Add(item);
     }
 }
예제 #3
0
 /// <summary>
 /// 设置用户额外属性
 /// </summary>
 /// <param name="attrs"></param>
 public void AddExtAttr(NameValueCollection attrs)
 {
     if (extattr == null)
     {
         extattr = new UserExtensionAttribute();
     }
     foreach (string key in attrs.Keys)
     {
         extattr.Add(key, attrs[key]);
     }
 }
예제 #4
0
        //private IEnumerable<int> deptIds;
        #endregion

        #region Ctor
        /// <summary>
        ///
        /// </summary>
        public CreateUserRequest()
        {
            department = new List <int>();
            extattr    = new UserExtensionAttribute();
        }