package report_package;

import java.io.Serializable;
import java.util.ArrayList;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;

import main_package.UserInfo;

@ManagedBean(name="printFileCharge")
@ViewScoped

public class PrintFileChargeReportBean implements Serializable
{
	ArrayList<UserInfo> finalList;
	double totalAmount=0;
	int totalEntry=0;
	String reportType;
	
	public PrintFileChargeReportBean() 
	{
		HttpSession ss=(HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
		finalList=(ArrayList<UserInfo>) ss.getAttribute("finalList");
		totalAmount=(double) ss.getAttribute("totalAmount");
		totalEntry=(int) ss.getAttribute("totalEntry");
		reportType=(String) ss.getAttribute("reportType");
	}

	public ArrayList<UserInfo> getFinalList() {
		return finalList;
	}

	public void setFinalList(ArrayList<UserInfo> finalList) {
		this.finalList = finalList;
	}

	public double getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(double totalAmount) {
		this.totalAmount = totalAmount;
	}

	public int getTotalEntry() {
		return totalEntry;
	}

	public void setTotalEntry(int totalEntry) {
		this.totalEntry = totalEntry;
	}

	public String getReportType() {
		return reportType;
	}

	public void setReportType(String reportType) {
		this.reportType = reportType;
	}
	
	
}
