Search in sources :

Example 1 with DatePeriodField

use of com.storedobject.ui.DatePeriodField in project SODevelopment by syampillai.

the class SchedulerLogViewer method buildFields.

@Override
protected void buildFields() {
    jobField = new ObjectField<>("Scheduler", Schedule.class);
    setRequired(jobField);
    addField(jobField);
    periodField = new DatePeriodField("Period", new DatePeriod(DateUtility.yesterday(), DateUtility.today()));
    addField(periodField);
}
Also used : Schedule(com.storedobject.job.Schedule) DatePeriod(com.storedobject.core.DatePeriod) DatePeriodField(com.storedobject.ui.DatePeriodField)

Example 2 with DatePeriodField

use of com.storedobject.ui.DatePeriodField in project SODevelopment by syampillai.

the class StockMovementReport method buildFields.

@Override
protected void buildFields() {
    storeField = new ObjectField<>("Store", InventoryStore.class, true);
    addField(storeField);
    setRequired(storeField);
    periodField = new DatePeriodField("Period", new DatePeriod(DateUtility.startOfMonth(), DateUtility.today()));
    addField(periodField);
    summaryField = new BooleanField("Print Summary Only");
    addField(summaryField);
    zerosField = new BooleanField("Print Zero-Quantity Items");
    addField(zerosField);
}
Also used : InventoryStore(com.storedobject.core.InventoryStore) BooleanField(com.storedobject.vaadin.BooleanField) DatePeriod(com.storedobject.core.DatePeriod) DatePeriodField(com.storedobject.ui.DatePeriodField)

Example 3 with DatePeriodField

use of com.storedobject.ui.DatePeriodField in project SODevelopment by syampillai.

the class SMSLog method buildFields.

@Override
protected void buildFields() {
    DatePeriod p = new DatePeriod(DateUtility.addYear(DateUtility.today(), -1), DateUtility.today());
    periodField = new DatePeriodField("Period", p);
    addField(periodField);
    delivered = new BooleanField("Delivered");
    addField(delivered);
}
Also used : BooleanField(com.storedobject.vaadin.BooleanField) DatePeriodField(com.storedobject.ui.DatePeriodField)

Example 4 with DatePeriodField

use of com.storedobject.ui.DatePeriodField in project SODevelopment by syampillai.

the class MailLog method buildFields.

@Override
protected void buildFields() {
    periodField = new DatePeriodField("Period");
    addField(periodField);
    statusField = new ChoiceField("Delivery Status", new String[] { "All", "Sent", "Not sent" });
    addField(statusField);
}
Also used : DatePeriodField(com.storedobject.ui.DatePeriodField) ChoiceField(com.storedobject.vaadin.ChoiceField)

Aggregations

DatePeriodField (com.storedobject.ui.DatePeriodField)4 DatePeriod (com.storedobject.core.DatePeriod)2 BooleanField (com.storedobject.vaadin.BooleanField)2 InventoryStore (com.storedobject.core.InventoryStore)1 Schedule (com.storedobject.job.Schedule)1 ChoiceField (com.storedobject.vaadin.ChoiceField)1