?无法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());
//
//
//
// }