Beispiel #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);
 }
Beispiel #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);
     }
 }
Beispiel #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]);
     }
 }
Beispiel #4
0
        //private IEnumerable<int> deptIds;
        #endregion

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