1,二维码JS
parent
cc82e62c46
commit
ddeecb977f
|
@ -0,0 +1,124 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Palette2">
|
||||||
|
<group name="Swing">
|
||||||
|
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Button" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="RadioButton" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="CheckBox" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Label" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||||
|
<preferred-size width="-1" height="20" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
</group>
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,275 @@
|
||||||
|
package com.zzjee.BI;
|
||||||
|
|
||||||
|
|
||||||
|
import org.jeecgframework.core.common.controller.BaseController;
|
||||||
|
import org.jeecgframework.core.common.model.json.Highchart;
|
||||||
|
import org.jeecgframework.core.util.DateUtils;
|
||||||
|
import org.jeecgframework.web.system.service.SystemService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import javax.validation.Validator;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/BiController")
|
||||||
|
public class BiController extends BaseController {
|
||||||
|
@Autowired
|
||||||
|
private SystemService systemService;
|
||||||
|
@Autowired
|
||||||
|
private Validator validator;
|
||||||
|
@RequestMapping(params = "homebi")
|
||||||
|
public ModelAndView bi(HttpServletRequest request) {
|
||||||
|
String num1= "0";
|
||||||
|
String num2= "0";
|
||||||
|
String num3= "0";
|
||||||
|
String num4= "0";
|
||||||
|
|
||||||
|
// String yearstr = DateUtils.date2Str(DateUtils.yyyyMMdd);
|
||||||
|
|
||||||
|
String ysql = "select CONVERT( sum(base_goodscount),DECIMAL(10,0)) as linecount from wm_im_notice_i where bin_pre = 'N'" ;
|
||||||
|
|
||||||
|
List<Map<String,Object>> ymaplist1=systemService.findForJdbc(ysql);
|
||||||
|
for (Map<String,Object> object : ymaplist1) {
|
||||||
|
Map<String, Object> obj = object;
|
||||||
|
|
||||||
|
try {
|
||||||
|
num1 = obj.get("linecount").toString();
|
||||||
|
} catch (Exception e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ysql = "select CONVERT( sum(base_goodscount),DECIMAL(10,0)) as linecount from wm_in_qm_i where bin_sta = 'N'" ;
|
||||||
|
|
||||||
|
List<Map<String,Object>> ymaplist2=systemService.findForJdbc(ysql);
|
||||||
|
for (Map<String,Object> object : ymaplist2) {
|
||||||
|
Map<String, Object> obj = object;
|
||||||
|
|
||||||
|
try {
|
||||||
|
num2 = obj.get("linecount").toString();
|
||||||
|
} catch (Exception e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ysql = "select CONVERT( sum(base_goodscount),DECIMAL(10,0)) as linecount from wm_om_qm_i where bin_sta = 'I'" ;
|
||||||
|
|
||||||
|
List<Map<String,Object>> ymaplist3=systemService.findForJdbc(ysql);
|
||||||
|
for (Map<String,Object> object : ymaplist3) {
|
||||||
|
Map<String, Object> obj = object;
|
||||||
|
|
||||||
|
try {
|
||||||
|
num3 = obj.get("linecount").toString();
|
||||||
|
} catch (Exception e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ysql = "select CONVERT( sum(base_goodscount),DECIMAL(10,0)) as linecount from wm_om_qm_i where bin_sta = 'N'" ;
|
||||||
|
|
||||||
|
List<Map<String,Object>> ymaplist4=systemService.findForJdbc(ysql);
|
||||||
|
for (Map<String,Object> object : ymaplist4) {
|
||||||
|
Map<String, Object> obj = object;
|
||||||
|
|
||||||
|
try {
|
||||||
|
num4 = obj.get("linecount").toString();
|
||||||
|
} catch (Exception e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
request.setAttribute("num1",num1);
|
||||||
|
request.setAttribute("num2",num2);
|
||||||
|
request.setAttribute("num3",num3);
|
||||||
|
request.setAttribute("num4",num4);
|
||||||
|
|
||||||
|
return new ModelAndView("com/zzjee/BI/home/reportbi");
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* highchart
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(params = "dayCount")
|
||||||
|
@ResponseBody
|
||||||
|
public List<Highchart> dayCountmonth(HttpServletRequest request, String reportType, HttpServletResponse response) {
|
||||||
|
List<Highchart> list = new ArrayList<Highchart>();
|
||||||
|
Highchart hc = new Highchart();
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
sb.append("select * from ( " +
|
||||||
|
"SELECT " +
|
||||||
|
" DATE_FORMAT(create_date, '%Y-%m-%d') as create_date, " +
|
||||||
|
" floor(sum(BASE_GOODSCOUNT)) as amount " +
|
||||||
|
"FROM" +
|
||||||
|
" wm_to_down_goods where ORDER_ID <> 'ZY' " +
|
||||||
|
"group by DATE_FORMAT(create_date, '%Y-%m-%d') " +
|
||||||
|
"order by DATE_FORMAT(create_date, '%Y-%m-%d') desc " +
|
||||||
|
"limit 7) temptable order by create_date ");
|
||||||
|
// List userBroswerList = systemService.(sb.toString());
|
||||||
|
List<Map<String,Object>> maplist=systemService.findForJdbc(sb.toString());
|
||||||
|
// StringBuffer sbconut = new StringBuffer();
|
||||||
|
// sbconut.append("SELECT floor(sum(or_Amount)) as amount FROM T_Kp_Order_One where cus_name is not null ");
|
||||||
|
//
|
||||||
|
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
|
||||||
|
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
|
||||||
|
List lt = new ArrayList();
|
||||||
|
hc = new Highchart();
|
||||||
|
hc.setName("近七日下架数量");
|
||||||
|
hc.setType(reportType);
|
||||||
|
Map<String, Object> map;
|
||||||
|
// Double count = Double.parseDouble(mapcount.get(0).get("amount").toString());
|
||||||
|
|
||||||
|
if (maplist.size() > 0) {
|
||||||
|
for (Map<String,Object> object : maplist) {
|
||||||
|
map = new HashMap<String, Object>();
|
||||||
|
Map<String,Object> obj = object;
|
||||||
|
map.put("name", obj.get("create_date").toString());
|
||||||
|
map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
|
||||||
|
Double groupCount = 0.00;
|
||||||
|
try{
|
||||||
|
groupCount = Double.parseDouble(obj.get("amount").toString());
|
||||||
|
}catch (Exception e){
|
||||||
|
|
||||||
|
}
|
||||||
|
// Double percentage = 0.0;
|
||||||
|
// if (count != null && count.intValue() != 0) {
|
||||||
|
// percentage = new Double(groupCount)/count;
|
||||||
|
// }
|
||||||
|
// map.put("percentage", percentage*100);
|
||||||
|
lt.add(map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hc.setData(lt);
|
||||||
|
list.add(hc);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* highchart
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(params = "cpNameupCount")
|
||||||
|
@ResponseBody
|
||||||
|
public List<Highchart> studentCountmonth(HttpServletRequest request, String reportType, HttpServletResponse response) {
|
||||||
|
List<Highchart> list = new ArrayList<Highchart>();
|
||||||
|
Highchart hc = new Highchart();
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
sb.append("select * from ( " +
|
||||||
|
"SELECT " +
|
||||||
|
" GOODS_ID as goodsid, " +
|
||||||
|
" floor(sum(BASE_GOODSCOUNT)) as amount " +
|
||||||
|
"FROM" +
|
||||||
|
" wm_to_up_goods where ORDER_ID <> 'ZY' " +
|
||||||
|
"group by GOODS_ID " +
|
||||||
|
") temptable order by amount desc limit 6 ");
|
||||||
|
// List userBroswerList = systemService.(sb.toString());
|
||||||
|
List<Map<String,Object>> maplist=systemService.findForJdbc(sb.toString());
|
||||||
|
// StringBuffer sbconut = new StringBuffer();
|
||||||
|
// sbconut.append("SELECT floor(sum(or_Amount)) as amount FROM T_Kp_Order_One where cus_name is not null ");
|
||||||
|
//
|
||||||
|
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
|
||||||
|
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
|
||||||
|
List lt = new ArrayList();
|
||||||
|
hc = new Highchart();
|
||||||
|
hc.setName("上架数量前6");
|
||||||
|
hc.setType(reportType);
|
||||||
|
Map<String, Object> map;
|
||||||
|
// Double count = Double.parseDouble(mapcount.get(0).get("amount").toString());
|
||||||
|
|
||||||
|
if (maplist.size() > 0) {
|
||||||
|
for (Map<String,Object> object : maplist) {
|
||||||
|
map = new HashMap<String, Object>();
|
||||||
|
Map<String,Object> obj = object;
|
||||||
|
map.put("name", obj.get("goodsid").toString());
|
||||||
|
map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
|
||||||
|
Double groupCount = 0.00;
|
||||||
|
try{
|
||||||
|
groupCount = Double.parseDouble(obj.get("amount").toString());
|
||||||
|
}catch (Exception e){
|
||||||
|
|
||||||
|
}
|
||||||
|
// Double percentage = 0.0;
|
||||||
|
// if (count != null && count.intValue() != 0) {
|
||||||
|
// percentage = new Double(groupCount)/count;
|
||||||
|
// }
|
||||||
|
// map.put("percentage", percentage*100);
|
||||||
|
lt.add(map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hc.setData(lt);
|
||||||
|
list.add(hc);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* highchart
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(params = "cpNamedownCount")
|
||||||
|
@ResponseBody
|
||||||
|
public List<Highchart> studentCount(HttpServletRequest request, String reportType, HttpServletResponse response) {
|
||||||
|
List<Highchart> list = new ArrayList<Highchart>();
|
||||||
|
Highchart hc = new Highchart();
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
sb.append("select * from ( " +
|
||||||
|
"SELECT " +
|
||||||
|
" GOODS_ID as goodsid, " +
|
||||||
|
" floor(sum(BASE_GOODSCOUNT)) as amount " +
|
||||||
|
"FROM" +
|
||||||
|
" wm_to_down_goods where ORDER_ID <> 'ZY' " +
|
||||||
|
"group by GOODS_ID " +
|
||||||
|
") temptable order by amount desc limit 6 ");
|
||||||
|
// List userBroswerList = systemService.(sb.toString());
|
||||||
|
List<Map<String,Object>> maplist=systemService.findForJdbc(sb.toString());
|
||||||
|
// StringBuffer sbconut = new StringBuffer();
|
||||||
|
// sbconut.append("SELECT floor(sum(or_Amount)) as amount FROM T_Kp_Order_One where cus_name is not null ");
|
||||||
|
//
|
||||||
|
// List<Map<String,Object>> mapcount=systemService.findForJdbc(sbconut.toString());
|
||||||
|
// Double count = systemService.getCountForJdbc("SELECT COUNT(1) FROM T_S_Log WHERE 1=1");
|
||||||
|
List lt = new ArrayList();
|
||||||
|
hc = new Highchart();
|
||||||
|
hc.setName("下架数量前6");
|
||||||
|
hc.setType(reportType);
|
||||||
|
Map<String, Object> map;
|
||||||
|
// Double count = Double.parseDouble(mapcount.get(0).get("amount").toString());
|
||||||
|
|
||||||
|
if (maplist.size() > 0) {
|
||||||
|
for (Map<String,Object> object : maplist) {
|
||||||
|
map = new HashMap<String, Object>();
|
||||||
|
Map<String,Object> obj = object;
|
||||||
|
map.put("name", obj.get("goodsid").toString());
|
||||||
|
map.put("y", (int) Double.parseDouble(obj.get("amount").toString()));
|
||||||
|
Double groupCount = 0.00;
|
||||||
|
try{
|
||||||
|
groupCount = Double.parseDouble(obj.get("amount").toString());
|
||||||
|
}catch (Exception e){
|
||||||
|
|
||||||
|
}
|
||||||
|
// Double percentage = 0.0;
|
||||||
|
// if (count != null && count.intValue() != 0) {
|
||||||
|
// percentage = new Double(groupCount)/count;
|
||||||
|
// }
|
||||||
|
// map.put("percentage", percentage*100);
|
||||||
|
lt.add(map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hc.setData(lt);
|
||||||
|
list.add(hc);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,327 @@
|
||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||||
|
<%@include file="/context/mytags.jsp"%>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<!-- context path -->
|
||||||
|
<t:base type="jquery,easyui"></t:base>
|
||||||
|
<script type="text/javascript" src="plug-in/Highcharts-2.2.5/js/highcharts.src.js"></script>
|
||||||
|
<script type="text/javascript" src="plug-in/Highcharts-2.2.5/js/modules/exporting.src.js"></script>
|
||||||
|
<%--<%@include file="/webpage/mobile/mobile_head.jsp" %>--%>
|
||||||
|
<link rel="stylesheet" href="mobile/fonts/themify/themify.css">
|
||||||
|
<link rel="stylesheet" href="mobile/css/home.css">
|
||||||
|
<link rel="stylesheet" href="mobile/css/custom-mobile.css">
|
||||||
|
<link rel="stylesheet" href="mobile/css/examples/pages/home/ecommerce.css">
|
||||||
|
<link rel="stylesheet" href="mobile/themes/classic/global/css/bootstrap.css">
|
||||||
|
<link rel="stylesheet" href="mobile/themes/classic/base/css/site.css" id="admui-siteStyle">
|
||||||
|
|
||||||
|
<!-- 图标 CSS-->
|
||||||
|
<link rel="stylesheet" href="mobile/fonts/font-awesome/font-awesome.css">
|
||||||
|
<link rel="stylesheet" href="mobile/fonts/web-icons/web-icons.css">
|
||||||
|
|
||||||
|
<!-- 插件 CSS -->
|
||||||
|
<link rel="stylesheet" href="mobile/vendor/animsition/animsition.css">
|
||||||
|
<link rel="stylesheet" href="mobile/vendor/toastr/toastr.css">
|
||||||
|
<c:set var="ctxPath" value="${pageContext.request.contextPath}" />
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function() {
|
||||||
|
$(document).ready(function() {
|
||||||
|
var chart;
|
||||||
|
$.ajax({
|
||||||
|
type : "POST",
|
||||||
|
url : "BiController.do?dayCount&reportType=line",
|
||||||
|
success : function(jsondata) {
|
||||||
|
data = eval(jsondata);
|
||||||
|
var xAxisCategories = new Array();
|
||||||
|
|
||||||
|
for(var i = 0; i < data[0].data.length; i++){
|
||||||
|
xAxisCategories[i] = data[0].data[i].name;
|
||||||
|
}
|
||||||
|
chart = new Highcharts.Chart({
|
||||||
|
chart : {
|
||||||
|
renderTo : 'containerdayline',
|
||||||
|
plotBackgroundColor : null,
|
||||||
|
plotBorderWidth : null,
|
||||||
|
plotShadow : false
|
||||||
|
},
|
||||||
|
title : {
|
||||||
|
text : '近七日下架数'
|
||||||
|
},
|
||||||
|
xAxis : {
|
||||||
|
categories : xAxisCategories
|
||||||
|
},
|
||||||
|
tooltip : {
|
||||||
|
shadow: false,
|
||||||
|
percentageDecimals : 0,
|
||||||
|
formatter: function() {
|
||||||
|
return '<b>'+this.point.name + '</b>:' + Highcharts.numberFormat(this.y, 0) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
exporting:{
|
||||||
|
filename:'pie',
|
||||||
|
url:'${ctxPath}/jeecgListDemoController.do?export'
|
||||||
|
},
|
||||||
|
plotOptions : {
|
||||||
|
pie : {
|
||||||
|
allowPointSelect : true,
|
||||||
|
cursor : 'pointer',
|
||||||
|
showInLegend : true,
|
||||||
|
dataLabels : {
|
||||||
|
enabled : true,
|
||||||
|
color : '#000000',
|
||||||
|
connectorColor : '#000000',
|
||||||
|
formatter : function() {
|
||||||
|
return '<b>' + this.point.name + '</b>: ' + Highcharts.numberFormat(this.percentage, 1)+"%";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
series : data
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function() {
|
||||||
|
$(document).ready(function() {
|
||||||
|
var chart;
|
||||||
|
$.ajax({
|
||||||
|
type : "POST",
|
||||||
|
url : "BiController.do?cpNamedownCount&reportType=column",
|
||||||
|
success : function(jsondata) {
|
||||||
|
data = eval(jsondata);
|
||||||
|
var xAxisCategories = new Array();
|
||||||
|
|
||||||
|
for(var i = 0; i < data[0].data.length; i++){
|
||||||
|
xAxisCategories[i] = data[0].data[i].name;
|
||||||
|
}
|
||||||
|
//console.log(data);//Highcharts报表插件bug,IE8下不能出现该语句,否则报表不显示
|
||||||
|
|
||||||
|
chart = new Highcharts.Chart({
|
||||||
|
chart : {
|
||||||
|
renderTo : 'containerCol',
|
||||||
|
plotBackgroundColor : null,
|
||||||
|
plotBorderWidth : null,
|
||||||
|
plotShadow : false
|
||||||
|
},
|
||||||
|
title : {
|
||||||
|
text : '下架数量前6'
|
||||||
|
},
|
||||||
|
xAxis : {
|
||||||
|
|
||||||
|
categories :xAxisCategories
|
||||||
|
|
||||||
|
},
|
||||||
|
tooltip : {
|
||||||
|
percentageDecimals : 0,
|
||||||
|
formatter: function() {
|
||||||
|
return '<b>'+this.point.name + '</b>:' + Highcharts.numberFormat(this.y, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
exporting:{
|
||||||
|
filename:'column',
|
||||||
|
url:'${ctxPath}/jeecgListDemoController.do?export'
|
||||||
|
},
|
||||||
|
plotOptions : {
|
||||||
|
column : {
|
||||||
|
allowPointSelect : true,
|
||||||
|
cursor : 'pointer',
|
||||||
|
showInLegend : true,
|
||||||
|
dataLabels : {
|
||||||
|
enabled : true,
|
||||||
|
color : '#000000',
|
||||||
|
connectorColor : '#000000',
|
||||||
|
formatter : function() {
|
||||||
|
|
||||||
|
return Highcharts.numberFormat(this.y, 1);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
series:data//,IE8不喜欢多余的逗号
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function() {
|
||||||
|
$(document).ready(function() {
|
||||||
|
var chart;
|
||||||
|
$.ajax({
|
||||||
|
type : "POST",
|
||||||
|
url : "BiController.do?cpNameupCount&reportType=pie",
|
||||||
|
success : function(jsondata) {
|
||||||
|
data = eval(jsondata);
|
||||||
|
var xAxisCategories = new Array();
|
||||||
|
|
||||||
|
for(var i = 0; i < data[0].data.length; i++){
|
||||||
|
xAxisCategories[i] = data[0].data[i].name;
|
||||||
|
}
|
||||||
|
chart = new Highcharts.Chart({
|
||||||
|
chart : {
|
||||||
|
renderTo : 'containerPie',
|
||||||
|
plotBackgroundColor : null,
|
||||||
|
plotBorderWidth : null,
|
||||||
|
plotShadow : false
|
||||||
|
},
|
||||||
|
title : {
|
||||||
|
text : '上架数量前6'
|
||||||
|
},
|
||||||
|
xAxis : {
|
||||||
|
categories : xAxisCategories
|
||||||
|
},
|
||||||
|
tooltip : {
|
||||||
|
shadow: false,
|
||||||
|
percentageDecimals : 0,
|
||||||
|
formatter: function() {
|
||||||
|
return '<b>'+this.point.name + '</b>:' + Highcharts.numberFormat(this.y, 0) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
exporting:{
|
||||||
|
filename:'pie',
|
||||||
|
url:'${ctxPath}/jeecgListDemoController.do?export'
|
||||||
|
},
|
||||||
|
plotOptions : {
|
||||||
|
pie : {
|
||||||
|
allowPointSelect : true,
|
||||||
|
cursor : 'pointer',
|
||||||
|
showInLegend : true,
|
||||||
|
dataLabels : {
|
||||||
|
enabled : true,
|
||||||
|
color : '#000000',
|
||||||
|
connectorColor : '#000000',
|
||||||
|
formatter : function() {
|
||||||
|
return Highcharts.numberFormat(this.y, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
series : data
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
setInterval(function(){
|
||||||
|
var myDate = new Date();
|
||||||
|
var x="欢迎您使用WMS,现在时间:"+myDate.getFullYear()+"年"+myDate.getMonth()+"月"+myDate.getDate()+"日 "+myDate.getHours()+"点"+myDate.getMinutes()+"分"+myDate.getSeconds()+"秒";
|
||||||
|
document.getElementById("x"). innerHTML=x;
|
||||||
|
},1000);
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.a{background:red;width:350px;height:80px;color:#ffffff;font-size:13px;line-height:80px;text-align:center}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<div class="col-ms-12 col-xs-12 col-md-12" id="ecommerceChartView">
|
||||||
|
<div class="widget widget-shadow">
|
||||||
|
<div class="widget-content tab-content bg-white padding-10">
|
||||||
|
|
||||||
|
<div class="media" style="border:0px">
|
||||||
|
<div class="media-body" style="padding-top: 10px;padding-left: 50px; ">
|
||||||
|
<h3 class="media-heading" id=x> </h3>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="padding-bottom: -100px;padding-top: -100px; height: 140px ">
|
||||||
|
<div >
|
||||||
|
|
||||||
|
<div class="col-lg-3 col-sm-3 col-xs-12 info-panel">
|
||||||
|
<div class="widget widget-shadow">
|
||||||
|
<div class="widget-content bg-white padding-20">
|
||||||
|
<button type="button" class="btn btn-floating btn-sm btn-warning">
|
||||||
|
<i class="icon wb-shopping-cart"></i>
|
||||||
|
</button>
|
||||||
|
<span class="margin-left-15 font-weight-400">待收货</span>
|
||||||
|
<div class="content-text text-center margin-bottom-0">
|
||||||
|
<i class="text-danger icon wb-triangle-up font-size-20"> </i>
|
||||||
|
<span class="font-size-30 font-weight-100">${num1}</span>
|
||||||
|
<p class="blue-grey-400 font-weight-100 margin-0">待收货件数</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-sm-3 col-xs-12 info-panel">
|
||||||
|
<div class="widget widget-shadow">
|
||||||
|
<div class="widget-content bg-white padding-20">
|
||||||
|
<button type="button" class="btn btn-floating btn-sm btn-danger">
|
||||||
|
<i class="icon fa-yen"></i>
|
||||||
|
</button>
|
||||||
|
<span class="margin-left-15 font-weight-400">待上架</span>
|
||||||
|
<div class="content-text text-center margin-bottom-0">
|
||||||
|
<i class="text-success icon wb-triangle-up font-size-20"> </i>
|
||||||
|
<span class="font-size-30 font-weight-100">${num2}</span>
|
||||||
|
<p class="blue-grey-400 font-weight-100 margin-0">待上架件数</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-sm-3 col-xs-12 info-panel">
|
||||||
|
<div class="widget widget-shadow">
|
||||||
|
<div class="widget-content bg-white padding-20">
|
||||||
|
<button type="button" class="btn btn-floating btn-sm btn-success">
|
||||||
|
<i class="icon wb-eye"></i>
|
||||||
|
</button>
|
||||||
|
<span class="margin-left-15 font-weight-400">待拣货</span>
|
||||||
|
<div class="content-text text-center margin-bottom-0">
|
||||||
|
<i class="text-danger icon wb-triangle-up font-size-20"> </i>
|
||||||
|
<span class="font-size-30 font-weight-100">${num3}</span>
|
||||||
|
<p class="blue-grey-400 font-weight-100 margin-0">待拣货件数</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-sm-3 col-xs-12 info-panel">
|
||||||
|
<div class="widget widget-shadow">
|
||||||
|
<div class="widget-content bg-white padding-20">
|
||||||
|
<button type="button" class="btn btn-floating btn-sm btn-primary">
|
||||||
|
<i class="icon wb-user"></i>
|
||||||
|
</button>
|
||||||
|
<span class="margin-left-15 font-weight-400">拣货中</span>
|
||||||
|
<div class="content-text text-center margin-bottom-0">
|
||||||
|
<i class="text-danger icon wb-triangle-up font-size-20"> </i>
|
||||||
|
<span class="font-size-30 font-weight-100">${num4}</span>
|
||||||
|
<p class="blue-grey-400 font-weight-100 margin-0">拣货中件数</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<span id="containerPie" style="float: left; width: 36%; height:350px;"></span>
|
||||||
|
<span id="containerdayline" style="float: left; width: 33%; height:350px;"></span>
|
||||||
|
<span id="containerCol" style="float: left; width: 31%;height:350px;"></span>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function(){
|
||||||
|
$(document.body).css("width","99.3%");
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</html>
|
|
@ -1,546 +0,0 @@
|
||||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
||||||
<%@include file="/context/mytags.jsp"%>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<!-- context path -->
|
|
||||||
<t:base type="jquery,easyui"></t:base>
|
|
||||||
<script type="text/javascript" src="plug-in/Highcharts-2.2.5/js/highcharts.src.js"></script>
|
|
||||||
<script type="text/javascript" src="plug-in/Highcharts-2.2.5/js/modules/exporting.src.js"></script>
|
|
||||||
<%--<%@include file="/webpage/mobile/mobile_head.jsp" %>--%>
|
|
||||||
<link rel="stylesheet" href="mobile/fonts/themify/themify.css">
|
|
||||||
<link rel="stylesheet" href="mobile/css/home.css">
|
|
||||||
<link rel="stylesheet" href="mobile/css/custom-mobile.css">
|
|
||||||
<link rel="stylesheet" href="mobile/css/examples/pages/home/ecommerce.css">
|
|
||||||
<link rel="stylesheet" href="mobile/themes/classic/global/css/bootstrap.css">
|
|
||||||
<link rel="stylesheet" href="mobile/themes/classic/base/css/site.css" id="admui-siteStyle">
|
|
||||||
|
|
||||||
<!-- 图标 CSS-->
|
|
||||||
<link rel="stylesheet" href="mobile/fonts/font-awesome/font-awesome.css">
|
|
||||||
<link rel="stylesheet" href="mobile/fonts/web-icons/web-icons.css">
|
|
||||||
|
|
||||||
<!-- 插件 CSS -->
|
|
||||||
<link rel="stylesheet" href="mobile/vendor/animsition/animsition.css">
|
|
||||||
<link rel="stylesheet" href="mobile/vendor/toastr/toastr.css">
|
|
||||||
<c:set var="ctxPath" value="${pageContext.request.contextPath}" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
$(document).ready(function() {
|
|
||||||
var chart;
|
|
||||||
$.ajax({
|
|
||||||
type : "POST",
|
|
||||||
url : "tKpOrderOneController.do?monthCount&reportType=line",
|
|
||||||
success : function(jsondata) {
|
|
||||||
data = eval(jsondata);
|
|
||||||
var xAxisCategories = new Array();
|
|
||||||
|
|
||||||
for(var i = 0; i < data[0].data.length; i++){
|
|
||||||
xAxisCategories[i] = data[0].data[i].name;
|
|
||||||
}
|
|
||||||
chart = new Highcharts.Chart({
|
|
||||||
chart : {
|
|
||||||
renderTo : 'containerline',
|
|
||||||
plotBackgroundColor : null,
|
|
||||||
plotBorderWidth : null,
|
|
||||||
plotShadow : false
|
|
||||||
},
|
|
||||||
title : {
|
|
||||||
text : '近一年产品销售额'
|
|
||||||
},
|
|
||||||
xAxis : {
|
|
||||||
categories : xAxisCategories
|
|
||||||
},
|
|
||||||
tooltip : {
|
|
||||||
shadow: false,
|
|
||||||
percentageDecimals : 0,
|
|
||||||
formatter: function() {
|
|
||||||
return '<b>'+this.point.name + '</b>:' + Highcharts.numberFormat(this.y, 0) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
exporting:{
|
|
||||||
filename:'pie',
|
|
||||||
url:'${ctxPath}/jeecgListDemoController.do?export'
|
|
||||||
},
|
|
||||||
plotOptions : {
|
|
||||||
pie : {
|
|
||||||
allowPointSelect : true,
|
|
||||||
cursor : 'pointer',
|
|
||||||
showInLegend : true,
|
|
||||||
dataLabels : {
|
|
||||||
enabled : true,
|
|
||||||
color : '#000000',
|
|
||||||
connectorColor : '#000000',
|
|
||||||
formatter : function() {
|
|
||||||
return '<b>' + this.point.name + '</b>: ' + Highcharts.numberFormat(this.percentage, 1)+"%";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
series : data
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
$(document).ready(function() {
|
|
||||||
var chart;
|
|
||||||
$.ajax({
|
|
||||||
type : "POST",
|
|
||||||
url : "tKpOrderOneController.do?dayCount&reportType=line",
|
|
||||||
success : function(jsondata) {
|
|
||||||
data = eval(jsondata);
|
|
||||||
var xAxisCategories = new Array();
|
|
||||||
|
|
||||||
for(var i = 0; i < data[0].data.length; i++){
|
|
||||||
xAxisCategories[i] = data[0].data[i].name;
|
|
||||||
}
|
|
||||||
chart = new Highcharts.Chart({
|
|
||||||
chart : {
|
|
||||||
renderTo : 'containerdayline',
|
|
||||||
plotBackgroundColor : null,
|
|
||||||
plotBorderWidth : null,
|
|
||||||
plotShadow : false
|
|
||||||
},
|
|
||||||
title : {
|
|
||||||
text : '近七日销售额'
|
|
||||||
},
|
|
||||||
xAxis : {
|
|
||||||
categories : xAxisCategories
|
|
||||||
},
|
|
||||||
tooltip : {
|
|
||||||
shadow: false,
|
|
||||||
percentageDecimals : 0,
|
|
||||||
formatter: function() {
|
|
||||||
return '<b>'+this.point.name + '</b>:' + Highcharts.numberFormat(this.y, 0) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
exporting:{
|
|
||||||
filename:'pie',
|
|
||||||
url:'${ctxPath}/jeecgListDemoController.do?export'
|
|
||||||
},
|
|
||||||
plotOptions : {
|
|
||||||
pie : {
|
|
||||||
allowPointSelect : true,
|
|
||||||
cursor : 'pointer',
|
|
||||||
showInLegend : true,
|
|
||||||
dataLabels : {
|
|
||||||
enabled : true,
|
|
||||||
color : '#000000',
|
|
||||||
connectorColor : '#000000',
|
|
||||||
formatter : function() {
|
|
||||||
return '<b>' + this.point.name + '</b>: ' + Highcharts.numberFormat(this.percentage, 1)+"%";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
series : data
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
$(document).ready(function() {
|
|
||||||
var chart;
|
|
||||||
$.ajax({
|
|
||||||
type : "POST",
|
|
||||||
url : "tKpOrderOneController.do?cusNameCount&reportType=column",
|
|
||||||
success : function(jsondata) {
|
|
||||||
data = eval(jsondata);
|
|
||||||
var xAxisCategories = new Array();
|
|
||||||
|
|
||||||
for(var i = 0; i < data[0].data.length; i++){
|
|
||||||
xAxisCategories[i] = data[0].data[i].name;
|
|
||||||
}
|
|
||||||
//console.log(data);//Highcharts报表插件bug,IE8下不能出现该语句,否则报表不显示
|
|
||||||
|
|
||||||
chart = new Highcharts.Chart({
|
|
||||||
chart : {
|
|
||||||
renderTo : 'containerCol',
|
|
||||||
plotBackgroundColor : null,
|
|
||||||
plotBorderWidth : null,
|
|
||||||
plotShadow : false
|
|
||||||
},
|
|
||||||
title : {
|
|
||||||
text : '客户销售额'
|
|
||||||
},
|
|
||||||
xAxis : {
|
|
||||||
|
|
||||||
categories :xAxisCategories
|
|
||||||
|
|
||||||
},
|
|
||||||
tooltip : {
|
|
||||||
percentageDecimals : 0,
|
|
||||||
formatter: function() {
|
|
||||||
return '<b>'+this.point.name + '</b>:' + Highcharts.numberFormat(this.y, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
exporting:{
|
|
||||||
filename:'column',
|
|
||||||
url:'${ctxPath}/jeecgListDemoController.do?export'
|
|
||||||
},
|
|
||||||
plotOptions : {
|
|
||||||
column : {
|
|
||||||
allowPointSelect : true,
|
|
||||||
cursor : 'pointer',
|
|
||||||
showInLegend : true,
|
|
||||||
dataLabels : {
|
|
||||||
enabled : true,
|
|
||||||
color : '#000000',
|
|
||||||
connectorColor : '#000000',
|
|
||||||
formatter : function() {
|
|
||||||
|
|
||||||
return Highcharts.numberFormat(this.percentage, 1)+"%";
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
series:data//,IE8不喜欢多余的逗号
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
$(document).ready(function() {
|
|
||||||
var chart;
|
|
||||||
$.ajax({
|
|
||||||
type : "POST",
|
|
||||||
url : "tKpOrderOneController.do?cpNameCount&reportType=pie",
|
|
||||||
success : function(jsondata) {
|
|
||||||
data = eval(jsondata);
|
|
||||||
var xAxisCategories = new Array();
|
|
||||||
|
|
||||||
for(var i = 0; i < data[0].data.length; i++){
|
|
||||||
xAxisCategories[i] = data[0].data[i].name;
|
|
||||||
}
|
|
||||||
chart = new Highcharts.Chart({
|
|
||||||
chart : {
|
|
||||||
renderTo : 'containerPie',
|
|
||||||
plotBackgroundColor : null,
|
|
||||||
plotBorderWidth : null,
|
|
||||||
plotShadow : false
|
|
||||||
},
|
|
||||||
title : {
|
|
||||||
text : '产品销售额'
|
|
||||||
},
|
|
||||||
xAxis : {
|
|
||||||
categories : xAxisCategories
|
|
||||||
},
|
|
||||||
tooltip : {
|
|
||||||
shadow: false,
|
|
||||||
percentageDecimals : 0,
|
|
||||||
formatter: function() {
|
|
||||||
return '<b>'+this.point.name + '</b>:' + Highcharts.numberFormat(this.y, 0) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
exporting:{
|
|
||||||
filename:'pie',
|
|
||||||
url:'${ctxPath}/jeecgListDemoController.do?export'
|
|
||||||
},
|
|
||||||
plotOptions : {
|
|
||||||
pie : {
|
|
||||||
allowPointSelect : true,
|
|
||||||
cursor : 'pointer',
|
|
||||||
showInLegend : true,
|
|
||||||
dataLabels : {
|
|
||||||
enabled : true,
|
|
||||||
color : '#000000',
|
|
||||||
connectorColor : '#000000',
|
|
||||||
formatter : function() {
|
|
||||||
return Highcharts.numberFormat(this.percentage, 1)+"%";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
series : data
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<%--<div class="row">--%>
|
|
||||||
<%--<div class="col-sm-4">--%>
|
|
||||||
<%--</div>--%>
|
|
||||||
<%--<div class="col-sm-4">--%>
|
|
||||||
<%--</div>--%>
|
|
||||||
<%--<div class="col-sm-4">--%>
|
|
||||||
<%--</div>--%>
|
|
||||||
<%--</div>--%>
|
|
||||||
<%--<div class="row">--%>
|
|
||||||
<%--<div class="col-sm-12">--%>
|
|
||||||
<%--</div>--%>
|
|
||||||
<%----%>
|
|
||||||
<%--</div>--%>
|
|
||||||
|
|
||||||
<span id="containerPie" style="float: left; width: 36%; height:350px;"></span>
|
|
||||||
|
|
||||||
<span id="containerdayline" style="float: left; width: 33%; height:350px;"></span>
|
|
||||||
<span id="containerCol" style="float: left; width: 30%;height:350px;"></span>
|
|
||||||
<!--update-begin--Author:xuelin Date:20170804 for:TASK #2246 【IE兼容问题】两个报表,不兼容IE8,代码优化 固定高度,否则部分浏览器下(chrome,IE8),数据表不显示------------------- -->
|
|
||||||
<%--<div id="containerline" style="width: 99%; height: 240px;">--%>
|
|
||||||
|
|
||||||
<div style="width: 100%; height: 350px;background-color: #fffffc">
|
|
||||||
|
|
||||||
<!--update-end--Author:xuelin Date:20170804 for:TASK #2246 【IE兼容问题】两个报表,不兼容IE8,代码优化 固定高度,否则部分浏览器下(chrome,IE8),数据表不显示------------------- -->
|
|
||||||
<%--<t:datagrid name="tKpOrderOneListbi" pageSize="10" pagination="true" sortName="id" sortOrder="desc" title="销售明细" actionUrl="tKpOrderOneController.do?datagrid" idField="id" fitColumns="false" fit="true" >--%>
|
|
||||||
<%--<t:dgCol title="订单号" field="id" hidden="true" queryMode="single" width="100"></t:dgCol>--%>
|
|
||||||
|
|
||||||
<%--<t:dgCol title="订单号" field="by6" queryMode="single" width="100"></t:dgCol>--%>
|
|
||||||
<%--<t:dgCol title="订单日期" field="docDate" formatter="yyyy-MM-dd" queryMode="group" width="80"></t:dgCol>--%>
|
|
||||||
<%--<t:dgCol title="订单状态" field="orStatus" queryMode="single" width="80"></t:dgCol>--%>
|
|
||||||
<%--<t:dgCol title="订单类型" field="orderType" queryMode="single" width="80"></t:dgCol>--%>
|
|
||||||
<%--<%–<t:dgCol title="客户编码" field="cusCode" hidden="true" queryMode="single" width="120"></t:dgCol>–%>--%>
|
|
||||||
<%--<t:dgCol title="客户名称" field="cusName" queryMode="single" width="80"></t:dgCol>--%>
|
|
||||||
<%--<%–<t:dgCol title="客户类型" field="cusType" queryMode="single" width="60"></t:dgCol>–%>--%>
|
|
||||||
<%--<%–<t:dgCol title="工地编码" field="gdCode" hidden="true" queryMode="single" width="120"></t:dgCol>–%>--%>
|
|
||||||
<%--<t:dgCol title="工地名称" field="gdName" queryMode="single" width="240"></t:dgCol>--%>
|
|
||||||
<%--<%–<t:dgCol title="产品编码" field="cpCode" hidden="true" queryMode="single" width="60"></t:dgCol>–%>--%>
|
|
||||||
<%--<t:dgCol title="产品名称" field="cpName" queryMode="single" width="60"></t:dgCol>--%>
|
|
||||||
<%--<t:dgCol title="规格" field="cpGuige" queryMode="single" width="110"></t:dgCol>--%>
|
|
||||||
<%--<t:dgCol title="等级" field="cpDengji" queryMode="single" width="80"></t:dgCol>--%>
|
|
||||||
<%--<t:dgCol title="单位" field="cpJifei" queryMode="single" width="60"></t:dgCol>--%>
|
|
||||||
<%--<t:dgCol title="方量" field="orQty" queryMode="single" width="60"></t:dgCol>--%>
|
|
||||||
<%--<t:dgCol title="单价" field="cpJiage" queryMode="single" width="60"></t:dgCol>--%>
|
|
||||||
<%--<t:dgCol title="总价值" field="orAmount" queryMode="single" width="80"></t:dgCol>--%>
|
|
||||||
<%--<t:dgCol title="备注" field="orRemark" queryMode="single" width="120"></t:dgCol>--%>
|
|
||||||
<%--<%–<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>–%>--%>
|
|
||||||
|
|
||||||
<%--</t:datagrid>--%>
|
|
||||||
<table width="100%" style="background-color: white">
|
|
||||||
<tr style="height: 60px"> <td style="font-size: 26px;text-align: center;" colspan="10"> </td></tr>
|
|
||||||
</table>
|
|
||||||
<div style="background-color: white">
|
|
||||||
|
|
||||||
<div class="col-lg-4 col-sm-4 col-xs-12">
|
|
||||||
<div class="widget widget-shadow">
|
|
||||||
<div class="widget-content bg-white padding-20">
|
|
||||||
<button type="button" class="btn btn-floating btn-sm btn-warning">
|
|
||||||
<i class="icon wb-graph-up"></i>
|
|
||||||
</button>
|
|
||||||
<span class="margin-left-15 font-weight-800">当年统计</span>
|
|
||||||
<div class="content-text text-center margin-bottom-0">
|
|
||||||
<%--<i class="text-danger icon wb-triangle-up font-size-20"> </i>--%>
|
|
||||||
<%--<span class="font-size-30 font-weight-100">${dnyf}</span>--%>
|
|
||||||
<%--<p class="blue-grey-400 font-weight-100 margin-0">当年累计应发</p>--%>
|
|
||||||
<table width="100%" style="background-color: white">
|
|
||||||
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<td></td>
|
|
||||||
<td style="font-size: 14px;text-align: right" >
|
|
||||||
加气
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 14px;text-align: right" >
|
|
||||||
标砖
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 14px;text-align: right" >
|
|
||||||
配套
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<td style="font-size: 12px;text-align: center" >
|
|
||||||
数量
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 12px;text-align: right" >
|
|
||||||
${year2}
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 12px;text-align: right" >
|
|
||||||
${year1}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td style="font-size: 12px;text-align: right" >
|
|
||||||
${year3}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<td style="font-size: 14px;text-align: center" >
|
|
||||||
金额
|
|
||||||
</td>
|
|
||||||
<td style="color:#F2A654;font-size: 14px;text-align: right" >
|
|
||||||
${year5}
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td style="color:#F2A654;font-size: 14px;text-align: right" >
|
|
||||||
${year4}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td style="color:#F2A654;font-size: 14px;text-align: right" >
|
|
||||||
${year6}
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4 col-sm-4 col-xs-12 info-panel">
|
|
||||||
<div class="widget widget-shadow">
|
|
||||||
<div class="widget-content bg-white padding-20">
|
|
||||||
<button type="button" class="btn btn-floating btn-sm btn-danger">
|
|
||||||
<i class="icon wb-calendar"></i>
|
|
||||||
</button>
|
|
||||||
<span class="margin-left-15 font-weight-800">当月统计</span>
|
|
||||||
<div class="content-text text-center margin-bottom-0">
|
|
||||||
<%--<i class="text-success icon wb-triangle-up font-size-20"> </i>--%>
|
|
||||||
<%--<span class="font-size-30 font-weight-100">${dnsf}</span>--%>
|
|
||||||
<%--<p class="blue-grey-400 font-weight-100 margin-0">当年累计实发</p>--%>
|
|
||||||
|
|
||||||
<table width="100%" style="background-color: white">
|
|
||||||
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<td></td>
|
|
||||||
<td style="font-size: 14px;text-align: right" >
|
|
||||||
加气
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 14px;text-align: right" >
|
|
||||||
标砖
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 14px;text-align: right" >
|
|
||||||
配套
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<td style="font-size: 12px;text-align: center" >
|
|
||||||
数量
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 12px;text-align: right" >
|
|
||||||
${month2}
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 12px;text-align: right" >
|
|
||||||
${month1}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td style="font-size: 12px;text-align: right" >
|
|
||||||
${month3}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<td style="font-size: 14px;text-align: center" >
|
|
||||||
金额
|
|
||||||
</td>
|
|
||||||
<td style="color:#F96868;font-size: 14px;text-align: right" >
|
|
||||||
${month5}
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td style="color:#F96868;font-size: 14px;text-align: right" >
|
|
||||||
${month4}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td style="color:#F96868;font-size: 14px;text-align: right" >
|
|
||||||
${month6}
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-4 col-sm-4 col-xs-12 info-panel">
|
|
||||||
<div class="widget widget-shadow">
|
|
||||||
<div class="widget-content bg-white padding-20">
|
|
||||||
<button type="button" class="btn btn-floating btn-sm btn-success">
|
|
||||||
<i class="icon wb-time"></i>
|
|
||||||
</button>
|
|
||||||
<span class="margin-left-15 font-weight-800">当日统计</span>
|
|
||||||
<div class="content-text text-center margin-bottom-0">
|
|
||||||
<%--<i class="text-danger icon wb-triangle-up font-size-20"> </i>--%>
|
|
||||||
<%--<span class="font-size-30 font-weight-100">${byyf}</span>--%>
|
|
||||||
<%--<p class="blue-grey-400 font-weight-100 margin-0">应发工资总计</p>--%>
|
|
||||||
<table width="100%" style="background-color: white">
|
|
||||||
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<td></td>
|
|
||||||
<td style="font-size: 14px;text-align: right" >
|
|
||||||
加气
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 14px;text-align: right" >
|
|
||||||
标砖
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 14px;text-align: right" >
|
|
||||||
配套
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<td style="font-size: 12px;text-align: center" >
|
|
||||||
数量
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 12px;text-align: right" >
|
|
||||||
${day2}
|
|
||||||
</td>
|
|
||||||
<td style="font-size: 12px;text-align: right" >
|
|
||||||
${day1}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td style="font-size: 12px;text-align: right" >
|
|
||||||
${day3}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<td style="font-size: 14px;text-align: center" >
|
|
||||||
金额
|
|
||||||
</td>
|
|
||||||
<td style="color:#46BE8A;font-size: 14px;text-align: right" >
|
|
||||||
${day5}
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td style="color:#46BE8A;font-size: 14px;text-align: right" >
|
|
||||||
${day4}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td style="color:#46BE8A;font-size: 14px;text-align: right" >
|
|
||||||
${day6}
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function(){
|
|
||||||
$(document.body).css("width","99.3%");
|
|
||||||
// $(document.body).css("height","120px");
|
|
||||||
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<!-- add-update--Author:jg_renjie Date:20150613 for:页面自适应页面,不会出现左右滚动条 -->
|
|
||||||
|
|
||||||
</html>
|
|
|
@ -25,7 +25,7 @@
|
||||||
<body class="gray-bg">
|
<body class="gray-bg">
|
||||||
|
|
||||||
<%--<div class="row J_mainContent" id="content-main" style="margin-left:-13px;">--%>
|
<%--<div class="row J_mainContent" id="content-main" style="margin-left:-13px;">--%>
|
||||||
<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="mvStockYjController.do?list" frameborder="0" seamless></iframe>
|
<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="BiController.do?homebi" frameborder="0" seamless></iframe>
|
||||||
<%--</div>--%>
|
<%--</div>--%>
|
||||||
<!-- 全局js -->
|
<!-- 全局js -->
|
||||||
<script src="plug-in-ui/hplus/js/jquery.min.js?v=2.1.4"></script>
|
<script src="plug-in-ui/hplus/js/jquery.min.js?v=2.1.4"></script>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
<div id="p2" title="效期预警">
|
<div id="p2" title="效期预警">
|
||||||
<!-- <div class="row J_mainContent" id="content-main" style="margin-left:-13px;"> -->
|
<!-- <div class="row J_mainContent" id="content-main" style="margin-left:-13px;"> -->
|
||||||
<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="mvStockYjController.do?list" frameborder="0" seamless></iframe>
|
<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="BiController.do?homebi" frameborder="0" seamless></iframe>
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
<body class="gray-bg">
|
<body class="gray-bg">
|
||||||
<%--<div class="row J_mainContent" id="content-main" style="margin-left:-5px;">--%>
|
<%--<div class="row J_mainContent" id="content-main" style="margin-left:-5px;">--%>
|
||||||
<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="mvStockYjController.do?list" frameborder="0" seamless></iframe>
|
<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="BiController.do?homebi" frameborder="0" seamless></iframe>
|
||||||
<%--</div>--%>
|
<%--</div>--%>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue