Package com.suarte.core

Examples of com.suarte.core.Remission


    public String add() {
        if (id != null) {
            remission = remissionManager.get(id);
        } else {
            remission = new Remission();
        }

        return "add";
    }
View Full Code Here


    public String edit() {
        System.out.println("Entra Edit Remission");
        if (id != null) {
            remission = remissionManager.get(id);
        } else {
            remission = new Remission();
        }

        return "edit";
    }
View Full Code Here

    public String generateRemission() {
        HttpServletRequest request = getRequest();
        Date date = new Date();
        User requestUser = userManager.getUserByUsername(request.getRemoteUser());

        Remission remission = new Remission();
        remission.setWorkOrder(workOrder);
        remission.setDescription(workOrder.getDescription());
        remission.setDate(date);
        remission.setEmployee(null);
        remission.setCreatedBy(requestUser);
        remission.setModifiedBy(requestUser);
        remission.setCreatedOn(date);
        remission.setModifiedOn(date);

        for (WorkOrderDetail qDetail : workOrder.getDetails()) {
            RemissionDetail remissionDetail = new RemissionDetail();
            remissionDetail.setQuotationDetail(qDetail.getQuotationDetail());
            remission.addDetail(remissionDetail);
            qDetail.setStatus(WorkOrderStatus.REMITIDA);
        }

        remissionManager.save(remission);
View Full Code Here

TOP

Related Classes of com.suarte.core.Remission

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.