/// <summary> /// GetPrintEmailLog /// Calls [usp_select_PrintEmailLog] /// </summary> public static List <CommunicationLog> GetPrintEmailLog(System.Int32?documentNo, System.String secionName) { List <CommunicationLogDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.CommunicationLog.GetPrintEmailLog(documentNo, secionName); if (lstDetails == null) { return(new List <CommunicationLog>()); } else { List <CommunicationLog> lst = new List <CommunicationLog>(); foreach (CommunicationLogDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.CommunicationLog obj = new Rebound.GlobalTrader.BLL.CommunicationLog(); obj.CommunicationLogId = objDetails.CommunicationLogId; obj.SystemDocumentNo = objDetails.SystemDocumentNo; obj.LogDetail = objDetails.LogDetail; obj.SectionName = objDetails.SectionName; obj.ActionName = objDetails.ActionName; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.UpdatedByName = objDetails.UpdatedByName; obj.SubSectionName = objDetails.SubSectionName; //obj.DocumentNumber = objDetails.DocumentNumber; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// Get /// Calls [usp_select_CommunicationLog] /// </summary> public static CommunicationLog Get(System.Int32?communicationLogId) { Rebound.GlobalTrader.DAL.CommunicationLogDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.CommunicationLog.Get(communicationLogId); if (objDetails == null) { return(null); } else { CommunicationLog obj = new CommunicationLog(); obj.CommunicationLogId = objDetails.CommunicationLogId; obj.Notes = objDetails.Notes; obj.ContactNo = objDetails.ContactNo; obj.CompanyNo = objDetails.CompanyNo; obj.Frozen = objDetails.Frozen; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.LogDate = objDetails.LogDate; obj.KeyNo = objDetails.KeyNo; obj.CommunicationLogTypeNo = objDetails.CommunicationLogTypeNo; obj.SystemDocumentNo = objDetails.SystemDocumentNo; obj.DocumentNumber = objDetails.DocumentNumber; obj.CommunicationLogTypeDescription = objDetails.CommunicationLogTypeDescription; obj.ContactName = objDetails.ContactName; obj.EnteredBy = objDetails.EnteredBy; objDetails = null; return(obj); } }
/// <summary> /// DataListNugget /// Calls [usp_datalistnugget_CommunicationLog] /// </summary> public static List <CommunicationLog> DataListNugget(System.Int32?clientId, System.Int32?companyNo, System.Int32?orderBy, System.Int32?sortDir, System.Int32?pageIndex, System.Int32?pageSize, System.Int32?loginId, System.String details, System.Int32?contactNo, System.Int32?communicationLogTypeNo, System.String logCallType, System.DateTime?logDateLo, System.DateTime?logDateHi) { List <CommunicationLogDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.CommunicationLog.DataListNugget(clientId, companyNo, orderBy, sortDir, pageIndex, pageSize, loginId, details, contactNo, communicationLogTypeNo, logCallType, logDateLo, logDateHi); if (lstDetails == null) { return(new List <CommunicationLog>()); } else { List <CommunicationLog> lst = new List <CommunicationLog>(); foreach (CommunicationLogDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.CommunicationLog obj = new Rebound.GlobalTrader.BLL.CommunicationLog(); obj.CommunicationLogId = objDetails.CommunicationLogId; obj.LogDate = objDetails.LogDate; obj.Notes = objDetails.Notes; obj.ContactNo = objDetails.ContactNo; obj.ContactName = objDetails.ContactName; obj.CompanyNo = objDetails.CompanyNo; obj.CompanyName = objDetails.CompanyName; obj.Frozen = objDetails.Frozen; obj.KeyNo = objDetails.KeyNo; obj.SystemDocumentNo = objDetails.SystemDocumentNo; obj.DocumentNumber = objDetails.DocumentNumber; obj.CommunicationLogTypeNo = objDetails.CommunicationLogTypeNo; obj.CommunicationLogTypeDescription = objDetails.CommunicationLogTypeDescription; obj.UpdatedBy = objDetails.UpdatedBy; obj.EnteredBy = objDetails.EnteredBy; obj.RowNum = objDetails.RowNum; obj.RowCnt = objDetails.RowCnt; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
private static CommunicationLog PopulateFromDBDetailsObject(CommunicationLogDetails obj) { CommunicationLog objNew = new CommunicationLog(); objNew.CommunicationLogId = obj.CommunicationLogId; objNew.Notes = obj.Notes; objNew.ContactNo = obj.ContactNo; objNew.CompanyNo = obj.CompanyNo; objNew.Frozen = obj.Frozen; objNew.UpdatedBy = obj.UpdatedBy; objNew.DLUP = obj.DLUP; objNew.LogDate = obj.LogDate; objNew.KeyNo = obj.KeyNo; objNew.CommunicationLogTypeNo = obj.CommunicationLogTypeNo; objNew.SystemDocumentNo = obj.SystemDocumentNo; objNew.DocumentNumber = obj.DocumentNumber; objNew.ContactName = obj.ContactName; objNew.CompanyName = obj.CompanyName; objNew.CommunicationLogTypeDescription = obj.CommunicationLogTypeDescription; objNew.EnteredBy = obj.EnteredBy; objNew.RowNum = obj.RowNum; objNew.RowCnt = obj.RowCnt; return(objNew); }
/// <summary> /// GetListForContact /// Calls [usp_selectAll_CommunicationLog_for_Contact] /// </summary> public static List <CommunicationLog> GetListForContact(System.Int32?contactId) { List <CommunicationLogDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.CommunicationLog.GetListForContact(contactId); if (lstDetails == null) { return(new List <CommunicationLog>()); } else { List <CommunicationLog> lst = new List <CommunicationLog>(); foreach (CommunicationLogDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.CommunicationLog obj = new Rebound.GlobalTrader.BLL.CommunicationLog(); obj.CommunicationLogId = objDetails.CommunicationLogId; obj.Notes = objDetails.Notes; obj.ContactNo = objDetails.ContactNo; obj.CompanyNo = objDetails.CompanyNo; obj.Frozen = objDetails.Frozen; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.LogDate = objDetails.LogDate; obj.KeyNo = objDetails.KeyNo; obj.CommunicationLogTypeNo = objDetails.CommunicationLogTypeNo; obj.SystemDocumentNo = objDetails.SystemDocumentNo; obj.DocumentNumber = objDetails.DocumentNumber; obj.CommunicationLogTypeDescription = objDetails.CommunicationLogTypeDescription; obj.ContactName = objDetails.ContactName; obj.EnteredBy = objDetails.EnteredBy; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }