package Frame;
|
import java.awt.*;
|
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionListener;
|
import java.awt.event.WindowEvent;
|
import java.awt.event.WindowListener;
|
import java.util.ArrayList;
|
import java.util.List;
|
import javax.swing.*;
|
import ColorAndFont.UIColor;
|
import DataBase.DatabaseManagement;
|
import Judge.JugeNumber;
|
import Method.JComboBoxModel;
|
import PbuliClass.GetTxt;
|
import PbuliClass.JButtonModel;
|
import PbuliClass.JCheckBoxModel;
|
import PbuliClass.JlableModel;
|
import PbuliClass.ShowMessage;
|
import PbuliClass.Systems;
|
import PbuliClass.jinternalFrame;
|
import tbDataModel_Dell.JPanelModel1;
|
import tbDataModel_Dell.Map_Dell;
|
|
public class SystemSet extends jinternalFrame {
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
JPanel ceneterJpane=null;
|
JPanel mb1=null;
|
JPanel mb2=null;
|
JPasswordField dbName=null;
|
JPasswordField dbPass=null;
|
JlableModel gas_xiangguan_set=null;
|
JlableModel gas_port_jl=null;
|
JlableModel gas_hz_jl=null;
|
JlableModel jlb_udp_out=null;
|
JlableModel jlb_language=null;
|
JlableModel jl_map=null;
|
JlableModel jl_baidu=null;
|
JlableModel jlb_baowentou=null;
|
JlableModel jlb_anchoroff=new JlableModel("A12. »ùÕ¾ÀëÏßÅжÏʱ³¤/Ãë:");//»ùÕ¾ÀëÏßÅжÏʱ¼ä
|
JlableModel jlb_tagoff=new JlableModel("A11. ±êÇ©ÀëÏßÅжÏʱ³¤/Ãë:");//»ùÕ¾ÀëÏßÅжÏʱ¼ä
|
JlableModel jlb_fengmingtime=new JlableModel("B5. Õð¶¯Ê±³¤/Ãë :");
|
JlableModel jlb_zhuanfajg=new JlableModel("A9. λÖÃת·¢¼ä¸ô/Ãë:");
|
JTextField gui_ji=null;//¹ì¼£±£´æÊ±³¤
|
JTextField rssid_file=null;//RSSID¼ÈëÎı¾¿ò
|
JTextField data_time=null;//BSÊý¾Ýת·¢±ê־룬ÓÃÓÚÇø·Ö²»Í¬ÏîÄ¿´«ÊäÉÏÀ´Î»ÖÃÊý
|
JTextField bei_fen_di_zhi=null;//Êý¾Ý¿â±¸·ÝµØÖ·
|
JTextField udpPort=null;
|
JTextField udpAdress=null;
|
JTextField title=null;
|
JTextField gas_port_jf=null;
|
JTextField gas_hz_jf=null;
|
JTextField jt_zhuce_anchor=null;//Ö»Ïò¸Ã»ùÕ¾·¢×¢²á±¨ÎÄ
|
JTextField jt_udp_out=null;//UDP·¢ËͶ˿Ú
|
JTextField jt_baidu_j=null;//°Ù¶ÈµØÍ¼Ä¬ÈÏÏÔʾµÄ¾¶È
|
JTextField jt_baidu_w=null;//°Ù¶ÈµØÍ¼Ä¬ÈÏÏÔʾµÄγ¶È
|
JTextField jt_baowentou=null;
|
JTextField jt_anchordata=null;//»ùÕ¾Êý¾Ý½ÓÊܶ˿Ú
|
JTextField jt_anchoroff=null;//»ùÕ¾ÀëÏßÅжÏʱ¼ä
|
JTextField jt_tagoff=null;//±êÇ©ÀëÏßÅжÏʱ¼ä
|
JTextField jt_tcpheart_time=null;//TCPÐÄÌø°üʱ³¤
|
JTextField jt_tzijiesuan=null;//×Ô½âËã1´ú±íUWB»ùվϷ¢Êý¾Ý£¬4´ú±í×ß4GÏ·¢Êý¾Ý
|
JTextField jt_urtfloor=null;//ÊÒÍâÏÔʾµÄ²ã
|
JTextField jt_fencedis=null;//±äµçվΧÀ¸¼ä¾à
|
JTextField jt_SmoothPos=null;//λÖùýÂËʱ¼ä
|
JTextField jt_fengmingtime=null;//·äÃùÕð¶¯Ê±¼äÉèÖõ¥Î»Ãë
|
JTextField jt_zhuanfajg=null;//ʵʱλÖÃת·¢¼ä¸ô
|
|
JCheckBoxModel viewPower=null;
|
JCheckBoxModel diskaoqing=null;
|
JCheckBoxModel viewTagid=null;
|
JCheckBoxModel viewAnckid=null;
|
JCheckBoxModel viewAnckzb=null;
|
JCheckBoxModel viewName=null;
|
JCheckBoxModel offView=null;
|
JCheckBoxModel tunlDw=null;
|
JCheckBoxModel tagZb=null;
|
JCheckBoxModel anckicon=null;
|
JCheckBoxModel guiji_sava=null;
|
JCheckBoxModel gas_show_box=null;
|
JCheckBoxModel gas_open_box=null;
|
JCheckBoxModel quite=null;
|
JCheckBoxModel jc_openudp=null;
|
JCheckBoxModel jc_know_tag_zu=null;
|
JCheckBoxModel jc_wifi_moshi=null;
|
JCheckBoxModel jc_zhuce_anchor=null;
|
JCheckBoxModel jc_houtai=null;
|
JCheckBoxModel jc_weidu=null;//ϵͳά¶Èģʽ3¾ÍÊÇ3ά£¬2¾ÍÊÇ2ά
|
JCheckBoxModel jc_eng_bs=null;
|
JCheckBoxModel jc_fence_show=null;
|
JCheckBoxModel jc_urt=null;
|
JCheckBoxModel jc_gps2000=null;//XYת2000×ø±êϵ
|
JCheckBoxModel jc_wuxian=null;//»ùÕ¾Ãâ²¼Ïßģʽ
|
JCheckBoxModel jc_Substation=null;//±äµçվģʽ
|
JCheckBoxModel jc_othershow0=null;//ÆäËû²ãÏÔʾÔÚ0²ã
|
JCheckBoxModel jc_enjheart=null;//ÒýÇæÐÄÌø°ü
|
JCheckBoxModel jc_anchorshengji=null;//»ùÕ¾Éý¼¶Ä£Ê½
|
JCheckBoxModel jc_zidongshijianpian=null;//×Ô¶¯Ê±¼äƬ¸ñʽ
|
|
JButtonModel sure=null;//È·¶¨°´Å¥
|
JButtonModel qkdata=null;//Çå¿ÕÊý¾Ý°´Å¥
|
JButtonModel restore=null;//»Ö¸´ÏµÍ³Ä¬ÈÏÉèÖÃ
|
JComboBoxModel real_track_time=null;//ʵʱ¹ì¼£Ê±³¤
|
JComboBoxModel real_track_color=null;//ʵʱ¹ì¼£ÑÕÉ«
|
JComboBoxModel jcom_lauguage;//ÓïÑÔÑ¡Ôñ
|
JComboBoxModel jcom_map;//ÓïÑÔÑ¡Ôñ
|
|
|
|
|
|
int qiti_y=400;
|
int shitu_y=230;
|
|
JPanelModel1 mp1=null;//»ù´¡ÉèÖÃÃæ°å
|
JPanelModel1 mp2=null;//ÊÓͼÏà¹ØÉèÖÃ
|
JPanelModel1 mp3=null;//ÆäËûÉèÖÃ
|
JScrollPane jsp=null;//¹ö¶¯Ìõ
|
static String zhuceanchor="";
|
|
int chongzhi=0;
|
|
public SystemSet() {
|
String title="ϵͳÉèÖÃ";
|
if(Systems.sys().getLanguage().equals("English")) {
|
title="System settings";
|
}
|
this.setTitle(title);
|
Container rq=getContentPane();//»ñÈ¡ÈÝÆ÷
|
rq.setLayout(new BorderLayout());
|
this.setBounds(175, 0, 1000, 700);
|
rq.setBackground(Color.white);
|
rq.add(getJsp(),BorderLayout.CENTER);
|
this.setFrameIcon(new ImageIcon("image/icon/systemicon.png"));//ÉèÖô°Ìåͼ±ê
|
|
}
|
|
public JPanel getMb1() {
|
if(mb1==null) {
|
mb1=new JPanel();
|
mb1.setLayout(null);
|
mb1.setBackground(UIColor.getNorth_color());
|
mb1.setPreferredSize(new Dimension(1000,1000));
|
// int w=1500;
|
int x=10;
|
int y=10;
|
|
mb1.add(getMp1());
|
mp1.setBounds(x, y,1000, 620);
|
|
int y1=y+650;
|
mb1.add(getMp2());
|
mp2.setBounds(x,y1,1000, 140);
|
|
int y2=y1+170;
|
mb1.add(getMp3());
|
mp3.setBounds(x,y2,1000,80);
|
|
int y3=y2+100;
|
mb1.add(getSure());
|
sure.setBounds(350, y3,80, 25);
|
|
mb1.add(getRestore());
|
restore.setBounds(500,y3, 80, 25);
|
}
|
return mb1;
|
}
|
|
|
|
|
public JButtonModel getSure() {
|
if(sure==null) {
|
sure=new JButtonModel("È·¶¨ÐÞ¸Ä");
|
sure.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
|
String id="1";
|
|
String dbNamet= String.valueOf(dbName.getPassword());
|
if(!ShowMessage.isNull(dbNamet,"Êý¾Ý¿âÃû³Æ",20)) {
|
return;
|
}
|
|
String dbPasst= String.valueOf(dbPass.getPassword());
|
if(!ShowMessage.isNull(dbPasst,"Êý¾Ý¿âÃÜÂë",20)) {
|
return;
|
}
|
|
String gui_jit=gui_ji.getText().trim();
|
if(!ShowMessage.isNull(gui_jit,"¹ì¼£±£´æÖÜÆÚ",10)) {
|
return;
|
}
|
|
|
String biaozhi=data_time.getText().trim();
|
if(!ShowMessage.isNull(biaozhi,"BSÊý¾Ýת·¢±êÖ¾",10)) {
|
return;
|
}
|
String bei_fen_di_zhit=bei_fen_di_zhi.getText().trim();
|
if(!ShowMessage.isNull(bei_fen_di_zhit,"Êý¾Ý±¸·ÝµØÖ·",30)) {
|
return;
|
}
|
|
String cs_udp=udpPort.getText().trim();
|
if(!ShowMessage.isNull(cs_udp,"URT¼àÌý¶Ë¿Ú",10)) {
|
return;
|
}
|
|
String udpPort="8234";
|
|
String rssidz=rssid_file.getText().trim();
|
|
String udpAdresst=udpAdress.getText().trim();
|
ShowMessage.isIpAdress(udpAdresst);
|
// String np="dbName:"+dbNamet+":\n"+
|
// "dbPass:"+dbPasst+":";
|
// String path="systemFiles/system.txt";
|
// ReadFiles.wirteTxt(path, np);
|
String titlet=title.getText().trim();
|
if(!ShowMessage.isNull(titlet,"ϵͳ±êÌâ",50)) {
|
return;
|
}
|
|
|
String tagZbt="0";
|
if(tagZb.isSelected()) {
|
tagZbt="1";
|
}
|
|
String viewPowert="0";
|
if(viewPower.isSelected()) {
|
viewPowert="1";
|
}
|
|
String diskaoqingt="0";
|
if( diskaoqing.isSelected()) {
|
diskaoqingt="1";
|
}
|
String viewTagidt="0";
|
if( viewTagid.isSelected()) {
|
viewTagidt="1";
|
}
|
String viewAnckidt="0";
|
if( viewAnckid.isSelected()) {
|
viewAnckidt="1";
|
}
|
String viewAnckzbt="0";
|
if( viewAnckzb.isSelected()) {
|
viewAnckzbt="1";
|
}
|
String viewNamet="0";
|
if( viewName.isSelected()) {
|
viewNamet="1";
|
}
|
String offViewt="0";
|
if( offView.isSelected()) {
|
offViewt ="1";
|
Systems.setLixianoff(true);
|
}else {
|
Systems.setLixianoff(false);
|
}
|
String tunlDwt="0";
|
if( tunlDw.isSelected()) {
|
tunlDwt="1";
|
}
|
String anckicont="0";
|
if( anckicon.isSelected()) {
|
anckicont="1";
|
}
|
|
String guijisave="0";
|
if( guiji_sava.isSelected()) {
|
guijisave="1";
|
}
|
|
String gas_show="0";
|
if( gas_show_box.isSelected()) {
|
gas_show="1";
|
}
|
|
|
if( gas_show_box.isSelected()) {
|
gas_show="1";
|
}
|
|
String gas_open="0";
|
if( gas_open_box.isSelected()) {
|
gas_open="1";
|
}
|
|
String quitestr="0";
|
if(quite.isSelected()) {
|
quitestr="1";
|
}
|
|
|
String gas_port=gas_port_jf.getText().trim();
|
if(!ShowMessage.isNull(gas_port,"ÆøÌå¼ì²â¶Ë¿Ú¼àÌý",10)) {
|
return;
|
}
|
|
String gas_hz=gas_hz_jf.getText().trim();
|
if(!ShowMessage.isNull(gas_hz,"ÆøÌå²ÉÑùƵÂÊ",10)) {
|
return;
|
}
|
|
String openudp="0";
|
if(jc_openudp.isSelected()) {
|
openudp="1";
|
}
|
|
String know_tag_Zu="0";
|
if(jc_know_tag_zu.isSelected()) {
|
know_tag_Zu="1";
|
}
|
|
//WIFIģʽ
|
String wifimodel="0";
|
if(jc_wifi_moshi.isSelected()) {
|
wifimodel="1";
|
}
|
|
//ºǫ́ÏÔʾ
|
String houtai="0";
|
if(jc_houtai.isSelected()) {
|
houtai="1";
|
}
|
|
//UDPºǫ́
|
String udp_out=jt_udp_out.getText().trim();
|
|
String real_trak_timestr=(String) real_track_time.getSelectedItem();
|
|
String real_trak_colorstr= (String) real_track_color.getSelectedItem();
|
|
//ÓïÑÔ
|
String language=(String) getJcom_lauguage().getSelectedItem();
|
|
//×öbsÒýÇæÓÃ
|
String eng_bs="0";
|
if(getJc_eng_bs().isSelected()) {
|
eng_bs="1";
|
}
|
|
//ϵͳά¶È
|
String weidu="0";
|
if(getJc_weidu().isSelected()) {
|
weidu="1";
|
}
|
|
|
String fence_show="0";
|
if(jc_fence_show.isSelected()) {
|
fence_show="1";
|
}
|
String yulan_map=(String) jcom_map.getSelectedItem();
|
String baidu_j=jt_baidu_j.getText().trim();
|
String baidu_w=jt_baidu_w.getText().trim();
|
|
String urt="0";
|
if(jc_urt.isSelected()) {
|
urt="1";
|
}
|
|
|
String baowentou=jt_baowentou.getText().trim();
|
|
//×Ô½âËãģʽ
|
String zijiesuan=jt_tzijiesuan.getText().trim();
|
if(zijiesuan.length() !=1) {
|
zijiesuan="0";
|
}else {
|
zijiesuan=zijiesuan.replaceAll(" ", "");
|
}
|
|
//UDP»ùÕ¾Êý¾Ý½ÓÊÕ¶Ë¿Ú
|
String baoliu1=jt_anchordata.getText().trim();
|
|
//»ùÕ¾ÀëÏßÅжÏʱ³¤
|
String baoliu2=jt_anchoroff.getText().trim();
|
|
//»ùÕ¾ÀëÏßÅжÏʱ³¤
|
String baoliu3=jt_tagoff.getText().trim();
|
|
//¿ªÆôxyת2000¹¦ÄÜ
|
String baoliu4="0";
|
if(jc_gps2000.isSelected()) {
|
baoliu4="1";
|
}
|
|
//¿ªÆôûÓб»Ê¹ÓÃ
|
String baoliu5=jt_tcpheart_time.getText().trim();
|
if(!JugeNumber.isDigit(baoliu5)) {
|
baoliu5="10";
|
}
|
|
//¿ªÆô»ùÕ¾Ãâ²¼Ïßģʽ
|
String baoliu6="0";
|
if(jc_wuxian.isSelected()) {
|
baoliu6="1";
|
}
|
|
//ÊÒÍâËùÔڵIJã
|
String baoliu7=jt_urtfloor.getText().replaceAll(" ", "");
|
|
//¿ªÆô²î·Ö»ù×¼Õ¾
|
String baoliu9="0";
|
if(jc_Substation.isSelected()) {
|
baoliu9="1";
|
}
|
|
|
String baoliu10=jt_fencedis.getText().replaceAll(" ", "");
|
|
String baoliu11="0";
|
if(jc_othershow0.isSelected()) {
|
baoliu11="1";
|
}
|
|
//λÖÃÆ½»¬Ê±¼ä
|
String baoliu12=jt_SmoothPos.getText().replaceAll(" ", "");
|
|
//ÊÇ·ñ¿ªÆôÒýÇæÐÄÌø
|
String baoliu19="0";
|
if(jc_enjheart.isSelected()) {
|
baoliu19="1";
|
}
|
|
//·äÃùʱ¼ä³¤¶È
|
String baoliu21=jt_fengmingtime.getText().trim();//·äÃùʱ¼ä
|
String baoliu22=jt_zhuanfajg.getText().trim();//ʵʱΪת·¢Ê±¼ä¼ä¸ô
|
//»ùÕ¾Éý¼¶Ä£Ê½
|
String baoliu23="0";
|
if(jc_anchorshengji.isSelected()) {
|
baoliu23="1";
|
}
|
|
//×Ô¶¯Ê±¼äƬ¹¦ÄÜ
|
String baoliu24="0";
|
if(jc_zidongshijianpian.isSelected()) {
|
baoliu24="1";
|
}
|
|
String[] ziduan= {
|
"dataname",
|
"datapass",
|
"gui_ji",
|
"biaozhi",
|
"bei_fen_di_zhi",
|
"title",
|
"udpPort",
|
"udpAdress",
|
"viewPower",
|
"diskaoqing",
|
"viewTagid",
|
"viewAnckid",
|
"viewAnckzb",
|
"viewName",
|
"offView",
|
"tunlDw",
|
"tagZb",
|
"anckicon",
|
"guiji_sava",
|
"rssid",
|
"gas_show",
|
"gas_open",
|
"gas_port",
|
"gas_hz",
|
"real_trak_time",
|
"real_trak_color",
|
"quiet",
|
"openudp",
|
"know_tag_zu",
|
"wifi_mdel",
|
"houtai",
|
"udp_out",
|
"language",
|
"data_time",
|
"weidu",
|
"cs_udp",
|
"eng_bs",
|
"fence_show",
|
"yulan_map",
|
"baidu_j",
|
"baidu_w",
|
"urt",
|
"baowentou",
|
"zijiesuan",
|
"baoliu1",
|
"baoliu2",
|
"baoliu3",
|
"baoliu4",
|
"baoliu5",
|
"baoliu6",
|
"baoliu7",
|
"baoliu9",
|
"baoliu10",
|
"baoliu11",
|
"baoliu12",
|
"baoliu19",
|
"baoliu21",
|
"baoliu22",
|
"baoliu23",
|
"baoliu24",
|
"id"
|
};
|
String[] zhi= {
|
dbNamet,
|
dbPasst,
|
gui_jit,
|
biaozhi,
|
bei_fen_di_zhit,
|
titlet,
|
udpPort,
|
udpAdresst,
|
viewPowert,
|
diskaoqingt,
|
viewTagidt,
|
viewAnckidt,
|
viewAnckzbt,
|
viewNamet,
|
offViewt,
|
tunlDwt,
|
tagZbt,
|
anckicont,
|
guijisave,
|
rssidz,
|
gas_show,
|
gas_open,
|
gas_port,
|
gas_hz,
|
real_trak_timestr,
|
real_trak_colorstr,
|
quitestr,
|
openudp,
|
know_tag_Zu,
|
wifimodel,
|
houtai,
|
udp_out,
|
language,
|
"1",
|
weidu,
|
cs_udp,
|
eng_bs,
|
fence_show,
|
yulan_map,
|
baidu_j,
|
baidu_w,
|
urt,
|
baowentou,
|
zijiesuan,
|
baoliu1,
|
baoliu2,
|
baoliu3,
|
baoliu4,
|
baoliu5,
|
baoliu6,
|
baoliu7,
|
baoliu9,
|
baoliu10,
|
baoliu11,//ÆäËû²ãÏÔʾÔÚ0²ã
|
baoliu12,//λÖÃÆ½»¬Ê±³¤
|
baoliu19,
|
baoliu21,//·äÃùʱ³¤
|
baoliu22,//λÖÃת·¢Ê±¼ä¼ä¸ô
|
baoliu23,//»ùÕ¾Éý¼¶Ä£Ê½
|
baoliu24,//ÊÇ·ñÆôÓÃ×Ô¶¯Ê±¼äƬ¹¦ÄÜ
|
id
|
};
|
|
//ÐÞ¸ÄÊý¾Ý¿âÊý¾Ý
|
DatabaseManagement.fast_alert_dbase("tb_system", ziduan, zhi);
|
|
Systems.set_system(
|
dbNamet,
|
dbPasst,
|
gui_jit,
|
biaozhi,
|
bei_fen_di_zhit,
|
titlet,
|
udpPort,
|
udpAdresst,
|
viewPowert,
|
diskaoqingt,
|
viewTagidt,
|
viewAnckidt,
|
viewAnckzbt,
|
viewNamet,
|
offViewt,
|
tunlDwt,
|
tagZbt,
|
anckicont,
|
guijisave,
|
rssidz,
|
gas_show,
|
gas_open,
|
gas_port,
|
gas_hz,
|
real_trak_timestr,
|
real_trak_colorstr,
|
quitestr,
|
openudp,
|
know_tag_Zu,
|
wifimodel,
|
houtai,
|
udp_out,
|
language,
|
"1",
|
weidu,
|
cs_udp,
|
eng_bs,
|
fence_show,
|
yulan_map,
|
baidu_j,
|
baidu_w,
|
urt,
|
baowentou,
|
zijiesuan,
|
baoliu1,
|
baoliu2,
|
baoliu3,
|
baoliu4,
|
baoliu5,
|
baoliu6,
|
baoliu7,
|
baoliu9,
|
baoliu10,
|
baoliu11,
|
baoliu12,
|
baoliu19,
|
baoliu21,
|
baoliu22,
|
baoliu23,
|
baoliu24
|
);
|
ShowMessage.zidingyi("Êý¾Ý±£´æ³É¹¦...");
|
}
|
});
|
|
}
|
return sure;
|
}
|
|
|
public JButtonModel getQkdata() {
|
if(qkdata==null) {
|
qkdata=new JButtonModel("Çå¿ÕÊý¾Ý");
|
qkdata.addActionListener(new ActionListener() {
|
@Override
|
public void actionPerformed(ActionEvent e) {
|
new posswordDialog("ÊäÈëÃÜÂë");
|
}
|
});
|
}
|
return qkdata;
|
}
|
/**»Ö¸´Ä¬ÈÏÉèÖÃ*/
|
public JButtonModel getRestore() {
|
if(restore==null) {
|
restore=new JButtonModel("²ÎÊýÖØÖÃ");
|
restore.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
new posswordDialog1("ÊäÈëÃÜÂë");
|
|
|
|
}
|
});
|
|
}
|
return restore;
|
}
|
|
|
public JlableModel getGas_port_jl() {
|
if(gas_port_jl==null) {
|
gas_port_jl=new JlableModel("¼àÌý¶Ë¿Ú:");
|
|
|
}
|
return gas_port_jl;
|
}
|
|
public JlableModel getGas_hz_jl() {
|
if(gas_hz_jl==null) {
|
gas_hz_jl=new JlableModel("ÆøÌå²ÉÑùƵÂÊ(S):");
|
|
}
|
return gas_hz_jl;
|
}
|
|
|
|
public JTextField getGas_port_jf() {
|
if(gas_port_jf==null) {
|
gas_port_jf=new JTextField(5);
|
gas_port_jf.setText(Systems.sys().getGas_port());
|
|
}
|
return gas_port_jf;
|
}
|
|
|
public JTextField getGas_hz_jf() {
|
if(gas_hz_jf==null) {
|
gas_hz_jf=new JTextField(5);
|
gas_hz_jf.setText(Systems.sys().getGas_hz());
|
|
}
|
return gas_hz_jf;
|
}
|
|
public JCheckBoxModel getGas_show_box() {
|
if(gas_show_box==null) {
|
gas_show_box=new JCheckBoxModel("¿ªÆôÆøÌåÏÔʾ",Systems.sys().getGas_show());
|
gas_show_box.setToolTipText("¹´Ñ¡±íʾ¿ªÆô¸Ã¹¦ÄÜ£¬²»¹´Ñ¡±íʾ¹Ø±Õ¸Ã¹¦ÄÜ");
|
|
|
}
|
return gas_show_box;
|
}
|
|
public JCheckBoxModel getGas_open_box() {
|
if(gas_open_box==null) {
|
gas_open_box=new JCheckBoxModel("¿ªÆôÆøÌå¼àÌý",Systems.sys().getGas_open());
|
gas_open_box.setToolTipText("¹´Ñ¡±íʾ¿ªÆô¸Ã¹¦ÄÜ£¬²»¹´Ñ¡±íʾ¹Ø±Õ¸Ã¹¦ÄÜ");
|
|
|
}
|
return gas_open_box;
|
}
|
|
|
public JComboBoxModel getReal_track_time() {
|
if(real_track_time==null) {
|
String[] neirong= {"ʵʱ¹ì¼£Ê±³¤","²»ÏÔʾʵʱ¹ì¼£","10ÃëÖÓ","30ÃëÖÓ","1·ÖÖÓ","10·ÖÖÓ","30·ÖÖÓ"};
|
real_track_time=new JComboBoxModel(neirong);
|
real_track_time.setSelectedItem(Systems.sys().getReal_trak_time());
|
}
|
return real_track_time;
|
}
|
|
public JComboBoxModel getReal_track_color() {
|
if(real_track_color==null) {
|
String[] neirong= {"ʵʱ¹ì¼£ÑÕÉ«","ºìÉ«","À¶É«","ºÚÉ«","°×É«","ÂÌÉ«","»ÆÉ«"};
|
real_track_color=new JComboBoxModel(neirong);
|
real_track_color.setSelectedItem(Systems.sys().getReal_trak_color());
|
}
|
return real_track_color;
|
}
|
|
public JCheckBoxModel getQuite() {
|
if(quite==null) {
|
quite=new JCheckBoxModel("¾²Ö¹×ø±ê¹Ì¶¨",Systems.sys().getQuiet());
|
quite.setToolTipText("¹´Ñ¡±íʾ¿ªÆô¸Ã¹¦ÄÜ£¬²»¹´Ñ¡±íʾ¹Ø±Õ¸Ã¹¦ÄÜ");
|
}
|
return quite;
|
}
|
|
/**¿ªÆôUDP¶Ë¿Ú¼àÌý*/
|
public JCheckBoxModel getJc_openudp() {
|
if(jc_openudp==null) {
|
jc_openudp=new JCheckBoxModel("C9. ¿ªÆôUDP¼àÌý",Systems.sys().getOpenudp());
|
jc_openudp.setToolTipText("¹´Ñ¡±íʾ¿ªÆô¸Ã¹¦ÄÜ£¬²»¹´Ñ¡±íʾ¹Ø±Õ¸Ã¹¦ÄÜ");
|
}
|
return jc_openudp;
|
}
|
|
public JCheckBoxModel getJc_know_tag_zu() {
|
if(jc_know_tag_zu==null) {
|
jc_know_tag_zu=new JCheckBoxModel("C10. ÏÔʾµ¼º½À¸Í¼±ê",Systems.sys().getKnow_tag_zu());
|
jc_know_tag_zu.setToolTipText("¹´Ñ¡±íʾ¿ªÆô¸Ã¹¦ÄÜ£¬²»¹´Ñ¡±íʾ¹Ø±Õ¸Ã¹¦ÄÜ");
|
}
|
return jc_know_tag_zu;
|
}
|
|
/**ÉèÖÃʹÓÃwifiģʽ*/
|
public JCheckBoxModel getJc_wifi_moshi() {
|
if(jc_wifi_moshi==null) {
|
jc_wifi_moshi=new JCheckBoxModel("C2. »ùÕ¾WIFIģʽ",Systems.sys().getWifi_model());
|
jc_wifi_moshi.setToolTipText("¹´Ñ¡±íʾ¿ªÆô¸Ã¹¦ÄÜ£¬²»¹´Ñ¡±íʾ¹Ø±Õ¸Ã¹¦ÄÜ");
|
}
|
return jc_wifi_moshi;
|
}
|
|
/**Ï·¢×¢²áÐÅÏ¢»ùÕ¾id*/
|
public JCheckBoxModel getJc_zhuce_anchor() {
|
if(jc_zhuce_anchor==null) {
|
jc_zhuce_anchor=new JCheckBoxModel("Ï·¢×¢²á»ùÕ¾","0");
|
jc_zhuce_anchor.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
if(jc_zhuce_anchor.isSelected()) {
|
zhuceanchor=jt_zhuce_anchor.getText().trim().toUpperCase();
|
|
}else {
|
zhuceanchor="";
|
}
|
|
}
|
});
|
}
|
return jc_zhuce_anchor;
|
}
|
|
|
public JPanelModel1 getMp1() {
|
if(mp1==null) {
|
|
mp1=new JPanelModel1("»ù´¡ÉèÖÃ");
|
int x=30;
|
int y=30;
|
int h=25;
|
|
JlableModel name8= new JlableModel("A1. ϵͳ±êÌâ: ");
|
name8.setBounds(x, y, 120, h);
|
title=new JTextField();
|
title.setText(Systems.sys().getTitle());
|
title.setBounds(x+120,y,190,h);
|
mp1.add(title);
|
|
JlableModel name1= new JlableModel("A2. Êý¾Ý¿âÃû³Æ: ");
|
dbName=new JPasswordField(5);
|
dbName.setText(GetTxt.getTxt("dbName","system"));
|
name1.setBounds(x,y+20+h,200+15, h);
|
dbName.setBounds(x+200+15,y+20+h,90,h);
|
mp1.add(dbName);
|
|
|
JlableModel name2= new JlableModel("A3. Êý¾Ý¿âÃÜÂë: ");
|
name2.setBounds(x, y+(h+20)*2, 200+15, h);
|
dbPass=new JPasswordField(5);
|
dbPass.setText(GetTxt.getTxt("dbPass","system"));
|
dbPass.setBounds(x+200+15,y+(h+20)*2, 90, h);
|
mp1.add(dbPass);
|
|
|
//UDP½ÓÊÕ¶Ë¿Ú
|
JlableModel au= new JlableModel("A4. HEXÊý¾ÝUDP½ÓÊÕ¶Ë¿Ú:");
|
au.setBounds(x,y+(h+20)*3,200+15, h);
|
getJt_anchordata().setBounds(x+200+15,y+(h+20)*3,90, h);
|
mp1.add(au);
|
mp1.add(jt_anchordata);
|
|
JlableModel name6= new JlableModel("A5. ASCIIÊý¾ÝUDP½ÓÊÕ¶Ë¿Ú: ");
|
name6.setBounds(x,y+(h+20)*4,200+15,h);
|
udpPort=new JTextField();
|
udpPort.setText(Systems.sys().getCs_udp());
|
udpPort.setBounds(x+200+15,y+(h+20)*4,90,h);
|
mp1.add(udpPort);
|
|
JlableModel name5= new JlableModel("A6. TCP½ÓÊÕ¶Ë¿Ú: ");
|
name5.setBounds(x,y+(h+20)*5,200+15,h);
|
bei_fen_di_zhi=new JTextField(10);
|
bei_fen_di_zhi.setText(Systems.sys().getBei_fen_di_zhi());
|
bei_fen_di_zhi.setBounds(x+200+15,y+(h+20)*5,90, h);
|
mp1.add(bei_fen_di_zhi);
|
|
//UDP·¢ËͶ˿Ú
|
mp1.add(getJlb_udp_out());
|
mp1.add(getJt_udp_out());
|
jt_udp_out.setText(Systems.sys().getUdp_out());
|
jlb_udp_out.setBounds(x,y+(h+20)*6,200+15,h);
|
jt_udp_out.setBounds(x+200+15,y+(h+20)*6,90,h);
|
|
//λÖÃÆ½»¬Ê±¼ä
|
JlableModel name13= new JlableModel("A8. λÖÃÆ½»¬Ê±³¤/Ãë:");
|
name13.setBounds(x,y+(h+20)*7,200+15,h);
|
getJt_SmoothPos().setBounds(x+200+15,y+(h+20)*7,90,h);
|
mp1.add(name13);
|
mp1.add(jt_SmoothPos);
|
|
//ʵʱλÖÃת·¢Ê±¼ä¼ä¸ô
|
jlb_zhuanfajg.setBounds(x,y+(h+20)*8,200+15,h);
|
getJt_zhuanfajg().setBounds(x+200+15,y+(h+20)*8,90,h);
|
mp1.add(jlb_zhuanfajg);
|
mp1.add(jt_zhuanfajg);
|
|
JlableModel name3= new JlableModel("A10. ¹ì¼£±£´æµÄʱ³¤/Ìì: ");
|
name3.setBounds(x, y+(h+20)*9, 200+15, h);
|
gui_ji=new JTextField(3);//¹ì¼£±£´æÊ±³¤
|
gui_ji.setText(Systems.sys().getGui_ji());
|
gui_ji.setBounds(x+200+15,y+(h+20)*9, 90, h);
|
mp1.add(gui_ji);
|
|
//±êÇ©ÀëÏßÅжÏʱ³¤
|
mp1.add(jlb_tagoff);
|
mp1.add(getJt_tagoff());
|
jlb_tagoff.setBounds(x,y+(h+20)*10,200+15, h);
|
jt_tagoff.setBounds(x+200+15,y+(h+20)*10,90, h);
|
|
//»ùÕ¾ÀëÏßÅжÏʱ³¤
|
mp1.add(jlb_anchoroff);
|
mp1.add(getJt_anchoroff());
|
jlb_anchoroff.setBounds(x,y+(h+20)*11,200+15, h);
|
jt_anchoroff.setBounds(x+200+15,y+(h+20)*11,90, h);
|
|
//TCP»Ø¸´µÄÐÄÌøÊ±³¤
|
JlableModel name10= new JlableModel("A13. TCPÐÄÌø°ü»Ø¸´Ê±¼ä/Ãë:");
|
name10.setBounds(x,y+(h+20)*12,200+15,h);
|
getJt_tcpheart_time().setBounds(x+200+15,y+(h+20)*12,90,h);
|
mp1.add(name10);
|
mp1.add(jt_tcpheart_time);
|
|
//×Ô½âËãģʽ
|
JlableModel name14= new JlableModel("B1. ×Ô½âËãģʽ:");
|
name14.setBounds(x+365,y,150+15,h);
|
getJt_tzijiesuan().setBounds(x+515+15,y,90,h);
|
mp1.add(name14);
|
mp1.add(jt_tzijiesuan);
|
|
|
JlableModel name7= new JlableModel("B2. ·þÎñÆ÷µØÖ·: ");
|
name7.setBounds(x+365,y+h+20,150+15,h);
|
udpAdress=new JTextField();
|
udpAdress.setText(Systems.sys().getUdpAdress());
|
udpAdress.setBounds(x+515+15,y+h+20,90,h);
|
mp1.add(udpAdress);
|
|
|
|
//URTÔÚÊÒÍâÏÔʾµÄ²ã
|
JlableModel name11= new JlableModel("B3. ÊÒÍâËùÔÚ²ã:");
|
name11.setBounds(x+365,y+(h+20)*2,150+15,h);
|
getJt_urtfloor().setBounds(x+515+15,y+(h+20)*2,90,h);
|
mp1.add(name11);
|
mp1.add(jt_urtfloor);
|
|
|
JlableModel name9= new JlableModel("B4. ÂÒÐò»ØËÝ/°ü: ");
|
name9.setBounds(x+365,y+(h+20)*3,150+15,h);
|
rssid_file=new JTextField();
|
rssid_file.setText(Systems.sys().getRssid());
|
rssid_file.setBounds(x+515+15,y+(h+20)*3,90, h);
|
mp1.add(rssid_file);
|
|
|
|
jlb_fengmingtime.setBounds(x+365,y+(h+20)*4,150+15,h);//·äÃùʱ¼ä³¤¶È
|
getJt_fengmingtime().setBounds(x+515+15,y+(h+20)*4,90,h);
|
|
|
|
//±äµçվΧÀ¸¼ä¸ô
|
JlableModel name12= new JlableModel("B6. URTΧÀ¸¼ä¾à:");
|
name12.setBounds(x+365,y+(h+20)*5,150+15,h);
|
getJt_fencedis().setBounds(x+515+15,y+(h+20)*5,90,h);
|
mp1.add(name12);
|
mp1.add(jt_fencedis);
|
|
JlableModel name4= new JlableModel("B7. BSÊý¾Ýת·¢±ê־λ: ");
|
name4.setBounds(x+365,y+(h+20)*6,172+15,h);
|
data_time=new JTextField(3);//±êÖ¾
|
data_time.setText(Systems.sys().getBiaozhi());
|
data_time.setBounds(x+515+15,y+(h+20)*6,90,h);
|
mp1.add(data_time);
|
|
//¿ÚÁî
|
getJlb_baowentou().setBounds(x+365,y+(h+20)*7,150+15,h);
|
getJt_baowentou().setBounds(x+515+15,y+(h+20)*7,90,h);
|
|
//Ê×Ò³µØÍ¼Ñ¡Ôñ
|
getJl_map().setBounds(x+365,y+(h+20)*8,150+15,h);
|
getJcom_map().setBounds(x+515+15,y+(h+20)*8,90,h);
|
|
|
//°Ù¶ÈµØÍ¼Ä¬ÈÏÏÔÊ¾ÇøÓò¾Î³¶È
|
getJl_baidu().setBounds(x+365,y+(h+20)*9,150+150,h);
|
getJt_baidu_j().setBounds(x+515+15,y+(h+20)*9,90,h);
|
getJt_baidu_w().setBounds(x+515+15,y+(h+20)*10,90,h);
|
|
|
|
|
//¿ªÆô¹Ø±ÕÃâ²¼Ïß¹¦ÄÜ
|
getJc_wuxian().setBounds(x+670,y,150+50,h);
|
mp1.add(jc_wuxian);
|
//wifiģʽ
|
getJc_wifi_moshi().setBounds(x+670,y+(h+20),150+50,h);
|
mp1.add(jc_wifi_moshi);
|
//ϵͳά¶È
|
getJc_weidu().setBounds(x+670,y+(h+20)*2,150+50,h);
|
mp1.add(jc_weidu);
|
//×öbsÒýÇæÓÃ
|
getJc_eng_bs().setBounds(x+670,y+(h+20)*3,150+50,h);
|
mp1.add(jc_eng_bs);
|
//ºǫ́ÏÔʾ
|
getJc_houtai().setBounds(x+670,y+(h+20)*4,150+50,h);
|
mp1.add(jc_houtai);
|
//ÊÇ·ñ¿ªÆôÐÄÌøÊý¾Ý
|
getJc_enjheart().setBounds(x+670,y+(h+20)*5,150+50,h);
|
//×Ô½¨²î·Ö»ù׼վģʽ
|
getJc_Substation().setBounds(x+670,y+(h+20)*6,150+50,h);
|
mp1.add(jc_Substation);
|
//¿ªÆôxyתgnss×ø±êϵ¹¦ÄÜ
|
getJc_gps2000().setBounds(x+670,y+(h+20)*7,150+50,h);
|
mp1.add(jc_gps2000);
|
//UDP¿ªÆô¼àÌý
|
getJc_openudp().setBounds(x+670,y+(h+20)*8,150+50,h);
|
mp1.add(jc_openudp);
|
//ÒѾ֪µÀ±êÇ©ËùÔÚµÄ×é
|
getJc_know_tag_zu().setBounds(x+670,y+(h+20)*9,150+50,h);
|
mp1.add(jc_know_tag_zu);
|
//URTģʽ¾ÍÊÇÈÃURT×ö»ùվʹÓÃ
|
getJc_urt().setBounds(x+670,y+(h+20)*10,150+50,h);
|
//ÆäËû²ãÏÔʾÔÚ0²ã
|
getJc_othershow0().setBounds(x+670,y+(h+20)*11,150+50,h);
|
mp1.add(jc_othershow0);
|
|
//×Ô¶¯Ê±¼äƬģʽ
|
getJc_zidongshijianpian().setBounds(x+670,y+(h+20)*12,150+50,h);
|
mp1.add(getJc_zidongshijianpian());
|
|
|
|
mp1.add(name1);
|
mp1.add(name2);
|
mp1.add(name3);
|
mp1.add(name4);
|
mp1.add(name5);
|
mp1.add(name6);
|
mp1.add(name7);
|
mp1.add(name8);
|
mp1.add(name9);
|
mp1.add(jl_map);
|
mp1.add(jcom_map);
|
mp1.add(jl_baidu);
|
mp1.add(jt_baidu_j);
|
mp1.add(jt_baidu_w);
|
mp1.add(jc_urt);
|
mp1.add(jlb_baowentou);
|
mp1.add(jt_baowentou);
|
mp1.add(jc_enjheart);
|
mp1.add(jlb_fengmingtime);
|
mp1.add(jt_fengmingtime);
|
|
}
|
return mp1;
|
}
|
public JScrollPane getJsp(){
|
if (jsp==null){
|
jsp=new JScrollPane(getMb1(),ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
|
jsp.getVerticalScrollBar().setUnitIncrement(20);
|
}
|
return jsp;
|
}
|
|
public JPanelModel1 getMp2() {
|
if(mp2==null) {
|
mp2=new JPanelModel1("ÊÓͼÏà¹ØÉèÖÃ");
|
int x=30;
|
int y=30;
|
int h=25;
|
|
|
mp2.add(getReal_track_time());
|
mp2.add(getReal_track_color());
|
mp2.add(getGas_show_box());
|
mp2.add(getQuite());
|
mp2.add(getJlb_language());
|
mp2.add(getJcom_lauguage());
|
mp2.add(getdiskaoqing());
|
|
//ÊÓͼÏà¹ØÉèÖÃ
|
tagZb=new JCheckBoxModel("±êÇ©×ø±êÏÔʾ",Systems.sys().getTagZb());
|
tagZb.setBounds(x, y,120, h);
|
viewPower=new JCheckBoxModel("ÏÔʾʵʱµçÁ¿",Systems.sys().getViewPower());
|
viewPower.setBounds(x,y+h+10,120,h);
|
|
diskaoqing.setBounds(x+140,y,120,h);
|
viewTagid=new JCheckBoxModel("ÏÔʾ±êÇ©µÄID",Systems.sys().getViewTagid());
|
viewTagid.setBounds(x+140, y+h+10,120,h);
|
|
viewAnckid=new JCheckBoxModel("ÏÔʾ»ùÕ¾µÄID",Systems.sys().getViewAnckid());
|
viewAnckid.setBounds(x+280,y,120,h);
|
viewAnckzb=new JCheckBoxModel("ÏÔʾ»ùÕ¾×ø±ê",Systems.sys().getViewAnckzb());
|
viewAnckzb.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
if(viewAnckzb.isSelected()) {
|
Systems.setShowanczuobiao(true);
|
}else {
|
Systems.setShowanczuobiao(false);
|
}
|
|
}
|
});
|
|
viewAnckzb.setBounds(x+280,y+h+10,120,h);
|
|
viewName=new JCheckBoxModel("ÏÔʾÐÕÃû",Systems.sys().getViewName());
|
viewName.setBounds(x+400,y,100,h);
|
offView=new JCheckBoxModel("ÀëÏßÏûʧ",Systems.sys().getOffView());
|
offView.setBounds(x+400,y+h+10,100,h);
|
|
tunlDw=new JCheckBoxModel("ËíµÀ¶¨Î»",Systems.sys().getTunlDw());
|
tunlDw.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
if(tunlDw.isSelected()) {
|
Systems.setSuidaomoshi(true);
|
}else {
|
Systems.setSuidaomoshi(false);
|
}
|
|
}
|
});
|
|
tunlDw.setBounds(x+520,y,100,h);
|
anckicon=new JCheckBoxModel("»ùÕ¾ÏÔʾ",Systems.sys().getAnckicon());
|
anckicon.setBounds(x+520,y+h+10,100,h);
|
|
guiji_sava=new JCheckBoxModel("¿ªÆô¹ì¼£±£´æ",Systems.sys().getGuiji_sava());
|
guiji_sava.setBounds(x+640,y, 120,h);
|
gas_show_box.setBounds(x+640,y+h+10, 120,h);
|
|
|
|
//»ùÕ¾Éý¼¶Ä£Ê½
|
getJc_anchorshengji().setBounds(x+640+140,y, 120,h);
|
|
|
quite.setBounds(x, y+2*h+20, 120, h);
|
real_track_time.setBounds(x+140, y+2*h+20, 120, h);
|
real_track_color.setBounds(x+320,y+2*h+20, 120,h);
|
|
//ÓïÑÔÑ¡Ôñ
|
jlb_language.setBounds(x+460, y+2*h+20, 75, h);
|
jcom_lauguage.setBounds(x+535, y+2*h+20, 100, h);
|
|
//BS¶ËΧÀ¸ÊÇ·ñÏÔʾ
|
getJc_fence_show().setBounds(x+640, y+2*h+20, 100, h);
|
|
mp2.add(jc_anchorshengji);
|
mp2.add(viewPower);
|
mp2.add(viewTagid);
|
mp2.add(viewAnckid);
|
mp2.add(viewAnckzb);
|
mp2.add(viewName);
|
mp2.add(offView);
|
mp2.add(tunlDw);
|
mp2.add(tagZb);
|
mp2.add(anckicon);
|
mp2.add(guiji_sava);
|
mp2.add(jc_fence_show);
|
|
}
|
return mp2;
|
}
|
|
public JPanelModel1 getMp3() {
|
if(mp3==null) {
|
mp3=new JPanelModel1("ÆäËûÉèÖÃ");
|
int x=30;
|
int y=30;
|
int h=25;
|
mp3.add(getGas_hz_jf());
|
mp3.add(getGas_hz_jl());
|
mp3.add(getGas_open_box());
|
mp3.add(getGas_port_jf());
|
mp3.add(getGas_port_jl());
|
mp3.add(getJc_zhuce_anchor());
|
mp3.add(getQkdata());
|
mp3.add(getJt_zhuce_anchor());
|
|
gas_open_box.setBounds(x,y,120, h);
|
|
gas_port_jl.setBounds(x+140,y,70, h);
|
gas_port_jf.setBounds(x+210,y,60, h);
|
|
gas_hz_jl.setBounds(x+290,y,120, h);
|
gas_hz_jf.setBounds(x+410,y,60, 25);
|
|
jc_zhuce_anchor.setBounds(x+520,y,120, 25);
|
jt_zhuce_anchor.setBounds(x+640,y,60, 25);
|
|
qkdata.setBounds(x+640+120,y,120, 25);
|
|
|
}
|
return mp3;
|
}
|
|
public JTextField getJt_zhuce_anchor() {
|
if(jt_zhuce_anchor==null) {
|
jt_zhuce_anchor=new JTextField();
|
}
|
return jt_zhuce_anchor;
|
}
|
|
public static String getZhuceanchor() {
|
return zhuceanchor;
|
}
|
|
public JCheckBoxModel getJc_houtai() {
|
if(jc_houtai==null) {
|
jc_houtai=new JCheckBoxModel("C5. ºǫ́ÏÔʾ", Systems.sys().getHoutai());
|
}
|
return jc_houtai;
|
}
|
|
public JlableModel getJlb_udp_out() {
|
if(jlb_udp_out==null) {
|
jlb_udp_out=new JlableModel("A7. UDP·¢ËͶ˿Ú:");
|
|
}
|
return jlb_udp_out;
|
}
|
|
public JTextField getJt_udp_out() {
|
if(jt_udp_out==null) {
|
jt_udp_out=new JTextField(Systems.sys().getUdp_out());
|
}
|
return jt_udp_out;
|
}
|
|
public JlableModel getJlb_language() {
|
if(jlb_language==null) {
|
jlb_language=new JlableModel("ÓïÑÔÑ¡Ôñ:");
|
}
|
return jlb_language;
|
}
|
|
|
public JComboBoxModel getJcom_lauguage() {
|
if(jcom_lauguage==null) {
|
String[] luaguage= {"ÖÐÎÄ","English"};
|
jcom_lauguage=new JComboBoxModel(luaguage);
|
jcom_lauguage.setSelectedItem(Systems.sys().getLanguage());
|
}
|
return jcom_lauguage;
|
}
|
|
public JCheckBoxModel getJc_weidu() {
|
if(jc_weidu==null) {
|
jc_weidu=new JCheckBoxModel("C3. Èýά¶¨Î»Ä£Ê½", Systems.sys().getWeidu());
|
jc_weidu.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
if(jc_weidu.isSelected()) {
|
Systems.setIssanwei(true);
|
}else {
|
Systems.setIssanwei(false);
|
}
|
}
|
});
|
}
|
return jc_weidu;
|
}
|
|
public JCheckBoxModel getJc_eng_bs() {
|
if(jc_eng_bs==null) {
|
jc_eng_bs=new JCheckBoxModel("C4. ×öBSÒýÇæÄ£Ê½", Systems.sys().getEng_bs());
|
|
}
|
return jc_eng_bs;
|
}
|
|
public JlableModel getJl_map() {
|
if(jl_map==null) {
|
jl_map=new JlableModel("B9. Ê×Ò³µØÍ¼ÉèÖãº");
|
}
|
return jl_map;
|
}
|
|
public JlableModel getJl_baidu() {
|
if(jl_baidu==null) {
|
jl_baidu=new JlableModel("B10. °Ù¶ÈÏÔʾλÖãº");
|
}
|
return jl_baidu;
|
}
|
|
public JTextField getJt_baidu_j() {
|
if(jt_baidu_j==null) {
|
jt_baidu_j=new JTextField(Systems.sys().getBaidu_j());
|
}
|
return jt_baidu_j;
|
}
|
|
public JTextField getJt_baidu_w() {
|
if(jt_baidu_w==null) {
|
jt_baidu_w=new JTextField(Systems.sys().getBaidu_w());
|
}
|
return jt_baidu_w;
|
}
|
|
public JCheckBoxModel getJc_fence_show() {
|
if(jc_fence_show==null) {
|
jc_fence_show=new JCheckBoxModel("ΧÀ¸ÏÔʾ", Systems.sys().getFence_show());
|
}
|
return jc_fence_show;
|
}
|
|
public JCheckBoxModel getJc_gps2000() {
|
if(jc_gps2000==null) {
|
jc_gps2000=new JCheckBoxModel("C8. ¿ªXYתGNSS", Systems.sys().getBaoliu4());
|
jc_gps2000.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
if(jc_gps2000.isSelected()) {
|
Systems.setGps2000(true);
|
}else {
|
Systems.setGps2000(false);
|
}
|
|
}
|
});
|
}
|
return jc_gps2000;
|
}
|
|
|
|
|
public JCheckBoxModel getJc_wuxian() {
|
if(jc_wuxian==null) {
|
jc_wuxian=new JCheckBoxModel("C1. Ãâ²¼Ïß»ùվģʽ", Systems.sys().getBaoliu6());
|
jc_wuxian.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
String baoliu6="0";
|
if(jc_wuxian.isSelected()) {
|
Systems.setWuxian(true);
|
baoliu6="1";
|
}else {
|
Systems.setWuxian(false);
|
}
|
Systems.alert_into_database("baoliu6", baoliu6);
|
}
|
});
|
}
|
return jc_wuxian;
|
}
|
|
|
public JCheckBoxModel getJc_Substation() {
|
if(jc_Substation==null) {
|
jc_Substation=new JCheckBoxModel("C7. ×Ô½¨²î·Ö»ùÕ¾", Systems.sys().getBaoliu9());
|
jc_Substation.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
String baoliu9="0";
|
if(jc_Substation.isSelected()) {
|
Systems.setBiandianzhan(true);
|
baoliu9="1";
|
}else {
|
Systems.setBiandianzhan(false);
|
}
|
Systems.alert_into_database("baoliu9", baoliu9);
|
}
|
});
|
}
|
return jc_Substation;
|
}
|
|
/**ÆäËû²ãÏÔʾÔÚ0²ã*/
|
public JCheckBoxModel getJc_othershow0() {
|
if(jc_othershow0==null) {
|
jc_othershow0=new JCheckBoxModel("C12. ÆäËû²ãÏÔʾÔÚ0²ã", Systems.sys().getBaoliu11());
|
jc_othershow0.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
String baoliu11="0";
|
if(jc_othershow0.isSelected()) {
|
Systems.setShow0ceng(true);
|
baoliu11="1";
|
}else {
|
Systems.setShow0ceng(false);
|
}
|
Systems.alert_into_database("baoliu11", baoliu11);
|
}
|
});
|
}
|
return jc_othershow0;
|
}
|
|
/**¿ªÆôÒýÇæÐÄÌø°ü*/
|
public JCheckBoxModel getJc_enjheart() {
|
if(jc_enjheart==null) {
|
jc_enjheart=new JCheckBoxModel("C6. ¿ªÆôÒýÇæÐÄÌø°ü", Systems.sys().getBaoliu19());
|
jc_enjheart.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
String baoliu19="0";
|
if(jc_enjheart.isSelected()) {
|
Systems.setEngheart(true);
|
baoliu19="1";
|
}else {
|
Systems.setEngheart(false);
|
}
|
Systems.alert_into_database("baoliu19", baoliu19);
|
}
|
});
|
}
|
return jc_enjheart;
|
}
|
|
public JComboBoxModel getJcom_map() {
|
if(jcom_map==null) {
|
jcom_map=new JComboBoxModel(Map_Dell.get_map());
|
jcom_map.setSelectedItem(Systems.sys().getYulan_map());
|
}
|
return jcom_map;
|
}
|
|
public JCheckBoxModel getJc_urt() {
|
if(jc_urt==null) {
|
jc_urt=new JCheckBoxModel("C11. URT×ö»ùվģʽ",Systems.sys().getUrt());
|
jc_urt.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
String urt="0";
|
if(jc_urt.isSelected()) {
|
Systems.setUrtopen(true);
|
urt="1";
|
}else {
|
Systems.setUrtopen(false);
|
}
|
Systems.alert_into_database("urt", urt);
|
}
|
});
|
}
|
return jc_urt;
|
}
|
|
public JlableModel getJlb_baowentou() {
|
if(jlb_baowentou==null) {
|
jlb_baowentou=new JlableModel("B8. CS¶Ë½ÓÊÕ¿ÚÁî:");
|
}
|
return jlb_baowentou;
|
}
|
|
public JTextField getJt_baowentou() {
|
if(jt_baowentou==null) {
|
jt_baowentou=new JTextField(Systems.sys().getBaowentou());
|
}
|
return jt_baowentou;
|
}
|
|
|
|
public JTextField getJt_anchordata() {
|
if(jt_anchordata==null) {
|
jt_anchordata=new JTextField(Systems.sys().getBaoliu1());
|
}
|
return jt_anchordata;
|
}
|
|
public JCheckBoxModel getdiskaoqing() {
|
if(diskaoqing==null) {
|
diskaoqing=new JCheckBoxModel("³ö¿¼ÇÚÇøÏûʧ",Systems.sys().getDiskaoqing());
|
diskaoqing.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent arg0) {
|
String diskaoqing0="0";
|
if(diskaoqing.isSelected()) {
|
Systems.setOffkaoqing(true);
|
diskaoqing0="1";
|
}else{
|
Systems.setOffkaoqing(false);
|
}
|
Systems.alert_into_database("diskaoqing",diskaoqing0);
|
}
|
});
|
}
|
return diskaoqing;
|
}
|
|
|
/**»ùÕ¾ÀëÏßÅжÏʱ¼äÉèÖÃ*/
|
public JTextField getJt_anchoroff() {
|
if(jt_anchoroff==null){
|
jt_anchoroff=new JTextField(Systems.sys().getBaoliu2());
|
}
|
return jt_anchoroff;
|
}
|
|
/**±êÇ©ÀëÏßÅжÏʱ¼äÉèÖÃ*/
|
public JTextField getJt_tagoff() {
|
if(jt_tagoff==null){
|
jt_tagoff=new JTextField(Systems.sys().getBaoliu3());
|
}
|
return jt_tagoff;
|
}
|
|
/**TCPÐÄÌø°üʱ³¤*/
|
public JTextField getJt_tcpheart_time() {
|
if(jt_tcpheart_time==null) {
|
jt_tcpheart_time=new JTextField(Systems.sys().getBaoliu5());
|
}
|
return jt_tcpheart_time;
|
}
|
|
|
public JTextField getJt_urtfloor() {
|
if(jt_urtfloor==null) {
|
jt_urtfloor=new JTextField(Systems.sys().getBaoliu7());
|
}
|
return jt_urtfloor;
|
}
|
|
public JTextField getJt_fencedis() {
|
if(jt_fencedis==null) {
|
jt_fencedis=new JTextField(Systems.sys().getBaoliu10());
|
}
|
return jt_fencedis;
|
}
|
|
/**λÖùýƽ»¬Ê±¼ä0±íʾ²»¹ýÂË*/
|
public JTextField getJt_SmoothPos() {
|
if(jt_SmoothPos==null) {
|
jt_SmoothPos=new JTextField(Systems.sys().getBaoliu12());
|
jt_SmoothPos.addActionListener(new ActionListener() {
|
public void actionPerformed(ActionEvent e) {
|
int tiems=Integer.parseInt(jt_SmoothPos.getText());
|
Systems.setWeizhipinghua(tiems);
|
|
}
|
});
|
}
|
return jt_SmoothPos;
|
}
|
public void setJt_tcpheart_time(JTextField jt_tcpheart_time) {
|
this.jt_tcpheart_time = jt_tcpheart_time;
|
}
|
|
public JTextField getJt_tzijiesuan() {
|
if(jt_tzijiesuan==null) {
|
jt_tzijiesuan=new JTextField(Systems.sys().getZijiesuan());
|
}
|
return jt_tzijiesuan;
|
}
|
|
public void setJt_tzijiesuan(JTextField jt_tzijiesuan) {
|
this.jt_tzijiesuan = jt_tzijiesuan;
|
}
|
|
public JTextField getJt_fengmingtime() {
|
if(jt_fengmingtime==null) {
|
jt_fengmingtime=new JTextField(Systems.sys().getBaoliu21());
|
}
|
return jt_fengmingtime;
|
}
|
|
public JTextField getJt_zhuanfajg() {
|
if(jt_zhuanfajg==null) {
|
jt_zhuanfajg=new JTextField(Systems.sys().getBaoliu22());
|
jt_zhuanfajg.setToolTipText("ʵʱλÖÃת·¢µÄʱ¼ä¼ä¸ôµ¥Î»Ãë");
|
}
|
return jt_zhuanfajg;
|
}
|
|
public JCheckBoxModel getJc_anchorshengji() {
|
if(jc_anchorshengji==null) {
|
jc_anchorshengji=new JCheckBoxModel("»ùÕ¾Éý¼¶Ä£Ê½",Systems.sys().getBaoliu23());
|
jc_anchorshengji.setToolTipText("¹´Ñ¡±íʾ¿ªÆô¸Ã¹¦ÄÜ£¬²»¹´Ñ¡±íʾ¹Ø±Õ¸Ã¹¦ÄÜ");
|
}
|
return jc_anchorshengji;
|
}
|
|
public JCheckBoxModel getJc_zidongshijianpian() {
|
if(jc_zidongshijianpian==null) {
|
String baoliu24=Systems.sys().getBaoliu24();
|
if(baoliu24==null) {
|
baoliu24="0";
|
}
|
jc_zidongshijianpian=new JCheckBoxModel("C13.×Ô¶¯Ê±¼äƬģʽ",baoliu24);
|
jc_zidongshijianpian.setToolTipText("¹´Ñ¡±íʾ¿ªÆô¸Ã¹¦ÄÜ£¬²»¹´Ñ¡±íʾ¹Ø±Õ¸Ã¹¦ÄÜ");
|
}
|
return jc_zidongshijianpian;
|
}
|
|
//Çå¿ÕÊý¾Ý
|
class posswordDialog extends JDialog implements WindowListener {
|
|
|
private static final long serialVersionUID = 1L;
|
JlableModel password=new JlableModel("ÊäÈëÃÜÂë:");
|
JTextField jfpassword=null;//
|
JButtonModel sure=null;
|
JButtonModel exit=null;
|
JPanel mb=null;//ÉêÃ÷Ò»¸öÃæ°å
|
int num=0;
|
/**
|
* »ñÈ¡¶Ô»°¿ò·½·¨
|
*/
|
public posswordDialog(String title) {
|
super();
|
this.setAlwaysOnTop(true);//×ÜÊÇÖö¥
|
this.setTitle(title);
|
Toolkit toolkit = getToolkit();// »ñµÃ´°Ì幤¾ß°ü
|
Dimension screenSize = toolkit.getScreenSize();// »ñÈ¡ÆÁÄ»´óС
|
int width = (int) (screenSize.width * 0.5);// ¼ÆËã´°Ìåпí¶È
|
int height = (int) (screenSize.height * 0.5);// ¼ÆËã´°Ìåпí¶È
|
int w = 300;
|
int h = 160;
|
int x0 = width - w / 2;//´°Ìåx0×ø±ê
|
int y0 = height - h / 2;//´°Ìåy0×ø±ê
|
Container rq = getContentPane();
|
rq.add(getMb());
|
this.setBounds(x0, y0, w, h);
|
this.addWindowListener((WindowListener) this);
|
this.setVisible(true);
|
}
|
|
/**»ñÈ¡Ãæ°å*/
|
public JPanel getMb() {
|
if(mb==null) {
|
mb = new JPanel();
|
mb.setLayout(null);
|
mb.setBackground(Color.white);
|
mb.add(password);
|
mb.add(getJfpassword());
|
mb.add(getSure());
|
mb.add(getExit());
|
password.setBounds(30,10,70,30);
|
getJfpassword().setBounds(120,10,110,30);
|
getSure().setBounds(50,55,70,30);
|
getExit().setBounds(140,55,70,30);
|
}
|
return mb;
|
}
|
|
|
|
|
public JTextField getJfpassword(){
|
if (jfpassword==null){
|
jfpassword=new JTextField();
|
}
|
return jfpassword;
|
}
|
|
public JButtonModel getSure(){
|
if (sure==null){
|
sure=new JButtonModel("È·¶¨");
|
sure.addActionListener(e -> {
|
if (num==0){
|
ShowMessage.zidingyi_24("Çå¿ÕÊý¾Ý»á½«Êý¾Ý¿âÖÐËùÓÐÊý¾Ýɾ³ý,ÄúÈ·¶¨Çå¿ÕÂð?");
|
}
|
if (jfpassword.getText().equals("hxzk2015")&&num>0){
|
List<String> list=new ArrayList<>();
|
list.add("truncate table tb_achor");
|
list.add("truncate table tb_achor_bc");
|
list.add("truncate table tb_achor1");
|
list.add("truncate table tb_adress_and_port");
|
list.add("truncate table tb_anchor_history_record");
|
list.add("truncate table tb_anchor_nearby");
|
list.add("truncate table tb_baowen");
|
list.add("truncate table tb_bsbaowen");
|
list.add("truncate table tb_buju");
|
list.add("truncate table tb_caozuo");
|
list.add("truncate table tb_cojilu");
|
list.add("truncate table tb_collector");
|
list.add("truncate table tb_department");
|
list.add("truncate table tb_display");
|
list.add("truncate table tb_fence");
|
list.add("truncate table tb_fence_inout");
|
list.add("truncate table tb_forward_data");
|
list.add("truncate table tb_gas");
|
list.add("truncate table tb_gas_history");
|
list.add("truncate table tb_gongzhong");
|
list.add("truncate table tb_gps");
|
list.add("truncate table tb_gps_track");
|
list.add("truncate table tb_heart_record");
|
list.add("truncate table tb_history_power");
|
list.add("truncate table tb_historyinwarning");
|
list.add("truncate table tb_icon");
|
list.add("truncate table tb_jingwei");
|
list.add("truncate table tb_jobhistory");
|
list.add("truncate table tb_kaoqing");
|
list.add("truncate table tb_led");
|
list.add("truncate table tb_line");
|
list.add("truncate table tb_linshi_fence_22414");
|
list.add("truncate table tb_lixianrecord_0829");
|
list.add("truncate table tb_login");
|
list.add("truncate table tb_low_gps");
|
list.add("truncate table tb_map");
|
list.add("truncate table tb_message");
|
list.add("truncate table tb_message_history");
|
list.add("truncate table tb_modbus");
|
list.add("truncate table tb_namelist");
|
list.add("truncate table tb_offanch");
|
list.add("truncate table tb_offtag");
|
list.add("truncate table tb_password");
|
list.add("truncate table tb_permission");
|
list.add("truncate table tb_person");
|
list.add("truncate table tb_personnel");
|
list.add("truncate table tb_qihou");
|
list.add("truncate table tb_realinwarning");
|
list.add("truncate table tb_realkaoqing");
|
list.add("truncate table tb_realocation");
|
list.add("truncate table tb_realpositoin");
|
list.add("truncate table tb_rtkanchor");
|
list.add("truncate table tb_shipin");
|
list.add("truncate table tb_shishi");
|
list.add("truncate table tb_statusanchor");
|
list.add("truncate table tb_statustag");
|
list.add("truncate table tb_summarytag");
|
list.add("truncate table tb_tag");
|
list.add("truncate table tb_tagpower");
|
list.add("truncate table tb_task");
|
list.add("truncate table tb_tongbuanchor");
|
list.add("truncate table tb_track");
|
list.add("truncate table tb_warning");
|
list.add("truncate table tb_xunjianbaobiao");
|
list.add("truncate table tb_xunjianset");
|
list.add("truncate table tb_yuan_shi_bao_wen");
|
for (int i = 0; i < list.size(); i++) {
|
DatabaseManagement.update(list.get(i));
|
}
|
System.exit(-1);
|
}else {
|
getExit();
|
ShowMessage.zidingyi("Çå¿ÕÊý¾ÝµÄÃÜÂëÓÐÎó,ÇëÏÈ»ñÈ¡ÕýÈ·ÃÜÂë");
|
}
|
num++;
|
});
|
}
|
return sure;
|
}
|
|
public JButtonModel getExit(){
|
if (exit==null){
|
exit=new JButtonModel("È¡Ïû");
|
exit.addActionListener(e -> {
|
this.dispose();
|
});
|
}
|
return exit;
|
}
|
|
|
@Override
|
public void windowOpened(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowClosing(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowClosed(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowIconified(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowDeiconified(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowActivated(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowDeactivated(WindowEvent e) {
|
|
}
|
}
|
|
//²ÎÊýÖØÖÃ
|
class posswordDialog1 extends JDialog implements WindowListener {
|
|
|
private static final long serialVersionUID = 1L;
|
JlableModel password=new JlableModel("ÊäÈëÃÜÂë:");
|
JTextField jfpassword=null;//
|
JButtonModel sure=null;
|
JButtonModel exit=null;
|
JPanel mb=null;//ÉêÃ÷Ò»¸öÃæ°å
|
int num=0;
|
/**
|
* »ñÈ¡¶Ô»°¿ò·½·¨
|
*/
|
public posswordDialog1(String title) {
|
super();
|
this.setAlwaysOnTop(true);//×ÜÊÇÖö¥
|
this.setTitle(title);
|
Toolkit toolkit = getToolkit();// »ñµÃ´°Ì幤¾ß°ü
|
Dimension screenSize = toolkit.getScreenSize();// »ñÈ¡ÆÁÄ»´óС
|
int width = (int) (screenSize.width * 0.5);// ¼ÆËã´°Ìåпí¶È
|
int height = (int) (screenSize.height * 0.5);// ¼ÆËã´°Ìåпí¶È
|
int w = 300;
|
int h = 160;
|
int x0 = width - w / 2;//´°Ìåx0×ø±ê
|
int y0 = height - h / 2;//´°Ìåy0×ø±ê
|
Container rq = getContentPane();
|
rq.add(getMb());
|
this.setBounds(x0, y0, w, h);
|
this.addWindowListener((WindowListener) this);
|
this.setVisible(true);
|
}
|
|
/**»ñÈ¡Ãæ°å*/
|
public JPanel getMb() {
|
if(mb==null) {
|
mb = new JPanel();
|
mb.setLayout(null);
|
mb.setBackground(Color.white);
|
mb.add(password);
|
mb.add(getJfpassword());
|
mb.add(getSure());
|
mb.add(getExit());
|
password.setBounds(30,10,70,30);
|
getJfpassword().setBounds(120,10,110,30);
|
getSure().setBounds(50,55,70,30);
|
getExit().setBounds(140,55,70,30);
|
}
|
return mb;
|
}
|
|
|
|
|
public JTextField getJfpassword(){
|
if (jfpassword==null){
|
jfpassword=new JTextField();
|
}
|
return jfpassword;
|
}
|
|
public JButtonModel getSure(){
|
if (sure==null){
|
sure=new JButtonModel("È·¶¨");
|
sure.addActionListener(e -> {
|
if(num==0) {
|
ShowMessage.zidingyi_24("²ÎÊýÖØÖý«»á°ÑËùÓÐϵͳÉèÖòÎÊýÐ޸ģ¬ÄúÈ·¶¨ÐèÒªÐÞ¸ÄÂð?");
|
num++;
|
}
|
String text = jfpassword.getText();
|
if ("hxzk2015".equals(text)&&num>0){
|
dbName.setText("root");
|
dbPass.setText("hxzk20151102");
|
gui_ji.setText("7");
|
data_time.setText("1");
|
bei_fen_di_zhi.setText("8234");
|
title.setText("¶¨Î»¹ÜÀíϵͳ");
|
udpPort.setText("8234");
|
udpAdress.setText("127.0.0.1");
|
viewPower.setSelected(false);
|
diskaoqing.setSelected(false);
|
viewTagid.setSelected(false);
|
viewAnckid.setSelected(false);
|
viewAnckzb.setSelected(false);
|
viewName.setSelected(true);
|
tagZb.setSelected(true);
|
offView.setSelected(true);
|
tunlDw.setSelected(false);
|
anckicon.setSelected(false);
|
guiji_sava.setSelected(false);
|
rssid_file.setText("1");
|
gas_show_box.setSelected(false);
|
gas_open_box.setSelected(false);
|
gas_port_jf.setText("5500");
|
gas_hz_jf.setText("60");
|
jc_wifi_moshi.setSelected(false);
|
real_track_time.setSelectedItem("²»ÏÔʾʵʱ¹ì¼£");
|
real_track_color.setSelectedItem("ºìÉ«");
|
sure.doClick();
|
quite.setSelected(true);
|
Systems.set_system(
|
"root",
|
"hxzk20151102",
|
"7",
|
"1",
|
"savefile",
|
"¶¨Î»¹ÜÀíϵͳ",
|
"7000",
|
"127.0.0.1",
|
"0",
|
"0",
|
"0",
|
"0",
|
"0",
|
"1",
|
"1",
|
"0",
|
"1",
|
"0",
|
"0",
|
"",
|
"1",
|
"0",
|
"5500",
|
"60",
|
"²»ÏÔʾʵʱ¹ì¼£",
|
"ºìÉ«",
|
"1",
|
"0",
|
"0",
|
"0",
|
"0",
|
"8233",
|
"ÖÐÎÄ",
|
"1",
|
"0",
|
"8234",
|
"0",
|
"0",
|
"°Ù¶ÈµØÍ¼",
|
"0",
|
"0",
|
"0",
|
"0",
|
"",
|
"8234",
|
"180",
|
"60",
|
"0",
|
"0",//xyGNSSTO84
|
"0",
|
"0",//±£Áô7
|
"1",//±£Áô10
|
"0",//±£Áô10
|
"0",//±£Áô11
|
"0",//±£Áô12
|
"1",//±£Áô19ÊÇ·ñ¿ªÆôÒýÇæÐÄÌø
|
"10",//·äÃùʱ¼ä³¤¶È
|
"0",//λÖÃת·¢Ê±¼ä¼ä¸ô
|
"0",//»ùÕ¾Éý¼¶Ä£Ê½¹Ø±Õ
|
"0"//×Ô¶¯Ê±¼äƬ¹¦ÄܹرÕ
|
);
|
}else {
|
getExit();
|
ShowMessage.zidingyi("²ÎÊýÖØÖõÄÃÜÂëÓÐÎó,ÇëÏÈ»ñÈ¡ÕýÈ·ÃÜÂë");
|
}
|
num++;
|
});
|
}
|
return sure;
|
}
|
|
public JButtonModel getExit(){
|
if (exit==null){
|
exit=new JButtonModel("È¡Ïû");
|
exit.addActionListener(e -> {
|
this.dispose();
|
});
|
}
|
return exit;
|
}
|
|
|
@Override
|
public void windowOpened(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowClosing(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowClosed(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowIconified(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowDeiconified(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowActivated(WindowEvent e) {
|
|
}
|
|
@Override
|
public void windowDeactivated(WindowEvent e) {
|
|
}
|
}
|
|
public JPanel getCeneterJpane() {
|
return ceneterJpane;
|
}
|
|
public void setCeneterJpane(JPanel ceneterJpane) {
|
this.ceneterJpane = ceneterJpane;
|
}
|
|
public JPanel getMb2() {
|
return mb2;
|
}
|
|
public void setMb2(JPanel mb2) {
|
this.mb2 = mb2;
|
}
|
|
public JPasswordField getDbName() {
|
return dbName;
|
}
|
|
public void setDbName(JPasswordField dbName) {
|
this.dbName = dbName;
|
}
|
|
public JPasswordField getDbPass() {
|
return dbPass;
|
}
|
|
public void setDbPass(JPasswordField dbPass) {
|
this.dbPass = dbPass;
|
}
|
|
public JlableModel getGas_xiangguan_set() {
|
return gas_xiangguan_set;
|
}
|
|
public void setGas_xiangguan_set(JlableModel gas_xiangguan_set) {
|
this.gas_xiangguan_set = gas_xiangguan_set;
|
}
|
|
public JlableModel getJlb_anchoroff() {
|
return jlb_anchoroff;
|
}
|
|
public void setJlb_anchoroff(JlableModel jlb_anchoroff) {
|
this.jlb_anchoroff = jlb_anchoroff;
|
}
|
|
public JlableModel getJlb_tagoff() {
|
return jlb_tagoff;
|
}
|
|
public void setJlb_tagoff(JlableModel jlb_tagoff) {
|
this.jlb_tagoff = jlb_tagoff;
|
}
|
|
public JlableModel getJlb_fengmingtime() {
|
return jlb_fengmingtime;
|
}
|
|
public void setJlb_fengmingtime(JlableModel jlb_fengmingtime) {
|
this.jlb_fengmingtime = jlb_fengmingtime;
|
}
|
|
public JlableModel getJlb_zhuanfajg() {
|
return jlb_zhuanfajg;
|
}
|
|
public void setJlb_zhuanfajg(JlableModel jlb_zhuanfajg) {
|
this.jlb_zhuanfajg = jlb_zhuanfajg;
|
}
|
|
public JTextField getGui_ji() {
|
return gui_ji;
|
}
|
|
public void setGui_ji(JTextField gui_ji) {
|
this.gui_ji = gui_ji;
|
}
|
|
public JTextField getRssid_file() {
|
return rssid_file;
|
}
|
|
public void setRssid_file(JTextField rssid_file) {
|
this.rssid_file = rssid_file;
|
}
|
|
public JTextField getData_time() {
|
return data_time;
|
}
|
|
public void setData_time(JTextField data_time) {
|
this.data_time = data_time;
|
}
|
|
public JTextField getBei_fen_di_zhi() {
|
return bei_fen_di_zhi;
|
}
|
|
public void setBei_fen_di_zhi(JTextField bei_fen_di_zhi) {
|
this.bei_fen_di_zhi = bei_fen_di_zhi;
|
}
|
|
public JTextField getUdpPort() {
|
return udpPort;
|
}
|
|
public void setUdpPort(JTextField udpPort) {
|
this.udpPort = udpPort;
|
}
|
|
public JTextField getUdpAdress() {
|
return udpAdress;
|
}
|
|
public void setUdpAdress(JTextField udpAdress) {
|
this.udpAdress = udpAdress;
|
}
|
|
|
public void setTitle(JTextField title) {
|
this.title = title;
|
}
|
|
public JCheckBoxModel getViewPower() {
|
return viewPower;
|
}
|
|
public void setViewPower(JCheckBoxModel viewPower) {
|
this.viewPower = viewPower;
|
}
|
|
public JCheckBoxModel getDiskaoqing() {
|
return diskaoqing;
|
}
|
|
public void setDiskaoqing(JCheckBoxModel diskaoqing) {
|
this.diskaoqing = diskaoqing;
|
}
|
|
public JCheckBoxModel getViewTagid() {
|
return viewTagid;
|
}
|
|
public void setViewTagid(JCheckBoxModel viewTagid) {
|
this.viewTagid = viewTagid;
|
}
|
|
public JCheckBoxModel getViewAnckid() {
|
return viewAnckid;
|
}
|
|
public void setViewAnckid(JCheckBoxModel viewAnckid) {
|
this.viewAnckid = viewAnckid;
|
}
|
|
public JCheckBoxModel getViewAnckzb() {
|
return viewAnckzb;
|
}
|
|
public void setViewAnckzb(JCheckBoxModel viewAnckzb) {
|
this.viewAnckzb = viewAnckzb;
|
}
|
|
public JCheckBoxModel getViewName() {
|
return viewName;
|
}
|
|
public void setViewName(JCheckBoxModel viewName) {
|
this.viewName = viewName;
|
}
|
|
public JCheckBoxModel getOffView() {
|
return offView;
|
}
|
|
public void setOffView(JCheckBoxModel offView) {
|
this.offView = offView;
|
}
|
|
public JCheckBoxModel getTunlDw() {
|
return tunlDw;
|
}
|
|
public void setTunlDw(JCheckBoxModel tunlDw) {
|
this.tunlDw = tunlDw;
|
}
|
|
public JCheckBoxModel getTagZb() {
|
return tagZb;
|
}
|
|
public void setTagZb(JCheckBoxModel tagZb) {
|
this.tagZb = tagZb;
|
}
|
|
public JCheckBoxModel getAnckicon() {
|
return anckicon;
|
}
|
|
public void setAnckicon(JCheckBoxModel anckicon) {
|
this.anckicon = anckicon;
|
}
|
|
public JCheckBoxModel getGuiji_sava() {
|
return guiji_sava;
|
}
|
|
public void setGuiji_sava(JCheckBoxModel guiji_sava) {
|
this.guiji_sava = guiji_sava;
|
}
|
|
public int getQiti_y() {
|
return qiti_y;
|
}
|
|
public void setQiti_y(int qiti_y) {
|
this.qiti_y = qiti_y;
|
}
|
|
public int getShitu_y() {
|
return shitu_y;
|
}
|
|
public void setShitu_y(int shitu_y) {
|
this.shitu_y = shitu_y;
|
}
|
|
public int getChongzhi() {
|
return chongzhi;
|
}
|
|
public void setChongzhi(int chongzhi) {
|
this.chongzhi = chongzhi;
|
}
|
|
public static long getSerialversionuid() {
|
return serialVersionUID;
|
}
|
|
public void setMb1(JPanel mb1) {
|
this.mb1 = mb1;
|
}
|
|
public void setGas_port_jl(JlableModel gas_port_jl) {
|
this.gas_port_jl = gas_port_jl;
|
}
|
|
public void setGas_hz_jl(JlableModel gas_hz_jl) {
|
this.gas_hz_jl = gas_hz_jl;
|
}
|
|
public void setJlb_udp_out(JlableModel jlb_udp_out) {
|
this.jlb_udp_out = jlb_udp_out;
|
}
|
|
public void setJlb_language(JlableModel jlb_language) {
|
this.jlb_language = jlb_language;
|
}
|
|
public void setJl_map(JlableModel jl_map) {
|
this.jl_map = jl_map;
|
}
|
|
public void setJl_baidu(JlableModel jl_baidu) {
|
this.jl_baidu = jl_baidu;
|
}
|
|
public void setJlb_baowentou(JlableModel jlb_baowentou) {
|
this.jlb_baowentou = jlb_baowentou;
|
}
|
|
public void setGas_port_jf(JTextField gas_port_jf) {
|
this.gas_port_jf = gas_port_jf;
|
}
|
|
public void setGas_hz_jf(JTextField gas_hz_jf) {
|
this.gas_hz_jf = gas_hz_jf;
|
}
|
|
public void setJt_zhuce_anchor(JTextField jt_zhuce_anchor) {
|
this.jt_zhuce_anchor = jt_zhuce_anchor;
|
}
|
|
public void setJt_udp_out(JTextField jt_udp_out) {
|
this.jt_udp_out = jt_udp_out;
|
}
|
|
public void setJt_baidu_j(JTextField jt_baidu_j) {
|
this.jt_baidu_j = jt_baidu_j;
|
}
|
|
public void setJt_baidu_w(JTextField jt_baidu_w) {
|
this.jt_baidu_w = jt_baidu_w;
|
}
|
|
public void setJt_baowentou(JTextField jt_baowentou) {
|
this.jt_baowentou = jt_baowentou;
|
}
|
|
public void setJt_anchordata(JTextField jt_anchordata) {
|
this.jt_anchordata = jt_anchordata;
|
}
|
|
public void setJt_anchoroff(JTextField jt_anchoroff) {
|
this.jt_anchoroff = jt_anchoroff;
|
}
|
|
public void setJt_tagoff(JTextField jt_tagoff) {
|
this.jt_tagoff = jt_tagoff;
|
}
|
|
public void setJt_urtfloor(JTextField jt_urtfloor) {
|
this.jt_urtfloor = jt_urtfloor;
|
}
|
|
public void setJt_fencedis(JTextField jt_fencedis) {
|
this.jt_fencedis = jt_fencedis;
|
}
|
|
public void setJt_SmoothPos(JTextField jt_SmoothPos) {
|
this.jt_SmoothPos = jt_SmoothPos;
|
}
|
|
public void setJt_fengmingtime(JTextField jt_fengmingtime) {
|
this.jt_fengmingtime = jt_fengmingtime;
|
}
|
|
public void setJt_zhuanfajg(JTextField jt_zhuanfajg) {
|
this.jt_zhuanfajg = jt_zhuanfajg;
|
}
|
|
public void setGas_show_box(JCheckBoxModel gas_show_box) {
|
this.gas_show_box = gas_show_box;
|
}
|
|
public void setGas_open_box(JCheckBoxModel gas_open_box) {
|
this.gas_open_box = gas_open_box;
|
}
|
|
public void setQuite(JCheckBoxModel quite) {
|
this.quite = quite;
|
}
|
|
public void setJc_openudp(JCheckBoxModel jc_openudp) {
|
this.jc_openudp = jc_openudp;
|
}
|
|
public void setJc_know_tag_zu(JCheckBoxModel jc_know_tag_zu) {
|
this.jc_know_tag_zu = jc_know_tag_zu;
|
}
|
|
public void setJc_wifi_moshi(JCheckBoxModel jc_wifi_moshi) {
|
this.jc_wifi_moshi = jc_wifi_moshi;
|
}
|
|
public void setJc_zhuce_anchor(JCheckBoxModel jc_zhuce_anchor) {
|
this.jc_zhuce_anchor = jc_zhuce_anchor;
|
}
|
|
public void setJc_houtai(JCheckBoxModel jc_houtai) {
|
this.jc_houtai = jc_houtai;
|
}
|
|
public void setJc_weidu(JCheckBoxModel jc_weidu) {
|
this.jc_weidu = jc_weidu;
|
}
|
|
public void setJc_eng_bs(JCheckBoxModel jc_eng_bs) {
|
this.jc_eng_bs = jc_eng_bs;
|
}
|
|
public void setJc_fence_show(JCheckBoxModel jc_fence_show) {
|
this.jc_fence_show = jc_fence_show;
|
}
|
|
public void setJc_urt(JCheckBoxModel jc_urt) {
|
this.jc_urt = jc_urt;
|
}
|
|
public void setJc_gps2000(JCheckBoxModel jc_gps2000) {
|
this.jc_gps2000 = jc_gps2000;
|
}
|
|
public void setJc_wuxian(JCheckBoxModel jc_wuxian) {
|
this.jc_wuxian = jc_wuxian;
|
}
|
|
public void setJc_Substation(JCheckBoxModel jc_Substation) {
|
this.jc_Substation = jc_Substation;
|
}
|
|
public void setJc_othershow0(JCheckBoxModel jc_othershow0) {
|
this.jc_othershow0 = jc_othershow0;
|
}
|
|
public void setJc_enjheart(JCheckBoxModel jc_enjheart) {
|
this.jc_enjheart = jc_enjheart;
|
}
|
|
public void setJc_anchorshengji(JCheckBoxModel jc_anchorshengji) {
|
this.jc_anchorshengji = jc_anchorshengji;
|
}
|
|
public void setJc_zidongshijianpian(JCheckBoxModel jc_zidongshijianpian) {
|
this.jc_zidongshijianpian = jc_zidongshijianpian;
|
}
|
|
public void setSure(JButtonModel sure) {
|
this.sure = sure;
|
}
|
|
public void setQkdata(JButtonModel qkdata) {
|
this.qkdata = qkdata;
|
}
|
|
public void setRestore(JButtonModel restore) {
|
this.restore = restore;
|
}
|
|
public void setReal_track_time(JComboBoxModel real_track_time) {
|
this.real_track_time = real_track_time;
|
}
|
|
public void setReal_track_color(JComboBoxModel real_track_color) {
|
this.real_track_color = real_track_color;
|
}
|
|
public void setJcom_lauguage(JComboBoxModel jcom_lauguage) {
|
this.jcom_lauguage = jcom_lauguage;
|
}
|
|
public void setJcom_map(JComboBoxModel jcom_map) {
|
this.jcom_map = jcom_map;
|
}
|
|
public void setMp1(JPanelModel1 mp1) {
|
this.mp1 = mp1;
|
}
|
|
public void setMp2(JPanelModel1 mp2) {
|
this.mp2 = mp2;
|
}
|
|
public void setMp3(JPanelModel1 mp3) {
|
this.mp3 = mp3;
|
}
|
|
public void setJsp(JScrollPane jsp) {
|
this.jsp = jsp;
|
}
|
|
public static void setZhuceanchor(String zhuceanchor) {
|
SystemSet.zhuceanchor = zhuceanchor;
|
}
|
|
|
|
}
|