EAS bos客户端上传发票

 无法bos启动测试。  部署到测试服务器上测试

  @Override
	public void actionInvoiceUpload_actionPerformed(ActionEvent e) throws Exception {
    	 
//    	UIContext uiContext = new UIContext(this);
//		uiContext.put("action", "selectCloudInvoice");
//		if(editData.getId() == null || editData.getCreator() == null){
//			MsgBox.showError(this, "BILLIDNOTNULL");
//			SysUtil.abort();
//		}
//		uiContext.put("bill", editData);
//		uiContext.put(UIContext.OWNER, this);
//		IUIWindow uiWindow = null;
//		try{
//			uiWindow  = UIFactory.createUIFactory(UIFactoryName.MODEL).
//					create("com.kingdee.eas.base.wssc.client.InvoiceBillViewUI", uiContext, null, OprtState.VIEW);
//			if(uiWindow != null){
//				uiWindow.show();
//			}
//		}catch (UIException e1){
//			handUIException(e1);
//		}
    	
    	
    	
    	
/*   	UIContext uiContext = new UIContext(this);
    	uiContext.put("action", "selectCloudInvoice");
    	if (this.editData.getId() == null) {
    		this.editData.setId(BOSUuid.create(this.editData.getBOSType()));
    	}
    	uiContext.put("bill", this.editData);
    	uiContext.put("Owner", this);
    	this.storeFields();
    	Method openFpzsInvoicesUI = null;
    	try {
    		Class<?> clazz = Class.forName("com.kingdee.eas.base.wssc.client.InvoiceBillHelper");
    		openFpzsInvoicesUI = clazz.getMethod("openFpzsInvoicesUI", UIContext.class);
    	} catch (Exception var6) {
    		;
    	}
    	if (null == openFpzsInvoicesUI) {
    		try {
    			IUIWindow iuiWindow = UIFactory
    					.createUIFactory("com.kingdee.eas.base.uiframe.client.UIModelDialogFactory")
    					.create("com.kingdee.eas.base.wssc.client.InvoiceBillViewUI", uiContext, (Map) null,
    							OprtState.VIEW);
    			if (iuiWindow != null) {
    				iuiWindow.show();
    			}
    		} catch (Exception var5) {
    			logger.error(var5.getMessage());
    			this.handUIException(var5);
    			SysUtil.abort();
    		}
    	    } else {
    		openFpzsInvoicesUI.invoke((Object) null, uiContext);
    	  } */
    	 
          
		Set invoiceSerialNos = new HashSet();
		Map params = new HashMap();
		params.put("CompanyOrgUnitInfo", this.editData.getFICompany());  // 财务组织
		params.put("currAcctSupplier", null);
		params.put("invoiceSerialNos", invoiceSerialNos);
		params.put("billNumber", this.editData.getNumber());
		params.put("billId", this.editData.getId().toString());
		params.put("ui", this);
		params.put("uiClass", this.getClass().getName());
		IncomeInvoiceClientUtils.openPwyHelper(params);
	}
    
    
    
    
    
    /**
     * 发票导入反写当前单据
     * @param dataJsonObj
     * @throws BOSException 
     * @throws EASBizException 
     */
//    public void fillTable(JSONObject dataJsonObj) throws EASBizException, BOSException {
//    	   
//    	   String companyId = ((CompanyOrgUnitInfo)this.prmtFICompany.getValue()).getId().toString();
//    	   
//			OtherBillInvoiceCollection invoiceCollection = InvoiceUtils.transJson2InvoiceCollectionWithReload((Context)null, companyId, dataJsonObj);
//			OtherBillInvoiceInfo otherBillInvoiceInfo = invoiceCollection.get(0);
//		    this.txtDescription.setText(otherBillInvoiceInfo.getInvoiceNumber());  
//			 
//		 
//
//  }

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值