Exemplo n.º 1
0
        //Audit Trail methods

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

            if (PhotoClubContactLinksRec != null && !PhotoClubContactLinksRec.IsReadOnly)
            {
            }
        }
Exemplo n.º 2
0
        //Evaluates Initialize when->Updating formulas specified at the data access layer
        protected virtual void PhotoClubContactLinksRecord_UpdatingRecord(Object sender, System.ComponentModel.CancelEventArgs e)
        {
            //Apply Initialize->Updating formula only if validation is successful.
            PhotoClubContactLinksRecord PhotoClubContactLinksRec = (PhotoClubContactLinksRecord)sender;

            Validate_Updating();
            if (PhotoClubContactLinksRec != null && !PhotoClubContactLinksRec.IsReadOnly)
            {
            }
        }
Exemplo n.º 3
0
        //Evaluates Initialize when->Inserting formulas specified at the data access layer
        protected virtual void PhotoClubContactLinksRecord_InsertingRecord(Object sender, System.ComponentModel.CancelEventArgs e)
        {
            //Apply Initialize->Inserting formula only if validation is successful.
            PhotoClubContactLinksRecord PhotoClubContactLinksRec = (PhotoClubContactLinksRecord)sender;

            Validate_Inserting();
            if (PhotoClubContactLinksRec != null && !PhotoClubContactLinksRec.IsReadOnly)
            {
                PhotoClubContactLinksRec.Parse(EvaluateFormula("false", this, null), PhotoClubContactLinksTable.RecordDeleted);
            }
        }
        /// <summary>
        /// This is a shared function that can be used to get a PhotoClubContactLinksRecord record using a where and order by clause.
        /// </summary>
        public static PhotoClubContactLinksRecord GetRecord(BaseFilter join, string where, OrderBy orderBy)
        {
            SqlFilter whereFilter = null;

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

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

            PhotoClubContactLinksRecord rec = null;

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

            return(rec);
        }