关联生成销售订单允许新增分录二开指导原创
金蝶云社区-云社区用户kIv48308
云社区用户kIv48308
2人赞赏了该文章 298次浏览 未经作者许可,禁止转载编辑于2021年11月26日 15:45:47

第一步:

在销售订单编辑界面的loadfield后置脚本添加两句脚本如下:
pluginCtx.getKDWorkButton("btnAddLine").setEnabled(true);
pluginCtx.getKDWorkButton("btnInsertLine").setEnabled(true);
var kdtEntrys = pluginCtx.getKDTable("kdtEntries");
kdtEntrys.getColumn("material").getStyleAttributes().setLocked(true);

第二步:扩展com.kingdee.eas.scm.sd.sale.client.SaleOrderEditUI类,重写actionAddLine_actionPerformed以及
actionInsertLine_actionPerformed方法,在调用基类的super该两个方法之前把基类的isIgnoreIsBOTPBill成员变量置为true。


赞 2