SOURCE

var oneMoney =
    "[{\"id\":1,\"company\":\"两湖街道办\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"2.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"1.5 \",\"leaderPiping\":\"-0.5 \",\"duchaReward\":\"0.5 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":2,\"company\":\"洧川镇\",\"topMoney\":\"1.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"-2.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.5 \",\"leaderPiping\":\"-1.0 \",\"duchaReward\":\"1.5 \",\"duchaPiping\":\"0.0 \"}," +
   "{\"id\":102,\"company\":\"中国邮政公司尉氏分公司\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"-0.2 \"}," +
    "{\"id\":103,\"company\":\"中心医院\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.3 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"-0.2 \"}," +
    "{\"id\":104,\"company\":\"中医院\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.3 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"0.0 \"}]"


var twoMoney = "[{\"id\":1,\"company\":\"两湖街道办\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"2.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"2.0 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":2,\"company\":\"洧川镇\",\"topMoney\":\"2.5 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"-1.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"-1.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"-0.5 \"}," +
    "{\"id\":3,\"company\":\"朱曲镇\",\"topMoney\":\"1.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"-0.5 \"}," +
    "{\"id\":48,\"company\":\"三师附小(南校区)\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":50,\"company\":\"实验中学\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.4 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":51,\"company\":\"税务大桥分局\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.4 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":52,\"company\":\"县直第二幼儿园\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":53,\"company\":\"县直第一幼儿园\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":54,\"company\":\"移动公司尉氏分公司\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}]"

var threeMoney = "[{\"id\":1,\"company\":\"两湖街道办\",\"topMoney\":\"1.5 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"2.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"2.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.5 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"1.0 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":2,\"company\":\"洧川镇\",\"topMoney\":\"1.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"-1.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"-0.5 \",\"duchaReward\":\"1.5 \",\"duchaPiping\":\"0.0 \"}," +
     "{\"id\":80,\"company\":\"税务大桥分局\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.4 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":81,\"company\":\"烟草公司尉氏分公司\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":82,\"company\":\"移动公司尉氏分公司\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":83,\"company\":\"中国人民银行尉氏支行\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":84,\"company\":\"中心医院\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":85,\"company\":\"中医院\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.4 \",\"duchaPiping\":\"0.0 \"}]"

var fourMoney = "[{\"id\":1,\"company\":\"两湖街道办\",\"topMoney\":\"5.0 \",\"socialReward\":\"2.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":0,\"webPiping\":0,\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.3 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":2,\"company\":\"洧川镇\",\"topMoney\":\"1.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"-1.0 \",\"webReward\":0,\"webPiping\":0,\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.5 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.5 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":3,\"company\":\"朱曲镇\",\"topMoney\":\"0.5 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":0,\"webPiping\":0,\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"-2.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":84,\"company\":\"卫建委\",\"topMoney\":\"0.9 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":0,\"webPiping\":0,\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.6 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":85,\"company\":\"西关小学\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":0,\"webPiping\":0,\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"-0.2 \"}," +
    "{\"id\":86,\"company\":\"县直第二幼儿园\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":0,\"webPiping\":0,\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"-0.2 \"}," +
    "{\"id\":87,\"company\":\"烟草公司尉氏分公司\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":0,\"webPiping\":0,\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":88,\"company\":\"中国人民银行尉氏支行\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":0,\"webPiping\":0,\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":89,\"company\":\"中医院\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":0,\"webPiping\":0,\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.4 \",\"duchaPiping\":\"0.0 \"}]"

var fiveMoney = "[{\"id\":1,\"company\":\"两湖街道办\",\"topMoney\":\"1.0 \",\"socialReward\":\"2.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"2.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"2.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"2.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.5 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"1.5 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":2,\"company\":\"洧川镇\",\"topMoney\":\"1.5 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"-2.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"2.0 \",\"fourPiping\":\"-2.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"-1.0 \"}," +
    "{\"id\":3,\"company\":\"朱曲镇\",\"topMoney\":\"1.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"1.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"-1.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"-0.5 \"}," +
    "{\"id\":4,\"company\":\"蔡庄镇\",\"topMoney\":\"1.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"1.0 \",\"fourPiping\":\"-1.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.5 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":93,\"company\":\"中国人民银行尉氏支行\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.4 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":94,\"company\":\"中国银行尉氏支行\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":95,\"company\":\"中医院\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.4 \",\"duchaPiping\":\"0.0 \"}]"

var sixMoney = "[{\"id\":1,\"company\":\"两湖街道办\",\"topMoney\":\"1.5 \",\"socialReward\":\"2.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"1.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"1.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"2.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"1.5 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":2,\"company\":\"洧川镇\",\"topMoney\":\"1.5 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"-1.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"-1.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"1.0 \",\"duchaPiping\":\"-0.5 \"}," +
    "{\"id\":3,\"company\":\"朱曲镇\",\"topMoney\":\"0.5 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"-1.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"-1.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.5 \",\"duchaPiping\":\"0.0 \"}," +
    "{\"id\":107,\"company\":\"中心医院\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.0 \",\"duchaPiping\":\"-0.2 \"}," +
    "{\"id\":108,\"company\":\"中医院\",\"topMoney\":\"0.0 \",\"socialReward\":\"0.0 \",\"socialPiping\":\"0.0 \",\"xinfangReward\":\"0.0 \",\"xinfangPiping\":\"0.0 \",\"webReward\":\"0.0 \",\"webPiping\":\"0.0 \",\"polutionReward\":\"0.0 \",\"pollutionPiping\":\"0.0 \",\"fourReward\":\"0.0 \",\"fourPiping\":\"0.0 \",\"leaderReward\":\"0.0 \",\"leaderPiping\":\"0.0 \",\"duchaReward\":\"0.2 \",\"duchaPiping\":\"0.0 \"}]"


