util.java
来自「java实现的可配置的工作流引擎,采用jsp+javabean实现」· Java 代码 · 共 44 行
JAVA
44 行
/*
* Created on 2004-10-19
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.hongsoft.agile.workflow;
/**
* @author hongsoft.com
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class Util {
/**
* 通过实例号得到整型ID
* @param insId
* @return
*/
public static int getIntIdByInsId(String insId)
{
String[] array=insId.split("_");
String maxId=array[array.length-1];
return Integer.parseInt(maxId);
}
/**
* 通过实例号得到定义号
* @param insId
* @return
*/
public static String getDefIdByInsId(String insId)
{
String[] array=insId.split("_");
String defId="";
for(int i=0;i<array.length-1;i++)
{
defId+=array[i];
}
return defId;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?