protected override string btnModify_Click() { lock (obj) { decimal count = 0; try { //count = decimal.Parse(Request.Form["txtAddCount"]); //if (count < BLL.Configuration.Model.ActivateMinMoney || count > BLL.Configuration.Model.ActivateMaxMoney) //{ // return "投资金额必须在" + BLL.Configuration.Model.ActivateMinMoney + "-" + BLL.Configuration.Model.ActivateMaxMoney + "之间"; //} //if (count + TModel.MConfig.SHMoney > BLL.Configuration.Model.ActivateMaxMoney) //{ // return "累计投资金额不能超过" + BLL.Configuration.Model.ActivateMaxMoney; //} } catch { throw new Exception("投资金额必须为整数大于0的数"); } if (BLL.ChangeMoney.EnoughChange(TModel.MID, count, "MHB")) { return(BllModel.UpMAgencyType(BLL.Configuration.Model.SHMoneyList["002"], TModel.MID, "MHB", TModel, count)); } else { return("您的股权不足,无法追加投资"); } } }
protected override string btnModify_Click() { //判断是否信息完整 if (string.IsNullOrEmpty(TModel.BankCardName) || (string.IsNullOrEmpty(TModel.BankNumber) && string.IsNullOrEmpty(TModel.NumID))) { return("请先完善资料"); } //校验激活码 string activeCode = Request.Form["txtActiveCode"]; Model.ActiveCode list = BLL.ActiveCode.GetList("Code='" + activeCode + "' and UseState not in (2,4)").FirstOrDefault(); if (list == null) { return("激活码无效"); } Model.SHMoney shmoney = BLL.Configuration.Model.SHMoneyList["002"];//默认002 //if (BLL.ChangeMoney.EnoughChange(TModel.MID, BLL.Configuration.Model.YLMoney, "MHB")) //{ try { if (BLL.Member.upmidlist.Contains(TModel.MID)) { return("2"); } else { BLL.Member.upmidlist.Add(TModel.MID); } Hashtable MyHs = new Hashtable(); list.UseMID = TModel.MID; list.UseState = 2; list.UseTime = DateTime.Now; BLL.ActiveCode.Update(list, MyHs); return(BllModel.UpMAgencyType(shmoney, TModel.MID, TModel, 0, MyHs)); } finally { if (BLL.Member.upmidlist.Contains(TModel.MID)) { BLL.Member.upmidlist.Remove(TModel.MID); } } //} //else //{ // return "您的激活币账号余额不足"; //} }
protected override string btnModify_Click() { //if (Check_SQ_Answer()) //{ sjmodel = TModel; if (!string.IsNullOrEmpty(Request.Form["hdmid"])) { sjmodel = BllModel.GetModel(Request.Form["hdmid"]); } if (BLL.Configuration.Model.SHMoneyList.ContainsKey(Request.Form["AgencyTypeList"])) { Model.SHMoney shmoney = BLL.Configuration.Model.SHMoneyList[Request.Form["AgencyTypeList"]]; if (BLL.ChangeMoney.EnoughChange(TModel.MID, shmoney.Money - sjmodel.MAgencyType.Money, "MJB")) { try { if (BLL.Member.upmidlist.Contains(sjmodel.MID)) { return("升级处理中,请等待!"); } else { BLL.Member.upmidlist.Add(sjmodel.MID); } Hashtable MyHs = new Hashtable(); return(BllModel.UpMAgencyType(shmoney, Request.Form["hdmid"], TModel, shmoney.Money - sjmodel.MConfig.SHMoney, MyHs)); } finally { if (BLL.Member.upmidlist.Contains(sjmodel.MID)) { BLL.Member.upmidlist.Remove(sjmodel.MID); } } } else { return("您的账号余额不足"); } } else { return("未知会员级别"); } //} //else // return "密保问题错误*"; }
protected override string btnModify_Click() { sjmodel = TModel; if (!string.IsNullOrEmpty(Request.Form["hdmid"])) { sjmodel = BllModel.GetModel(Request.Form["hdmid"]); } if (BLL.Configuration.Model.SHMoneyList.ContainsKey(Request.Form["AgencyTypeList"])) { Model.SHMoney shmoney = BLL.Configuration.Model.SHMoneyList[Request.Form["AgencyTypeList"]]; if (BLL.ChangeMoney.EnoughChange(TModel.MID, shmoney.Money - sjmodel.MAgencyType.Money, "MJB")) { try { if (BLL.Member.upmidlist.Contains(sjmodel.MID)) { return("升级处理中,请等待!"); } else { BLL.Member.upmidlist.Add(sjmodel.MID); } return(BllModel.UpMAgencyType(shmoney, Request.Form["hdmid"], "MJB", TModel, shmoney.Money - sjmodel.MConfig.SHMoney)); } finally { if (BLL.Member.upmidlist.Contains(sjmodel.MID)) { BLL.Member.upmidlist.Remove(sjmodel.MID); } } } else { return("您的报单币账户余额不足"); } } else { return("未知会员级别"); } }
protected override string btnModify_Click() { //if (Check_SQ_Answer()) //{ sjmodel = TModel; if (!string.IsNullOrEmpty(Request.Form["hdmid"])) { sjmodel = BllModel.GetModel(Request.Form["hdmid"]); } //if (!sjmodel.MState) //{ // if (string.IsNullOrWhiteSpace(Request.Form["txtMBD"])) // { // return "接点人不能为空"; // } //} if (BLL.Configuration.Model.SHMoneyList.ContainsKey(Request.Form["AgencyTypeList"])) { Model.SHMoney shmoney = BLL.Configuration.Model.SHMoneyList[Request.Form["AgencyTypeList"]]; if (BLL.ChangeMoney.EnoughChange(TModel.MID, shmoney.Money - sjmodel.MAgencyType.Money, "MJB")) { try { if (BLL.Member.upmidlist.Contains(sjmodel.MID)) { return("升级处理中,请等待!"); } else { BLL.Member.upmidlist.Add(sjmodel.MID); } var result = BllModel.UpMAgencyType(shmoney, Request.Form["hdmid"], "MJB", TModel, shmoney.Money - sjmodel.MConfig.SHMoney, Request.Form["txtMBD"]); if (TModel.Role.IsAdmin) { BLL.OperationRecordBLL.Add(TModel.MID, ChangeType.O_SJHY, "升级会员"); } return(result); } finally { if (BLL.Member.upmidlist.Contains(sjmodel.MID)) { BLL.Member.upmidlist.Remove(sjmodel.MID); } } } else { return("您的" + BLL.Reward.List["MJB"].RewardName + "账户余额不足"); } } else { return("未知会员级别"); } //} //else // return "密保问题错误*"; }