public Messages CheckIDIn(ActionEventArgs actionEventArgs) { Messages messages = new Messages(); DataCollectDebug dataCollectDebug = new DataCollectDebug(this.GetType().ToString() + "GetIDInfo"); dataCollectDebug.WhenFunctionIn(messages); try { DataCollectFacade dataCollect = new DataCollectFacade(this.DataProvider); if (((PackActionEventArgs)actionEventArgs).IDDatas == null) { throw new Exception("$CS_Sys_Pack_LostOPParam"); } string LotCode = ((PackActionEventArgs)actionEventArgs).IDDatas[0].ToString(); messages.AddMessages(dataCollect.CheckID(actionEventArgs.RunningCard, actionEventArgs.RunningCard, actionEventArgs.ResourceCode, actionEventArgs.UserCode, actionEventArgs.ProductInfo)); //能否包装的其他检查 TODO // actionEventArgs.ProductInfo.NowSimulation.LOTNO = LotCode; actionEventArgs.ProductInfo.NowSimulationReport.LOTNO = LotCode; } catch (Exception e) { messages.Add(new Message(e)); } dataCollectDebug.WhenFunctionOut(messages); return(messages); }
/// <summary> /// /// </summary> /// <param name="iD"></param> /// <param name="actionType"></param> /// <param name="resourceCode"></param> /// <param name="userCode"></param> /// <param name="product"></param> /// <returns></returns> public Messages CheckID(string iD, string actionType, string resourceCode, string userCode, ProductInfo product) { Messages messages = new Messages(); DataCollectDebug dataCollectDebug = new DataCollectDebug(this.GetType().ToString() + "CheckID"); dataCollectDebug.WhenFunctionIn(messages); try { //Laws Lu,2005/09/06,新增 DataCollectFacade dataCollect = new DataCollectFacade(this._domainDataProvider); messages.AddMessages(dataCollect.CheckID(iD, actionType, resourceCode, userCode, product)); } catch (Exception e) { messages.Add(new Message(e)); } dataCollectDebug.WhenFunctionOut(messages); return(messages); }