public ActionResult GetProtocols(int auctionID)
        {
            TDocument[] docsList = new TDocument[0];

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

            client.GetProtocols(auctionID, ref docsList);

            List<Document> docs = new List<Document>();
            for (int i = 0; i < docsList.Length; i++)
            {
                docs.Add(new Document(docsList[i].DocID, docsList[i].DocName, docsList[i].DocType, docsList[i].FileName));
            }

            return Json(docs);
        }
Example #2
0
 /// <remarks/>
 public void GetProtocolsAsync(int AuctionID, TDocument[] Protocols) {
     this.GetProtocolsAsync(AuctionID, Protocols, null);
 }
Example #3
0
 /// <remarks/>
 public void GetProtocolsAsync(int AuctionID, TDocument[] Protocols, object userState) {
     if ((this.GetProtocolsOperationCompleted == null)) {
         this.GetProtocolsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProtocolsOperationCompleted);
     }
     this.InvokeAsync("GetProtocols", new object[] {
                 AuctionID,
                 Protocols}, this.GetProtocolsOperationCompleted, userState);
 }
Example #4
0
 public bool GetProtocols(int AuctionID, ref TDocument[] Protocols) {
     object[] results = this.Invoke("GetProtocols", new object[] {
                 AuctionID,
                 Protocols});
     Protocols = ((TDocument[])(results[1]));
     return ((bool)(results[0]));
 }
Example #5
0
 /// <remarks/>
 public void GetSummationContenderDocsAsync(int OfferID, TDocument[] Docs, object userState) {
     if ((this.GetSummationContenderDocsOperationCompleted == null)) {
         this.GetSummationContenderDocsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSummationContenderDocsOperationCompleted);
     }
     this.InvokeAsync("GetSummationContenderDocs", new object[] {
                 OfferID,
                 Docs}, this.GetSummationContenderDocsOperationCompleted, userState);
 }
Example #6
0
 /// <remarks/>
 public void GetSummationContenderDocsAsync(int OfferID, TDocument[] Docs) {
     this.GetSummationContenderDocsAsync(OfferID, Docs, null);
 }
Example #7
0
 public bool GetSummationContenderDocs(int OfferID, ref TDocument[] Docs) {
     object[] results = this.Invoke("GetSummationContenderDocs", new object[] {
                 OfferID,
                 Docs});
     Docs = ((TDocument[])(results[1]));
     return ((bool)(results[0]));
 }
Example #8
0
 /// <remarks/>
 public void GetConsiderSection1OfferDocsAsync(int OfferID, TDocument[] Docs) {
     this.GetConsiderSection1OfferDocsAsync(OfferID, Docs, null);
 }