package com.webclient.beans.persongr;

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

/**
 * 人员组人员子表DataBean
 * edit 20230825
 */
public class PersonLineDataBean extends DataBean {

    @Override
    public int addrow() throws MXException {
        int add=super.addrow();
        try {
            MboRemote mbo=this.getMbo();
            MboRemote ownerMbo=mbo.getOwner();
            //persongroup=:persongroup and resppartygroup=respparty
            mbo.setValue("RESPPARTYGROUPSEQ", mbo.getThisMboSet().count(),2L);//序号
            mbo.setValue("USEFORORG", ownerMbo.getString("ORGID"),11L);
            mbo.setValue("USEFORSITE", ownerMbo.getString("SITEID"),11L);
        } catch (Exception e) {
            e.printStackTrace();
        }
        app.getAppBean().refreshTable();
        return add;
    }
}
