예제 #1
0
 //Interface
 public CompensationAgent(string agentNumber, string agentName, DateTime startDate, DateTime endDate)
 {
     //Constructor
     try {
         this.mAgentNumber    = agentNumber;
         this.mAgentName      = agentName;
         this.mBeginDate      = startDate;
         this.mEndDate        = endDate;
         this.mCompensation   = new DriverCompDataset();
         this.mRoutes         = new DriverCompDataset();
         this.mRates          = new AgentRates(this.mAgentNumber, this.mAgentName, this.mEndDate);
         this.mTerminalConfig = FinanceGateway.GetTerminalConfiguration(this.mAgentNumber);
         this.mFuelCost       = FinanceGateway.GetFuelCost(this.mEndDate, this.mAgentNumber);
         ViewCompensation();
         ImportRoutes();
     }
     catch (ApplicationException ex) { throw ex; }
     catch (Exception ex) { throw new ApplicationException(ex.Message, ex); }
 }