package com.app.hxqh.udpd;

import psdi.mbo.MboRemote;
import psdi.mbo.MboSetRemote;
import psdi.mbo.MboValue;
import psdi.mbo.MboValueAdapter;
import psdi.server.MXServer;
import psdi.util.MXApplicationException;
import psdi.util.MXException;

import java.rmi.RemoteException;

/**
 * 盘点任务-盘点总数量
 *  * edit 2024-06-24
 */
public class FldPDZSL extends MboValueAdapter {

    public FldPDZSL(MboValue mbv) throws MXException {
        super(mbv);
    }

    @Override
    public void initValue() throws MXException, RemoteException {
        super.initValue();
        MboRemote mbo=getMboValue().getMbo();
//        MboSetRemote udmatusetrans = MXServer.getMXServer().getMboSet("UDPDLINE", MXServer.getMXServer().getSystemUserInfo());
//        String sql=;
//        udmatusetrans.setWhere(sql);
//        udmatusetrans.reset();
        int count=mbo.getMboSet("$UDPDLINE","UDPDLINE","PDNUM='"+mbo.getString("PDNUM")+"'").count();
//        int count=udmatusetrans.count();
        mbo.setValue("PDZSL", count, 11L);
    }



}
