电脑桌面
添加蚂蚁七词文库到电脑桌面
安装后可以在桌面快捷访问

金蝶EAS Cloud 领料出库单问题.doc

金蝶EAS Cloud 领料出库单问题.doc_第1页
1/4
金蝶EAS Cloud 领料出库单问题.doc_第2页
2/4
金蝶EAS Cloud 领料出库单问题.doc_第3页
3/4
二次开发需求:在领料出库单上搭建审核流程,当用户审核单据时,将出库单的信息发送给ERP系统二次开发设计在领料出库单审核后,通过WEBSERVICE将数据上传至中间库(中间库是EAS搭建的一个中间库帐套),由ERP系统定时向中间库读取数据二次开发代码创建领料出库单CONTROLLBEAN的扩展类MaterialReqBillControllerBeanEx,在该类中覆盖审核方法:_passAudit将审核后的单据数据,调用中间库帐套的WEBSERVICE,将数据上传至中间库protectedvoid_passAudit(Contextctx,IObjectPKpk,IObjectValuemodel)throwsBOSException,EASBizException{super._passAudit(ctx,pk,model);MaterialReqBillInfoinfo=MaterialReqBillFactory.getLocalInstance(ctx).getMaterialReqBillInfo(newObjectStringPK(pk.toString()));StorageOrgUnitInfostore=StorageOrgUnitFactory.getLocalInstance(ctx).getStorageOrgUnitInfo(newObjectStringPK(info.getStorageOrgUnit().getId().toString()));if(LPCompanyFactory.getLocalInstance(ctx).isInput(store.getCU().getId().toString())){}else{if(info.getBaseStatus().getValue()==BillBaseStatusEnum.AUDITED_VALUE){try{if(newWSInputCommon().WSInputData(ctx,true,"42",pk.toString())){}else{MsgBox.showWarning("数据上传失败,请使用手工上传功能完成数据上传");}(这段代码是上传数据)}catch(RemoteExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}catch(ServiceExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}}}}上传数据的方法newWSInputCommon().WSInputDatapublicbooleanWSInputData(Contextctx,booleanisAudit,Stringftype,Stringfid)throwsRemoteException,ServiceException,BOSException{Stringurl="";try{url=this.easLogin(ctx);}catch(Exceptione){e.printStackTrace();MsgBox.showWarning("登陆中间库失败!");returnfalse;}try{if(ftype.equals("41")){returninputPurInWarehs(url,fid,isAudit);}if(ftype.equals("42")){returninputMaterialReq(ctx,url,fid,isAudit);}if(ftype.equals("43")){returninputPurBill(ctx,url,fid,isAudit);}if(ftype.equals("01")){returninputMaterial(url,fid);}if(ftype.equals("03")){returninputPurBill(ctx,url,fid,isAudit);}}catch(EASBizExceptione){//TODOAuto-generatedcatchblockMsgBox.showWarning(e.toString());}returnfalse;}easLogin(由于上传数据的方法要写到服务端,因为无法调用EAS发布的调用EASLOGIN的方法,所以我直接调用的是登录的WEBSERVICE)publicstaticStringeasLogin(Contextctx)throwsRemoteException,ServiceException,BOSException,EASBizException{Stringendpoint;Serviceservice;Callcall;try{endpoint="http://10.1.129.82:6888/ormrpc/services/EASLogin?wsdl";service=newService();call=(Call)service.createCall();call.setTargetEndpointAddress(endpoint);call.setOperationName("login");//WSDL里面描述的接口名称call.addParameter("userName",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//接口的参数call.addParameter("password",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//接口的参数call.addParameter("slnName",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//接口的参数call.addParameter("dcName",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//接口的参数call.addParameter("language",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);//接口的参数call.addParameter("dbType",org.apache.axis.encoding.XMLType.XSD_INT,javax.xml.rpc.ParameterMode.IN);//接口的参数Object_resp=call.invoke(newObject[]{"user","","eas",datacenter,"L2",2});}catch(Exceptione){e.printStackTrace();}System.out.println("调用SERVICE填写SAP凭证号");returnurl;}问题:这样写,在本地的开发环境,可以将数据上传至中间库,但发布到测试服务上,单据审核了,但数据却无法上传至中间库

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

金蝶EAS Cloud 领料出库单问题.doc

管理软件+ 关注
实名认证
内容提供者

管理软件资料分享

确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息
QQ群
  • 答案:my7c点击这里加入QQ群
支持邮箱
微信
  • 微信