Beispiel #1
0
    public static WCF_ItemWithQtyAndClerk Make(string clerkID, List <WCF_ItemWithQty> wcfIWQL)
    {
        WCF_ItemWithQtyAndClerk iwqac = new WCF_ItemWithQtyAndClerk();

        iwqac.wcfIWQL = wcfIWQL;
        iwqac.clerkID = clerkID;
        return(iwqac);
    }
    public Dictionary <string, List <ItemWithQty> > InsertOrderList(WCF_ItemWithQtyAndClerk wcfIWQACL)
    {
        //List<ItemWithQty> IWQList = spol.CreateItemWithQty(ConvertToItemList(wcfPurchase.wcfIList), wcfPurchase.qtyList);
        List <OrderDetail> ODList = spol.CreateOrderLists(ConvertToItemWithQtyList(wcfIWQACL.wcfIWQL));

        spol.DistributeToSuppliers(ODList);
        Dictionary <string, List <ItemWithQty> > dic = new Dictionary <string, List <ItemWithQty> >();

        dic = ConvertToDictionary(spol);

        //update databse
        cpoc.GenerateOrderListByMobile(dic, wcfIWQACL.clerkID);
        return(dic);
    }