Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Assembly


   */
  @SuppressWarnings("unchecked")
  @Override
  public AssemblyModel getBufferedObjectModel(
      PresentationModel presentationModel) {
    AssemblyModel assemblyModel = new AssemblyModel(new Assembly(),
        userName);
    assemblyModel.setSupplier((Supplier) presentationModel
        .getBufferedValue(PROPERTY_SUPPLIER));
    assemblyModel.setAssemblyWeek((Integer) presentationModel
        .getBufferedValue(PROPERTY_ASSEMBLY_WEEK));
View Full Code Here


  /**
   * @param assembly
   */
  public void setAssembly(Assembly assembly) {
    Assembly oldAssembly = getAssembly();
    object.setAssembly(assembly);
    firePropertyChange(PROPERTY_ASSEMBLY, oldAssembly, assembly);
  }
View Full Code Here

   * @param year
   */
  public void setAssemblyYear(Integer year) {
    Integer oldYear = getAssemblyYear();
    if (assembly == null) {
      assembly = new Assembly();
      assembly.setAssemblyYear(Calendar.getInstance().get(Calendar.YEAR));
    }
    assembly.setAssemblyYear(year);
    assembly.setInactive(0);
    firePropertyChange(PROPERTY_ASSEMBLY_YEAR, oldYear, year);
View Full Code Here

   * @param week
   */
  public void setAssemblyWeek(Integer week) {
    Integer oldWeek = getAssemblyWeek();
    if (assembly == null) {
      assembly = new Assembly();
      assembly.setAssemblyYear(Calendar.getInstance().get(Calendar.YEAR));
    }
    assembly.setAssemblyWeek(week);
    assembly.setInactive(0);
    firePropertyChange(PROPERTY_ASSEMBLY_WEEK, oldWeek, week);
View Full Code Here

   * @param assemblyTeam
   */
  public void setSupplier(final Supplier aSupplier) {
    Supplier oldSupplier = getSupplier();
    if (assembly == null) {
      assembly = new Assembly();
      assembly.setAssemblyYear(Calendar.getInstance().get(Calendar.YEAR));
    }
    assembly.setSupplier(aSupplier);
    assembly.setInactive(0);
    firePropertyChange(PROPERTY_SUPPLIER, oldSupplier, aSupplier);
View Full Code Here

   * Editerer montering
   *
   * @param window
   */
  void editAssembly(WindowInterface window) {
    Assembly assembly = (Assembly) assemblySelectionList.getSelection();
    if (assembly != null) {
      openEditView(assembly, false, window);
    }
    fireAsesemblyChanged();
  }
View Full Code Here

   * @param window
   */
  void removeAssembly(WindowInterface window) {
    int index = tableOrders.convertRowIndexToModel(assemblySelectionList
        .getSelectionIndex());
    Assembly assembly = (Assembly) assemblySelectionList
        .getElementAt(index);

    Order order = assembly.getOrder();
    Deviation deviation = assembly.getDeviation();

    orderViewHandler.setAssemblyInactive(assembly);
    if (order != null) {

      try {
View Full Code Here

  /**
   * @see no.ugland.utransprod.gui.handlers.AbstractViewHandler#getNewObject()
   */
  @Override
  public Assembly getNewObject() {
    return new Assembly();
  }
View Full Code Here

   * Viser manglende kollier
   *
   * @param window
   */
  void showMissingCollies(WindowInterface window) {
    Assembly assembly = (Assembly) assemblySelectionList.getSelection();
    if (assembly != null) {
      Order order = assembly.getOrder();
      Deviation deviation = assembly.getDeviation();
      List<OrderLine> missing = null;
      if (order != null) {
        orderViewHandler.lazyLoadOrder(order, new LazyLoadOrderEnum[] {
            LazyLoadOrderEnum.ORDER_LINES,
            LazyLoadOrderEnum.COMMENTS,
View Full Code Here

    }

  }

  void generateAssemblyReport() throws ProTransException {
    Assembly assembly = (Assembly) assemblySelectionList
        .getElementAt(tableOrders
            .convertRowIndexToModel(assemblySelectionList
                .getSelectionIndex()));
    if (assembly != null) {
      managerRepository.getOrderManager().lazyLoadOrder(
          assembly.getOrder(),
          new LazyLoadOrderEnum[] { LazyLoadOrderEnum.ORDER_COSTS,
              LazyLoadOrderEnum.COMMENTS });

      List<Ordln> vismaOrderLines = managerRepository.getOrdlnManager()
          .findByOrderNr(assembly.getOrder().getOrderNr());
      AssemblyReport assemblyReport = assemblyReportFactory.create(
          assembly.getOrder(), vismaOrderLines);

      mailConfig.addToHeading(" for ordrenummer "
          + assembly.getOrder().getOrderNr());

      ReportViewer reportViewer = new ReportViewer("Montering",
          mailConfig);
      List<AssemblyReport> assemblyReportList = new ArrayList<AssemblyReport>();
      assemblyReportList.add(assemblyReport);
View Full Code Here

TOP

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

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.