Ejemplo n.º 1
0
        public static bool SelectePatients(List <SiteManagementMigratePatientsData> patients)
        {
            bool isSuccess = false;

            try
            {
                foreach (SiteManagementMigratePatientsData patient in patients)
                {
                    WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList();
                    list.AddSearchItem(new WebTable_SearchCriteriaItem(0, patient.PatientID, TableColumnContentType.Text));
                    IControl patientRow   = WebTableUtilities.Table_FindRow(DL_MigratePatientsPage.PatientsTable, list, 0);
                    IControl checkboxCell = WebTableUtilities.GetCell(patientRow, 2);
                    IControl checkbox     = WebTableUtilities.GetInputControl(checkboxCell);
                    bool     found        = false;
                    String   propValue    = Control_PropertyUtilities.GetAttributeValue(checkbox, "checked", out found);
                    if (!found)
                    {
                        isSuccess = Control_ActionUtilities.Click(checkbox, String.Empty);
                    }
                }
            }
            catch (Exception e)
            {
                new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
            }
            return(isSuccess);
        }
Ejemplo n.º 2
0
 public static bool SelectSites(List <StudyArchive_SiteData> sites)
 {
     try
     {
         foreach (StudyArchive_SiteData site in sites)
         {
             WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList();
             list.AddSearchItem(new WebTable_SearchCriteriaItem(1, site.Site, TableColumnContentType.Text));
             IControl tableRow = WebTableUtilities.Table_FindRow(DL_ArchiveExportPage.SitesTable, list);
             if (!Control_PropertyUtilities.IsControlNull(tableRow))
             {
                 IControl tableCell = WebTableUtilities.GetCell(tableRow, 0);
                 IControl checkbox  = WebTableUtilities.GetInputControl(tableCell);
                 if (!Control_ActionUtilities.Click(checkbox, "Unable to click site " + site.Site + "checkbox in ArchiveExportPage"))
                 {
                     return(false);
                 }
             }
         }
         return(true);
     }
     catch (Exception e)
     {
     }
     return(false);
 }
 public static bool SelectForm(String formName)
 {
     try
     {
         WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList();
         list.AddSearchItem(new WebTable_SearchCriteriaItem(0, formName, TableColumnContentType.Text));
         IControl row      = WebTableUtilities.Table_FindRow(DL_SubmitCRFsPage.FormsTable, list, 1);
         IControl cell     = WebTableUtilities.GetCell(row, 1);
         IControl checkbox = WebTableUtilities.GetInputControl(cell);
         return(Control_ActionUtilities.Click(checkbox, String.Empty));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
        //DL_QueryRunWizardSitesPage
        public static bool SelectSite(string site)
        {
            try
            {
                WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList();
                list.AddSearchItem(new WebTable_SearchCriteriaItem(2, site, TableColumnContentType.Text));

                IControl siteRow      = WebTableUtilities.Table_FindRow(DL_QueryRunWizardSitesPage.SitesTable, list, 0);
                IControl checkboxCell = WebTableUtilities.GetCell(siteRow, 0);
                return(Control_ActionUtilities.Click(WebTableUtilities.GetInputControl(checkboxCell), String.Empty));
            }
            catch (Exception e)
            {
                new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
            }
            return(false);
        }
 public static bool ClickDomainsItemsEditLink(String process)
 {
     try
     {
         WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList();
         list.AddSearchItem(new WebTable_SearchCriteriaItem(1, process, TableColumnContentType.Text));
         IControl processRow  = WebTableUtilities.Table_FindRow(DS_Forms.DomainItemsListTable, list);
         IControl proecssCell = WebTableUtilities.GetCell(processRow, 14);
         IControl cellImage   = WebTableUtilities.GetInputControl(proecssCell);
         Control_ActionUtilities.Click(cellImage, "Unable to click Image" + process);
         return(true);
     }
     catch (Exception e)
     {
     }
     return(false);
 }
 public static bool ClickTargetStudyVersion(String studyName)
 {
     BrowserUtilities.DS_SwitchToConfirmationFrame();
     try
     {
         WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList();
         list.AddSearchItem(new WebTable_SearchCriteriaItem(1, studyName, TableColumnContentType.Text));
         IControl processRow    = WebTableUtilities.Table_FindRow(CompareStudyPopup.TargetStudyTable, list);
         IControl StudyNamecell = WebTableUtilities.GetCell(processRow, 0);
         IControl cellImage     = WebTableUtilities.GetInputControl(StudyNamecell);
         Control_ActionUtilities.Click(cellImage, "Unable to click the radio button of study" + studyName);
     }
     catch (Exception e)
     {
     }
     BrowserUtilities.SwitchToWindow();
     return(true);
 }
Ejemplo n.º 7
0
 public static bool ClickLabTestEditLink(String labTest)
 {
     try
     {
         Control_ActionUtilities.Click(DS_PagerControl.FirstPageImage, "Unable to click the link");
         do
         {
             WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList();
             list.AddSearchItem(new WebTable_SearchCriteriaItem(1, labTest, TableColumnContentType.Text));
             IControl processRow = WebTableUtilities.Table_FindRow(MapLabDictionary.LabTestsListTable, list);
             if (!Control_PropertyUtilities.IsControlNull(processRow))
             {
                 IControl proecssCell = WebTableUtilities.GetCell(processRow, 8);
                 IControl cellImage   = WebTableUtilities.GetInputControl(proecssCell);
                 return(Control_ActionUtilities.Click(cellImage, "Unable to click Image" + labTest));
             }
         }while (Control_ActionUtilities.Click(DS_PagerControl.NextPageImage, String.Empty));
     }
     catch (Exception e)
     {
     }
     return(false);
 }