protected void btnSave_Click(object sender, EventArgs e) { string strReason = CtrlHelper.GetText(txtReason); int kindID = int.Parse(ddlGame.SelectedValue); if (kindID <= 0) { MessageBox("请选择游戏"); return; } if (string.IsNullOrEmpty(strReason)) { MessageBox("清零原因不能为空"); return; } AccountsInfo modelAccountInfo = new AccountsInfo( ); string[] arrUserIDList = StrParamsList.Split(new char[] { ',' }); int count = 0; foreach (string strid in arrUserIDList) { if (Utils.Validate.IsPositiveInt(strid)) { modelAccountInfo = aideAccountsFacade.GetAccountInfoByUserID(int.Parse(strid)); if (modelAccountInfo == null) { continue; } TreasureFacade tf = new TreasureFacade(kindID); Message msg = tf.GrantFlee(int.Parse(strid), kindID, userExt.UserID, strReason, GameRequest.GetUserIP( )); if (msg.Success) { count++; } } } if (count > 0) { MessageBox("所选用户共有" + count + "个用户逃跑记录,全部清除成功!"); } else { MessageBox("所选用户没有有逃跑记录的用户"); } }