コード例 #1
0
        public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List <byte> buffer)
        {
            FFTgt_H2G_GVA_EFT_Withdraw_Response tgt2 = tgt as FFTgt_H2G_GVA_EFT_Withdraw_Response;

            buffer.AddRange(tgt2.WithdrawalAmount_option1.GetBCDToBytes(4));
            buffer.AddRange(tgt2.WithdrawalAmount_option2.GetBCDToBytes(4));
            buffer.AddRange(tgt2.WithdrawalAmount_option3.GetBCDToBytes(4));
            buffer.AddRange(tgt2.WithdrawalAmount_option4.GetBCDToBytes(4));
        }
コード例 #2
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_EFT_Withdraw_Response tgt = new FFTgt_H2G_GVA_EFT_Withdraw_Response();
            tgt.WithdrawalAmount_option1 = FreeformHelper.GetBCDValue<Double>(buffer, 0, 4);
            tgt.WithdrawalAmount_option2 = FreeformHelper.GetBCDValue<Double>(buffer, 4, 4);
            tgt.WithdrawalAmount_option3 = FreeformHelper.GetBCDValue<Double>(buffer, 8, 4);
            tgt.WithdrawalAmount_option4 = FreeformHelper.GetBCDValue<Double>(buffer, 12, 4);

            return tgt;
        }
コード例 #3
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_EFT_Withdraw_Response tgt = new FFTgt_H2G_GVA_EFT_Withdraw_Response();

            tgt.WithdrawalAmount_option1 = FreeformHelper.GetBCDValue <Double>(buffer, 0, 4);
            tgt.WithdrawalAmount_option2 = FreeformHelper.GetBCDValue <Double>(buffer, 4, 4);
            tgt.WithdrawalAmount_option3 = FreeformHelper.GetBCDValue <Double>(buffer, 8, 4);
            tgt.WithdrawalAmount_option4 = FreeformHelper.GetBCDValue <Double>(buffer, 12, 4);

            return(tgt);
        }
コード例 #4
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;
        }