예제 #1
0
        //public static int getCartSize(string empNum)
        //{
        //    return CartDAO.getCartSize(empNum);
        //}


        public CartWCF getCartSize(string empNum)
        {
            CartWCF c = new CartWCF();

            c.CartSize = RequestStationaryControler.getCartSize(empNum);
            return(c);
        }
예제 #2
0
        public CartWCF[] viewCart(string empNum)
        {
            List <RequestStationaryCart> rlist = new List <RequestStationaryCart>();
            List <CartWCF> clist = new List <CartWCF>();

            rlist = RequestStationaryControler.viewCartW(empNum);
            foreach (RequestStationaryCart i in rlist)
            {
                CartWCF cf = new CartWCF();
                cf.ItemCode = i.ItemCode;
                cf.Qty      = i.Quantity;
                cf.EmpNum   = i.EmployeeNumber;
                cf.ItemDes  = ProductDAO.getSearchProductbyid(i.ItemCode).Description.ToString();
                cf.ItemUnit = ProductDAO.getSearchProductbyid(i.ItemCode).UnitOfMeasure.ToString();
                clist.Add(cf);
            }

            return(clist.ToArray <CartWCF>());
        }
예제 #3
0
 public void submitCart(string empNum)
 {
     RequestStationaryControler.submitCart(empNum);
 }
예제 #4
0
 public void deteteItemFromCart(string itemNum, string empNum)
 {
     RequestStationaryControler.deleteSelectedFromCart(itemNum, empNum);
 }
예제 #5
0
        public void addToCart(string itemNum, string qty, string empNum)
        {
            int qt = Convert.ToInt32(qty);

            RequestStationaryControler.addItemToCart(itemNum, qt, empNum);
        }