private void MoreDrawRequest(HttpContext context)
        {
            string text  = context.Request["ChargeType"];
            string text2 = context.Request["JournalNumber"];
            string text3 = context.Request["Reason"];

            if (!this.siteSettings.EnableBulkPaymentAliPay)
            {
                throw new HidistroAshxException("系统已关闭支付宝批量转账功能,请拒绝转账申请");
            }
            string text4 = text2.Trim();

            if (!string.IsNullOrEmpty(text4))
            {
                string[] array = text4.Split(',');
                foreach (string text5 in array)
                {
                    if (!string.IsNullOrEmpty(text5))
                    {
                        long journalNumber = 0L;
                        if (long.TryParse(text5, out journalNumber))
                        {
                            MemberHelper.AccepteDraw(journalNumber);
                        }
                    }
                }
                base.ReturnResult(context, true, text4, 0, true);
                return;
            }
            throw new HidistroAshxException("请至少选择一项");
        }
        private void DrawRequest(HttpContext context)
        {
            string a             = context.Request["ChargeType"];
            long   journalNumber = 0L;
            string s             = context.Request["JournalNumber"];
            string text          = context.Request["Reason"];

            if (!long.TryParse(s, out journalNumber))
            {
                return;
            }
            if (a == "UnLineReCharge")
            {
                if (!MemberHelper.AccepteDraw(journalNumber))
                {
                    throw new HidistroAshxException("操作失败");
                }
                base.ReturnResult(context, true, "同意申请成功", 0, true);
            }
            if (!(a == "RefuseRequest"))
            {
                return;
            }
            if (string.IsNullOrEmpty(text))
            {
                throw new HidistroAshxException("请填写拒绝申请的原因");
            }
            if (MemberHelper.RefuseDraw(journalNumber, text))
            {
                base.ReturnResult(context, true, "拒绝申请成功", 0, true);
                return;
            }
            throw new HidistroAshxException("操作失败");
        }
        private void DrawRequest(HttpContext context)
        {
            string a    = context.Request["ChargeType"];
            long   num  = 0L;
            string s    = context.Request["JournalNumber"];
            string text = context.Request["Reason"];

            if (!long.TryParse(s, out num))
            {
                return;
            }
            if (a == "UnLineReCharge")
            {
                if (!this.siteSettings.EnableBulkPaymentAliPay)
                {
                    throw new HidistroAshxException("系统已关闭支付宝批量转账功能,请拒绝转账申请");
                }
                if (MemberHelper.AccepteDraw(num))
                {
                    base.ReturnSuccessResult(context, num.ToString(), 3, true);
                    goto IL_00a9;
                }
                throw new HidistroAshxException("操作失败");
            }
            goto IL_00a9;
IL_00a9:
            if (a == "RefuseRequest")
            {
                if (string.IsNullOrEmpty(text))
                {
                    throw new HidistroAshxException("请填写拒绝申请的原因");
                }
                if (MemberHelper.RefuseDraw(num, text))
                {
                    base.ReturnResult(context, true, "拒绝申请成功", 0, true);
                    goto IL_0101;
                }
                throw new HidistroAshxException("操作失败");
            }
            goto IL_0101;
IL_0101:
            if (a == "CancelReCharge")
            {
                try
                {
                    MemberHelper.OnLineSplittinDraws_API(num.ToInt(0), false, "管理员:" + HiContext.Current.Manager.UserName + "取消付款");
                    base.ReturnResult(context, true, "取消付款成功", 0, true);
                }
                catch
                {
                    throw new HidistroAshxException("取消付款操作失败");
                }
            }
        }
        private void btnAccept_Click(object sender, System.EventArgs e)
        {
            long journalNumber = 0L;

            long.TryParse(this.hidJournalNumber.Value, out journalNumber);
            if (MemberHelper.AccepteDraw(journalNumber, this.hidManagerRemark.Value))
            {
                this.BindSplittinrawRequest();
                this.ShowMsg("结算申请已经审核通过", true);
                return;
            }
            this.ShowMsg("审核通过失败", false);
        }
Example #5
0
        private void DrawRequest(HttpContext context)
        {
            string a             = context.Request["ChargeType"];
            long   journalNumber = 0L;
            string s             = context.Request["JournalNumber"];
            string text          = context.Request["Reason"];

            if (!long.TryParse(s, out journalNumber))
            {
                return;
            }
            if (a == "UnLineReCharge")
            {
                if (!this.siteSettings.EnableBulkPaymentWeixin)
                {
                    throw new HidistroAshxException("系统已关闭微信批量转账功能,请拒绝转账申请");
                }
                if (MemberHelper.AccepteDraw(journalNumber))
                {
                    string text2 = MemberHelper.OnLineSplittinDrawRequest_Weixin(journalNumber.ToString());
                    if (text2.Contains("成功"))
                    {
                        base.ReturnResult(context, true, "同意申请成功", 0, true);
                    }
                    else
                    {
                        base.ReturnResult(context, false, text2, 0, true);
                    }
                    goto IL_00de;
                }
                throw new HidistroAshxException("操作失败");
            }
            goto IL_00de;
IL_00de:
            if (!(a == "RefuseRequest"))
            {
                return;
            }
            if (string.IsNullOrEmpty(text))
            {
                throw new HidistroAshxException("请填写拒绝申请的原因");
            }
            if (MemberHelper.RefuseDraw(journalNumber, text))
            {
                base.ReturnResult(context, true, "拒绝申请成功", 0, true);
                return;
            }
            throw new HidistroAshxException("操作失败");
        }