J
Jon A
I am designing an application that collects, tracks, and
reports Inspection information.
When an Inspector completes an inspection, they close out
the inspection by clicking on one of two buttons, depending
on the result of the inspection.
The two buttons are:
PASS
FAIL
If the inspection passed, then click on PASS and the
inspection is closed out.
If the inspection failed, however, then the Inspector clicks
on FAIL. In that case, before the inspection can be closed
out the application will require that the Inspector indicate
the reasons for the failed inspection.
There are a set of Quality Factors defined that will be
displayed (probably as checkboxes) and the Inspector will
select the one(s) that apply to this specific inspection and
that will record the reason(s) for failure.
As a complication, the collection of the Quality Factors is
required only for some kinds of inspections and not for
others.
I can't figure out how to design the control flow.
I thought the right place to put the code would be on the
cmd_FAIL_Click event. The logic would be something like
this:
If QualityFactorsRequired then
CollectQualityFactors
end if
SetInspectionStatus
SaveInspection
SetFormControlDisplay
My main quandry is that if I go to another form to collect
the Quality Fators, then how do I get back to the main form
to complete the remaining necessary actions for setting the
status, saving, etc?
reports Inspection information.
When an Inspector completes an inspection, they close out
the inspection by clicking on one of two buttons, depending
on the result of the inspection.
The two buttons are:
PASS
FAIL
If the inspection passed, then click on PASS and the
inspection is closed out.
If the inspection failed, however, then the Inspector clicks
on FAIL. In that case, before the inspection can be closed
out the application will require that the Inspector indicate
the reasons for the failed inspection.
There are a set of Quality Factors defined that will be
displayed (probably as checkboxes) and the Inspector will
select the one(s) that apply to this specific inspection and
that will record the reason(s) for failure.
As a complication, the collection of the Quality Factors is
required only for some kinds of inspections and not for
others.
I can't figure out how to design the control flow.
I thought the right place to put the code would be on the
cmd_FAIL_Click event. The logic would be something like
this:
If QualityFactorsRequired then
CollectQualityFactors
end if
SetInspectionStatus
SaveInspection
SetFormControlDisplay
My main quandry is that if I go to another form to collect
the Quality Fators, then how do I get back to the main form
to complete the remaining necessary actions for setting the
status, saving, etc?