private DateTime FindClosingDate(int intProjectID)
        {
            //setting local variables
            DateTime datClosingDate = DateTime.Now;
            int      intNumberOfReocrds;

            TheFindDesignProjectUpdatesByProjectIDDataSet = TheDesignProjectUpdateClass.FindDesignProjectUpdatesByProjectID(intProjectID);

            intNumberOfReocrds = TheFindDesignProjectUpdatesByProjectIDDataSet.FindDesignProjectUpdatesByProjectID.Rows.Count - 1;

            datClosingDate = TheFindDesignProjectUpdatesByProjectIDDataSet.FindDesignProjectUpdatesByProjectID[intNumberOfReocrds].TransactionDate;

            return(datClosingDate);
        }
Exemplo n.º 2
0
        public FindDesignProjectUpdatesByProjectIDDataSet FindDesignProjectUpdatesByProjectID(int intProjectID)
        {
            try
            {
                aFindDesignProjectUpdatesByProjectIDDataSet      = new FindDesignProjectUpdatesByProjectIDDataSet();
                aFindDesignProjectUpdatesByProjectIDTableAdapter = new FindDesignProjectUpdatesByProjectIDDataSetTableAdapters.FindDesignProjectUpdatesByProjectIDTableAdapter();
                aFindDesignProjectUpdatesByProjectIDTableAdapter.Fill(aFindDesignProjectUpdatesByProjectIDDataSet.FindDesignProjectUpdatesByProjectID, intProjectID);
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Design Project Update Class // Find Design Project Updates By Project ID " + Ex.Message);
            }

            return(aFindDesignProjectUpdatesByProjectIDDataSet);
        }