Exemplo n.º 1
0
        public static void SelectInvoiceFromResults()
        {
            var window = GetSearchResultsWindowProperties();
            var cell   = TableActions.SelectCellFromTable(window, CSearchControls.SearchResultGrid,
                                                          "CustomerAdvancedSummaryDomain row 1", "Ellis Invoice Number");

            MouseActions.DoubleClick(cell);
        }
Exemplo n.º 2
0
        public static void SelectJobOrderFromResults()
        {
            var window = GetSearchResultsWindowProperties();
            var cell   = TableActions.SelectCellFromTable(window, CSearchControls.SearchResultGrid,
                                                          "DispatchJobOrderDetailSummary row 1", "Job Order#");

            Globals.JobOrderNo = cell.Value;
            cell.SetFocus();
            MouseActions.DoubleClick(cell);
        }
        public static void SelectWorkerFromResultsWindow()
        {
            var window = GetSearchResultsWindowProperties();
            var row    = TableActions.SelectRowFromTable(window, SearchControls.SearchResultGrid,
                                                         "WorkerSearchResultDomain row 1");

            var cell = row.Container.SearchFor <WinCell>(new { Value = Globals.WorkerName });

            MouseActions.DoubleClick(cell);
        }
Exemplo n.º 4
0
        public static bool SelectCustomer()
        {
            var customerPopUp = GetCustomerSearchPopUpProperties();

            if (customerPopUp.Exists)
            {
                var cell = TableActions.SelectCellFromTable(customerPopUp, CustomerSearchConstants.CustomersGrid,
                                                            "CustomerDomain row 1", "Customer Name - Number");
                cell.SetFocus();
                MouseActions.DoubleClick(cell);
                return(true);
            }
            return(false);
        }
Exemplo n.º 5
0
 public static bool SelectFirstCustomerNameFromResults()
 {
     try
     {
         var searchResults = GetSearchResultsWindowProperties();
         var cell          = TableActions.SelectCellFromTable(searchResults, CSearchControls.SearchResultGrid,
                                                              "CustomerAdvancedSummaryDomain row 1", "Customer Name");
         Globals.CustomerName = cell.Value;
         MouseActions.DoubleClick(cell);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Exemplo n.º 6
0
        public static void EnterDatainCustomerSearch(DataRow data)
        {
            var customerPopUp = GetCustomerSearchPopUpProperties();

            if (customerPopUp.Exists)
            {
                var custmerNumber = Actions.GetWindowChild(customerPopUp, CustomerSearchConstants.CustomerNumber);
                if (!string.IsNullOrEmpty(data.ItemArray[3].ToString()))
                {
                    Actions.SetText(custmerNumber, data.ItemArray[3].ToString());
                }

                MouseActions.ClickButton(customerPopUp, CustomerSearchConstants.SearchBtn);
                var cell = TableActions.SelectCellFromTable(customerPopUp, CustomerSearchConstants.CustomersGrid,
                                                            "CustomerDomain row 1", "Customer Name - Number");
                cell.SetFocus();
                MouseActions.DoubleClick(cell);
            }
        }
        public static void HandleExistingFEDCustomer()
        {
            try
            {
                var window = GetExistingCustomerFoundWindowProperties();

                if (window.Exists)
                {
                    //MouseActions.ClickButton(window, CCustomerConstants.CreateCustomer);
                    var cell = TableActions.SelectCellFromTable(window, "_gridCustomers", "CustomerSummaryDomain row 1",
                                                                "Name");
                    Globals.CustomerName = cell.Value;
                    MouseActions.DoubleClick(cell);
                }
            }

            catch
            {
                //Suppress any exception here
            }
        }