Exemplo n.º 1
0
 /// <remarks/>
 public void GetAuctionInitialDataAsync(string PrevAuctionRegNumber, TAuctionInitialData InitialData, object userState) {
     if ((this.GetAuctionInitialDataOperationCompleted == null)) {
         this.GetAuctionInitialDataOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAuctionInitialDataOperationCompleted);
     }
     this.InvokeAsync("GetAuctionInitialData", new object[] {
                 PrevAuctionRegNumber,
                 InitialData}, this.GetAuctionInitialDataOperationCompleted, userState);
 }
Exemplo n.º 2
0
 /// <remarks/>
 public void GetAuctionInitialDataAsync(string PrevAuctionRegNumber, TAuctionInitialData InitialData) {
     this.GetAuctionInitialDataAsync(PrevAuctionRegNumber, InitialData, null);
 }
        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);
        }
Exemplo n.º 4
0
 public bool GetAuctionInitialData(string PrevAuctionRegNumber, ref TAuctionInitialData InitialData) {
     object[] results = this.Invoke("GetAuctionInitialData", new object[] {
                 PrevAuctionRegNumber,
                 InitialData});
     InitialData = ((TAuctionInitialData)(results[1]));
     return ((bool)(results[0]));
 }
        public ActionResult GetAuctionInitialData()
        {
            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;
            client.GetAuctionInitialData("", ref auctionInitData);

            return Json(auctionInitData);
        }