Monitoring Stok

package com.ipi.myweb.pages.monitoring;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.InjectPage;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.corelib.components.Form;

import com.ipi.myweb.annotation.ProtectedPage;
import com.ipi.myweb.base.BasePage;
import com.ipi.myweb.beans.Buku;
import com.ipi.myweb.beans.MapStok;
import com.ipi.myweb.pages.master.MasterBuku;

public class MonitoringStok extends BasePage {

private MasterBuku masterBuku;

private DetailMonStok detail;

private Form form;

private String kode;

private String judul;

private Map map;

private MapStok mapstok;

private List listMapStok;

void onSelectedFromFilter(){
getMap().put("kode", kode);
getMap().put("judul", judul);

void onSelectedFromReset(){
setMap(new HashMap());

Object onActionFromGotoPopupNis(String id_buku){
return detail;

Object onActionFromGotoBuku(String id_buku){
Buku book = getMasterFacade().getBukuDao().findByPrimaryKey(id_buku);
return masterBuku;

void pageReset(){

public MapStok getMapstok() {
if (mapstok == null)
mapstok = new MapStok();
return mapstok;

public void setMapstok(MapStok mapstok) {
this.mapstok = mapstok;

public List getListMapStok() {
if (listMapStok == null){
listMapStok = new ArrayList();
listMapStok = getMasterFacade().getPinjamDao().getMonitoringStok(getMap());
return listMapStok;

public void setListMapStok(List listMapStok) {
this.listMapStok = listMapStok;

public Map getMap() {
if (map == null)
map = new HashMap();
return map;

public void setMap(Map map) { = map;

public String getKode() {
return kode;

public void setKode(String kode) {
this.kode = kode;

public String getJudul() {
return judul;

public void setJudul(String judul) {
this.judul = judul;

private int i = 0;
public String getEvenOdd(){
return i % 2 == 0 ? "odd" : "even";

public boolean isZero(){
return true;

public Integer getMapStokKeluar(){
return mapstok.getkeluar();


Published by


Begin a big Process with a bit trying

One thought on “Monitoring Stok”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s