Esempio n. 1
0
        /// <summary>
        /// 获取用户全部属性信息实体
        /// </summary>
        public ColoPay.Model.Members.UsersExpModel GetUsersModel(int UserID)
        {
            //Users
            ColoPay.Model.Members.UsersExpModel model = dal.GetModel(UserID);
            if (model == null)
            {
                model = new UsersExpModel();
            }
            YSWL.Accounts.Bus.User user = new YSWL.Accounts.Bus.User(UserID);

            model.Activity     = user.Activity;
            model.DepartmentID = user.DepartmentID;
            model.Email        = user.Email;
            model.EmployeeID   = user.EmployeeID;
            model.Phone        = user.Phone;
            model.Password     = user.Password;
            if (user.Sex != null)
            {
                model.Sex = user.Sex.Trim();
            }
            model.Style              = user.Style;
            model.TrueName           = user.TrueName;
            model.NickName           = user.NickName;
            model.User_cLang         = user.User_cLang;
            model.User_dateApprove   = user.User_dateApprove;
            model.User_dateCreate    = user.User_dateCreate;
            model.User_dateExpire    = user.User_dateExpire;
            model.User_dateValid     = user.User_dateValid;
            model.User_iApprover     = user.User_iApprover;
            model.User_iApproveState = user.User_iApproveState;
            model.User_iCreator      = user.User_iCreator;
            model.UserID             = user.UserID;
            model.UserName           = user.UserName;
            model.UserType           = user.UserType;
            return(model);
        }
Esempio n. 2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(ColoPay.Model.Members.UsersExpModel model)
 {
     return(dal.Update(model));
 }
Esempio n. 3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(ColoPay.Model.Members.UsersExpModel model)
 {
     return(dal.Add(model));
 }