| | |
| | | # Microsoft Fakes |
| | | FakesAssemblies/ |
| | | /S7/History |
| | | /S7/MX Component 4.16S |
| | | /S7/redis-desktop-manager-2019.5.20.0.exe |
| | |
| | | "Brand": "Siemens", |
| | | "Model": "S7_1500", |
| | | "Comm": "S7Net", |
| | | "IP": "10.221.55.110[0,1][v1.0]", |
| | | "IP": "10.221.55.110:102[0,1][v1.0]", |
| | | "RedisQueueName": "ç»´å¸å°æè1Queue", |
| | | "IsSimulate": false, |
| | | "Reserve1": "", |
| | |
| | | "Brand": "Siemens", |
| | | "Model": "S7_1500", |
| | | "Comm": "S7Net", |
| | | "IP": "10.221.55.120[0,1][v1.0]", |
| | | "IP": "10.221.55.120:102[0,1][v1.0]", |
| | | "RedisQueueName": "ç»´å¸å°æè2Queue", |
| | | "IsSimulate": false, |
| | | "Reserve1": "", |
| | |
| | | "Address": "M0", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "左侧å
æ
è¿å
¥ç³è¯·", |
| | | "Desc": "左侧å±è½å
æ
", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M1", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "å³ä¾§å
æ
è¿å
¥ç³è¯·", |
| | | "Desc": "å³ä¾§å±è½å
æ
", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M2", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "agv å°è¾¾å·¦è¾¹æå°", |
| | | "Desc": "左侧å¼å¯å
æ
", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M3", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "agv å°è¾¾å³è¾¹æå°", |
| | | "Desc": "å³ä¾§å¼å¯å
æ
", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M4", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "AGV左边æçå·²æ¾å¥½", |
| | | "Desc": "左侧æçå°ä½", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M5", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "AGVå³è¾¹æçå·²æ¾å¥½", |
| | | "Desc": "å³ä¾§æçå°ä½", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M6", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "AGV已离å¼å·¦è¾¹æå°", |
| | | "Desc": "agv 䏻卿¥è¦", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M7", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "AGV已离å¼å³è¾¹æå°", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M32", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M0å
许", |
| | | "Desc": "左侧å
æ
ç¶æ", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M33", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M1", |
| | | "Desc": "å³ä¾§å
æ
ç¶æ", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M34", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M2", |
| | | "Desc": "左侧å
许å空", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M35", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M3", |
| | | "Desc": "å³ä¾§å
许å空", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M36", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M4", |
| | | "Desc": "æºå¨äººæåç¶æ", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M37", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M5", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M38", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M6", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M39", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M7", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M40", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "左边æçæå宿ï¼å
许AGV左边åæç", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Address": "M41", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "å³è¾¹æçæå宿ï¼å
许AGVå³è¾¹åæç", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Brand": "Melsec", |
| | | "Model": "Q10UDEH", |
| | | "Comm": "MXComponent", |
| | | "IP": "127.0.0.1", |
| | | "IP": "1", |
| | | "RedisQueueName": "æ·ç¬æè1Queue", |
| | | "IsSimulate": false, |
| | | "Reserve1": "", |
| | |
| | | { |
| | | "ParamList": [ |
| | | { |
| | | "Id": "20250411091128147", |
| | | "Id": "20250417142024140", |
| | | "Order": 1, |
| | | "Name": "M0", |
| | | "FullName": "æ·ç¬æè2.M0", |
| | |
| | | "Address": "M0", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "左侧å
æ
è¿å
¥ç³è¯·", |
| | | "Desc": "左侧å±è½å
æ
", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128163", |
| | | "Id": "20250417142024155", |
| | | "Order": 2, |
| | | "Name": "M1", |
| | | "FullName": "æ·ç¬æè2.M1", |
| | |
| | | "Address": "M1", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "å³ä¾§å
æ
è¿å
¥ç³è¯·", |
| | | "Desc": "å³ä¾§å±è½å
æ
", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128179", |
| | | "Id": "20250417142024170", |
| | | "Order": 3, |
| | | "Name": "M2", |
| | | "FullName": "æ·ç¬æè2.M2", |
| | |
| | | "Address": "M2", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "agv å°è¾¾å·¦è¾¹æå°", |
| | | "Desc": "左侧å¼å¯å
æ
", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128194", |
| | | "Id": "20250417142024186", |
| | | "Order": 4, |
| | | "Name": "M3", |
| | | "FullName": "æ·ç¬æè2.M3", |
| | |
| | | "Address": "M3", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "agv å°è¾¾å³è¾¹æå°", |
| | | "Desc": "å³ä¾§å¼å¯å
æ
", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128209", |
| | | "Id": "20250417142024201", |
| | | "Order": 5, |
| | | "Name": "M4", |
| | | "FullName": "æ·ç¬æè2.M4", |
| | |
| | | "Address": "M4", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "AGV左边æçå·²æ¾å¥½", |
| | | "Desc": "左侧æçå°ä½", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128225", |
| | | "Id": "20250417142024217", |
| | | "Order": 6, |
| | | "Name": "M5", |
| | | "FullName": "æ·ç¬æè2.M5", |
| | |
| | | "Address": "M5", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "AGVå³è¾¹æçå·²æ¾å¥½", |
| | | "Desc": "å³ä¾§æçå°ä½", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128240", |
| | | "Id": "20250417142024232", |
| | | "Order": 7, |
| | | "Name": "M6", |
| | | "FullName": "æ·ç¬æè2.M6", |
| | |
| | | "Address": "M6", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "AGV已离å¼å·¦è¾¹æå°", |
| | | "Desc": "agv 䏻卿¥è¦", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128255", |
| | | "Id": "20250417142024248", |
| | | "Order": 8, |
| | | "Name": "M7", |
| | | "FullName": "æ·ç¬æè2.M7", |
| | |
| | | "Address": "M7", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "AGV已离å¼å³è¾¹æå°", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128270", |
| | | "Id": "20250417142024263", |
| | | "Order": 9, |
| | | "Name": "M32", |
| | | "FullName": "æ·ç¬æè2.M32", |
| | |
| | | "Address": "M32", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M0å
许", |
| | | "Desc": "左侧å
æ
ç¶æ", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128286", |
| | | "Id": "20250417142024279", |
| | | "Order": 10, |
| | | "Name": "M33", |
| | | "FullName": "æ·ç¬æè2.M33", |
| | |
| | | "Address": "M33", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M1", |
| | | "Desc": "å³ä¾§å
æ
ç¶æ", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128301", |
| | | "Id": "20250417142024295", |
| | | "Order": 11, |
| | | "Name": "M34", |
| | | "FullName": "æ·ç¬æè2.M34", |
| | |
| | | "Address": "M34", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M2", |
| | | "Desc": "左侧å
许å空", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128317", |
| | | "Id": "20250417142024311", |
| | | "Order": 12, |
| | | "Name": "M35", |
| | | "FullName": "æ·ç¬æè2.M35", |
| | |
| | | "Address": "M35", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M3", |
| | | "Desc": "å³ä¾§å
许å空", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128332", |
| | | "Id": "20250417142024326", |
| | | "Order": 13, |
| | | "Name": "M36", |
| | | "FullName": "æ·ç¬æè2.M36", |
| | |
| | | "Address": "M36", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M4", |
| | | "Desc": "æºå¨äººæåç¶æ", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128348", |
| | | "Id": "20250417142024341", |
| | | "Order": 14, |
| | | "Name": "M37", |
| | | "FullName": "æ·ç¬æè2.M37", |
| | |
| | | "Address": "M37", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M5", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128364", |
| | | "Id": "20250417142024357", |
| | | "Order": 15, |
| | | "Name": "M38", |
| | | "FullName": "æ·ç¬æè2.M38", |
| | |
| | | "Address": "M38", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M6", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128379", |
| | | "Id": "20250417142024372", |
| | | "Order": 16, |
| | | "Name": "M39", |
| | | "FullName": "æ·ç¬æè2.M39", |
| | |
| | | "Address": "M39", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "M7", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128394", |
| | | "Id": "20250417142024388", |
| | | "Order": 17, |
| | | "Name": "M40", |
| | | "FullName": "æ·ç¬æè2.M40", |
| | |
| | | "Address": "M40", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "左边æçæå宿ï¼å
许AGV左边åæç", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250411091128410", |
| | | "Id": "20250417142024403", |
| | | "Order": 18, |
| | | "Name": "M41", |
| | | "FullName": "æ·ç¬æè2.M41", |
| | |
| | | "Address": "M41", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "å³è¾¹æçæå宿ï¼å
许AGVå³è¾¹åæç", |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | "Brand": "Melsec", |
| | | "Model": "Q10UDEH", |
| | | "Comm": "MXComponent", |
| | | "IP": "127.0.0.1", |
| | | "IP": "2", |
| | | "RedisQueueName": "æ·ç¬æè2Queue", |
| | | "IsSimulate": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "ParamList": [ |
| | | { |
| | | "Id": "20250417170750831", |
| | | "Order": 1, |
| | | "Name": "Param1", |
| | | "FullName": "PLC3.Param1", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "M0", |
| | | "AddrType": "04", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250417170818158", |
| | | "Order": 2, |
| | | "Name": "Param2", |
| | | "FullName": "PLC3.Param2", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "M1", |
| | | "AddrType": "04", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250417170818315", |
| | | "Order": 3, |
| | | "Name": "Param3", |
| | | "FullName": "PLC3.Param3", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "M2", |
| | | "AddrType": "04", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250417170818484", |
| | | "Order": 4, |
| | | "Name": "Param4", |
| | | "FullName": "PLC3.Param4", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "M3", |
| | | "AddrType": "04", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250417170832254", |
| | | "Order": 5, |
| | | "Name": "Param5", |
| | | "FullName": "PLC3.Param5", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "M32", |
| | | "AddrType": "04", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250417170832400", |
| | | "Order": 6, |
| | | "Name": "Param6", |
| | | "FullName": "PLC3.Param6", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "M33", |
| | | "AddrType": "04", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250417170832568", |
| | | "Order": 7, |
| | | "Name": "Param7", |
| | | "FullName": "PLC3.Param7", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "M36", |
| | | "AddrType": "04", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250417171011198", |
| | | "Order": 8, |
| | | "Name": "Param8", |
| | | "FullName": "PLC3.Param8", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "0x0001", |
| | | "AddrType": "04", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250417171011393", |
| | | "Order": 9, |
| | | "Name": "Param9", |
| | | "FullName": "PLC3.Param9", |
| | | "DataType": "System.Boolean", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "1", |
| | | "AddrType": "04", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250418103545732", |
| | | "Order": 10, |
| | | "Name": "Param10", |
| | | "FullName": "PLC3.Param10", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "1", |
| | | "AddrType": "04", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | } |
| | | ], |
| | | "GroupList": [], |
| | | "Id": "0000003", |
| | | "Name": "PLC3", |
| | | "Desc": "", |
| | | "Brand": "AB", |
| | | "Model": "AB", |
| | | "Comm": "MODBUSTCP", |
| | | "IP": "10.221.50.200:3000", |
| | | "RedisQueueName": "PLC3Queue", |
| | | "IsSimulate": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "ParamList": [ |
| | | { |
| | | "Id": "20250418104411735", |
| | | "Order": 1, |
| | | "Name": "Param1", |
| | | "FullName": "PLC4.Param1", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "M0", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250418104411883", |
| | | "Order": 2, |
| | | "Name": "Param2", |
| | | "FullName": "PLC4.Param2", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "M1", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250418104412027", |
| | | "Order": 3, |
| | | "Name": "Param3", |
| | | "FullName": "PLC4.Param3", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "0x0001", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250418104412140", |
| | | "Order": 4, |
| | | "Name": "Param4", |
| | | "FullName": "PLC4.Param4", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "1", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250418104412252", |
| | | "Order": 5, |
| | | "Name": "Param5", |
| | | "FullName": "PLC4.Param5", |
| | | "DataType": "System.UInt16", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "0x1", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | }, |
| | | { |
| | | "Id": "20250418104412341", |
| | | "Order": 6, |
| | | "Name": "Param6", |
| | | "FullName": "PLC4.Param6", |
| | | "DataType": "System.Boolean", |
| | | "DataValue": "", |
| | | "SetValue": "", |
| | | "Address": "0x0001", |
| | | "AddrType": "", |
| | | "Length": 1, |
| | | "Desc": "", |
| | | "Trigger": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | | "Reserve3": "" |
| | | } |
| | | ], |
| | | "GroupList": [], |
| | | "Id": "0000004", |
| | | "Name": "PLC4", |
| | | "Desc": "", |
| | | "Brand": "Siemens", |
| | | "Model": "S7_1500", |
| | | "Comm": "MODBUSTCP", |
| | | "IP": "10.221.50.200:3000", |
| | | "RedisQueueName": "PLC4Queue", |
| | | "IsSimulate": false, |
| | | "Reserve1": "", |
| | | "Reserve2": "", |
| | |
| | | } |
| | | ], |
| | | "CreationTime": "2025-02-26 15:31:23", |
| | | "LastWriteTime": "2025-04-11 09:11:42" |
| | | "LastWriteTime": "2025-04-18 10:45:48" |
| | | } |
| | |
| | | "ProjectSn": "1", |
| | | "DeviceList": [], |
| | | "CreationTime": "2025-02-26 15:31:23", |
| | | "LastWriteTime": "2025-04-11 09:11:42" |
| | | "LastWriteTime": "2025-04-18 10:45:51" |
| | | } |
| | |
| | | "ID": "20250324101838895", |
| | | "Name": "sql", |
| | | "Desc": "", |
| | | "DataSource": "DESKTOP-DSS9VVU", |
| | | "DataSource": "10.221.55.116", |
| | | "Database": "OIDATABASE", |
| | | "UserID": "sa", |
| | | "Password": "123456", |
| | | "Password": "aux!123", |
| | | "Timeout": 3, |
| | | "IsDefault": true, |
| | | "Type": "SqlServer" |
| | |
| | | "Code": "cddc17eb-398d-4781-b24a-62baec9f680b", |
| | | "Name": "he", |
| | | "Desc": "", |
| | | "IP": "127.0.0.1", |
| | | "IP": "10.221.55.116", |
| | | "Port": "8808", |
| | | "EndPoint": "127.0.0.1:8808", |
| | | "Url": "http://127.0.0.1:8808/", |
| | | "EndPoint": "10.221.55.116:8808", |
| | | "Url": "http://10.221.55.116:8808/", |
| | | "Interface": [ |
| | | { |
| | | "ID": "20250323130424925", |
| | |
| | | "Type": "System.String" |
| | | } |
| | | ], |
| | | "Content": "\r\n var model = JsonConvert.DeserializeObject<HaiKangOrderInfo>(requestJson);\r\n LogHelper.Info(\"ExecuteState Request-haikangï¼\" + JsonConvert.SerializeObject(model), \"agvæåäº¤äºæ¥å¿\");\r\n OperateHKTaskStatus(model);\r\n return JsonConvert.SerializeObject(new HkReturnResult { reqCode = model.reqCode });", |
| | | "Content": "\r\n LogHelper.Info(\"ExecuteState Request-haikangï¼\" + requestJson);\r\n var model = JsonConvert.DeserializeObject<HaiKangOrderInfo>(requestJson);\r\n OperateHKTaskStatus(model);\r\n return JsonConvert.SerializeObject(new HkReturnResult { reqCode = model.reqCode });", |
| | | "ContentType": "application/json", |
| | | "ReqParamStr": "System.String requestJson", |
| | | "ReqParamTypeStr": "System.String" |
| | |
| | | } |
| | | ], |
| | | "CreationTime": "2025-02-26 15:31:23", |
| | | "LastWriteTime": "2025-04-11 15:46:06" |
| | | "LastWriteTime": "2025-04-18 10:41:51" |
| | | } |
| | |
| | | public Tagjs1 js1 { get { return _js1; } set { _js1=value; RaisePropertyChanged("js1"); } } |
| | | private Tagjs2 _js2 = new Tagjs2(); |
| | | public Tagjs2 js2 { get { return _js2; } set { _js2=value; RaisePropertyChanged("js2"); } } |
| | | private TagGlobal _Global = new TagGlobal(); |
| | | public TagGlobal Global { get { return _Global; } set { _Global=value; RaisePropertyChanged("Global"); } } |
| | | #endregion |
| | | |
| | | #region å
é¨ç±» |
| | |
| | | RaisePropertyChanged("R52"); |
| | | } |
| | | } |
| | | private System.Int16 _wl=0; |
| | | public System.Int16 wl |
| | | { |
| | | get |
| | | { |
| | | return _wl; |
| | | } |
| | | set |
| | | { |
| | | _wl = value; |
| | | RaisePropertyChanged("wl"); |
| | | } |
| | | } |
| | | private System.Boolean _w143=false; |
| | | public System.Boolean w143 |
| | | { |
| | | get |
| | | { |
| | | return _w143; |
| | | } |
| | | set |
| | | { |
| | | _w143 = value; |
| | | RaisePropertyChanged("w143"); |
| | | } |
| | | } |
| | | private System.Int16 _w2=0; |
| | | public System.Int16 w2 |
| | | { |
| | | get |
| | | { |
| | | return _w2; |
| | | } |
| | | set |
| | | { |
| | | _w2 = value; |
| | | RaisePropertyChanged("w2"); |
| | | } |
| | | } |
| | | private System.Boolean _w245=false; |
| | | public System.Boolean w245 |
| | | { |
| | | get |
| | | { |
| | | return _w245; |
| | | } |
| | | set |
| | | { |
| | | _w245 = value; |
| | | RaisePropertyChanged("w245"); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region åéç» |
| | |
| | | { |
| | | _R52 = value; |
| | | RaisePropertyChanged("R52"); |
| | | } |
| | | } |
| | | private System.Int16 _wl=0; |
| | | public System.Int16 wl |
| | | { |
| | | get |
| | | { |
| | | return _wl; |
| | | } |
| | | set |
| | | { |
| | | _wl = value; |
| | | RaisePropertyChanged("wl"); |
| | | } |
| | | } |
| | | private System.Boolean _w143=false; |
| | | public System.Boolean w143 |
| | | { |
| | | get |
| | | { |
| | | return _w143; |
| | | } |
| | | set |
| | | { |
| | | _w143 = value; |
| | | RaisePropertyChanged("w143"); |
| | | } |
| | | } |
| | | private System.Int16 _w2=0; |
| | | public System.Int16 w2 |
| | | { |
| | | get |
| | | { |
| | | return _w2; |
| | | } |
| | | set |
| | | { |
| | | _w2 = value; |
| | | RaisePropertyChanged("w2"); |
| | | } |
| | | } |
| | | private System.Boolean _w245=false; |
| | | public System.Boolean w245 |
| | | { |
| | | get |
| | | { |
| | | return _w245; |
| | | } |
| | | set |
| | | { |
| | | _w245 = value; |
| | | RaisePropertyChanged("w245"); |
| | | } |
| | | } |
| | | #endregion |
| | |
| | | #endregion |
| | | } |
| | | |
| | | public class TagGlobal : System.ComponentModel.INotifyPropertyChanged |
| | | { |
| | | #region åé |
| | | private System.UInt16 _SettingsOver=0; |
| | | public System.UInt16 SettingsOver |
| | | { |
| | | get |
| | | { |
| | | return _SettingsOver; |
| | | } |
| | | set |
| | | { |
| | | _SettingsOver = value; |
| | | RaisePropertyChanged("SettingsOver"); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region åéç» |
| | | #endregion |
| | | |
| | | #region å
é¨ç±» |
| | | |
| | | #endregion |
| | | |
| | | #region 屿§åæ´ |
| | | public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; |
| | | public void RaisePropertyChanged(string propertyName) |
| | | { |
| | | System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged; |
| | | if (handler != null) |
| | | { |
| | | handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | |
| | |
| | | int result = 0; |
| | | lock (locker) |
| | | { |
| | | ISYSRepository sysservice = new SYSRepository(); |
| | | SYSRepository sysservice = new SYSRepository(); |
| | | var sId = sysservice.FindEntity(a => a.CN_S_TYPE.Trim() == snType && a.CN_S_PRE.Trim() == prefix + Vend); |
| | | |
| | | if (sId != null) |
| | | { |
| | | sId.CN_N_MAX++; |
| | | sId.CN_T_LAST = DateTime.Now; |
| | | sysservice.Update(sId); |
| | | result = sId.CN_N_MAX; |
| | | |
| | | sId.CN_N_MAX++; |
| | | sId.CN_T_LAST = DateTime.Now; |
| | | //sysservice.Update(sId); |
| | | |
| | | sysservice.dbcontext.Set<SYSEntity>().Attach(sId); |
| | | sysservice.dbcontext.Entry(sId).Property(x => x.CN_N_MAX).CurrentValue = sId.CN_N_MAX; |
| | | |
| | | sysservice.dbcontext.Entry(sId).Property(x => x.CN_N_MAX).IsModified = true; |
| | | sysservice.dbcontext.Entry(sId).Property(x=>x.CN_T_LAST).CurrentValue = sId.CN_T_LAST; |
| | | |
| | | sysservice.dbcontext.Entry(sId).Property(x=>x.CN_T_LAST).IsModified = true; |
| | | |
| | | sysservice.dbcontext.SaveChanges(); |
| | | result = sId.CN_N_MAX; |
| | | } |
| | | else |
| | | { |
| | | sId = new SYSEntity { CN_S_TYPE = snType, CN_T_LAST = DateTime.Now, CN_S_PRE = prefix + Vend, CN_N_MAX = 0 }; |
| | | sId = new SYSEntity { CN_S_TYPE = snType, CN_T_LAST = DateTime.Now, CN_S_PRE = prefix + Vend, CN_N_MAX = 0,CN_S_APP_TYPE="WCS" }; |
| | | sysservice.Insert(sId); |
| | | } |
| | | } |
| | |
| | | } |
| | | #endregion [èªå®ä¹ç±»][20250325152141671][TaskProcess] |
| | | } |
| | | public class Utils |
| | | { |
| | | #region [èªå®ä¹ç±»][20250417094750211][Utils] |
| | | |
| | | #endregion [èªå®ä¹ç±»][20250417094750211][Utils] |
| | | } |
| | | } |
| | |
| | | public GZ.Device.PLC.PlcBase ç»´å¸å°æè2=null; |
| | | public GZ.Device.PLC.PlcBase æ·ç¬æè1=null; |
| | | public GZ.Device.PLC.PlcBase æ·ç¬æè2=null; |
| | | public GZ.Device.PLC.PlcBase PLC3=null; |
| | | public GZ.Device.PLC.PlcBase PLC4=null; |
| | | public Device() |
| | | { |
| | | PLC1 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile |
| | |
| | | System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "æ·ç¬æè2"), |
| | | null |
| | | ); |
| | | PLC3 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile |
| | | ( |
| | | System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "PLC3"), |
| | | null |
| | | ); |
| | | PLC4 = GZ.Device.PLC.PlcFactory.CreateInstanceByFile |
| | | ( |
| | | System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "PLC4"), |
| | | null |
| | | ); |
| | | if(System.Configuration.ConfigurationManager.AppSettings["AutoRunPLC"]=="1") |
| | | { |
| | | if(PLC1!=null){PLC1.Run();} |
| | |
| | | if(ç»´å¸å°æè2!=null){ç»´å¸å°æè2.Run();} |
| | | if(æ·ç¬æè1!=null){æ·ç¬æè1.Run();} |
| | | if(æ·ç¬æè2!=null){æ·ç¬æè2.Run();} |
| | | if(PLC3!=null){PLC3.Run();} |
| | | if(PLC4!=null){PLC4.Run();} |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region PLC3 |
| | | public _PLC3 PLC3 = new _PLC3(); |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class _PLC3 |
| | | { |
| | | } |
| | | #endregion |
| | | |
| | | #region PLC4 |
| | | public _PLC4 PLC4 = new _PLC4(); |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class _PLC4 |
| | | { |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | |
| | | #endregion |
| | |
| | | "Name": "S7", |
| | | "Desc": "", |
| | | "SN": "03d560ed-fd80-4d8a-a514-d992e07894b0", |
| | | "Directory": "G:\\1AGIT\\S7", |
| | | "Directory": "C:\\Users\\Administrator\\Desktop\\S7", |
| | | "UpdateTime": "2025-02-26 15:31:01", |
| | | "Version": "1.0.0.0", |
| | | "PlatformVersion": "1.0.4.1", |
| | | "DevelopVersion": "1.0.2.0", |
| | | "Encode": "Ij/zvOgkqNT5SmHrFKCAVQ==", |
| | | "CreationTime": "0001-01-01 00:00:00", |
| | | "LastWriteTime": "2025-04-11 20:39:15" |
| | | "LastWriteTime": "2025-04-18 10:45:51" |
| | | } |
| | |
| | | "Type": "MethodCode", |
| | | "Level": "Item", |
| | | "Statement": "public void SettingInit()", |
| | | "EditCode": "try\r\n{\r\n var jsonFile = System.AppDomain.CurrentDomain.BaseDirectory + \"/Static/config.json\";\r\n using (System.IO.StreamReader file = System.IO.File.OpenText(jsonFile))\r\n {\r\n using (JsonTextReader reader = new JsonTextReader(file))\r\n {\r\n JObject o = (JObject)JToken.ReadFrom(reader);\r\n foreach (Newtonsoft.Json.Linq.JProperty keyValue in o.Properties())\r\n {\r\n Console.WriteLine(keyValue.Name);\r\n if (keyValue.Name == \"HostToAgvServerUrl\")\r\n {\r\n Settings.HostToAgvServerUrl = keyValue.Value.ToString();\r\n }\r\n if (keyValue.Name == \"deviceInfo\") {\r\n Settings.deviceInfos = JsonConvert.DeserializeObject<List<deviceInfo>>(keyValue.Value.ToString());\r\n }\r\n if (keyValue.Name == \"HKbaseUrl\") {\r\n Settings.HKbaseUrl = keyValue.Value.ToString();\r\n }\r\n }\r\n }\r\n }\r\n if(!Settings.FirstG)\r\n \tLogHelper.Info(\"å è½½é
ç½®æä»¶ä¿¡æ¯ 宿\");\r\n}\r\ncatch (Exception ex)\r\n{\r\n LogHelper.Error(\"å è½½é
ç½®æä»¶å¤±è´¥ï¼\" + ex.Message, ex);\r\n}", |
| | | "Code": "public void SettingInit()\r\n{try\r\n{\r\n var jsonFile = System.AppDomain.CurrentDomain.BaseDirectory + \"/Static/config.json\";\r\n using (System.IO.StreamReader file = System.IO.File.OpenText(jsonFile))\r\n {\r\n using (JsonTextReader reader = new JsonTextReader(file))\r\n {\r\n JObject o = (JObject)JToken.ReadFrom(reader);\r\n foreach (Newtonsoft.Json.Linq.JProperty keyValue in o.Properties())\r\n {\r\n Console.WriteLine(keyValue.Name);\r\n if (keyValue.Name == \"HostToAgvServerUrl\")\r\n {\r\n Settings.HostToAgvServerUrl = keyValue.Value.ToString();\r\n }\r\n if (keyValue.Name == \"deviceInfo\") {\r\n Settings.deviceInfos = JsonConvert.DeserializeObject<List<deviceInfo>>(keyValue.Value.ToString());\r\n }\r\n if (keyValue.Name == \"HKbaseUrl\") {\r\n Settings.HKbaseUrl = keyValue.Value.ToString();\r\n }\r\n }\r\n }\r\n }\r\n if(!Settings.FirstG)\r\n \tLogHelper.Info(\"å è½½é
ç½®æä»¶ä¿¡æ¯ 宿\");\r\n}\r\ncatch (Exception ex)\r\n{\r\n LogHelper.Error(\"å è½½é
ç½®æä»¶å¤±è´¥ï¼\" + ex.Message, ex);\r\n}\r\n}", |
| | | "EditCode": "try\r\n{\r\n var jsonFile = System.AppDomain.CurrentDomain.BaseDirectory + \"/Static/config.json\";\r\n using (System.IO.StreamReader file = System.IO.File.OpenText(jsonFile))\r\n {\r\n using (JsonTextReader reader = new JsonTextReader(file))\r\n {\r\n JObject o = (JObject)JToken.ReadFrom(reader);\r\n foreach (Newtonsoft.Json.Linq.JProperty keyValue in o.Properties())\r\n {\r\n Console.WriteLine(keyValue.Name);\r\n if (keyValue.Name == \"HostToAgvServerUrl\")\r\n {\r\n Settings.HostToAgvServerUrl = keyValue.Value.ToString();\r\n }\r\n if (keyValue.Name == \"deviceInfo\") {\r\n Settings.deviceInfos = JsonConvert.DeserializeObject<List<deviceInfo>>(keyValue.Value.ToString());\r\n }\r\n if (keyValue.Name == \"HKbaseUrl\") {\r\n Settings.HKbaseUrl = keyValue.Value.ToString();\r\n }\r\n }\r\n }\r\n }\r\n //if(!Settings.FirstG)\r\n \t//LogHelper.Info(\"å è½½é
ç½®æä»¶ä¿¡æ¯ 宿\");\r\n}\r\ncatch (Exception ex)\r\n{\r\n LogHelper.Error(\"å è½½é
ç½®æä»¶å¤±è´¥ï¼\" + ex.Message, ex);\r\n}", |
| | | "Code": "public void SettingInit()\r\n{try\r\n{\r\n var jsonFile = System.AppDomain.CurrentDomain.BaseDirectory + \"/Static/config.json\";\r\n using (System.IO.StreamReader file = System.IO.File.OpenText(jsonFile))\r\n {\r\n using (JsonTextReader reader = new JsonTextReader(file))\r\n {\r\n JObject o = (JObject)JToken.ReadFrom(reader);\r\n foreach (Newtonsoft.Json.Linq.JProperty keyValue in o.Properties())\r\n {\r\n Console.WriteLine(keyValue.Name);\r\n if (keyValue.Name == \"HostToAgvServerUrl\")\r\n {\r\n Settings.HostToAgvServerUrl = keyValue.Value.ToString();\r\n }\r\n if (keyValue.Name == \"deviceInfo\") {\r\n Settings.deviceInfos = JsonConvert.DeserializeObject<List<deviceInfo>>(keyValue.Value.ToString());\r\n }\r\n if (keyValue.Name == \"HKbaseUrl\") {\r\n Settings.HKbaseUrl = keyValue.Value.ToString();\r\n }\r\n }\r\n }\r\n }\r\n //if(!Settings.FirstG)\r\n \t//LogHelper.Info(\"å è½½é
ç½®æä»¶ä¿¡æ¯ 宿\");\r\n}\r\ncatch (Exception ex)\r\n{\r\n LogHelper.Error(\"å è½½é
ç½®æä»¶å¤±è´¥ï¼\" + ex.Message, ex);\r\n}\r\n}", |
| | | "CusMethod": { |
| | | "Name": "SettingInit", |
| | | "Params": [], |
| | |
| | | "Type": "MethodCode", |
| | | "Level": "Item", |
| | | "Statement": "public void OperateHKTaskStatus(System.Object param1)", |
| | | "EditCode": "HaiKangOrderInfo model = (HaiKangOrderInfo)param1;\r\nif (string.IsNullOrEmpty(model.taskCode))\r\n\treturn;\r\n// æ¥è¯¢ä»»å¡ï¼æ ¹æ®ä»»å¡å·\r\n//var wcsTask = WCSHelper.GetTask(model.taskCode);\r\nITaskRepository MainMissionService = new TaskRepository();\r\nvar wcsTask = MainMissionService.FindEntity(x => model.taskCode == x.S_TASK_NO);\r\nif (wcsTask != null)\r\n{\r\n if (!string.IsNullOrWhiteSpace(model.method))\r\n {\r\n ILocRepository locrep = new LocRepository();\r\n var startloc = locrep.FindEntity(x => x.S_LOC_CODE == wcsTask.S_START_LOC);\r\n var endLoc = locrep.FindEntity(x => x.S_LOC_CODE == wcsTask.S_END_LOC);\r\n\r\n switch (model.method)\r\n {\r\n case \"start\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºæ§è¡ï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n if (wcsTask.S_B_STATE.Trim() == \"å·²æ¨é\")\r\n {\r\n wcsTask.S_B_STATE = \"æ§è¡ä¸\";\r\n wcsTask.T_START_TIME = DateTime.Now;\r\n MainMissionService.Update(wcsTask);\r\n }\r\n break;\r\n case \"outbin\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºåè´§å®æï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"åè´§å®æ\";\r\n startloc.S_LOCK_STATE = \"æ \";\r\n startloc.T_MODIFY = DateTime.Now;\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(startloc);\r\n //LocationHelper.UnLockLoc(wcsTask.S_START_LOC);\r\n break;\r\n case \"end\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºå®æï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"宿\";\r\n wcsTask.T_END_TIME = DateTime.Now;\r\n endLoc.S_LOCK_STATE = \"æ \";\r\n endLoc.T_MODIFY = DateTime.Now;\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(endLoc);\r\n //LocationMethod.JudgeLocation(wcsTask);\r\n break;\r\n case \"cancel\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºåæ¶ï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"åæ¶\";\r\n startloc.S_LOCK_STATE = \"æ \";\r\n endLoc.S_LOCK_STATE = \"æ \";\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(startloc);\r\n locrep.Update(endLoc);\r\n //TaskProcess.OperateStatus(wcsTask, 7);\r\n //WCSHelper.Fail(wcsTask);\r\n break;\r\n case \"apply\":\r\n // å¤æè¯¥ä»»å¡çæ¥é©³ä½æ¯å¦æå
¶ä»å
¥åºæåºåºä»»å¡ï¼å¦ææï¼åå¨çä½çå¾
ï¼å¦ææ²¡æï¼åå
¥\r\n TaskisOk(wcsTask);\r\n break;\r\n }\r\n\r\n TaskProcess.AddActionRecord(model.taskCode, model.method, model.eqpCode, model.data);\r\n //WCSHelper.AddActionRecord(model.taskCode, wcsTask.N_B_STATE, model.eqpCode, model.data);\r\n //è°ç¨ç¬¬ä¸æ¹æ¥å£ï¼å¦ææï¼TaskProcess.ReportStatus\r\n }\r\n else\r\n {\r\n // ææ¶è®¾å®ä¸º0\r\n wcsTask.S_B_STATE = \"䏿¥ç¶æç©º\";\r\n MainMissionService.Update(wcsTask);\r\n //å®å
¨è¯·æ±ç\r\n //TaskProcess.OperateReq(model.taskCode, wcsTask.N_B_STATE, model.eqpCode, model.data);\r\n }\r\n}\r\nelse\r\n{\r\n LogHelper.Info($\"å½åä»»å¡å·ä»»å¡ä¸åå¨{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n}", |
| | | "Code": "public void OperateHKTaskStatus(System.Object param1)\r\n{HaiKangOrderInfo model = (HaiKangOrderInfo)param1;\r\nif (string.IsNullOrEmpty(model.taskCode))\r\n\treturn;\r\n// æ¥è¯¢ä»»å¡ï¼æ ¹æ®ä»»å¡å·\r\n//var wcsTask = WCSHelper.GetTask(model.taskCode);\r\nITaskRepository MainMissionService = new TaskRepository();\r\nvar wcsTask = MainMissionService.FindEntity(x => model.taskCode == x.S_TASK_NO);\r\nif (wcsTask != null)\r\n{\r\n if (!string.IsNullOrWhiteSpace(model.method))\r\n {\r\n ILocRepository locrep = new LocRepository();\r\n var startloc = locrep.FindEntity(x => x.S_LOC_CODE == wcsTask.S_START_LOC);\r\n var endLoc = locrep.FindEntity(x => x.S_LOC_CODE == wcsTask.S_END_LOC);\r\n\r\n switch (model.method)\r\n {\r\n case \"start\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºæ§è¡ï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n if (wcsTask.S_B_STATE.Trim() == \"å·²æ¨é\")\r\n {\r\n wcsTask.S_B_STATE = \"æ§è¡ä¸\";\r\n wcsTask.T_START_TIME = DateTime.Now;\r\n MainMissionService.Update(wcsTask);\r\n }\r\n break;\r\n case \"outbin\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºåè´§å®æï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"åè´§å®æ\";\r\n startloc.S_LOCK_STATE = \"æ \";\r\n startloc.T_MODIFY = DateTime.Now;\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(startloc);\r\n //LocationHelper.UnLockLoc(wcsTask.S_START_LOC);\r\n break;\r\n case \"end\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºå®æï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"宿\";\r\n wcsTask.T_END_TIME = DateTime.Now;\r\n endLoc.S_LOCK_STATE = \"æ \";\r\n endLoc.T_MODIFY = DateTime.Now;\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(endLoc);\r\n //LocationMethod.JudgeLocation(wcsTask);\r\n break;\r\n case \"cancel\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºåæ¶ï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"åæ¶\";\r\n startloc.S_LOCK_STATE = \"æ \";\r\n endLoc.S_LOCK_STATE = \"æ \";\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(startloc);\r\n locrep.Update(endLoc);\r\n //TaskProcess.OperateStatus(wcsTask, 7);\r\n //WCSHelper.Fail(wcsTask);\r\n break;\r\n case \"apply\":\r\n // å¤æè¯¥ä»»å¡çæ¥é©³ä½æ¯å¦æå
¶ä»å
¥åºæåºåºä»»å¡ï¼å¦ææï¼åå¨çä½çå¾
ï¼å¦ææ²¡æï¼åå
¥\r\n TaskisOk(wcsTask);\r\n break;\r\n }\r\n\r\n TaskProcess.AddActionRecord(model.taskCode, model.method, model.eqpCode, model.data);\r\n //WCSHelper.AddActionRecord(model.taskCode, wcsTask.N_B_STATE, model.eqpCode, model.data);\r\n //è°ç¨ç¬¬ä¸æ¹æ¥å£ï¼å¦ææï¼TaskProcess.ReportStatus\r\n }\r\n else\r\n {\r\n // ææ¶è®¾å®ä¸º0\r\n wcsTask.S_B_STATE = \"䏿¥ç¶æç©º\";\r\n MainMissionService.Update(wcsTask);\r\n //å®å
¨è¯·æ±ç\r\n //TaskProcess.OperateReq(model.taskCode, wcsTask.N_B_STATE, model.eqpCode, model.data);\r\n }\r\n}\r\nelse\r\n{\r\n LogHelper.Info($\"å½åä»»å¡å·ä»»å¡ä¸åå¨{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n}\r\n}", |
| | | "EditCode": "HaiKangOrderInfo model = (HaiKangOrderInfo)param1;\r\nif (string.IsNullOrEmpty(model.taskCode))\r\n return;\r\n// æ¥è¯¢ä»»å¡ï¼æ ¹æ®ä»»å¡å·\r\n//var wcsTask = WCSHelper.GetTask(model.taskCode);\r\nITaskRepository MainMissionService = new TaskRepository();\r\nvar wcsTask = MainMissionService.FindEntity(x => model.taskCode == x.S_TASK_NO);\r\nif (wcsTask != null)\r\n{\r\n if (!string.IsNullOrWhiteSpace(model.method))\r\n {\r\n ILocRepository locrep = new LocRepository();\r\n var startloc = locrep.FindEntity(x => x.S_LOC_CODE == wcsTask.S_START_LOC);\r\n var endLoc = locrep.FindEntity(x => x.S_LOC_CODE == wcsTask.S_END_LOC);\r\n\r\n List<string> cntrs = wcsTask.S_CNTRS.Split(',').ToList();\r\n switch (model.method)\r\n {\r\n case \"start\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºæ§è¡ï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n if (wcsTask.S_B_STATE.Trim() == \"å·²æ¨é\")\r\n {\r\n wcsTask.S_B_STATE = \"æ§è¡ä¸\";\r\n wcsTask.T_START_TIME = DateTime.Now;\r\n MainMissionService.Update(wcsTask);\r\n }\r\n break;\r\n case \"outbin\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºåè´§å®æï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"åè´§å®æ\";\r\n\r\n startloc.N_CURRENT_NUM = 0;\r\n startloc.S_LOCK_STATE = \"æ \";\r\n startloc.T_MODIFY = DateTime.Now;\r\n ILocContainerRepository locContainerRepository = new LocContainerRepository();\r\n //var cnr = locContainerRepository.FindList(x => cntrs.Contains(x.S_CNTR_CODE.Trim()) && x.S_LOC_CODE == wcsTask.S_START_LOC);\r\n locContainerRepository.Delete(x => cntrs.Contains(x.S_CNTR_CODE.Trim()) && x.S_LOC_CODE == wcsTask.S_START_LOC);\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(startloc);\r\n\r\n var device = Settings.deviceInfos.Find(x => x.location.Contains(wcsTask.S_START_LOC));\r\n if (device != null)\r\n {\r\n if (device.deviceType == 1)\r\n {\r\n if (device.deviceName.Contains(\"ç»´å¸å°æè\"))\r\n {\r\n string V = device.location.ToList().FindIndex(x => x == wcsTask.S_START_LOC) == 0 ? \"R05\" : \"R06\";\r\n Conn.é»è®¤Redis.SetValue(device.deviceName + \".\" + V, \"true\", device.deviceName + \"Queue\");\r\n }\r\n }\r\n //else if(device.deviceType == 2)\r\n // if (device.deviceName.Contains(\"æ·ç¬æè\"))\r\n // Conn.é»è®¤Redis.SetValue(device.deviceName + \".R10\", \"true\", device.deviceName + \"Queue\");\r\n }\r\n //LocationHelper.UnLockLoc(wcsTask.S_START_LOC);\r\n break;\r\n case \"end\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºå®æï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"宿\";\r\n wcsTask.T_END_TIME = DateTime.Now;\r\n\r\n ILocContainerRepository locContainerRepository2 = new LocContainerRepository();\r\n List<LocContainerEntity> llls = new List<LocContainerEntity>();\r\n foreach (var c in cntrs)\r\n {\r\n var action = new LocContainerEntity()\r\n {\r\n S_ID = Guid.NewGuid().ToString(),\r\n S_STATE = \"ç¼è¾\",\r\n T_CREATE = DateTime.Now,\r\n T_MODIFY = DateTime.Now,\r\n\r\n S_LOC_CODE = endLoc.S_LOC_CODE,\r\n S_CNTR_CODE = c,\r\n S_TYPE = \"\",\r\n };\r\n llls.Add(action);\r\n }\r\n\r\n endLoc.S_LOCK_STATE = \"æ \";\r\n startloc.N_CURRENT_NUM = 1;\r\n endLoc.T_MODIFY = DateTime.Now;\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(endLoc);\r\n locContainerRepository2.Insert(llls);\r\n\r\n var device2 = Settings.deviceInfos.Find(x => x.location.Contains(wcsTask.S_END_LOC));\r\n if (device2 != null)\r\n {\r\n if (device2.deviceType == 1)\r\n {\r\n if (device2.deviceName.Contains(\"ç»´å¸å°æè\"))\r\n {\r\n string V = device2.location.ToList().FindIndex(x => x == wcsTask.S_START_LOC) == 0 ? \"R10\" : \"R11\";\r\n Conn.é»è®¤Redis.SetValue(device2.deviceName + \".\" + V, \"true\", device2.deviceName + \"Queue\");\r\n }\r\n }\r\n //else if(device.deviceType == 2)\r\n // if (device.deviceName.Contains(\"æ·ç¬æè\"))\r\n // Conn.é»è®¤Redis.SetValue(device.deviceName + \".R10\", \"true\", device.deviceName + \"Queue\");\r\n }\r\n\r\n //LocationMethod.JudgeLocation(wcsTask);\r\n break;\r\n case \"cancel\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºåæ¶ï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"åæ¶\";\r\n startloc.S_LOCK_STATE = \"æ \";\r\n endLoc.S_LOCK_STATE = \"æ \";\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(startloc);\r\n locrep.Update(endLoc);\r\n //TaskProcess.OperateStatus(wcsTask, 7);\r\n //WCSHelper.Fail(wcsTask);\r\n break;\r\n case \"apply\":\r\n // å¤æè¯¥ä»»å¡çæ¥é©³ä½æ¯å¦æå
¶ä»å
¥åºæåºåºä»»å¡ï¼å¦ææï¼åå¨çä½çå¾
ï¼å¦ææ²¡æï¼åå
¥\r\n TaskisOk(wcsTask);\r\n break;\r\n }\r\n\r\n TaskProcess.AddActionRecord(model.taskCode, model.method, model.eqpCode, model.data);\r\n //è°ç¨ç¬¬ä¸æ¹æ¥å£ï¼å¦ææï¼TaskProcess.ReportStatus\r\n }\r\n else\r\n {\r\n // ææ¶è®¾å®ä¸º0\r\n wcsTask.S_B_STATE = \"䏿¥ç¶æç©º\";\r\n //å®å
¨è¯·æ±ç\r\n //TaskProcess.OperateReq(model.taskCode, wcsTask.N_B_STATE, model.eqpCode, model.data);\r\n }\r\n}\r\nelse\r\n{\r\n LogHelper.Info($\"å½åä»»å¡å·ä»»å¡ä¸åå¨{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n}", |
| | | "Code": "public void OperateHKTaskStatus(System.Object param1)\r\n{HaiKangOrderInfo model = (HaiKangOrderInfo)param1;\r\nif (string.IsNullOrEmpty(model.taskCode))\r\n return;\r\n// æ¥è¯¢ä»»å¡ï¼æ ¹æ®ä»»å¡å·\r\n//var wcsTask = WCSHelper.GetTask(model.taskCode);\r\nITaskRepository MainMissionService = new TaskRepository();\r\nvar wcsTask = MainMissionService.FindEntity(x => model.taskCode == x.S_TASK_NO);\r\nif (wcsTask != null)\r\n{\r\n if (!string.IsNullOrWhiteSpace(model.method))\r\n {\r\n ILocRepository locrep = new LocRepository();\r\n var startloc = locrep.FindEntity(x => x.S_LOC_CODE == wcsTask.S_START_LOC);\r\n var endLoc = locrep.FindEntity(x => x.S_LOC_CODE == wcsTask.S_END_LOC);\r\n\r\n List<string> cntrs = wcsTask.S_CNTRS.Split(',').ToList();\r\n switch (model.method)\r\n {\r\n case \"start\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºæ§è¡ï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n if (wcsTask.S_B_STATE.Trim() == \"å·²æ¨é\")\r\n {\r\n wcsTask.S_B_STATE = \"æ§è¡ä¸\";\r\n wcsTask.T_START_TIME = DateTime.Now;\r\n MainMissionService.Update(wcsTask);\r\n }\r\n break;\r\n case \"outbin\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºåè´§å®æï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"åè´§å®æ\";\r\n\r\n startloc.N_CURRENT_NUM = 0;\r\n startloc.S_LOCK_STATE = \"æ \";\r\n startloc.T_MODIFY = DateTime.Now;\r\n ILocContainerRepository locContainerRepository = new LocContainerRepository();\r\n //var cnr = locContainerRepository.FindList(x => cntrs.Contains(x.S_CNTR_CODE.Trim()) && x.S_LOC_CODE == wcsTask.S_START_LOC);\r\n locContainerRepository.Delete(x => cntrs.Contains(x.S_CNTR_CODE.Trim()) && x.S_LOC_CODE == wcsTask.S_START_LOC);\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(startloc);\r\n\r\n var device = Settings.deviceInfos.Find(x => x.location.Contains(wcsTask.S_START_LOC));\r\n if (device != null)\r\n {\r\n if (device.deviceType == 1)\r\n {\r\n if (device.deviceName.Contains(\"ç»´å¸å°æè\"))\r\n {\r\n string V = device.location.ToList().FindIndex(x => x == wcsTask.S_START_LOC) == 0 ? \"R05\" : \"R06\";\r\n Conn.é»è®¤Redis.SetValue(device.deviceName + \".\" + V, \"true\", device.deviceName + \"Queue\");\r\n }\r\n }\r\n //else if(device.deviceType == 2)\r\n // if (device.deviceName.Contains(\"æ·ç¬æè\"))\r\n // Conn.é»è®¤Redis.SetValue(device.deviceName + \".R10\", \"true\", device.deviceName + \"Queue\");\r\n }\r\n //LocationHelper.UnLockLoc(wcsTask.S_START_LOC);\r\n break;\r\n case \"end\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºå®æï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"宿\";\r\n wcsTask.T_END_TIME = DateTime.Now;\r\n\r\n ILocContainerRepository locContainerRepository2 = new LocContainerRepository();\r\n List<LocContainerEntity> llls = new List<LocContainerEntity>();\r\n foreach (var c in cntrs)\r\n {\r\n var action = new LocContainerEntity()\r\n {\r\n S_ID = Guid.NewGuid().ToString(),\r\n S_STATE = \"ç¼è¾\",\r\n T_CREATE = DateTime.Now,\r\n T_MODIFY = DateTime.Now,\r\n\r\n S_LOC_CODE = endLoc.S_LOC_CODE,\r\n S_CNTR_CODE = c,\r\n S_TYPE = \"\",\r\n };\r\n llls.Add(action);\r\n }\r\n\r\n endLoc.S_LOCK_STATE = \"æ \";\r\n startloc.N_CURRENT_NUM = 1;\r\n endLoc.T_MODIFY = DateTime.Now;\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(endLoc);\r\n locContainerRepository2.Insert(llls);\r\n\r\n var device2 = Settings.deviceInfos.Find(x => x.location.Contains(wcsTask.S_END_LOC));\r\n if (device2 != null)\r\n {\r\n if (device2.deviceType == 1)\r\n {\r\n if (device2.deviceName.Contains(\"ç»´å¸å°æè\"))\r\n {\r\n string V = device2.location.ToList().FindIndex(x => x == wcsTask.S_START_LOC) == 0 ? \"R10\" : \"R11\";\r\n Conn.é»è®¤Redis.SetValue(device2.deviceName + \".\" + V, \"true\", device2.deviceName + \"Queue\");\r\n }\r\n }\r\n //else if(device.deviceType == 2)\r\n // if (device.deviceName.Contains(\"æ·ç¬æè\"))\r\n // Conn.é»è®¤Redis.SetValue(device.deviceName + \".R10\", \"true\", device.deviceName + \"Queue\");\r\n }\r\n\r\n //LocationMethod.JudgeLocation(wcsTask);\r\n break;\r\n case \"cancel\":\r\n LogHelper.Info($\"海康车任å¡ç¶æåæ´ä¸ºåæ¶ï¼ä»»å¡å·ä¸ºï¼{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n wcsTask.S_B_STATE = \"åæ¶\";\r\n startloc.S_LOCK_STATE = \"æ \";\r\n endLoc.S_LOCK_STATE = \"æ \";\r\n MainMissionService.Update(wcsTask);\r\n locrep.Update(startloc);\r\n locrep.Update(endLoc);\r\n //TaskProcess.OperateStatus(wcsTask, 7);\r\n //WCSHelper.Fail(wcsTask);\r\n break;\r\n case \"apply\":\r\n // å¤æè¯¥ä»»å¡çæ¥é©³ä½æ¯å¦æå
¶ä»å
¥åºæåºåºä»»å¡ï¼å¦ææï¼åå¨çä½çå¾
ï¼å¦ææ²¡æï¼åå
¥\r\n TaskisOk(wcsTask);\r\n break;\r\n }\r\n\r\n TaskProcess.AddActionRecord(model.taskCode, model.method, model.eqpCode, model.data);\r\n //è°ç¨ç¬¬ä¸æ¹æ¥å£ï¼å¦ææï¼TaskProcess.ReportStatus\r\n }\r\n else\r\n {\r\n // ææ¶è®¾å®ä¸º0\r\n wcsTask.S_B_STATE = \"䏿¥ç¶æç©º\";\r\n //å®å
¨è¯·æ±ç\r\n //TaskProcess.OperateReq(model.taskCode, wcsTask.N_B_STATE, model.eqpCode, model.data);\r\n }\r\n}\r\nelse\r\n{\r\n LogHelper.Info($\"å½åä»»å¡å·ä»»å¡ä¸åå¨{model.taskCode}\", \"agvæåäº¤äºæ¥å¿\");\r\n}\r\n}", |
| | | "CusMethod": { |
| | | "Name": "OperateHKTaskStatus", |
| | | "Params": [ |
| | |
| | | "Type": "MethodCode", |
| | | "Level": "Item", |
| | | "Statement": "public System.Boolean RunTask(GZ.DB.Entity.OIDATABASE.TaskEntity task)", |
| | | "EditCode": "\r\n ILocRepository locrep = new LocRepository();\r\n var startloc = locrep.FindEntity(x => x.S_LOC_CODE == task.S_START_LOC);\r\n var endLoc = locrep.FindEntity(x => x.S_LOC_CODE == task.S_END_LOC);\r\n if (startloc == null || endLoc == null)\r\n {\r\n LogHelper.Info($\"{task.S_TASK_NO}-ä»»å¡èµ·/ç»ç¹ 没æ¾å°æ°æ®ã\");\r\n return false;\r\n }\r\n var start = startloc.S_AGV_SITE;\r\n var end = endLoc.S_AGV_SITE;\r\n\r\n // å建两个路å¾\r\n var positions = new List<positionCodePath>(){\r\n new positionCodePath()\r\n {\r\n positionCode = start,\r\n Type = \"00\"\r\n },\r\n new positionCodePath()\r\n {\r\n positionCode = end,\r\n Type = \"00\"\r\n }\r\n };\r\n\r\n //è°ç¬¬ä¸æ¹æ¥å£\r\n var model = new HaiKangOrderInfo\r\n {\r\n taskCode = task.S_TASK_NO,\r\n ctnrCode = task.S_CNTRS,\r\n taskTyp = \"F02\",\r\n positionCodePath = positions\r\n };\r\n\r\n return CreateOrder(model);", |
| | | "Code": "public System.Boolean RunTask(GZ.DB.Entity.OIDATABASE.TaskEntity task)\r\n{\r\n ILocRepository locrep = new LocRepository();\r\n var startloc = locrep.FindEntity(x => x.S_LOC_CODE == task.S_START_LOC);\r\n var endLoc = locrep.FindEntity(x => x.S_LOC_CODE == task.S_END_LOC);\r\n if (startloc == null || endLoc == null)\r\n {\r\n LogHelper.Info($\"{task.S_TASK_NO}-ä»»å¡èµ·/ç»ç¹ 没æ¾å°æ°æ®ã\");\r\n return false;\r\n }\r\n var start = startloc.S_AGV_SITE;\r\n var end = endLoc.S_AGV_SITE;\r\n\r\n // å建两个路å¾\r\n var positions = new List<positionCodePath>(){\r\n new positionCodePath()\r\n {\r\n positionCode = start,\r\n Type = \"00\"\r\n },\r\n new positionCodePath()\r\n {\r\n positionCode = end,\r\n Type = \"00\"\r\n }\r\n };\r\n\r\n //è°ç¬¬ä¸æ¹æ¥å£\r\n var model = new HaiKangOrderInfo\r\n {\r\n taskCode = task.S_TASK_NO,\r\n ctnrCode = task.S_CNTRS,\r\n taskTyp = \"F02\",\r\n positionCodePath = positions\r\n };\r\n\r\n return CreateOrder(model);\r\n}", |
| | | "EditCode": "\r\n ILocRepository locrep = new LocRepository();\r\n var startloc = locrep.FindEntity(x => x.S_LOC_CODE == task.S_START_LOC);\r\n var endLoc = locrep.FindEntity(x => x.S_LOC_CODE == task.S_END_LOC);\r\n if (startloc == null || endLoc == null)\r\n {\r\n LogHelper.Info($\"{task.S_TASK_NO}-ä»»å¡èµ·/ç»ç¹ 没æ¾å°æ°æ®ã\");\r\n return false;\r\n }\r\n var start = startloc.S_AGV_SITE.Trim();\r\n var end = endLoc.S_AGV_SITE.Trim();\r\n\r\n // å建两个路å¾\r\n var positions = new List<positionCodePath>(){\r\n new positionCodePath()\r\n {\r\n positionCode = start,\r\n Type = \"00\"\r\n },\r\n new positionCodePath()\r\n {\r\n positionCode = end,\r\n Type = \"00\"\r\n }\r\n };\r\n\r\n //è°ç¬¬ä¸æ¹æ¥å£\r\n var model = new HaiKangOrderInfo\r\n {\r\n reqCode=task.S_TASK_NO.Trim(),\r\n reqTime=DateTime.Now.ToString(\"yyyy-MM-dd HH:mm:ss\"),\r\n taskCode = task.S_TASK_NO.Trim(),\r\n ctnrCode = task.S_CNTRS,\r\n taskTyp = \"F01\",\r\n positionCodePath = positions\r\n };\r\n\r\n return CreateOrder(model);", |
| | | "Code": "public System.Boolean RunTask(GZ.DB.Entity.OIDATABASE.TaskEntity task)\r\n{\r\n ILocRepository locrep = new LocRepository();\r\n var startloc = locrep.FindEntity(x => x.S_LOC_CODE == task.S_START_LOC);\r\n var endLoc = locrep.FindEntity(x => x.S_LOC_CODE == task.S_END_LOC);\r\n if (startloc == null || endLoc == null)\r\n {\r\n LogHelper.Info($\"{task.S_TASK_NO}-ä»»å¡èµ·/ç»ç¹ 没æ¾å°æ°æ®ã\");\r\n return false;\r\n }\r\n var start = startloc.S_AGV_SITE.Trim();\r\n var end = endLoc.S_AGV_SITE.Trim();\r\n\r\n // å建两个路å¾\r\n var positions = new List<positionCodePath>(){\r\n new positionCodePath()\r\n {\r\n positionCode = start,\r\n Type = \"00\"\r\n },\r\n new positionCodePath()\r\n {\r\n positionCode = end,\r\n Type = \"00\"\r\n }\r\n };\r\n\r\n //è°ç¬¬ä¸æ¹æ¥å£\r\n var model = new HaiKangOrderInfo\r\n {\r\n reqCode=task.S_TASK_NO.Trim(),\r\n reqTime=DateTime.Now.ToString(\"yyyy-MM-dd HH:mm:ss\"),\r\n taskCode = task.S_TASK_NO.Trim(),\r\n ctnrCode = task.S_CNTRS,\r\n taskTyp = \"F01\",\r\n positionCodePath = positions\r\n };\r\n\r\n return CreateOrder(model);\r\n}", |
| | | "CusMethod": { |
| | | "Name": "RunTask", |
| | | "Params": [ |
| | |
| | | "Type": "ClassCode", |
| | | "Level": "Item", |
| | | "Statement": "public class SYSHelper", |
| | | "EditCode": "private static object locker = new object();\r\ninternal static int GetSerialNumber(string snType, string prefix, string Vend = \"0\")\r\n{\r\n if (Vend == \"1\")\r\n Vend = DateTime.Now.ToString(\"yyMMdd\");\r\n int result = 0;\r\n lock (locker)\r\n {\r\n ISYSRepository sysservice = new SYSRepository();\r\n var sId = sysservice.FindEntity(a => a.CN_S_TYPE.Trim() == snType && a.CN_S_PRE.Trim() == prefix + Vend);\r\n\r\n if (sId != null)\r\n {\r\n sId.CN_N_MAX++;\r\n sId.CN_T_LAST = DateTime.Now;\r\n sysservice.Update(sId);\r\n result = sId.CN_N_MAX;\r\n }\r\n else\r\n {\r\n sId = new SYSEntity { CN_S_TYPE = snType, CN_T_LAST = DateTime.Now, CN_S_PRE = prefix + Vend, CN_N_MAX = 0 };\r\n sysservice.Insert(sId);\r\n }\r\n }\r\n return result;\r\n}", |
| | | "Code": "public class SYSHelper\r\n{private static object locker = new object();\r\ninternal static int GetSerialNumber(string snType, string prefix, string Vend = \"0\")\r\n{\r\n if (Vend == \"1\")\r\n Vend = DateTime.Now.ToString(\"yyMMdd\");\r\n int result = 0;\r\n lock (locker)\r\n {\r\n ISYSRepository sysservice = new SYSRepository();\r\n var sId = sysservice.FindEntity(a => a.CN_S_TYPE.Trim() == snType && a.CN_S_PRE.Trim() == prefix + Vend);\r\n\r\n if (sId != null)\r\n {\r\n sId.CN_N_MAX++;\r\n sId.CN_T_LAST = DateTime.Now;\r\n sysservice.Update(sId);\r\n result = sId.CN_N_MAX;\r\n }\r\n else\r\n {\r\n sId = new SYSEntity { CN_S_TYPE = snType, CN_T_LAST = DateTime.Now, CN_S_PRE = prefix + Vend, CN_N_MAX = 0 };\r\n sysservice.Insert(sId);\r\n }\r\n }\r\n return result;\r\n}\r\n}", |
| | | "EditCode": "private static object locker = new object();\r\ninternal static int GetSerialNumber(string snType, string prefix, string Vend = \"0\")\r\n{\r\n if (Vend == \"1\")\r\n Vend = DateTime.Now.ToString(\"yyMMdd\");\r\n int result = 0;\r\n lock (locker)\r\n {\r\n SYSRepository sysservice = new SYSRepository();\r\n var sId = sysservice.FindEntity(a => a.CN_S_TYPE.Trim() == snType && a.CN_S_PRE.Trim() == prefix + Vend);\r\n\r\n if (sId != null)\r\n {\r\n \r\n sId.CN_N_MAX++;\r\n sId.CN_T_LAST = DateTime.Now;\r\n //sysservice.Update(sId);\r\n\r\n sysservice.dbcontext.Set<SYSEntity>().Attach(sId);\r\n sysservice.dbcontext.Entry(sId).Property(x => x.CN_N_MAX).CurrentValue = sId.CN_N_MAX;\r\n\r\n sysservice.dbcontext.Entry(sId).Property(x => x.CN_N_MAX).IsModified = true;\r\n sysservice.dbcontext.Entry(sId).Property(x=>x.CN_T_LAST).CurrentValue = sId.CN_T_LAST;\r\n\r\n sysservice.dbcontext.Entry(sId).Property(x=>x.CN_T_LAST).IsModified = true;\r\n \r\n sysservice.dbcontext.SaveChanges();\r\n result = sId.CN_N_MAX;\r\n }\r\n else\r\n {\r\n sId = new SYSEntity { CN_S_TYPE = snType, CN_T_LAST = DateTime.Now, CN_S_PRE = prefix + Vend, CN_N_MAX = 0,CN_S_APP_TYPE=\"WCS\" };\r\n sysservice.Insert(sId);\r\n }\r\n }\r\n return result;\r\n}", |
| | | "Code": "public class SYSHelper\r\n{private static object locker = new object();\r\ninternal static int GetSerialNumber(string snType, string prefix, string Vend = \"0\")\r\n{\r\n if (Vend == \"1\")\r\n Vend = DateTime.Now.ToString(\"yyMMdd\");\r\n int result = 0;\r\n lock (locker)\r\n {\r\n SYSRepository sysservice = new SYSRepository();\r\n var sId = sysservice.FindEntity(a => a.CN_S_TYPE.Trim() == snType && a.CN_S_PRE.Trim() == prefix + Vend);\r\n\r\n if (sId != null)\r\n {\r\n \r\n sId.CN_N_MAX++;\r\n sId.CN_T_LAST = DateTime.Now;\r\n //sysservice.Update(sId);\r\n\r\n sysservice.dbcontext.Set<SYSEntity>().Attach(sId);\r\n sysservice.dbcontext.Entry(sId).Property(x => x.CN_N_MAX).CurrentValue = sId.CN_N_MAX;\r\n\r\n sysservice.dbcontext.Entry(sId).Property(x => x.CN_N_MAX).IsModified = true;\r\n sysservice.dbcontext.Entry(sId).Property(x=>x.CN_T_LAST).CurrentValue = sId.CN_T_LAST;\r\n\r\n sysservice.dbcontext.Entry(sId).Property(x=>x.CN_T_LAST).IsModified = true;\r\n \r\n sysservice.dbcontext.SaveChanges();\r\n result = sId.CN_N_MAX;\r\n }\r\n else\r\n {\r\n sId = new SYSEntity { CN_S_TYPE = snType, CN_T_LAST = DateTime.Now, CN_S_PRE = prefix + Vend, CN_N_MAX = 0,CN_S_APP_TYPE=\"WCS\" };\r\n sysservice.Insert(sId);\r\n }\r\n }\r\n return result;\r\n}\r\n}", |
| | | "CusMethod": { |
| | | "Name": "", |
| | | "Params": [], |
| | |
| | | "InheritClass": "", |
| | | "Inherits": [] |
| | | } |
| | | }, |
| | | { |
| | | "ID": "20250417094750211", |
| | | "Name": "Utils", |
| | | "Desc": "", |
| | | "ParentID": "", |
| | | "Type": "ClassCode", |
| | | "Level": "Item", |
| | | "Statement": "public class Utils", |
| | | "EditCode": "", |
| | | "Code": "public class Utils\r\n{\r\n}", |
| | | "CusMethod": { |
| | | "Name": "", |
| | | "Params": [], |
| | | "ReturnType": "" |
| | | }, |
| | | "CusClass": { |
| | | "Name": "Utils", |
| | | "InheritClass": "", |
| | | "Inherits": [] |
| | | } |
| | | } |
| | | ], |
| | | "CreationTime": "2025-02-26 15:31:23", |
| | | "LastWriteTime": "2025-04-11 20:40:37", |
| | | "LastWriteTime": "2025-04-18 10:41:31", |
| | | "HasSaved": true |
| | | } |
| | |
| | | "ID": "20250323151832119", |
| | | "Name": "Program4", |
| | | "Desc": "", |
| | | "Content": "Conn.é»è®¤Redis.SetValue(\"西é¨å2.Param3\",\"300\",\"西é¨å2Queue\");", |
| | | "ContentCopy": "Conn.é»è®¤Redis.SetValue(\"西é¨å2.Param3\",\"300\",\"西é¨å2Queue\");", |
| | | "Content": "//Conn.é»è®¤Redis.SetValue(\"西é¨å2.Param3\",\"300\",\"西é¨å2Queue\");\r\n\r\n List<string> locs = new List<string>() { \"vxr1l\", \"vx1r\", \"vxr1c1\", \"vxr1c2\", \"vxr2l\", \"vxr2r\", \"vxr2c1\", \"vxr2c2\" };\r\n List<string> sites = new List<string>() { \"196365BB283162\", \"193841BB283149\", \"198756BB287300\", \"198767BB286133\", \"206987BB282931\", \"204460BB282975\", \"209405BB287057\", \"209377BB285899\" };\r\n\r\n LocRepository locservice = new LocRepository();\r\n for (int i = 0; i < locs.Count; i++)\r\n {\r\n string loccode = locs[i];\r\n string sitesss = sites[i];\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == loccode);\r\n if (loc == null)\r\n {\r\n locservice.Insert(new LocEntity\r\n {\r\n S_ID = Guid.NewGuid().ToString(),\r\n S_STATE = \"ç¼è¾\",\r\n T_CREATE = DateTime.Now,\r\n T_MODIFY = DateTime.Now,\r\n S_DEEP = \"vxr\",\r\n\r\n S_LOC_CODE = loccode,\r\n S_AGV_SITE = sitesss,\r\n\r\n S_LOCK_STATE = \"æ \",\r\n N_ROW = 1,\r\n N_COL = 1,\r\n N_AGV_CODE = 0,\r\n N_AGV_SITE_LAYER = 0,\r\n N_CAPACITY = 1,\r\n N_CURRENT_NUM = 0,\r\n S_TYPE = \"\",\r\n\r\n });\r\n }\r\n }\r\n // TaskProcess.CreateTask(\"\", locs[6], locs[7], \"test\", 9, new List<string> { \"test\" }, 1, 1, 1);\r\n", |
| | | "ContentCopy": "//Conn.é»è®¤Redis.SetValue(\"西é¨å2.Param3\",\"300\",\"西é¨å2Queue\");\r\n\r\n List<string> locs = new List<string>() { \"vxr1l\", \"vx1r\", \"vxr1c1\", \"vxr1c2\", \"vxr2l\", \"vxr2r\", \"vxr2c1\", \"vxr2c2\" };\r\n List<string> sites = new List<string>() { \"196365BB283162\", \"193841BB283149\", \"198756BB287300\", \"198767BB286133\", \"206987BB282931\", \"204460BB282975\", \"209405BB287057\", \"209377BB285899\" };\r\n\r\n LocRepository locservice = new LocRepository();\r\n for (int i = 0; i < locs.Count; i++)\r\n {\r\n string loccode = locs[i];\r\n string sitesss = sites[i];\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == loccode);\r\n if (loc == null)\r\n {\r\n locservice.Insert(new LocEntity\r\n {\r\n S_ID = Guid.NewGuid().ToString(),\r\n S_STATE = \"ç¼è¾\",\r\n T_CREATE = DateTime.Now,\r\n T_MODIFY = DateTime.Now,\r\n S_DEEP = \"vxr\",\r\n\r\n S_LOC_CODE = loccode,\r\n S_AGV_SITE = sitesss,\r\n\r\n S_LOCK_STATE = \"æ \",\r\n N_ROW = 1,\r\n N_COL = 1,\r\n N_AGV_CODE = 0,\r\n N_AGV_SITE_LAYER = 0,\r\n N_CAPACITY = 1,\r\n N_CURRENT_NUM = 0,\r\n S_TYPE = \"\",\r\n\r\n });\r\n }\r\n }\r\n // TaskProcess.CreateTask(\"\", locs[6], locs[7], \"test\", 9, new List<string> { \"test\" }, 1, 1, 1);\r\n", |
| | | "ParentID": "20250226153120175", |
| | | "Children": [], |
| | | "Type": "Program", |
| | | "Property": { |
| | | "SyncExec": "False", |
| | | "RepeatExec": "None", |
| | | "SyncExec": "True", |
| | | "RepeatExec": "Count", |
| | | "ExceCount": 1, |
| | | "ExceInternal": 3000, |
| | | "StartCondition": { |
| | |
| | | "Expression": "", |
| | | "Judge": "", |
| | | "Command": {}, |
| | | "HmiEvent": {} |
| | | "HmiEvent": { |
| | | "20250306140515428": [ |
| | | "Open" |
| | | ] |
| | | } |
| | | }, |
| | | "EndCondition": { |
| | | "Type": "None", |
| | |
| | | "ID": "20250325083149366", |
| | | "Name": "ç»´å¸å°æè1", |
| | | "Desc": "", |
| | | "Content": "\r\nvar VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"ç»´å¸å°æè1\");\r\n\r\nif (VERX != null)\r\n{\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.wxr1.R44)\r\n {\r\n startLoc = v1l;\r\n }\r\n else if (Tag.wxr1.R46)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"F\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"vxr1䏿\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"E\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"vxr1ä¸ç©ºæç\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n}", |
| | | "ContentCopy": "\r\nvar VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"ç»´å¸å°æè1\");\r\n\r\nif (VERX != null)\r\n{\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.wxr1.R44)\r\n {\r\n startLoc = v1l;\r\n }\r\n else if (Tag.wxr1.R46)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"F\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"vxr1䏿\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"E\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"vxr1ä¸ç©ºæç\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n}", |
| | | "Content": "\r\nvar VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"ç»´å¸å°æè1\");\r\n\r\nif (VERX != null)\r\n{\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.wxr1.R44&&Tag.wxr1.R10)\r\n {\r\n startLoc = v1l;\r\n }\r\n else if (Tag.wxr1.R46&&Tag.wxr1.R11)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"F\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"vxr1䏿\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"E\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"vxr1ä¸ç©ºæç\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n}", |
| | | "ContentCopy": "\r\nvar VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"ç»´å¸å°æè1\");\r\n\r\nif (VERX != null)\r\n{\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.wxr1.R44&&Tag.wxr1.R10)\r\n {\r\n startLoc = v1l;\r\n }\r\n else if (Tag.wxr1.R46&&Tag.wxr1.R11)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"F\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"vxr1䏿\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"E\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"vxr1ä¸ç©ºæç\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n}", |
| | | "ParentID": "20250325083047245", |
| | | "Children": [], |
| | | "Type": "Program", |
| | |
| | | "ID": "20250325083325390", |
| | | "Name": "æ·ç¬æè1", |
| | | "Desc": "", |
| | | "Content": "//jsz1æ·ç¬æè1\r\nvar VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"æ·ç¬æè1\");\r\n\r\nif (VERX != null)\r\n{\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.js1.M40)\r\n {\r\n startLoc = v1l;\r\n }\r\n else if (Tag.js1.M41)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"E\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS1ä¸ç©º\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"F\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS1䏿\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n}", |
| | | "ContentCopy": "//jsz1æ·ç¬æè1\r\nvar VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"æ·ç¬æè1\");\r\n\r\nif (VERX != null)\r\n{\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.js1.M40)\r\n {\r\n startLoc = v1l;\r\n }\r\n else if (Tag.js1.M41)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"E\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS1ä¸ç©º\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"F\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS1䏿\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n}", |
| | | "Content": "//jsz1æ·ç¬æè1\r\nvar VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"æ·ç¬æè1\");\r\n\r\nif (VERX != null)\r\n{\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.js1.M40==1)\r\n {\r\n startLoc = v1l;\r\n }\r\n else if (Tag.js1.M41==1)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"E\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS1ä¸ç©º\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"F\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS1䏿\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n}", |
| | | "ContentCopy": "//jsz1æ·ç¬æè1\r\nvar VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"æ·ç¬æè1\");\r\n\r\nif (VERX != null)\r\n{\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.js1.M40==1)\r\n {\r\n startLoc = v1l;\r\n }\r\n else if (Tag.js1.M41==1)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"E\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS1ä¸ç©º\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"F\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS1䏿\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n}", |
| | | "ParentID": "20250325083047245", |
| | | "Children": [], |
| | | "Type": "Program", |
| | |
| | | "ID": "20250325083326611", |
| | | "Name": "æ·ç¬æè2", |
| | | "Desc": "", |
| | | "Content": "//jsz2æ·ç¬æè2\r\n\r\n var VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"æ·ç¬æè2\");\r\n\r\n if (VERX != null)\r\n {\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.js2.M40)\r\n\t\t\t\t {\r\n\t\t\t\t startLoc = v1l;\r\n\t\t\t\t }\r\n\t\t\t\t else if (Tag.js2.M41)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"E\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS2ä¸ç©º\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"F\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS2䏿\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n }", |
| | | "ContentCopy": "//jsz2æ·ç¬æè2\r\n\r\n var VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"æ·ç¬æè2\");\r\n\r\n if (VERX != null)\r\n {\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.js2.M40)\r\n\t\t\t\t {\r\n\t\t\t\t startLoc = v1l;\r\n\t\t\t\t }\r\n\t\t\t\t else if (Tag.js2.M41)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"E\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS2ä¸ç©º\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"F\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS2䏿\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n }", |
| | | "Content": "//jsz2æ·ç¬æè2\r\n\r\n var VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"æ·ç¬æè2\");\r\n\r\n if (VERX != null)\r\n {\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.js2.M40==1)\r\n\t\t\t\t {\r\n\t\t\t\t startLoc = v1l;\r\n\t\t\t\t }\r\n\t\t\t\t else if (Tag.js2.M41==1)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"E\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS2ä¸ç©º\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"F\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS2䏿\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n }", |
| | | "ContentCopy": "//jsz2æ·ç¬æè2\r\n\r\n var VERX = Settings.deviceInfos?.Find(x => x.deviceName == \"æ·ç¬æè2\");\r\n\r\n if (VERX != null)\r\n {\r\nLocRepository locservice = new LocRepository();\r\nLocContainerRepository loccontainerservice = new LocContainerRepository();\r\nLocEntity v1l = null;\r\nLocEntity v1r = null;\r\nLocEntity startLoc = null;\r\nLocEntity endLoc = null;\r\nList<LocEntity> emptyLoc = new List<LocEntity>();\r\n if (!string.IsNullOrEmpty(VERX.location[0]))\r\n {\r\n v1l = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[0]);\r\n //if (startLoc == null && startLoc.S_LOCK_STATE == \"æ \")\r\n if (v1l != null && v1l.N_CURRENT_NUM == 0 && v1l.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1l);\r\n }\r\n if (!string.IsNullOrEmpty(VERX.location[1]))\r\n {\r\n v1r = locservice.FindEntity(x => x.S_LOC_CODE == VERX.location[1]);\r\n if (v1r != null && v1r.N_CURRENT_NUM == 0 && v1r.S_LOCK_STATE == \"æ \")\r\n emptyLoc.Add(v1r);\r\n }\r\n if (Tag.js2.M40==1)\r\n\t\t\t\t {\r\n\t\t\t\t startLoc = v1l;\r\n\t\t\t\t }\r\n\t\t\t\t else if (Tag.js2.M41==1)\r\n {\r\n startLoc = v1r;\r\n }\r\n\r\n ContainerRepository containerservice = new ContainerRepository();\r\n if (startLoc != null)\r\n {\r\n if (startLoc.N_CURRENT_NUM == 1)\r\n {\r\n if (startLoc.T_FULL_TIME == null)\r\n {\r\n //locservice.dbcontext.Set<LocEntity>().Attach(startLoc);\r\n startLoc.T_FULL_TIME = DateTime.Now;\r\n locservice.Update(startLoc);\r\n //locservice.dbcontext.Entry(startLoc).Property(x => x.T_FULL_TIME).IsModified = true;\r\n //locservice.dbcontext.SaveChanges();\r\n }\r\n if (startLoc.T_FULL_TIME != null && DateTime.Now.Subtract(startLoc.T_FULL_TIME ?? DateTime.Now).TotalSeconds > 30)\r\n {\r\n LocContainerEntity ent = loccontainerservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n foreach (var item in VERX.deviceNo)\r\n {\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == startLoc.S_LOC_CODE);\r\n if (loc != null)\r\n {\r\n if (loc.N_CURRENT_NUM == 0)\r\n {\r\n endLoc = loc;\r\n break;\r\n }\r\n }\r\n }\r\n if (endLoc != null && ent != null)\r\n {\r\n var c = containerservice.FindEntity(x => x.S_CODE == ent.S_CNTR_CODE);\r\n c.S_TYPE = \"E\";\r\n containerservice.Update(c);\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS2ä¸ç©º\", 6, new List<string> { ent?.S_CNTR_CODE ?? \"TP\" + Settings.GetTimeStamp() }, 1, 1, 1);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (emptyLoc.Any())\r\n {\r\n List<string> exclist = new List<string>();\r\n next:\r\n endLoc = emptyLoc.First();\r\n emptyLoc.Remove(endLoc);\r\n startLoc = null;\r\n ContainerEntity c = null;\r\n foreach (var lcode in VERX.deviceNo)\r\n {\r\n if (exclist.Contains(lcode))\r\n continue;\r\n var loc = locservice.FindEntity(x => x.S_LOC_CODE == lcode && x.S_LOCK_STATE == \"æ \" && x.N_CURRENT_NUM == 1);\r\n if (loc != null)\r\n {\r\n var cntr = loccontainerservice.FindEntity(x => x.S_LOC_CODE == lcode);\r\n if (cntr != null)\r\n {\r\n c = containerservice.FindEntity(x => x.S_CODE == cntr.S_CNTR_CODE);\r\n if (c != null && c.S_TYPE == \"F\")\r\n {\r\n startLoc = loc;\r\n }\r\n }\r\n }\r\n exclist.Add(lcode);\r\n if (startLoc != null)\r\n break;\r\n }\r\n if (startLoc != null)\r\n {\r\n TaskProcess.CreateTask(\"\", startLoc.S_LOC_CODE, endLoc.S_LOC_CODE, \"JS2䏿\", 7, new List<string> { c?.S_CODE }, 1, 1, 1);\r\n }\r\n if (emptyLoc.Any()) goto next;\r\n }\r\n }", |
| | | "ParentID": "20250325083047245", |
| | | "Children": [], |
| | | "Type": "Program", |
| | |
| | | } |
| | | ], |
| | | "CreationTime": "2025-02-26 15:31:20", |
| | | "LastWriteTime": "2025-04-11 20:39:15", |
| | | "LastWriteTime": "2025-04-17 09:48:04", |
| | | "HasSaved": true |
| | | } |
| | |
| | | { |
| | | "HostToAgvServerUrl": "vvvvvvvvvvvv", |
| | | "HKbaseUrl": "http://172.16.10.42:8182/", |
| | | "HKbaseUrl": "http://10.221.55.249:8181/", |
| | | "deviceInfo": [ |
| | | { |
| | | "address": "0", |
| | |
| | | "GroupID": "20250411091213369", |
| | | "GroupFullName": "Tag.wxr1", |
| | | "FullName": "Tag.wxr1.R52" |
| | | }, |
| | | { |
| | | "ID": "20250415152407780", |
| | | "Name": "wl", |
| | | "Desc": "1å·æ°é", |
| | | "Type": "System.Int16", |
| | | "ShortType": "", |
| | | "MinVal": "0", |
| | | "MaxVal": "", |
| | | "DefaultVal": "0", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091213369", |
| | | "GroupFullName": "Tag.wxr1", |
| | | "FullName": "Tag.wxr1.wl" |
| | | }, |
| | | { |
| | | "ID": "20250415152457283", |
| | | "Name": "w143", |
| | | "Desc": "1å·ä¸æ¬¡å次æåä¿¡å·ï¼ä¸æ¬¡ä¸ºtrue ä¸è¿ä¸ªä¸ºfalse å°±w1 å 1", |
| | | "Type": "System.Boolean", |
| | | "ShortType": "", |
| | | "MinVal": "0", |
| | | "MaxVal": "", |
| | | "DefaultVal": "false", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091213369", |
| | | "GroupFullName": "Tag.wxr1", |
| | | "FullName": "Tag.wxr1.w143" |
| | | }, |
| | | { |
| | | "ID": "20250415152710952", |
| | | "Name": "w2", |
| | | "Desc": "2å·æ°é", |
| | | "Type": "System.Int16", |
| | | "ShortType": "", |
| | | "MinVal": "0", |
| | | "MaxVal": "", |
| | | "DefaultVal": "0", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091213369", |
| | | "GroupFullName": "Tag.wxr1", |
| | | "FullName": "Tag.wxr1.w2" |
| | | }, |
| | | { |
| | | "ID": "20250415152711420", |
| | | "Name": "w245", |
| | | "Desc": "2å·ä¸æ¬¡å次æåä¿¡å·ï¼ä¸æ¬¡ä¸ºtrue ä¸è¿ä¸ªä¸ºfalse å°±w2 å 1", |
| | | "Type": "System.Boolean", |
| | | "ShortType": "", |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "false", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091213369", |
| | | "GroupFullName": "Tag.wxr1", |
| | | "FullName": "Tag.wxr1.w245" |
| | | } |
| | | ], |
| | | "Children": [] |
| | |
| | | "GroupID": "20250411091232150", |
| | | "GroupFullName": "Tag.wxr2", |
| | | "FullName": "Tag.wxr2.R52" |
| | | }, |
| | | { |
| | | "ID": "202504151524077801", |
| | | "Name": "wl", |
| | | "Desc": "1å·æ°é", |
| | | "Type": "System.Int16", |
| | | "ShortType": "", |
| | | "MinVal": "0", |
| | | "MaxVal": "", |
| | | "DefaultVal": "0", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091232150", |
| | | "GroupFullName": "Tag.wxr1", |
| | | "FullName": "Tag.wxr1.wl" |
| | | }, |
| | | { |
| | | "ID": "202504151524572831", |
| | | "Name": "w143", |
| | | "Desc": "1å·ä¸æ¬¡å次æåä¿¡å·ï¼ä¸æ¬¡ä¸ºtrue ä¸è¿ä¸ªä¸ºfalse å°±w1 å 1", |
| | | "Type": "System.Boolean", |
| | | "ShortType": "", |
| | | "MinVal": "0", |
| | | "MaxVal": "", |
| | | "DefaultVal": "false", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091232150", |
| | | "GroupFullName": "Tag.wxr1", |
| | | "FullName": "Tag.wxr1.w143" |
| | | }, |
| | | { |
| | | "ID": "202504151527109521", |
| | | "Name": "w2", |
| | | "Desc": "2å·æ°é", |
| | | "Type": "System.Int16", |
| | | "ShortType": "", |
| | | "MinVal": "0", |
| | | "MaxVal": "", |
| | | "DefaultVal": "0", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091232150", |
| | | "GroupFullName": "Tag.wxr1", |
| | | "FullName": "Tag.wxr1.w2" |
| | | }, |
| | | { |
| | | "ID": "202504151527114201", |
| | | "Name": "w245", |
| | | "Desc": "2å·ä¸æ¬¡å次æåä¿¡å·ï¼ä¸æ¬¡ä¸ºtrue ä¸è¿ä¸ªä¸ºfalse å°±w2 å 1", |
| | | "Type": "System.Boolean", |
| | | "ShortType": "", |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "false", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091232150", |
| | | "GroupFullName": "Tag.wxr1", |
| | | "FullName": "Tag.wxr1.w245" |
| | | } |
| | | ], |
| | | "Children": [] |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M0", |
| | | "Map": "æ·ç¬æè2.M0", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M4", |
| | | "Map": "æ·ç¬æè2.M4", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M1", |
| | | "Map": "æ·ç¬æè2.M1", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M2", |
| | | "Map": "æ·ç¬æè2.M2", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M3", |
| | | "Map": "æ·ç¬æè2.M3", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M5", |
| | | "Map": "æ·ç¬æè2.M5", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M6", |
| | | "Map": "æ·ç¬æè2.M6", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M7", |
| | | "Map": "æ·ç¬æè2.M7", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M32", |
| | | "Map": "æ·ç¬æè2.M32", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M33", |
| | | "Map": "æ·ç¬æè2.M33", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M34", |
| | | "Map": "æ·ç¬æè2.M34", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M35", |
| | | "Map": "æ·ç¬æè2.M35", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M36", |
| | | "Map": "æ·ç¬æè2.M36", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M37", |
| | | "Map": "æ·ç¬æè2.M37", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M38", |
| | | "Map": "æ·ç¬æè2.M38", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M39", |
| | | "Map": "æ·ç¬æè2.M39", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M40", |
| | | "Map": "æ·ç¬æè2.M40", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | "MinVal": "", |
| | | "MaxVal": "", |
| | | "DefaultVal": "", |
| | | "MapDevice": "æ·ç¬æè2", |
| | | "MapParam": "M41", |
| | | "Map": "æ·ç¬æè2.M41", |
| | | "Queue": "æ·ç¬æè2Queue", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250411091247262", |
| | | "GroupFullName": "Tag.js2", |
| | |
| | | } |
| | | ], |
| | | "Children": [] |
| | | }, |
| | | { |
| | | "ID": "20250415152100836", |
| | | "Name": "Global", |
| | | "Desc": "", |
| | | "ParentID": "20250226153123812", |
| | | "ParentFullName": "Tag", |
| | | "FullName": "Tag.Global", |
| | | "Vars": [ |
| | | { |
| | | "ID": "20250415152113172", |
| | | "Name": "SettingsOver", |
| | | "Desc": "åå§åæåå为1.1以åèªå¢ãè¾¾å°æäºæ¡ä»¶å°±éè½½", |
| | | "Type": "System.UInt16", |
| | | "ShortType": "", |
| | | "MinVal": "0", |
| | | "MaxVal": "1000", |
| | | "DefaultVal": "0", |
| | | "MapDevice": "", |
| | | "MapParam": "", |
| | | "Map": "", |
| | | "Queue": "", |
| | | "Converter": "", |
| | | "GroupID": "20250415152100836", |
| | | "GroupFullName": "Tag.Global", |
| | | "FullName": "Tag.Global.SettingsOver" |
| | | } |
| | | ], |
| | | "Children": [] |
| | | } |
| | | ] |
| | | }, |
| | | "CreationTime": "2025-02-26 15:31:23", |
| | | "LastWriteTime": "2025-04-11 11:32:53", |
| | | "LastWriteTime": "2025-04-17 14:19:39", |
| | | "Sample": { |
| | | "ID": "", |
| | | "Name": "Tag", |