Ejemplo n.º 1
0
        public void PackageDeliveryToServer(ipp_Package package)
        {
            IRecipientResolver resolver = GetService <IRecipientResolver>();
            var ret = resolver.ParseRecipients(package.PR);

            if (!ret.Ret)
            {
                return;
            }

            IPackageDealer dealer     = new PackageDealer();
            var            refpackage = dealer.SavePackage(package);
            var            receivers  = ret.Obj as string[];
            var            count      = dealer.DealPackage(refpackage, receivers);
            //return Result(count > 0, receivers.Length == count ? "" : (receivers.Length - count) + "个用户未能派送包裹");
        }
Ejemplo n.º 2
0
        public StandardResult PackageDeliveryToClient(string account, DateTime lastTime)
        {
            IPackageDealer dealer = new PackageDealer();

            return(Result(dealer.PickPackage(account, lastTime)));
        }