package sikd.sikd5.sikd5bean.query;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;


import sikd.sikd5.sikd5bean.tabel.simpatik.Posisikasakunrinci;
import sikd.sikd5.sikd5bean.tabel.simpatik.Refsimpatik;

public class PerkiraanBelanjaAkunPerPemda extends Refsimpatik implements Serializable {
	/**
	 * @author : agus
	 * @tanggal : Feb 6, 2019
	 */
	double nilaib1,nilaib2,nilaib3,nilaib4,nilaib5,nilaib6,nilaib7,nilaib8,nilaib9,nilaib10,nilaib11,nilaib12;
	String detil;
	
	public PerkiraanBelanjaAkunPerPemda() {
		
	}
	

	public PerkiraanBelanjaAkunPerPemda(long refsimpatikindex, String kdakun, String urakun) {
		super(refsimpatikindex, kdakun, urakun);
		// TODO Auto-generated constructor stub
	}
	public String getStyleAngka() {
		//font-weight: bold;padding-left: 15px;
		String hasil = "";
		if (getKdakun() != null) {
//			String[] pjakun = getKdakun().split(Pattern.quote("."));
			if (detil.equals("D")) {
				hasil = "";
			}else {
				hasil = "font-weight: bold;";
			}
		}
		return hasil;

	}
	public String getStyleUraian() {
		//font-weight: bold;padding-left: 15px;
		String hasil = "";
		if (getKdakun() != null) {
			String[] pjakun = getKdakun().split(Pattern.quote("."));
			int pad = 10*pjakun.length;
			if (detil.equals("D")) {
				hasil = "padding-left: "+pad+"px;";
			}else {
				hasil = "font-weight: bold;padding-left: "+pad+"px;";
			}
		}
		return hasil;

	}
	public double getNilaib1() {
		return nilaib1;
	}
	public void setNilaib1(double nilaib1) {
		this.nilaib1 = nilaib1;
	}
	public double getNilaib2() {
		return nilaib2;
	}
	public void setNilaib2(double nilaib2) {
		this.nilaib2 = nilaib2;
	}
	public double getNilaib3() {
		return nilaib3;
	}
	public void setNilaib3(double nilaib3) {
		this.nilaib3 = nilaib3;
	}
	public double getNilaib4() {
		return nilaib4;
	}
	public void setNilaib4(double nilaib4) {
		this.nilaib4 = nilaib4;
	}
	public double getNilaib5() {
		return nilaib5;
	}
	public void setNilaib5(double nilaib5) {
		this.nilaib5 = nilaib5;
	}
	public double getNilaib6() {
		return nilaib6;
	}
	public void setNilaib6(double nilaib6) {
		this.nilaib6 = nilaib6;
	}
	public double getNilaib7() {
		return nilaib7;
	}
	public void setNilaib7(double nilaib7) {
		this.nilaib7 = nilaib7;
	}
	public double getNilaib8() {
		return nilaib8;
	}
	public void setNilaib8(double nilaib8) {
		this.nilaib8 = nilaib8;
	}
	public double getNilaib9() {
		return nilaib9;
	}
	public void setNilaib9(double nilaib9) {
		this.nilaib9 = nilaib9;
	}
	public double getNilaib10() {
		return nilaib10;
	}
	public void setNilaib10(double nilaib10) {
		this.nilaib10 = nilaib10;
	}
	public double getNilaib11() {
		return nilaib11;
	}
	public void setNilaib11(double nilaib11) {
		this.nilaib11 = nilaib11;
	}
	public double getNilaib12() {
		return nilaib12;
	}
	public void setNilaib12(double nilaib12) {
		this.nilaib12 = nilaib12;
	}
	public String getUrakun() {
		String hasil = "";
		if (super.getUrakun()==null) {
			hasil = super.getKdakun();
		}else {
			hasil = super.getUrakun();
		}
			return hasil;
	}


	public String getDetil() {
		return detil;
	}


	public void setDetil(String detil) {
		this.detil = detil;
	}

}
