예제 #1
0
        public void CreateCashier(string name, decimal salery, string telephone)
        {
            ICashier c = dbf.CreateCashier(name, salery, telephone);

            cashierCollection.Add((Cashier)c);
            actualCashier = c;
        }
예제 #2
0
        public void testAfModel() {
            Cashier c = new Cashier(42, "Morten", 59000m, "51255919");
            CashierCollection cc = new CashierCollection();
            cc.Add(c);

            foreach (Cashier tmpc in cc) { 
            }
        }
예제 #3
0
        public Facade()
        {
            dbf = new DBFacadeCashier("Data Source=10.165.150.52;Initial Catalog=nextgenPOS;Persist Security Info=True;User ID=dm122;Password=dm122");
            dbf.connectDB();
            cashierCollection = new CashierCollection();
            Cashier c = new Cashier(42, "Morten", 59000m, "51255919");
            cashierCollection.Add(c);
            //            dbf.closeDB();

        }
예제 #4
0
        public Facade()
        {
            dbf = new DBFacadeCashier("Data Source=10.165.150.52;Initial Catalog=nextgenPOS;Persist Security Info=True;User ID=dm122;Password=dm122");
            dbf.connectDB();
            cashierCollection = new CashierCollection();
            Cashier c = new Cashier(42, "Morten", 59000m, "51255919");

            cashierCollection.Add(c);
            //            dbf.closeDB();
        }
예제 #5
0
        public void testAfModel()
        {
            Cashier           c  = new Cashier(42, "Morten", 59000m, "51255919");
            CashierCollection cc = new CashierCollection();

            cc.Add(c);

            foreach (Cashier tmpc in cc)
            {
            }
        }