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().");
        }
示例#2
0
        /// <summary>
        /// Adds a single exception for this recurring component
        /// </summary>
        /// <param name="recur">The date/time when this component will NOT recur.</param>
        virtual public void AddSingleException(iCalDateTime dt)
        {
            RecurrenceDates exdate = new RecurrenceDates();

            exdate.Name = "EXDATE";
            exdate.Add(dt);

            exdate.Parent = this;

            if (ExDate != null)
            {
                RecurrenceDates[] dates = new RecurrenceDates[ExDate.Length + 1];
                ExDate.CopyTo(dates, 0);
                dates[dates.Length - 1] = exdate;
                ExDate = dates;
            }
            else
            {
                ExDate = new RecurrenceDates[] { exdate }
            };
        }
        /// <summary>
        /// Adds a single exception for this recurring component
        /// </summary>
        /// <param name="recur">The date/time when this component will NOT recur.</param>
        public void AddSingleException(Date_Time dt)
        {
            RDate exdate = new RDate();

            exdate.Name = "EXDATE";
            exdate.Add(dt);

            exdate.Parent = this;

            if (ExDate != null)
            {
                RDate[] dates = new RDate[ExDate.Length + 1];
                ExDate.CopyTo(dates, 0);
                dates[dates.Length - 1] = exdate;
                ExDate = dates;
            }
            else
            {
                ExDate = new RDate[] { exdate }
            };
        }
示例#4
0
 /// <summary>
 /// Function: string representation of the action.
 /// </summary>
 public override string ToString()
 {
     return(Security + " " + ExDate.ToShortDateString() + " (" + Type + ") " + Amount);
 }
示例#5
0
 /// <summary>
 /// this is the format we are using to display divs to users
 /// i.e. 01/01/09(0.0045)
 /// </summary>
 /// <returns></returns>
 public virtual string DisplayDividendString()
 {
     return(string.Format("{0}({1})", ExDate.ToString("dd/MM/yy"), Amount.ToString("0.000000")));
 }