Esempio n. 1
0
        protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            string message  = string.Empty;
            string trade_no = string.Empty;

            if (e.CommandArgument != null)
            {
                trade_no = e.CommandArgument.ToString();
            }

            if (!string.IsNullOrEmpty(trade_no))
            {
                if (e.CommandName == "Cancel")
                {
                    message = stlAgtBLL.doCancel(trade_no);
                }
                else if (e.CommandName == "Audit")
                {
                    message = stlAgtBLL.doAudit(trade_no, currentManage.id, currentManage.username);
                    if (message == "审核成功")
                    {
                        var _model = stlAgtBLL.GetModel(trade_no);
                        if (_model != null)
                        {
                            //viviapi.ETAPI.Common.Withdrawal.InitDistribution2(_model);
                        }
                    }
                }
                else if (e.CommandName == "Refuse")
                {
                    message = stlAgtBLL.doRefuse(trade_no, currentManage.id, currentManage.username);
                }
                else if (e.CommandName == "paysuccess")
                {
                    message = stlAgtBLL.PaySuccess(trade_no);
                }
                else if (e.CommandName == "payfail")
                {
                    message = stlAgtBLL.PayFail(trade_no);
                }
                else if (e.CommandName == "Reissue")
                {
                    stlAgtBLL.DoNotify(trade_no);
                    message = "请求已提交";
                }
                else if (e.CommandName == "ResendToApi")
                {
                    var _model = stlAgtBLL.GetModel(trade_no);
                    if (_model != null)
                    {
                        //viviapi.ETAPI.Common.Withdraw.InitDistribution2(_model);
                    }
                    message = "请求已提交";
                }
            }

            AlertAndRedirect(message);

            BindData();
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnpaysuccess_Click(object sender, EventArgs e)
        {
            string message = bll.PaySuccess(model.trade_no);

            AlertAndRedirect(message);
        }