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); }
public static List <String> GetTheRefIDS(List <RowIndex> rows) { try { List <string> refIds = new List <string>(); 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 refId = WebTableUtilities.GetCell(row, 1); refIds.Add(Control_PropertyUtilities.GetText(refId)); } } return(refIds); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(null); }