SOA创建Form表单
作者:互联网
public TCComponentForm createTmpForm(String formType, String formName, boolean saveDB) { DataManagementService datamanagementservice = DataManagementService .getService(session); com.teamcenter.services.rac.core._2007_01.DataManagement.FormInfo aforminfo[] = new com.teamcenter.services.rac.core._2007_01.DataManagement.FormInfo[1]; aforminfo[0] = new com.teamcenter.services.rac.core._2007_01.DataManagement.FormInfo(); aforminfo[0].clientId = "1"; aforminfo[0].description = ""; aforminfo[0].name = formName; aforminfo[0].formType = formType; aforminfo[0].saveDB = saveDB; com.teamcenter.services.rac.core._2007_01.DataManagement.CreateOrUpdateFormsResponse createorupdateformsresponse = datamanagementservice .createOrUpdateForms(aforminfo); if (createorupdateformsresponse != null && createorupdateformsresponse.serviceData .sizeOfPartialErrors() == 0) { com.teamcenter.services.rac.core._2007_01.DataManagement.CreateFormsOutput acreateformsoutput[] = createorupdateformsresponse.outputs; TCComponentForm mForm = (TCComponentForm) acreateformsoutput[0].form; if (mForm != null && mForm.getClientObject() == null){ mForm.setClientObject("Create_Context"); return mForm; } } return null; }
标签:SOA,core,01,rac,Form,mForm,表单,teamcenter,aforminfo 来源: https://www.cnblogs.com/wwssgg/p/15568962.html