金蝶bos 获取标准产品分录自带按钮的监听及绑定的事件


protected void addLines() throws BOSException{

 if(tabName != null && !tabName.equals("")){

        ShipRepairedTypeCollection typeCon = 

        ShipRepairedTypeFactory.getRemoteInstance().getShipRepairedTypeCollection("where name = '"+tabName+"'");

  

       if (typeCon.size() != 0) {

              //获取监听标准产品的分录自带的"增加","删除"按钮的监听

            ActionListener[] actionListeners = this.kdtEntrys_detailPanel.getAddNewLineButton().getActionListeners();    

             actionListeners[0].actionPerformed(null);//获取监听后按钮的功能

            kdtEntrys.getRow(kdtEntrys.getRowCount()-1).getCell("projectType").setValue(typeCon.get(0));

 }

}

}

猜你喜欢

转载自blog.csdn.net/qq_36973387/article/details/80602159