예제 #1
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_EFTCHAR_Response tgtSrc = request as MonTgt_H2G_GVA_EFTCHAR_Response;
            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_EFT_Char_Response tgtSub = new FFTgt_H2G_GVA_EFT_Char_Response()
                {
                    IsAutoDepositEnabledForCashableOnCardOut = tgtSrc.IsAutoDepositEnabledForCashableOnCardOut,
                    IsAutoDepositEnabledForNonCashableOnCardOut=tgtSrc.IsAutoDepositEnabledForNonCashableOnCardOut,
                    IsAutoDownloadEnabled=tgtSrc.IsAutoDownloadEnabled,
                    IsAutoTopEnabled=tgtSrc.IsAutoTopEnabled,
                    IsCashableDpositEnabled=tgtSrc.IsCashableDpositEnabled,
                    IsCashlessSmartCardEnabled=tgtSrc.IsCashlessSmartCardEnabled,
                    ISCashWithdrawalEnabled=tgtSrc.ISCashWithdrawalEnabled,
                    IsEftEnabled=tgtSrc.IsEftEnabled,
                    IsFullDownloadEnabled=tgtSrc.IsFullDownloadEnabled,
                    IsNon_CashableDepositEnabled=tgtSrc.IsNon_CashableDepositEnabled,
                    IsOfferEnabled=tgtSrc.IsOfferEnabled,
                    IsPartialTransferEnabled=tgtSrc.IsPartialTransferEnabled,
                    IsPointsWithdrawalEnabled=tgtSrc.IsPointsWithdrawalEnabled
                };

                tgtDest.AddTarget(tgtSub);
                return tgtDest;
            }
            return null;
        }
     internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_B2B_GMUVarAction tgt = new FFTgt_B2B_GMUVarAction();
     entity = tgt;
     this.ParseBuffer(tgt, rootEntity, buffer, 0, buffer.Length);
     return tgt;
 }
예제 #3
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_B2B_GMUVarAction tgt = new FFTgt_B2B_GMUVarAction();

            entity = tgt;
            this.ParseBuffer(tgt, rootEntity, buffer, 0, buffer.Length);
            return(tgt);
        }
예제 #4
0
 private static FFTgt_B2B_GMUVarAction[] WrapTargetsAndReturn(params FFTgt_B2B_GMUVarAction_Data[] datas)
 {
     List<FFTgt_B2B_GMUVarAction> result = new List<FFTgt_B2B_GMUVarAction>();
     foreach (var data in datas)
     {
         FFTgt_B2B_GMUVarAction target = new FFTgt_B2B_GMUVarAction();
         target.AddTarget(data);
         result.Add(target);
     }
     return result.ToArray();
 }
 protected override bool OnProcessMessageG2HInternal_GMU(FFTgtExecutionContext context, IFreeformEntity_MsgTgt target)
 {
     FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction()
     {
         ActionData = new FFTgt_H2G_GVA_TPD_Response()
        {
            Date = DateTime.Now,
        }
     };
     context.FreeformTargets.Add(tgtDest);
     return true;
 }
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_EFTMAxWithdraw_Response tgtSrc = request as MonTgt_H2G_GVA_EFTMAxWithdraw_Response;
            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_EFT_MaxWithdraw_Response tgtSub = new FFTgt_H2G_GVA_EFT_MaxWithdraw_Response()
                {
                   MaxElectronicWithdrawalAmount=tgtSrc.MaxWithdrawalAmount
                };

                tgtDest.AddTarget(tgtSub);
                return tgtDest;
            }
            return null;
        }
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_MOT_Response tgtSrc = request as MonTgt_H2G_GVA_MOT_Response;
            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_Max_OLT_Allowed_Response tgtSub = new FFTgt_H2G_Max_OLT_Allowed_Response()
                {
                 MaxOfflineTickets=tgtSrc.MaxOfflineTickets
                };

                tgtDest.AddTarget(tgtSub);
                return tgtDest;
            }
            return null;
        }
예제 #8
0
 protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
 {
     MonTgt_H2G_GVA_TN_Response tgtSrc = request as MonTgt_H2G_GVA_TN_Response;
     if (tgtSrc != null)
     {
         FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction()
         {
             ActionData = new FFTgt_H2G_GVA_TN_Response()
             {
                 TicketNumber = tgtSrc.TicketNumber,
             }
         };
         return tgtDest;
     }
     return null;
 }
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_EnablePrint_RT_Response tgtSrc = request as MonTgt_H2G_GVA_EnablePrint_RT_Response;
            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_EnablePrint_RT_Response tgtSub = new FFTgt_H2G_GVA_EnablePrint_RT_Response()
                {
                    EnableRestrictedTickets = tgtSrc.EnableRestrictedTickets,
                };

                tgtDest.AddTarget(tgtSub);
                return tgtDest;
            }
            return null;
        }
예제 #10
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_TimeOfDay_Response tgtSrc = request as MonTgt_H2G_GVA_TimeOfDay_Response;
            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_TimeOfDay_Response tgtSub = new FFTgt_H2G_GVA_TimeOfDay_Response()
                {
                    TimeOfDay = tgtSrc.TimeOfDay,
                };

                tgtDest.AddTarget(tgtSub);
                return tgtDest;
            }
            return null;
        }
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_OfflineT_TxtLine1_Resp tgtSrc = request as MonTgt_H2G_GVA_OfflineT_TxtLine1_Resp;
            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_OfflineT_TxtLine1_Resp tgtSub = new FFTgt_H2G_GVA_OfflineT_TxtLine1_Resp()
                {
                    Line1Text = tgtSrc.Line1Text,
                };

                tgtDest.AddTarget(tgtSub);
                return tgtDest;
            }
            return null;
        }
            protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
            {
                MonTgt_H2G_GVA_TicketPrintDate_Response tgtSrc = request as MonTgt_H2G_GVA_TicketPrintDate_Response;
                if (tgtSrc != null)
                {
                    FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                    FFTgt_H2G_TPD_Request tgtSub = new FFTgt_H2G_TPD_Request()
                    {
                        Date = tgtSrc.TicketDate,
                    };

                    tgtDest.AddTarget(tgtSub);
                    return tgtDest;
                }
                return null;
            }
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_RET_Response tgtSrc = request as MonTgt_H2G_GVA_RET_Response;
            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_RTE_Days_Response tgtSub = new FFTgt_H2G_RTE_Days_Response()
                {
                 ExpirationDays=tgtSrc.ExpirationDays
                
};

                tgtDest.AddTarget(tgtSub);
                return tgtDest;
            }
            return null;
        }
예제 #14
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_EFTWithdraw_Response tgtSrc = request as MonTgt_H2G_GVA_EFTWithdraw_Response;
            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_EFT_Withdraw_Response tgtSub = new FFTgt_H2G_GVA_EFT_Withdraw_Response()
                {
                  WithdrawalAmount_option1=tgtSrc.WithdrawalAmount_option1,
                  WithdrawalAmount_option2 = tgtSrc.WithdrawalAmount_option2,
                  WithdrawalAmount_option3 = tgtSrc.WithdrawalAmount_option3,
                  WithdrawalAmount_option4 = tgtSrc.WithdrawalAmount_option4
                };

                tgtDest.AddTarget(tgtSub);
                return tgtDest;
            }
            return null;
        }