%@ page pageEncoding="UTF-8"%> <%@ page contentType="text/html; charset=UTF-8" language="java" %> <%@ page import ="java.util.*"%> <%@ page language="java" import="com.sysmodel.datamodel.xmlmodel.ModelFactory, com.sysmodel.datamodel.xmlmodel.impl.MdpConstantImpl, com.sysmodel.datamodel.xmlmodel.able.SysModel, com.sysmodel.datamodel.xmlmodel.impl.MdpDataSourceImpl, com.sysmodel.datamodel.xmlmodel.able.Template, com.sysmodel.datamodel.xmlmodel.impl.TemplateImpl, com.sysmodel.datamodel.xmlmodel.impl.MdpModuleImpl"%> <% String name = request.getParameter("name") == null ? "" : request.getParameter("name"); String description="", TemplateName="", RootFrom="", DataSource="", isKeyCodeAuto="", type = "", OrderProperty="",OrderMethod=""; MdpConstantImpl MdpConstantImpl = null; SysModel sysmodel = ModelFactory.getSysmodel(); String action = ""; if(name.equals("")){ action = "save"; type = request.getParameter("type") == null ? "" : request.getParameter("type"); }else{ MdpConstantImpl = (MdpConstantImpl)sysmodel.getMdpConstantByName(name); action = "edit"; description=MdpConstantImpl.getDescription(); TemplateName=MdpConstantImpl.getTemplateName(); RootFrom=MdpConstantImpl.getRootFrom(); DataSource=""+MdpConstantImpl.getDataSource(); isKeyCodeAuto= String.valueOf(MdpConstantImpl.isKeyCodeAuto()); OrderProperty=MdpConstantImpl.getOrderProperty(); OrderMethod=MdpConstantImpl.getOrderMethod(); type = MdpConstantImpl.getType(); } %>