<?php

$config=array(
    "data_from_scada"=>'false',
    "interval_left_gap"=>30,//完工站统计的产量柱状图的时间间隔,
    "interval_left"=>1,//完工站统计的产量柱状图的时间间隔
    "interval_devices_refresh"=>2,
    "interval_device_change"=>1,
    'curdev_dataget_period'=>8, //当前设备取数时间 最近多少小时内
    // "device_select_mode"=>'workcenter',
    // "department_of_device"=>null,
    "workcenter_of_device"=>array(),
    "show_device_name"=>'show',
    "halt_time"=>'2',
    "show_prospec"=>'show',
    "workcenters" => array(),
    "cur_equ"=>'',
    //1:仅查今日 2:看3日计划 3:查本周计划 4:查本月计划
    "plan_search_mode"=>'1',
    //1:仅查今日 2:查本周计划 3:查本月计划
    "defect_search_mode"=>'1',
//参数设置
"parameters"=>array(
    //效率预警kpi
    "efficient_kpi_boundary"=>'202',
    //良率预警kpi
    "qualityrate_kpi_boundary"=>'202',
    //达成率预警kpi
    //"achieving_rate_boundary"=>'102',
    //标准产量kpi
    "kpi_std_output"=>'102',
    //看板名称
    "ekb_name"=>'',
    //看板子名称
    'sub_ekb_name'=>''
),
"company"=>array(
    'name'=>'易掌管',
    'info'=>''
),
"sp_hourly_production_num" =>"dbo.sp_hourly_production_num"
//"sp_achieving_rate"=>'dbo.sp_achieving_rate1',
//"sp_qualified_rate"=>'dbo.sp_qualified_rate1',
//"sp_current_workcenter"=>'dbo.sp_workcenter_data1',
);

if (file_exists(ROOT.'/config.json')) {
    $config2=file_get_contents(ROOT.'/config.json');
    $config2=json_decode($config2, true);
    $config=array_merge($config, $config2);
}




?>

