using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DeiNiu.Utils { public struct WmsConstants { public static DateTime WAVE_LAST_FREE_TIME; public static int PAGER_SIZE = 100; public static bool LOG_SQL_ON = false; public static bool IS_MENU_EXPANDED = false; /// /// /// 5分钟后强制开始新波次,有可能会有再次发送亮灯数据时,实际已经捡货完毕并拍灭,又重新亮灯造成多捡的可能。 /// public static int MAX_SECONDS_BETWEEN_WAVES = 20 * 60000; /// /// auto new wave when form is load /// public static bool AUTO_NEW_WAVE = true; public static int MAX_COLORS = 9; /// /// 统计波次用时,作为取订单间隔的参考 /// public static int WAVE_CNT = 0; public static int WAVE_TOTAL_SECONDS = 0; public static DateTime WAVE_LAST_TIME; public static string WAVE_LAST_ORDER = "";//last wave order for count time public static string WAVE_CURRENT_ORDER = ""; public static int WAVE_SECONDS; //average seconds per wave public static int MAX_LABEL_DATA_IN_A_WAVE = 38; //一个标签一个波次只能存储40条数据 public static int MAX_CONTROL_DATA_IN_A_WAVE = 1000; //一个控制器最大存储1200条 public static DateTime WAVE_LAST_END = DateTime.Now; public static int HISTORY_REC_KEEP_DAYS = 30; public static Dictionary SEEDS_LABEL_ID = new Dictionary(); public static Dictionary WAVE_CURRENT_PICK_STATUS = new Dictionary(); /// /// light up success or not /// //public static Dictionary WAVE_CURRENT_LIGHTS_STATUS = new Dictionary(); public static Dictionary WAVE_CURRENT_LIGHTS_STATUS = new Dictionary(); /// /// pick status,lights turnned off or not /// public static Dictionary WAVE_CURRENT_LIGHTS_PORT_STATUS = new Dictionary(); public static string WCF_UN_AUTH_MESSAGE = "未授权的访问,请登录后再试"; public static string PRINTER_NAME_CODE = "ZDesigner GT800 (EPL)"; public static string PRINTER_NAME_A4 = "HP LaserJet Professional P1106"; public static string SQL_CONN_WMS = ""; public static bool OUT_STOCK_PDA_SCAN = true; } }