1|1|1|4
<?xml version="1.0" encoding="utf-16"?>
<Forms version="3.0">
  <Form module="op" application="release_stopped_ords" name="main" x="0" y="0" width="660" height="304" style="">
    <Coaching>This program checks the status of all stopped orders against Sales ledger and Stock file levels, releasing 
any orders satisfying the necessary conditions. Any status changes are reported on the system log. </Coaching>
    <Grid num="1">
      <GridRow num="1">
        <GridColumn num="1" span="6">
          <Part title="Release stopped orders" x="0" y="0" width="630" height="86" style="showAlways">
            <Grid num="1">
              <GridRow num="1">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Selected orders:<GUILocation x="4" y="4" width="61" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="select:1">
                          <GUILocation x="124" y="4" width="11" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="5">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="cr_check_prompt:1">
                          <GUILocation x="164" y="4" width="156" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="cr_check_2:1;cr_check:1">
                          <GUILocation x="320" y="4" width="9" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="2">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Status range:<GUILocation x="4" y="18" width="51" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="status:1">
                          <GUILocation x="124" y="18" width="25" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="5">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="partial_prompt:1">
                          <GUILocation x="164" y="18" width="124" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="partial:1">
                          <GUILocation x="320" y="18" width="11" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="6">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="part_rel_prompt:1">
                          <GUILocation x="353" y="18" width="124" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="part_rel_lines:1">
                          <GUILocation x="477" y="18" width="18" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="3">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Display record in use messages:<GUILocation x="4" y="32" width="109" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="interact:1">
                          <GUILocation x="124" y="32" width="11" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="5">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Part allocate:<GUILocation x="164" y="32" width="49" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="part_allocate:1">
                          <GUILocation x="320" y="32" width="11" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="4">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Allocate stock:<GUILocation x="4" y="46" width="54" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="allocate:1">
                          <GUILocation x="124" y="46" width="18" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="5">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Label num="1">Deallocate stock:<GUILocation x="164" y="46" width="62" /></Label>
                      </Title>
                      <Components>
                        <Field num="1" ref="deallocate:1">
                          <GUILocation x="320" y="46" width="18" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="5">
                <GridColumn num="1">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="bo_nonrel_prompt:1">
                          <GUILocation x="4" y="60" width="120" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="bo_nonrel:1">
                          <GUILocation x="124" y="60" width="11" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="5">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="bo_partrel_prompt:1">
                          <GUILocation x="164" y="60" width="120" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="bo_partrel:1">
                          <GUILocation x="320" y="60" width="11" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
            </Grid>
            <Parents />
          </Part>
        </GridColumn>
      </GridRow>
      <GridRow num="2">
        <GridColumn num="1" span="3">
          <Part title="Selection criteria" x="0" y="106" width="310" height="114" style="showAlways">
            <Grid num="1">
              <GridRow num="1">
                <GridColumn num="1">
                  <BlockDef>
                    <RangeBlockArray span="1">
                      <RangeRows>
                        <RangeRow num="1">
                          <Description>
                            <Label num="1">Customer order:<GUILocation x="4" y="4" width="60" /></Label>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="66" y="4" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="order1:1">
                              <GUILocation x="102" y="4" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="156" y="4" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="order2:1">
                              <GUILocation x="175" y="4" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="2">
                          <Description>
                            <Label num="1">Customer code:<GUILocation x="4" y="18" width="59" /></Label>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="66" y="18" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="cust1:1">
                              <GUILocation x="102" y="18" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="156" y="18" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="cust2:1">
                              <GUILocation x="175" y="18" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="3">
                          <Description>
                            <Label num="1">Customer alpha:<GUILocation x="4" y="32" width="59" /></Label>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="66" y="32" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="alpha1:1">
                              <GUILocation x="102" y="32" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="156" y="32" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="alpha2:1">
                              <GUILocation x="175" y="32" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="4">
                          <Description>
                            <Label num="1">Date:<GUILocation x="4" y="46" width="23" /></Label>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="66" y="46" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="date1:1">
                              <GUILocation x="102" y="46" width="42" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="156" y="46" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="date2:1">
                              <GUILocation x="175" y="46" width="42" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="5">
                          <Description>
                            <Label num="1">Territory:<GUILocation x="4" y="60" width="36" /></Label>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="66" y="60" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="terr1:1">
                              <GUILocation x="102" y="60" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="156" y="60" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="terr2:1">
                              <GUILocation x="175" y="60" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="6">
                          <Description>
                            <Label num="1">Region:<GUILocation x="4" y="74" width="30" /></Label>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="66" y="74" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="region1:1">
                              <GUILocation x="102" y="74" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="156" y="74" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="region2:1">
                              <GUILocation x="175" y="74" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="7">
                          <Description>
                            <Label num="1">Ind. Class:<GUILocation x="4" y="88" width="39" /></Label>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="66" y="88" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="class1:1">
                              <GUILocation x="102" y="88" width="52" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="156" y="88" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="class2:1">
                              <GUILocation x="175" y="88" width="52" />
                            </Field>
                          </ToField>
                        </RangeRow>
                      </RangeRows>
                    </RangeBlockArray>
                  </BlockDef>
                </GridColumn>
              </GridRow>
            </Grid>
            <Parents />
          </Part>
        </GridColumn>
        <GridColumn num="4" span="3">
          <Part title="Additional selection criteria" x="320" y="106" width="310" height="114" style="">
            <Grid num="1">
              <GridRow num="1">
                <GridColumn num="1">
                  <BlockDef>
                    <RangeBlockArray span="1">
                      <RangeRows>
                        <RangeRow num="1">
                          <Description>
                            <Field num="1" ref="carrier_range_prompt:1">
                              <GUILocation x="4" y="4" width="78" />
                            </Field>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="84" y="4" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="carrier_range_from:1">
                              <GUILocation x="120" y="4" width="41" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="163" y="4" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="carrier_range_to:1">
                              <GUILocation x="182" y="4" width="41" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="2">
                          <Description>
                            <Field num="1" ref="del_range_prompt:1">
                              <GUILocation x="4" y="18" width="78" />
                            </Field>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="84" y="18" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="del_range_from:1">
                              <GUILocation x="120" y="18" width="41" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="163" y="18" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="del_range_to:1">
                              <GUILocation x="182" y="18" width="41" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="3">
                          <Description>
                            <Field num="1" ref="batch_range_prompt:1">
                              <GUILocation x="4" y="32" width="78" />
                            </Field>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="84" y="32" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="batch_range_from:1">
                              <GUILocation x="120" y="32" width="41" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="163" y="32" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="batch_range_to:1">
                              <GUILocation x="182" y="32" width="41" />
                            </Field>
                          </ToField>
                        </RangeRow>
                        <RangeRow num="4">
                          <Description>
                            <Field num="1" ref="load_range_prompt:1">
                              <GUILocation x="4" y="46" width="78" />
                            </Field>
                          </Description>
                          <FromText>
                            <Label num="1">Between<GUILocation x="84" y="46" width="36" /></Label>
                          </FromText>
                          <FromField>
                            <Field num="2" ref="load_range_from:1">
                              <GUILocation x="120" y="46" width="41" />
                            </Field>
                          </FromField>
                          <ToText>
                            <Label num="3">and<GUILocation x="163" y="46" width="17" /></Label>
                          </ToText>
                          <ToField>
                            <Field num="4" ref="load_range_to:1">
                              <GUILocation x="182" y="46" width="41" />
                            </Field>
                          </ToField>
                        </RangeRow>
                      </RangeRows>
                    </RangeBlockArray>
                  </BlockDef>
                </GridColumn>
              </GridRow>
            </Grid>
            <Parents />
          </Part>
        </GridColumn>
      </GridRow>
      <GridRow num="3">
        <GridColumn num="1" span="6">
          <Part title="Progress" x="0" y="240" width="630" height="44" style="">
            <Grid num="1">
              <GridRow num="1">
                <GridColumn num="2">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="read_message:1;order_message:1">
                          <GUILocation x="4" y="4" width="156" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="number_read:1;order_number:1">
                          <GUILocation x="160" y="4" width="50" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="4">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="released_message:1">
                          <GUILocation x="225" y="4" width="156" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="number_released:1">
                          <GUILocation x="381" y="4" width="50" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
              <GridRow num="2">
                <GridColumn num="2">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="changed_message:1">
                          <GUILocation x="4" y="18" width="156" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="number_changed:1">
                          <GUILocation x="160" y="18" width="50" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
                <GridColumn num="4">
                  <BlockDef>
                    <StandardBlock span="1" hidebox="False">
                      <Title>
                        <Field num="1" ref="held_message:1">
                          <GUILocation x="225" y="18" width="156" />
                        </Field>
                      </Title>
                      <Components>
                        <Field num="1" ref="number_held:1">
                          <GUILocation x="381" y="18" width="50" />
                        </Field>
                      </Components>
                    </StandardBlock>
                  </BlockDef>
                </GridColumn>
              </GridRow>
            </Grid>
            <Parents />
          </Part>
        </GridColumn>
      </GridRow>
    </Grid>
    <ActionKeys>
      <ActionKey key="0">
        <Icon>ActionClose.gif</Icon>
        <Conditions>
          <Condition name="Condition_1" description="Exit program">
            <ConditionAction action="Stop" />
          </Condition>
        </Conditions>
      </ActionKey>
      <ActionKey key="1">
        <Icon>ActionOK.gif</Icon>
        <Conditions>
          <Condition name="Condition_1" description="Enter order selection">
            <Data>Selected orders flag is 'y'</Data>
            <ConditionAction action="LaunchForm">
              <ConditionForm module="op" application="release_stopped_ords" name="select_orders" />
            </ConditionAction>
          </Condition>
          <Condition name="Condition_2" description="End of run">
            <ConditionAction action="LaunchForm">
              <ConditionForm module="sp" application="queue_manager" name="spool_submit" />
            </ConditionAction>
          </Condition>
        </Conditions>
      </ActionKey>
    </ActionKeys>
  </Form>
</Forms>
