示例#1
0
        protected override void Init(ProductDef productDef)
        {
            base.Init(productDef);
            SubProductDef subUHE = productDef.GetSubProductDefByIdentify("LMCZ");

            if (subUHE != null)
            {
                if (!string.IsNullOrEmpty(subUHE.ToString()))
                {
                    _subProducts.Add(new SubProductBinaryLMCZ(subUHE));
                }
            }
            subUHE = productDef.GetSubProductDefByIdentify("0IMG");
            if (subUHE != null)
            {
                if (!string.IsNullOrEmpty(subUHE.ToString()))
                {
                    _subProducts.Add(new SubProductIMGUHE(subUHE));
                }
            }
            subUHE = productDef.GetSubProductDefByIdentify("STAT");
            if (subUHE != null)
            {
                if (!string.IsNullOrEmpty(subUHE.ToString()))
                {
                    _subProducts.Add(new SubProductSTATUHE(subUHE));
                }
            }

            subUHE = productDef.GetSubProductDefByIdentify("HFII");
            if (subUHE != null)
            {
                if (!string.IsNullOrEmpty(subUHE.ToString()))
                {
                    _subProducts.Add(new SubProductHFIILST(subUHE));
                }
            }
            subUHE = productDef.GetSubProductDefByIdentify("UHPI");
            if (subUHE != null)
            {
                if (!string.IsNullOrEmpty(subUHE.ToString()))
                {
                    _subProducts.Add(new SubProductUHPILST(subUHE));
                }
            }

            subUHE = productDef.GetSubProductDefByIdentify("0CLM");
            if (subUHE != null)
            {
                SubProductBinaryCLM binaryClm = new SubProductBinaryCLM(subUHE);
                _subProducts.Add(binaryClm);
            }
        }
示例#2
0
        protected override void Init(ProductDef productDef)
        {
            base.Init(productDef);
            SubProductDef subLST = productDef.GetSubProductDefByIdentify("DBLV");

            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductBinaryLST(subLST));
                }
            }
            subLST = productDef.GetSubProductDefByIdentify("0IMG");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductIMGLST(subLST));
                }
            }
            subLST = productDef.GetSubProductDefByIdentify("CYCA");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductCYCALST(subLST));
                }
            }
            subLST = productDef.GetSubProductDefByIdentify("STAT");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductSTATLST(subLST));
                }
            }
            subLST = productDef.GetSubProductDefByIdentify("0MIN");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductMINLST(subLST));
                }
            }
            subLST = productDef.GetSubProductDefByIdentify("0MAX");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductMAXLST(subLST));
                }
            }
            subLST = productDef.GetSubProductDefByIdentify("0AVG");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductAVGLST(subLST));
                }
            }
            subLST = productDef.GetSubProductDefByIdentify("ANMI");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductANMILST(subLST));
                }
            }

            subLST = productDef.GetSubProductDefByIdentify("CHAZ");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductCHAZLST(subLST));
                }
            }

            subLST = productDef.GetSubProductDefByIdentify("HFII");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductHFIILST(subLST));
                }
            }

            subLST = productDef.GetSubProductDefByIdentify("0CLM");
            if (subLST != null)
            {
                SubProductBinaryCLM binaryClm = new SubProductBinaryCLM(subLST);
                _subProducts.Add(binaryClm);
            }
            subLST = productDef.GetSubProductDefByIdentify("LMCZ");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductBinaryLMCZ(subLST));
                }
            }

            subLST = productDef.GetSubProductDefByIdentify("LTFR");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductLTFRLST(subLST));
                }
            }
            subLST = productDef.GetSubProductDefByIdentify("LTLR");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductLTLRLST(subLST));
                }
            }

            subLST = productDef.GetSubProductDefByIdentify("THAN");
            if (subLST != null)
            {
                if (!string.IsNullOrEmpty(subLST.ToString()))
                {
                    _subProducts.Add(new SubProductTHANLST(subLST));
                }
            }
        }
