Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.JobFunction


         * @param rowIndex
         * @param columnIndex
         * @return verdi
         */
        public Object getValueAt(int rowIndex, int columnIndex) {
            JobFunction jobFunction = (JobFunction) getRow(rowIndex);
            switch (columnIndex) {
            case 0:
                return jobFunction.getJobFunctionName();
            case 1:
                return jobFunction.getJobFunctionDescription();
            case 2:
                return jobFunction.getManager();
            default:
                throw new IllegalStateException("Unknown column");
            }

        }
View Full Code Here


   * @param presentationModel
   */
  void setCategoryList(PresentationModel presentationModel) {
    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean("jobFunctionManager");
    JobFunction jobFunction = (JobFunction) presentationModel
        .getBufferedValue(PreventiveActionModel.PROPERTY_JOB_FUNCTION);

    jobFunctionManager.lazyLoad(jobFunction, new LazyLoadEnum[][] { {
        LazyLoadEnum.FUNCTION_CATEGORIES, LazyLoadEnum.NONE } });
    if (jobFunction != null) {
      categoryList.clear();
      categoryList.addAll(jobFunction.getFunctionCategories());

    }

  }
View Full Code Here

    public final JobFunction getDeviationFunction() {
        return deviationFunction;
    }

    public final void setDeviationFunction(final JobFunction aDeviationFunction) {
        JobFunction oldFunction = getDeviationFunction();
        this.deviationFunction = aDeviationFunction;
        firePropertyChange(PROPERTY_DEVIATION_FUNCTION, oldFunction,
                aDeviationFunction);
    }
View Full Code Here

   */
  void initFunctionCategoryList() {
    functionCategoryList.clear();
    presentationModel.setBufferedValue(
        ExcelReportSettingDeviation.PROPERTY_FUNCTION_CATEGORY, null);
    JobFunction jobFunction = (JobFunction) presentationModel
        .getBufferedValue(ExcelReportSettingDeviation.PROPERTY_DEVIATION_FUNCTION);
    if (jobFunction != null && jobFunction.getFunctionCategories() != null) {
      functionCategoryList.addAll(jobFunction.getFunctionCategories());
      functionCategoryList.add(0, null);
    }
  }
View Full Code Here

    /**
     * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
     */
    public void propertyChange(PropertyChangeEvent arg0) {
      JobFunction function = (JobFunction) presentationModel
          .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION);
      if (function != null) {
        ApplicationUser manager = function.getManager();
        if (manager != null
            && manager.equals(login.getApplicationUser())) {
          dateChooserProcedureCheck.setEnabled(true);
        }
      }
View Full Code Here

        presentationModel.getBufferedModel(
            DeviationModel.PROPERTY_DEVIATION_FUNCTION)
            .addValueChangeListener(
                new DeviationFunctionChangeListener(
                    presentationModel));
        JobFunction function = (JobFunction) presentationModel
            .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION);
        if (function != null) {

          ApplicationUser manager = function.getManager();
          if (manager != null
              && manager.equals(login.getApplicationUser())) {
            dateChooserProcedureCheck.setEnabled(true);
          }
        }
View Full Code Here

   * @param presentationModel
   */
  void setCategoryList(PresentationModel presentationModel) {
    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean("jobFunctionManager");
    JobFunction deviationFunction = (JobFunction) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION);

    jobFunctionManager.lazyLoad(deviationFunction, new LazyLoadEnum[][] { {
        LazyLoadEnum.FUNCTION_CATEGORIES, LazyLoadEnum.NONE } });
    if (deviationFunction != null) {
      functionCategoryList.clear();
      functionCategoryList.addAll(deviationFunction
          .getFunctionCategories());
      functionCategoryList.add(0, null);

    }
  }
View Full Code Here

   * @param presentationModel
   * @param selectedAction
   */
  void setPreventiveActionList(PresentationModel presentationModel,
      PreventiveAction selectedAction) {
    JobFunction deviationFunction = (JobFunction) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION);
    FunctionCategory functionCategory = (FunctionCategory) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_FUNCTION_CATEGORY);

    if (deviationFunction != null && functionCategory != null) {
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.JobFunction

Copyright © 2018 www.massapicom. 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.