public ActionResult GetAnnouncedAuctions(int page = 1, int status=100, string request="") { List<Auction> auctions = new List<Auction>(); TViewSummary view = new TViewSummary(); view.CurrentPage = page; if (!request.Equals("")) { view.SearchStr = request; } TAuctionsListRec[] list = new TAuctionsListRec[0]; TAuthHeader header = new TAuthHeader(); header.SessionID = (String)Session["sessionID"]; header.SessionKey = (String)Session["sessionKey"]; client.TAuthHeaderValue = header; client.GetAuctionsList(status, false, ref view, ref list); for (int i = 0; i < list.Length; i++) { auctions.Add(new Auction( list[i].AuctionRegNumber, DateTimeUtils.DoubleToDateTime(list[i].PublishDate).ToString("dd.MM.yyyy"), list[i].SubjectName, list[i].Customer, list[i].FinanceType, DateTimeUtils.DoubleToDateTime(list[i].EndOfferDate).ToString("dd.MM.yyyy"), DateTimeUtils.DoubleToDateTime(list[i].TenderDate).ToString("dd.MM.yyyy HH:mm:ss"), list[i].AuctionStatusText, list[i].OfferAvailable, list[i].AuctionID.ToString() )); } PageStateStruc p; p.auctions = auctions; p.viewSummary = view; return Json(p); }
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); }
public ActionResult GetNotices(int page = 1, int type=0, string request="") { List<Notice> noticesList = new List<Notice>(); TViewSummary view = new TViewSummary(); view.CurrentPage = page; if (!request.Equals("")) { view.SearchStr = request; } TNotice[] notices = new TNotice[0]; TAuthHeader header = new TAuthHeader(); header.SessionID = (String)Session["sessionID"]; header.SessionKey = (String)Session["sessionKey"]; client.TAuthHeaderValue = header; try { client.GetNotices(type, ref view, ref notices); } catch (Exception ex) { return Json(ex.Message); } bool isRead = type == ciNoticeStatusUnread ? false : true; foreach (TNotice notice in notices) { noticesList.Add(new Notice(DateTimeUtils.DoubleToDateTime(notice.NoticeDate).ToString("dd.MM.yyyy HH:mm:ss"), notice.Title, notice.HyperText.Equals("") ? notice.Text : notice.HyperText, notice.NoticeID, isRead, notice.IsSigned == 1 ? true : false)); } PageStateStruc p; p.notices = noticesList; p.viewSummary = view; return Json(p); }
public ActionResult GetNews(int page=1) { List<News> news = new List<News>(); TViewSummary view = new TViewSummary(); view.CurrentPage = page; //TODO убрать //view.CurrentPage = page; //view.TotalPages = 10; //TODO поставить 0 TNews[] newsRec=new TNews[0]; //TODO убрать //TNews n = new TNews(); /*n.NewsDate = new DateTime(); n.Title = "Title"; n.Text = "В аукционном приглашении AU123456789 произошли изменения"; n.References = new TReference[1]; n.References[0] = new TReference(); n.References[0].Link = "AU123456789"; n.References[0].LinkedID = 1; for (int i = 0; i < 30; i++) { newsRec[i] = n; }*/ //TODO убрать комменты client.GetNews(ref view,ref newsRec); foreach (TNews rec in newsRec) { news.Add(new News(DateTimeUtils.DoubleToDateTime(rec.NewsDate), rec.Title, rec.HyperText.Equals("")?rec.Text:rec.HyperText)); } PageStateStruc p; p.news = news; p.viewSummary = view; return Json(p); }
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])); }
/// <remarks/> public void GetAuctionsListAsync(int Filter, bool IsOwn, TViewSummary ViewSummary, TAuctionsListRec[] AuctionsList) { this.GetAuctionsListAsync(Filter, IsOwn, ViewSummary, AuctionsList, null); }
/// <remarks/> public void GetTradedLotsAsync(int Filter, int Role, TViewSummary ViewSummary, TTradedLot[] Lots) { this.GetTradedLotsAsync(Filter, Role, ViewSummary, Lots, null); }
public bool GetRatesList(int LotID, ref TViewSummary ViewSummary, ref TRatesListRec[] RatesList) { object[] results = this.Invoke("GetRatesList", new object[] { LotID, ViewSummary, RatesList}); ViewSummary = ((TViewSummary)(results[1])); RatesList = ((TRatesListRec[])(results[2])); return ((bool)(results[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); }
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])); }
/// <remarks/> public void GetNewsAsync(TViewSummary ViewSummary, TNews[] News) { this.GetNewsAsync(ViewSummary, News, null); }
public bool GetNews(ref TViewSummary ViewSummary, ref TNews[] News) { object[] results = this.Invoke("GetNews", new object[] { ViewSummary, News}); ViewSummary = ((TViewSummary)(results[1])); News = ((TNews[])(results[2])); return ((bool)(results[0])); }
/// <remarks/> public void GetOKRBListAsync(TViewSummary ViewSummary, TOKRBRec[] OKRBList) { this.GetOKRBListAsync(ViewSummary, OKRBList, null); }
public bool GetOKRBList(ref TViewSummary ViewSummary, ref TOKRBRec[] OKRBList) { object[] results = this.Invoke("GetOKRBList", new object[] { ViewSummary, OKRBList}); ViewSummary = ((TViewSummary)(results[1])); OKRBList = ((TOKRBRec[])(results[2])); return ((bool)(results[0])); }
/// <remarks/> public void GetAgreemAuctionsListAsync(int Filter, TViewSummary ViewSummary, TAgreemAuctionsListRec[] AgreemAuctionsList) { this.GetAgreemAuctionsListAsync(Filter, ViewSummary, AgreemAuctionsList, null); }
/// <remarks/> public void GetRatesListAsync(int LotID, TViewSummary ViewSummary, TRatesListRec[] RatesList, object userState) { if ((this.GetRatesListOperationCompleted == null)) { this.GetRatesListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRatesListOperationCompleted); } this.InvokeAsync("GetRatesList", new object[] { LotID, ViewSummary, RatesList}, this.GetRatesListOperationCompleted, userState); }
/// <remarks/> public void GetRatesListAsync(int LotID, TViewSummary ViewSummary, TRatesListRec[] RatesList) { this.GetRatesListAsync(LotID, ViewSummary, RatesList, null); }
/// <remarks/> public void GetOffersListAsync(int Filter, TViewSummary ViewSummary, TOffersListRec[] OffersList) { this.GetOffersListAsync(Filter, ViewSummary, OffersList, null); }
/// <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); }
/// <remarks/> public void GetNewsAsync(TViewSummary ViewSummary, TNews[] News, object userState) { if ((this.GetNewsOperationCompleted == null)) { this.GetNewsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetNewsOperationCompleted); } this.InvokeAsync("GetNews", new object[] { ViewSummary, News}, this.GetNewsOperationCompleted, userState); }
/// <remarks/> public void GetProtocolAuctionsListAsync(TViewSummary ViewSummary, TAgreemAuctionsListRec[] ProtAuctionsList) { this.GetProtocolAuctionsListAsync(ViewSummary, ProtAuctionsList, null); }
public ActionResult ListAcred() { TAccreditationAbonent acredAbonent = new TAccreditationAbonent(); TPersonAccrediataion acredPerson = new TPersonAccrediataion(); TPersonAccrediataion[] personList = new TPersonAccrediataion[0]; TDocumentsList[] docList = new TDocumentsList[0]; TViewSummary view = new TViewSummary(); Member member = new Member(); Person[] aPersonList = null; DocumentsList[] adocList = null; int memberID = 0; if (Session["hasLogged"] == null) { Session["hasLogged"] = false; } if ((bool)Session["hasLogged"]) { client.TAuthHeaderValue = new TAuthHeader(); client.GetAccredMemberInfo((string)Session["sessionID"], (string)Session["sessionKey"], memberID, ref acredAbonent, ref acredPerson, ref personList, ref docList); member.FIdTypeMember = acredAbonent.TIdypeMember; member.FTypeMember = acredAbonent.TypeMember; member.FMemberCode = acredAbonent.MemberCode; member.FFullNameMember = ((CertInfo)Session["certInfo"]).OrganizationOwner; member.FShortNameMember = ((CertInfo)Session["certInfo"]).CNOwner; member.FUnp = ((CertInfo)Session["certInfo"]).UNP; member.FOkpo = acredAbonent.Okpo; member.FOkogu = acredAbonent.Okogu; member.FIDOkogu = acredAbonent.IdOKOGU; member.FOrgGovermentFin = acredAbonent.OrgGovermentFin; member.FOrgLegalForm = acredAbonent.OrgLegalForm; member.FIdOrgLegalForm = acredAbonent.IdOrgLegalForm; member.FCountry = ((CertInfo)Session["certInfo"]).CountryOwner; member.FRegion = ((CertInfo)Session["certInfo"]).Area; member.FCity = ((CertInfo)Session["certInfo"]).LocalityOwner; member.FAddress = ((CertInfo)Session["certInfo"]).StreetOwner; member.FIdBank = acredAbonent.IdBank; member.FBankAccount = acredAbonent.AccountNumber; member.FBankCode = acredAbonent.BankCode; member.FBankName = acredAbonent.BankNAme; member.FBankAddress = acredAbonent.BankAddress; member.FBossSecondName = acredAbonent.BossLastName; member.FBossOtherName = acredAbonent.BossFirstName + " " + acredAbonent.BossSecondName; member.FBossPost = acredAbonent.BossPost; member.FFax = acredAbonent.Fax; member.FEMail = acredAbonent.Email; member.FSite = acredAbonent.WwwSite; member.FPhone = acredAbonent.MemberPhone; member.FMemberStatus = (string)Session["memberStatus"]; member.FPersonLastName = acredPerson.Person_last_name; member.FPersonName = acredPerson.Person_name; member.FPersonNameGenitive = acredPerson.Person_Name_Genitive; member.FPersonDataFromBaseDoc = acredPerson.Person_Data_From_Base_Doc; member.FPersonIdBaseDoc = acredPerson.Person_Id_Base_Doc; member.FPersonNameOfficepost = acredPerson.Person_Name_Officepost; member.FPersonNameOfficepostGenitive = acredPerson.Person_Name_Officepost_Genitive; member.FPersonNameBaseDocGetnitive = acredPerson.Person_Name_Base_Doc_Genitive; member.FPersonNumberBaseDoc = acredPerson.Pperson_Number_Base_Doc; member.FPersonOrganBaseDoc = acredPerson.Person_Organ_Base_Doc; member.FPersonDateBeginDoc = DateTimeUtils.DoubleToDateTime(acredPerson.Person_Date_Begin_Doc).ToString("dd.MM.yyyy"); member.FPersonMail = acredPerson.Person_Mail; member.FPersonPhone = acredPerson.Person_Phone; aPersonList = new Person[personList.Length]; for (int i = 0; i < personList.Length; i++) { Person person = new Person(); person.FIdPerson = personList[i].Id_Person; person.FPK = personList[i].Pk; person.FNumPerson = personList[i].NumPerson.ToString(); person.FPersonLastName = personList[i].Person_last_name; person.FPersonName = personList[i].Person_name; person.FPersonNameGenitive = personList[i].Person_Name_Genitive; person.FPersonDataFromBaseDoc = personList[i].Person_Data_From_Base_Doc; person.FPersonNameOfficepost = personList[i].Person_Name_Officepost; person.FPersonNameOfficepostGenitive = personList[i].Person_Name_Officepost_Genitive; person.FPersonNumberBaseDoc = personList[i].Pperson_Number_Base_Doc; person.FPersonIdBaseDoc= personList[i].Person_Id_Base_Doc.ToString(); person.FPersonOrganBaseDoc = personList[i].Person_Organ_Base_Doc; person.FPersonDateBeginDoc = DateTimeUtils.DoubleToDateTimeToString(personList[i].Person_Date_Begin_Doc, "dd.MM.yyyy"); person.FPersonDateEndDoc = DateTimeUtils.DoubleToDateTimeToString(personList[i].Person_Date_End_Doc, "dd.MM.yyyy"); person.FPersonMail = personList[i].Person_Mail; person.FPersonPhone = personList[i].Person_Phone; aPersonList[i] = person; } adocList = new DocumentsList[docList.Length]; for (int i = 0; i < docList.Length; i++) { DocumentsList adoc = new DocumentsList(); adoc.FRowNUM = docList[i].RowNUM.ToString(); adoc.FIdDocument = docList[i].Id_Document.ToString(); adoc.FIdMember = docList[i].Id_Member.ToString(); adoc.FTypeDocument = docList[i].Type_Document; adoc.FFileName = docList[i].File_Name; adoc.FDOn = DateTimeUtils.DoubleToDateTimeToString(docList[i].D_On, "dd.MM.yyyy"); adoc.FDg1 = docList[i].Dg1.ToString(); adoc.FRole = docList[i].Role; adocList[i] = adoc; } } else { if (Session["errCode"] == null) { Session["errCode"] = c_Err_MmbrNoFnd_UsrNoFnd; } switch ((string)Session["errCode"]) { case c_Err_MmbrNoFnd_UsrNoFnd: { member.FTypeMember = ""; member.FMemberCode = ""; member.FFullNameMember = ((CertInfo)Session["certInfo"]).OrganizationOwner; member.FShortNameMember = ((CertInfo)Session["certInfo"]).CNOwner; member.FUnp = ((CertInfo)Session["certInfo"]).UNP; member.FOkpo = ""; member.FOkogu = ""; member.FOrgGovermentFin = 0; member.FOrgLegalForm = ""; member.FCountry = ((CertInfo)Session["certInfo"]).CountryOwner; member.FRegion = ((CertInfo)Session["certInfo"]).Area; member.FCity = ((CertInfo)Session["certInfo"]).LocalityOwner; member.FAddress = ((CertInfo)Session["certInfo"]).StreetOwner; member.FBankAccount = ""; member.FBankCode = ""; member.FBankName = ""; member.FBankAddress = ""; member.FBossSecondName = ""; member.FBossOtherName = ""; member.FBossPost = ""; member.FFax = ""; member.FEMail = ""; member.FSite = ""; member.FPhone = ""; member.FPersonLastName = ((CertInfo)Session["certInfo"]).SurnameOwner; member.FPersonName = ((CertInfo)Session["certInfo"]).NameAndMiddleName; member.FPersonNameGenitive = ""; member.FPersonDataFromBaseDoc = ((CertInfo)Session["certInfo"]).PassportData; member.FPersonNameOfficepost = ((CertInfo)Session["certInfo"]).Post; member.FPersonNameOfficepostGenitive = ""; member.FPersonNameBaseDocGetnitive = ""; member.FPersonNumberBaseDoc = ""; member.FPersonOrganBaseDoc = ""; member.FPersonDateBeginDoc = "";// DateTime.Now.ToString("dd.MM.yyyy"); member.FPersonMail = ((CertInfo)Session["certInfo"]).EmailPublisher; member.FPersonPhone = ""; break; } case c_Err_MmbrFnd_UsrNoFnd: { break; } case c_Err_MmbrFnd_UsrFnd_NoReg: { break; } } /* client.GetMemberID(((CertInfo)Session["certInfo"]).OrganizationOwner, ((CertInfo)Session["certInfo"]).CNOwner, ((CertInfo)Session["certInfo"]).UNP, ((CertInfo)Session["certInfo"]).CountryOwner, ((CertInfo)Session["certInfo"]).Area, ((CertInfo)Session["certInfo"]).LocalityOwner, ref memberID); client.TAuthHeaderValue = new TAuthHeader(); client.GetAccredMemberInfo("", "", memberID, ref acredAbonent, ref acredPerson, ref personList, ref docList); member.FTypeMember = acredAbonent.TypeMember; member.FMemberCode = acredAbonent.MemberCode; member.FFullNameMember = "";// ((CertInfo)Session["certInfo"]).CNOwner; member.FShortNameMember = "";// ((CertInfo)Session["certInfo"]).SurnameOwner; member.FUnp = "";// ((CertInfo)Session["certInfo"]).UNP; member.FOkpo = acredAbonent.Okpo; member.FOkogu = acredAbonent.Okogu; //member.FOrgGovermentFin = member.FOrgLegalForm = acredAbonent.OrgLegalForm; member.FCountry = "";//((CertInfo)Session["certInfo"]).CountryOwner; member.FRegion = "";// ((CertInfo)Session["certInfo"]). member.FCity = ""; // acredAbonent.City; member.FAdress = "";// ((CertInfo)Session["certInfo"]).StreetOwner; member.FBankAccount = acredAbonent.AccountNumber; member.FBankCode = acredAbonent.BankCode; member.FBankName = acredAbonent.BankNAme; member.FBankAddress = acredAbonent.BankAddress; member.FBossSecondName = acredAbonent.BossLastName; member.FBossOtherName = acredAbonent.BossFirstName + " " + acredAbonent.BossSecondName; member.FBossPost = acredAbonent.BossPost; member.FFax = acredAbonent.Fax; member.FEMail = acredAbonent.Email; member.FSite = acredAbonent.WwwSite; member.FPhone = acredAbonent.MemberPhone; member.FPersonLastName = acredPerson.Person_last_name; member.FPersonName = acredPerson.Person_name; member.FPersonNameGenitive = acredPerson.Person_Name_Genitive; member.FPersonDataFromBaseDoc = acredPerson.Person_Data_From_Base_Doc; member.FPersonNameOfficepost = acredPerson.Person_Name_Officepost; member.FPersonNameOfficepostGenitive = acredPerson.Person_Name_Officepost_Genitive; member.FPersonNameBaseDocGetnitive = acredPerson.Person_Name_Base_Doc_Genitive; member.FPersonNumberBaseDoc = acredPerson.Pperson_Number_Base_Doc; member.FPersonOrganBaseDoc = acredPerson.Person_Organ_Base_Doc; member.FPersonDateBeginDoc = DateTimeUtils.DoubleToDateTime(acredPerson.Person_Date_Begin_Doc).ToString("dd.MM.yyyy"); member.FPersonMail = acredPerson.Person_Mail; member.FPersonPhone = acredPerson.Person_Phone; aPersonList = new Person[personList.Length]; for (int i = 0; i < personList.Length; i++) { Person person = new Person(); person.FIdPerson = personList[i].Id_Person; person.FPK = personList[i].Pk; person.FNumPerson = personList[i].NumPerson.ToString(); person.FPersonLastName = personList[i].Person_last_name; person.FPersonName = personList[i].Person_name; person.FPersonNameGenitive = personList[i].Person_Name_Genitive; person.FPersonDataFromBaseDoc = personList[i].Person_Data_From_Base_Doc; person.FPersonNameOfficepost = personList[i].Person_Name_Officepost; person.FPersonNameOfficepostGenitive = personList[i].Person_Name_Officepost_Genitive; person.FPersonNumberBaseDoc = personList[i].Pperson_Number_Base_Doc; person.FPersonOrganBaseDoc = personList[i].Person_Organ_Base_Doc; person.FPersonDateBeginDoc = DateTimeUtils.DoubleToDateTime(personList[i].Person_Date_Begin_Doc).ToString("dd.MM.yyyy"); person.FPersonDateEndDoc = DateTimeUtils.DoubleToDateTime(personList[i].Person_Date_End_Doc).ToString("dd.MM.yyyy"); person.FPersonMail = personList[i].Person_Mail; person.FPersonPhone = personList[i].Person_Phone; aPersonList[i] = person; } */ } Acred acred = new Acred(); acred.adocList = adocList; acred.aMember = member; acred.aPersonList = aPersonList; return Json(acred); }
public bool GetNotices(int NoticeStatus, ref TViewSummary ViewSummary, ref TNotice[] Notices) { object[] results = this.Invoke("GetNotices", new object[] { NoticeStatus, ViewSummary, Notices}); ViewSummary = ((TViewSummary)(results[1])); Notices = ((TNotice[])(results[2])); return ((bool)(results[0])); }
/// <remarks/> public void GetTradedLotsAsync(int Filter, int Role, TViewSummary ViewSummary, TTradedLot[] Lots, object userState) { if ((this.GetTradedLotsOperationCompleted == null)) { this.GetTradedLotsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetTradedLotsOperationCompleted); } this.InvokeAsync("GetTradedLots", new object[] { Filter, Role, ViewSummary, Lots}, this.GetTradedLotsOperationCompleted, userState); }
/// <remarks/> public void GetNoticesAsync(int NoticeStatus, TViewSummary ViewSummary, TNotice[] Notices) { this.GetNoticesAsync(NoticeStatus, ViewSummary, Notices, null); }
/// <remarks/> public void GetNoticesAsync(int NoticeStatus, TViewSummary ViewSummary, TNotice[] Notices, object userState) { if ((this.GetNoticesOperationCompleted == null)) { this.GetNoticesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetNoticesOperationCompleted); } this.InvokeAsync("GetNotices", new object[] { NoticeStatus, ViewSummary, Notices}, this.GetNoticesOperationCompleted, userState); }
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); }
public bool GetAuctionsList(int Filter, bool IsOwn, ref TViewSummary ViewSummary, ref TAuctionsListRec[] AuctionsList) { object[] results = this.Invoke("GetAuctionsList", new object[] { Filter, IsOwn, ViewSummary, AuctionsList}); ViewSummary = ((TViewSummary)(results[1])); AuctionsList = ((TAuctionsListRec[])(results[2])); return ((bool)(results[0])); }
public FileResult Rss() { TViewSummary view = new TViewSummary(); TNews[] newsRec = new TNews[0]; view.CurrentPage = 1; client.GetNews(ref view,ref newsRec); List<SyndicationItem> rssItems = new List<SyndicationItem>(); SyndicationFeed feed = new SyndicationFeed("ГОСЗАКУПКИ РБ", "Новости аукционов ЭТП ГОСЗАКУПКИ РБ", new Uri(Request.Url.ToString()), "rssID", DateTime.Now); foreach (TNews rec in newsRec) { var rssItem = new SyndicationItem(rec.Title, rec.Text, new Uri("http://zakupki.butb.by"), rec.NewsID.ToString(), DateTimeUtils.DoubleToDateTime(rec.NewsDate)); rssItems.Add(rssItem); } feed.Items = rssItems; return new FeedResult(feed, FeedType.Rss); }
public bool GetTradedLots(int Filter, int Role, ref TViewSummary ViewSummary, ref TTradedLot[] Lots) { object[] results = this.Invoke("GetTradedLots", new object[] { Filter, Role, ViewSummary, Lots}); ViewSummary = ((TViewSummary)(results[1])); Lots = ((TTradedLot[])(results[2])); return ((bool)(results[0])); }