nc65 BillListPanel中获取表体选中行数据

1.界面配置文件中按钮中添加 <property name="showUpComponent" ref="listView" />

<bean id="qualifiedAction" class="nc.ui.pu.cgfd.action.QualifiedSupplierCatalogAction">
    	<!-- <property name="interceptor" ref="showCardInterceptor" />  -->
    	<property name="showUpComponent" ref="listView" />
        <property name="model" ref="manageAppModel" /> 
        <property name="editor" ref="billFormEditor" />
 </bean>

2.在按钮的action

package nc.ui.pu.cgfd.action;

import java.awt.event.ActionEvent;

import nc.ui.pubapp.uif2app.model.BillManageModel;
import nc.ui.pubapp.uif2app.view.ShowUpableBillForm;
import nc.ui.pubapp.uif2app.view.ShowUpableBillListView;
import nc.ui.uif2.NCAction;

/**
 * 合格供应商目录按钮
 * @author ChenSiyi
 *
 */
@SuppressWarnings("serial")
public class QualifiedSupplierCatalogAction extends NCAction {

	public QualifiedSupplierCatalogAction() {
		super();
		this.setCode("cgfd_QualifiedSupplierCatalogAction");
		this.setBtnName("合格供应商目录");
	}
	
	@Override
	public void doAction(ActionEvent e) throws Exception {

    //获得选中表头行的行标
    //int row = this.getShowUpComponent().getBillListPanel().getHeadTable().getSelectedRow();

//作用相同  
//this.getShowUpComponent().getBillListPanel().getBillHeadModel().getSelectRowVO(row,vo.class);  
  
//this.getShowUpComponent().getBillListPanel().getHeadBillModel().getBodyValueRowVO(row, vo.class.getName());  

    //获得选中表体行的行标
    int row = this.getShowUpComponent().getBillListPanel().getBodyTable().getSelectedRow();
		
	Object name = showUpComponent.getBillListPanel().getBodyBillModel().getValueAt(row, 8);
		
	SupplierDetailUIDialog picDlg = new SupplierDetailUIDialog(editor,"1001B210000000009INT");
	picDlg.show();
	}
	
	private ShowUpableBillListView showUpComponent;	

	public ShowUpableBillListView getShowUpComponent() {
		return showUpComponent;
	}

	public void setShowUpComponent(ShowUpableBillListView showUpComponent) {
		this.showUpComponent = showUpComponent;
	}

 

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值