} // loadSources /// <summary> /// Get Sources /// </summary> /// <returns>sources</returns> public MReportSource[] GetSources() { if (LINETYPE_SegmentValue.Equals(GetLineType())) { return(_sources); } return(new MReportSource[0]); } // getSources
/// <summary> /// Before Save /// </summary> /// <param name="newRecord">new</param> /// <returns>true</returns> protected override Boolean BeforeSave(Boolean newRecord) { if (LINETYPE_SegmentValue.Equals(GetLineType())) { if (GetCalculationType() != null) { SetCalculationType(null); } if (GetOper_1_ID() != 0) { SetOper_1_ID(0); } if (GetOper_2_ID() != 0) { SetOper_2_ID(0); } } return(true); } // beforeSave
/// <summary> /// Line Type Segment Value /// </summary> /// <returns> true if segment value</returns> public Boolean IsLineTypeSegmentValue() { return(LINETYPE_SegmentValue.Equals(GetLineType())); }