示例#1
0
 /*
  * constructor. recieves the data layer which E_Mart_BL works with directly
  */
 public E_Mart_BL(IDAL dal)
 {
     this.itsDAL         = dal;
     this.prod_bl        = new Product_BL(dal);
     this.employee_bl    = new Employee_BL(dal);
     this.clubMember_bl  = new ClubMember_BL(dal);
     this.department_bl  = new Department_BL(dal);
     this.transaction_bl = new Transaction_BL(dal);
     this.user_bl        = new User_BL(dal);
 }
示例#2
0
 //constructor
 public BL_Manager(DAL_Manager dal_manager)
 {
     BL_user        = new User_BL(dal_manager.userData);
     BL_clubMember  = new ClubMember_BL(dal_manager.ClubMemberData);
     BL_department  = new Department_BL(dal_manager.departmentData);
     BL_employee    = new Employee_BL(dal_manager.employeeData);
     BL_product     = new Product_BL(dal_manager.productData);
     BL_transaction = new Transaction_BL(dal_manager.transactionData);
     BL_location    = new Location_BL(dal_manager.locationData);
 }