| | |
| | | using Admin.NET.Application; |
| | | using iWareCC.Common.Helper; |
| | | using iWareCC.Forms; |
| | | using iWareCC.StationService; |
| | | using iWareCommon.Common.Globle; |
| | | using iWareCommon.Utils; |
| | | using iWareModel; |
| | | using iWareSql.DataAccess; |
| | | using iWareSql.DBModel; |
| | | using iWareSql.WmsDBModel; |
| | | using System; |
| | |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using XiGang.Core.Model; |
| | | |
| | | namespace iWareCC.ThreadService |
| | |
| | | { |
| | | Thread.Sleep(1000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã |
| | | SystemWarningMsg._lbl_alert_DataProcess_269 = string.Empty; |
| | | |
| | | try |
| | | { |
| | | //if (SystemValue.isAllowRuning_DataProcess_269 && SystemValue.isStartedModel) |
| | | if (SystemValue.isStartedModel) |
| | | { |
| | | //å¢å éªè¯å¯ç ãEditby shaocx,2024-12-19ã |
| | | using (WmsDBModel edm = new WmsDBModel()) |
| | | { |
| | | var isTrigger = WmsConfigEncryptionHandler.IsTrigger(edm); |
| | | if (isTrigger) |
| | | { |
| | | //è¦æ±å¿
é¡»è¾å
¥ç®¡çåå¯ç æå¯ä»¥!!! |
| | | FormManagerPassword fr = new FormManagerPassword(); |
| | | fr.StartPosition = FormStartPosition.CenterScreen; |
| | | fr.ShowDialog(); |
| | | if (!fr.isValidateOk) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | var rgvLocation = StationLocationEnum.馿¬¡æ«ç å·¥ä½.ToString(); |
| | | /* |
| | | * 1ã仿°æ®åºä¸å¤ææ¯å¦é½å¥ |
| | |
| | | |
| | | WmsRecordUpiProcessHandler.SaveWmsRecordUpiProcess(wmsDB, upiObj, "269", "馿¬¡æ«ç "); |
| | | |
| | | ////æ´æ°é
ç½® 269_LastPackageUpi |
| | | //var bz30Config = wmsDB.SysConfig.Where(x => x.Code == "269_LastPackageUpi").FirstOrDefault(); |
| | | //if (bz30Config == null) |
| | | //{ |
| | | // SystemWarningMsg._lbl_Alert_DataProcess_ValidateQiTao = $"没æé
ç½® 269_LastPackageUpi å¼"; |
| | | // continue; |
| | | //} |
| | | //bz30Config.Value = upiObj.PackageCode + "|" + upiObj.UPI; |
| | | FormCC.Globle_269_LastPackageUpi = upiObj.PackageCode + "|" + upiObj.UPI + "|" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | |
| | | wmsDB.SaveChanges(); |
| | | //*/ |
| | | } |
| | | } |
| | | else |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_269 = $"{rgvLocation.ToString()}-没æè¦å¤ççæ°æ®"; |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |