Esempio n. 1
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_EFT_DepositComplete ffTgt = request as FFTgt_G2H_EFT_DepositComplete;
     if (ffTgt != null)
     {
         MonTgt_G2H_EFT_DepositComplete monTgt = new MonTgt_G2H_EFT_DepositComplete()
         {
             NonCashableAmount = ffTgt.NonCashableAmount,
             CashableAmount = ffTgt.CashableAmount,
             GMUErrorCode = ffTgt.ErrorCode,
             PlayerCardNumber = ffTgt.PlayerCardNumber
         };
         return monTgt;
     }
     return null;
 }
Esempio n. 2
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_EFT_DepositComplete ffTgt = request as FFTgt_G2H_EFT_DepositComplete;

            if (ffTgt != null)
            {
                MonTgt_G2H_EFT_DepositComplete monTgt = new MonTgt_G2H_EFT_DepositComplete()
                {
                    NonCashableAmount = ffTgt.NonCashableAmount,
                    CashableAmount    = ffTgt.CashableAmount,
                    GMUErrorCode      = ffTgt.ErrorCode,
                    PlayerCardNumber  = ffTgt.PlayerCardNumber
                };
                return(monTgt);
            }
            return(null);
        }
Esempio n. 3
0
        private bool DoDepositComplete(MonMsg_G2H request, MonTgt_G2H_EFT_DepositComplete monDepositRequest)
        {
            InstallationDetailsForMSMQ installationDetails = ExCommsDataContext.Current.GetInstallationDetailsByDatapak(request.InstallationNo);
            HandlerHelper.Current.SaveSDTRequest(monDepositRequest.CardNumber, request.InstallationNo);
            Log.Info("TransactionID used in Deposit Request " + installationDetails.TransactionID.ToString());

            string asset = HandlerHelper.Current.GetAssetByStockPrefix(request.Asset);
            DateTime transDate = DateTime.Now;

            //Authentication - To do
            DepositRequest depositRequest = new DepositRequest
            {
                //AccountType = monDepositRequest.ac,
                CashableFunds = Convert.ToInt32((monDepositRequest.CashableAmount * 100)),
                NonCashableFunds = Convert.ToInt32((monDepositRequest.NonCashableAmount * 100)),
                //Authentication = 
                BarPosition = installationDetails.Bar_Pos_Name,
                CardNo = monDepositRequest.CardNumber,
                InstallationNo = request.InstallationNo,
                SlotIndex = installationDetails.Bar_Pos_Name,
                SlotNumber = asset,
                Stand = installationDetails.Bar_Pos_Name,
                TransactionDate = transDate.ToString("yyyyMMdd").PadLeft(8, '0'),
                TransactionID = installationDetails.TransactionID.ToString().PadLeft(3, '0').Substring(0, 3),
                TransactionTime = transDate.ToString("HHmmss").PadLeft(6, '0'),
                SiteCode = request.SiteCode
            };

            HandlerHelper.PlayerGatewayInstance.DepositComplete(depositRequest, this.DepositCompleteResp);
            return true;
        }