parent
248d1184cd
commit
bb8b370172
|
@ -112,8 +112,14 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl
|
|||
DynamicObjectCollection cientry = single.getDynamicObjectCollection("cientry");
|
||||
if (cientry.isEmpty()) {
|
||||
this.getView().showErrorNotification("该测算分录没有数据,不支持导出");
|
||||
return;
|
||||
}
|
||||
String sheetname= cientry.get(0).getDynamicObject("entry_producttype").getString("name");//产品类型名称
|
||||
DynamicObject producttype = cientry.get(0).getDynamicObject("entry_producttype");
|
||||
if (null == producttype) {
|
||||
this.getView().showErrorNotification("该测算分录没有产品类型,不支持导出");
|
||||
return;
|
||||
}
|
||||
String sheetname= producttype.getString("name");//产品类型名称
|
||||
for (DynamicObject dynamicObject : cientry) {
|
||||
DynamicObject entry_costaccount = dynamicObject.getDynamicObject("entry_costaccount");//科目
|
||||
if (entry_costaccount.getBoolean("isleaf")){
|
||||
|
|
Loading…
Reference in New Issue