Package domain

Examples of domain.Collaborator


       
        WorkReportDTO dto = (WorkReportDTO) command;
        model.put("command", dto);

        //STUB
        Collaborator author = getDao().getById(Collaborator.class, getUserInfo().getCurrentCollaboratorId());
        //ENDSTUB

        Day day = new  Day(dto.getYear(), dto.getMonth(), dto.getDay());

        DetachedCriteria queryCriteria = DetachedCriteria.forClass(SheduleReception.class)
View Full Code Here


        this.collaborator = reception.getCollaborator();
        this.register =  (reception.getRegister() != null
                ? new SimpleDateFormat("kk:mm").format(reception.getRegister())
                : "");

        Collaborator authorColl = reception.getAuthor();
        if (authorColl != null) {
            author = authorColl.getClient().toString();
        }
        time = reception.getBegin().getTime();
    }
View Full Code Here

    @Override
    protected void onBind(HttpServletRequest request, Object command, BindException errors) throws Exception {
        CollaboratorDTO dto = (CollaboratorDTO) super.getCommand(request);
        if(dto.getCollaborator() != null) {
            Collaborator collab = dto.getCollaborator();
            dto.setSurname(collab.getClient().getSurname().getTitle());
            dto.setName(collab.getClient().getName().getTitle());
            dto.setPatron(collab.getClient().getPatronymic().getTitle());
        }
    }
View Full Code Here

    }

    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        Client client = CH.getOptional(getDao(), Client.class, request.getParameter("client"));
        Collaborator collab = CH.getOptional(getDao(), Collaborator.class, request.getParameter("collaborator"));
        WorkType type = CH.getOptional(getDao(), WorkType.class, request.getParameter("type"));
        Lpu lpu = CH.getOptional(getDao(), Lpu.class, request.getParameter("lpu"));
        if (collab == null) {
            return IncomingParamsValidator.redirectTo("/operator/collaborator.htm", client, type, lpu, collab);
        }
View Full Code Here

    protected ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {

        Client client = CH.getOptional(getDao(), Client.class, request.getParameter("client"));
        WorkType type = CH.getOptional(getDao(), WorkType.class, request.getParameter("type"));
        Lpu lpu = CH.getOptional(getDao(), Lpu.class, request.getParameter("lpu"));
        Collaborator collab = CH.getOptional(getDao(), Collaborator.class, request.getParameter("collaborator"));

        if (client == null) {
            return IncomingParamsValidator.redirectTo("/reception/index.htm", client, type, lpu, collab);
        } else if (collab == null) {
            return IncomingParamsValidator.redirectTo("/reception/collaborator.htm", client, type, lpu, collab);
View Full Code Here

    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        Client client = CH.getOptional(getDao(), Client.class, request.getParameter("client"));
        WorkType type = CH.getOptional(getDao(), WorkType.class, request.getParameter("type"));
        Lpu lpu = CH.getOptional(getDao(), Lpu.class, request.getParameter("lpu"));
        Collaborator collab = CH.getOptional(getDao(), Collaborator.class, request.getParameter("collaborator"));

        if (client == null) {
            return IncomingParamsValidator.redirectTo("/reception/index.htm", client, type, lpu, collab);
        } else if (collab == null) {
            return IncomingParamsValidator.redirectTo("/reception/collaborator.htm", client, type, lpu, collab);
View Full Code Here

TOP

Related Classes of domain.Collaborator

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.