You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aggregation-platform/app/readPlacedivision.js

82 lines
66 KiB

/*
read a object from jiangsu province , such as nanjing with some information
读取江苏的某个地区的信息以及系统信息
*/
var system_arr = [{"sys_name":"部门预算","sys_id":239},{"sys_name":"非税收入收缴管理系统","sys_id":0},{"sys_name":"预算执行系统","sys_id":1},{"sys_name":"资产管理系统","sys_id":2},{"sys_name":"用友财政综合管理信息系统","sys_id":3},{"sys_name":"用友A++","sys_id":4},{"sys_name":"浦口财政一体化","sys_id":5},{"sys_name":"栖霞区财政业务信息管理系统","sys_id":6},{"sys_name":"一体化系统","sys_id":7},{"sys_name":"财政管理一体化系统","sys_id":8},{"sys_name":"滨江开发区财政分局","sys_id":9},{"sys_name":"江宁经济技术开发区财政分局","sys_id":10},{"sys_name":"江宁科学园财政分局","sys_id":11},{"sys_name":"财政一体化系统","sys_id":12},{"sys_name":"A++财政一体化平台","sys_id":13},{"sys_name":"非税系统","sys_id":14},{"sys_name":"一体化预算执行系统","sys_id":15},{"sys_name":"一体化","sys_id":16},{"sys_name":"国库集中支付管理信息系统","sys_id":17},{"sys_name":"国库集中支付","sys_id":18},{"sys_name":"财政专户核算及非税系统","sys_id":19},{"sys_name":"集中支付系统","sys_id":20},{"sys_name":"财政专户核算系统","sys_id":21},{"sys_name":"非税收缴系统","sys_id":22},{"sys_name":"财政一体化平台","sys_id":23},{"sys_name":"富深预算执行","sys_id":24},{"sys_name":"用友非税及票据","sys_id":25},{"sys_name":"用友预算执行","sys_id":26},{"sys_name":"江苏省财政预算执行系统","sys_id":27},{"sys_name":"用友通用软件","sys_id":28},{"sys_name":"联友软件/通用财务","sys_id":29},{"sys_name":"用友GRPG-U8R10财政管理软件","sys_id":30},{"sys_name":"用友GPP-R10财政管理软件","sys_id":31},{"sys_name":"富深协通财政一体化管理信息系统","sys_id":32},{"sys_name":"财务统一核算系统","sys_id":33},{"sys_name":"公共财政管理软件","sys_id":34},{"sys_name":"A++财政一体化信息平台","sys_id":35},{"sys_name":"新中大公共财务管理软件","sys_id":36},{"sys_name":"富深财政一体化管理系统","sys_id":37},{"sys_name":"新中大公共财政管理系统","sys_id":38},{"sys_name":"富深协通财政一体化业务管理系统软件","sys_id":39},{"sys_name":"新中大公共财政管理软件Gsoft","sys_id":40},{"sys_name":"财政一体化业务系统","sys_id":41},{"sys_name":"财政一体化软件","sys_id":42},{"sys_name":"非税收入系统","sys_id":43},{"sys_name":"总预算系统","sys_id":44},{"sys_name":"国库集中支付系统","sys_id":45},{"sys_name":"用款计划系统","sys_id":46},{"sys_name":"指标管理系统","sys_id":47},{"sys_name":"财政综合业务管理平台","sys_id":48},{"sys_name":"财政一体化管理信息系统","sys_id":49},{"sys_name":"工资统发","sys_id":50},{"sys_name":"国有资产","sys_id":51},{"sys_name":"乡镇非税收入","sys_id":52},{"sys_name":"乡镇集中支付","sys_id":53},{"sys_name":"非税征缴系统","sys_id":54},{"sys_name":"预算编制与执行系统","sys_id":55},{"sys_name":"预算管理综合业务平台","sys_id":56},{"sys_name":"u8管理软件","sys_id":57},{"sys_name":"财政指标管理系统","sys_id":58},{"sys_name":"用友GRP-R9财务管理软件","sys_id":59},{"sys_name":"用友GRP-U8财政管理软件","sys_id":60},{"sys_name":"账务处理系统","sys_id":61},{"sys_name":"R9i财政管理软件","sys_id":62},{"sys_name":"u8财政管理软件","sys_id":63},{"sys_name":"相城区财政综合管理信息系统","sys_id":64},{"sys_name":"财政非税综合管理系统","sys_id":65},{"sys_name":"财政综合管理平台","sys_id":66},{"sys_name":"吴江区财政一体化","sys_id":67},{"sys_name":"用友R9","sys_id":68},{"sys_name":"财政公共应用服务平台","sys_id":69},{"sys_name":"金蝶K/3创新管理平台","sys_id":70},{"sys_name":"账务数据系统","sys_id":71},{"sys_name":"公共财政服务平台","sys_id":72},{"sys_name":"会计核算系统","sys_id":73},{"sys_name":"项目库","sys_id":74},{"sys_name":"财政总预算(外)专户管理系统","sys_id":75},{"sys_name":"城建资金专户管理系统","sys_id"
var origin_place_arr = [{"city_code":"3201","city":"南京市","county":"市本级","county_code":"320100","sys_name":"部门预算","sys_code":"BMYS"},{"city_code":"3201","city":"南京市","county":"市本级","county_code":"320100","sys_name":"非税收入收缴管理系统","sys_code":"FSSR"},{"city_code":"3201","city":"南京市","county":"市本级","county_code":"320100","sys_name":"预算执行系统","sys_code":"YSZX"},{"city_code":"3201","city":"南京市","county":"市本级","county_code":"320100","sys_name":"资产管理系统","sys_code":"ZCGL"},{"city_code":"3201","city":"南京市","county":"玄武区","county_code":"320102","sys_name":"预算执行系统","sys_code":"YSZX"},{"city_code":"3201","city":"南京市","county":"秦淮区","county_code":"320104","sys_name":"用友财政综合管理信息系统","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"建邺区","county_code":"320105","sys_name":"预算执行系统","sys_code":"YSZX"},{"city_code":"3201","city":"南京市","county":"鼓楼区","county_code":"320106","sys_name":"用友A++","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"浦口区","county_code":"320111","sys_name":"浦口财政一体化","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"栖霞区","county_code":"320113","sys_name":"栖霞区财政业务信息管理系统","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"雨花台区","county_code":"320114","sys_name":"一体化系统","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"江宁区","county_code":"320115","sys_name":"财政管理一体化系统","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"江宁区","county_code":"320115","sys_name":"滨江开发区财政分局","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"江宁区","county_code":"320115","sys_name":"江宁经济技术开发区财政分局","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"江宁区","county_code":"320115","sys_name":"江宁科学园财政分局","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"六合区","county_code":"320116","sys_name":"一体化系统","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"高淳区","county_code":"320118","sys_name":"财政一体化系统","sys_code":"YTH"},{"city_code":"3201","city":"南京市","county":"溧水区","county_code":"320124","sys_name":"A++财政一体化平台","sys_code":"YTH"},{"city_code":"3202","city":"无锡市","county":"市本级","county_code":"320200","sys_name":"财政一体化系统","sys_code":"YTH"},{"city_code":"3202","city":"无锡市","county":"市本级","county_code":"320200","sys_name":"非税收入收缴管理系统","sys_code":"FSSR"},{"city_code":"3202","city":"无锡市","county":"崇安区","county_code":"320202","sys_name":"非税系统","sys_code":"FSSR"},{"city_code":"3202","city":"无锡市","county":"崇安区","county_code":"320202","sys_name":"一体化预算执行系统","sys_code":"YTH"},{"city_code":"3202","city":"无锡市","county":"南长区","county_code":"320203","sys_name":"非税系统","sys_code":"FSSR"},{"city_code":"3202","city":"无锡市","county":"南长区","county_code":"320203","sys_name":"一体化","sys_code":"YTH"},{"city_code":"3202","city":"无锡市","county":"北塘区","county_code":"320204","sys_name":"国库集中支付管理信息系统","sys_code":"GKZF"},{"city_code":"3202","city":"无锡市","county":"锡山区","county_code":"320205","sys_name":"国库集中支付","sys_code":"GKZF"},{"city_code":"3202","city":"无锡市","county":"锡山区","county_code":"320205","sys_name":"财政专户核算及非税系统","sys_code":"ZHHS_FSSR"},{"city_code":"3202","city":"无锡市","county":"惠山区","county_code":"320206","sys_name":"财政一体化系统","sys_code":"YTH"},{"city_code":"3202","city":"无锡市","county":"滨湖区","county_code":"320211","sys_name":"集中支付系统","sys_code":"GKZF"},{"city_code":"3202","city":"无锡市","county":"滨湖区","cou
function getCountyByCode(code){
//var jsobj = JSON.parse(origin_place_arr);
var jsobj = origin_place_arr;
var jsonlength = jsobj.length;
for (var i = 0; i < jsonlength; i++) {
if(jsobj[i].county_code == code){
return jsobj[i].city+jsobj[i].county;
}
}
return code;
}
function getCodeByCounty(place){
place = place.replace(/\s*\t*/gim,"");
//var jsobj = JSON.parse(origin_place_arr);
var jsobj = origin_place_arr;
var jsonlength = jsobj.length;
for (var i = 0; i < jsonlength; i++) {
if(jsobj[i].city === "" || jsobj[i].city == undefined)
continue;
if(jsobj[i].county === "" || jsobj[i].county == undefined)
continue;
if((place.indexOf(jsobj[i].city) != -1) && (place.indexOf(jsobj[i].county) != -1)){
return jsobj[i].county_code;
}
}
return place;
}
function getSystemNameById(id){
var temJson = system_arr;
var sys_size = temJson.length;
for (var i = 0; i < sys_size; i++) {
if(temJson[i].sys_id == id){
return temJson[i].sys_name;
}
}
return id;
}
function getIdBySystemName(name){
var temJson = system_arr;
var sys_size = temJson.length;
for (var i = 0; i < sys_size; i++) {
if(temJson[i].sys_name == name){
return temJson[i].sys_id;
}
}
return name;
}
function getCodeBySystemName(name){
var jsobj = origin_place_arr;
var jsonlength = jsobj.length;
for (var i = 0; i < jsonlength; i++) {
if(jsobj[i].sys_name == name){
return jsobj[i].sys_code;
}
}
return name;
}
exports.getCountyByCode = getCountyByCode;
exports.getCodeByCounty = getCodeByCounty;
exports.getSystemNameById = getSystemNameById;
exports.getIdBySystemName = getIdBySystemName;
exports.getCodeBySystemName = getCodeBySystemName;