public static List<clsDocument> Documents(int propertyID)
 {
     clsCSVTable tbl = new clsCSVTable(clsDocument.strDocumentPath);
     List<int> docIDs = tbl.Matches(clsDocument.PropertyColumn, propertyID.ToString());
     List<clsDocument> docList = new List<clsDocument>();
     foreach (int id in docIDs)
     {
         docList.Add(new clsDocument(id));
     }
     return docList;
 }
Exemple #2
0
        public static int EntityID(string lenderName)
        {
            int         id  = -1;
            clsCSVTable tbl = new clsCSVTable(clsEntity.strEntityPath);

            System.Collections.Generic.List <int> matches = tbl.Matches(clsEntity.NameColumn, lenderName);
            if (matches.Count > 0)
            {
                id = matches[0];
            }
            return(id);
        }
Exemple #3
0
 private bool _LoadByAddress(string a, clsCSVTable tbl)
 {
     this.iLoanID = clsLoan.LoanID(a);
     if (this.iLoanID < 0)
     {
         this.init();
         return(false);
     }
     else
     {
         List <int> matches = tbl.Matches(clsLoanRecording.LoanIDColumn, this.iLoanID.ToString());
         if (matches.Count == 0)
         {
             this.init();
             return(false);
         }
         else
         {
             this._Load(matches[0], tbl);
         }
     }
     return(true);
 }
 public static List<int> DocumentIDs(int propertyID)
 {
     clsCSVTable tbl = new clsCSVTable(clsDocument.strDocumentPath);
     return tbl.Matches(clsDocument.PropertyColumn, propertyID.ToString());
 }