public OperationResult FindSnCheck(string moString) { if (moString == null) { return(new OperationResult(OperationResultType.Error, Properties.Resources.String_FrmGoodNGService_MoCanNotNull)); } OperationResult operationResult = MoFormService.FindEntity(moString); if (operationResult.ResultType == OperationResultType.Success) { Mo mo = (Mo)operationResult.AppendData; Item2SnCheck item2SnCheck = Item2SnCheckFormService.Item2SnChecks().SingleOrDefault(i => i.ITEMCODE == mo.ITEMCODE); operationResult.AppendData = item2SnCheck; } return(operationResult); }
public virtual OperationResult UpdateEntity(Item2SnCheck item2SnCheck, bool isSave = true) { return(item2SnCheckRepository.Update(item2SnCheck, isSave)); }
public virtual OperationResult AddEntity(Item2SnCheck item2SnCheck, bool isSave = true) { return(item2SnCheckRepository.Insert(item2SnCheck, isSave)); }