worktree.java

来自「ERO系统.针对生产型、分销型、服务型企业等不同的行业特点」· Java 代码 · 共 40 行

JAVA
40
字号
package include.nseer_cookie;

import include.nseer_db.nseer_db;

import include.tree_index.Nseer;

public class WorkTree {
	public static void setZero(String unit_db_name,String mod,String first) {
		
		nseer_db db=new nseer_db(unit_db_name);
		Nseer n=new Nseer();
		try{
			String sql="update "+mod+"_tree set workflow_tag='0' where hreflink='"+"check_list.jsp"+"' and file_path='"+mod+"/"+first+"/"+"'";
			db.executeUpdate(sql);
			sql="update "+mod+"_view set workflow_tag='0' where hreflink='"+"check_list.jsp"+"' and file_path='"+mod+"/"+first+"/"+"'";
			db.executeUpdate(sql);
			db.close();
		
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}
	
	public static void setOne(String unit_db_name,String mod,String first) {
		
		nseer_db db=new nseer_db(unit_db_name);
		Nseer n=new Nseer();
		try{
			String sql="update "+mod+"_tree set workflow_tag='1' where hreflink='"+"check_list.jsp"+"' and file_path='"+mod+"/"+first+"/"+"'";
			db.executeUpdate(sql);
			sql="update "+mod+"_view set workflow_tag='1' where hreflink='"+"check_list.jsp"+"' and file_path='"+mod+"/"+first+"/"+"'";
			db.executeUpdate(sql);
			db.close();
		
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?