package com.webclient.beans.udkbfl;

import psdi.mbo.MboRemote;
import psdi.util.MXException;
import psdi.webclient.system.beans.AppBean;

import java.rmi.RemoteException;

/**
 * ÖªÊ¶¿âAppBean
 * edit 2023-10-14
 */
public class UdkbbAppbean extends AppBean {

    public void initializeApp() throws MXException, RemoteException {
        super.initializeApp();
    }

    public void torcwxgd() throws MXException, RemoteException {
        MboRemote mbo=getMbo();
        int prid=mbo.getInt("UDKBID");
        String appName = "udkbb";
        StringBuffer newUrl = new StringBuffer(this.clientSession.getMaximoRequestURI());
        newUrl.append("?event=gotoapp&value=" +appName+"&uniqueid="+prid);
        this.clientSession.getCurrentApp().put("forcereload", "true");
        this.clientSession.gotoApplink(newUrl.toString());
    }

    public void REFRESH(){
        this.app.getAppBean().reloadTable();
        this.app.getAppBean().refreshTable();
        this.app.getDataBean("1532060720158").reloadTable();
        this.app.getDataBean("1697210976100").refreshTable();
    }

}
