Add new entries to the Missing piece management
With UDF skrpps_02.addd_defective_part_data(…), new entries can be added to the Missing piece management.
Several entries can be added with calling-up once.
Parameter | Type | Description |
---|---|---|
_iStateMode | smallint | Actions:
|
_iTicketUid | bigint | Ticket UID |
_tT imeS | imestamp without time zone | Timestamp of the entry |
_sUserName | text | User, who added the entry |
_iSkrMcId | integer | SKR Maschine ID |
_sMcGuid | text | PPS Maschinen ID |
_sComment | text | Any comment |
_iFlags | integer | Flags (for free use) |
_sTicketProductionId | text | Ticket Production ID |
_sTicketProductionSub1Id | text | Ticket Production Sub1 ID |
_sTicketProductionSub2Id | text | Ticket Production Sub2 ID |
_sTicketArticleId | text | Ticket Article ID |
_sTicketCustomerId | text | Ticket Customer ID |
_sSeqName | text | Sequence |
_asPatternName | text[] | Pattern names |
_aiPosInSeq | smallint[] | Positions of the pattern in the sequence |
_aiCount | integer[] | Number of missing pieces |
Code example skrpps_02.add_defective_part_data (…)
select skrpps_02.add_defective_part_data
(
0::smallint – Action of missing fabric pieces
, 12345678 -- Ticket UID
, now()::timestamp without time zone – Time and date of the message
, 'armes_wuerstchen'-- User
, NULL -- SKR Machine ID (*1)
,'42.43.44.45.46' -- PPS Machine ID
,'BlaBla...' – any desired comment
,42 -- any desired flags
,'Prod_Id-1321' -- Ticket Production ID
,'sub_1-32' -- Ticket Production Sub1 ID
,'sub_2_53425' -- Ticket Production Sub2 ID
,'artId-322143' -- Ticket Item ID
,'CustomerId-4343' -- Ticket Customer ID
,'My-Seq' -- Sequence
,ARRAY['Pattern1','Pattern2','PatternX'] – pattern name
,ARRAY[1::smallint,2::smallint,5::smallint] – Positions of the pattern within the sequence
,ARRAY[20,11,2] – Quantity of missing fabric pieces
);
The content of the arrays has the following meaning:
- Pattern 'Pattern1': 20 Missing pieces
is at position 1 in the 'My-Seq' sequence - Pattern 'Pattern2': 11 Missing pieces
is at position 2 in the 'My-Seq' sequence - Pattern ‚PatternX‘: 2 Missing pieces
is at position 5 in the 'My-Seq' sequence
Example code evaluations on „skrpps_02.v_defective_parts“
Todo