| | |
| | | |
| | | import com.nanometer.smartlab.model.MenuModel; |
| | | import com.nanometer.smartlab.util.FacesUtils; |
| | | import org.apache.commons.collections4.ListUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.context.annotation.Scope; |
| | |
| | | import javax.annotation.Resource; |
| | | import javax.faces.context.FacesContext; |
| | | import javax.servlet.ServletContext; |
| | | import java.awt.*; |
| | | import java.lang.reflect.InvocationTargetException; |
| | | import java.lang.reflect.Method; |
| | | import java.util.HashMap; |
| | |
| | | } |
| | | } |
| | | } |
| | | /** |
| | | * 姑苏实验室 价格管理需要放在审批管理后面 |
| | | */ |
| | | if(this.getActiveEnv().equalsIgnoreCase("gslab")){ |
| | | MenuModel menuModel=this.menuList.get(0); |
| | | List<MenuModel> subMenuModels=menuModel.getSubMenu(); |
| | | if(!subMenuModels.get(1).getId().equalsIgnoreCase("approval_mng")){ |
| | | swap(subMenuModels,1,2); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | public void swap(List<MenuModel> a, int i, int j) { |
| | | MenuModel t = a.get(i); |
| | | a.set(i, a.get(j)); |
| | | a.set(j, t); |
| | | } |
| | | |
| | | private void executeMethod(String clazzName, String methodName, Object... params) { |