Esempio n. 1
0
        public void AddNewTask1()

        {
            TaskElement("Maintenance Spend - WTD").Clicks();

            RemoveTask.WaitUntil();

            RemoveTask.Clicks();

            AddBtn.Clicks();

            AddNewTask.Clicks();

            TaskName.WaitUntil();

            TaskName.EnterText("Test Task 1");

            TaskTypeParent("Office Tasks").Clicks();

            TaskTypeChild("Discipline").Clicks(); WaitforIt(Properties.VeryInactivePhase);

            Complexity.SelectIndex(1); WaitforIt(Properties.VeryInactivePhase);

            SaveTask.WaitUntil();

            SaveTask.Clicks();

            AddBtn.WaitUntil();
        }
Esempio n. 2
0
        public void BarrierAdd3()

        {
            ResourceUnplanned("Unplanned Task 1").WaitUntil(); ResourceUnplanned("Unplanned Task 1").Clicks();

            AddBarrier.Clicks();

            SelectBarrier("Lot Traffic").WaitUntil();

            SelectBarrier("Lot Traffic").Clicks();

            BarrierComment.EnterText("!2Qa");

            SaveBarrier.Clicks();

            AddBtn.WaitUntil();

            TaskElementUnplanned2("Idle").Clicks();

            AddBarrier.Clicks();

            SelectBarrier("Bus Not").Clicks();

            BarrierComment.EnterText("!2Qc");

            SaveBarrier.Clicks();

            AddBtn.WaitUntil();
        }
Esempio n. 3
0
        public void AddNewTask2()

        {
            WaitforIt(Properties.InactivePhase); AddBtn.WaitUntil();

            AddBtn.Clicks();

            AddNewTask.Clicks();

            TaskName.WaitUntil();

            TaskName.EnterText("Test Task 2");

            TaskTypeParent("Office Tasks").Clicks();

            TaskTypeChild("Discipline").Clicks(); WaitforIt(Properties.VeryInactivePhase);//WaitforIt(Properties.VeryInactivePhase)

            Complexity.SelectIndex(1); WaitforIt(Properties.VeryInactivePhase);

            SaveTask.WaitUntil();

            SaveTask.Clicks();

            AddBtn.WaitUntil();
        }
Esempio n. 4
0
        public void CheckTimeCalc3()

        {
            SaveButton("Unapprove").Clicks(); WaitforIt(Properties.InactivePhase);

            SaveButton("Save").Clicks(); SavedElement.WaitUntil();

            Assert.That(SavedElement, Is.Not.Null); Assert.That(PlanStatus("New").Displayed);

            LogOut.Clicks(); WaitforIt(Properties.InactivePhase); Login("automationuser1", "eMos123!");

            RePlanLog(); WaitforIt(Properties.InactivePhase);

            EnterVolume2("600");

            PlanApprove("automationuser1");

            Assert.Multiple((() =>
            {
                Assert.That(TotalPLanT1.Text.Equals("2"));

                Assert.That(TotalPlanV1.Text.Equals("1600"));
            }
                             ));

            AddBtn.WaitUntil();

            VolumeEntry(.005, "Wondez", 1).WaitUntil();

            VolumeEntry(.005, "Wondez", 1).EnterText("200");

            VolumeEntry(.005, "Arroyo", 2).WaitUntil();

            VolumeEntry(.005, "Arroyo", 2).EnterText("300");
        }
