protected void processDeleteModel( String actionCode, String actionObject, HttpServletRequest request) throws SQLException { GosReservationMgr gosReservationMgr = (GosReservationMgr) this.getManagerFromSession(request); gosReservationMgr.setFunctionMode(Constant.DELETE); // this.setHttpRequestOrderList(request, gosFrontdeskMgr); // // gosFrontdeskMgr.getCurrentFrontdesk().getSelectedUnit().getBill().removeOrderChecked(); }
protected void processEditModel( String actionCode, String actionObject, HttpServletRequest request) throws SQLException { GosReservationMgr gosReservationMgr = (GosReservationMgr) this.getManagerFromSession(request); gosReservationMgr.setFunctionMode(Constant.EDIT); String key; if (actionCode.split("-").length > 2) { key = actionCode.split("-")[2]; } // if (actionObject.equals("Order")) { // gosFrontdeskMgr.getItemMeta().refreshItemList(); // gosFrontdeskMgr.setNavigationMode(Constant.ORDER); // } else if (actionObject.equals("Bill")) { // gosFrontdeskMgr.getItemMeta().refreshItemList(); // gosFrontdeskMgr.setNavigationMode(Constant.BILL); // } // if (actionObject.equals("Open")) { // gosFrontdeskMgr.getCurrentFrontdesk().getSelectedUnit().setOpen(true); // } // } else if (actionObject.equals("Subcategory")) { // Subcategory subcategory = (Subcategory) // Utility.getObject(gosFrontdeskMgr.getSubcategoryMeta().getSubcategoryList(), key); // subcategory.setSaved(false); // gosFrontdeskMgr.setCurrentSubcategory(subcategory); // } else if (actionObject.equals("Department")) { // Department department = (Department) // Utility.getObject(gosFrontdeskMgr.getDepartmentMeta().getDepartmentList(), key); // department.setSaved(false); // gosFrontdeskMgr.setCurrentDepartment(department); // // } else if (actionObject.equals("Area")) { // Area area = (Area) Utility.getObject(gosFrontdeskMgr.getAreaMeta().getAreaList(), key); // area.setSaved(false); // gosFrontdeskMgr.setCurrentArea(area); // // } else if (actionObject.equals("Unit")) { // Unit unit = (Unit) Utility.getObject(gosFrontdeskMgr.getUnitMeta().getUnitList(), key); // unit.setSaved(false); // gosFrontdeskMgr.setCurrentUnit(unit); // // // } }