public ActionResult GetRefusedOffers(int page = 1, int status = 300, string request = "")
        {
            List<Offer> offers = new List<Offer>();
            TViewSummary view = new TViewSummary();
            view.CurrentPage = page;
            if (!request.Equals(""))
            {
                view.SearchStr = request;
            }

            TOffersListRec[] list = new TOffersListRec[0];

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

            client.GetOffersList(status, ref view, ref list);

            for (int i = 0; i < list.Length; i++)
            {
                offers.Add(new Offer(
                    list[i].OfferID,
                    list[i].AuctionRegNumber,
                    list[i].AuctionID,
                    list[i].SubjectName,
                    DateTimeUtils.DoubleToDateTime(list[i].EndOfferDate).ToString("dd.MM.yyyy HH:mm:ss"),
                    list[i].OfferRegNumber,
                    DateTimeUtils.DoubleToDateTime(list[i].OfferDate).ToString("dd.MM.yyyy HH:mm:ss"),
                    DateTimeUtils.DoubleToDateTime(list[i].TenderDate).ToString("dd.MM.yyyy HH:mm:ss"),
                    list[i].OfferStatusText
                ));
            }

            PageStateStruc p;
            p.offers = offers;
            p.viewSummary = view;
            return Json(p);
        }
Esempio n. 2
0
 /// <remarks/>
 public void GetOffersListAsync(int Filter, TViewSummary ViewSummary, TOffersListRec[] OffersList) {
     this.GetOffersListAsync(Filter, ViewSummary, OffersList, null);
 }
Esempio n. 3
0
 /// <remarks/>
 public void GetOffersListAsync(int Filter, TViewSummary ViewSummary, TOffersListRec[] OffersList, object userState) {
     if ((this.GetOffersListOperationCompleted == null)) {
         this.GetOffersListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOffersListOperationCompleted);
     }
     this.InvokeAsync("GetOffersList", new object[] {
                 Filter,
                 ViewSummary,
                 OffersList}, this.GetOffersListOperationCompleted, userState);
 }
Esempio n. 4
0
 public bool GetOffersList(int Filter, ref TViewSummary ViewSummary, ref TOffersListRec[] OffersList) {
     object[] results = this.Invoke("GetOffersList", new object[] {
                 Filter,
                 ViewSummary,
                 OffersList});
     ViewSummary = ((TViewSummary)(results[1]));
     OffersList = ((TOffersListRec[])(results[2]));
     return ((bool)(results[0]));
 }