protected void butSave_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.type)) { Dictionary <string, string> dictionary = new Dictionary <string, string>(); dictionary.Add("IsPayoutAlarm", this.GetIntFromBool(this.chkIncomePay.Checked)); dictionary.Add("PayoutAlarmDays", this.txtPayoutAlarmDays.Text.Trim()); dictionary.Add("IsIncomeAlarm", this.GetIntFromBool(this.chkIncomePay.Checked)); dictionary.Add("IncomeAlarmDays", this.txtIncomeAlarmDays.Text.Trim()); dictionary.Add("IsBalanceAlarm", this.GetIntFromBool(this.chkIsBalanceAlarm.Checked)); dictionary.Add("IsHighBalanceAlarm", this.GetIntFromBool(this.chkIsBalanceAlarm.Checked)); dictionary.Add("HighBalanceAlarmLimit", this.txtHighBalanceAlarmLimit.Text.Trim()); dictionary.Add("IsMidBalanceAlarm", this.GetIntFromBool(this.chkIsBalanceAlarm.Checked)); dictionary.Add("MidBalanceAlarmLowerLimit", this.txtMidBalanceAlarmLowerLimit.Text.Trim()); dictionary.Add("MidBalanceAlarmUpperLimit", this.txtMidBalanceAlarmUpperLimit.Text.Trim()); dictionary.Add("IsLowBalanceAlarm", this.GetIntFromBool(this.chkIsBalanceAlarm.Checked)); dictionary.Add("LowBalanceAlarmLowerLimit", this.txtLowBalanceAlarmLowerLimit.Text.Trim()); dictionary.Add("LowBalanceAlarmUpperLimit", this.txtLowBalanceAlarmUpperLimit.Text.Trim()); dictionary.Add("IsPaymentAlarm", this.GetIntFromBool(this.chkIsPaymentAlarm.Checked)); dictionary.Add("IsHighPayAlarm", this.GetIntFromBool(this.chkIsPaymentAlarm.Checked)); dictionary.Add("HighPayAlarmLimit", this.txtHighPayAlarmLimit.Text.Trim()); dictionary.Add("IsMidPayAlarm", this.GetIntFromBool(this.chkIsPaymentAlarm.Checked)); dictionary.Add("MidPayAlarmLowerLimit", this.txtMidPayAlarmLowerLimit.Text.Trim()); dictionary.Add("MidPayAlarmUpperLimit", this.txtMidPayAlarmUpperLimit.Text.Trim()); dictionary.Add("IsLowPayAlarm", this.GetIntFromBool(this.chkIsPaymentAlarm.Checked)); dictionary.Add("LowPayAlarmLowerLimit", this.txtLowPayAlarmLowerLimit.Text.Trim()); dictionary.Add("LowPayAlarmUpperLimit", this.txtLowPayAlarmUpperLimit.Text.Trim()); try { ContractParameter.Update(dictionary); base.RegisterScript("top.ui.show('更新成功')"); return; } catch (Exception ex) { StringBuilder stringBuilder = new StringBuilder("top.ui.alert('"); stringBuilder.Append(ex.Message).Append("')"); base.RegisterScript(stringBuilder.ToString()); return; } } string arg_2C1_0 = string.Empty; string str = string.Empty; if (this.contype == "IncometContractList") { str = "IncometContract/IncometContractList.aspx"; } else { if (this.contype == "PayoutContract") { str = "PayoutContract/PayoutContract.aspx"; } } if (!string.IsNullOrEmpty(this.Id)) { bool flag = this.configSer.IsExist(this.Id); ConConfigContract item = this.CreatModel(this.Id, flag); if (flag) { this.configSer.Update(item); } else { this.configSer.Add(item); } } StringBuilder stringBuilder2 = new StringBuilder(); stringBuilder2.Append("top.ui.show('更新成功'); \n"); stringBuilder2.Append("winclose('Config','" + str + "',true)"); base.RegisterScript(stringBuilder2.ToString()); }