Esempio n. 1
0
 /// <remarks/>
 public void GetAuctionMoneyValuesAsync(TMoneyRec[] LotPrices, string AuctionCurrency, double TotalCost, double ServiceFee) {
     this.GetAuctionMoneyValuesAsync(LotPrices, AuctionCurrency, TotalCost, ServiceFee, null);
 }
Esempio n. 2
0
 /// <remarks/>
 public void GetAuctionMoneyValuesAsync(TMoneyRec[] LotPrices, string AuctionCurrency, double TotalCost, double ServiceFee, object userState) {
     if ((this.GetAuctionMoneyValuesOperationCompleted == null)) {
         this.GetAuctionMoneyValuesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAuctionMoneyValuesOperationCompleted);
     }
     this.InvokeAsync("GetAuctionMoneyValues", new object[] {
                 LotPrices,
                 AuctionCurrency,
                 TotalCost,
                 ServiceFee}, this.GetAuctionMoneyValuesOperationCompleted, userState);
 }
Esempio n. 3
0
 public bool GetAuctionMoneyValues(TMoneyRec[] LotPrices, string AuctionCurrency, ref double TotalCost, ref double ServiceFee) {
     object[] results = this.Invoke("GetAuctionMoneyValues", new object[] {
                 LotPrices,
                 AuctionCurrency,
                 TotalCost,
                 ServiceFee});
     TotalCost = ((double)(results[1]));
     ServiceFee = ((double)(results[2]));
     return ((bool)(results[0]));
 }
        public ActionResult GetAuctionMoneyValues(MoneyValue[] money, string auctionCurrency)
        {
            TAuctionInitialData auctionInitData = new TAuctionInitialData();
            auctionInitData.Customer = new TMemberInfo();
            auctionInitData.AuctionHeader = new TAuctionHeader();

            TAuthHeader header = new TAuthHeader();
            header.SessionID = (String)Session["sessionID"];
            header.SessionKey = (String)Session["sessionKey"];

            client.TAuthHeaderValue = header;

            TMoneyRec[] moneyRecs = new TMoneyRec[money.Length];
            for (int i = 0; i < moneyRecs.Length; i++)
            {
                TMoneyRec moneyRec = new TMoneyRec();
                moneyRec.Currency = money[i].Currency;
                moneyRec.Money = double.Parse(money[i].Money, System.Globalization.CultureInfo.InvariantCulture);
                moneyRecs[i] = moneyRec;
            }

            double totalCost=0;
            double serviceFee=0;
            client.GetAuctionMoneyValues(moneyRecs,auctionCurrency, ref totalCost, ref serviceFee);
            MoneyWrapper wrapper;
            wrapper.totalCost = totalCost;
            wrapper.serviceFee = serviceFee;
            return Json(wrapper);
        }