Exemple #1
0
        /// <summary>
        /// �ܾ�ͨ�����
        /// </summary>
        /// <param name="descTabName">���ݱ�ʶ</param>
        /// <param name="infoId">��ϢId</param>
        /// <param name="reason">ԭ��</param>
        /// <param name="advice">����</param>
        protected int NotPassAudit(string descTabName, long infoId, string reason, string advice)
        {
            XYECOM.Business.Auditing audBLL = new XYECOM.Business.Auditing();
            XYECOM.Model.AuditingInfo audInfo = new XYECOM.Model.AuditingInfo();

            //�޸����״̬
            int i = audBLL.UpdatesAuditing(infoId, descTabName, XYECOM.Model.AuditingState.NoPass);

            audInfo = audBLL.GetItem(infoId + "", descTabName);

            if (audInfo == null)
            {
                audInfo = new XYECOM.Model.AuditingInfo();
                audInfo.DescTabName = descTabName;
                audInfo.DescTabID = infoId;
            }

            audInfo.A_Advice = reason;
            audInfo.A_Reason = advice;

            audBLL.Update(audInfo);

            return i;
        }
    protected void Button2_Click(object sender, EventArgs e)
    {
        int i = 0;
        string url = "certificatelist.aspx";
        if (Request.QueryString["CE_ID"] != null && Request.QueryString["CE_ID"].ToString() != "")
        {
            long infoId = XYECOM.Core.MyConvert.GetInt64(Request.QueryString["CE_ID"].ToString());

            i = new Auditing().UpdatesAuditing(infoId, "U_Certificate", XYECOM.Model.AuditingState.Passed);

            if (i > 0)
            {
                if (this.U_ID.Value != "")
                {
                    //资料完善度
                    new XYECOM.Business.UserReg().UpdateUserPerfectPercent(XYECOM.Core.MyConvert.GetInt64(this.U_ID.Value));
                }
                Alert("审核成功!",url);
            }
            else
            {
                Alert("审核失败!", url);
            }
        }
    }
Exemple #3
0
    protected void GV1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        int iRowNo = Convert.ToInt32(e.CommandArgument);

        long userId = 0;
        int ceId = 0;

        if (e.CommandName == "shenhe")
        {
            ceId = Convert.ToInt32(GV1.DataKeys[iRowNo].Value);

            LinkButton linkBtn = (LinkButton)GV1.Rows[iRowNo].Cells[6].Controls[0];

            if (GV1.DataKeys[Convert.ToInt32(e.CommandArgument)]["U_ID"].ToString() != "")
            {
                userId = Convert.ToInt64(GV1.DataKeys[Convert.ToInt32(e.CommandArgument)]["U_ID"].ToString());
            }

            XYECOM.Business.Auditing audBLL = new Auditing();

            if (linkBtn.Text == "通过审核")
            {
                int t = 0;

                t = audBLL.UpdatesAuditing(ceId, "U_Certificate", XYECOM.Model.AuditingState.NoPass);

                if (t >= 0)new XYECOM.Business.UserReg().UpdateUserPerfectPercent(userId);
            }
            else if (linkBtn.Text == "审核未通过" || linkBtn.Text == "未审核")
            {
                int j = 0;

                j = audBLL.UpdatesAuditing(ceId, "U_Certificate", XYECOM.Model.AuditingState.Passed);

                if (j >= 0) new XYECOM.Business.UserReg().UpdateUserPerfectPercent(userId);
            }
        }

        BindData();
    }
    protected void gvlist_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        XYECOM.Business.Auditing audBLL = new Auditing();

        int row = Convert.ToInt32(e.CommandArgument);
        Int64 id = Convert.ToInt64(this.gvlist.DataKeys[row][0].ToString());

        LinkButton lb = (LinkButton)this.gvlist.Rows[row].Cells[7].Controls[0];
        LinkButton LB = (LinkButton)this.gvlist.Rows[row].Cells[6].Controls[0];
        XYECOM.Business.News ne = new XYECOM.Business.News();

        if (e.CommandName == "ChangeAuditing")
        {
            if (lb.Text == "通过审核")
            {
                audBLL.UpdatesAuditing(id, "n_news", XYECOM.Model.AuditingState.NoPass);
            }
            else if (lb.Text == "未通过审核")
            {
                audBLL.UpdatesAuditing(id, "n_news", XYECOM.Model.AuditingState.Passed);
            }
        }

        if (e.CommandName == "ChangeCommand")
        {
            if (LB.Text == "推荐")
            {
                ne.UpdateForCommand(id, false);
            }
            else if (LB.Text == "不推荐")
            {
                ne.UpdateForCommand(id, true);
            }
        }
        BindData();
    }
    /// <summary>
    /// 批量审核
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnAuditing_Click(object sender, EventArgs e)
    {
        long newsId = 0;
        XYECOM.Business.Auditing audBLL = new Auditing();

        foreach (GridViewRow GR in this.gvlist.Rows)
        {
            if (((CheckBox)(GR.FindControl("chkExport"))).Checked == true)
            {
                newsId = XYECOM.Core.MyConvert.GetInt64(gvlist.DataKeys[GR.DataItemIndex].Value.ToString());

                if (newsId <= 0) continue;

                audBLL.UpdatesAuditing(newsId, "n_news", XYECOM.Model.AuditingState.Passed);
            }
        }

        BindData();
    }
