public static bool VeifyTheStrikeThroughRecords(string refID) { try { bool recordFoundInStrikeThroughMode = false; DL_Lab_MRR_Table.NavigateToFirstPage(DL_Lab_MRR_Table.Pager); do { WebTable_SearchCriteriaItemList searchList = new WebTable_SearchCriteriaItemList(); searchList.AddSearchItem(new WebTable_SearchCriteriaItem(1, refID, TableColumnContentType.Text)); IControl row = WebTableUtilities.Table_FindRow(DL_Lab_MRR_Table.MrrTable, searchList, 0); if (!Control_PropertyUtilities.IsControlNull(row)) { IControl strikedRow = DL_Lab_Mrr_Delete.StrikeThroughRow; IControl checkboxForDeletedRecord = DL_Lab_Mrr_Delete.Checkbox(row); if (Control_PropertyUtilities.IsControlNull(strikedRow) && Control_PropertyUtilities.IsControlNull(checkboxForDeletedRecord)) { recordFoundInStrikeThroughMode = true; } } }while (DL_Lab_MRR_Table.NavigateToNextPage(DL_Lab_MRR_Table.Pager)); return(recordFoundInStrikeThroughMode); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool verifyTheCheckBoxForTheDeletedRecords(List <RowIndex> rows) { try { foreach (RowIndex rowindex in rows) { int rowindexinint = int.Parse(rowindex.Row); IControl row = WebTableUtilities.GetRowByRowIndex(DL_Lab_MRR_Table.MrrTable, rowindexinint); if (!Control_PropertyUtilities.IsControlNull(row)) { IControl checkbox = DL_Lab_Mrr_Delete.Checkbox(row); return(Control_PropertyUtilities.IsControlNull(checkbox)); } } return(true); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }