Exemplo n.º 1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        long userId = XYECOM.Core.MyConvert.GetInt64(this.U_ID.Value);

        int i = NotPassAudit("u_user", userId, this.tbA_Reason.Text.Trim(), this.tbA_Advice.Text.Trim());

        XYECOM.Business.UserReg ur = new XYECOM.Business.UserReg();
        XYECOM.Business.UserFictitiouCount uft = new XYECOM.Business.UserFictitiouCount();

        #region 审核成功
        if (i > 0)
        {
            //给用户留言
            if (userId > 0)
            {
                SendMessage(userId, "企业信息审核", "企业信息审核未通过原因:" + this.tbA_Advice.Text);
            }

            //给用户发短信
            if (this.Email.Value != "")
            {
                SendEmail(this.lbcompanyname.InnerHtml, this.Email.Value);
            }
            //个人资料
            XYECOM.Business.FaithSet fs = new XYECOM.Business.FaithSet();
            DataTable dt = fs.GetDataTable();

            if (rbcommonerror.Checked == true)//普通错误扣除的诚信指数和UU币
            {
                if (dt.Rows.Count > 0)
                {
                    if (dt.Rows[0]["GF_ErrMoney"].ToString() != "")//扣除UU币
                    {
                        uft.DeductUserUUFictitiouCount(Convert.ToInt64(this.U_ID.Value), Convert.ToInt32(dt.Rows[0]["GF_ErrMoney"].ToString()));
                    }
                    if (dt.Rows[0]["GF_ErrFath"].ToString() != "")// 扣除诚信指数
                    {
                        ur.DeductFaithMongy(Convert.ToInt64(this.U_ID.Value), Convert.ToInt32(dt.Rows[0]["GF_ErrFath"].ToString()));
                    }
                }

            }
            else if (rbgravenesserror.Checked == true)//恶意错误扣除的诚信指数和UU币
            {
                if (dt.Rows.Count > 0)
                {

                    if (dt.Rows[0]["GF_Fath"].ToString() != "")
                    {
                        ur.DeductFaithMongy(Convert.ToInt64(this.U_ID.Value), Convert.ToInt32(dt.Rows[0]["GF_Fath"].ToString()));
                    }
                    if (dt.Rows[0]["GF_Money"].ToString() != "")
                    {
                        uft.DeductUserUUFictitiouCount(Convert.ToInt64(this.U_ID.Value), Convert.ToDecimal(dt.Rows[0]["GF_Money"].ToString()));
                    }
                }
                ur.AddUserMaliceErr(Convert.ToInt64(this.U_ID.Value), 1);//恶意处罚的次数
            }
            Alert("操作成功!", Request.Url.PathAndQuery);
        }
        #endregion
        else
        {
            Alert("操作失败!", Request.Url.PathAndQuery);
        }
    }
