项目建立进入页面默认标签合计
This commit is contained in:
		
							parent
							
								
									7b13ecca55
								
							
						
					
					
						commit
						acb73791df
					
				| 
						 | 
				
			
			@ -26,6 +26,7 @@ import kd.bos.form.control.events.RowClickEvent;
 | 
			
		|||
import kd.bos.form.control.events.RowClickEventListener;
 | 
			
		||||
import kd.bos.form.events.ClientCallBackEvent;
 | 
			
		||||
import kd.bos.form.plugin.AbstractFormPlugin;
 | 
			
		||||
import kd.bos.form.plugin.IFormPlugin;
 | 
			
		||||
import kd.bos.form.plugin.importentry.resolving.ImportEntryData;
 | 
			
		||||
import kd.bos.orm.query.QCP;
 | 
			
		||||
import kd.bos.orm.query.QFilter;
 | 
			
		||||
| 
						 | 
				
			
			@ -86,6 +87,26 @@ public class TotalAssignmentPlugin extends AbstractFormPlugin implements RowClic
 | 
			
		|||
        String name = e.getName();
 | 
			
		||||
        if ("auto_save".equals(name)) {
 | 
			
		||||
            this.getView().invokeOperation("save");
 | 
			
		||||
        }else if ("defaultLabel".equals(name)){
 | 
			
		||||
            DynamicObjectCollection productEntry = this.getModel().getEntryEntity(PRODUCT_ENTRY);
 | 
			
		||||
            if (null != productEntry && productEntry.size() != 0) {
 | 
			
		||||
                DynamicObjectCollection areaEntry = new DynamicObjectCollection();
 | 
			
		||||
                DynamicObject productObj = productEntry.get(0);
 | 
			
		||||
                    if (null!=productObj){
 | 
			
		||||
                        DynamicObjectCollection collection = productObj.getDynamicObjectCollection(SUB_ENTRY);
 | 
			
		||||
                        if (null!=collection&&collection.size()!=0){
 | 
			
		||||
                            areaEntry.addAll(collection);
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                publicAmountLabel = (Label) this.getControl("qeug_publicamount");
 | 
			
		||||
                watertightAmountLabel = (Label) this.getControl("qeug_watertightamount");
 | 
			
		||||
                hardcoverAmountLabel = (Label) this.getControl("qeug_hardcoveramount");
 | 
			
		||||
                if (areaEntry.size()!=0) {
 | 
			
		||||
                    onlyCalculateArea(areaEntry);
 | 
			
		||||
                }
 | 
			
		||||
                this.getView().updateView(SUB_ENTRY);
 | 
			
		||||
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -257,6 +278,7 @@ public class TotalAssignmentPlugin extends AbstractFormPlugin implements RowClic
 | 
			
		|||
                }
 | 
			
		||||
                this.getView().addClientCallBack("auto_save", 0);
 | 
			
		||||
            }
 | 
			
		||||
            this.getView().addClientCallBack("defaultLabel",1);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue