NC-总结(8)

2019-08-03 12:29

/**

* 方法说明:设置卡片界面字段显示 *

* @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)


NC-总结(8).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:常州市城北污水处理厂提标改造方案 - 图文

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: