Ejemplo n.º 1
0
        public TierIIData getDuplicateMaterialsReport()
        {
            TierIIData Data = new TierIIData();
            CswNbtMetaDataObjectClass ReportOC = _CswNbtResources.MetaData.getObjectClass(CswEnumNbtObjectClass.ReportClass);
            CswNbtSearch FindReport            = new CswNbtSearch(_CswNbtResources);

            FindReport.addFilter(ReportOC, false);
            FindReport.SearchType = CswEnumSqlLikeMode.Exact;
            FindReport.SearchTerm = "Duplicate Chemicals";
            ICswNbtTree SearchResults = FindReport.Results();

            if (SearchResults.getChildNodeCount() > 0)
            {
                SearchResults.goToNthChild(0);
                CswNbtObjClassReport ReportNode = SearchResults.getNodeForCurrentPosition();
                Data.DuplicateMaterialsReportId = ReportNode.NodeId.ToString();
                SearchResults.goToParentNode();
            }
            return(Data);
        }
Ejemplo n.º 2
0
 public CswNbtActTierIIReporting(CswNbtResources CswNbtResources)
 {
     _CswNbtResources = CswNbtResources;
     Data             = new TierIIData();
     _setDefaultRangeCodes();
 }