package com.ygtx.emcs.util;

import com.ygtx.emcs.activity.model.RobotModel;
import com.ygtx.emcs.activity.model.StockLineModel;
import com.ygtx.emcs.activity.model.UserModel;

import java.util.HashMap;
import java.util.Map;

public class Constant {

    public static String MODEL = "ET28";

    public final static String DATE_FORMATE = "yyyy-MM-dd";
    public final static String DATE_FORMATE_FILE = "yyyyMMdd";
    public final static String DATEMONTH_FORMATE = "yyyy-MM";
    public final static String DATEDATE_FORMATE = "MM-dd";
    public final static String DATETIME_FORMATE = "yyyy-MM-dd HH:mm:ss";
    public final static String DATETIME_SHOR_FORMATE = "yyyy-MM-dd HH:mm";
    public final static String DATETIME_CONTINUOUS_FORMATE = "yyyyMMddHHmmss";
    public final static String DATETIME_MILLI_FORMATE = "HHmmssSSS";
    public final static String DATETIME_CONTINUOUS_MILLI_FORMATE = "yyyyMMddHHmmssSSS";
    public final static String TIME_FORMATE = "HHmmss";

//  修改 string.xml APP 名称 “宇光同行” 内网
    public static String PROJECT_NAME = "ygtx";
//    public static String server_ip = "192.168.110.105:83";
    public static String server_ip = "192.168.120.222:8905";
    public static String HTTP_URL = "http://"+server_ip;
    public static String UPDATE_URL = "http://175.42.33.78:85";

    public static String ACCESS_TOKEN = "";
    public static String REFRESH_TOKEN = "";
    public static String TENANT_ID = "000000";

    public static final String CACHE_LOGIN_KEY = "LOGIN";
    public static final String CACHE_BIND_CONTROL = "BIND_CONTROL";
    public static final String CACHE_BIND_CONFIG = "BIND_CONFIG";

    public static UserModel user;
    public static RobotModel robotModel;
    public static int SOCKET_PORT = 502;

    public final static String LOG_IN = "login";
    public final static String GET_INFO = "getInfo";
    public final static String GET_USER_MENU = "getUserMenu";
    public final static String STOCK_IN_INFO = "mes/md/instock";
    public final static String STOCK_IN_LIST = "mes/md/instock/list";
    public final static String STOCK_IN_LINE_LIST = "mes/md/line/list";
    public final static String STOCK_AUTO_IN_ADD = "mes/md/instock/autoIn";
    public final static String STOCK_OUT_INFO = "mes/md/outstock";
    public final static String STOCK_OUT_LIST = "mes/md/outstock/list";
    public final static String STOCK_OUT_LINE_LIST = "mes/md/outstockline/list";
    public final static String STOCK_AUTO_OUT_ADD = "mes/md/outstock/autoOut";
    public final static String ITEM_VIEW = "mes/md/mditem/itemCode";
    public final static String BOX_INFO = "mes/wm/box/getBoxByBoxCode";
    public final static String BOX_ITEM_VIEW = "mes/wm/item/queryItem";
    public final static String BOX_LIST_VIEW = "mes/wm/box/boxCodeList";
    public final static String BOX_ADD = "mes/wm/box/bind";
    public final static String BOX_CHECK_BIND = "mes/wm/box/checkBind";

    public final static String ERP_IN_STOCK = "mes/md/instock/selectErpStockInOrder";
    public final static String ERP_IN_STOCK_AREA_LIST =  "mes/md/inStockLineArea/list";
    public final static String SAVE_IN_STOCK_AREA = "mes/md/inStockLineArea/saveArea";
    public final static String BATCH_CODE = "mes/rms/batchCode/getBatchCode";
    public final static String EMPTY_AREA =  "mes/md/line/getEmptyArea";

    public final static String ERP_OUT_STOCK = "mes/md/outstock/selectErpStockOutOrder";
    public final static String PRINTER_ITEM = "mes/md/outstockline/printer";
    public final static String STOCK_LIST_STOCK = "mes/wm/wmstock/listStock";
    public final static String SAVE_OUT_STOCK_AREA = "mes/md/outstockLineArea/saveArea";
    public final static String ERP_OUT_STOCK_AREA_LIST =  "mes/md/outstockLineArea/list";

    public final static String GET_STOCK_PACKAGE = "mes/wm/package/getStockPackage";
    public final static String PRINTER_PACKAGE = "mes/wm/package/savePrinter";
    public final static String LIST_PACKAGE = "mes/wm/package/packageList";
    public final static String PACKAGE_STOCK_OUT_LIST = "mes/md/outstock/orderList";
    public final static String PACKAGE_ITEM_LIST = "mes/wm/packageline/lineList";
    public final static String PRINTER_ITEM_SEL = "system/dict/data/type";

    public final static String SYNC_IN_STOCK="mes/md/instock/syncErpForInstock";
    public final static String SYNC_OUT_STOCK="mes/md/outstock/syncErpForOutstock";

    public final static String BIND_IN_STOCK = "mes/md/line/updateInstockLineForFj";
    public final static String SEL_BATCH_CODE = "mes/wm/wmstock/listStockForBatchCode";
    public final static String SEND_STOCK_OUT = "mes/rms/line/runTask";
    public final static String UPDATE_STOCK_OUT_LINE = "mes/md/outstockline";
    public final static String CHECK_OUT_LINE = "mes/md/outstockline/checkOutLine";
    public final static String CANCEL_PUSH_LINE = "mes/md/outstockline/cancelPushLine";
    public final static String CHANGE_BOX_AREA = "mes/wm/wmstock/changeBoxOrArea";

    public final static String GET_CONFIG = "system/config/list";

    public final static String RECEIVER_MSG = "com.qy.msg.RECEIVER";
    public final static String PRINTER_ITEM_SEL_KEY = "rms_item_print";
    public final static String BOX_KEY = "rms.box.start";
    public final static String IN_STOCK_KEY = "rms.instock.start";
    public final static String OUT_STOCK_KEY = "rms.outstock.start";

    public final static String XBK = "XBKKW_VIRTUAL";
    public final static String AUTO_KEY = "A";
    public final static String HAND_KEY = "B";

    public static final Map<String, StockLineModel> packingLineMap = new HashMap<>();
    public static int REQUEST_CODE_MLKIT_SCAN_ONE = 204;
}
