<?php

$config=array(
'time_seq_time_interval'=>'30m',
'default_tab'=>'workorder',
//执行产线
'currentProdLines'=>array(),
//制令过滤
"work_order"=>array(
    //绑定生产部门
    "producing_department"=>'1',
    "is_producing_line"=>1,
    "producing_lines"=>array(),
    "workcenters" => array(),
    "departments" => array(),
    //1:仅查今日 2:看3日计划 3:查本周计划 4:查本月计划
    "plan_search_mode"=>'1',
    //1:仅查今日 2:查本周计划 3:查本月计划
    "defect_search_mode"=>'1'
),
//参数设置
"parameters"=>array(
    "tool_kpi_enabled"=>0,
    "tool_kpi_boundary"=>0,
    'outputs_init'=>0,
    "mymsg_type"=>[],
    //表窗体显示列选项
    "cols"=>array(
        '产线'=>true,
        '制单号'=>true,
        '品号'=>true,
        '品名'=>true,
        '规格'=>true,
        '预开工'=>true,
        '实际开工'=>true,
        '计划量'=>true,
        '完工量'=>true,
        '完工率'=>true,
        '效率'=>true,
        '在途量'=>true,
        '单据状态'=>true
    ),
    "colnames"=>array(
        '产线'=>'DepName',
        '制单号'=>'PFormMNo',
        '品号'=>'ProNo',
        '品名'=>'ProName',
        '规格'=>'ProSpec',
        '预开工'=>'PStartTime',
        '实际开工'=>'FStartTime',
        '计划量'=>'InputNum',
        '完工量'=>'OutputNum',
        '完工率'=>'CompletedRate',
        '效率'=>'Eff',
        '在途量'=>'InTransitNum',
        '单据状态'=>'State'
    ),
    "colwidths"=>array(
        '产线' => '100',
        '制单号'=>'100',
        '品号'=>'100',
        '品名'=>'100',
        '规格'=>'100',
        '预开工'=>'100',
        '实际开工'=>'100',
        '计划量'=>'100',
        '完工量'=>'100',
        '完工率'=>'100',
        '效率'=>'100',
        '在途量'=>'100',
        '单据状态'=>'100'
    
    ),
    //数据滚动和刷新的时间间隔，单位分钟
    "interval"=>'2',
    //效率预警kpi
    "efficient_kpi_boundary"=>'202',
    //达成率预警kpi
    //"achieving_rate_boundary"=>'102',
    //今日目标预警kpi
    "target_kpi_autocompute"=>0,
    "today_target_kpi_boundary"=>'102',
    "today_output_kpi_boundary"=>'102',
    //看板名称
    "ekb_name"=>'',
    //看板子名称
    'sub_ekb_name'=>'',
    "table_interval"=>'10'
),
"company"=>array(
    'name'=>'易掌管',
    'info'=>''
),

//"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);
}




?>

