//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); }
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>()); }
public void submitCart(string empNum) { RequestStationaryControler.submitCart(empNum); }
public void deteteItemFromCart(string itemNum, string empNum) { RequestStationaryControler.deleteSelectedFromCart(itemNum, empNum); }
public void addToCart(string itemNum, string qty, string empNum) { int qt = Convert.ToInt32(qty); RequestStationaryControler.addItemToCart(itemNum, qt, empNum); }