| | |
| | | put("devalarm","home_warn.gif");
|
| | | put("precharge","home_warn.gif");
|
| | | put("onlinecharge","home_warn.gif");
|
| | | put("poff","poff.gif");
|
| | | put("install","install.gif");
|
| | | }
|
| | | };
|
| | |
|
| | |
| | | uc.setChart_pre_charge(files.get(i));
|
| | | }else if("onlinecharge".equals(ftype.get(i))){
|
| | | uc.setChart_online_charge(files.get(i));
|
| | | }else if("poff".equals(ftype.get(i))){
|
| | | uc.setChart_poff(files.get(i));
|
| | | }else if("install".equals(ftype.get(i))){
|
| | | uc.setChart_install(files.get(i));
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | list.add(uchart.getChart_dev_alarm());
|
| | | list.add(uchart.getChart_pre_charge());
|
| | | list.add(uchart.getChart_online_charge());
|
| | | String sql="insert into web_site.tb_user_Chart(chart_name,chart_file,Chart_logo,Chart_normal,Chart_behind,Chart_warn,Chart_timeout,Chart_nuclear_cap,Chart_dev_alarm,Chart_pre_charge,Chart_online_charge) values(?,?,?,?,?,?,?,?,?,?,?)";
|
| | | list.add(uchart.getChart_poff());
|
| | | list.add(uchart.getChart_install());
|
| | | String sql="insert into web_site.tb_user_Chart(chart_name,chart_file,Chart_logo,Chart_normal,Chart_behind,Chart_warn,Chart_timeout,Chart_nuclear_cap,Chart_dev_alarm,Chart_pre_charge,Chart_online_charge,Chart_poff,Chart_install) values(?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
| | | boolean bl=DAOHelper.executeUpdatePicture(DBUtil.getConn(), sql, list);
|
| | | return bl;
|
| | | }
|
| | |
| | | list.add(uchart.getChart_online_charge());
|
| | | sql+=online_chargeSql;
|
| | | }
|
| | | //Chart_poff图片
|
| | | String poffSql=" Chart_poff=? ";
|
| | | if(uchart.getChart_poff()!=null&&uchart.getChart_poff().length()>0){
|
| | | if(list.size()>0){
|
| | | sql+=",";
|
| | | }
|
| | | list.add(uchart.getChart_poff());
|
| | | sql+=poffSql;
|
| | | }
|
| | | //Chart_install图片
|
| | | String installSql=" Chart_install=? ";
|
| | | if(uchart.getChart_install()!=null&&uchart.getChart_install().length()>0){
|
| | | if(list.size()>0){
|
| | | sql+=",";
|
| | | }
|
| | | list.add(uchart.getChart_install());
|
| | | sql+=installSql;
|
| | | }
|
| | | //endSql
|
| | | String endSql=" where chart_file=?";
|
| | | list.add(uchart.getChart_file());
|
| | |
| | | private File Chart_behind;
|
| | | private File Chart_warn;
|
| | | private File Chart_timeout;
|
| | | private File Chart_poff; //停电
|
| | | private File Chart_install;//未添加的图标
|
| | |
|
| | | private File Chart_nuclear_cap;//核容放电
|
| | | private File Chart_dev_alarm;//设备告警
|
| | |
| | | public void setChart_timeout_blob(Blob chart_timeout_blob) {
|
| | | Chart_timeout_blob = chart_timeout_blob;
|
| | | }
|
| | | public File getChart_poff() {
|
| | | return Chart_poff;
|
| | | }
|
| | | public void setChart_poff(File chart_poff) {
|
| | | Chart_poff = chart_poff;
|
| | | }
|
| | | public File getChart_install() {
|
| | | return Chart_install;
|
| | | }
|
| | | public void setChart_install(File chart_install) {
|
| | | Chart_install = chart_install;
|
| | | }
|
| | | @Override
|
| | | public String toString() {
|
| | | return "User_Chart [num=" + num + ", Chart_name=" + Chart_name
|
| | | + ", Chart_file=" + Chart_file + ", Chart_logo=" + Chart_logo
|
| | | + ", Chart_normal=" + Chart_normal + ", Chart_behind="
|
| | | + Chart_behind + ", Chart_warn=" + Chart_warn
|
| | | + ", Chart_timeout=" + Chart_timeout + ", Chart_nuclear_cap="
|
| | | + Chart_nuclear_cap + ", Chart_dev_alarm=" + Chart_dev_alarm
|
| | | + ", Chart_timeout=" + Chart_timeout + ", Chart_poff="
|
| | | + Chart_poff + ", Chart_install=" + Chart_install
|
| | | + ", Chart_nuclear_cap=" + Chart_nuclear_cap
|
| | | + ", Chart_dev_alarm=" + Chart_dev_alarm
|
| | | + ", Chart_pre_charge=" + Chart_pre_charge
|
| | | + ", Chart_online_charge=" + Chart_online_charge
|
| | | + ", Chart_logo_blob=" + Chart_logo_blob
|
| | |
| | | }
|
| | |
|
| | |
|
| | | |
| | | }
|