コード例 #1
0
        public SQLInQueryCriteriaItem Clone()
        {
            SQLInQueryCriteriaItem item = new SQLInQueryCriteriaItem();

            item.ThirdPartyDBPatamter.FieldID   = this.ThirdPartyDBPatamter.FieldID;
            item.ThirdPartyDBPatamter.FieldName = this.ThirdPartyDBPatamter.FieldName;
            item.ThirdPartyDBPatamter.FieldType = this.ThirdPartyDBPatamter.FieldType;


            item.Type        = this.Type;
            item.Translating = this.Translating.Clone();

            item.SourceField = this.SourceField;
            item.TargetField = this.TargetField;

            item.Singal = this.Singal;

            item.Operator = this.Operator;

            item.RedundancyFlag = this.RedundancyFlag;

            item.GWDataDBField.Table     = this.GWDataDBField.Table;
            item.GWDataDBField.FieldName = this.GWDataDBField.FieldName;
            //item.GWDataDBField.IsAuto = this.GWDataDBField.IsAuto;

            return(item);
        }
コード例 #2
0
        public SQLInboundChanel Clone()
        {
            SQLInboundChanel ch = new SQLInboundChanel();

            ch.ChannelName = this.ChannelName;

            ch.Enable = this.Enable;

            ch.OperationName = this.OperationName;

            ch.Modified = this.Modified;

            ch.OperationType = this.OperationType;

            ch.SPName = this.SPName;

            ch.SPStatement = this.SPStatement;

            //ch.Rule.RuleID = Rule.RuleID; // do not copy RuleID
            ch.Rule.RuleName                   = Rule.RuleName;
            ch.Rule.CheckProcessFlag           = Rule.CheckProcessFlag;
            ch.Rule.AutoUpdateProcessFlag      = Rule.AutoUpdateProcessFlag;
            ch.Rule.QueryCriteria.Type         = Rule.QueryCriteria.Type;
            ch.Rule.QueryCriteria.SQLStatement = Rule.QueryCriteria.SQLStatement;
            ch.Rule.InputParameterSPStatement  = Rule.InputParameterSPStatement;
            foreach (SQLInQueryCriteriaItem item in Rule.QueryCriteria.MappingList)
            {
                SQLInQueryCriteriaItem i = item.Clone();
                ch.Rule.QueryCriteria.MappingList.Add(i);
            }
            foreach (SQLInQueryResultItem item in Rule.QueryResult.MappingList)
            {
                SQLInQueryResultItem i = item.Clone();
                ch.Rule.QueryResult.MappingList.Add(i);
            }

            return(ch);
        }