//Audit Trail methods

        //Evaluates Initialize when->Reading record formulas specified at the data access layer
        protected virtual void View_FieldTripSelectionsRecord_ReadRecord(Object sender, System.EventArgs e)
        {
            //Apply Initialize->Reading record formula only if validation is successful.
            View_FieldTripSelectionsRecord View_FieldTripSelectionsRec = (View_FieldTripSelectionsRecord)sender;

            if (View_FieldTripSelectionsRec != null && !View_FieldTripSelectionsRec.IsReadOnly)
            {
            }
        }
        //Evaluates Initialize when->Updating formulas specified at the data access layer
        protected virtual void View_FieldTripSelectionsRecord_UpdatingRecord(Object sender, System.ComponentModel.CancelEventArgs e)
        {
            //Apply Initialize->Updating formula only if validation is successful.
            View_FieldTripSelectionsRecord View_FieldTripSelectionsRec = (View_FieldTripSelectionsRecord)sender;

            Validate_Updating();
            if (View_FieldTripSelectionsRec != null && !View_FieldTripSelectionsRec.IsReadOnly)
            {
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// This is a shared function that can be used to get a View_FieldTripSelectionsRecord record using a where and order by clause.
        /// </summary>
        public static View_FieldTripSelectionsRecord GetRecord(BaseFilter join, string where, OrderBy orderBy)
        {
            SqlFilter whereFilter = null;

            if (where != null && where.Trim() != "")
            {
                whereFilter = new SqlFilter(where);
            }

            ArrayList recList = View_FieldTripSelectionsView.Instance.GetRecordList(join, whereFilter, null, orderBy, BaseTable.MIN_PAGE_NUMBER, BaseTable.MIN_BATCH_SIZE);

            View_FieldTripSelectionsRecord rec = null;

            if (recList.Count > 0)
            {
                rec = (View_FieldTripSelectionsRecord)recList[0];
            }

            return(rec);
        }