123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <%@ page pageEncoding="UTF-8"%>
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <%@ page language="java"
- import="
- com.sysmodel.XFormFactory,
- com.sysmodel.collectmodel.xmlmodel.impl.FormCollectionImpl,
- com.sysmodel.collectmodel.xmlmanager.xmlobjdll.*,
- com.sysmodel.collectmodel.xmlmodel.impl.*,
- com.sysmodel.collectmodel.xmlmodel.able.*"%>
- <%
-
- String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid");
- String action = request.getParameter("action") == null ? "" : request.getParameter("action");
- String Action = request.getParameter("Action") == null ? "" : request.getParameter("Action");
- String type = request.getParameter("type") == null ? "" : request.getParameter("type");
- String classid = request.getParameter("classid") == null ? "0" : request.getParameter("classid");
- String description = request.getParameter("description") == null ? "" : request.getParameter("description");
- String multipart = request.getParameter("multipart") == null ? "false" : request.getParameter("multipart");
- System.out.println("pageid="+pageid);
- System.out.println("action="+action);
- System.out.println("Action="+Action);
- System.out.println("type="+type);
- System.out.println("classid="+classid);
- System.out.println("description="+description);
- System.out.println("multipart="+multipart);
-
- int iclassid=Integer.parseInt(classid);
- CollectModeldllable CollectModeldllable=new CollectModeldllImpl();
-
- if(Action.equals("add")){
-
- FormCollectionImpl FormCollection = new FormCollectionImpl();
- FormCollection.setPageid(pageid);
- FormCollection.setAction(action);
- FormCollection.setType(type);
- FormCollection.setMultipart(new Boolean(multipart).booleanValue());
- FormCollection.setClassid(iclassid+"");
- FormCollection.setDescription(description);
-
- PageBody PageBody = new PageBodyImpl();
- PageHead PageHead = new PageHeadImpl();
- PageRoot PageRoot = new PageRootImpl();
-
- FormCollection.setPageHead(PageHead);
- FormCollection.setPageBody(PageBody);
- FormCollection.setPageRoot(PageRoot);
- CollectModeldllable.addMdpCollect(FormCollection);
- System.out.println("保存成功");
- response.sendRedirect("config.jsp?pageid="+ pageid+"&refreshNode=true");
- }else if(Action.equals("edit")){
-
- FormCollectionImpl FormCollection =(FormCollectionImpl)XFormFactory.getXFormModel().getFormCollection(pageid);
- FormCollectionImpl FormCollectionClone = (FormCollectionImpl)FormCollection.clone();
- FormCollectionClone.setAction(action);
- FormCollectionClone.setType(type);
- FormCollectionClone.setMultipart(new Boolean(multipart).booleanValue());
- FormCollectionClone.setClassid(iclassid+"");
- FormCollectionClone.setDescription(description);
- CollectModeldllable.updateMdpCollect(FormCollectionClone);
- response.sendRedirect("config.jsp?pageid="+ pageid+"&refreshNode=true");
- System.out.println("成功");
- }
-
-
- %>
|