Example #1
0
        public XIMOutboundMessage Clone()
        {
            XIMOutboundMessage msg = new XIMOutboundMessage();

            msg.HL7EventType = HL7EventType.Clone();
            msg.GWEventType  = GWEventType.Clone();
            msg.XSLFileName  = XSLFileName;

            //msg.Rule.RuleID = Rule.RuleID;    // do not copy RuleID
            msg.Rule.RuleName              = Rule.RuleName;
            msg.Rule.MaxRecordCount        = Rule.MaxRecordCount;
            msg.Rule.CheckProcessFlag      = Rule.CheckProcessFlag;
            msg.Rule.AutoUpdateProcessFlag = Rule.AutoUpdateProcessFlag;
            foreach (XIMMappingItem item in Rule.QueryResult.MappingList)
            {
                XIMMappingItem i = item.Clone() as XIMMappingItem;
                msg.Rule.QueryResult.MappingList.Add(i);
            }
            foreach (QueryCriteriaItem item in Rule.QueryCriteria.MappingList)
            {
                QueryCriteriaItem i = new QueryCriteriaItem();
                i.Type           = item.Type;
                i.Translating    = item.Translating.Clone();
                i.TargetField    = item.TargetField;
                i.SourceField    = item.SourceField;
                i.Singal         = item.Singal;
                i.RedundancyFlag = item.RedundancyFlag;
                i.Operator       = item.Operator;
                i.GWDataDBField  = item.GWDataDBField.Clone();
                msg.Rule.QueryCriteria.MappingList.Add(i);
            }

            return(msg);
        }
Example #2
0
        public XIMInboundMessage Clone()
        {
            XIMInboundMessage msg = new XIMInboundMessage();

            msg.HL7EventType = HL7EventType.Clone();
            msg.GWEventType  = GWEventType.Clone();
            msg.XSLFileName  = XSLFileName;

            //msg.Rule.RuleID = Rule.RuleID;        // do not copy RuleID
            msg.Rule.RuleName              = Rule.RuleName;
            msg.Rule.CheckProcessFlag      = Rule.CheckProcessFlag;
            msg.Rule.AutoUpdateProcessFlag = Rule.AutoUpdateProcessFlag;
            foreach (XIMMappingItem item in Rule.QueryResult.MappingList)
            {
                XIMMappingItem i = item.Clone() as XIMMappingItem;
                msg.Rule.QueryResult.MappingList.Add(i);
            }

            return(msg);
        }