示例#1
0
    /////////Test
    public Test TestM()
    {
        WCFCatalogue c  = GetCatalogue("C001");
        WCFCatalogue c2 = GetCatalogue("C002");

        return(Test.Make(c.ItemCode, new WCFCatalogue[] { c, c2 }));
    }
示例#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>());
    }
示例#3
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));
    }