Esempio n. 5
0
        public void AddNewTask4()

        {
            AddBtn.WaitUntil(); AddBtn.Clicks();

            AddNewTask.Clicks();

            TaskName.WaitUntil();

            TaskName.EnterText("Unplanned Task 2");

            TaskTypeParent("Office Tasks").Clicks();

            TaskTypeChild("Discipline").Clicks(); WaitforIt(Properties.VeryInactivePhase);

            Complexity.SelectIndex(1); WaitforIt(Properties.InactivePhase);

            UCodeNewTask.WaitUntil();

            UCodeNewTask.Clicks(); WaitforIt(Properties.VeryInactivePhase);

            UCommentNewTask.EnterText("Unplanned2"); WaitforIt(Properties.InactivePhase);

            SaveTask.WaitUntil();

            SaveTask.Clicks(); WaitforIt(Properties.InactivePhase);

            AddBtn.WaitUntil();
        }
        public void NewRequest(string distName, TypeOfRequest typeOfRequest, string distOwner, string action, string userToAddOrRemove, string comments)
        {
            switch (typeOfRequest)
            {
            case TypeOfRequest.NewMailingList:
                NewMailingList.Click();
                break;

            case TypeOfRequest.ModifyExisting:
                ModifyExisting.Click();
                break;

            default:
                break;
            }

            DistNameInput.SendKeys(distName);
            DistOwnerList.SelectOption(distOwner).Click();
            AddBtn.Click();
            ActionToPerform.SelectOption(action).Click();
            UsersToAddOrRemove.SelectOption(userToAddOrRemove).Click();
            AddBtn2.Click();
            CommentsInput.SendKeys(comments);
            SubmitBtn.Click();
        }
        public void AddOrder(String ccode, String cname, String pname, String qty)
        {
            //Select Customer
            SearchCustomer.Click();
            Thread.Sleep(3000);
            SearchCode.SendKeys(ccode);
            SearchName.SendKeys(cname);
            RunSearch.Click();
            Thread.Sleep(3000);
            SelectCustomer.Click();
            Thread.Sleep(5000);

            //Select Product
            SearchProduct.Click();
            Thread.Sleep(3000);
            SearchPName.SendKeys(pname);
            RunPSearch.Click();
            Thread.Sleep(3000);
            SelectProduct.Click();
            Thread.Sleep(3000);

            //Finish the follow flow
            AddQty.SendKeys(qty);
            AddBtn.Click();
            Thread.Sleep(3000);
            CompleteBtn.Click();
        }
Esempio n. 8
0
        private void AmmunitionForm_Load(object sender, EventArgs e)
        {
            DataHandler inventoryData = new DataHandler();

            dgvFromDB.DataSource = inventoryData.populateAmmoDGV();
            AddBtn.Hide();
        }
Esempio n. 9
0
        internal void AddImmigrationRecord(string document, string docNumber, string issueDate = null, string expiryDate = null, string eligibilityStatus = null,
                                           string issuedBy = null, string eligibilityReviewDate = null, string comments = null)
        {
            _logger.Info("Entering AddImmigrationRecord().");
            AddBtn.Click();
            // Decide which radio button to select
            if ((document == "Passport") || (document == "passport"))
            {
                _driver.FindElement(By.Id("immigration_type_flag_1")).Click();
            }
            else
            {
                _driver.FindElement(By.Id("immigration_type_flag_2")).Click();
            }
            //Enter remaining data
            DocNum.SendKeys(docNumber);
            IssDate.Clear();
            IssDate.SendKeys(issueDate + Keys.Tab);
            ExDate.Clear();
            ExDate.SendKeys(expiryDate + Keys.Tab);
            ElStatus.SendKeys(eligibilityStatus);
            IssBy.SendKeys(issuedBy);
            ElRevDate.Clear();
            ElRevDate.SendKeys(eligibilityReviewDate + Keys.Tab);
            Comments.SendKeys(comments);
            //Click the Save button
            SaveBtn.Click();

            _logger.Info("Exiting AddImmigrationRecord().");
        }
Esempio n. 10
0
        private void buttonDash_Click(object sender, EventArgs e)
        {
            panel3.Controls.Clear();
            dashboard dash = new dashboard();

            panel3.Controls.Add(dash);
            AddBtn.Hide();
            labelTitle.Text = "Overblik";
        }
Esempio n. 11
0
        private void buttonSporgsmalAdmin_Click(object sender, EventArgs e)
        {
            panel3.Controls.Clear();
            questions q = new questions();

            panel3.Controls.Add(q);
            AddBtn.Show();
            labelTitle.Text = "Spørgsmål";
        }
Esempio n. 12
0
        private void buttonFakta_Click(object sender, EventArgs e)
        {
            panel3.Controls.Clear();
            fakta fakta = new fakta();

            panel3.Controls.Add(fakta);
            AddBtn.Hide();
            labelTitle.Text = "Fakta";
        }
