public class ProductionService extends SgqService
| Modifier and Type | Field and Description |
|---|---|
protected static char |
ERROR_REPLAY_SEPARATOR
Séparateur CSV pour la sauvegarde interne (replay).
|
protected DateFormat |
LABEL_DATE_FORMAT
Date format du fichier d'entrée étiquette.
|
config, daoHelper| Constructor and Description |
|---|
ProductionService() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkBatchProduct(Batch batch,
String productCode,
Date date)
Test que le code produit de la ligne est celui attendu (c'est à dire
celui défini pour le lot).
|
void |
deleteError(String labelErrorId,
String comment)
Delete selected label error.
|
List<Batch> |
getBatchWithLabelAfterExpiration()
Lots probablement expirés et pour lesquels une étiquette a été émise.
|
org.apache.commons.lang3.tuple.Pair<List<LabelError>,Long> |
getHistory(Date beginDate,
Date endDate,
int offset,
int count)
Get error history.
|
InputStream |
getHistoryAsCsv(Date beginDate,
Date endDate)
Get history export as csv.
|
long |
getLabelErrorCount()
Return label errors count.
|
protected Date |
getLabelErrorDate(LabelError labelError)
Extract label date in error line data.
|
List<LabelError> |
getLabelErrorsForZone(Zone source)
Recupere toutes les erreurs d'import non traitées pour une zone.
|
Date |
getLastImportDate(Zone zone)
Retourne la configuration pour obtenir les dates de dernière
mise à jour (import expedition/fabrication).
|
protected PresentationCode |
getPresentationCode(String productId)
Extrait le code presentation pour une étiquette produit.
|
List<ImportLog> |
importLabelsFile(String fileFilename,
File file)
Import label file.
|
protected ImportLog |
importSingleLine(String[] csvdata,
Zone sourceZone)
Extraction du code de control et d'enregistrement dans un methode
séparée de la routine d'import pour être aussi utilisé lors du replay.
|
ImportLog |
replayError(String labelErrorId,
String replayLine,
String comment)
Replay selected error with corrected replay line.
|
setConfig, setServiceDAOHelperprotected static final char ERROR_REPLAY_SEPARATOR
protected final DateFormat LABEL_DATE_FORMAT
public Date getLastImportDate(Zone zone)
public List<ImportLog> importLabelsFile(String fileFilename, File file)
fileFilename - file name (FIF_HIST.txt or FIC_HIST.txt allowed)file - fileprotected ImportLog importSingleLine(String[] csvdata, Zone sourceZone)
protected PresentationCode getPresentationCode(String productId)
productId - product id to parseprotected boolean checkBatchProduct(Batch batch, String productCode, Date date)
batch - le lotproductCode - le code produit à testerdate - la date de la ligne (car certaines regles s'appliquent plus à partir d'un certain moment)public long getLabelErrorCount()
public List<LabelError> getLabelErrorsForZone(Zone source)
source - zone (ZE or ZP)public org.apache.commons.lang3.tuple.Pair<List<LabelError>,Long> getHistory(Date beginDate, Date endDate, int offset, int count)
beginDate - begin dateendDate - end dateoffset - offsetcount - countpublic InputStream getHistoryAsCsv(Date beginDate, Date endDate)
beginDate - begin dateendDate - end datepublic ImportLog replayError(String labelErrorId, String replayLine, String comment)
labelErrorId - error id to replayreplayLine - corrected data to replaycomment - commentprotected Date getLabelErrorDate(LabelError labelError)
null is date can't be parsed but should not appendpublic void deleteError(String labelErrorId, String comment)
labelErrorId - label error to deleteCopyright © 2012–2014 Herboristerie Cailleau. All rights reserved.