12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <%@ page language="java"
- import="java.util.*,
- com.sysmodel.collectmodel.xmlmodel.able.FormCollection,
- com.sysmodel.datamodel.xmlmodel.ModelFactory,
- com.sysmodel.datamodel.xmlmodel.impl.MdpClassImpl,
- com.sysmodel.datamodel.xmlmodel.able.SysModel,
- com.sysmodel.collectmodel.xmlmodel.impl.ReportFieldImpl,
- com.sysmodel.collectmodel.xmlmodel.impl.ActionImpl,
- com.sysmodel.collectmodel.xmlmodel.impl.PageRootImpl,
- com.sysmodel.collectmodel.xmlmanager.xmlobjdll.CollectModeldllImpl"%>
- <%
- String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid");
- String type = request.getParameter("type") == null ? "" : request.getParameter("type");
- String value = request.getParameter("value") == null ? "" : request.getParameter("value");
- String appendSpace = request.getParameter("appendSpace") == null ? "" : request.getParameter("appendSpace");
- String successURL = request.getParameter("successURL") == null ? "" : request.getParameter("successURL");
- String action = request.getParameter("action") == null ? "" : request.getParameter("action");
- String method = request.getParameter("method") == null ? "" : request.getParameter("method");
- String dojoInuptType = request.getParameter("dojoInuptType") == null ? "" : request.getParameter("dojoInuptType");
- String oButtontype = request.getParameter("oButtontype") == null ? "" : request.getParameter("oButtontype");
-
- SysModel sysmodel = ModelFactory.getSysmodel();
- FormCollection FormCollection = null;
-
- if(session.getAttribute("FormCollect"+pageid) == null ){
- return;
- } else {
- FormCollection = (FormCollection)session.getAttribute("FormCollect"+pageid);
- ReportFieldImpl ReportFieldImpl = new ReportFieldImpl();
- ActionImpl ActionImpl = new ActionImpl();
- ActionImpl.setType(type);
- ActionImpl.setValue(value);
- ActionImpl.setDojoType(dojoInuptType);
- if(!appendSpace.equals("")){
- ActionImpl.setAppendSpace(Integer.parseInt(appendSpace));
- }
- ActionImpl.setMethod(method);
- ActionImpl.setReturnURL(successURL);
-
- CollectModeldllImpl CollectModeldllImpl = new CollectModeldllImpl();
- if(action.equals("add")){
- PageRootImpl PageRootImpl = (PageRootImpl)FormCollection.getPageRoot();
- PageRootImpl.addAction(ActionImpl);
- }else if(action.equals("edit")){
- CollectModeldllImpl.updateAction(FormCollection ,ActionImpl , oButtontype);
- }
-
- session.setAttribute("FormCollect"+pageid , FormCollection);
-
- %>
- <script type="text/javascript">
- var url = window.opener.location.href;
- url = url.replace("sessionReload=true","sessionReload=false");
- window.opener.location.replace(url);
- window.close();
- </script>
- <%} %>
|