Beispiel #1
0
        private void Send()
        {
            string title          = base.f("title");
            string contents       = base.f("content");
            string text           = base.f("type");
            string conditionValue = base.f("name");

            if (text.Equals("1"))
            {
                this.doh.Reset();
                this.doh.ConditionExpress = "Id=@Id";
                this.doh.AddConditionParameter("@Id", this.AdminId);
                string text2 = string.Concat(this.doh.GetField("N_User", "ParentId"));
                if (text2.Equals("0"))
                {
                    this._response = base.JsonResult(1, "您没有上级不能发送!");
                }
                else
                {
                    int num = new UserEmailDAL().Save(this.AdminId, text2, title, contents);
                    if (num > 0)
                    {
                        new LogSysDAL().Save("会员管理", "Id为" + this.AdminId + "的会员发送邮件!");
                        this._response = base.JsonResult(1, "邮件发送成功!");
                    }
                    else
                    {
                        this._response = base.JsonResult(1, "邮件发送失败!");
                    }
                }
            }
            else
            {
                this.doh.Reset();
                this.doh.ConditionExpress = "UserName=@UserName";
                this.doh.AddConditionParameter("@UserName", conditionValue);
                string text3 = string.Concat(this.doh.GetField("N_User", "Id"));
                if (string.IsNullOrEmpty(text3))
                {
                    this._response = base.JsonResult(1, "您输入的账号不正确!");
                }
                else
                {
                    new UserEmailDAL().Save(this.AdminId, text3, title, contents);
                    new LogSysDAL().Save("会员管理", "Id为" + this.AdminId + "的会员发送邮件!");
                    this._response = base.JsonResult(1, "邮件发送成功!");
                }
            }
        }
Beispiel #2
0
 public static IEnumerable <UEUser> GetUserTotal(BaseDataView bdv)
 {
     return(UserEmailDAL.GetUserTotal(bdv));
 }
Beispiel #3
0
 public static List <UEUser> GetUserGroupList()
 {
     return(UserEmailDAL.GetUserGroupList());
 }