Examples of Ticket


Examples of Negocio.Ticket

        }
        return ret;
    }

    static Ticket toViewTicket(TicketDTO t) {
        return new Ticket(t.getId(), t.getDataEmissaolong(), t.getHoraEmissaolong());
    }
View Full Code Here

Examples of com.agiletec.plugins.jpwtt.aps.system.services.ticket.model.Ticket

    return ticketIds;
  }
 
  @Override
  public Ticket getTicket(String code) throws ApsSystemException {
    Ticket ticket = null;
    try {
      ticket = this.getTicketDAO().loadTicket(code);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getTicket");
      throw new ApsSystemException("Error loading ticket", t);
View Full Code Here

Examples of com.captechconsulting.core.domain.Ticket

    private MappingService mappingService;

    @RequestMapping(value = "/ticket/{ticketId}/scan/{locationId}", method = RequestMethod.POST)
    @ResponseStatus(HttpStatus.CREATED)
    public LocationVO addLocationScan(@PathVariable long ticketId, @PathVariable long locationId) {
        Ticket ticket = ticketService.get(ticketId);
        Location location = ticketService.addLocationScan(ticket, locationId);
        return mappingService.map(location, LocationVO.class);
    }
View Full Code Here

Examples of com.centraview.support.ticket.Ticket

     
      TicketVO ticketVO = new TicketVO();
      TicketForm dynaForm = (TicketForm)form;

      TicketHome th = (TicketHome)CVUtility.getHomeObject("com.centraview.support.ticket.TicketHome", "Ticket");
      Ticket t = th.create();
      t.setDataSource(dataSource);

      TicketVO tVO = t.getTicketBasicRelations(individualId, ticketId);

      SupportFacadeHome supFacade = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = supFacade.create();
      remote.setDataSource(dataSource);
View Full Code Here

Examples of com.nineteendrops.tracdrops.client.api.ticket.ticket.Ticket

        if(parameter == null){
            throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Ticket", this.getClass().getName()));
        }
       
        Ticket ticket = (Ticket)parameter;

        // check for mandatory fields
        String summary = ticket.getSummary();
        if(summary == null || summary.trim().equals("")){
            throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Ticket.summary", this.getClass().getName()));
        }

        String description = ticket.getDescription();
        if(description == null || description.trim().equals("")){
            throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Ticket.description", this.getClass().getName()));
        }


        MultiParameter multiParameter = new MultiParameter();
        multiParameter.addParameter(summary);
        multiParameter.addParameter(description);

        Hashtable attributes = new Hashtable();
        for(String key: TicketKeys.FIELDS_ARRAY){
            if(!key.equals(TicketKeys.FIELD_SUMMARY) && !key.equals(TicketKeys.FIELD_DESCRIPTION)){
                String attribute = ticket.getOtherAttribute(key);
                if(attribute != null && !attribute.trim().equals("")){
                    attributes.put(key, attribute);
                }
            }
        }
View Full Code Here

Examples of com.sun.jini.thread.WakeupManager.Ticket

        if (unicastDelayRange <= 0) {
      new UnicastDiscoveryTask(pending).run();
        } else {
      final UnicastDiscoveryTask ud =
          new UnicastDiscoveryTask(pending, true);
      final Ticket t = restoreContextScheduleRunnable(ud);
      synchronized (ud) {
          ud.ticket = t;
          ud.delayRun = false;
          synchronized (pendingDiscoveries) {
        tickets.add(t);
View Full Code Here

Examples of com.zesped.model.Ticket

    super.validateBillNoteVsEmployee(errors);
  }

  public Resolution upload() throws Exception {
    String sFwd;
    Ticket tckt = null;
    BillNote bill = null;
    setCapturedCount(0);
    final int nItems = (getItems()==null ? 0 : getItems().size());
    if (nItems>0) {
      Log.out.debug("UploadBillNote "+String.valueOf(nItems)+" items found");
      try {
        connect(getSessionAttribute("nickname"), getSessionAttribute("password"));

        TaxPayer txpy = new TaxPayer(getSession().getDms(), getRecipientTaxPayer());

        bill = txpy.billnotes(getSession()).forConcept(getSession(), getConcept(), getEmployee());
        setCapturedPage1("");

        for (FileBean attachment : getItems()) {
          if (attachment != null) {
            if (attachment.getSize() > 0) {
              if (tckt==null) {
                tckt = bill.createTicket(getSession(), getAccount());
                setId(tckt.id());
                FlashScope oFscope = FlashScope.getCurrent(getContext().getRequest(), true);
                oFscope.put("ticket_docid", tckt.id());
              }
              TicketNote note = tckt.createNote(getSession(), attachment.getInputStream(), incCapturedCount(), attachment.getFileName());
              if (getCapturedPage1().length()==0) setCapturedPage1(note.id());
              attachment.delete();
            } else {
              ValidationError error = new SimpleError(attachment.getFileName()+ " is not a valid file." );
              getContext().getValidationErrors().add("items" , error);
            }
          }
          } // next
        disconnect();
        if (getCapturedCount()>0)
          ThumbnailCreator.createThumbnailFor(getId(), getCapturedPage1());       
        sFwd = "EditBillNote.action?id="+tckt.id();
      } catch (IllegalStateException e) {
        Log.out.error("BillNoteUpload.upload() "+e.getClass().getName()+" "+e.getMessage(), e);
        getContext().getMessages().add(new SimpleMessage("ERROR "+e.getMessage(), items));
        sFwd = "error.jsp?e=couldnotloadticket";
      } finally { close(); }
View Full Code Here

Examples of de.taimos.maven_redmine_plugin.model.Ticket

    firstVersion.setId(1);
    firstVersion.setName("TEST");
    firstVersion.setDescription("Test version");
    firstVersion.setStatus("READY");

    Ticket firstTicket1 = new Ticket();
    firstTicket1.setId(101);
    firstTicket1.setSubject("First ticket");
    firstTicket1.setDescription("First ticket description");
    firstTicket1.setCreated(new Date());

    Ticket firstTicket2 = new Ticket();
    firstTicket2.setId(102);
    firstTicket2.setSubject("Second ticket");
    firstTicket2.setDescription("Second ticket description");
    firstTicket2.setCreated(new Date());

    ticketsMap.put(firstVersion, Arrays.asList(firstTicket1, firstTicket2));
    return ticketsMap;
  }
View Full Code Here

Examples of net.minecraftforge.common.ForgeChunkManager.Ticket

    {
        if (map.containsKey(world.provider.dimensionId))
        {
            OutputHandler.debug(world.provider.dimensionId + " was already loaded. add 1 to count.");

            Ticket ticket = map.get(world.provider.dimensionId);
            ticket.getModData().setInteger("count", ticket.getModData().getInteger("count") + 1);
            return true;
        }
        else
        {
            Ticket ticket = ForgeChunkManager.requestTicket(ForgeEssentials.instance, world, ForgeChunkManager.Type.NORMAL);
            if (ticket == null)
            {
                OutputHandler.debug("Ticket was null ?");
                return false;
            }
            else
            {
                OutputHandler.debug("Force loaded " + world.provider.dimensionId);
                ForgeChunkManager.forceChunk(ticket, new ChunkCoordIntPair(0, 0));
                ticket.getModData().setInteger("count", 1);
                map.put(world.provider.dimensionId, ticket);
                return true;
            }
        }
    }
View Full Code Here

Examples of net.userSystem.ticket.domain.Ticket

  {
    String id=getRequest().getParameter("id");
    if(id!=null&&!"".equals(id)){
      ticket=ticketService.getTicketById(id);
    }else{
      ticket=new Ticket();
    }
    List<Map<String, String>> list=new ArrayList<Map<String,String>>();
    Map<String, String> map=new HashMap<String, String>();
    map.put("name", "无效");
    map.put("value", "0");
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.