for(int i = 0; i < size; i++) {
selectBlock = tblMain.getSelectManager().get(i); for(int j = selectBlock.getTop(); j <= selectBlock.getBottom(); j++) {
ICell cellId =
tblMain.getRow(j).getCell(getKeyFieldName()); if(cellId == null) {
MsgBox.showError(EASResource.getString(\meWorkResource.Error_KeyField_Fail\)); SysUtil.abort(); }
String id = cellId.getValue().toString(); if(idMap.containsKey(id)) continue; ICell cellNumber =
tblMain.getRow(j).getCell(getNumberColumn()); if(cellNumber != null)
idMap.put(id, cellNumber.getValue().toString()); else
idMap.put(id, \ + (j + 1)); }
}
}
return idMap;
}
/**LIST A 源单据数据被 公式结果C代替 **/
protected void getRowSetBeforeFillTable(IRowSet rowSet) {
// TODO Auto-generated method stub super.getRowSetBeforeFillTable(rowSet);
Calendar calendarDate = Calendar.getInstance(); calendarDate.clear();
BigDecimal amount = new BigDecimal(String.valueOf(0.00)); int i=0; try {
rowSet.beforeFirst(); while(rowSet.next()){
String contractId = rowSet.getString(\); DispatchTaskInfo expSureBillInfo =
DispatchTaskFactory.getRemoteInstance()
}
/*
* 动态获得对象*/ public static Object getObjectDYNAMIC(BOSUuid objectPK) throws Exception{
Object billInfo = null;
.getDispatchTaskInfo(new
ObjectUuidPK(contractId));
if(expSureBillInfo.getStartDate()!=null&&expSureBillInfo.getWorkD
calendarDate.setTime(expSureBillInfo.getStartDate()); BigDecimal day = new
ay()!=null){
BigDecimal(calendarDate.getActualMaximum(Calendar.DAY_OF_MONTH));
BigDecimal sellApplyAmount =
sellApplyAmount=day.subtract(sellApplyAmount); sellApplyAmount=sellApplyAmount.divide(day,2,2); sellApplyAmount=sellApplyAmount.multiply(new rowSet.updateObject(\, sellApplyAmount); amount=amount.add(sellApplyAmount); i++;
rowSet.updateObject(\
expSureBillInfo.getWorkDay();
BigDecimal(100));
}else{ } }
}
rowSet.beforeFirst(); while(rowSet.next()){ }
e.printStackTrace(); e.printStackTrace(); e.printStackTrace();
if(i<1){ }
amount=amount.divide(new BigDecimal(i),2,2);
i=1;
//
rowSet.updateObject(\,amount); } catch (SQLException e) { } catch (EASBizException e) { } catch (BOSException e) {
if(objectPK!=null){
billInfo = (Object)
DynamicObjectFactory.getRemoteInstance().getValue(new ObjectUuidPK(objectPK).getObjectType(),new ObjectUuidPK(objectPK));
}
return billInfo;
}
row.getCell(\).setValue(((PersonInfo)(getObjectDYNAMIC(info.getVisitor().getId()))));
public void actionSubmit_actionPerformed(ActionEvent e) throws Exception {
doBeforeSave(e);
IObjectPK pk = runSave(); doAfterSave(pk); }
protected void doAfterSave(IObjectPK pk) throws Exception {
if(pk == null) return;
if(OprtState.ADDNEW.equals(getOprtState())) {
int size = idList.size();
idList.add(size, pk.toString()); }
setOprtState(OprtState.EDIT); setDataObject(getValue(pk)); showMessageForStatus(); // showSaveSuccess();
if(wfContext.isBindWorkFlow())
wfContext.addToDataMap(pk.toString(), editData); setSave(true); setSaved(true);
actionCopy.setEnabled(true); loadFields();
initOldData(editData); }