Esempio n. 13
0
        private void dgvFromDB_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            // Populate type lbl
            typeLbl.Text = "Ammunition Type";
            // show button
            AddBtn.Show();
            //Declare object
            DataGridViewRow row = dgvFromDB.Rows[e.RowIndex];

            AmmunitionText.Text = row.Cells[1].Value.ToString();
        }
Esempio n. 14
0
 public MainPage()
 {
     InitializeComponent();
     dataGridView1.Hide();
     dataGridView2.Hide();
     AddBtn.Hide();
     DeleteBtn.Hide();
     ChangeBtn.Hide();
     label1.Hide();
     StatisticBox.Hide();
     ShowBtn.Hide();
 }
Esempio n. 15
0
 private void HideBtn_Click(object sender, EventArgs e)
 {
     refresh_method();
     dataGridView1.Hide();
     dataGridView2.Hide();
     AddBtn.Hide();
     DeleteBtn.Hide();
     ChangeBtn.Hide();
     label1.Hide();
     StatisticBox.Hide();
     ShowBtn.Hide();
 }
Esempio n. 16
0
        public void AddFavoriteTask2()

        {
            AddBtn.WaitUntil(); AddBtn.Clicks();

            AddFavTask.Clicks(); WaitforIt(Properties.InactivePhase);

            SelectTask(11).Clicks();

            FavComment.EnterText("Favorite Task 2");

            FavAdded.Clicks();
        }
Esempio n. 17
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            // Populate type lbl
            name.Text   = "Inventory Name";
            Weight.Text = "Weight";
            // show button
            AddBtn.Show();
            //Declare object
            DataGridViewRow row = dgvFromDB.Rows[e.RowIndex];

            nameLbl.Text   = row.Cells[1].Value.ToString();
            weightLbl.Text = row.Cells[1].Value.ToString();
        }
Esempio n. 18
0
        public Form1()
        {
            //SPLASH

            //END SPLASH

            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.None;
            Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 15, 15));
            dashboard dash = new dashboard();

            panel3.Controls.Add(dash);
            AddBtn.Hide();
        }
        public void AddEmergencyContact(string name, string relationship, string homePhone = null, string mobilePhone = null, string workPhone = null)
        {
            _logger.Info($"AddEmergencyContact called with: Name: {name}, Relationship: {relationship}, HomePhone: {homePhone}, MobilePhone: {mobilePhone} and WorkPhone: {workPhone}");
            AddBtn.Click();

            _driver.FindElement(By.Id("emgcontacts_name")).SendKeys(name);
            _driver.FindElement(By.Id("emgcontacts_relationship")).SendKeys(relationship);
            // One of these elements is required
            _driver.FindElement(By.Id("emgcontacts_homePhone")).SendKeys(homePhone);
            _driver.FindElement(By.Id("emgcontacts_mobilePhone")).SendKeys(mobilePhone);
            _driver.FindElement(By.Id("emgcontacts_workPhone")).SendKeys(workPhone);

            _logger.Info("Clicking Save Button.");
            SaveBtn.Click(); // Save contact
        }
