public int load( SessionContext ctx, DatabaseConnection conn, FormInstance instance, ErrorMessages msgs, EventManager manager, String parameter) { RightChecker.checkReadonly(ctx, conn, instance); Param param = (Param) ctx.getRequestAttribute("PARAM"); this.bmno = ((Param) ctx.getRequestAttribute("BMPARAM")).getBmNo(); if (ctx.getRequestAttribute("couldNotChange") != null) { instance.setValue("SEQNO", ctx.getParameter("SEQNO")); trigger(manager, instance, EventType.EDIT_VIEW_EVENT_TYPE, Event.BRANCH_CONTINUE_TYPE); instance.setReadonly(true); } else { trigger(manager, instance, EventType.INSERT_VIEW_EVENT_TYPE, Event.BRANCH_CONTINUE_TYPE); } return 0; }