package com.app.hxqh.workorder;

import java.rmi.RemoteException;
import psdi.mbo.MAXTableDomain;
import psdi.mbo.MboRemote;
import psdi.mbo.MboSetRemote;
import psdi.mbo.MboValue;
import psdi.util.MXException;


import java.rmi.RemoteException;
import psdi.mbo.MAXTableDomain;
import psdi.mbo.MboSetRemote;
import psdi.mbo.MboValue;
import psdi.util.MXException;
public class FldAssetnum extends MAXTableDomain {
    //构造函数，FldAttorneySalesman为类的名字
    public FldAssetnum(MboValue mbv) throws MXException,
            RemoteException {
        super(mbv);
        
        String s = this.getMboValue().getAttributeName();
    	setRelationship("WORKORDER", " assetnum =:assetnum and siteid=:siteid");
    	String[] arrayOfString1 = {"ASSETNUM", "LOCATION"};
		String[] arrayOfString2 = {"ASSETNUM", "LOCATION"};
		setLookupKeyMapInOrder(arrayOfString1, arrayOfString2);
        
        
    }
    
    
    
    public void init() throws RemoteException, MXException {
        super.init();
    }
    public void action() throws RemoteException, MXException {
        super.action();
    }
    //设置选择范围
    public MboSetRemote getList() throws RemoteException, MXException {
//选择条件的where字段
        MboRemote mbo = getMboValue().getMbo();
        
        String sql = " 1=1 ";
//使用该where子句的进行查询
        setListCriteria(sql);
//返回查询结果
        return super.getList();
    }
}