资源描述:
《喷气织机监控系统源代码_全部》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、喷气织机监控系统V1.060喷气织机监控系统源代码1.org.genius.controlsystem1.1Main.javapackageorg.genius.controlsystem;importjavax.swing.UIManager;importorg.genius.controlsystem.ui.MainFrame;publicclassMain{/***程序入口类**@paramargs*@throwsException*/publicstaticvoidmain(String[]args)throwsException{//TODOA
2、uto-generatedmethodstubtry{UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}catch(Exceptione){}MainFramef=MainFrame.getInstance();f.initmainframe();f.setVisible(true);}}2.org.genius.controlsystem.Action2.1Action.javapackageorg.genius.controlsystem.Action;impor
3、tjava.io.File;importjava.io.FileInputStream;importjava.sql.ResultSet;importjava.text.SimpleDateFormat;importjava.util.Date;importjava.util.Properties;importjavax.swing.JTree;importjavax.swing.tree.DefaultMutableTreeNode;importjavax.swing.tree.DefaultTreeModel;importjavax.swing.tr
4、ee.TreePath;importorg.genius.controlsystem.dao.impl.TestDaoimpl;importorg.genius.controlsystem.jdbc.JDBCExecutor;importorg.genius.controlsystem.ui.MainFrame;importorg.genius.controlsystem.vo.Test;importorg.genuis.controlsystem.datatransport.ComDataTransport;importorg.genuis.contr
5、olsystem.datatransport.DataTransport;喷气织机监控系统V1.060importorg.genuis.controlsystem.datatransport.NetDataTransport;/***按钮事件实现类****/publicclassAction{privateMainFramemainFrame;privateDataTransportcomDataTransfer;privateNetDataTransportnetDataTransfer;privateTesttest;privatebytestopr
6、un[]=newbyte[]{0x10,0x01,0x00,0x07,(byte)0x80,0x20,(byte)0x81,0x00,0x00,0x01,(byte)0xFF,0x10,0x02};privatebyterun[]=newbyte[]{0x10,0x01,0x00,0x07,(byte)0x80,0x20,(byte)0x81,0x00,0x00,0x01,(byte)0xF5,0x10,0x02};privateResultSetrs=null;privateinttestseq;privateinttest_id;privateDat
7、enow;privateStringstarttime;privateStringendtime;privateinttotalround;privateJTreetree=null;privateDefaultMutableTreeNodetestNode;privateDefaultMutableTreeNodedateNode;privateDefaultTreeModeltreeModel=null;privateSimpleDateFormatsdf=newSimpleDateFormat("HH:mm:ss");privateProperti
8、espro;publicAction()throwsException{supe