예제 #1
0
        static int GetNumberOfQueriesFromRowsCount(String dcfSubTabNamme)
        {
            int rowCount = 0;

            try
            {
                BP_CRF_DCF_PagerUtilites.NavigateToFirstPage();
                do
                {
                    ReadOnlyCollection <IControl> rows = null;
                    rowCount += WebTableUtilities.GetRowCount(DL_FormPage.ActiveDCFsSubTabTable, out rows);
                }while (BP_CRF_DCF_PagerUtilites.NavigateToNextPage());
            }
            catch (Exception e)
            {
                new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
            }
            return(rowCount);
        }
예제 #2
0
        static IControl GetRowFromActiveDCFsSubTab(CRF_DCFTabData data)
        {
            try
            {
                BP_CRF_DCF_PagerUtilites.NavigateToFirstPage();
                do
                {
                    WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList();
                    if (!String.IsNullOrEmpty(data.DCFID))
                    {
                        list.AddSearchItem(new WebTable_SearchCriteriaItem(1, data.DCFID, TableColumnContentType.Text));
                    }
                    if (!String.IsNullOrEmpty(data.Status))
                    {
                        list.AddSearchItem(new WebTable_SearchCriteriaItem(2, data.Status, TableColumnContentType.Text));
                    }
                    if (!String.IsNullOrEmpty(data.QueryDescription))
                    {
                        list.AddSearchItem(new WebTable_SearchCriteriaItem(3, data.QueryDescription, TableColumnContentType.Text));
                    }
                    if (!String.IsNullOrEmpty(data.DateTime))
                    {
                        list.AddSearchItem(new WebTable_SearchCriteriaItem(3, data.DateTime, TableColumnContentType.Text_Partial));
                    }

                    IControl webTable = DL_FormPage.ActiveDCFsSubTabTable;
                    IControl tableRow = WebTableUtilities.Table_FindRow(webTable, list);
                    if (!Control_PropertyUtilities.IsControlNull(tableRow))
                    {
                        return(tableRow);
                    }
                }while (BP_CRF_DCF_PagerUtilites.NavigateToNextPage());
            }
            catch (Exception e)
            {
                new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
            }
            return(null);
        }