Commit 98528f41 authored by manohar's avatar manohar

bugfix finding submenuitems


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91277 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 68ac0035
...@@ -736,14 +736,10 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U ...@@ -736,14 +736,10 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
String getSubMenuSql = " SELECT APPLICATION, LEVEL_1, LEVEL_2, LEVEL_3, LEVEL_4, LEVEL_5, WIN_NAME, DESCR FROM ITM2MENU " + String getSubMenuSql = " SELECT APPLICATION, LEVEL_1, LEVEL_2, LEVEL_3, LEVEL_4, LEVEL_5, WIN_NAME, DESCR FROM ITM2MENU " +
" where APPLICATION = '" + application + "' " + " where APPLICATION = '" + application + "' " +
" and ( " + level1 + " = 0 or " + " and ( level_1 = 0 or (level_1 <> 0 and (LEVEL_1 = " + level1 + " AND LEVEL_2 > 0))) " +
" (" + level1 + " <> 0 and (LEVEL_1 = " + level1 + " AND LEVEL_2 > 0))) " + " and ( level_2 = 0 or (level_2 <> 0 and (LEVEL_2 = " + level2 + " AND LEVEL_3 > 0))) " +
" and ( " + level2 + " = 0 or " + " and ( level_3 = 0 or ( level_3 <> 0 and (LEVEL_3 = " + level3 + " AND LEVEL_4 > 0))) " +
" (" + level2 + " <> 0 and (LEVEL_2 = " + level2 + " AND LEVEL_3 > 0))) " + " and ( level_4 = 0 or ( level_4 <> 0 and (LEVEL_4 = " + level4 + " AND LEVEL_5 > 0))) " +
" and ( " + level3 + " = 0 or " +
" ( " + level3 + " <> 0 and (LEVEL_3 = " + level3 + " AND LEVEL_4 > 0))) " +
" and ( " + level4 + " = 0 or " +
" ( " + level4 + " <> 0 and (LEVEL_4 = " + level4 + " AND LEVEL_5 > 0))) " +
" and WIN_NAME <> '-' " ; " and WIN_NAME <> '-' " ;
System.out.println("Get All Sub Menu SQL :: " + getSubMenuSql); System.out.println("Get All Sub Menu SQL :: " + getSubMenuSql);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment