<!--
 * Copyright (c) 2001, Oracle Corporation.  All rights reserved.
 *
 *      NAME
 *       ecmRecurDate.uix
 *
 *      NOTES
 *      (generic) insert used to set a recurring date for job submit
 *
 *
 *
 *  @author  kChiasson
 *
-->

<dataScope xmlns="http://bali.us.oracle.com/cabo/marlin"
           xmlns:uix="http://bali.us.oracle.com/cabo/marlin"
           xmlns:html="http://www.w3.org/TR/REC-html40">

  <provider>
       <data xmlns="http://bali.us.oracle.com/cabo/marlin" name="recurDateData">
           <method class="oracle.sysman.eml.ecm.RecurDateData" method="populateRecurDateData"/>
       </data>

  </provider>
  <contents>

  <header >
  <contents>

  <header text="Frequency">
  <contents>

    <styledText styleClass="OraInstructionText">
    <contents>

        Frequency denotes how often you want to execute your job.  Optionally you can run this job one time,
        or at scheduled intervals.

    </contents>
    </styledText>

    <html:br> </html:br>
    <html:br> </html:br>

    <tableLayout borderWidth="0">
    <contents>

      <rowLayout>
      <contents>

        <cellFormat hAlign="left">
        <contents>
            <radioButton name="scheduleType"
                    value="1"
                    uix:selected="s0@recurDateData" />
            <styledText styleClass="OraPromptText" text="One Time"/>

        </contents>
        </cellFormat>

      </contents>
      </rowLayout>


      <rowLayout>
      <contents>

        <cellFormat wrappingDisabled="true" hAlign="left">
        <contents>
            <radioButton name="scheduleType"
                        value="2"
                        uix:selected="s1@recurDateData" />

            <styledText styleClass="OraPromptText" text="Interval"/>
        </contents>
        </cellFormat>


        <cellFormat hAlign="right">
        <contents>
            <styledText styleClass="OraPromptText" text="Every:"/>
            <spacer width="8" />
        </contents>
        </cellFormat>

        <cellFormat hAlign="left">
        <contents>
            <textInput name="interval" columns="4" uix:text="interval@recurDateData"/>
            <spacer width="8" />
            <choice name="intUnit" uix:selectedValue="intUnit@recurDateData">
            <contents>
                <option text="Days" value="Days"/>
                <option text="Hours" value="Hours"/>
            </contents>
            </choice>

        </contents>
        </cellFormat>

      </contents>
      </rowLayout>

      <rowLayout>
      <contents>

        <cellFormat wrappingDisabled="true" hAlign="left">
        <contents>

            <radioButton name="scheduleType"
                        value="3"
                        uix:selected="s2@recurDateData" />

            <styledText styleClass="OraPromptText" text="Weekly"/>
        </contents>
        </cellFormat>


        <cellFormat hAlign="right">
        <contents>
            <styledText styleClass="OraPromptText" text="Day of Week:"/>
            <spacer width="8" />
        </contents>
        </cellFormat>

        <cellFormat hAlign="left">
        <contents>

            <checkBox name="dayOfWeek1" text="Sun" uix:checked="isChecked1@recurDateData" value="true"/>
            <checkBox name="dayOfWeek2" text="Mon" uix:checked="isChecked2@recurDateData" value="true"/>
            <checkBox name="dayOfWeek3" text="Tue" uix:checked="isChecked3@recurDateData" value="true"/>
            <checkBox name="dayOfWeek4" text="Wed" uix:checked="isChecked4@recurDateData" value="true"/>
            <checkBox name="dayOfWeek5" text="Thu" uix:checked="isChecked5@recurDateData" value="true"/>
            <checkBox name="dayOfWeek6" text="Fri" uix:checked="isChecked6@recurDateData" value="true"/>
            <checkBox name="dayOfWeek7" text="Sat" uix:checked="isChecked7@recurDateData" value="true"/>

        </contents>
        </cellFormat>

      </contents>
      </rowLayout>


      <rowLayout>
      <contents>

        <cellFormat wrappingDisabled="true" hAlign="left">
        <contents>
            <radioButton name="scheduleType"
                        value="4"
                        uix:selected="s3@recurDateData" />
            <styledText styleClass="OraPromptText" text="Monthly"/>
        </contents>
        </cellFormat>

        <cellFormat hAlign="right">
        <contents>
            <styledText styleClass="OraPromptText" text="Day of Month:"/>
            <spacer width="8" />
        </contents>
        </cellFormat>

        <cellFormat hAlign="left">
        <contents>
            <textInput name="dayOfMonth" columns="4" uix:text="dayOfMonth@recurDateData"/>
        </contents>
        </cellFormat>


      </contents>
      </rowLayout>


    </contents>
    </tableLayout>


    <spacer height="20"/>

    </contents>
    </header>
    
    <header text="Date">
    <contents>

        <styledText styleClass="OraInstructionText">
        <contents>

                        For a one time run, the until date is ignored.
                        For a recurring job (scheduled to run at specified intervals), the job will begin on the Start Date and Time and re-run at the specified
                        interval until the Until Date expires.

        </contents>
        </styledText>

        <html:br> </html:br>
        <html:br> </html:br>


        <tableLayout>
        <contents>

            <rowLayout>
            <contents>

                <cellFormat wrappingDisabled="true" hAlight="right">
                <contents>
                    <styledText styleClass="OraPromptText" text="Start Date"/>
                    <spacer width="8"/>
                </contents>
                </cellFormat>

                <cellFormat wrappingDisabled="true" hAlight="left">
                <contents>
                    <rowLayout>
                    <contents>
                        <dateField name="eDate"
                          uix:value="currentDate@recurDateData"
                          id="Start Date"
                          columns="10">
                          <onSubmitValidater>
                            <date dateStyle="short" pattern="MM/dd/yyyy" />
                          </onSubmitValidater>
                        </dateField>
                    </contents>
                    </rowLayout>
                </contents>
                </cellFormat>


                <cellFormat wrappingDisabled="true" hAlight="left" >
                <contents>
                    <rowLayout>
                    <contents>
                        <spacer width="10"/>
                        <styledText styleClass="OraPromptText" text="Time"/>
                        <spacer width="8"/>
                        <textInput columns="11" name="eTime"
                            uix:text="currentTime@recurDateData"/>
                    </contents>
                    </rowLayout>

                </contents>
                </cellFormat>

            </contents>
            </rowLayout>

            <rowLayout>
            <contents>

                <cellFormat wrappingDisabled="true" hAlight="right">
                <contents>

                    <styledText styleClass="OraPromptText" text="Until Date"/>
                    <spacer width="8"/>

                </contents>
                </cellFormat>

                <cellFormat wrappingDisabled="true" hAlight="left" >
                <contents>

                    <rowLayout>
                    <contents>
                        <dateField name="uDate"
                            uix:value="untilDate@recurDateData"
                            id="Until Date"
                            columns="10">
                          <onSubmitValidater>
                            <date dateStyle="short" pattern="MM/dd/yyyy" />
                          </onSubmitValidater>
                        </dateField>

                    </contents>
                    </rowLayout>
                </contents>
                </cellFormat>

            </contents>
            </rowLayout>

        </contents>
        </tableLayout>

    </contents>
    </header>

  </contents>
  </header>

</contents>
</dataScope>


