Exemple #1
0
 public SalesReceiptTransaction(int empId, DateTime dateTime, double amount, IPayrollDatabase database)
     : base(database)
 {
     this.empId    = empId;
     this.dateTime = dateTime;
     this.amount   = amount;
 }
Exemple #2
0
 public TimeCardTransaction(DateTime date, double hours, int empId, IPayrollDatabase database)
     : base(database)
 {
     this.date  = date;
     this.hours = hours;
     this.empId = empId;
 }
Exemple #3
0
 public AddEmployTransaction(int empId, string name, string address, IPayrollDatabase database)
     : base(database)
 {
     this.empId   = empId;
     this.name    = name;
     this.address = address;
 }
Exemple #4
0
 public SalesReceiptTransaction(DateTime time, double saleAmount, int empId, IPayrollDatabase database)
     : base(database)
 {
     this.date       = time;
     this.saleAmount = saleAmount;
     this.empId      = empId;
 }
Exemple #5
0
 public ServiceChargeTransaction(int id, DateTime time, double charge, IPayrollDatabase database)
     : base(database)
 {
     this.memberId = id;
     this.time     = time;
     this.charge   = charge;
 }
Exemple #6
0
 protected AddEmployeeTransaction(int empid,
                                  string name, string address, IPayrollDatabase database)
     : base(database)
 {
     _empid   = empid;
     _name    = name;
     _address = address;
 }
Exemple #7
0
 public AddEmployeePresenter(AddEmployeeView view,
                             TransactionContainer container,
                             IPayrollDatabase database)
 {
     this.view = view;
     this.transactionContainer = container;
     this.database             = database;
 }
Exemple #8
0
 public PayrollPresenter(IPayrollDatabase database,
                         ViewLoader viewLoader)
 {
     this.view       = view;
     this.database   = database;
     this.viewLoader = viewLoader;
     TransactionContainer.AddAction addAction =
         new TransactionContainer.AddAction(TransactionAdded);
     transactionContainer = new TransactionContainer(addAction);
 }
Exemple #9
0
 public Transaction(IPayrollDatabase database)
 {
     this.database = database;
 }
Exemple #10
0
 public ChangeSalariedTransaction(int id, double salary, IPayrollDatabase database)
     : base(id, database)
 {
     this.salary = salary;
 }
Exemple #11
0
 public DeleteEmployeeTransaction(int id, IPayrollDatabase database)
     : base(database)
 {
     this.id = id;
 }
Exemple #12
0
 public ChangeMailTransaction(int empId, IPayrollDatabase database)
     : base(empId, database)
 {
 }
Exemple #13
0
 public ChangeAddressTransaction(int empId, string newAddress, IPayrollDatabase database) : base(empId, database)
 {
     this.newAddress = newAddress;
 }
Exemple #14
0
 public ChangeHourlyTransaction(int id, double hourlyRate, IPayrollDatabase database)
     : base(id, database)
 {
     this.hourlyRate = hourlyRate;
 }
Exemple #15
0
 public ChangeNameTransaction(int id, string newName, IPayrollDatabase database)
     : base(id, database)
 {
     this.newName = newName;
 }
Exemple #16
0
 public ChangeMemberTransaction(int empId, int memberId, double dues, IPayrollDatabase database)
     : base(empId, database)
 {
     this.memberId = memberId;
     this.dues     = dues;
 }
Exemple #17
0
 public AddHourlyEmployee(int id, string name, string address, double hourlyRate, IPayrollDatabase database)
     : base(id, name, address, database)
 {
     this.hourlyRate = hourlyRate;
 }
Exemple #18
0
 public ChangeEmployeeTransaction(int empId, IPayrollDatabase database)
     : base(database)
 {
     this.empId = empId;
 }
Exemple #19
0
 protected ChangeClassificationTransaction(int id, IPayrollDatabase database)
     : base(id, database)
 {
 }
Exemple #20
0
 public ChangeCommissionedTransaction(int id, double baseSalary, double commissionRate, IPayrollDatabase database)
     : base(id, database)
 {
     this.baseSalary     = baseSalary;
     this.commissionRate = commissionRate;
 }
Exemple #21
0
 public ChangeAffiliationTransaction(int empId, IPayrollDatabase database)
     : base(empId, database)
 {
 }
Exemple #22
0
 public void SetUp()
 {
     database   = new InMemoryPayrollDatabase();
     viewLoader = new WindowViewLoader(database);
 }
Exemple #23
0
 public AddCommissionedEmployee(int id, string name, string address, double baseRate, double commissionRate, IPayrollDatabase database)
     : base(id, name, address, database)
 {
     this.baseRate       = baseRate;
     this.commissionRate = commissionRate;
 }
Exemple #24
0
 protected Transaction(IPayrollDatabase database)
 {
     Database = database;
 }
Exemple #25
0
 public void SetUp()
 {
     database = new InMemoryPayrollDatabase();
 }
Exemple #26
0
 public PaydayTransaction(DateTime payDate, IPayrollDatabase database)
     : base(database)
 {
     this.payDate = payDate;
 }
Exemple #27
0
 public AddSalariedEmployee(int id, string name, string address, double salary, IPayrollDatabase database)
     : base(id, name, address, database)
 {
     this.salary = salary;
 }
Exemple #28
0
 public WindowViewLoader(IPayrollDatabase database)
 {
     this.database = database;
 }
Exemple #29
0
 public ChangeClassificationTransaction(int empId, IPayrollDatabase database) : base(empId, database)
 {
 }
Exemple #30
0
 public AddCommissionedEmployee(int empId, string name, string address, double monthlySalary, double commissionRate, IPayrollDatabase database)
     : base(empId, name, address, database)
 {
     this.monthlySalary  = monthlySalary;
     this.commissionRate = commissionRate;
 }