private void GetReader(int userId) { XYECOM.Business.UserInfo userInfoBLL = new XYECOM.Business.UserInfo(); XYECOM.Business.UserReg regBLL = new UserReg(); XYECOM.Model.UserInfo userInfo = userInfoBLL.GetItem(userId); XYECOM.Model.UserRegInfo reginfo = regBLL.GetItem(userId); //企业信息 if (userInfo != null) { this.lbcompanyname.InnerHtml = userInfo.Name;//公司名称 this.phone.InnerHtml = userInfo.Telephone; this.address.InnerHtml = userInfo.Address; this.linkman.InnerHtml = userInfo.LinkMan; this.tdDescription.InnerHtml = userInfo.Description; this.area.InnerHtml = userInfo.AreaInfo.FullNameAll; } this.U_ID.Value = userId.ToString(); //用户基本信息 if (userInfo.RegInfo != null) { this.mail.InnerHtml = userInfo.RegInfo.Email; this.Email.Value = userInfo.RegInfo.Email; this.othercontract.InnerHtml = userInfo.RegInfo.OtherContact;//担任职位 } }
/// <summary> /// �ж��Ƿ��Է�����Ϣ /// </summary> /// <param name="userId">�û����id</param> /// <param name="moduleName">ģ������</param> /// <returns>���Է�����Ϣ������</returns> public static int GetAlreadyPostInfoNumberForModule(long userId, string moduleName) { XYECOM.Configuration.ModuleInfo module = XYECOM.Configuration.Module.Instance.GetItem(moduleName); Business.UserInfo userBLL = new UserInfo(); Model.UserInfo userInfo = userBLL.GetItem(userId); if (userInfo == null) return 0; //���ݿⷽ�� String tablename = ""; String useridfieldname = ""; String datefieldname = ""; String infoidfieldname = ""; int limitDate = DAL.GetItem(userInfo.RegInfo.GradeId).LimitDate; string endTime = DateTime.Now.AddDays(1).ToShortDateString().ToString(); string startTime = DateTime.Now.AddDays(-(limitDate)).ToShortDateString().ToString(); if (module != null) { if (module.EName.Equals("offer") || module.PEName.Equals("offer")) { tablename = "XYV_Supply"; useridfieldname = "U_ID"; datefieldname = "SD_PublishDate"; infoidfieldname = "SD_ID"; } if (module.EName.Equals("venture") || module.PEName.Equals("venture")) { tablename = "XYV_Demand"; useridfieldname = "U_ID"; datefieldname = "SD_PublishDate"; infoidfieldname = "SD_ID"; } if (module.EName.Equals("investment") || module.PEName.Equals("investment")) { tablename = "XYV_InviteBusinessmanInfo"; useridfieldname = "U_ID"; datefieldname = "IBI_PublishDate"; infoidfieldname = "IBI_ID"; } if (module.EName.Equals("service") || module.PEName.Equals("service")) { tablename = "XYV_ServiceInfo"; useridfieldname = "U_ID"; datefieldname = "S_AddTime"; infoidfieldname = "S_ID"; } } return userBLL.InfoAddNum(tablename, useridfieldname, userId, datefieldname, startTime, endTime, infoidfieldname, moduleName); }
/// <summary> /// 不通过审核 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnNoPass_Click(object sender, EventArgs e) { int id = MyConvert.GetInt32(this.hidID.Value); int i = manage.UpdateApprovaStatusByID(id, XYECOM.Model.CreditState.NoPass); if (i > 0) { long UserId = MyConvert.GetInt64(this.hidUserId.Value); string emial = new UserInfo().GetEmailByID((int)UserId); SendToMessage(UserId); SendEmail("债权信息 审核不通过通知", emial); Alert("审核成功", backURL); } else { Alert("审核失败", backURL); } }
protected void Button3_Click(object sender, EventArgs e) { XYECOM.Business.UserInfo ui = new XYECOM.Business.UserInfo(); XYECOM.Model.UserInfo eui = new XYECOM.Model.UserInfo(); XYECOM.Business.Message m = new XYECOM.Business.Message(); XYECOM.Model.MessageInfo ems = new XYECOM.Model.MessageInfo(); int k = 0; ems.Area_ID =-1; ems.M_Adress =""; ems.M_CompanyName =""; ems.M_Content = this.content.Text; ems.M_Email = ""; ems.M_FHM = ""; ems.M_HasReply = true; ems.M_Moblie = ""; ems.M_PHMa = ""; ems.M_RecverType = "administrator"; ems.M_Restore = true; ems.M_SenderType = "user"; ems.M_Sex = false ; ems.M_Title = this.title.Text; ems.M_UserName =""; ems.M_UserType = true; ems.U_ID =-1; ems.UR_ID = XYECOM.Core.MyConvert.GetInt64(this.U_ID.Value); k = m.Insert(ems); if (k > 0) { if (Request.QueryString["M_ID"].ToString() != "") { m.UpdateMess(Convert.ToInt64(Request.QueryString["M_ID"].ToString())); } Alert("回复成功!", "ReceiveEmail.aspx"); } else { Alert("回复失败.", "ReceiveEmail.aspx"); } }
protected void btnOk_Click(object sender, EventArgs e) { Int64 uid = XYECOM.Core.MyConvert.GetInt64(this.Request.QueryString["U_ID"].ToString()); XYECOM.Business.UserReg userreg = new XYECOM.Business.UserReg(); XYECOM.Model.UserRegInfo euser = userreg.GetItem(uid); euser.Email = tdemail.Text.Trim(); //电子邮件 euser.Answer = txtAnswer.Text.Trim(); euser.Question = txtQuestion.Text.Trim(); try { euser.RegDate = XYECOM.Core.MyConvert.GetDateTime(this.bgdate.Value); //注册时间 } catch { } userreg.Update(euser); XYECOM.Business.UserInfo userinfo = new XYECOM.Business.UserInfo(); XYECOM.Model.UserInfo info = userinfo.GetItem(uid); info.IM = txtIM.Text.Trim(); info.LinkMan = tdrealname.Text.Trim(); //真实姓名 info.Sex = tdsex.SelectedValue.Equals("1") ? true : false;//性别 info.Mobile = tdmobil.Text.Trim(); //手机 info.Section = tdsection.Text.Trim(); //所在部门 info.Post = tdpost.Text.Trim(); //所任职位 info.Name = companyname.Text.Trim(); //企业名称 info.AreaId = XYECOM.Core.MyConvert.GetInt32(areatypeid.Value.ToString()); info.Telephone = txtTelephone.Text.Trim(); info.Fax = txtFax.Text.Trim(); info.Postcode = tdpostcode.Text; //邮政编码 info.HomePage = tdhomepage.Text.Trim(); //企业网址 info.Address = tdlinkadress.Text.Trim(); //联系地址 info.Character = tdcharacter.Text.Trim(); //企业性质 info.UserTypeId = XYECOM.Core.MyConvert.GetInt64(companyid.Value.ToString()); //info.U_SupplyProduct = tdsupply.Text.Trim(); //提供的产品.服务 info.BuyPro = tdbuy.Text.Trim(); //需要的产品/服务 info.RegisteredCapital = XYECOM.Core.MyConvert.GetDecimal(tdmoney.Text.Trim());//注册资金 if (this.tdumode.SelectedValue != "") { info.Mode = ""; for (int i = 0; i < tdumode.Items.Count; i++) { if (tdumode.Items[i].Selected) { info.Mode += tdumode.Items[i].Text + ","; } } info.Mode = info.Mode.Substring(0, info.Mode.Length - 1); //经营模式 } info.RegYear = XYECOM.Core.MyConvert.GetInt32(lbyear.Text.Trim()); //注册时间 info.BusinessAddress = lbarea.Text.Trim(); //主要经营地点 info.RegAreaId = XYECOM.Core.MyConvert.GetInt32(lbaddress.Value.Trim()); //企业注册地 //info.U_PType = tdptype.Text.Trim(); //主营产品/服务 info.MainProduct = tdsupply.Text.Trim(); info.EmployeeTotal = lbnumber.Text.Trim(); //企业人数 info.Synopsis = tdsynopsis.Text.Trim(); //企业简介 if (userinfo.Update(info) > 0) Alert("修改成功!", backURL); else Alert("发生错误,修改失败!"); }
private void BindData(Int64 uid) { string moneyformat = "n"; //货币转换格式 XYECOM.Business.UserReg userRegBLL = new XYECOM.Business.UserReg(); XYECOM.Model.UserRegInfo userRegInfo = new XYECOM.Model.UserRegInfo(); userRegInfo = userRegBLL.GetItem(uid); if (!object.Equals(null, userRegInfo)) { this.tdusername.Text = userRegInfo.LoginName; //用户名 this.tdemail.Text = userRegInfo.Email; //电子邮件 this.bgdate.Value = userRegInfo.RegDate.ToShortDateString(); //注册时间 txtQuestion.Text = userRegInfo.Question; txtAnswer.Text = userRegInfo.Answer; } else { Alert("该会员信息有误,请重新选择.", backURL); } XYECOM.Business.UserInfo userInfoBLL = new XYECOM.Business.UserInfo(); XYECOM.Model.UserInfo userInfo = new XYECOM.Model.UserInfo(); userInfo=userInfoBLL.GetItem(uid); if (!object.Equals(null, userInfo)) { this.tdrealname.Text = userInfo.LinkMan; //真实姓名 if (userInfo.Sex == true) //性别 this.tdsex.Text = "1"; else this.tdsex.Text = "0"; tdIM.InnerHtml = XYECOM.Configuration.FreeCode.Instance.IM.Name + ":"; txtIM.Text = userInfo.IM; this.tdmobil.Text = userInfo.Mobile; //手机 this.tdsection.Text = userInfo.Section; //所在部门 this.tdpost.Text = userInfo.Post; //所任职位 this.companyname.Text = userInfo.Name; //企业名称 areatypeid.Value = userInfo.AreaId.ToString(); txtTelephone.Text = userInfo.Telephone; txtFax.Text = userInfo.Fax; this.tdpostcode.Text = userInfo.Postcode; //邮政编码 this.tdhomepage.Text = userInfo.HomePage.Trim(); //企业网址 this.tdlinkadress.Text = userInfo.Address; //联系地址 this.tdcharacter.Text = userInfo.Character; //企业性质 companyid.Value = userInfo.UserTypeId.ToString(); //this.tdsupply.Text = userInfo.U_SupplyProduct; //提供的产品.服务 this.tdsupply.Text = userInfo.MainProduct; this.tdbuy.Text = userInfo.BuyPro; //需要的产品/服务 if (userInfo.RegisteredCapital.ToString() != "") this.tdmoney.Text = Convert.ToDecimal(userInfo.RegisteredCapital).ToString(moneyformat); else this.tdmoney.Text = userInfo.Mode; //注册资金 this.tdmoneytype.Text = userInfo.MoneyType; //注册资金类别 tdumode.DataSource = new XYECOM.Business.Mode().GetDataTable(); tdumode.DataTextField = "M_Type"; tdumode.DataValueField = "M_Type"; tdumode.DataBind(); string[] modes = userInfo.Mode.Split(','); foreach (string s in modes) { for (int i = 0; i < tdumode.Items.Count; i++) { if (tdumode.Items[i].Value.Equals(s)) { tdumode.Items[i].Selected = true; break; } } } this.lbyear.Text = userInfo.RegYear.ToString(); //注册时间 this.lbarea.Text = userInfo.BusinessAddress; //主要经营地点 this.lbaddress.Value = userInfo.RegAreaId.ToString(); //企业注册地 //this.tdptype.Text = userInfo.U_PType; //主营产品/服务 this.lbnumber.Text = userInfo.EmployeeTotal; //企业人数 this.tdsynopsis.Text = userInfo.Synopsis; //企业简介 } else { Alert("该会员信息有误,请重新选择.", backURL); } }
private void UserMessage() { string strMsg = ""; string content = XYECOM.Core.Utils.IsLength(100, XYECOM.Core.XYRequest.GetQueryString("content")); string code = XYECOM.Core.XYRequest.GetQueryString("code"); string title = XYECOM.Core.Utils.IsLength(50, XYECOM.Core.XYRequest.GetQueryString("title")); string type = XYECOM.Core.XYRequest.GetQueryString("type"); string ids = XYECOM.Core.XYRequest.GetQueryString("ids"); string uids = XYECOM.Core.XYRequest.GetQueryString("uids"); if (content.Equals("") || title.Equals("") || ids.Equals("") || uids.Equals("")) { strMsg = "-1"; } else if (!Business.CheckUser.CheckUserLogin()) { strMsg = "nologin"; } else { if (Business.CheckUser.UserInfo.userid.ToString() == uids) { strMsg = "nomessage"; } } if (XYECOM.Configuration.Security.Instance.IsEnabledValidateCode(XYECOM.Configuration.ValidateCodeItem.Message)) { if (!CheckCode(code)) { strMsg = "codeErr"; } } if (!strMsg.Equals("")) { ResponseXML(Result.Success, "", "<content>" + strMsg + "</content>"); } //当前登录用户ID long loginUserId = Business.CheckUser.UserInfo.userid; //当前信息发布者ID long infoUserId = Convert.ToInt64(uids); string toEmail = new Business.UserReg().GetItem(infoUserId).Email; long infoId = XYECOM.Core.MyConvert.GetInt64(ids); #region 企业会员留言 XYECOM.Business.UserInfo userInfoBLL = new XYECOM.Business.UserInfo(); XYECOM.Model.UserInfo userInfo = userInfoBLL.GetItem(loginUserId); if (userInfo != null) { XYECOM.Model.MessageInfo messageInfo = new XYECOM.Model.MessageInfo(); messageInfo.M_Adress = userInfo.Address; messageInfo.M_Content = XYECOM.Core.Utils.RemoveHTML(content); messageInfo.M_Email = userInfo.RegInfo.Email.ToString(); messageInfo.M_FHM = userInfo.Fax.ToString(); messageInfo.M_HasReply = false; messageInfo.M_Moblie = userInfo.Mobile.ToString(); messageInfo.M_PHMa = userInfo.Telephone; messageInfo.M_Adress = userInfo.Address.ToString(); messageInfo.M_RecverType = ""; messageInfo.M_SenderType = type; messageInfo.M_Title = XYECOM.Core.Utils.RemoveHTML(title); messageInfo.UR_ID = infoUserId; messageInfo.M_UserName = userInfo.LinkMan; messageInfo.M_UserType = false; messageInfo.U_ID = loginUserId; messageInfo.M_CompanyName = userInfo.Name.ToString(); messageInfo.M_Sex = userInfo.Sex; messageInfo.Area_ID = userInfo.AreaId; messageInfo.InfoId = infoId; string sexStr = "女士"; if (userInfo.Sex) sexStr = "先生"; int result = new XYECOM.Business.Message().Insert(messageInfo); if (result >= 0) { string[] dLabel = new string[] { messageInfo.M_Title, messageInfo.M_Content, "<ul><li>姓名:"+messageInfo.M_UserName+" " + sexStr+"("+messageInfo.M_CompanyName+")</li><li>邮箱:"+messageInfo.M_Email+"</li><li>电话:"+messageInfo.M_Moblie+"</li></ul>", webInfo.WebDomain, webInfo.WebName }; string[] sLabel = new string[] { "{$Title$}", "{$Body$}", "{$Contacts$}", "{$WebUrl$}", "{$WebName$}" }; XYECOM.Business.Utils.SendMail(toEmail, messageInfo.M_Title, XYECOM.Core.TemplateEmail.GetContent(dLabel, sLabel, "/templateEmail/Enquiry.htm")); XYECOM.Core.Utils.ClearSession("VNum"); strMsg = "ok"; } else { strMsg = "err"; } } #endregion ResponseXML(Result.Success, "", "<content>" + strMsg + "</content>"); }
protected override void BindData() { lstDataBind(); DataBindLableType(); this.rbtnSystem.Checked = true; this.ImageButton1.Visible = false; int lid = XYECOM.Core.XYRequest.GetQueryInt("L_ID", 0); XYECOM.Model.LabelInfo el = null; if (lid > 0 && (el = le.GetItem(lid)) != null) { this.ImageButton1.Visible = true; lableid.Value = lid.ToString(); this.tbContent.Text = el.LabelContent; this.txtHead.Text = el.LabelStyleHead; this.txtConent.Text = el.LabelStyleContent; this.txtfooter.Text = el.LabelStyleFooter; this.hidTableName.Value = el.LabelTableName; this.txtDescription.Text = el.LabelDescription; switch (el.LabelRange) { case XYECOM.Model.LabelRange.System: this.hidUserIds.Value = ""; this.hidGroupIds.Value = ""; this.rbtnUser.Checked = false; this.rbtnUserGroup.Checked = false; this.rbtnSystem.Checked = true; break; case XYECOM.Model.LabelRange.User: this.hidUserIds.Value = el.GroupIdOrUserId; this.hidGroupIds.Value = ""; this.divuser.Style["display"] = "bolck"; this.divgroup.Style["display"] = "none"; XYECOM.Business.UserInfo userBll = new XYECOM.Business.UserInfo(); DataTable table = userBll.GetUserNamesByIds(el.GroupIdOrUserId); string names = string.Empty; foreach (DataRow row in table.Rows) { names += string.Format("{0}/{1}/{2},", row["u_name"], row["u_email"], row["ui_name"]); } this.spanUserNames.InnerHtml = XYECOM.Core.Utils.RemoveEndComma(names); this.spanGroupNames.InnerHtml = ""; this.rbtnUser.Checked = true; this.rbtnUserGroup.Checked = false; this.rbtnSystem.Checked = false; break; case XYECOM.Model.LabelRange.UserGropu: this.hidUserIds.Value = ""; this.hidGroupIds.Value = el.GroupIdOrUserId; this.divgroup.Style["display"] = "bolck"; this.divuser.Style["display"] = "none"; this.spanUserNames.InnerHtml = ""; this.rbtnUserGroup.Checked = true; this.rbtnUser.Checked = true; this.rbtnSystem.Checked = true; break; } this.hidLT_ID.SelectedValue = el.LabelTypeId.ToString(); int copy = XYECOM.Core.XYRequest.GetQueryInt("type", 0); if (copy == 0) { this.tbCName.Text = el.LabelCName; this.tbName.Text = el.LabelName; L_ID = el.Id; } } }
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 = "暂无建议"; } } } } }
/// <summary> /// �����û����������� /// </summary> /// <returns>���³ɹ�:1</returns> public int UpdateUserPerfectPercent(long userId) { XYECOM.Model.UserInfo userInfo = new UserInfo().GetItem(userId); //��ȡ������Ϣ XYECOM.Configuration.WebInfo webInfo = XYECOM.Configuration.WebInfo.Instance; //�������ƶ� int U_InFormation = 0; #region ���ƻ������� if (userInfo.LinkMan.ToString() != "" && userInfo.RegInfo.Email.ToString() != "" && userInfo.Telephone.ToString() != "" && userInfo.Address.ToString() != "" && userInfo.Name.ToString() != "" && userInfo.Character.ToString() != "" && userInfo.UserTypeId.ToString() != "" && userInfo.Post.ToString() != "" && userInfo.SupplyOrBuy.ToString() != "") { if (webInfo.BaseDatumPercent.ToString() != "") { int sum = webInfo.BaseDatumPercent + webInfo.RegisterPercent; U_InFormation += sum; } else { U_InFormation += 0; } } #endregion #region ����ֻ����� if (userInfo.Mobile.ToString() != "") { if (webInfo.MobilePercent.ToString() != "") { U_InFormation += webInfo.MobilePercent; } else { U_InFormation += 0; } } #endregion #region ������ڲ��� if (userInfo.Section.ToString() != "") { if (webInfo.DepartmentPercent.ToString() != "") { U_InFormation += webInfo.DepartmentPercent; } else { U_InFormation += 0; } } #endregion #region ��Ӳ������� if (userInfo.Name.ToString() != "" && userInfo.Mode.ToString() != "" && userInfo.MoneyType.ToString() != "" && userInfo.RegYear.ToString() != "" && userInfo.Address.ToString() != "" && userInfo.Address.ToString() != "" && userInfo.EmployeeTotal.ToString() != "" && userInfo.MainProduct.ToString() != "" && userInfo.Synopsis.ToString() != "") { if (webInfo.AdvancedDatumPercent.ToString() != "") { U_InFormation += webInfo.AdvancedDatumPercent; } else { U_InFormation += 0; } } #endregion #region ���ע���ʱ���Ϣ if (userInfo.RegisteredCapital.ToString() != "" && userInfo.MoneyType.ToString() != "") { if (webInfo.CapitalPercent.ToString() != "") { U_InFormation += webInfo.CapitalPercent; } else { U_InFormation += 0; } } #endregion #region ���Ӫҵִ�� int rows = 0; rows = XYECOM.Core.Function.GetRows("u_Certificate", "CE_ID", " where CE_Type=1 and U_ID=" + userId + " and AuditingState = 1"); if (rows > 0) { U_InFormation += webInfo.LicencePercent; } #endregion #region �������֤�� int trows = 0; trows = XYECOM.Core.Function.GetRows("u_Certificate", "CE_ID", " where CE_Type != 1 and U_ID=" + userId + " and AuditingState = 1"); if (trows > 0) { if (trows < webInfo.CertificatePercent) { if (webInfo.CertificatePercent != 0) { U_InFormation += 5 * trows; } else { U_InFormation += 0; } } else if (trows >= webInfo.CertificatePercent) { U_InFormation += webInfo.CertificatePercent * 5; } } else { U_InFormation += 0; } #endregion //�������Ƴ̶� return EditConsumate(userId, U_InFormation); }