protected void btnEditUser_Click(object sender, EventArgs e) { decimal num1 = new decimal(0, 0, 0, false, 1); AgentGradeInfo agentGradeInfo = new AgentGradeInfo(); if (this.m_GradeId > 0) { agentGradeInfo = DistributorGradeBrower.GetAgentGradeInfo(this.m_GradeId); } agentGradeInfo.AgentGradeName = this.txtName.Text.Trim(); decimal.TryParse(this.txtFirstCommissionRise.Text.Trim(), out num1); agentGradeInfo.FirstCommissionRise = num1; agentGradeInfo.Description = this.txtDescription.Text.Trim(); agentGradeInfo.Ico = this.uploader1.UploadedImageUrl; if (this.m_GradeId <= 0) { if (!DistributorGradeBrower.CreateAgentGrade(agentGradeInfo)) { this.ShowMsg("代理商等级新增失败", false); return; } this.ShowMsgAndReUrl("成功新增了代理商等级", true, this.ReUrl); return; } if (!DistributorGradeBrower.UpdateAgent(agentGradeInfo)) { this.ShowMsg("代理商等级修改失败", false); return; } if (base.Request.QueryString["reurl"] != null) { this.ReUrl = base.Request.QueryString["reurl"].ToString(); } this.ShowMsgAndReUrl("成功修改了代理商等级", true, this.ReUrl); }