public void InsertParsedDataCollection(int OrderId, ParsedDataCollection c) { foreach (ParsedData d in c) { this.InsertParsedData(OrderId, d); } }
private Vmax44ParserConnectedLayer.ParsedDataCollection Commander(string detailCode) { Vmax44ParserConnectedLayer.ParsedDataCollection res = new Vmax44ParserConnectedLayer.ParsedDataCollection(); this.Error = 0; this.ErrorMessage = ""; bool done = false; while (!done) { switch (getCurrentPageType()) { case PTypeEnum.loginPage: this.Error = 2; this.ErrorMessage = "Требуется Login"; done = true; break; case PTypeEnum.selectManufacturerPage: parseManufacturers(); if (this.StringsToSelect.ContainsKey(this.selectedString)) { clickManufacturer(this.StringsToSelect[this.selectedString], detailCode); } else { this.Error = 1; this.ErrorMessage = "Требуется выбор производителя"; done = true; } break; case PTypeEnum.dataPage: res = ParseData(); done = true; break; case PTypeEnum.noResultPage: done = true; break; default: this.Error = 3; this.ErrorMessage = "Неизвестная ошибка"; done = true; break; } } return(res); }