Esempio n. 20
0
        private void DeleteBtn_Click(object sender, EventArgs e)
        {
            if (SyncList.SelectedItem == null)
            {
                LogLine("Nothing selected to delete.");
                return;
            }

            SyncList.Items.Remove(SyncList.SelectedItem);

            if (SyncList.SelectedItem == null)
            {
                AddBtn.Focus();                                // avoid default focus on "Sync All" button
            }
        }
        private void InitUIList()
        {
            appLog.Info("InitUIList...");

            needAddList    = new ObservableCollection <SalaryInfo>();
            needUpdateList = new ObservableCollection <SalaryInfo>();
            //添加雇员选择列表
            appLog.Info("Add EmployeeList...");
            AlgorithmClass.InitSalarySelectionList(dataManager.AllSalaryList, dataManager.AllEmployeeList, dataManager.AllDepartmentList, AlgorithmClass.GetWorkStatusList());
            AllSalaryList = AlgorithmClass.DeepClone <ObservableCollection <SalaryInfo> >(dataManager.AllSalaryList);
            lcv           = new ListCollectionView(AllSalaryList);
            lcv.GroupDescriptions.Add(new PropertyGroupDescription("DepartmentName"));
            lcv.Filter = Fitter_TextChanged;
            lcv.Refresh();
            //刷新当前页面上的所有收支
            // FlushCurrentViewAllCommission();
            AddBtn.SetBinding(Button.IsEnabledProperty, new Binding("IsEmpty")
            {
                Source = lcv
            });
            ClearBtn.SetBinding(Button.IsEnabledProperty, new Binding("IsEmpty")
            {
                Source = lcv, Converter = new BoolConverter()
            });
            SaveBtn.SetBinding(Button.IsEnabledProperty, new Binding("IsEmpty")
            {
                Source = lcv, Converter = new BoolConverter()
            });
            RestoreBtn.SetBinding(Button.IsEnabledProperty, new Binding("IsEmpty")
            {
                Source = lcv, Converter = new BoolConverter()
            });
            ViewBSBtn.SetBinding(Button.IsEnabledProperty, new Binding("IsEmpty")
            {
                Source = lcv, Converter = new BoolConverter()
            });
            PrintBtn.SetBinding(Button.IsEnabledProperty, new Binding("IsEmpty")
            {
                Source = lcv, Converter = new BoolConverter()
            });
            FlushAllBtn.SetBinding(Button.IsEnabledProperty, new Binding("IsEmpty")
            {
                Source = lcv, Converter = new BoolConverter()
            });

            SalaryDataGrid.ItemsSource = lcv;
        }
        public void CompleteInvestigator()
        {
            waitForPageUntilElementIsVisible(By.XPath("//a[@data-qtip='Last Page']"), 40);
            LastPageBtn.Clicks();
            waitForPageUntilElementIsVisible(By.XPath("//a[contains(@onclick,'icms_cisu_investigation') and contains(text(),'2019-222496')]"), 40);
            CISUInvestigator.Clicks();
            waitForPageUntilElementIsVisible(By.XPath("//span[contains(text(),'Acquire')]"), 40);
            AcquireTask.Clicks();
            waitForPageUntilElementIsVisible(By.XPath("//span[contains(text(), 'Assessment/Designation')]"), 40);
            AssessmentTab.Clicks();
            waitForPageUntilElementIsVisible(By.Id("xcp_button-2094-btnIconEl"), 40);
            AddAllegationBtn.Clicks();
            string popupHeading = AllegationText.GetElementText();

            Assert.AreEqual("Add Allegation", popupHeading);
            waitForPageUntilElementIsVisible(By.Id("xcp_dropdown_list-2392-trigger-picker"), 40);
            ComplainantTrigger.Click();
            waitForPageUntilElementIsVisible(By.XPath("//div[@data-recordindex='0']"), 40);
            string Complainant = ComplainingPartyDD.GetElementText();

            ComplainingPartyDB.EnterText(Complainant);
            waitForPageUntilElementIsVisible(By.Id("xcp_dropdown_list-2395-trigger-picker"), 40);
            InvolvedTrigger.Click();
            waitForPageUntilElementIsVisible(By.XPath("//div[@data-recordindex='0' and @data-boundview='xcp_dropdown_list-2395-picker']"), 40);
            string Involved = InvolvePartyDD.GetElementText();

            InvolvePartyDB.EnterText(Involved);
            AddBtn.Clicks();
            waitForPageUntilElementIsVisible(By.Id("xcp_dropdown_list-2425-inputEl"), 40);
            SelectChargeInput.EnterText("Discrimination");
            waitForPageUntilElementIsVisible(By.Id("xcp_dropdown_list-2427-inputEl"), 40);
            SelectDesignationInput.EnterText("A");
            waitForPageUntilElementIsVisible(By.Id("xcp_dropdown_list-2426-inputEl"), 40);
            SelectProtectedInput.EnterText("Race");
            AllegationUpdateBtn.Clicks();
            waitForPageUntilElementIsVisible(By.XPath("//span[contains(text(),'Finish')]"), 40);
            AllegationFinishBtn.Clicks();
            waitForPageUntilElementIsVisible(By.Id("xcp_button-2473-btnIconEl"), 40);
            SaveFinalDesignation.Clicks();

            waitForPageUntilElementIsVisible(By.Id("xcp_dropdown_list-3691-inputEl"), 40);
            NextStepInvestigator.EnterText("Panel Member: Review And Approval");
            waitForPageUntilElementIsVisible(By.XPath("//span[contains(text(), 'Complete')]"), 40);
            CompleteStepBtn.Clicks();
        }
