Esempio n. 1
0
        /////////Test
        public Test TestM()
        {
            WCFCatalogue c  = GetCatalogue("C001");
            WCFCatalogue c2 = GetCatalogue("C002");

            return(Test.Make(c.ItemCode, new WCFCatalogue[] { c, c2 }));
        }
Esempio n. 2
0
        public WCFCatalogue[] ListCatalogues()
        {
            List <WCFCatalogue> l = new List <WCFCatalogue>();

            foreach (Catalogue c in Data.ListCatalogues())
            {
                WCFCatalogue w = WCFCatalogue.Make(c.ItemCode, c.Description, c.Location, c.BalanceQuantity, c.UnitOfMeasure);
                l.Add(w);
            }
            return(l.ToArray <WCFCatalogue>());
        }
Esempio n. 3
0
        public static WCFCatalogue Make(string itemCode, string description, string location, int?balanceQuantity, string unitOfMeature)
        {
            WCFCatalogue c = new WCFCatalogue();

            c.itemCode        = itemCode;
            c.description     = description;
            c.location        = location;
            c.balanceQuantity = balanceQuantity;
            c.UnitOfMeature   = unitOfMeature;
            return(c);
        }
Esempio n. 4
0
        /////////////Catalogue
        public WCFCatalogue GetCatalogue(string itemCode)
        {
            Catalogue c = Data.GetCatalogue(itemCode);

            return(WCFCatalogue.Make(c.ItemCode, c.Description, c.Location, c.BalanceQuantity, c.UnitOfMeasure));
        }