public ActionResult GetAgreemAuctionsList(int page = 1, string request="")
        {
            List<AuctionsListRec> agreements = new List<AuctionsListRec>();
            TViewSummary view = new TViewSummary();
            view.CurrentPage = page;
            if (!request.Equals(""))
            {
                view.SearchStr = request;
            }

            TAgreemAuctionsListRec[] list = new TAgreemAuctionsListRec[0];

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

            client.GetAgreemAuctionsList(ciAgrAuOwn,ref view, ref list);

            for (int i = 0; i < list.Length; i++)
            {
                agreements.Add(new AuctionsListRec(
                    list[i].AuctionID,
                    list[i].AuctionRegNumber,
                    list[i].AuctionStatusText,
                    list[i].CodeTender,
                    list[i].CustomerName,
                    list[i].OrganizerClientName,
                    DateTimeUtils.DoubleToDateTime(list[i].PublishDate).ToString("dd.MM.yyyy"),
                    list[i].RoleText,
                    list[i].SubjectName,
                    DateTimeUtils.DoubleToDateTime(list[i].TenderDate).ToString("dd.MM.yyyy hh:mm:ss")
                ));
            }

            PageStateStruc p;
            p.agreements = agreements;
            p.viewSummary = view;
            return Json(p);
        }
Beispiel #2
0
 /// <remarks/>
 public void GetProtocolAuctionsListAsync(TViewSummary ViewSummary, TAgreemAuctionsListRec[] ProtAuctionsList, object userState) {
     if ((this.GetProtocolAuctionsListOperationCompleted == null)) {
         this.GetProtocolAuctionsListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProtocolAuctionsListOperationCompleted);
     }
     this.InvokeAsync("GetProtocolAuctionsList", new object[] {
                 ViewSummary,
                 ProtAuctionsList}, this.GetProtocolAuctionsListOperationCompleted, userState);
 }
Beispiel #3
0
 /// <remarks/>
 public void GetProtocolAuctionsListAsync(TViewSummary ViewSummary, TAgreemAuctionsListRec[] ProtAuctionsList) {
     this.GetProtocolAuctionsListAsync(ViewSummary, ProtAuctionsList, null);
 }
Beispiel #4
0
 public bool GetProtocolAuctionsList(ref TViewSummary ViewSummary, ref TAgreemAuctionsListRec[] ProtAuctionsList) {
     object[] results = this.Invoke("GetProtocolAuctionsList", new object[] {
                 ViewSummary,
                 ProtAuctionsList});
     ViewSummary = ((TViewSummary)(results[1]));
     ProtAuctionsList = ((TAgreemAuctionsListRec[])(results[2]));
     return ((bool)(results[0]));
 }
Beispiel #5
0
 /// <remarks/>
 public void GetAgreemAuctionsListAsync(int Filter, TViewSummary ViewSummary, TAgreemAuctionsListRec[] AgreemAuctionsList) {
     this.GetAgreemAuctionsListAsync(Filter, ViewSummary, AgreemAuctionsList, null);
 }
Beispiel #6
0
 public bool GetAgreemAuctionsList(int Filter, ref TViewSummary ViewSummary, ref TAgreemAuctionsListRec[] AgreemAuctionsList) {
     object[] results = this.Invoke("GetAgreemAuctionsList", new object[] {
                 Filter,
                 ViewSummary,
                 AgreemAuctionsList});
     ViewSummary = ((TViewSummary)(results[1]));
     AgreemAuctionsList = ((TAgreemAuctionsListRec[])(results[2]));
     return ((bool)(results[0]));
 }