コード例 #1
0
 //========================================
 //Constructor of this class
 //========================================
 public saleBll()
 {
     c_Info        = new customerBll();
     i_Info        = new ItemBll();
     recordDate    = new saleDal();
     itemPurchased = new List <item>();
     countReader   = new CounterDal();
     count         = new Counters();
     count         = countReader.getItemCounter();
 }
コード例 #2
0
 //=======================================
 //Start new payment
 //=======================================
 public void startPayment(int order_id)
 {
     r_add  = new ReceiptDal();
     info   = new saleDal();
     s      = info.getInfo(order_id);
     c_info = new customerBll();
     c      = c_info.Search(s.CostumerId1);
     calculateTotal();
     calCulatePayed();
 }