/// <summary> /// 行命令事件 /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void gvSecanRemits_RowCommand(object sender, GridViewCommandEventArgs e) { string rimid = e.CommandArgument.ToString(); if (e.CommandName == "cof") { //Response.Redirect("Tochangmoney.aspx?rmid="+rimid); //double xinyuedu = D_AccountDAL.getAccountxinyuedu(Session["member"].ToString()) ; //double curremtmoney= RemittancesDAL.GetnewRemitmoneybyrmid(rimid); //if (xinyuedu >= curremtmoney) //{ //int isc = MemberInfoDAL.Getisconfirmuse(Session["member"].ToString()); //if (isc == 0) //{ string opnumber = ""; string opip = Request.UserHostAddress.ToString(); int ges = AddOrderDataDAL.PaymentRemitmoney(rimid, opnumber, opip, 1); if (ges == 0 || ges == 7) { ClientScript.RegisterStartupScript(this.GetType(), "", "<script> alert('" + GetTran("007630", "汇款充值确认操作成功") + "!');</script>"); LoadDatabyorderid(); } else { ClientScript.RegisterStartupScript(this.GetType(), "", "<script> alert('" + GetTran("007631", "汇款充值确认失败,再次进行确认") + "!');</script>"); } //} //else //{ // ClientScript.RegisterStartupScript(this.GetType(), "", "<script> alert('由于您之前的不当操作导致您的信誉额度不足,不能进行此操作!');</script>"); //} //} //else //{ // ClientScript.RegisterStartupScript(this.GetType(), "", "<script> alert('由于您之前的不当操作导致您的信誉额度不足,不能进行此操作!');</script>"); //} } if (e.CommandName == "upd") { // Response.Redirect("Tochangmoney.aspx?rmid=" + rimid); } }
/// <summary> /// 行命令事件 /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void gvSecanRemits_RowCommand(object sender, RepeaterCommandEventArgs e) { string rimid = e.CommandArgument.ToString(); if (e.CommandName == "cof") { string opnumber = ""; string opip = Request.UserHostAddress.ToString(); int ges = AddOrderDataDAL.PaymentRemitmoney(rimid, opnumber, opip, 1); if (ges == 0 || ges == 7) { ClientScript.RegisterStartupScript(this.GetType(), "", "<script> alert('" + GetTran("007630", "汇款充值确认操作成功") + "!');location.href='Remsecan.aspx';</script>"); //LoadDatabyorderid();alert('" + GetTran("009050", "到账成功") + "!');location.href='TxDetailYDZ.aspx' } else { ClientScript.RegisterStartupScript(this.GetType(), "", "<script> alert('" + GetTran("007631", "汇款充值确认失败,再次进行确认") + "!');</script>"); } } if (e.CommandName == "upd") { } }