/**
* 方法说明:设置卡片界面字段显示 *
* @param fields */
private void setCardFieldShow(String tableCode, String[] fields) {
for (int i = 0, len = fields.length; i < len; i++) {
getBillCardPanel().getBodyPanel(tableCode).showTableCol(fields[i]); {
for (int i = 0, len = fields.length; i < len; i++) {
/**
* 方法说明:设置列表界面字段隐藏 *
* @param fields */
@SuppressWarnings(\)
private void setListFieldNoShow(String tableCode, String[] fields) }
}
getBillListPanel().getBodyScrollPane(tableCode).hideTableCol(
}
}
fields[i]);
/**
* 方法说明:设置列表界面字段显示 *
* @param fields */
@SuppressWarnings(\)
private void setListFieldShow(String tableCode, String[] fields) {
for (int i = 0, len = fields.length; i < len; i++) {
getBillListPanel().getBodyScrollPane(tableCode).showTableCol(
}
}
fields[i]);
13. 将参照校验去掉
UIRefPane lineRef = (UIRefPane)
getBillCardPanel().getBodyItem(\).getComponent();
lineRef.setAutoCheck(false); lineRef.setReturnCode(false); lineRef.setButtonFireEvent(true);
getBillCardPanel().setAutoExecHeadEditFormula(true);
14 填充 类似Excl 选中行列将数据添加
//填充
protected void onBtnFilling() throws Exception {
int row =
getBillCardPanelWrapper().getBillCardPanel().getBillTable().getSelectedRow();
if(row > -1){
int[] selrows =
getBillCardPanelWrapper().getBillCardPanel().getBillTable().getSelectedRows();
int[] selcols =
getBillCardPanelWrapper().getBillCardPanel().getBillTable().getSelectedColumns();
if(selcols != null && selcols.length > 0){
for(int i = 0; i < selcols.length; i++){
Object o =
getBillCardPanelWrapper().getBillCardPanel().getBillTable().getValueAt(row, selcols[i]);
for(int j = 0; j < selrows.length; j++){
if(row != selrows[j]){
getBillCardPanelWrapper().getBillCardPanel().getBillTable().setValueAt(o, selrows[j], selcols[i]);
}
}
}
}
}
}
15 预警平台设置
实现接口IbusinessPlugin
消息框实现接口IAlertMessage2
//取到预警平台设置的值 //预警期值
int yjmons= 1, yjdays = 1; //要求期值
int yqmons = 1,yqdays = 1; String YY = \ String YQ = \
if (keys != null && keys.length > 0) {
for (int i = 0; i < keys.length; i++) {
if (keys[i].getName().equals(\预警期单位\
if(keys[i].getDescription().equals(\月\
if(keys[1].getName().equals(\预警期\
yjmons= Integer.valueOf(keys[1].getValue().toString()).intValue(); YY = \
}
}
else if(keys[i].getDescription().equals(\日\
if(keys[1].getName().equals(\预警期\
yjdays = Integer.valueOf(keys[1].getValue().toString()).intValue(); YY = \
}
}
} else if (keys[i].getName().equals(\要求期单位\ if(keys[i].getDescription().equals(\月\ if(keys[3].getName().endsWith(\要求期\
yqmons= new Integer(keys[3].getValue().toString()).intValue(); YQ= \+\
}
}else if(keys[i].getDescription().equals(\日\
if(keys[3].getName().endsWith(\要求期\
yqdays = new Integer(keys[3].getValue().toString()).intValue();
YQ = \
} }
}
}
}
16. UFDouble类型的计算方法
加: add() 减:sub() 乘:multiply() 除:div()
例:qgrad*(100 - mt)/(100 - mad)