Exemplo n.º 2
0
    private void GetReader(int userId)
    {
        XYECOM.Business.UserInfo userInfoBLL = new XYECOM.Business.UserInfo();
        XYECOM.Business.UserAccount userAccountBLL = new XYECOM.Business.UserAccount();
        XYECOM.Business.UserFictitiouCount userFictitiouCountBLL = new XYECOM.Business.UserFictitiouCount();
        XYECOM.Business.UserLogin userLoginBLL = new UserLogin();
        XYECOM.Business.Auditing auditingBLL = new Auditing();
        XYECOM.Business.UserReg regBLL = new UserReg();

        XYECOM.Model.UserInfo userInfo = userInfoBLL.GetItem(userId);
        XYECOM.Model.UserRegInfo reginfo = regBLL.GetItem(userId);

        //XYECOM.Model.UserAccountInfo userAccountInfo = userAccountBLL.GetItem(userId);
        XYECOM.Model.UserFictitiouCountInfo userFictitiouCountInfo = userFictitiouCountBLL.GetItem(userId);
        XYECOM.Model.UserLoginInfo userLoginInfo = userLoginBLL.GetItem(userId);

        XYECOM.Model.AuditingInfo atinfo = auditingBLL.GetItem(userId.ToString(), "u_User");

        //企业信息
        if (userInfo != null)
        {
            this.lbcompanyname.InnerHtml = userInfo.Name + "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"UserMoreInfo.aspx?U_ID=" + userId.ToString() + "&backURL=" + XYECOM.Core.Utils.JSEscape(XYECOM.Core.XYRequest.GetQueryString("backURL")) + "\">查看(编辑)公司详细资料>></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='EnterUserCenter.aspx?u_id=" + userId + "' target='_blank'>进入企业会员中心>></a>"; //公司名称
            this.lbsection.InnerHtml = userInfo.Section;//所在部门
            this.lbpost.InnerHtml = userInfo.Post;//担任职位
            this.lblevel.InnerHtml = userInfo.RegInfo.GradeInfo.GradeName + "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"ChangeUserGrade.aspx?ui=" + userId.ToString() + "&BackURL=" + XYECOM.Core.Utils.JSEscape(XYECOM.Core.XYRequest.GetQueryString("backURL")) + "\">更改会员等级>></a>";//更改会员等级
            this.phone.InnerHtml = userInfo.Telephone;
            this.linkman.InnerHtml = userInfo.LinkMan;
        }

        this.U_ID.Value = userId.ToString();

        //用户基本信息
        if (userInfo.RegInfo != null)
        {
            this.mail.InnerHtml = userInfo.RegInfo.Email;
            this.Email.Value = userInfo.RegInfo.Email;
            this.lbmark.InnerHtml = userInfo.RegInfo.Mark.ToString();//用户积分
        }

        //虚拟账户信息
        this.lbfcleftmoney.InnerHtml = userFictitiouCountInfo.C_LeftMoney.ToString(".#");//虚拟账户余额

        if (userLoginInfo != null)
        {
            this.regip.InnerHtml = userLoginInfo.RegIP;
            this.lastloginip.InnerHtml = userLoginInfo.LastLoginIP;
            this.lastlogintime.InnerHtml = userLoginInfo.LastLoginDate.ToString(); ;
            this.loginnum.InnerHtml = userLoginInfo.LoginNum.ToString();
        }
        else
        {
            this.regip.InnerHtml = "暂无信息";
            this.lastloginip.InnerHtml = "暂无信息";
            this.lastlogintime.InnerHtml = "暂无信息";
            this.loginnum.InnerHtml = "暂无信息";
        }

        if (userInfo.RegInfo.AuditingState == XYECOM.Model.AuditingState.Null)
        {
            this.lbmessage.Text = "未审核";
        }
        else if (userInfo.RegInfo.AuditingState == XYECOM.Model.AuditingState.Passed)
        {
            this.lbmessage.Text = "通过审核";
            this.Button5.Enabled = false;
        }
        else if (userInfo.RegInfo.AuditingState == XYECOM.Model.AuditingState.NoPass)
        {
            this.lbmessage.Text = "未通过审核";
            if (atinfo != null)
            {
                if (atinfo.A_Reason != "" || atinfo.A_Advice != "")
                {
                    this.plreason.Visible = true;
                    if (atinfo.A_Reason != "")
                    {
                        this.labreason.Text = atinfo.A_Reason;
                        this.tbA_Reason.Text = atinfo.A_Reason;
                    }
                    else
                    {
                        this.labreason.Text = "暂无原因";
                        this.tbA_Reason.Text = "暂无原因";
                    }
                    if (atinfo.A_Advice != "")
                    {
                        this.labadv.Text = atinfo.A_Advice;
                        this.tbA_Advice.Text = atinfo.A_Advice;
                    }
                    else
                    {
                        this.labadv.Text = "暂无建议";
                        this.tbA_Advice.Text = "暂无建议";
                    }
                }
            }
        }
    }