package com.steerinfo.meterwork.constants;

import com.steerinfo.meterwork.dto.StorageCollectModel;
import com.steerinfo.rtdb.Client;
import com.steerinfo.util.TestClient2;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName DbConstants
 * @Description: TODO
 * @Author
 * @Date 2020/9/12
 * @Version V1.0
 */
public class DbConstants {
    //轨道衡毛皮重最小差值
    public static final BigDecimal RAILWAY_WEIGHT = new BigDecimal(10000);
    //有效、已审核、未使用
    public  static  final  String VALID = "1";
    //无效、未审核
    public  static  final  String INVALID = "0";
    //上传、已使用
    public  static  final  String  UP= "2";
    //正在使用
    public  static  final  String  IN= "4";
    //作废状态
    public  static  final  String  Abolish= "3";
    //动态轨道衡
    public  static  final  String  ACT= "001019002";
    //静态轨道衡
    public  static  final  String  STATIC= "001019001";
    //结净状态
    public  static  final  String  NET= "2";
    //结净方式
    public  static  final  String  TYPE= "2";
    //进厂核查
    public  static  final  String  INCOME= "001021002";
    //出厂核查
    public  static  final  String  OUTCOME= "001021006";
    //预环节已使用
    public  static  final  String  Y= "1";
    //预环节待使用
    public  static  final  String  N= "0";
    //进厂核查flag
    public  static  final  String  INFlAG= "0";
    //出厂核查flag
    public  static  final  String  OUTFlAG= "1";
    //汽车衡
    public  static  final  String  CAR= "001002001";
    //汽车衡
    public  static  final  String  RAILWAY= "001002002";
    //汽车衡一次计量
    public  static  final  String  CALCULATE= "001021003";
    //汽车衡卸货流程
    public  static  final  String  unload= "001021004";
    //汽车衡二次计量
    public  static  final  String  CLEAN= "001021005";

    //调用接口为检化验传递数据时登录账号
    public  static  final  String  loginName= "txjk";

    //调用接口为检化验传递数据时登录密码
    public  static  final  String  password= "st123456";

    //调用接口为检化验传递数据时调用登录接口获取accessTokens的地址
    public  static  final  String  IPFROLOGIN= "https://lims.jnmc.com";

    //调用接口为检化验传递数据时调用传递接口的地址
    public  static  final  String  IPFORTRAN= "http://168.168.45.53:9016";
//    public  static  final  String  IPFORTRAN= "https://lims.jnmc.com/icore.icp.web/pass/testManagement";

    //数据采集的缓存
    public  static List<StorageCollectModel> StorageList = new ArrayList<>();

    public static Client client = TestClient2.getConnecting();

    /**
     * 成品秤预报标志位:无效0
     */
    public  static  final  String STORAGE_SCALE_VALUE_INVALID = "0";


    /**
     * 成品秤预报标志位:未使用1
     */
    public  static  final  String STORAGE_SCALE_VALUE_NOTUSE = "1";

    /**
     * 成品秤预报标志位:使用中2
     */
    public  static  final  String STORAGE_SCALE_VALUE_INUSE = "2";

    /**
     * 成品秤预报标志位:已完成使用
     */
    public  static  final  String STORAGE_SCALE_VALUE_USED = "3";

    /**
     * 成品秤预报标志位:有效的包括1和2
     */
    public  static  final  String STORAGE_SCALE_VALUE_VALID = "9";

    /**
     * 成品秤实绩/理论重量标志位:有效1
     */
    public  static  final  String STORAGE_ACTUAL_VALUE_VALID = "1";

    /**
     * 成品秤实绩/理论重量标志位:无效0
     */
    public  static  final  String STORAGE_ACTUAL_VALUE_INVALID = "0";
}
