private void grdBalanceDrawRequest_RowCommand(object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e) { System.Web.UI.WebControls.GridViewRow gridViewRow = (System.Web.UI.WebControls.GridViewRow)((System.Web.UI.Control)e.CommandSource).NamingContainer; int num = (int)this.grdBalanceDrawRequest.DataKeys[gridViewRow.RowIndex].Value; if (e.CommandName == "UnLineReCharge") { if (DistributorHelper.DealDistributorBalanceDrawRequest(num, true)) { this.GetBalanceDrawRequest(); } else { this.ShowMsg("预付款提现申请操作失败", false); } } if (e.CommandName == "RefuseRequest") { if (DistributorHelper.DealDistributorBalanceDrawRequest(num, false)) { this.GetBalanceDrawRequest(); return; } this.ShowMsg("预付款提现申请操作失败", false); } }
private void grdBalanceDrawRequest_RowCommand(object sender, GridViewCommandEventArgs e) { GridViewRow namingContainer = (GridViewRow)((Control)e.CommandSource).NamingContainer; int userId = (int)grdBalanceDrawRequest.DataKeys[namingContainer.RowIndex].Value; if (e.CommandName == "UnLineReCharge") { if (DistributorHelper.DealDistributorBalanceDrawRequest(userId, true)) { GetBalanceDrawRequest(); } else { ShowMsg("预付款提现申请操作失败", false); } } if (e.CommandName == "RefuseRequest") { if (DistributorHelper.DealDistributorBalanceDrawRequest(userId, false)) { GetBalanceDrawRequest(); } else { ShowMsg("预付款提现申请操作失败", false); } } }