資源簡介
這是一個后臺管理系統的模板,顯示出了所有的前端頁面并實現了部分功能;使用css、js、Highcharts等一些技術實現顯示框拉縮,管理分類、報表等功能
代碼片段和文件信息
/**
?*?@license?Highcharts?JS?v2.3.3?(2012-11-02)
?*
?*?(c)?20012-2014
?*
?*?Author:?Gert?Vaartjes
?*
?*?License:?www.highcharts.com/license
?*/
package?com.highcharts.export.converter;
import?java.io.File;
import?java.io.IOException;
import?java.net.SocketTimeoutException;
import?java.util.HashMap;
import?java.util.Map;
import?java.util.NoSuchElementException;
import?java.util.concurrent.TimeoutException;
import?org.apache.commons.io.FileUtils;
import?org.apache.log4j.Logger;
import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.stereotype.Service;
import?com.google.gson.Gson;
import?com.highcharts.export.pool.PoolException;
import?com.highcharts.export.pool.BlockingQueuePool;
import?com.highcharts.export.server.Server;
import?com.highcharts.export.util.MimeType;
@Service(“svgConverter“)
public?class?SVGConverter?{
@Autowired
private?BlockingQueuePool?serverPool;
protected?static?Logger?logger?=?Logger.getLogger(“converter“);
private?static?final?String?SVG_DOCTYPE?=?“l?version=\“1.0\“?standalone=\“no\“?>“;
public?String?convert(String?input?MimeType?mime
String?constructor?String?callback?String?globalOptions?Float?width?Float?scale?String?filename)?throws?SVGConverterException?PoolException?NoSuchElementException?TimeoutException?{
return?this.convert(input?globalOptions?null?null?mime?constructor?callback?width?scale?filename);
}
public?String?convert(String?input?String?globalOptions?String?dataOptions?String?customCode?MimeType?mime
String?constructor?String?callback?Float?width?Float?scale?String?filename)?throws?SVGConverterException?PoolException?NoSuchElementException?TimeoutException?{
Map?params?=?new?HashMap();
Gson?gson?=?new?Gson();
if?(filename?!=?null)?{
params.put(“outfile“?filename);
}?else?{
params.put(“type“?mime.name().toLowerCase());
}
params.put(“infile“?input);
if?(constructor?!=?null?&&?!constructor.isEmpty())?{
params.put(“constr“?constructor);
}
if?(callback?!=?null?&&?!callback.isEmpty())?{
params.put(“callback“?callback);
}
if?(globalOptions?!=?null?&&?!globalOptions.isEmpty())?{
params.put(“globaloptions“?globalOptions);
}
if?(dataOptions?!=?null?&&?!dataOptions.isEmpty())?{
params.put(“dataoptions“?dataOptions);
}
if?(customCode?!=?null?&&?!customCode.isEmpty())?{
params.put(“customcode“?customCode);
}
if?(width?!=?null)?{
params.put(“width“?String.valueOf(width));
}
if?(scale?!=?null)?{
params.put(“scale“?String.valueOf(scale));
}
//?parameters?to?JSON
String?json?=?gson.toJson(params);
//?send?to?phantomJs
String?output?=?““;
output?=?requestServer(json);
//?check?first?for?errors
if?(output.length()?>?5?&&?output.substring(05).equalsIgnoreCase(“error“
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1520??2015-08-04?14:40??便利屋超市管理系統\_blank.html
?????文件?????????359??2015-08-04?14:16??便利屋超市管理系統\_footer.html
?????文件????????1130??2015-08-04?14:40??便利屋超市管理系統\_header.html
?????文件????????2841??2015-08-31?11:07??便利屋超市管理系統\【開發必讀】文檔目錄.txt
?????文件????????1483??2015-08-09?13:55??便利屋超市管理系統\404.html
?????文件????????5358??2015-08-04?17:11??便利屋超市管理系統\admin-add.html
?????文件????????7059??2018-03-19?22:21??便利屋超市管理系統\admin-list.html
?????文件????????4289??2015-08-06?14:07??便利屋超市管理系統\admin-permission.html
?????文件????????5648??2015-08-06?14:07??便利屋超市管理系統\admin-role.html
?????文件????????7043??2015-08-05?17:58??便利屋超市管理系統\admin-role-add.html
?????文件???????10327??2015-08-11?10:38??便利屋超市管理系統\article-add.html
?????文件????????8554??2015-08-12?01:06??便利屋超市管理系統\article-list.html
?????文件????????2818??2015-08-05?15:38??便利屋超市管理系統\change-password.html
?????文件????????3370??2015-08-05?17:44??便利屋超市管理系統\charts-1.html
?????文件???????14196??2015-08-05?17:43??便利屋超市管理系統\charts-2.html
?????文件????????4383??2015-08-05?17:45??便利屋超市管理系統\charts-3.html
?????文件????????3819??2015-08-05?17:45??便利屋超市管理系統\charts-4.html
?????文件????????3209??2015-08-05?17:44??便利屋超市管理系統\charts-5.html
?????文件????????3356??2015-08-05?17:44??便利屋超市管理系統\charts-6.html
?????文件????????3261??2015-08-05?17:44??便利屋超市管理系統\charts-7.html
?????文件????????1675??2015-08-04?14:40??便利屋超市管理系統\codeing.html
?????目錄???????????0??2015-08-19?03:41??便利屋超市管理系統\css\
?????文件????????8609??2015-08-10?16:13??便利屋超市管理系統\css\H-ui.admin.css
?????文件??????142064??2015-08-19?03:28??便利屋超市管理系統\css\H-ui.css
?????文件????????1778??2015-07-30?14:05??便利屋超市管理系統\css\H-ui.login.css
?????文件??????100998??2015-08-19?03:29??便利屋超市管理系統\css\H-ui.min.css
?????文件????????3225??2015-04-06?21:24??便利屋超市管理系統\css\H-ui.reset.css
?????文件??????????44??2015-04-29?14:20??便利屋超市管理系統\css\st
?????文件????????1150??2014-07-31?08:05??便利屋超市管理系統\favicon.ico
?????文件???????10241??2015-08-12?01:13??便利屋超市管理系統\feedback-list.html
?????目錄???????????0??2015-08-10?17:50??便利屋超市管理系統\images\
............此處省略1736個文件信息
- 上一篇:學生會信息管理系統JAVA源代碼
- 下一篇:java大作業之詞頻統計
評論
共有 條評論