ResultData = function (id, company, topMoney, mainReward, mainPiping, leaderReward, leaderpiping, duchaReward, duchapiping) {
    this.id = id,
        this.company = company,
        this.topMoney = topMoney,
        this.mainReward = mainReward,
        this.mainPiping = mainPiping,
        this.leaderReward = leaderReward,
        this.leaderpiping = leaderpiping,
        this.duchaReward = duchaReward,
        this.duchapiping = duchapiping
}

var resultDatas = new Array;
var itemId = 0
/***************首先将表彰表内容加入结果表中************** */
var oneMoneyDatas = JSON.parse(oneMoney)
for (var i = 0; i < oneMoneyDatas.length; i++) {
    itemId++
    var resultdata = {
        id: itemId,
        company: oneMoneyDatas[i].company,
        topMoney: oneMoneyDatas[i].topMoney,
        mainReward: parseFloat(oneMoneyDatas[i].socialReward) + parseFloat(oneMoneyDatas[i].xinfangReward) + parseFloat(oneMoneyDatas[i].polutionReward) + parseFloat(oneMoneyDatas[i].fourReward),
        mainPiping: parseFloat(oneMoneyDatas[i].socialPiping) + parseFloat(oneMoneyDatas[i].xinfangPiping) + parseFloat(oneMoneyDatas[i].webPiping) + parseFloat(oneMoneyDatas[i].pollutionPiping) + parseFloat(oneMoneyDatas[i].fourPiping),
        leaderReward: oneMoneyDatas[i].leaderReward,
        leaderpiping: oneMoneyDatas[i].leaderPiping,
        duchaReward: oneMoneyDatas[i].duchaReward,
        duchapiping: oneMoneyDatas[i].duchaPiping
    };
    resultDatas.push(resultdata)
}



/**********************将数据添加到一个数组中*********************** */
var allDatas = new Array(twoMoney, threeMoney, fourMoney, fiveMoney, sixMoney)

for (var i = 0; i < allDatas.length; i++) {
    var dataStr = allDatas[i];
    var dataArrays = JSON.parse(dataStr)
    for (var j = 0; j < resultDatas.length; j++) {
        var nowCompany = resultDatas[j].company
        for (var k = dataArrays.length - 1; k >= 0; k--) {
            if (dataArrays[k].company == nowCompany) {
                resultDatas[j].topMoney = parseFloat(resultDatas[j].topMoney)+parseFloat(dataArrays[k].topMoney)
                resultDatas[j].mainReward = parseFloat(resultDatas[j].mainReward) + parseFloat(dataArrays[j].safeReward) + parseFloat(dataArrays[k].socialReward) + parseFloat(dataArrays[k].xinfangReward) + parseFloat(dataArrays[k].webReward) + parseFloat(dataArrays[k].polutionReward) + parseFloat(dataArrays[k].fourReward);
                resultDatas[j].mainPiping = parseFloat(resultDatas[j].mainPiping)  + parseFloat(dataArrays[j].safePiping) + parseFloat(dataArrays[k].socialPiping) + parseFloat(dataArrays[k].xinfangPiping) + parseFloat(dataArrays[k].webPiping) + parseFloat(dataArrays[k].pollutionPiping) + parseFloat(dataArrays[k].fourPiping);
                resultDatas[j].leaderReward = parseFloat(resultDatas[j].leaderReward) + parseFloat(dataArrays[k].leaderReward);
                resultDatas[j].leaderpiping =  parseFloat(resultDatas[j].leaderpiping) + parseFloat(dataArrays[k].leaderPiping);
                resultDatas[j].duchaReward =   parseFloat(resultDatas[j].duchaReward) +  parseFloat(dataArrays[k].duchaReward);
                resultDatas[j].duchapiping =  parseFloat(resultDatas[j].duchapiping) + parseFloat(dataArrays[k].duchaPiping);
                dataArrays.splice(k, 1);
                break;
            }
        }
    }

    for (var j = 0; j < dataArrays.length; j++) {
        itemId++
        // document.write( dataArrays[j].company + "</br>")
        var resultdata = {
            id: itemId,
            company: dataArrays[j].company,
            topMoney: dataArrays[j].topMoney,
            mainReward: parseFloat(dataArrays[j].socialReward)+ parseFloat(dataArrays[j].safeReward) + parseFloat(dataArrays[j].xinfangReward) + parseFloat(dataArrays[j].webReward) + parseFloat(dataArrays[j].polutionReward) + parseFloat(dataArrays[j].fourReward),
            mainPiping:  parseFloat(dataArrays[j].socialPiping) + parseFloat(dataArrays[j].safePiping) + parseFloat(dataArrays[j].xinfangPiping) + parseFloat(dataArrays[j].webPiping) + parseFloat(dataArrays[j].pollutionPiping) + parseFloat(dataArrays[j].fourPiping),
            leaderReward: dataArrays[j].leaderReward,
            leaderpiping: dataArrays[j].leaderPiping,
            duchaReward: dataArrays[j].duchaReward,
            duchapiping: dataArrays[j].duchaPiping
        };
        resultDatas.push(resultdata)
    }
}


document.write( JSON.stringify(resultDatas))
console 命令行工具 X clear

                    
>
console