private void tableStoped(KDTEditEvent e) {
int rowIndex = e.getRowIndex();
int colIndex = e.getColIndex();
KDTable table = (KDTable) e.getSource();
String fieldName = table.getColumn(colIndex).getFieldName();
if ("BillingFormula".equals(fieldName)) {
FomulaConfigInfo fomulaInfo = (FomulaConfigInfo) e.getValue();
if (fomulaInfo != null) {
table.getCell(rowIndex, "fomulaName").setValue(fomulaInfo.getFomulaName());
}
}
else if ("ServeProject".equals(fieldName)) {
if(e.getValue()!=null){
ServeProjectInfo serveProjectInfo = (ServeProjectInfo) e.getValue();
EntityViewInfo entityViewInfo = new EntityViewInfo();
FilterInfo filter = new FilterInfo();
filter.getFilterItems().add(new FilterItemInfo("ServeProject.id",serveProjectInfo.getId(),CompareType.EQUALS));
entityViewInfo.setFilter(filter);
DCUtil.registerTableF7Cell(table, rowIndex, "BillingFormula", "$number$", "$number$", "$number$", "com.kingdee.eas.hse.scm.formulaplatform.app.FomulaConfigQuery", entityViewInfo, false);
}
}
}
int rowIndex = e.getRowIndex();
int colIndex = e.getColIndex();
KDTable table = (KDTable) e.getSource();
String fieldName = table.getColumn(colIndex).getFieldName();
if ("BillingFormula".equals(fieldName)) {
FomulaConfigInfo fomulaInfo = (FomulaConfigInfo) e.getValue();
if (fomulaInfo != null) {
table.getCell(rowIndex, "fomulaName").setValue(fomulaInfo.getFomulaName());
}
}
else if ("ServeProject".equals(fieldName)) {
if(e.getValue()!=null){
ServeProjectInfo serveProjectInfo = (ServeProjectInfo) e.getValue();
EntityViewInfo entityViewInfo = new EntityViewInfo();
FilterInfo filter = new FilterInfo();
filter.getFilterItems().add(new FilterItemInfo("ServeProject.id",serveProjectInfo.getId(),CompareType.EQUALS));
entityViewInfo.setFilter(filter);
DCUtil.registerTableF7Cell(table, rowIndex, "BillingFormula", "$number$", "$number$", "$number$", "com.kingdee.eas.hse.scm.formulaplatform.app.FomulaConfigQuery", entityViewInfo, false);
}
}
}