PdcProductReport.ProcessReport: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
== Notes ==
== Notes ==
Three different methods are defined:<br />
Three different methods are defined:<br />
0 = Create a repair calculation, which is a copy from the productreports calculation.<br />
0 = Create a repair calculation, which is a copy from the productreports calculation. After the calculation is created, it is shown. When the productreport doesn't have a calculation, the return value is false.<br />
    After the calculation is created, it is shown.<br />
    When the productreport doesn't have a calculation, the return value is false.<br />
1 = Create a new calculation en show it.<br />
1 = Create a new calculation en show it.<br />
2 = Do nothing, the productreport is only for registration.<br />
2 = Do nothing, the productreport is only for registration.<br />

Revision as of 09:18, 17 July 2013

Declaration

ProcessReport(ProcessMethod as long) as Boolean

Description

This method settles a productreport with a specific applied process method.

Notes

Three different methods are defined:
0 = Create a repair calculation, which is a copy from the productreports calculation. After the calculation is created, it is shown. When the productreport doesn't have a calculation, the return value is false.
1 = Create a new calculation en show it.
2 = Do nothing, the productreport is only for registration.
Every method does following things:
1. Turns a productreport into processed (Don't forget to save the product report).
2. If there raises any error, the return value is false and the error can be shown.

Code example

Availability