2024年3月29日

teamcenter 实现原生界面创建时添加按钮对属性进行操作与汇总界面的加按钮操作

该文被密码保护。 阅读全文

posted @ 2024-03-29 10:50 songsonglailou 阅读(0) 评论(0) 推荐(0) 编辑

teamcenter 事务的使用

摘要: TCComponentItemType tccomponentItemType = (TCComponentItemType) session.getTypeComponent("Item"); // 事务开始 int markPoint = tccomponentItemType.placeMar 阅读全文

posted @ 2024-03-29 10:27 songsonglailou 阅读(1) 评论(0) 推荐(0) 编辑

导出Excel时存在公式无法刷新的问题,org.apache.poi.ss.usermodel.Sheet

摘要: 问题描述: 赋值在第一个表格,然后这个表格本身有公式,在第二个表格引用第一个表格的内容。 此表格存在公式,但导出时没有刷新 解决方法: sheet.setForceFormulaRecalculation(true);//强制刷新公式 阅读全文

posted @ 2024-03-29 10:23 songsonglailou 阅读(2) 评论(0) 推荐(0) 编辑

teamcenter中 import com.teamcenter.rac.commonclient.date.DateComponent;的使用

摘要: 渲染: Date date = null; TCPropertyDescriptor descriptor= property.getDescriptor(); String propertyname = descriptor.getName(); if ("EOL_Date".equals(pro 阅读全文

posted @ 2024-03-29 10:12 songsonglailou 阅读(1) 评论(0) 推荐(0) 编辑

teamcenter 创建Item是带必填项实现

摘要: 其中itemUom 为度量单位 /** * 度量单位的获取 * @Title: getMeasureMap * @Description: TODO * @param session * @Author:wushigao * @CreateDate:2022 Feb 25 08:29:00 */ p 阅读全文

posted @ 2024-03-29 10:01 songsonglailou 阅读(8) 评论(0) 推荐(0) 编辑

解决import javax.swing.JTable;偶发性复制不了的问题

摘要: 解决方法: 重写JTable类的键盘监听事件。 /** * 20240313 add hzh */ table.addKeyListener(new KeyListener(){ @Override public void keyPressed(KeyEvent e) { //System.out. 阅读全文

posted @ 2024-03-29 09:54 songsonglailou 阅读(1) 评论(0) 推荐(0) 编辑

Teancenter 原生树的实现

摘要: 实现效果: 实现技术: 1、 new tc自己实现的TCTree类 2、new TCTreeNode 节点类 直接挂在树上面就可以实现把TC对象自动展开,其中s为TC任意对象都能展示出来 3、挂完节点必须对数进行更新,不然看不见树的结构 但是实现跟tc,myteamcenter上面原生的操作,所有的 阅读全文

posted @ 2024-03-29 09:33 songsonglailou 阅读(1) 评论(0) 推荐(0) 编辑

2023年9月14日

c++ 实现 二叉树的 先序遍历,中序遍历 ,后序遍历

摘要: 遍历二叉树 跟数组不同,树是一种非线性的数据结构,是由n(n >=0)个节点组成的有限集合。如果n==0,树为空树。如果n>0,树有一个特定的节点,叫做根节点(root)。 对于树这种数据结构,使用最频繁的是二叉树。每个节点最多只有2个子节点的树,叫做二叉树。二叉树中,每个节点的子节点作为根的两个子 阅读全文

posted @ 2023-09-14 13:40 songsonglailou 阅读(57) 评论(0) 推荐(0) 编辑

C++ 实现 快速排序

摘要: #include<iostream>using namespace std; void quickSort(int(&)[10], int, int);int partition(int(&)[10], int, int); void printArr(const int(&)[10]);void 阅读全文

posted @ 2023-09-14 10:28 songsonglailou 阅读(53) 评论(0) 推荐(0) 编辑

用c++ 实现 二分查找 前提是先把数组排列好

摘要: #include<iostream>using namespace std; // 可以递归调用的二分查找int search(const int(&a)[10], int start, int end, int target){ // 基准情况:目标值超出范围,或者start > end,说明没有 阅读全文

posted @ 2023-09-14 10:14 songsonglailou 阅读(7) 评论(0) 推荐(0) 编辑

导航