master
parent
ddfb96e5a1
commit
2d5c6de9a6
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,39 @@
|
|||||||
|
/** * @Title: KUtil.java
|
||||||
|
* @Package com.connor.ld.sendMesJc
|
||||||
|
* @Description: TODO(用一句话描述该文件做什么)
|
||||||
|
* @author admin * @date 2023年12月19日
|
||||||
|
* @version V1.0
|
||||||
|
*/
|
||||||
|
package com.connor.ld.sendMesJc;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
|
import com.teamcenter.rac.kernel.TCUserService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName: KUtil
|
||||||
|
* @Description: TODO 工具类
|
||||||
|
* @author hcj
|
||||||
|
* @date 2023年12月19日
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class KUtil {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @Title: setByPass
|
||||||
|
* @Description: 开旁路
|
||||||
|
* @param @param session
|
||||||
|
* @param @param val 参数
|
||||||
|
* @return void 返回类型
|
||||||
|
* @throws
|
||||||
|
*/
|
||||||
|
public static void setByPass(TCSession session, boolean val) {
|
||||||
|
try {
|
||||||
|
TCUserService userservice = session.getUserService();
|
||||||
|
userservice.call(val ? "CONNOR_open_bypass" : "CONNOR_close_bypass", new Object[] { "" });
|
||||||
|
System.out.println(val ? "Open Bypass" : "Close Bypass");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue