Exemplo n.º 1
0
 protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException {
   form.getGlobalContext()
       .Scheduling
       .setProfileParentChildSlot(
           ProfileParentChildSlotVoAssembler.copy(
               form.getGlobalContext().Scheduling.getProfileParentChildSlot(),
               form.getLocalContext().getProfileParentChildSlot()));
   engine.close(DialogResult.CANCEL);
 }
Exemplo n.º 2
0
  protected void onFormOpen(Object[] args)
      throws ims.framework.exceptions.PresentationLogicException {
    if (form.getGlobalContext().Scheduling.getProfileEndTimeIsNotNull())
      form.lblProfileEndTime()
          .setValue(form.getGlobalContext().Scheduling.getProfileEndTime().toString());

    ProfileParentChildSlotVo voSlot =
        form.getGlobalContext().Scheduling.getProfileParentChildSlot();

    // WDEV-12039
    form.getLocalContext().setProfileParentChildSlot(new ProfileParentChildSlotVo());
    ProfileParentChildSlotVoAssembler.copy(
        form.getLocalContext().getProfileParentChildSlot(), voSlot);

    if (voSlot != null) {
      this.populateScreenFromData(voSlot);
      if (voSlot.getID_ProfileParentChildSlot() == null && voSlot.getIsActive() == null)
        form.chkActive().setValue(true);
    }
  }