// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   Order.java

package com.keyshop.shop.order.model;

import com.keyshop.pub.model.PubBean;
import com.keyshop.pub.util.DateUtil;
import java.util.*;

// Referenced classes of package com.keyshop.shop.order.model:
//            OrderAddress, OrderConsigneeAddress, OrderDetail

public class Order extends PubBean
{

    String serialNo;
    String orderDate;
    String shipType;
    String payType;
    String note;
    double totalCost;
    int productNumber;
    String creator;
    String status;
    OrderAddress orderAddress;
    OrderConsigneeAddress orderConsigneeAddress;
    Set childList;
    Set traces;
    String remessage;
    double integralAmount;
    int integral;
    int isIntegral;

    public Order()
    {
        orderDate = DateUtil.getSysDateTimeString();
        shipType = "";
        payType = "";
        note = "";
        totalCost = 0.0D;
        productNumber = 0;
        creator = "";
        status = "";
        orderAddress = new OrderAddress();
        orderConsigneeAddress = new OrderConsigneeAddress();
        childList = new HashSet();
        traces = new HashSet();
        remessage = "";
        integralAmount = 0.0D;
        integral = 0;
        isIntegral = 0;
    }

    public String getOrderString()
    {
        String orderString = "";
        if(childList != null && childList.size() > 0)
        {
            for(Iterator its = childList.iterator(); its.hasNext();)
            {
                OrderDetail detail = (OrderDetail)its.next();
                orderString = orderString + " " + detail.getProductName();
                orderString = orderString + "¹²" + detail.getQuantity() + "¸ö";
            }

        }
        return orderString;
    }

    public String getCreator()
    {
        return creator;
    }

    public String getNote()
    {
        return note;
    }

    public OrderAddress getOrderAddress()
    {
        return orderAddress;
    }

    public String getOrderDate()
    {
        return orderDate;
    }

    public String getPayType()
    {
        return payType;
    }

    public String getShipType()
    {
        return shipType;
    }

    public void setShipType(String shipType)
    {
        this.shipType = shipType;
    }

    public void setPayType(String payType)
    {
        this.payType = payType;
    }

    public void setOrderDate(String orderDate)
    {
        this.orderDate = orderDate;
    }

    public void setOrderAddress(OrderAddress orderAddress)
    {
        this.orderAddress = orderAddress;
    }

    public void setNote(String note)
    {
        this.note = note;
    }

    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public Set getChildList()
    {
        return childList;
    }

    public void setChildList(Set childList)
    {
        this.childList = childList;
    }

    public OrderConsigneeAddress getOrderConsigneeAddress()
    {
        return orderConsigneeAddress;
    }

    public void setOrderConsigneeAddress(OrderConsigneeAddress orderConsigneeAddress)
    {
        this.orderConsigneeAddress = orderConsigneeAddress;
    }

    public Set getTraces()
    {
        return traces;
    }

    public void setTraces(Set traces)
    {
        this.traces = traces;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getSerialNo()
    {
        return serialNo;
    }

    public void setSerialNo(String serialNo)
    {
        this.serialNo = serialNo;
    }

    public int getProductNumber()
    {
        return productNumber;
    }

    public void setProductNumber(int productNumber)
    {
        this.productNumber = productNumber;
    }

    public double getTotalCost()
    {
        return totalCost;
    }

    public void setTotalCost(double totalCost)
    {
        this.totalCost = totalCost;
    }

    public String getRemessage()
    {
        return remessage;
    }

    public void setRemessage(String remessage)
    {
        this.remessage = remessage;
    }

    public int getIntegral()
    {
        return integral;
    }

    public double getIntegralAmount()
    {
        return integralAmount;
    }

    public void setIntegral(int integral)
    {
        this.integral = integral;
    }

    public void setIntegralAmount(double integralAmount)
    {
        this.integralAmount = integralAmount;
    }

    public int getIsIntegral()
    {
        return isIntegral;
    }

    public void setIsIntegral(int isIntegral)
    {
        this.isIntegral = isIntegral;
    }
}
