Beispiel #1
0
        }         // constructor

        public RejectionConfigs GetRejectionConfigs()
        {
            RejectionConfigs consts = _db.FillFirst <RejectionConfigs>(
                "AV_RejectionConstants",
                CommandSpecies.StoredProcedure
                );

            _db.ForEachRowSafe(
                srName => consts.EnabledTraces.Add(srName["Name"]),
                "LoadEnabledTraces",
                CommandSpecies.StoredProcedure
                );

            return(consts);
        }         // GetRejectionConfigs
Beispiel #2
0
        /// <summary>
        /// Constructor get db, log customer id and rejection configuration variables
        /// </summary>
        public RejectionAgent(
            AConnection oDB,
            ASafeLog oLog,
            int nCustomerID,
            long?cashRequestID,
            long?nlCashRequestID,
            RejectionConfigs configs = null
            )
        {
            this.customerId = nCustomerID;

            this.log = oLog;
            this.db  = oDB;

            this.dbHelper = new DbHelper(oDB, oLog);

            this.configs = configs ?? this.dbHelper.GetRejectionConfigs();

            Trail = new RejectionTrail(nCustomerID, cashRequestID, nlCashRequestID, oLog);
        }         // constructor
Beispiel #3
0
 public Configuration(AConnection oDB, ASafeLog oLog)
 {
     this.m_oDB  = oDB;
     this.m_oLog = oLog;
     Values      = new RejectionConfigs();
 }         // constructor