Examples of EmployeeView


Examples of no.ugland.utransprod.gui.EmployeeView

              .convertRowIndexToModel(objectSelectionList
                  .getSelectionIndex()));
      EmployeeViewHandler employeeViewHandler = new EmployeeViewHandler(
          supplier, userType, managerRepository.getEmployeeManager(),
          managerRepository.getEmployeeTypeManager());
      EmployeeView employeeView = new EmployeeView(
          employeeViewHandler);

      JDialog dialog = new JDialog(ProTransMain.PRO_TRANS_MAIN,
          employeeView.getTitle(), true);
      WindowInterface window = new JDialogAdapter(dialog);
      window.add(employeeView.buildPanel(window));

      window.pack();
      window.setSize(employeeViewHandler.getWindowSize());

      Util.locateOnScreenCenter(window);
View Full Code Here

Examples of org.springmodules.xt.examples.mvc.form.EmployeeView

        OfficeView view = (OfficeView) command;
        Collection<EmployeeView> empsList = view.getSelectableEmployees();
        IOffice office = (IOffice) this.introductor.getTarget(view);
       
        for (Iterator it = empsList.iterator(); it.hasNext();) {
            EmployeeView emp = (EmployeeView) it.next();
            if (emp.getSelected() != null && emp.getSelected().booleanValue() == true) {
                it.remove();
            }
        }
        try {
            store.addOffice(office);
View Full Code Here

Examples of org.springmodules.xt.examples.mvc.form.EmployeeView

       
        return result;
    }

    protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {
        EmployeeView view = (EmployeeView) command;
        IOffice office = view.getOffice();
       
        if (store.getEmployee(view.getMatriculationCode()) != null) {
            errors.rejectValue("matriculationCode", EmployeeErrorCodes.DUPLICATED_CODE, "Duplicated Matriculation Code!");
            return this.showForm(request, response, errors);
        }
        if (office == null) {
            errors.rejectValue("office", OfficeErrorCodes.NOT_FOUND, "No office found!");
View Full Code Here

Examples of org.springmodules.xt.test.domain.EmployeeView

    }
   
    private void internalTestModifyAndIterate(IntroductorSet introductor) {
        int n = 0;
        for (Iterator it = introductor.iterator(); it.hasNext();) {
            EmployeeView v = (EmployeeView) it.next();
            Office o = new Office();
            o.setOfficeId("" + ++n);
            v.setOffice(o);
        }
       
        n = 0;
        for (Iterator it = introductor.iterator(); it.hasNext();) {
            EmployeeView v = (EmployeeView) it.next();
            assertEquals("" + ++n, v.getOffice().getOfficeId());
        }
    }
View Full Code Here

Examples of org.springmodules.xt.test.domain.EmployeeView

    }
   
    private void internalTestModifyAndIterate(IntroductorCollection introductor) {
        int n = 0;
        for (Iterator it = introductor.iterator(); it.hasNext();) {
            EmployeeView v = (EmployeeView) it.next();
            Office o = new Office();
            o.setOfficeId("" + ++n);
            v.setOffice(o);
        }
       
        n = 0;
        for (Iterator it = introductor.iterator(); it.hasNext();) {
            EmployeeView v = (EmployeeView) it.next();
            assertEquals("" + ++n, v.getOffice().getOfficeId());
        }
    }
View Full Code Here

Examples of org.springmodules.xt.test.domain.EmployeeView

    }
   
    private void internalTestModifyAndIterate(IntroductorCollection introductor) {
        int n = 0;
        for (Iterator it = introductor.iterator(); it.hasNext();) {
            EmployeeView v = (EmployeeView) it.next();
            Office o = new Office();
            o.setOfficeId("" + ++n);
            v.setOffice(o);
        }
       
        n = 0;
        for (Iterator it = introductor.iterator(); it.hasNext();) {
            EmployeeView v = (EmployeeView) it.next();
            assertEquals("" + ++n, v.getOffice().getOfficeId());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.