资源简介
二手房信息管理 房产系统源码 适合中介二次开发并使用。包括房源管理,客户管理,交易管理,决策信息等多方面。
代码片段和文件信息
package com.baidu.ueditor;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.baidu.ueditor.define.ActionMap;
import com.baidu.ueditor.define.AppInfo;
import com.baidu.ueditor.define.baseState;
import com.baidu.ueditor.define.State;
import com.baidu.ueditor.hunter.FileManager;
import com.baidu.ueditor.hunter.ImageHunter;
import com.baidu.ueditor.upload.Uploader;
public class ActionEnter {
private HttpServletRequest request = null;
private String rootPath = null;
private String contextPath = null;
private String actionType = null;
private ConfigManager configManager = null;
public ActionEnter ( HttpServletRequest request String rootPath ) {
this.request = request;
this.rootPath = rootPath;
this.actionType = request.getParameter( “action“ );
this.contextPath = request.getContextPath();
this.configManager = ConfigManager.getInstance( this.rootPath this.contextPath request.getRequestURI() );
}
public String exec () {
String callbackName = this.request.getParameter(“callback“);
if ( callbackName != null ) {
if ( !validCallbackName( callbackName ) ) {
return new baseState( false AppInfo.ILLEGAL ).toJSONString();
}
return callbackName+“(“+this.invoke()+“);“;
} else {
return this.invoke();
}
}
public String invoke() {
if ( actionType == null || !ActionMap.mapping.containsKey( actionType ) ) {
return new baseState( false AppInfo.INVALID_ACTION ).toJSONString();
}
if ( this.configManager == null || !this.configManager.valid() ) {
return new baseState( false AppInfo.CONFIG_ERROR ).toJSONString();
}
State state = null;
int actionCode = ActionMap.getType( this.actionType );
Mapject> conf = null;
switch ( actionCode ) {
case ActionMap.CONFIG:
return this.configManager.getAllConfig().toString();
case ActionMap.UPLOAD_IMAGE:
case ActionMap.UPLOAD_SCRAWL:
case ActionMap.UPLOAD_VIDEO:
case ActionMap.UPLOAD_FILE:
conf = this.configManager.getConfig( actionCode );
state = new Uploader( request conf ).doExec();
break;
case ActionMap.CATCH_IMAGE:
conf = configManager.getConfig( actionCode );
String[] list = this.request.getParameterValues( (String)conf.get( “fieldName“ ) );
state = new ImageHunter( conf ).capture( list );
break;
case ActionMap.LIST_IMAGE:
case ActionMap.LIST_FILE:
conf = configManager.getConfig( actionCode );
int start = this.getStartIndex();
state = new FileManager( conf ).listFile( start );
break;
}
return state.toJSONString();
}
public int getStartIndex () {
String start = this.request.getParameter( “start“ );
try {
return Integer.parseInt( start );
} catch ( Exception e ) {
return 0;
}
}
/**
* callback参数验证
*/
public boolean valid
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 210 2017-04-26 17:44 WWW\.htaccess
文件 608 2017-06-23 17:07 WWW\Application\Common\Common\index.html
文件 1713 2017-06-23 17:08 WWW\Application\Common\Conf\config.php
文件 608 2017-06-23 17:07 WWW\Application\Common\Conf\index.html
文件 1048 2017-06-23 17:08 WWW\Application\Common\Conf\tags.php
文件 2758 2017-06-23 17:08 WWW\Application\Common\function.php
文件 608 2017-06-23 17:07 WWW\Application\Common\index.html
文件 14592 2017-07-31 11:37 WWW\Application\Home\Common\function.php
文件 608 2017-06-23 17:07 WWW\Application\Home\Common\index.html
文件 2661 2017-06-25 11:56 WWW\Application\Home\Conf\config.php
文件 608 2017-06-23 17:07 WWW\Application\Home\Conf\index.html
文件 1402 2017-06-23 17:08 WWW\Application\Home\Controller\CommonController.class.php
文件 22158 2017-07-31 11:52 WWW\Application\Home\Controller\FangyuanController.class.php
文件 1553 2017-06-23 17:08 WWW\Application\Home\Controller\FangyuanimgController.class.php
文件 615 2017-07-31 11:31 WWW\Application\Home\Controller\FygenjinController.class.php
文件 13386 2017-06-23 17:08 WWW\Application\Home\Controller\FyneirongController.class.php
文件 14473 2017-06-23 17:08 WWW\Application\Home\Controller\FysousuoController.class.php
文件 608 2017-06-23 17:07 WWW\Application\Home\Controller\index.html
文件 7407 2017-07-20 10:29 WWW\Application\Home\Controller\IndexController.class.php
文件 42777 2017-07-31 11:55 WWW\Application\Home\Controller\Keyuan1Controller.class.php
文件 21153 2017-06-23 17:08 WWW\Application\Home\Controller\KyneirongController.class.php
文件 3295 2017-07-20 11:15 WWW\Application\Home\Controller\LoginController.class.php
文件 6818 2017-06-23 17:08 WWW\Application\Home\Controller\MwloginController.class.php
文件 9511 2017-07-31 11:41 WWW\Application\Home\Controller\RbacController.class.php
文件 20836 2017-07-31 11:50 WWW\Application\Home\Controller\ZiyuanController.class.php
文件 609 2017-06-23 17:07 WWW\Application\Home\index.html
文件 608 2017-06-23 17:07 WWW\Application\Home\Model\index.html
文件 1155 2017-06-23 17:07 WWW\Application\Home\Model\UserRelationModel.class.php
文件 59 2017-06-21 11:11 WWW\Application\Home\View\.htaccess
文件 2573 2017-06-23 17:07 WWW\Application\Home\View\Common\index.html
............此处省略2499个文件信息
- 上一篇:区块链+行业应用PPT
- 下一篇:东南亚地图shp格式
评论
共有 条评论