public void Populate(int facilityId, string pollutantCode) { PollutantCode = pollutantCode; //set parentcode LOV_POLLUTANT pollutant = ListOfValues.GetPollutant(pollutantCode); ParentCode = null; if (pollutant != null && pollutant.ParentID != null) { LOV_POLLUTANT pollutantGroup = ListOfValues.GetPollutant(pollutant.ParentID.Value); ParentCode = pollutantGroup != null ? pollutantGroup.Code : null; } List <TimeSeriesClasses.ConfidentialityPollutant> data = PollutantTransferTrend.GetConfidentialTimeSeries(facilityId, pollutantCode); bool hasConfidentialInformation = data.Any(); this.divConfidentialityInformation.Visible = hasConfidentialInformation; this.divNoConfidentialityInformation.Visible = !hasConfidentialInformation; this.lvConfidentiality.Visible = true; this.lvConfidentiality.DataSource = data; this.lvConfidentiality.DataBind(); }
private void showContent(PollutantTransferTimeSeriesFilter filter) { this.lvConfidentiality.DataSource = PollutantTransferTrend.GetConfidentialTimeSeries(filter); this.lvConfidentiality.DataBind(); }