protected void RefundQueryGridView_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "refundStatus") { int rowIndex = Convert.ToInt32(e.CommandArgument); string refundNo = refunds[rowIndex].refundNo.ToString(); BCRefundStatusQueryResult result = BCPay.BCRefundStatusQuery("WX", refundNo); Response.Write("<span style='color:#00CD00;font-size:20px'>" + result.resultCode + "</span><br/>"); Response.Write("<span style='color:#00CD00;font-size:20px'>" + result.resultMsg + "</span><br/>"); Response.Write("<span style='color:#00CD00;font-size:20px'>" + result.errDetail + "</span><br/>"); Response.Write("<span style='color:#00CD00;font-size:20px'>" + result.refundStatus + "</span><br/>"); } }
protected void RefundQueryGridView_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "refundStatus") { if (typeChannel == "WX") { int rowIndex = Convert.ToInt32(e.CommandArgument); string refundNo = refunds[rowIndex].refundNo.ToString(); try { string status = BCPay.BCRefundStatusQuery("WX", refundNo); Response.Write("<span style='color:#00CD00;font-size:20px'>" + status + "</span><br/>"); } catch (Exception excption) { Response.Write("<span style='color:#00CD00;font-size:20px'>" + excption.Message + "</span><br/>"); } } if (typeChannel == "YEE") { int rowIndex = Convert.ToInt32(e.CommandArgument); string refundNo = refunds[rowIndex].refundNo.ToString(); try { string status = BCPay.BCRefundStatusQuery("YEE", refundNo); Response.Write("<span style='color:#00CD00;font-size:20px'>" + status + "</span><br/>"); } catch (Exception excption) { Response.Write("<span style='color:#00CD00;font-size:20px'>" + excption.Message + "</span><br/>"); } } if (typeChannel == "KUAIQIAN") { int rowIndex = Convert.ToInt32(e.CommandArgument); string refundNo = refunds[rowIndex].refundNo.ToString(); try { string status = BCPay.BCRefundStatusQuery("KUAIQIAN", refundNo); Response.Write("<span style='color:#00CD00;font-size:20px'>" + status + "</span><br/>"); } catch (Exception excption) { Response.Write("<span style='color:#00CD00;font-size:20px'>" + excption.Message + "</span><br/>"); } } } }