Exemplo n.º 1
0
        public string GetQuoteId()
        {
            string quoteId = "DB040ECD-5ED4-E211-9BE0-000C299FFE7D"; // Debug

            if (ParentPage.Ui != null)
            {
                string guid = ParentPage.Data.Entity.GetId();
                if (guid != null)
                {
                    quoteId = guid.Replace("{", "").Replace("}", "");
                }

                this._transactionCurrencyId = ((Lookup[])ParentPage.GetAttribute("transactioncurrencyid").GetValue())[0].Id;
            }

            return(quoteId);
        }