public virtual DesignerDrogContainer SelectChildrenByCategoryOfDesignerDrogItem(DBGuid IDVal) { TraceCallEnterEvent.Raise(); try { DesignerDrogContainer result; DataSet entitySet = m_DataContext.ndihdCategoryOfDesignerDrogItemSelectBy(IDVal); result = new DesignerDrogContainer(entitySet.Tables[0]); TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
protected void SetListControl( Guid categoryId, PlaceHolder plMain, string color ) { IDesignerDrogService srvDesignerDrog = ServiceFactory.GetDesignerDrogService(); DesignerDrog filter = new DesignerDrog(new DBGuid()); filter.FilterOnIsActual = 1; filter.FilterOnIsactive = 1; filter.CategoryRef = categoryId; DataSet dt = srvDesignerDrog.DesignerDrogSelectFiltered( filter ); if(dt.Tables.Count > 0) { DesignerDrogContainer dsCont = new DesignerDrogContainer(dt.Tables[0]); IDesignerDrogCategoryService srvCategory = ServiceFactory.GetDesignerDrogCategoryService(); //DesignerDrogContainer dsCont = // srvCategory.SelectChildrenByCategoryOfDesignerDrogItem( categoryId ); Controls.ListControl listControl = (Controls.ListControl) LoadControl("Controls/ListControl.ascx"); listControl.DataSource = dsCont; listControl.Color = color; plMain.Controls.Add(listControl); } }
public virtual DesignerDrogContainer DesignerDrogSelectAll() { TraceCallEnterEvent.Raise(); try { DesignerDrogContainer result; DataSet entitySet = m_DataContext.ndihdDesignerDrogSelectAll(); result = new DesignerDrogContainer(entitySet.Tables[0]); TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
protected void SetListControl( DesignerDrogContainer container, PlaceHolder plMain ) { Controls.ListControl listControl = (Controls.ListControl)LoadControl( "Controls/ListControl.ascx" ); listControl.DataSource = container; listControl.Color = "Orange"; plMain.Controls.Add( listControl ); }
public DesignerDrogContainer DesignerDrogSelectFreeText( string SearchKey, DBInt IsActive, DBInt IsActual ) { // permission: everyone TraceCallEnterEvent.Raise(); try { DesignerDrogContainer result; DataSet entitySet = m_DataContext.ndihdDesignerDrogSelectFreeText( SearchKey, IsActive, IsActual); result = new DesignerDrogContainer( entitySet.Tables[0] ); TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish( ex ); TraceCallReturnEvent.Raise( false ); throw; } }