package main_package;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.model.SelectItem;
import javax.faces.model.SelectItemGroup;
import javax.servlet.http.HttpSession;


@ManagedBean(name="printSelectedAccounts")
@ViewScoped
public class PrintSelectedAccountBean implements Serializable
{
	ArrayList<UserInfo> list= new ArrayList<>();
	String emid,grtd;
	String loanOfficerName,villagee,bankName,score,emiDay,loan,loanInWords,reason,checkNo,loanFee,mobile;
	int oldClint,newClint;
	String centerNo;
	String center;
	
	public PrintSelectedAccountBean()
		{
		System.out.println("hhhhhhhhhhhhhh");
		  HttpSession ss1=(HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
	      list=(ArrayList<UserInfo>) ss1.getAttribute("list9");
	      emid=(String) ss1.getAttribute("emid");
	      grtd=(String) ss1.getAttribute("grtd");
	      loanOfficerName=(String) ss1.getAttribute("loanOfficerName");
	      villagee=(String) ss1.getAttribute("villagee");
	      emiDay=(String) ss1.getAttribute("emiDay");
	      bankName=(String) ss1.getAttribute("bankName");
	      score=(String) ss1.getAttribute("score");
	      centerNo=(String) ss1.getAttribute("centerNo");
	      center=(String) ss1.getAttribute("center");
	      oldClint=(int) ss1.getAttribute("oldClint");
	      newClint=(int) ss1.getAttribute("newClint");
	       
       }
	
	

	public ArrayList<UserInfo> getList() {
		return list;
	}

	public String getLoan() {
		return loan;
	}

	public void setLoan(String loan) {
		this.loan = loan;
	}

	public String getLoanInWords() {
		return loanInWords;
	}

	public void setLoanInWords(String loanInWords) {
		this.loanInWords = loanInWords;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getCheckNo() {
		return checkNo;
	}

	public void setCheckNo(String checkNo) {
		this.checkNo = checkNo;
	}

	public String getLoanFee() {
		return loanFee;
	}

	public void setLoanFee(String loanFee) {
		this.loanFee = loanFee;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public void setList(ArrayList<UserInfo> list) {
		this.list = list;
	}


	public String getEmid() {
		return emid;
	}



	public void setEmid(String emid) {
		this.emid = emid;
	}



	public String getGrtd() {
		return grtd;
	}



	public void setGrtd(String grtd) {
		this.grtd = grtd;
	}



	public String getLoanOfficerName() {
		return loanOfficerName;
	}

	public void setLoanOfficerName(String loanOfficerName) {
		this.loanOfficerName = loanOfficerName;
	}

	public String getVillagee() {
		return villagee;
	}

	public void setVillagee(String villagee) {
		this.villagee = villagee;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	

	public int getOldClint() {
		return oldClint;
	}

	public void setOldClint(int oldClint) {
		this.oldClint = oldClint;
	}

	public String getEmiDay() {
		return emiDay;
	}

	public void setEmiDay(String emiDay) {
		this.emiDay = emiDay;
	}

	public int getNewClint() {
		return newClint;
	}

	public void setNewClint(int newClint) {
		this.newClint = newClint;
	}



	public String getCenterNo() {
		return centerNo;
	}



	public void setCenterNo(String centerNo) {
		this.centerNo = centerNo;
	}



	public String getCenter() {
		return center;
	}



	public void setCenter(String center) {
		this.center = center;
	}
	
	
	
}