Beispiel #1
0
        static WebTable_SearchCriteriaItemList GetSearchList(CRF_WorkflowTabData data)
        {
            WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList();

            if (!String.IsNullOrEmpty(data.Action))
            {
                list.AddSearchItem(new WebTable_SearchCriteriaItem(0, data.Action, TableColumnContentType.Text));
            }
            if (!String.IsNullOrEmpty(data.DateTime))
            {
                list.AddSearchItem(new WebTable_SearchCriteriaItem(1, data.DateTime, TableColumnContentType.Text_Partial));
            }
            return(list);
        }
Beispiel #2
0
 public static bool VerifyWorkflowItem(CRF_WorkflowTabData data)
 {
     BP_CRF_Workflow_PagerUtilities.NavigateToFirstPage();
     do
     {
         WebTable_SearchCriteriaItemList list = GetSearchList(data);
         if (list.List.Count > 0)
         {
             IControl commentsRow = WebTableUtilities.Table_FindRow(DL_FormPage.CRF_WorkflowTable, list);
             if (commentsRow != null && commentsRow.WebElement != null)
             {
                 return(true);
             }
         }
     }while (BP_CRF_Workflow_PagerUtilities.NavigateToNextPage());
     return(false);
 }