zoukankan      html  css  js  c++  java
  • 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;
    	}
    

      

  • 相关阅读:
    4.24成果(冲刺1.7)
    4.23成果(冲刺1.6)
    4.22成果(冲刺1.5)
    4.21成果(冲刺1.4)
    4.20成果(冲刺1.3)
    4.19成果(冲刺1.2)
    4.18成果(冲刺1.1)
    计划会议
    需求评审
    电梯演讲
  • 原文地址:https://www.cnblogs.com/wwssgg/p/15568962.html
Copyright © 2011-2022 走看看