public EDocumentContainer SelectChildrenByTypeOfEDocumentVisibleForVisitor(DBString IDVal) { EDocumentContainer all = SelectChildrenByTypeOfEDocument(IDVal); EDocumentContainer result = new EDocumentContainer(); foreach (EDocument item in all.All) { if (item.IsActive && item.VisibleForVisitor) { result.Add(item); } } return result; }
public virtual EDocumentContainer SelectChildrenByTypeOfEDocument(DBString IDVal) { TraceCallEnterEvent.Raise(); try { EDocumentContainer result; DataSet entitySet = m_DataContext.ndihdTypeOfEDocumentSelectBy(IDVal); result = new EDocumentContainer(entitySet.Tables[0]); TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
public virtual EDocumentContainer EDocumentSelectAll() { TraceCallEnterEvent.Raise(); try { EDocumentContainer result; DataSet entitySet = m_DataContext.ndihdEDocumentSelectAll(); result = new EDocumentContainer(entitySet.Tables[0]); TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }