103 std::vector< std::unique_ptr< Wt::WStandardItem > > columns;
105 auto accountName = std::make_unique< Wt::WStandardItem >( _accountItem-> name() );
106 auto retVal = accountName.get();
107 accountName-> setToolTip( _accountItem-> guid() );
110 if( _accountItem-> hasColor() )
112 auto accountColor = _accountItem-> color();
113 std::cout << __FILE__ <<
":" << __LINE__ <<
" " << accountColor << std::endl;
125 if( col++ < m_columnCount )
128 columns.push_back( std::move( accountName ) );
131 if( col++ < m_columnCount )
134 columns.push_back( std::make_unique< Wt::WStandardItem >( _accountItem-> code () ) );
137 if( col++ < m_columnCount )
140 columns.push_back( std::make_unique< Wt::WStandardItem >( _accountItem-> description () ) );
143 if( col++ < m_columnCount )
146 columns.push_back( std::make_unique< Wt::WStandardItem >() );
149 if( col++ < m_columnCount )
152 columns.push_back( std::make_unique< Wt::WStandardItem >() );
155 if( col++ < m_columnCount )
158 columns.push_back( std::make_unique< Wt::WStandardItem >() );
161 if( col++ < m_columnCount )
164 columns.push_back( std::make_unique< Wt::WStandardItem >() );
167 _item-> appendRow( std::move( columns ) );
179 .where(
"parent_guid = ?" )
180 .bind( _parentAccount-> guid() )
187 for(
auto account : childAccounts )
192 auto ti = _append( _treeItem, account );