示例#3
0
        protected override void Init(ProductDef productDef)
        {
            base.Init(productDef);

            _identify = productDef.Identify;
            _name     = productDef.Name;

            SubProductDef subDef = productDef.GetSubProductDefByIdentify("DBLV");

            if (subDef != null)
            {
                SubProductBinaryFld subProduct = new SubProductBinaryFld(subDef);
                _subProducts.Add(subProduct);
            }

            subDef = productDef.GetSubProductDefByIdentify("0CLM");
            if (subDef != null)
            {
                SubProductBinaryCLM binaryClm = new SubProductBinaryCLM(subDef);
                _subProducts.Add(binaryClm);
            }
            subDef = productDef.GetSubProductDefByIdentify("0MIX");
            if (subDef != null)
            {
                SubProductRasterFldMix rasterFldMix = new SubProductRasterFldMix(subDef);
                _subProducts.Add(rasterFldMix);
            }
            subDef = productDef.GetSubProductDefByIdentify("FLOD");
            if (subDef != null)
            {
                SubProductRasterFldFlood rasterFldFlood = new SubProductRasterFldFlood(subDef);
                _subProducts.Add(rasterFldFlood);
            }
            subDef = productDef.GetSubProductDefByIdentify("FLDC");
            if (subDef != null)
            {
                SubProductRasterFldFloodCount rasterFldFldc = new SubProductRasterFldFloodCount(subDef);
                _subProducts.Add(rasterFldFldc);
            }
            subDef = productDef.GetSubProductDefByIdentify("BHFX");
            if (subDef != null)
            {
                SubProductRasterFldMix rasterFldBhfx = new SubProductRasterFldMix(subDef);
                _subProducts.Add(rasterFldBhfx);
            }
            subDef = productDef.GetSubProductDefByIdentify("STAT");
            if (subDef != null)
            {
                SubProductAnalysisFldStat rasterFldStat = new SubProductAnalysisFldStat(subDef);
                _subProducts.Add(rasterFldStat);
            }
            subDef = productDef.GetSubProductDefByIdentify("FWAS");
            if (subDef != null)
            {
                SubProductAnalysisFlodAreaStat subProduct = new SubProductAnalysisFlodAreaStat(subDef);
                _subProducts.Add(subProduct);
            }
            subDef = productDef.GetSubProductDefByIdentify("FLLS");
            if (subDef != null)
            {
                SubProductAnalysisFldFlls rasterFldFlls = new SubProductAnalysisFldFlls(subDef);
                _subProducts.Add(rasterFldFlls);
            }
            subDef = productDef.GetSubProductDefByIdentify("0IMG");
            if (subDef != null)
            {
                SubProductLayoutFldImg rasterFldImg = new SubProductLayoutFldImg(subDef);
                _subProducts.Add(rasterFldImg);
            }
            subDef = productDef.GetSubProductDefByIdentify("FREQ");
            if (subDef != null)
            {
                SubProductAnalysisFldFreq rasterFldMtfd = new SubProductAnalysisFldFreq(subDef);
                _subProducts.Add(rasterFldMtfd);
            }
            subDef = productDef.GetSubProductDefByIdentify("CYCI");
            if (subDef != null)
            {
                SubProductCYCIFLD rasterFldMtfd = new SubProductCYCIFLD(subDef);
                _subProducts.Add(rasterFldMtfd);
            }
            subDef = productDef.GetSubProductDefByIdentify("TFRE");
            if (subDef != null)
            {
                SubProductTFREFLD rasterFldTFRE = new SubProductTFREFLD(subDef);
                _subProducts.Add(rasterFldTFRE);
            }
            subDef = productDef.GetSubProductDefByIdentify("TFRQ");
            if (subDef != null)
            {
                SubProductTFRQFLD rasterFldTFRQ = new SubProductTFRQFLD(subDef);
                _subProducts.Add(rasterFldTFRQ);
            }
            subDef = productDef.GetSubProductDefByIdentify("TFRI");
            if (subDef != null)
            {
                SubProductTFRIFLD rasterFldTFRI = new SubProductTFRIFLD(subDef);
                _subProducts.Add(rasterFldTFRI);
            }
            subDef = productDef.GetSubProductDefByIdentify("TFQI");
            if (subDef != null)
            {
                SubProductTFQIFLD rasterFldTFQI = new SubProductTFQIFLD(subDef);
                _subProducts.Add(rasterFldTFQI);
            }
            subDef = productDef.GetSubProductDefByIdentify("EDGE");
            if (subDef != null)
            {
                SubProductEDGEFLD rasterFldEDGE = new SubProductEDGEFLD(subDef);
                _subProducts.Add(rasterFldEDGE);
            }

            subDef = productDef.GetSubProductDefByIdentify("TSTA");
            if (subDef != null)
            {
                SubProductAnalysisFldTStat rasterFldTSTA = new SubProductAnalysisFldTStat(subDef);
                _subProducts.Add(rasterFldTSTA);
            }

            subDef = productDef.GetSubProductDefByIdentify("FLDS");
            if (subDef != null)
            {
                SubProductRasterFldFloodLastdays binaryFLDS = new SubProductRasterFldFloodLastdays(subDef);
                _subProducts.Add(binaryFLDS);
            }
        }