Exemple #6
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 = "暂无建议";
                    }
                }
            }
        }
    }
Exemple #7
0
    protected void Button5_Click(object sender, EventArgs e)
    {
        XYECOM.Business.Auditing auditingBLL = new XYECOM.Business.Auditing();

        int i = auditingBLL.UpdatesAuditing(Convert.ToInt64(this.U_ID.Value), "u_user", XYECOM.Model.AuditingState.Passed);

        if (i > 0)
        {
            if (this.U_ID.Value != "")
            {
                new XYECOM.Business.UserReg().UpdateUserPerfectPercent(XYECOM.Core.MyConvert.GetInt64(this.U_ID.Value));
            }
            Alert("审核成功!", Request.Url.PathAndQuery);
        }
        else
        {
            Alert("审核失败!", Request.Url.PathAndQuery);
        }
    }
Exemple #8
0
    protected void gvlist_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        int u_id = 0;

        int iRowNo = Convert.ToInt32(e.CommandArgument);
        u_id = Convert.ToInt32(this.gvlist.DataKeys[iRowNo].Value);

        string U_Name = this.gvlist.DataKeys[Convert.ToInt32(e.CommandArgument)]["U_Name"].ToString();
        long U_ID = 0;
        string Email = "";
        string title = "";

        if (gvlist.DataKeys[Convert.ToInt32(e.CommandArgument)]["U_ID"].ToString() != "")
        {
            U_ID = Convert.ToInt64(gvlist.DataKeys[Convert.ToInt32(e.CommandArgument)]["U_ID"].ToString());
        }
        if (gvlist.DataKeys[Convert.ToInt32(e.CommandArgument)]["U_Email"].ToString() != "")
        {
            Email = gvlist.DataKeys[Convert.ToInt32(e.CommandArgument)]["U_Email"].ToString();
        }
        if (gvlist.DataKeys[Convert.ToInt32(e.CommandArgument)]["UI_Name"].ToString() != "")
        {
            title = gvlist.DataKeys[Convert.ToInt32(e.CommandArgument)]["UI_Name"].ToString();
        }

        #region 审核
        if (e.CommandName == "shenhe")
        {
            //获取该行的主键
            LinkButton LB = (LinkButton)this.gvlist.Rows[iRowNo].Cells[7].Controls[0];
            XYECOM.Business.Auditing audBLL = new XYECOM.Business.Auditing();

            string aa = LB.Text;
            if (U_ID.ToString() != "")
            {
                if (LB.Text == "通过审核")
                {
                    int j = audBLL.UpdatesAuditing(U_ID, "u_user", XYECOM.Model.AuditingState.NoPass);
                    if (j >= 0)
                    {
                        //给用户留言
                        if (U_ID.ToString() != "")
                        {
                            SendMessage(U_ID);
                        }
                        //给用户发短信
                        if (Email.ToString() != "")
                        {
                            SendEmail(title, Email);
                        }
                    }
                }
                else if (LB.Text == "审核未通过" || LB.Text == "未审核")
                {
                    int j = audBLL.UpdatesAuditing(U_ID, "u_user", XYECOM.Model.AuditingState.Passed);
                }
            }

            BindData();
        }
        #endregion

        this.DataBind();
    }