• 大小: 1.17M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-02
  • 语言: 其他
  • 标签: 其他  

资源简介

StuManager.zip

资源截图

代码片段和文件信息

package com.jmy.count;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import javax.swing.*;

import com.jmy_jiemian.DB;
public class Carry extends Jframe implements ActionListener
{

JPanel jp1 = new JPanel();
JPanel jp2 = new JPanel();
JTable jt;
 JLabel jl1 = new JLabel(“输入月份:“);

JButton jb1 = new JButton(“查询“);

JButton jb2 = new JButton(“      返回      “);

JTextField jtf1 = new JTextField(12);
JScrollPane jsp=new JScrollPane();
CarryModel stModel=new CarryModel();

public void create(){


//this.add(jp2 BorderLayout.NORTH);


jp1.add(jl1);
jp1.add(jtf1);
jp1.add(jb1);
jp1.add(jb2);
this.add(jp1 BorderLayout.SOUTH);

stModel.insertDatabase(“select * from carry_info“);
jt=new JTable(stModel);
jsp=new JScrollPane(jt);
this.add(jspBorderLayout.CENTER);


jb1.addActionListener(this);
jb2.addActionListener(this);


this.settitle(“送水统计查询“);// 标题
this.pack();
this.setBounds(200 100 500 400);
this.setLocation(400 100); //设置窗口显示的位置
this.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);// 设置可退出
this.setVisible(true);// 设置可见
}

@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
if (e.getSource() == jb1) {//--------------- 月份查询
String sql = “EXEC carry_water1 ‘“
+ jtf1.getText() + “‘“;
stModel = new CarryModel();  
        stModel.insertDatabase(sql);  
        jt.setModel(stModel);
}
if (e.getSource() == jb2) {// 返回
new DB().create();
this.dispose();
}



}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-08 14:08  StuManager\
     文件         381  2017-12-25 11:14  StuManager\.classpath
     目录           0  2017-12-27 20:03  StuManager\.myeclipse\
     目录           0  2017-12-27 20:03  StuManager\.myeclipse\profiler\
     文件        1336  2017-12-27 20:03  StuManager\.myeclipse\profiler\DB.xml
     文件         386  2017-12-25 11:04  StuManager\.project
     目录           0  2017-12-25 11:04  StuManager\.settings\
     文件         598  2017-12-25 11:04  StuManager\.settings\org.eclipse.jdt.core.prefs
     目录           0  2018-03-06 13:14  StuManager\bin\
     目录           0  2018-03-06 13:14  StuManager\bin\com\
     目录           0  2018-03-07 18:08  StuManager\bin\com\jmy\
     目录           0  2018-03-06 13:14  StuManager\bin\com\jmy\Login\
     文件         692  2018-03-08 15:00  StuManager\bin\com\jmy\Login\Login$1.class
     文件        3772  2018-03-08 15:00  StuManager\bin\com\jmy\Login\Login.class
     目录           0  2018-03-07 18:41  StuManager\bin\com\jmy\count\
     文件        2693  2018-03-08 17:50  StuManager\bin\com\jmy\count\Carry.class
     文件        3411  2018-03-07 20:54  StuManager\bin\com\jmy\count\CarryModel.class
     文件        3393  2018-03-07 20:56  StuManager\bin\com\jmy\count\UseModel.class
     文件        2679  2018-03-07 20:56  StuManager\bin\com\jmy\count\use.class
     目录           0  2018-03-06 13:14  StuManager\bin\com\jmy\customer\
     文件        5664  2018-03-07 16:51  StuManager\bin\com\jmy\customer\Customer.class
     文件        3399  2018-03-06 13:14  StuManager\bin\com\jmy\customer\CustomerModel.class
     文件        4343  2018-03-07 16:34  StuManager\bin\com\jmy\customer\InsertCustomer.class
     文件        4824  2018-03-07 16:50  StuManager\bin\com\jmy\customer\UpdateCustomer.class
     目录           0  2018-03-06 13:14  StuManager\bin\com\jmy\model\
     文件        3480  2018-03-06 13:14  StuManager\bin\com\jmy\model\testview.class
     目录           0  2018-03-06 13:14  StuManager\bin\com\jmy\money\
     文件        5654  2018-03-07 19:13  StuManager\bin\com\jmy\money\Expend.class
     文件        3563  2018-03-07 15:19  StuManager\bin\com\jmy\money\ExpendModel.class
     文件        5648  2018-03-07 19:13  StuManager\bin\com\jmy\money\Income.class
     文件        3560  2018-03-07 15:19  StuManager\bin\com\jmy\money\IncomeModel.class
............此处省略88个文件信息

评论

共有 条评论