12345678910111213141516171819202122232425262728293031323334353637383940 |
- <%@ page pageEncoding="UTF-8"%>
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <%@ page language="java"
- import="com.sysmodel.XFormFactory,
- com.sysmodel.listmodel.xmlmodel.impl.FormListImpl,
- com.sysmodel.listmodel.xmlmodel.impl.PramFieldImpl"%>
- <%@page import="com.sysmodel.listmodel.xmlmanager.xmlobjdll.ListModeldllable"%>
- <%@page import="com.sysmodel.listmodel.xmlmanager.xmlobjdll.ListModeldllImpl"%>
- <%
- String name = request.getParameter("name")== null ? "" : request.getParameter("name");
- String action = request.getParameter("action")== null ? "" : request.getParameter("action");
- String listid = request.getParameter("listid") == null ? "" : request.getParameter("listid");
-
- FormListImpl FormList =(FormListImpl)XFormFactory.getXFormModel().getFormList(listid);
- ListModeldllable ListModeldllable=new ListModeldllImpl();
- PramFieldImpl PramFieldImpl= new PramFieldImpl();
- String classid = request.getParameter("classid") == null ? "0" : request.getParameter("classid");
- String valuefrom = request.getParameter("valuefrom");
- String isinput = request.getParameter("isinput");
- int iclassid = Integer.parseInt(classid);
-
- PramFieldImpl.setName(name);
- PramFieldImpl.setClassid(iclassid);
- PramFieldImpl.setValuefrom(valuefrom);
- PramFieldImpl.setCheckbox(new Boolean(isinput).booleanValue());
-
-
-
- if (action.equals("del")){
- ListModeldllable.deleteFormListPramField(FormList , PramFieldImpl);
- System.out.println("删除成功!!!");
- }else if(action.equals("add")){
- ListModeldllable.addFormListPramField(FormList,PramFieldImpl);
- System.out.println("保存成功!!!");
- }
-
- response.sendRedirect("list.jsp?listid="+listid);
- %>
|