/// <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; }
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 + " <a href=\"UserMoreInfo.aspx?U_ID=" + userId.ToString() + "&backURL=" + XYECOM.Core.Utils.JSEscape(XYECOM.Core.XYRequest.GetQueryString("backURL")) + "\">查看(编辑)公司详细资料>></a> <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 + " <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 = "暂无建议"; } } } } }