123456789101112131415161718192021222324252627282930 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ page language="java"
- import="com.sysmodel.XFormFactory,
- com.sysmodel.collectmodel.xmlmodel.impl.FormCollectionImpl,
- com.sysmodel.collectmodel.xmlmodel.impl.HiddenFieldImpl,
- com.sysmodel.collectmodel.xmlmanager.xmlobjdll.CollectModeldllImpl"%>
- <%
- String pagid = request.getParameter("pagid") == null ? "" : request.getParameter("pagid");
- String name = request.getParameter("name") == null ? "" : request.getParameter("name");
- String value = request.getParameter("value") == null ? "" : request.getParameter("value");
- String valueMethod = request.getParameter("valueMethod") == null ? "" : request.getParameter("valueMethod");
- String action = request.getParameter("action") == null ? "" : request.getParameter("action");
- String result = "";
- FormCollectionImpl FormCollectionImpl =(FormCollectionImpl)XFormFactory.getXFormModel().getFormCollection(pagid);
- HiddenFieldImpl HiddenFieldImpl = new HiddenFieldImpl();
- CollectModeldllImpl CollectModeldllImpl = new CollectModeldllImpl();
- HiddenFieldImpl.setName(name);
- HiddenFieldImpl.setValue(value);
- HiddenFieldImpl.setValueMethod(valueMethod);
-
- if(action.equals("add")){
- result = CollectModeldllImpl.addMdpCollectHiddenField(FormCollectionImpl , HiddenFieldImpl);
- }else if(action.equals("edit")){
- result = CollectModeldllImpl.updateMdpCollectHiddenField(FormCollectionImpl , HiddenFieldImpl);
- }else if (action.equals("del")){
- result = CollectModeldllImpl.deleteMdpCollectHiddenField(FormCollectionImpl , HiddenFieldImpl);
- }
- response.sendRedirect("list.jsp?pagid="+pagid+"&name="+name);
- %>
|