Esempio n. 1
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. 2
0
        public override int GetHashCode()
        {
            int hashCode = 98921229;

            hashCode = hashCode * -1521134295 + DocEntry.GetHashCode();
            hashCode = hashCode * -1521134295 + DocNum.GetHashCode();
            hashCode = hashCode * -1521134295 + DocDate.GetHashCode();
            hashCode = hashCode * -1521134295 + DocDueDate.GetHashCode();
            hashCode = hashCode * -1521134295 + TaxDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DocStatus);

            hashCode = hashCode * -1521134295 + UpdateDate.GetHashCode();
            return(hashCode);
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hashCode = 1540013303;

            hashCode = hashCode * -1521134295 + DocEntry.GetHashCode();
            hashCode = hashCode * -1521134295 + DocNum.GetHashCode();
            hashCode = hashCode * -1521134295 + DocDate.GetHashCode();
            hashCode = hashCode * -1521134295 + DocDueDate.GetHashCode();
            hashCode = hashCode * -1521134295 + TaxDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DocStatus);

            hashCode = hashCode * -1521134295 + UpdateDate.GetHashCode();
            hashCode = hashCode * -1521134295 + PurchaseRequestId.GetHashCode();
            return(hashCode);
        }
Esempio n. 4
0
        /// <summary>
        /// Generates hash code
        /// </summary>
        /// <returns>hash code</returns>
        public override int GetHashCode()
        {
            var hashCode = 2126638501;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ReqName);

            hashCode = hashCode * -1521134295 + ReqType.GetHashCode();
            hashCode = hashCode * -1521134295 + DocEntry.GetHashCode();
            hashCode = hashCode * -1521134295 + DocNum.GetHashCode();
            hashCode = hashCode * -1521134295 + DocDate.GetHashCode();
            hashCode = hashCode * -1521134295 + DocDueDate.GetHashCode();
            hashCode = hashCode * -1521134295 + TaxDate.GetHashCode();
            hashCode = hashCode * -1521134295 + ReqDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <PRQ1> > .Default.GetHashCode(Items);

            return(hashCode);
        }
Esempio n. 5
0
 private void LoadRfq()
 {
     if ((IsLoaded || (FormMode == ObjectMode.StandBy)) && !IsSearchingMode)
     {
         return;
     }
     if (IsLoading)
     {
         return;
     }
     if (string.IsNullOrEmpty(DocNum))
     {
         return;
     }
     IsLoading = true;
     Client.GetRFSAsync(DocNum.Trim());
 }
Esempio n. 6
0
        public void AssignDocNumber()
        {
            if (DocNum > 0)
            {
                return;
            }
            DocTypeSeriesDoc doc = Session.FindObject <DocTypeSeriesDoc>(CriteriaOperator.Parse("DocTypeSeries.Company.Oid=? and DocTypeSeries.Oid=?", Company.Oid, DocTypeSeries.Oid));

            if (doc == null)
            {
                //doc = new DocTypeSeriesDoc(Session);
                //doc.DocTypeSeries = doc.Session.GetObjectByKey<DocTypeSeries>(DocTypeSeries.Oid);
                throw new Exception("Series next number not found");
            }
            DocNum = doc.NextDocNo;
            DocNo  = doc.DocTypeSeries.Prefix == null?DocNum.ToString() : doc.DocTypeSeries.Prefix.Trim() + DocNum.ToString();

            doc.NextDocNo++;
        }
Esempio n. 7
0
        /// <summary>
        /// Generates hash code
        /// </summary>
        /// <returns>hash code</returns>
        public override int GetHashCode()
        {
            var hashCode = -144526589;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CardCode);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CardName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(NumAtCard);

            hashCode = hashCode * -1521134295 + DocEntry.GetHashCode();
            hashCode = hashCode * -1521134295 + DocNum.GetHashCode();
            hashCode = hashCode * -1521134295 + DocDate.GetHashCode();
            hashCode = hashCode * -1521134295 + DocDueDate.GetHashCode();
            hashCode = hashCode * -1521134295 + TaxDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <RDR1> > .Default.GetHashCode(Items);

            return(hashCode);
        }