Create work
/xml/CreateWork/
Luo uuden työn / Creates new work.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
ArticleCode | string | Tuotekoodi |
|
|
StockId | int | Varastopaikka |
|
|
OnProductionAmount | decimal | Jäljellä |
|
|
Clarification | string | Selite |
|
|
StartDate | date | Alkupvm |
|
|
EndDate | date | Valmispvm |
|
|
CostId | string | Kustannuspaikka |
|
|
ProjectId | string | Projekti |
|
|
ProductionLine | int | Tehdas |
|
|
WorkNumber | int | Työnumero |
|
|
Output /xml/ |
|
|
|
|
Result | String |
| Worknumber: XXX |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<CreateWork>
<ArticleCode>Koodi</ArticleCode>
<StockId>1</StockId>
<OnProductionAmount>2</OnProductionAmount>
<Clarification>Selite</Clarification>
<StartDate>01-01-2019</StartDate>
<EndDate>02-01-2019</EndDate>
<CostId>Kustannusp</CostId>
<ProjectId>Projekti</ProjectId>
<ProductionLine>1</ProductionLine>
</CreateWork>
</xml>
Fetch Work
/xml/FetchWork/
Hakee tietty työ työjonosta / Read work from work queue.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
WorkNumber | Integer | Työnumero |
| * |
Output /xml/Work |
|
|
|
|
ArticleCode | string | tuotekoodi |
|
|
ArticleName | string | nimike |
|
|
ArticleName2 | string | lisänimike |
|
|
Clarification | string | selite |
|
|
CostCenter | string | kustannuspaikka |
|
|
CustomerId | int | asikasnumero |
|
|
DeliveryCustomerId | int |
|
|
|
Deliverydate | date | toimituspvm |
|
|
DeliveryWeek | string | toimitusviikko |
|
|
EndDate | date | valmispäivämäärä |
|
|
Measures | string | mitat |
|
|
IsFixed | boolean | onko kiinnitetty |
|
|
OnProductionAmount | decimal | tuotannossa määrä |
|
|
OrderedAmount | decimal | tilattu määrä |
|
|
OrderNumber | int | tilausnumero |
|
|
Priority | int | prioriteetti |
|
|
ProductionLine | int | linja |
|
|
ProjectId | string | projekti |
|
|
Reference | string | viite |
|
|
StartDate | date | aloituspvm |
|
|
Type | int | tyyppi | 1=työjono, 2=tuotanto / 1=work queue, 2=production |
|
Warehouse | int | varastopaikka |
|
|
WorkNumber | int | työnumero |
|
|
ParentWorknumber | int | työnumero jonka alle työ kuuluu |
|
|
Position | string | tilauksen positio |
|
|
PickingStatus | int | keräystila | 0=vihreä (kokonaan kerätty), 1=punainen (ei kerätty), 2=keltainen (keräily kesken) (KERAYSTILA) |
|
ModificationDate | date | tietueen muokkauspvm | TIETUEPVM |
|
ArticleType | int | nimikelaji |
|
|
ArticleGroup | int | tuoteryhmä |
|
|
Output /xml/Work/WorkPhase |
|
|
|
|
Capasity | decmal | Kapasiteetti |
|
|
Duration | decmal | Työvaiheen kesto |
|
|
EndDate | date | Työvaiheen lopetuspäivä |
|
|
EndTime | string | Työvaiheen lopetusaika |
|
|
EndWeek | string | Työvaiheen lopetusviikko |
|
|
GroupWorkNumber | int | Koontityönumero |
|
|
Instructions | string | Työvaihe ohje |
|
|
MachineGroup | string | Koneryhmä |
|
|
MachineId | string | Koneryhmä |
|
|
Order | int | tilaus |
|
|
PhaseDescription | string | Työvaiheen nimi |
|
|
PhaseDetail | string | Tarkenne |
|
|
PhaseNumber | int | Työvaiheen numero |
|
|
Remaining | decimal | Työvaiheen jäljellä määrä |
|
|
RunNumber | int | Työvaiheen juoksu |
|
|
SetupDuration | decimal | Asetusaika tunneissa |
|
|
StartDate | date | Aloituspäivämäärä |
|
|
StartTime | string | Aloitusaika |
|
|
StartWeek | string | Aloitusviikko |
|
|
State | int | tila |
|
|
SupplierNumber | int | toimittaja numero |
|
|
Unit | string | yksikkö |
|
|
WorkNumber | int | työnumero |
|
|
WorkStatus | int | Työtila | 0=odottaa, 1=työn alla, 2=tehty/ 0=waiting, 1=under construction, 2= done |
|
Txt2 | string | vapaa teksti | Novassa kenttä on käytettävissä Nova 10.6 versiossa. |
|
Txt3 | string | vapaa teksti | Novassa kenttä on käytettävissä Nova 10.6 versiossa. |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<FetchWork>
<WorkNumber>1234</WorkNumber>
</FetchWork>
</xml>
Fetch works
/xml/FetchWorks/
Hakee kaikki työt työjonosta / Read all works from work queue.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
QueryBuilder |
|
|
|
|
Condition | attribute | Oper='AND' tai Oper='OR' | Kentän arvo on hakuehto, esim. TYONUMERO=677 | * Jos QueryBuilder on käytössä |
Output /xml/WorkList/Work (Kenttä QueryBuilderissa:) |
|
|
|
|
ArticleCode | string | tuotekoodi | KOODI |
|
ArticleName | string | nimike | NIMIKE |
|
ArticleName2 | string | lisänimike | NIMIKE2 |
|
Clarification | string | selite | SELITE |
|
CostCenter | string | kustannuspaikka | KP |
|
CustomerId | int | asikasnumero | ANUMERO |
|
DeliveryCustomerId | int |
| TANUMERO |
|
Deliverydate | date | toimituspvm | TOIMPVM |
|
DeliveryWeek | string | toimitusviikko | TOIMVKO |
|
EndDate | date | valmispäivämäärä | VALMISPVM tai VALMISVKO |
|
Measures | string | mitat | MITAT |
|
IsFixed | boolean | onko kiinnitetty |
|
|
OnProductionAmount | decimal | tuotannossa määrä | JALJELLA |
|
OrderedAmount | decimal | tilattu määrä | MAARA |
|
OrderNumber | int | tilausnumero | TILAUSNUMERO |
|
Priority | int | prioriteetti | PRIORITEETTI |
|
ProductionLine | int | linja | TEHDAS |
|
ProjectId | string | projekti | PROJEKTI |
|
Reference | string | viite | VIITE |
|
StartDate | date | aloituspvm | ALKUPVM tai ALKUVKO |
|
Type | int | tyyppi | 1=työjono, 2=tuotanto / 1=work queue, 2=production, 9=poistettu/valmis (TILA) |
|
Warehouse | int | varastopaikka | VP |
|
WorkNumber | int | työnumero | TYONUMERO |
|
ParentWorknumber | int | työnumero jonka alle työ kuuluu | ISATYONUMERO |
|
Position | string | tilauksen positio | POSITIO |
|
PickingStatus | int | keräystila | 0=vihreä (kokonaan kerätty), 1=punainen (ei kerätty), 2=keltainen (keräily kesken) (KERAYSTILA) |
|
ModificationDate | date | tietueen muokkauspvm | TIETUEMPVM |
|
ArticleType | int | nimikelaji |
|
|
ArticleGroup | int | tuoteryhmä |
|
|
Output /xml/WorkList/Work/WorkPhase |
|
|
|
|
Capasity | decmal | Kapasiteetti |
|
|
Duration | decmal | Työvaiheen kesto |
|
|
EndDate | date | Työvaiheen lopetuspäivä |
|
|
EndTime | string | Työvaiheen lopetusaika |
|
|
EndWeek | string | Työvaiheen lopetusviikko |
|
|
GroupWorkNumber | int | Koontityönumero |
|
|
Instructions | string | Työvaihe ohje |
|
|
MachineGroup | string | Koneryhmä |
|
|
MachineId | string | Koneryhmä |
|
|
Order | int | tilaus |
|
|
PhaseDescription | string | Työvaiheen nimi |
|
|
PhaseDetail | string | Tarkenne |
|
|
PhaseNumber | int | Työvaiheen numero |
|
|
Remaining | decimal | Työvaiheen jäljellä määrä |
|
|
RunNumber | int | Työvaiheen juoksu |
|
|
SetupDuration | decimal | Asetusaika tunneissa |
|
|
StartDate | date | Aloituspäivämäärä |
|
|
StartTime | string | Aloitusaika |
|
|
StartWeek | string | Aloitusviikko |
|
|
State | int | tila |
|
|
SupplierNumber | int | toimittaja numero |
|
|
Unit | string | yksikkö |
|
|
WorkNumber | int | työnumero |
|
|
WorkStatus | int | Työtila | 0=odottaa, 1=työn alla, 2=tehty/ 0=waiting, 1=under construction, 2= done |
|
Txt2 | string | vapaa teksti | Novassa kenttä on käytettävissä Nova 10.6 versiossa. |
|
Txt3 | string | vapaa teksti | Novassa kenttä on käytettävissä Nova 10.6 versiossa. |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<FetchWorks/>
</xml>
Esimerkki 2 / Example 2:
<xml>
<login>
<hash dsn="nova">1001</hash>
</login>
<FetchWorks>
<QueryBuilder>
<Condition Oper='AND'>TYONUMERO=677</Condition>
<Condition Oper='OR'>TYONUMERO=676</Condition>
</QueryBuilder>
</FetchWorks>
</xml>
Production run
/xml/ProductionRun/
Tekee tuotantoajon / Makes a production run.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
WorkNumber | integer | Työnumero |
|
|
RemoveWork | boolean | optio Poista jos määrä täysi | vaikutusta vain jos työnumero annettu / has effect if work number is given |
|
OnlyFirstLevel | boolean | Tuotantoajo ikkunan optio Seuraava taso |
|
|
Clarification | string | Käyttäjä voi syöttää halutessaan jotain lisätietoa selite kenttään liittyen tuotantoajoon |
|
|
Machine | string | Kone |
|
|
MarkAsFinished | boolean | Siirtää työn valmiiksi eli tuotanto-ohjelman valmistettu välilehdelle |
|
|
NoStructureHandling | boolean | jos arvo = 1 tai true, tuotantoajo EI huomioi tuotteen rakennetta. | Vastaa Novan tuotantoajo-ikkunan Rakennepäivitys: ei rakennetta -optiota. |
|
Warehouse | integer | Varastopaikka johon tuotantoajossa valmistettava tuote valmistuu |
| * |
ArticleCode | string | Valmistettavan tuotteen koodi |
| * |
Amount | decimal | Valmistettavan tuotteen määrä |
| * |
ProjectId | string | Projektitunnus |
|
|
CostCenter | string | Kustannuspaikka |
|
|
UseDefaultShelf | boolean | Kuluta oletus hyllyltä | Oletus ei kuluteta / default false |
|
SerialNumbersIn | string | Valmistettavan tuotteen sarjanumero | Annetaan sarjanumerot erotettuna ; merkillä. Jos on annettu sarjanumerot, niin ne pitää olla yhtä monta kun valmistettava määrä. / Serialnumbers given with ; as delimiter. If serialnumbers are given then amount of serialnumbers need to match produced amount. |
|
BatchId | string | Valmistuvan erän tieto | tarvitaan, jos haluaa tuotantoajossa muodostuvalle tuotteelle eränumeron. |
|
BatchSpecification | string | valmistuvan erän eräerittelytieto | Muodostuvan erän erittelytiedot 1-10kpl. Erittelytiedon järjestysnumero kerrotaan Id attribuutilla esim Id="1", jolloin tieto tallentuu Novassa erän erittelytietoihin kohtaan yksi. (esimerkki 5) |
|
Username | string | Tuotantoajon tekijä, joka näkyy varastotapahtumissa |
|
|
FaultyAmount | decimal | Vialliset kappalemäärät |
|
|
FaultyCauseId | integer | Viallisten syykoodin id | Syykoodi käsitellään vain, jos viallinen kappalemäärä on annettu. |
|
OnProductionAmountValidation | boolean | Jäljellä määrän tarkistus | Arvo False, jäljellä määrää ei tarkisteta |
|
/xml/ProductionRun/SerialNumbersOut/Article |
|
|
|
|
ArticleCode | string | Rakennetuotteen osan koodi |
|
|
SerialNumbers | string | Rakennetuotteen osan sarjanumerot | Annetaan sarjanumerot erotettuna ; merkillä. / Serialnumbers given with ; as delimiter. |
|
/xml/ProductionRun/UsedBatches/Batch |
|
|
|
|
StructureId | integer | RakenneId | Pakollinen, jos usedbatch osio määritelty | (*) |
BatchId | integer | Eränumero |
|
|
SupplierBatchId | string | Toimittajan erätunniste |
|
|
Amount | decimal | Kulutettava määrä |
|
|
StockId | integer | Mistä varastosta kulutetaan |
|
|
/xml/ProductionRun/StructureAmounts/StructureAmount |
|
|
|
|
StructureId | integer | RakenneId | Pakollinen, jos StructureAmounts osio määritelty | (*) |
Amount | decimal | Kulutettava määrä | Rakenneosan kulutettava määrä. Yliajaa tuotantoajossa annetun määrän. |
|
Output /xml/Output |
|
|
|
|
Result | boolean |
| true, jos tallennus onnistui / true, if succesfully saved |
|
Esimerkki / Example:
<?xml version="1.0" encoding="utf-8"?>
<xml>
<login>
<hash dsn="nova">************</hash>
</login>
<ProductionRun>
<WorkNumber>1056</WorkNumber>
<RemoveWork>true</RemoveWork>
<OnlyFirstLevel>true</OnlyFirstLevel>
<Clarification>tuotantoajo (SDK)</Clarification>
<Machine>Machine1</Machine>
<Warehouse>2</Warehouse>
<ArticleCode>akra</ArticleCode>
<Amount>100</Amount>
<ProjectId>P1</ProjectId>
<CostCenter>K1</CostCenter>
</ProductionRun>
</xml>
Esimerkki 2 / Example 2:
<?xml version="1.0" encoding="utf-8"?>
<xml>
<login>
<hash dsn="nova">************</hash>
</login>
<ProductionRun>
<WorkNumber>1056</WorkNumber>
<RemoveWork>true</RemoveWork>
<OnlyFirstLevel>true</OnlyFirstLevel>
<Clarification>tuotantoajo (SDK)</Clarification>
<Machine>Machine1</Machine>
<Warehouse>2</Warehouse>
<ArticleCode>Sarjanrorakenne</ArticleCode>
<Amount>2</Amount>
<ProjectId>P1</ProjectId>
<CostCenter>K1</CostCenter>
<SerialNumbersOut>
<Article>
<ArticleCode>772</ArticleCode>
<SerialNumbers>100014;100015</SerialNumbers>
</Article>
</SerialNumbersOut>
<SerialNumbersIn>X37;X38</SerialNumbersIn>
</ProductionRun>
</xml>
Esimerkki 3 / Example 3:
<?xml version="1.0" encoding="iso-8859-1"?>
<xml>
<login>
<hash dsn="nova">************</hash>
</login>
<ProductionRun>
<WorkNumber>4235</WorkNumber>
<RemoveWork>true</RemoveWork>
<OnlyFirstLevel>true</OnlyFirstLevel>
<Clarification>tuotantoajo (SDK)</Clarification>
<Machine>Kone1</Machine>
<Warehouse>1</Warehouse>
<ArticleCode>rakenne21</ArticleCode>
<Amount>10</Amount>
<UsedBatches>
<Batch>
<StructureId>36974</StructureId>
<BatchId>3</BatchId>
<Amount>15</Amount>
<StockId>1</StockId>
</Batch>
<Batch>
<StructureId>36974</StructureId>
<SupplierBatchId>T202106</SupplierBatchId>
<Amount>5</Amount>
<StockId>1</StockId>
</Batch>
</UsedBatches>
</ProductionRun>
</xml>
Esimerkki 4 / Example 4:
<?xml version="1.0" encoding="iso-8859-1"?>
<xml>
<login>
<hash dsn="nova">************</hash>
</login>
<ProductionRun>
<WorkNumber>4235</WorkNumber>
<RemoveWork>true</RemoveWork>
<OnlyFirstLevel>true</OnlyFirstLevel>
<Clarification>tuotantoajo (SDK)</Clarification>
<Machine>Kone1</Machine>
<Warehouse>1</Warehouse>
<ArticleCode>rakenne21</ArticleCode>
<Amount>10</Amount>
<StructureAmounts>
<StructureAmount>
<StructureId>36974</StructureId>
<Amount>10</Amount>
</StructureAmount>
</StructureAmounts>
</ProductionRun>
</xml>
Esimerkki 5 / Example 5:
<?xml version="1.0" encoding="iso-8859-1"?>
<xml>
<login>
<hash dsn="nova">************</hash>
</login>
<ProductionRun>
<WorkNumber>698</WorkNumber>
<RemoveWork>false</RemoveWork>
<OnlyFirstLevel>true</OnlyFirstLevel>
<Warehouse>1</Warehouse>
<ArticleCode>rakenne21</ArticleCode>
<BatchId>AAA111</BatchId>
<BatchSpecification id="1">13.10.2022</BatchSpecification>
<BatchSpecification id="3">ET11122</BatchSpecification>
<Amount>1</Amount>
</ProductionRun>
</xml>
Read completed work
/xml/ReadCompletedWork/
Valmiin työn ja työvaiheiden luku / Read completed work and workphases.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
WorkNumber | integer | Työnumero |
| * |
Output /xml/CompletedWork |
|
|
|
|
WorkNumber | integer | Työnumero |
|
|
OrderNumber | integer | Tilausnumero |
|
|
OrderedAmount | decimal | Tilattumäärä |
|
|
ArticleCode | string | Tuotekoodi |
|
|
ArticleName | string | Nimke |
|
|
ArticleName2 | string | Nimike2 |
|
|
AdditionalText | string | Lisäteksti |
|
|
Measures | string | Mitat |
|
|
Clarification | string | Selite |
|
|
CustomerId | integer | Asiakasnumero |
|
|
DeliveryCustomerId | integer | Toimitusasiakasnumero |
|
|
ProjectId | string | Projektitunnus |
|
|
ProductionLine | integer | Tehdas |
|
|
StockId | integer | Varastopaikka id |
|
|
CostId | string | Kustannuspaikka id |
|
|
Reference | string | Viite |
|
|
DeliveryDate | date | Toimituspvm |
|
|
DeliveryWeek | date | Toimitusviikko |
|
|
StartDate | date | Aloitus pvm |
|
|
EndDate | date | Valmis pvm |
|
|
Output /xml/CompletedWork/WorkPhases/WorkPhase |
|
|
|
|
Id | Guid | Guid |
|
|
Capasity | decimal | Kapasiteetti |
|
|
BatchSize | decimal | Eräkoko |
|
|
Instructions | string | Työvaihe ohje |
|
|
MachineId | integer | Kone id |
|
|
MachineGroup | string | Koneryhmä |
|
|
PhaseNumber | integer | Työvaiheen numero |
|
|
PhaseDescription | string | Työvaiheen nimi |
|
|
PhaseDetail | string | Työvaiheen tarkenne |
|
|
RunNumber | integer | Työvaiheen juoksu |
|
|
SetupDuration | decimal | Asetusaika tunneissa |
|
|
Unit | string | Yksikkö |
|
|
WorkPhaseDate | date | Työvaiheen päivämäärä |
|
|
Txt2 | string | vapaa teksti | Novassa kenttä on käytettävissä Nova 10.6 versiossa. |
|
Txt3 | string | vapaa teksti | Novassa kenttä on käytettävissä Nova 10.6 versiossa. |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<ReadCompletedWork>
<WorkNumber>3969</WorkNumber>
</ReadCompletedWork>
</xml>
Read completed works list
/xml/ReadCompletedWorksList/
Hakee kaikki valmiit työt / Read all completed works.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
OrderNumber | int | tilausnumero |
|
|
StartedBefore | Date | aloitettu ennen tätä päivää |
|
|
StartedAfter | Date | aloitettu tästä päivästä |
|
|
CompletedBefore | Date | valmis ennen tätä päivää |
|
|
CompletedAfter | Date | valmis tästä päivästä |
|
|
Output /xml/CompletedWorks/CompletedWork |
|
|
|
|
WorkNumber | int | työnumero |
|
|
OrderNumber | int | tilausnumero |
|
|
ArticleCode | string | tuotekoodi |
|
|
StartDate | date | aloituspvm |
|
|
EndDate | date | valmispäivämäärä |
|
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<ReadCompletedWorksList/>
</xml>
Esimerkki 2 / Example 2:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<ReadCompletedWorksList>
<OrderNumber>1234</OrderNumber>
<StartedBefore>31-01-2019</StartedBefore>
<StartedAfter>01-01-2019</StartedAfter>
<CompletedBefore>31-01-2019</CompletedBefore>
<CompleteAfter>01-01-2019</CompleteAfter>
</ReadCompletedWorksList>
</xml>
Read phase stampings
/xml/ReadPhaseStampings/
Vaihelaimauksien luku / Read phasestampings.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
WorkNumber | Integer | Työnumero |
| * jos QueryBuilder ei ole määritelty |
QueryBuilder |
|
|
|
|
Condition | attribute | Oper='AND' tai Oper='OR' | Kentän arvo on hakuehto, esim. TYONUMERO=677. Voidaan käyttää samoja kenttiä kuin FetchWorks-kuvauksessa. | * jos QueryBuilder on käytössä |
Output /xml/PhaseStampings/PhaseStampInfo |
|
|
|
|
Number | Integer | Numero |
|
|
WorkNumber | Integer | Työnumero |
|
|
State | Short | Tila |
|
|
PhaseNumber | Short | Vaihenumero |
|
|
StartTime | Date | Aloitus |
|
|
StopTime | Date | Lopetus | DateTime.MinValue(0001-01-01T00:00:00) = Lopetus-/ keskeytys kuittaus ei ole vielä tehty. |
|
Duration | Decimal | Kesto |
|
|
Person | Integer | Henkilö |
|
|
Plaji | Integer | Plaji |
|
|
Code | String | Tuotekoodi |
|
|
Amount | Decimal | Määrä |
|
|
Defect | Decimal | Vialliset |
|
|
GUID | GUID | guid |
|
|
CostCenter | String | Kustannuspaikka id |
|
|
FreeText | String | Txt |
|
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<ReadPhaseStampings>
<WorkNumber>1237</WorkNumber>
</ReadPhaseStampings>
</xml>
Esimerkki 2 / Example 2:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<ReadPhaseStampings>
<QueryBuilder>
<Condition Oper="AND">TILA IN (1,2)</Condition>
<Condition Oper='AND'>JALJELLA>0</Condition>
</QueryBuilder>
</ReadPhaseStampings>
</xml>
Read production settings
/xml/ReadProductionSettings/
Tuotannon asetusten luku / Read production settings.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
Output /xml/UpdateWip |
|
|
|
|
DeleteCompletedWorkAtOrderDelivery | boolean | Poista valmistuneet työt tilausta toimittaessa |
|
|
MoveUpEndTime | integer | Aikaista |
|
|
MultiplePhaseSetoffs | boolean | Salli useat vaihekirjaukset |
|
|
ProposeStartTime | boolean | Ehdota aloitusaikaa |
|
|
ProposeEndTime | boolean | Ehdota valmistusaikaa |
|
|
WorkPriorityFromSalesOrder | integer | Prioriteetti työlle myyntitilauksesta |
|
|
Output /xml/ |
|
|
|
|
Result | Boolean |
| true, jos tallennus onnistui / true, if succesfully saved |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">***</hash>
</login>
<ReadProductionSettings />
</xml>
Read resource list
/xml/ReadResourceList/
Hakee kaikki resurssit / Read all resources.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
ResourceId | string | tunnus | Workphase.MachineId |
|
Output /xml/Resources/Resource |
|
|
|
|
ResourceNumber | string | id numero |
|
|
Mode | integer | tila |
|
|
ResourceId | string | tunnus | Workphase.MachineId |
|
Description | string | selite |
|
|
PricePerHour | decimal | tuntihinta |
|
|
Group | string | ryhmä | Workphase.MachineGroup |
|
Capacity | decimal | kapasiteetti |
|
|
Type | integer | tyyppi |
|
|
ReservationCapacity | integer | varauskapasiteetti |
|
|
ResId | string | resid |
|
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<ReadResourceList/>
</xml>
Read WiP
/xml/ReadWiP/
Tuotantokeräilyn luku / Read work in process.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
Username | string | Käyttäjänimi | Enintään 20 merkkiä/Max 20 characters. | * |
WorkNumber | Integer | Työnumero |
| * |
Output /xml/WorkInProcess |
|
|
|
|
Username | string | Käyttäjänimi |
|
|
WorkNumber | Integer | Työnumero |
|
|
Output /xml/WorkInProcess/WorkInProcessItems/Item |
|
|
|
|
StructureId | Attribute | rakenneId |
|
|
ProductionCode | String | paakodi |
|
|
ParentCode | String | isakoodi |
|
|
Code | String | koodi |
|
|
ArticleName | String | nimike |
|
|
StructureAmount | Decimal | tarve |
|
|
Unit | String | yksikko |
|
|
Kdi | Boolean | kdi |
|
|
Per | Integer | per |
|
|
Level | Short | taso |
|
|
Loss | Decimal | hukka |
|
|
WorkNumber | Integer | tyonumero |
|
|
Runnumber | Integer | juoksu |
|
|
StructureRunNumber | Integer | rakennejuoksu |
|
|
Username | String | kayttaja |
|
|
TypeOfItem | Short | nimikelaji |
|
|
Guid | String | guid |
|
|
ProductionGuid | String | tuguid |
|
|
TotalAmount | Decimal | yhteistarve |
|
|
ActionDate | Date | pvm |
|
|
StockId | Integer | vp |
|
|
StructureId | Integer | rakenneid |
|
|
UncollectedAmount | Decimal | keraamatta |
|
|
CollectedAmount | Decimal | keratty |
|
|
Amount | Decimal | kerattava |
|
|
Collect | Boolean | keraa |
|
|
Collector | String | keraaja |
|
|
StockValue | Decimal | varastossa |
|
|
OriginalAmount | Decimal | alkupmaara |
|
|
ConsumedAmount | Decimal | kulutettu |
|
|
InProductionAmount | Decimal | jaljella |
|
|
Id | Integer | id |
|
|
Shelf | String | Hyllypaikka |
|
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<ReadWiP>
<Username>unique username</Username>
<WorkNumber>4072</WorkNumber>
</ReadWiP>
</xml>
Read work phase list
/xml/ReadWorkPhaseList/
Työvaiheiden luku / Read work phase list.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
WorkNumber | integer | Työnumero |
| * |
Output /xml/WorkPhases/WorkPhase |
|
|
|
|
PhaseNumber | integer | Työvaiheen numero |
|
|
PhaseDescription | string | Työvaiheen nimi |
|
|
Capasity | decimal | Kapasiteetti |
|
|
Duration | decimal | Työvaiheen kesto |
|
|
EndDate | date | Työvaiheen lopetuspäivä |
|
|
EndTime | string | Työvaiheen lopetusaika |
|
|
EndWeek | string | Työvaiheen lopetusviikko |
|
|
GroupWorkNumber | integer | Koontityönumero |
|
|
Id | Guid | Guid |
|
|
Instructions | string | Työvaihe ohje |
|
|
MachineGroup | string | Koneryhmä |
|
|
PhaseDetail | string | Työvaiheen tarkenne |
|
|
Program | string | Ohjelma |
|
|
Remaining | decimal | Työvaiheen jäljellä määrä |
|
|
RunNumber | integer | Työvaiheen juoksu |
|
|
SetupDuration | decimal | Asetusaika tunneissa |
|
|
StartDate | date | Aloituspäivämäärä |
|
|
StartTime | string | Aloitusaika |
|
|
StartWeek | string | Aloitusviikko |
|
|
State | integer | Tila |
|
|
SupplierNumber | integer | Toimittaja numero |
|
|
Unit | string | Yksikkö |
|
|
WorkStatus | integer | Työtila (0=odottaa, 1=työn alla, 2=tehty) |
|
|
Txt2 | string | vapaa teksti | Novassa kenttä on käytettävissä Nova 10.6 versiossa. |
|
Txt3 | string | vapaa teksti | Novassa kenttä on käytettävissä Nova 10.6 versiossa. |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<ReadWorkPhaseList>
<WorkNumber>117900</WorkNumber>
</ReadWorkPhaseList>
</xml>
Update WiP
/xml/UpdateWiP/
Tuotantokeräilyn päivittäminen / Update work in process.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
Username | string | Käyttäjänimi | Enintään 20 merkkiä/Max 20 characters. | * |
WorkNumber | Integer | Työnumero |
| * |
/xml/UpdateWip/WorkInProcessItems/Item |
|
|
|
|
StructureId | Attribute | rakenneId |
|
|
Amount | Decimal | kerattava |
|
|
Output /xml/UpdateWip |
|
|
|
|
Username | string | Käyttäjänimi |
|
|
WorkNumber | Integer | Työnumero |
|
|
Output /xml/UpdateWip/WorkInProcessItems/Item |
|
|
|
|
StructureId | Attribute | rakenneId |
|
|
Amount | Decimal | kerattava |
|
|
Output /xml/ |
|
|
|
|
Result | Boolean |
| true, jos tallennus onnistui / true, if succesfully saved |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<UpdateWiP>
<Username>unique username</Username>
<WorkNumber>4072</WorkNumber>
<WorkInProcessItems>
<Item StructureId="34341">
<Amount>5</Amount>
</Item>
<Item StructureId="34343">
<Amount>5</Amount>
</Item>
</WorkInProcessItems>
</UpdateWiP>
</xml>
Update work
/xml/UpdateWork/
Päivittää työn / Updates selected work.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
WorkNumber | int | Työnumero |
| * |
MachineGroup | string | Koneryhmä |
|
|
OnProductionAmount | decimal | Jäljellä |
|
|
StartDate | date | Alkupvm |
|
|
EndDate | date | Valmispvm |
|
|
Deliverydate | date | Toimituspäivä |
|
|
Machine | string | Kone |
|
|
Measures | string | Mitat |
|
|
Reference | string | Viite |
|
|
Priority | int | Prioriteetti |
|
|
StockId | int | Varastopaikka |
|
|
TransferToProduction | boolean | Siirrä tuotantoon | Jos työ on työjonossa niin sen voi sirtää tuotantoon / Transfer work from queue to production |
|
ProductionLine | int | Tehdas |
|
|
Output /xml/ |
|
|
|
|
Result | Boolean |
| true, jos tallennus onnistui / true, if succesfully saved |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<UpdateWork>
<WorkNumber>3921</WorkNumber>
<MachineGroup>KoneRyhma</MachineGroup>
<OnProductionAmount>4</OnProductionAmount>
<StartDate>02-01-2019</StartDate>
<EndDate>02-02-2019</EndDate>
<Deliverydate>02-03-2019</Deliverydate>
<Machine>Kone</Machine>
<Measures>Mitat</Measures>
<Reference>Viite</Reference>
<Priority>2</Priority>
<StockId>2</StockId>
<ProductionLine>2</ProductionLine>
</UpdateWork>
</xml>
Update work phase status
/xml/UpdateWorkPhaseStatus/
Työvaiheiden aloitus ja lopetus / Update start and ending of a workphase.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
WorkNumber | integer | Työnumero |
| * |
/xml/WorkPhases/WorkPhase |
|
|
|
|
PhaseNumber | integer | Työvaiheen numero |
| * |
RunNumber | integer | Juoksu |
| * |
/xml/WorkPhases/WorkPhase/StartWorkPhase |
|
|
|
|
PersonNumber | integer | Henkilön numero, joka vaiheen aloittaa |
|
|
StartDateAndTime | date | Aloituskuittauksen päivä ja aika | YYYY-MM-DDThh:mm:ss |
|
/xml/WorkPhases/WorkPhase/FinishWorkPhase |
|
|
|
|
PersonNumber | integer | Henkilön numero, joka vaiheen kuittaa valmiiksi |
|
|
FinishDateAndTime | date | Valmis kuittauksen päivä ja aika | YYYY-MM-DDThh:mm:ss |
|
Amount | decimal | Työvaiheen valmistunut määrä |
|
|
FaultyAmount | decimal | Työvaiheen viallinen määrä |
|
|
FreeText | string | Vapaa teksti välilehti, johon voi syöttää valmiskuittaukseen liittyvään tietoa työvaiheelle. |
|
|
MarkAsFinished | boolean | Merkitään työvaihe valmiiksi, vaikka määrä ei olisi täynnä |
|
|
Output /xml/Output |
|
|
|
|
Result | boolean |
| true, jos tallennus onnistui / true, if succesfully saved |
|
Työvaiheen aloitusleimaus:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<UpdateWorkPhaseStatus>
<WorkNumber>4146</WorkNumber>
<WorkPhases>
<WorkPhase>
<PhaseNumber>1</PhaseNumber>
<RunNumber>2</RunNumber>
<StartWorkPhase>
<PersonNumber>15</PersonNumber>
<StartDateAndTime>2021-03-19T07:15:00</StartDateAndTime>
</StartWorkPhase>
</WorkPhase>
</WorkPhases>
</UpdateWorkPhaseStatus>
</xml>
Työvaiheen lopetusleimaus:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<UpdateWorkPhaseStatus>
<WorkNumber>4146</WorkNumber>
<WorkPhases>
<WorkPhase>
<PhaseNumber>1</PhaseNumber>
<RunNumber>2</RunNumber>
<FinishWorkPhase>
<PersonNumber>15</PersonNumber>
<FinishDateAndTime>2021-03-19T15:30:00</FinishDateAndTime>
<Amount>3</Amount>
<FaultyAmount>0</FaultyAmount>
<FreeText>Suoritettu</FreeText>
<MarkAsFinished>true</MarkAsFinished>
</FinishWorkPhase>
</WorkPhase>
</WorkPhases>
</UpdateWorkPhaseStatus>
</xml>
Update work phases
/xml/UpdateWorkPhases/
Tuotannon työvaiheiden päivitys, ei lisäys / Update workphase, not for adding new ones.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
WorkNumber | integer | Työnumero |
| * |
/xml/WorkPhases/WorkPhase |
|
|
|
|
RunNumber | integer | Työvaiheen juoksu |
| * |
Settings | string | Ohjelma |
|
|
StartDate | date | työvaiheen aloituspäivämäärä |
|
|
StartTime | string | työvaiheen aloituskellonaika | Aika muodossa hh:mm / Time in format hh:mm |
|
EndDate | date | työvaiheen lopetuspäivämäärä |
|
|
EndTime | string | työvaiheen lopetuskellonaika | Aika muodossa hh:mm / Time in format hh:mm |
|
PhaseDescription | string | Työvaiheen nimi |
|
|
StartWeek | string | Työvaiheen aloitusviikko |
|
|
EndWeek | string | Työvaiheen lopetusviikko |
|
|
Detail | string | Työvaiheen tarkenne |
|
|
MachineId | string | kone | Huom! Työ pitää olla kiinnitetty jos haluaa nämä muuttaa. / Note! Work must be fixed for this to work. |
|
MachineGroup | string | konerhm |
|
|
Output /xml/Output |
|
|
|
|
Result | boolean |
| true, jos tallennus onnistui / true, if succesfully saved |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<UpdateWorkPhases>
<WorkNumber>1186</WorkNumber>
<WorkPhases>
<WorkPhase>
<RunNumber>108</RunNumber>
<StartDate>05.07.2017</StartDate>
<StartTime>08:00</StartTime>
<EndDate>08.08.2017</EndDate>
<EndTime>16:00</EndTime>
<PhaseDescription>Viimeistely 2</PhaseDescription>
</WorkPhase>
</WorkPhases>
</UpdateWorkPhases>
</xml>
ReadWiPEvents
/xml/ReadWiPEvents/
Listaa tuotantokeräilytapahtumat / Read WiP Events.
Elementti / Element | Tyyppi / Type | Selite | Lisätieto / Additional information | Pakollinen / Mandatory
|
QueryBuilder |
|
|
|
|
Condition | attribute | Oper='AND' tai Oper='OR' | Kentän arvo on hakuehto, esim. TYONUMERO=677 | * |
Output /xml/WiPEvents/Event (Kenttä QueryBuilderissa:) |
|
|
|
|
Code | string | tuotekoodi | KOODI |
|
WorkNumber | string | työnumero | TYONUMERO |
|
Amount | decimal | määrä | MAARA |
|
EventDate | date | tapahtuma pvm | PVM |
|
EventUser | string | tapahtuman tekijä | KAYTTAJA |
|
StockId | int | varastopaikka | VP |
|
StructureId | int | rakenne id | RAKENNEID |
|
ID | int | id | ID |
|
Source | int | tapahtuman tyyppi | 50=keräily, 8=tuotantoajo (SRC) |
|
ArticleName | string | tuotteen nimike | NIMIKE |
|
Esimerkki / Example:
<xml>
<login>
<hash dsn="nova">73685dbea3290215b74a3a2e9c1c3ecc</hash>
</login>
<ReadWiPEvents>
<QueryBuilder>
<Condition Oper='AND'>TYONUMERO>710</Condition>
<Condition Oper='AND'>KOODI='KET_1'</Condition>
</QueryBuilder>
</ReadWiPEvents>
</xml>
