public static bool CreatAmountApplyRequest(MemberAmountRequestInfo applyInfo)
        {
            AmountDao amountDao = new AmountDao();
            bool      flag      = amountDao.CreatAmountApplyRequest(applyInfo);

            if (flag)
            {
                MemberInfo member = new MemberDao().GetMember(applyInfo.UserId);
                MemberAmountDetailedInfo memberAmountDetailedInfo = new MemberAmountDetailedInfo
                {
                    UserId          = applyInfo.UserId,
                    TradeAmount     = -applyInfo.Amount,
                    PayId           = Globals.GetGenerateId(),
                    UserName        = applyInfo.UserName,
                    TradeType       = TradeType.Withdrawals,
                    TradeTime       = DateTime.Now,
                    State           = 1,
                    TradeWays       = MemberAmountProcessor.GetWaysByRequestType(applyInfo.RequestType),
                    AvailableAmount = member.AvailableAmount - applyInfo.Amount,
                    Remark          = "余额提现。收款账号:" + applyInfo.AccountCode
                };
                flag = (amountDao.UpdateMember(memberAmountDetailedInfo) && MemberAmountProcessor.CreatAmount(memberAmountDetailedInfo));
            }
            return(flag);
        }
        public static bool SetAmountRequestStatus(int[] serialids, int checkValue, string Remark = "", string Amount = "", string Operator = "")
        {
            bool flag = new AmountDao().SetAmountRequestStatus(serialids, checkValue, Remark, Amount, Operator);

            if (checkValue == -1 && flag)
            {
                for (int i = 0; i < serialids.Length; i++)
                {
                    int serialid = serialids[i];
                    MemberAmountRequestInfo amountRequestDetail = MemberAmountProcessor.GetAmountRequestDetail(serialid);
                    MemberInfo member = new MemberDao().GetMember(amountRequestDetail.UserId);
                    MemberAmountDetailedInfo memberAmountDetailedInfo = new MemberAmountDetailedInfo
                    {
                        UserId          = amountRequestDetail.UserId,
                        TradeAmount     = amountRequestDetail.Amount,
                        PayId           = Globals.GetGenerateId(),
                        UserName        = amountRequestDetail.UserName,
                        TradeType       = TradeType.WithdrawalsRefuse,
                        TradeTime       = DateTime.Now,
                        State           = 1,
                        TradeWays       = MemberAmountProcessor.GetWaysByRequestType(amountRequestDetail.RequestType),
                        AvailableAmount = member.AvailableAmount + amountRequestDetail.Amount,
                        Remark          = "余额提现驳回"
                    };
                    flag = (new AmountDao().UpdateMember(memberAmountDetailedInfo) && MemberAmountProcessor.CreatAmount(memberAmountDetailedInfo));
                    MemberAmountRequestInfo amountRequestDetail2 = MemberAmountProcessor.GetAmountRequestDetail(serialid);
                    if (amountRequestDetail2 != null)
                    {
                        string url = Globals.FullPath("/Vshop/MemberAmountRequestDetail.aspx?Id=" + amountRequestDetail2.Id);
                        try
                        {
                            Messenger.SendWeiXinMsg_MemberAmountDrawCashRefuse(amountRequestDetail2, url);
                        }
                        catch
                        {
                        }
                    }
                }
            }
            return(flag);
        }