public List <Guid> GetListImportedItem(string code)
        {
            const string url     = "Utility/GetListImportFreiActive?key=";
            var          urlJson = string.Format("{0}{1}", UrlG + url, code);
            var          list    = Utility.GetObjJson <List <FreightWarehouseActiveNewItem> >(urlJson);
            var          lstArr  = string.Join(",", list.Select(c => c.Idimport));
            var          lstInt  = FDIUtils.StringToListGuid(lstArr);

            return(lstInt);
        }
Example #2
0
        public List <ImportProductItem> GetListByArrId(string lstId)
        {
            var ltsArrId = FDIUtils.StringToListGuid(lstId);
            var query    = from o in FDIDB.DN_ImportProduct
                           where o.IsDelete == false && ltsArrId.Contains(o.GID)
                           select new ImportProductItem
            {
                GID = o.GID,
                //ProductID = o.ProductID,
                Quantity = o.Quantity,
                Price    = o.Price
            };

            return(query.ToList());
        }