Esempio n. 23
0
        public void AddExTask2()

        {
            AddBtn.WaitUntil();

            AddBtn.Clicks();

            AddExistingTask.Clicks(); WaitforIt(Properties.VeryInactivePhase); //Thread.Sleep(9000);

            SelectTask(3).Clicks();

            TaskComment.EnterText("Existing Task 2");

            AddExTask.WaitUntil();

            AddExTask.Clicks();

            AddBtn.WaitUntil();
        }
        internal void AddDependent(string name, string relationship, string other = null, string dob = null)
        {
            _logger.Info("Entering AddDependent()");

            AddBtn.Click();

            DependentName.SendKeys(name);
            DependentRelationshipType.SendKeys(relationship);
            if ((relationship == "Other") || (relationship == "other"))
            {
                DependentRelationship.SendKeys(other);
            }
            DOB.Clear();
            //DOB is not a required field
            DOB.SendKeys(dob + Keys.Tab);

            SaveBtn.Click();
            _logger.Info("Exiting AddDependent()");
        }
Esempio n. 25
0
        public void AddFavoriteTask3()

        {
            AddBtn.WaitUntil();

            AddBtn.Clicks();

            AddFavTask.Clicks(); WaitforIt(Properties.InactivePhase);

            SelectTask(5).WaitUntil();

            SelectTask(5).Clicks();

            UCodeFavTask.Clicks();

            UCommentFavTask.EnterText("!2Q");

            UFavTaskSave.Clicks();
        }
Esempio n. 26
0
        public void BarrierRemove()

        {
            TaskElementUnplanned("Breakdowns").WaitUntil(); TaskElementUnplanned("Breakdowns").Clicks();

            RemoveTask.Clicks();

            BarrierElement("!23Q").WaitUntil();

            BarrierElement("!23Q").Clicks();

            RemoveBarrier.Clicks();

            SaveButton("Save").WaitUntil();

            SaveButton("Save").Clicks();

            AddBtn.WaitUntil();
        }
Esempio n. 27
0
        public void AddExTask4()

        {
            AddBtn.WaitUntil(); AddBtn.Clicks();

            AddExistingTask.Clicks(); WaitforIt(Properties.VeryInactivePhase);

            SelectTask(7).Clicks();

            UnplanCode.Clicks();

            TaskComment.EnterText("Existing Task 3");

            AddExTask.WaitUntil();

            AddExTask.Clicks();

            AddBtn.WaitUntil();
        }
        //todo если ошибки тут закоментировать

        //[Action ("AddBtn:")]
        //partial void AddBtn (AppKit.NSButton sender);

        //+++


        void ReleaseDesignerOutlets()
        {
            if (AddBtn != null)
            {
                AddBtn.Dispose();
                AddBtn = null;
            }

            if (ClearBtn != null)
            {
                ClearBtn.Dispose();
                ClearBtn = null;
            }

            if (MyStackView != null)
            {
                MyStackView.Dispose();
                MyStackView = null;
            }
        }
Esempio n. 29
0
        public void CopyPlan()
        {
            WaitforIt(Properties.InactivePhase); TaskResourceView.WaitUntil();

            TaskResourceView.SelectDropdown("Task");

            VolumeTimePerformance.WaitUntil();

            VolumeTimePerformance.SelectDropdown("Volume");

            VolumeTimePerformance.WaitUntil();

            SelectDateDropdown.SelectIndex(3);

            AddBtn.Clicks();

            ExistingPlan.WaitUntil();

            ExistingPlan.Clicks();

            CopyPlanClick.WaitUntil();

            CopyPlanClick.Clicks();

            AddBtn.WaitUntil();

            Assert.Multiple((() =>
            {
                Assert.That(TotalPLanT1.Text.Equals("2"));

                Assert.That(TotalPlanV1.Text.Equals("1600"));

                Assert.That(SavedElement, Is.Not.Null);
            }

                             ));
        }