| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | using System; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  |  | using System.Linq; | 
					
						
							|  |  |  |  | using System.Text; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | namespace DeiNiu.Utils | 
					
						
							|  |  |  |  | { | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |     public struct pickConstants | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  |     {  | 
					
						
							|  |  |  |  |         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; | 
					
						
							|  |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         /// 5分钟后强制开始新波次,有可能会有再次发送亮灯数据时,实际已经捡货完毕并拍灭,又重新亮灯造成多捡的可能。 | 
					
						
							|  |  |  |  |         /// </summary> | 
					
						
							|  |  |  |  |         public static int MAX_SECONDS_BETWEEN_WAVES = 20 * 60000; | 
					
						
							|  |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         ///  auto new wave when form is load | 
					
						
							|  |  |  |  |         /// </summary> | 
					
						
							|  |  |  |  |         public static bool AUTO_NEW_WAVE = true; | 
					
						
							|  |  |  |  |         public static int MAX_COLORS = 9; | 
					
						
							|  |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         /// 统计波次用时,作为取订单间隔的参考 | 
					
						
							|  |  |  |  |         /// </summary> | 
					
						
							|  |  |  |  |         public static int WAVE_CNT = 0; | 
					
						
							|  |  |  |  |         public static int WAVE_TOTAL_SECONDS = 0; | 
					
						
							|  |  |  |  |         public static DateTime WAVE_LAST_TIME; | 
					
						
							|  |  |  |  |         public static DateTime WAVE_LAST_END = DateTime.Now; | 
					
						
							|  |  |  |  |         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 int HISTORY_REC_KEEP_DAYS = 30; | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         public static Dictionary<int, int> SEEDS_PORT_USERID_ID = new Dictionary<int, int>(); | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         public static Dictionary<int, Dictionary<string, int>> SEEDS_LABEL_ID = new Dictionary<int, Dictionary<string, int>>(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |          public static Dictionary<string, bool> WAVE_CURRENT_PICK_STATUS = new Dictionary<string, bool>(); | 
					
						
							|  |  |  |  |         public static Dictionary<int, Dictionary<string, bool>> SEEDS_CURRENT_PICK_STATUS = new Dictionary<int, Dictionary<string, bool>>(); | 
					
						
							|  |  |  |  |         public static Dictionary<int, Dictionary<string, bool>> SEEDS_CURRENT_LIGHTS_STATUS = new Dictionary<int, Dictionary<string, bool>>(); | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         /// light up success or not | 
					
						
							|  |  |  |  |         /// </summary> | 
					
						
							|  |  |  |  |         //public static Dictionary<string, bool> WAVE_CURRENT_LIGHTS_STATUS = new Dictionary<string, bool>(); | 
					
						
							|  |  |  |  |         public static Dictionary<string, bool> WAVE_CURRENT_LIGHTS_STATUS = new Dictionary<string, bool>(); | 
					
						
							|  |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         /// pick status,lights turnned off or not | 
					
						
							|  |  |  |  |         /// </summary> | 
					
						
							|  |  |  |  |         public static Dictionary<int, bool> WAVE_CURRENT_LIGHTS_PORT_STATUS = new Dictionary<int, bool>(); | 
					
						
							|  |  |  |  |         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; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | } |