This commit is contained in:
parent
06e222897e
commit
a2ec2e33e7
|
@ -5,6 +5,9 @@ import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||||
import kd.bos.entity.datamodel.events.ChangeData;
|
import kd.bos.entity.datamodel.events.ChangeData;
|
||||||
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
||||||
import kd.bos.form.field.FieldEdit;
|
import kd.bos.form.field.FieldEdit;
|
||||||
|
import kd.bos.orm.query.QCP;
|
||||||
|
import kd.bos.orm.query.QFilter;
|
||||||
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
import kd.ec.contract.formplugin.ProjectEditUI;
|
import kd.ec.contract.formplugin.ProjectEditUI;
|
||||||
|
|
||||||
import java.util.EventObject;
|
import java.util.EventObject;
|
||||||
|
@ -34,10 +37,14 @@ public class ProjectEditExtUI extends ProjectEditUI {
|
||||||
|
|
||||||
// setUnitProMustInput(unitProjectName);
|
// setUnitProMustInput(unitProjectName);
|
||||||
}else if("zcgj_ecindustry".equals(propertyName)){
|
}else if("zcgj_ecindustry".equals(propertyName)){
|
||||||
Object zcgjEcindustry = this.getModel().getValue("zcgj_ecindustry");
|
DynamicObjectCollection zcgjEcindustry = (DynamicObjectCollection) this.getModel().getValue("zcgj_ecindustry");
|
||||||
if (zcgjEcindustry!=null){
|
if (zcgjEcindustry.size()>0){
|
||||||
DynamicObjectCollection zcgjEcindustrys = (DynamicObjectCollection) zcgjEcindustry;
|
DynamicObject object = zcgjEcindustry.get(0);
|
||||||
this.getModel().setValue("industry",zcgjEcindustrys.get(0));
|
DynamicObject ec_industry = BusinessDataServiceHelper.loadSingle("ec_industry", new QFilter[]{new QFilter("id", QCP.equals, object.getLong(2))});
|
||||||
|
this.getModel().setValue("industry",ec_industry);
|
||||||
|
this.getView().updateView("industry");
|
||||||
|
}else{
|
||||||
|
this.getModel().setValue("industry",null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Object projectorg = this.getModel().getValue("projectorg");
|
Object projectorg = this.getModel().getValue("projectorg");
|
||||||
|
|
Loading…
Reference in New Issue