public static bool SetQuickExportData(QuickExportData data)
 {
     try
     {
         if (!String.IsNullOrEmpty(data.Site))
         {
             Control_ActionUtilities.Dropdown_SelectItem(DL_QuickExportPage.SiteDropdown, data.Site, String.Empty);
         }
         if (!String.IsNullOrEmpty(data.Patient))
         {
             Control_ActionUtilities.Dropdown_SelectItem(DL_QuickExportPage.PatientDropdown, data.Patient, String.Empty);
         }
         if (!String.IsNullOrEmpty(data.Event))
         {
             Control_ActionUtilities.Dropdown_SelectItem(DL_QuickExportPage.EventDropdown, data.Event, String.Empty);
         }
         if (!String.IsNullOrEmpty(data.Form))
         {
             Control_ActionUtilities.Dropdown_SelectItem(DL_QuickExportPage.FormsDropdown, data.Form, String.Empty);
         }
         if (!String.IsNullOrEmpty(data.Format))
         {
             Control_ActionUtilities.Dropdown_SelectItem(DL_QuickExportPage.FormatDropdown, data.Format, String.Empty);
         }
         return(true);
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
예제 #2
0
        public void WhenISelectExportDetailsInQuickExportPage(Table table)
        {
            QuickExportData data = table.CreateInstance <QuickExportData>();

            if (!BP_QuickExportUtilities.SetQuickExportData(data))
            {
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }