/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mars.helios.heliosweb.client.screen.databalance;

import com.mars.helios.heliosweb.shared.domain.*;

/**
 *
 * @author schefferp
 */
public class BugDto extends HeliosListGridRecord {

    String item;
    String itemKey;
    String sourceMoeKey;
    String sourceMoe;
    String destinationMoe;
    String destinationMoeKey;
    String customer;
    String customerKey;
    String lineItem;
    String lineItemKey;
    String period;
    String periodKey;
    String value;

    
        /**
     *
     * @param item
     * @param itemKey
     * @param sourceMoeKey
     * @param sourceMoe
     * @param destinationMoe
     * @param destinationMoeKey
     * @param customer
     * @param customerKey
     * @param lineItem
     * @param lineItemKey
     * @param period
     * @param periodKey
     * @param value
     */
    public BugDto(DataBalance dataBalance) {
super();
        setItem(dataBalance.getItem());
        setItemKey(dataBalance.getItemKey());
        setLineItem(dataBalance.getLineItem());
        setLineItemKey(dataBalance.getLineItemKey());
        setSourceMoeKey(dataBalance.getSourceMoeKey());
        setSourceMoe(dataBalance.getSourceMoe());
        setDestinationMoe(dataBalance.getDestinationMoe());
        setDestinationMoeKey(dataBalance.getDestinationMoeKey());
        setCustomer(dataBalance.getCustomer());
        setCustomerKey(dataBalance.getCustomerKey());
        setPeriod(dataBalance.getPeriod());
        setPeriodKey(dataBalance.getPeriodKey());
        setValue(dataBalance.getValue());
    }
    
    /**
     *
     * @param item
     * @param itemKey
     * @param sourceMoeKey
     * @param sourceMoe
     * @param destinationMoe
     * @param destinationMoeKey
     * @param customer
     * @param customerKey
     * @param lineItem
     * @param lineItemKey
     * @param period
     * @param periodKey
     * @param value
     */
    public BugDto(String item, String itemKey, String lineItem, String lineItemKey, String sourceMoe,String sourceMoeKey,  String destinationMoe, String destinationMoeKey, String customer, String customerKey, String period, String periodKey, String value) {

        setItem(item);
        setItemKey(itemKey);
        setLineItem(lineItem);
        setLineItemKey(lineItemKey);
        setSourceMoeKey(sourceMoeKey);
        setSourceMoe(sourceMoe);
        setDestinationMoe(destinationMoe);
        setDestinationMoeKey(destinationMoeKey);
        setCustomer(customer);
        setCustomerKey(customerKey);
        setPeriod(period);
        setPeriodKey(periodKey);
        setValue(value);
    }

    public BugDto() {
    }

    public void setCustomer(String customer) {
        setAttribute("customer", customer);
    }

    public void setDestinationMoe(String destinationMoe) {
        setAttribute("destinationMoe", destinationMoe);
    }

    public void setItem(String item) {
        setAttribute("item", item);
    }

    public void setItemKey(String itemKey) {
        setAttribute("itemKey", itemKey);
    }

    public void setLineItem(String lineItem) {
        setAttribute("lineItem", lineItem);
    }

    public void setPeriod(String period) {
        setAttribute("period", period);
    }

    public void setSourceMoeKey(String sourceMoeKey) {
        setAttribute("sourceMoeKey", sourceMoeKey);
    }

    public void setCustomerKey(String customerKey) {
        setAttribute("customerKey", customerKey);
    }

    public void setDestinationMoeKey(String destinationMoeKey) {
        setAttribute("destinationMoeKey", destinationMoeKey);
    }

    public void setLineItemKey(String lineItemKey) {
        setAttribute("lineItemKey", lineItemKey);
    }

    public void setPeriodKey(String periodKey) {
        setAttribute("periodKey", periodKey);
    }

    public void setSourceMoe(String sourceMoe) {
        setAttribute("sourceMoe", sourceMoe);
    }

    public void setValue(String value) {
        setAttribute("_value", value);
    }

    public String getCustomer() {
        return getAttribute("customer");
    }

    public String getCustomerKey() {
        return getAttribute("customerKey");
    }

    public String getDestinationMoe() {
        return getAttribute("destinationMoe");
    }

    public String getDestinationMoeKey() {
        return getAttribute("destinationMoeKey");
    }

    public String getItem() {
        return getAttribute("item");
    }

    public String getItemKey() {
        return getAttribute("itemKey");
    }

    public String getLineItem() {
        return getAttribute("lineItem");
    }

    public String getLineItemKey() {
        return getAttribute("lineItemKey");
    }

    public String getPeriod() {
        return getAttribute("period");
    }

    public String getPeriodKey() {
        return getAttribute("periodKey");
    }

    public String getSourceMoe() {
        return getAttribute("sourceMoe");
    }

    public String getSourceMoeKey() {
        return getAttribute("sourceMoeKey");
    }

    public String getValue() {
        return getAttribute("_value");
    }
    
        public void setHilite(String hilite) {  
        setAttribute("_hilite", hilite);  
    }  
  
    public String getHilite(String hilite) {  
        return getAttribute("_hilite");  
    }


    
         @Override
    public String toString() {
        return "DataBalanceDto{" + "item=" + getItem() + ", itemKey=" + getItemKey() + ", sourceMoeKey=" + getSourceMoeKey() + ", sourceMoe=" + getSourceMoe() + ", destinationMoe=" + getDestinationMoe()+ ", destinationMoeKey=" + getDestinationMoeKey() + ", customer=" + getCustomer() + ", customerKey=" + getCustomerKey() + ", lineItem=" + getLineItem() + ", lineItemKey=" + getLineItemKey() + ", period=" + getPeriod()+ ", periodKey=" + getPeriodKey() + ", value=" + getValue() + '}';
    }
}
