public ProjectGroup(IEnumerable <ProjectStatistics> projects) { Projects = new ProjectCollection(); projects.ToList().ForEach(x => Projects.Add(x)); int c02 = DocumentManager.CurrentDocument.City.C02; P20A = new YearwiseExpression(c02 + 6, 5, false); P20B = new YearwiseExpression(c02 + 6, 5, false); P20C = new YearwiseExpression(c02 + 6, 5, false); P20D = new YearwiseExpression(c02 + 6, 5, false); P20E = new YearwiseExpression(c02 + 6, 5, false); P20F = new YearwiseExpression(c02 + 6, 5, false); P22A = new YearwiseExpression(c02 + 6, 5, false); C8A = new YearwiseExpression(c02 + 6, 5, false); C8B = new YearwiseExpression(c02 + 6, 5, false); C8C_1 = new YearwiseExpression(c02 + 6, 5, false); C8D = new YearwiseExpression(c02 + 6, 5, false); C7C = new YearwiseExpression(c02 + 6, 5, false); C8E = new YearwiseExpression(c02 + 6, 5, false); this.SetExpressions(); }
public ProjectStatistics(string name, string location) { P02 = DocumentManager.CurrentDocument.City.C02; P1A = name; P1B = location; P1C = new List <int> { -1 }; P1D = -1; P1E = -1; P1F_1 = P02 + 1; P1F_2 = P02 + 5; Questionnaire = new Dictionary <string, int>(); P2A = new YearwiseExpression(P02 + 10, 10, true); P2B = new YearwiseExpression(P02 + 10, 10, true); P2C = new YearwiseExpression(P02 + 10, 10, true); P2D = new YearwiseExpression(P02 + 10, 10, true); P2E = new YearwiseExpression(P02 + 10, 10, true); P3A = new YearwiseExpression(P02 + 10, 10, true); P3B = new YearwiseExpression(P02 + 10, 10, true); P3C = new YearwiseExpression(P02 + 10, 10, true); P3D = new YearwiseExpression(P02 + 10, 10, true); P3E = new YearwiseExpression(P02 + 10, 10, true); P3F = new YearwiseExpression(P02 + 10, 10, false); //P30A = (P31A > 0) ? P31A : 0; //P30B = (P31B > 0) ? P31B : 0; //P31C = (P31C > 0) ? P31C : 0; //P31D = (P31D > 0) ? P31D : 0; P13A1 = string.Empty; P13A2 = string.Empty; P13A3 = string.Empty; P13B = string.Empty; P13C = string.Empty; P13D1 = string.Empty; P13D2 = string.Empty; P13D3 = string.Empty; P14A = new YearwiseExpression(P02 + 1, 5, true); P14B = new YearwiseExpression(P02 + 1, 5, true); P14C = new YearwiseExpression(P02 + 1, 5, true); P14D = new YearwiseExpression(P02 + 1, 5, true); P15A = new YearwiseExpression(P02 + 1, 5, true); P15B = new YearwiseExpression(P02 + 1, 5, true); P15C = new YearwiseExpression(P02 + 1, 5, true); P15D = new YearwiseExpression(P02 + 1, 5, true); //------------------V91数据来源?------------------------- P16A = new YearwiseExpression(P02 + 1, 5, true); P16B = new YearwiseExpression(P02 + 1, 5, true); //-------------------------------------------------------- P17A = new YearwiseExpression(P02 + 1, 5, true); P17B = new YearwiseExpression(P02 + 1, 5, true); P18_1A = new YearwiseExpression(P02, 4, false); P18_1B = new YearwiseExpression(P02, 4, false); P18_1C = new YearwiseExpression(P02, 4, false); P18_1D = new YearwiseExpression(P02, 4, false); P18_1E = new YearwiseExpression(P02, 4, false); P18_2A = new YearwiseExpression(P02, 4, false); P18_2B = new YearwiseExpression(P02, 4, false); P18_2C = new YearwiseExpression(P02, 4, false); P18A = new YearwiseExpression(P02, 4, false); P18B = new YearwiseExpression(P02, 4, false); P18C = new YearwiseExpression(P02, 4, false); P18D = new YearwiseExpression(P02, 4, false); P18E = new YearwiseExpression(P02, 4, false); P19_1A = new YearwiseExpression(P02, 4, false); P19_1B = new YearwiseExpression(P02, 4, false); P19_1C = new YearwiseExpression(P02, 4, false); P19_1D = new YearwiseExpression(P02, 4, false); P19_1E = new YearwiseExpression(P02, 4, false); P19_2A = new YearwiseExpression(P02, 4, false); P19_2B = new YearwiseExpression(P02, 4, false); P19_2C = new YearwiseExpression(P02, 4, false); P19A = new YearwiseExpression(P02, 4, false); P19B = new YearwiseExpression(P02, 4, false); P19C = new YearwiseExpression(P02, 4, false); P19D = new YearwiseExpression(P02, 4, false); P20A = new YearwiseExpression(P02, 4, false); P20B = new YearwiseExpression(P02, 4, false); P20C = new YearwiseExpression(P02, 4, false); P20D = new YearwiseExpression(P02, 4, false); P20E = new YearwiseExpression(P02, 4, false); P20F = new YearwiseExpression(P02, 4, false); P21A = new YearwiseExpression(P02, 4, false); P21B = new YearwiseExpression(P02, 4, false); P21C = new YearwiseExpression(P02, 4, false); P22A = new YearwiseExpression(P02, 4, false); P22B = new YearwiseExpression(P02, 4, false); P22C = new YearwiseExpression(P02, 4, false); this.SetExpressions(); this.SetQuestionnaire(); }
public CityStatistics() { Current = this; C01 = "Shanghai"; C02 = DateTime.Now.Year; C03 = 0; C04 = 0; C05 = DateTime.Now; Country = "China"; Currency = 6; Multiple = 2; Questionnaire = new Dictionary <string, int>(); Weight_Economic = 0.2; Weight_Environmental = 0.2; Weight_Feasibility = 0.2; Weight_Necessity = 0.2; Weight_PublicResponse = 0.2; C1A = new YearwiseExpression(C02, 4); C1B = new YearwiseExpression(C02, 4); C1C = new YearwiseExpression(C02, 4); C1D = new YearwiseExpression(C02, 4); C1E = new YearwiseExpression(C02, 4); C1G = new YearwiseExpression(C02, 3, false); C1H = new YearwiseExpression(C02, 3, false); C1I = new YearwiseExpression(C02, 3, false); C2A = new YearwiseExpression(C02, 4); C2B = new YearwiseExpression(C02, 4); C2C = new YearwiseExpression(C02, 4, false); // mod 20120206 C2E = new YearwiseExpression(C02, 3, false); ////// C2F = new YearwiseExpression(C02, 3, false); ////// C3A = new YearwiseExpression(C02, 4); C3B = new YearwiseExpression(C02, 4); C3C = new YearwiseExpression(C02, 4); C3D = new YearwiseExpression(C02, 4); C4A = new YearwiseExpression(C02 + 10, 14, true); C4B = new YearwiseExpression(C02 + 10, 14, true); C4C = new YearwiseExpression(C02 + 10, 14, true); C6A = new YearwiseExpression(C02, 4, false); C6B = new YearwiseExpression(C02, 4, false); C6C = new YearwiseExpression(C02, 4, false); C6D = new YearwiseExpression(C02, 4, false); C6E = new YearwiseExpression(C02, 4, false); C7A = new YearwiseExpression(C02, 4, false); C7B = new YearwiseExpression(C02, 4, false); C7C = new YearwiseExpression(C02, 4, false); C8A = new YearwiseExpression(C02, 4, false); C8B = new YearwiseExpression(C02, 4, false); C8C = new YearwiseExpression(C02, 4, false); C8D = new YearwiseExpression(C02, 4, false); C8E = new YearwiseExpression(C02, 4, false); C9A = new YearwiseExpression(C02 + 10, 14); C9B = new YearwiseExpression(C02 + 10, 14); this.SetExpressions(); this.SetQuestionnaire(); }