Beispiel #1
0
        public override object Clone()
        {
            QAddCriterioCR retval = new QAddCriterioCR()
            {
                // input fields
                InstallationCode = this.installationCode,
                DatabaseName     = this.databaseName,
                Name             = this.name,
                CriterioType     = this.criterioType,
                Queues           = this.queues,
                DynamicQueues    = this.dynamicQueues,
                Worklist         = this.worklist,
                Revocation       = this.revocation,
                Strategy         = this.strategy,
                DecisionTree     = this.decisionTree,
                CategoryDesc     = this.categoryDesc,
                IsCustomerLevel  = this.isCustomerLevel,
                ClosedCases      = this.closedCases,
                WhereTable       = this.whereTable,
                WhereField       = this.whereField,
                Parent           = this.Parent,

                // output fields
                criUniqueId          = this.criUniqueId,
                criTable             = this.criTable,
                criFields            = this.criFields,
                criWhere             = this.criWhere,
                crjCode              = this.crjCode,
                crjJoin              = this.crjJoin,
                criWhereShow         = this.criWhereShow,
                criWhereFieldSqlType = this.criWhereFieldSqlType
            };

            return(retval);
        }
Beispiel #2
0
 public override void CopyState(object source)
 {
     if (source is QAddCriterioCR)
     {
         QAddCriterioCR cr  = (QAddCriterioCR)source;
         XmlDocument    doc = new XmlDocument();
         doc.LoadXml(cr.Serialize());
         Deserialize(doc.DocumentElement);
     }
 }