Třídová akce

Popis:
Vrátí setříděný seznam ID dílenských úkonů k hromadnému přiřazení priority pro výrobní příkaz
Kód:
7
Tělo:
SELECT /*+ DYNAMIC_SAMPLING(Ns 5) */ WS.ID FROM
#IB
  GetPLMJONodes(:DocID) Ns
#MS
  GetPLMJONodes(:DocID) Ns
#ORA
  Table(GetPLMJONodes(:DocID)) Ns
#ALL
  JOIN PLMJONodes N ON N.ID = Ns.ID
  JOIN PLMJOOutputItems O ON O.Owner_ID = N.ID
  JOIN PLMJobOrdersRoutines R ON (R.parent_id = O.ID)
  JOIN PLMWorkScheduleItems WS ON WS.JORoutine_ID = R.ID
WHERE WS.Priority <= 0
ORDER BY Ns.TreeLevel, R.compulsoryoperation DESC, R.PosIndex DESC

Generated by ABRA Software a.s. 27.10.2021 16:34:49