public Agent(AutoApprovalArguments args) { this.args = args; Trail = new LGApprovalTrail( this.args.CustomerID, this.args.CashRequestID, this.args.NLCashRequestID, this.args.Log ) { Amount = this.args.SystemCalculatedAmount, }; this.oldWayAgent = new OldWayAgent( this.args.CustomerID, this.args.CashRequestID, this.args.NLCashRequestID, this.args.SystemCalculatedAmount, this.args.Medal, this.args.MedalType, this.args.TurnoverType, this.args.DB, this.args.Log ); } // constructor
public Agent(AutoApprovalArguments args) { this.args = args; this.trail = new LGApprovalTrail( this.args.CustomerID, this.args.CashRequestID, this.args.NLCashRequestID, this.args.Log, CurrentValues.Instance.AutomationExplanationMailReciever, CurrentValues.Instance.MailSenderEmail, CurrentValues.Instance.MailSenderName ) { Amount = this.args.SystemCalculatedAmount, }; this.oldWayAgent = new Approval( this.args.CustomerID, this.args.CashRequestID, this.args.NLCashRequestID, (int)Math.Truncate(this.args.SystemCalculatedAmount), (EZBob.DatabaseLib.Model.Database.Medal) this.args.Medal, this.args.MedalType, this.args.TurnoverType, this.args.Tag, this.args.DB, this.args.Log ); this.secondaryAgent = new SecondaryAgent(this.args); CompareTrailsQuietly = false; } // constructor