|  | @@ -5,6 +5,8 @@ import kd.bos.dataentity.entity.DynamicObject;
 | 
	
		
			
				|  |  |  import kd.bos.dataentity.entity.DynamicObjectCollection;
 | 
	
		
			
				|  |  |  import kd.bos.entity.datamodel.events.ChangeData;
 | 
	
		
			
				|  |  |  import kd.bos.entity.datamodel.events.PropertyChangedArgs;
 | 
	
		
			
				|  |  | +import kd.bos.entity.property.BasedataProp;
 | 
	
		
			
				|  |  | +import kd.bos.form.field.BasedataEdit;
 | 
	
		
			
				|  |  |  import kd.bos.form.field.MulBasedataEdit;
 | 
	
		
			
				|  |  |  import kd.bos.form.field.RefBillEdit;
 | 
	
		
			
				|  |  |  import kd.bos.form.field.events.BeforeF7SelectEvent;
 | 
	
	
		
			
				|  | @@ -326,6 +328,15 @@ public class FinapbillBeforeF7SelectSample extends AbstractFormPlugin implements
 | 
	
		
			
				|  |  |                  this.getView().updateView("nckd_ap_finapbill_detail");
 | 
	
		
			
				|  |  |                  this.getView().updateView("assetentry");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +        }else if (StringUtils.equals("isbeforeshare", fieldKey)) {
 | 
	
		
			
				|  |  | +            ChangeData changeData = e.getChangeSet()[0];
 | 
	
		
			
				|  |  | +            Boolean isbeforeshare = (Boolean) changeData.getNewValue();
 | 
	
		
			
				|  |  | +            if (isbeforeshare) {
 | 
	
		
			
				|  |  | +                BasedataEdit basedataEdit = this.getControl("entrycostdept_orgrule");
 | 
	
		
			
				|  |  | +                basedataEdit.setMustInput(false);
 | 
	
		
			
				|  |  | +                BasedataProp basedataProp = (BasedataProp) basedataEdit.getProperty();
 | 
	
		
			
				|  |  | +                basedataProp.setMustInput(false);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |