Exemplo n.º 1
0
        public static InteractResult PfCustomer_OnUpdate(PfCustomer curSupplier)
        {
            InteractResult result = ServerProxy.UpdatePfCustomer(curSupplier);

            switch (result.ExeResult)
            {
            case ExeResult.Success:
                PfCustomer supplier = pfCustomerList?.Find(t => t.ID == curSupplier.ID);
                if (supplier != null)
                {
                    pfCustomerList?.Remove(supplier);
                }
                pfCustomerList?.Add(curSupplier);
                break;

            case ExeResult.Error:
                break;

            default:
                break;
            }
            return(result);
        }