예제 #1
0
        protected override bool OnProcessMessageH2GExternal_SIM(FFTgtExecutionContext context, IFreeformEntity_MsgTgt target)
        {
            FFTgt_H2G_GVA_TED_Response tgtSrc = target as FFTgt_H2G_GVA_TED_Response;

            ModuleHelper.Current.TicketGlobals.UpdateExpiryDate(context.SourceMessage.IpAddress, tgtSrc.ExipreDays, tgtSrc.Date);
            return(true);
        }
예제 #2
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_TED_Response tgtSrc = request as MonTgt_H2G_GVA_TED_Response;

            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction     tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_TED_Response tgtSub  = new FFTgt_H2G_GVA_TED_Response()
                {
                    Date       = tgtSrc.Date,
                    ExipreDays = tgtSrc.ExipreDays,
                };

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