示例#1
0
        public DataSet countOrders() //for create the id
        {
            OrderCAD c  = new OrderCAD();
            DataSet  ds = c.countOrders();

            return(ds);
        }
示例#2
0
        public DataSet searchHistory(String user) //search history cart filter by users
        {
            OrderCAD c  = new OrderCAD();
            DataSet  ds = c.searchUserHistory(user);

            return(ds);
        }
示例#3
0
        public DataSet showAllOrders() //show all the orders
        {
            OrderCAD c  = new OrderCAD();
            DataSet  ds = c.showOrders(this);

            return(ds);
        }
示例#4
0
        public DataSet add_Order() //insert new order
        {
            OrderCAD c  = new OrderCAD();
            DataSet  ds = c.addOrder(this);

            return(ds);
        }
示例#5
0
        public DataSet searchOrders(String user) //search orders filter by users
        {
            OrderCAD c  = new OrderCAD();
            DataSet  ds = c.searchUserOrders(user);

            return(ds);
        }
示例#6
0
        public DataSet update_Order(int i) //update an existing order
        {
            OrderCAD c  = new OrderCAD();
            DataSet  ds = c.updateOrder(this, i);

            return(ds);
        }
示例#7
0
        public ArrayList searchOrder()
        {
            ArrayList a = new ArrayList();
            OrderCAD  c = new OrderCAD();

            a = c.searchOrder(this);
            return(a);
        }
示例#8
0
        public ArrayList showAllOrders()
        {
            ArrayList a = new ArrayList();
            OrderCAD  c = new OrderCAD();

            a = c.showOrder();
            return(a);
        }
示例#9
0
        public void buy_Order(int i) //from the shopping cart to the history
        {
            OrderCAD c = new OrderCAD();

            c.buyOrder(this, i);
        }
示例#10
0
        public void update_Order()
        {
            OrderCAD c = new OrderCAD();

            c.updateOrder(this);
        }
示例#11
0
        public void delete_Order()
        {
            OrderCAD c = new OrderCAD();

            c.deleteOrder(this);
        }
示例#12
0
        public void add_Order()
        {
            OrderCAD c = new OrderCAD();

            c.addOrder(this);
        }