Ejemplo n.º 1
0
        void ConvertOfferToOrder(DebtorOfferClient offerclient)
        {
            CwOffertoOrder cwOfferToOrder = new CwOffertoOrder();

#if !SILVERLIGHT
            cwOfferToOrder.DialogTableId = 2000000044;
#endif
            cwOfferToOrder.Closed += async delegate
            {
                if (cwOfferToOrder.DialogResult == true)
                {
                    var        odrApi = new OrderAPI(api);
                    ErrorCodes res    = await odrApi.ConvertOfferToOrder(offerclient, cwOfferToOrder.KeepOffer);

                    if (res == ErrorCodes.Succes)
                    {
                        InitQuery();
                    }
                    UtilDisplay.ShowErrorCode(res);
                }
            };
            cwOfferToOrder.Show();
        }