zoukankan      html  css  js  c++  java
  • Teamcenter获取时间表模版

    //获取系统时间表封装的方法
    
     
    
    public TCComponent[] searchScheduleTemplate()
    
    {
    // TODO Auto-generated method stub
    
    TCComponentContextList tccomponentcontextlist = null;
    
    // TODO Auto-generated method stub
    
    TCComponentQueryType tccomponentquerytype;
    
    try
    
    {
    tccomponentquerytype = (TCComponentQueryType) session.getTypeComponent("ImanQuery");
    
     
    
    TCTextService tctextservice = session.getTextService();
    
    TCComponentQuery tccomponentquery = (TCComponentQuery) tccomponentquerytype.find("Schedules...");
    
    if (tccomponentquery == null)
    
    {
    tccomponentquery = (TCComponentQuery) tccomponentquerytype.find("时间表...");
    
    }
    
    String as[] = tctextservice.getTextValues(new String[]
    
    { "is_template", "is_baseline" });
    
    String as1[] =
    
    { "True", "False" };
    
    tccomponentcontextlist = tccomponentquery.getExecuteResultsList(as, as1);
    
    }
    
    catch (TCException e)
    
    {
    // TODO Auto-generated catch block
    
    e.printStackTrace();
    
    }
    
    return tccomponentcontextlist.toTCComponentArray();
    
     
    
    }
    ————————————————
    版权声明:本文为CSDN博主「叮当LIU」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/qq_36880602/article/details/88956696
    

      

  • 相关阅读:
    Oracle 中 varchar2(N) 与 varchar2(N char) 的区别
    EXP-00008: 遇到 ORACLE 错误 1455
    服务器重装Windows Server2008 R2操作系统
    h5页面自定义主题色(vue)
    初窥vue3.0
    ElasticSearch学习笔记_1
    mysql索引的使用
    什么时候使用视图
    Latex使用手册记录
    最大熵模型理论及NLP应用总结
  • 原文地址:https://www.cnblogs.com/wwssgg/p/14705569.html
Copyright © 2011-2022 走看看