editExc.jsp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <%@ page pageEncoding="UTF-8"%>
  2. <%@ page contentType="text/html; charset=UTF-8" language="java" %>
  3. <%@ page language="java"
  4. import="com.sysmodel.XFormFactory,
  5. com.sysmodel.listmodel.xmlmodel.impl.FormListImpl,
  6. com.sysmodel.listmodel.xmlmanager.xmlobjdll.ListModeldllable,
  7. com.sysmodel.listmodel.xmlmanager.xmlobjdll.ListModeldllImpl"%>
  8. <%
  9. String listid = request.getParameter("listid") == null ? "0" : request.getParameter("listid");
  10. FormListImpl FormList =(FormListImpl)XFormFactory.getXFormModel().getFormList(listid);
  11. FormListImpl FormListClone = (FormListImpl)FormList.clone();
  12. String action = request.getParameter("action") == null ? "" : request.getParameter("action");
  13. String refreshTime = request.getParameter("refreshTime") == null ? "" : request.getParameter("refreshTime");
  14. String listWidth = request.getParameter("listWidth") == null ? "" : request.getParameter("listWidth");
  15. String type = request.getParameter("type") == null ? " " : request.getParameter("type");
  16. String description = request.getParameter("description") == null ? "" : request.getParameter("description");
  17. FormListClone.setRefreshTime(refreshTime);
  18. FormListClone.setListWidth(listWidth);
  19. FormListClone.setType(type);
  20. FormListClone.setDescription(description);
  21. ListModeldllable ListModeldll = new ListModeldllImpl();
  22. if (action.equals("del")) {
  23. ListModeldll.deleteFormList(FormList);
  24. response.sendRedirect("list_exc.jsp?type="+FormList.getType()+"&refreshNode=true");
  25. } else{
  26. ListModeldll.updateFormList(FormListClone);
  27. response.sendRedirect("list.jsp?type="+type+"&refreshNode=true");
  28. }
  29. %>