//Audit Trail methods //Evaluates Initialize when->Reading record formulas specified at the data access layer protected virtual void OtherCostsRecord_ReadRecord(Object sender, System.EventArgs e) { //Apply Initialize->Reading record formula only if validation is successful. OtherCostsRecord OtherCostsRec = (OtherCostsRecord)sender; if (OtherCostsRec != null && !OtherCostsRec.IsReadOnly) { } }
//Evaluates Initialize when->Updating formulas specified at the data access layer protected virtual void OtherCostsRecord_UpdatingRecord(Object sender, System.ComponentModel.CancelEventArgs e) { //Apply Initialize->Updating formula only if validation is successful. OtherCostsRecord OtherCostsRec = (OtherCostsRecord)sender; Validate_Updating(); if (OtherCostsRec != null && !OtherCostsRec.IsReadOnly) { } }
/// <summary> /// This is a shared function that can be used to get a OtherCostsRecord record using a where and order by clause. /// </summary> public static OtherCostsRecord GetRecord(BaseFilter join, string where, OrderBy orderBy) { SqlFilter whereFilter = null; if (where != null && where.Trim() != "") { whereFilter = new SqlFilter(where); } ArrayList recList = OtherCostsTable.Instance.GetRecordList(join, whereFilter, null, orderBy, BaseTable.MIN_PAGE_NUMBER, BaseTable.MIN_BATCH_SIZE); OtherCostsRecord rec = null; if (recList.Count > 0) { rec = (OtherCostsRecord)recList[0]; } return(rec); }