private void BuildingAppendixB4_NeedDataSource(object sender, EventArgs e) { var buildingIDObj = ReportParameters["buildingID"].Value; if (buildingIDObj != null) { int buildingID = Convert.ToInt32(buildingIDObj); if (buildingID > 0) { IBuildingRepos buildingRepos = new BuildingRepos(); List <BuildingAppendix> buildingAppendixList = buildingRepos.GetBuildingAppendix(buildingID, "B4").ToList(); var ba0 = buildingAppendixList.Where(x => x.BA_Name == "分体式机组").ToList(); table0.DataSource = ba0; } } }
private void BuildingAppendixB3_NeedDataSource(object sender, EventArgs e) { var buildingIDObj = ReportParameters["buildingID"].Value; if (buildingIDObj != null) { int buildingID = Convert.ToInt32(buildingIDObj); if (buildingID > 0) { IBuildingRepos buildingRepos = new BuildingRepos(); List <BuildingAppendix> buildingAppendixList = buildingRepos.GetBuildingAppendix(buildingID, "B3").ToList(); var ba0 = buildingAppendixList.Where(x => x.BA_Name == "ÎüÊÕʽ»ú×é").ToList(); var ba1 = buildingAppendixList.Where(x => x.BA_Name == "ÀäÈ´Ëþ").ToList(); var ba2 = buildingAppendixList.Where(x => x.BA_Name == "ÀäÎÂˮѻ·±Ã").ToList(); var ba3 = buildingAppendixList.Where(x => x.BA_Name == "ÀäÈ´Ë®±Ã").ToList(); table0.DataSource = ba0; table1.DataSource = ba1; table2.DataSource = ba2; table3.DataSource = ba3; } } }
private void BuildingAppendixA2_NeedDataSource(object sender, EventArgs e) { var buildingIDObj = ReportParameters["buildingID"].Value; if (buildingIDObj != null) { int buildingID = Convert.ToInt32(buildingIDObj); if (buildingID > 0) { IBuildingRepos buildingRepos = new BuildingRepos(); List <BuildingAppendix> buildingAppendixList = buildingRepos.GetBuildingAppendix(buildingID, "A2").ToList(); var ba0 = buildingAppendixList.Where(x => x.BA_Name == "新风机组").ToList(); var ba1 = buildingAppendixList.Where(x => x.BA_Name == "风机盘管").ToList(); var ba2 = buildingAppendixList.Where(x => x.BA_Name == "新风机").ToList(); var ba3 = buildingAppendixList.Where(x => x.BA_Name == "回风机").ToList(); var ba4 = buildingAppendixList.Where(x => x.BA_Name == "排风机").ToList(); table0.DataSource = ba0; table1.DataSource = ba1; table2.DataSource = ba2; table3.DataSource = ba3; table4.DataSource = ba4; } } }