/// <summary> /// GetForClientAndDocument /// Calls [usp_select_SystemDocumentFooter_for_Client_and_Document] /// </summary> public static SystemDocumentFooter GetForClientAndDocument(System.Int32?clientNo, System.Int32?systemDocumentNo) { Rebound.GlobalTrader.DAL.SystemDocumentFooterDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.SystemDocumentFooter.GetForClientAndDocument(clientNo, systemDocumentNo); if (objDetails == null) { return(null); } else { SystemDocumentFooter obj = new SystemDocumentFooter(); obj.FooterText = objDetails.FooterText; objDetails = null; return(obj); } }
/// <summary> /// Returns a new SystemDocumentFooterDetails instance filled with the DataReader's current record data /// </summary> protected virtual SystemDocumentFooterDetails GetSystemDocumentFooterFromReader(DbDataReader reader) { SystemDocumentFooterDetails systemDocumentFooter = new SystemDocumentFooterDetails(); if (reader.HasRows) { systemDocumentFooter.SystemDocumentFooterId = GetReaderValue_Int32(reader, "SystemDocumentFooterId", 0); //From: [Table] systemDocumentFooter.ClientNo = GetReaderValue_Int32(reader, "ClientNo", 0); //From: [Table] systemDocumentFooter.SystemDocumentNo = GetReaderValue_Int32(reader, "SystemDocumentNo", 0); //From: [Table] systemDocumentFooter.FooterText = GetReaderValue_String(reader, "FooterText", ""); //From: [Table] systemDocumentFooter.UpdatedBy = GetReaderValue_NullableInt32(reader, "UpdatedBy", null); //From: [Table] systemDocumentFooter.DLUP = GetReaderValue_NullableDateTime(reader, "DLUP", null); //From: [Table] systemDocumentFooter.SystemDocumentName = GetReaderValue_String(reader, "SystemDocumentName", ""); //From: [usp_selectAll_SystemDocumentFooter_for_Client] } return(systemDocumentFooter); }
/// <summary> /// Get /// Calls [usp_select_SystemDocumentFooter] /// </summary> public static SystemDocumentFooter Get(System.Int32?systemDocumentFooterNo) { Rebound.GlobalTrader.DAL.SystemDocumentFooterDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.SystemDocumentFooter.Get(systemDocumentFooterNo); if (objDetails == null) { return(null); } else { SystemDocumentFooter obj = new SystemDocumentFooter(); obj.SystemDocumentFooterId = objDetails.SystemDocumentFooterId; obj.ClientNo = objDetails.ClientNo; obj.SystemDocumentNo = objDetails.SystemDocumentNo; obj.FooterText = objDetails.FooterText; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; objDetails = null; return(obj); } }