package com.webclient.beans.udpmwoorder;

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

import java.rmi.RemoteException;

/**
 * 日常维修工单-请购单子表
 * edit 2023-07-05
 */
public class UdprDataBean extends DataBean {

    public void topr() throws MXException, RemoteException {
        MboRemote mbo=getMbo();
        int prid=mbo.getInt("PRID");
        String appName = "udprtb";
        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());
    }


}
