/// <summary> /// GetListForClient /// Calls [usp_selectAll_SystemDocumentFooter_for_Client] /// </summary> public static List <SystemDocumentFooter> GetListForClient(System.Int32?clientNo) { List <SystemDocumentFooterDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.SystemDocumentFooter.GetListForClient(clientNo); if (lstDetails == null) { return(new List <SystemDocumentFooter>()); } else { List <SystemDocumentFooter> lst = new List <SystemDocumentFooter>(); foreach (SystemDocumentFooterDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.SystemDocumentFooter obj = new Rebound.GlobalTrader.BLL.SystemDocumentFooter(); obj.SystemDocumentFooterId = objDetails.SystemDocumentFooterId; obj.ClientNo = objDetails.ClientNo; obj.SystemDocumentNo = objDetails.SystemDocumentNo; obj.SystemDocumentName = objDetails.SystemDocumentName; obj.FooterText = objDetails.FooterText; obj.DLUP = objDetails.DLUP; obj.UpdatedBy = objDetails.UpdatedBy; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
private static SystemDocumentFooter PopulateFromDBDetailsObject(SystemDocumentFooterDetails obj) { SystemDocumentFooter objNew = new SystemDocumentFooter(); objNew.SystemDocumentFooterId = obj.SystemDocumentFooterId; objNew.ClientNo = obj.ClientNo; objNew.SystemDocumentNo = obj.SystemDocumentNo; objNew.FooterText = obj.FooterText; objNew.UpdatedBy = obj.UpdatedBy; objNew.DLUP = obj.DLUP; objNew.SystemDocumentName = obj.SystemDocumentName; return(objNew); }
/// <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> /// 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); } }