//This method processes extracts information from a 5 column row public void processRowFiveCols(HtmlNodeCollection rowContent) { string content; string contentFirstCell; if (foundstone.myTable.isSystem()) //there are some cases in which the tool finds a cell in the middle that has a comment and NOT actual data { foundstone.writePlatformOrComponentAndKB(rowContent[0].InnerText); content = rowContent[1].InnerText; foundstone.writeComponent(content); // we are doing this because there maybe more than one componenet } //We are assuming that if it has 5 columns, they must have BKs, and the coponents could be in the 1st column or the 2nd column if (!(foundstone.myTable.isSystem())) //if it has 5 rows and it is a component, you have to check the where the component is, becouse it could be in the 1st and 2nd column { if (foundstone.thisCellcontainsConponents(rowContent[0].InnerText)) { content = rowContent[0].InnerText; foundstone.writePlatformOrComponentAndKB(content); foundstone.writeComponentsOnly(content); // we are doing this because there maybe more than one componenet ESTA LINEA LA ESTA CAGANDO } else { content = rowContent[1].InnerText; contentFirstCell = rowContent[0].InnerText; foundstone.writePlatformOrComponentAndKB(content); foundstone.writeComponentsOnly(content, contentFirstCell); // we are doing this because there maybe more than one componenet } } }
//This method processes extracts information from a 5 column row public void processRowFiveCols(Novacode.Row rowContent) { string content; string contentFirstCell; if ((rowContent.Cells.Count == 5) && (foundstone.myTable.isSystem())) //there are some cases in which the tool finds a cell in the middle that has a comment and NOT actual data { foundstone.writePlatformOrComponentAndKB(rowContent.Cells[0].Paragraphs[0].Text); content = foundstone.utilities.getTextFromCell(rowContent.Cells[1].Paragraphs); foundstone.writeComponent(content); // we are doing this because there maybe more than one componenet } //We are assuming that if it has 5 columns, they must have BKs, and the coponents could be in the 1st column or the 2nd column if ((rowContent.Cells.Count == 5) && !(foundstone.myTable.isSystem())) //if it has 5 rows and it is a component, you have to check the where the component is, becouse it could be in the 1st and 2nd column { if (foundstone.thisCellcontainsConponents(rowContent.Cells[0].Paragraphs[0].Text)) { content = foundstone.utilities.getTextFromCell(rowContent.Cells[0].Paragraphs); foundstone.writePlatformOrComponentAndKB(content); foundstone.writeComponentsOnly(content); // we are doing this because there maybe more than one componenet ESTA LINEA LA ESTA CAGANDO } else { content = foundstone.utilities.getTextFromCell(rowContent.Cells[1].Paragraphs); contentFirstCell = foundstone.utilities.getTextFromCell(rowContent.Cells[0].Paragraphs); foundstone.writePlatformOrComponentAndKB(content); foundstone.writeComponentsOnly(content, contentFirstCell); // we are doing this because there maybe more than one componenet } } }