Java项目:CRM客户关系管理系统(java+Springboot+maven+mysql)
源码获取:博客首页 "资源" 里下载!
Springboot项目CRM客户关系管理系统:
系统实现了CRM客户关系系统的基本功能,主要有看板(当月参与的业务机会、当月转化情况、将要结束的业务机会等)、业务机会(初步接触中、需求分析中、协商方案中、商业谈判中的业务机会)、客户管理、联系人管理、个人日报管理、查看团队日报、主数据管理(组织架构管理)、系统管理(用户管理、角色管理、菜单管理)。
登录控制层:
public class LoginFrm extends javax.swing.JFrame {/*** 皮肤*/static {try {// LookAndFeel lf = new SubstanceAutumnLookAndFeel();// LookAndFeel lf = new SubstanceChallengerDeepLookAndFeel();// LookAndFeel lf = new Plastic3DLookAndFeel();// LookAndFeel lf = new PlasticLookAndFeel();LookAndFeel lf = new PlasticXPLookAndFeel();UIManager.setLookAndFeel(lf);} catch (UnsupportedLookAndFeelException e) {e.printStackTrace();}}/*** 版本序列号*/private static final long serialVersionUID = -2989784724450522952L;// 验证码的String类型private String imageCode;private User user;/** Creates new form LoginFrm */public LoginFrm(User user) {this.user = user;initComponents();this.setLocationRelativeTo(null);fillImageCode();if (user != null) {this.jtf_username.setText(this.user.getusername());this.jpw_password.setText(this.user.getpassword());}}public void setUser(User user) {this.user = user;}/*** 填充验证码图片*/private void fillImageCode() {// this.jl_checkImage.setIcon(new ImageIcon("images/check.jpeg"));// this.repaint();// jl_checkImage.setIcon(new ImageIcon(ImageIO.read(new// File("images/check.jpeg"))));ImageCodeUtil imageCodeUtil = ImageCodeUtil.getImageCodeUtil();jl_checkImage.setIcon(new ImageIcon(imageCodeUtil.getBufferedImage()));imageCode =imageCodeUtil.sRand;}// GEN-BEGIN:initComponents// <editor-fold defaultstate="collapsed" desc="Generated Code">private void initComponents() {jLabel1 = new javax.swing.JLabel();jLabel2 = new javax.swing.JLabel();jLabel3 = new javax.swing.JLabel();jtf_username = new javax.swing.JTextField();jpw_password = new javax.swing.JPasswordField();jLabel4 = new javax.swing.JLabel();jtf_check = new javax.swing.JTextField();jl_checkImage = new javax.swing.JLabel();jb_login = new javax.swing.JButton();jb_cancle = new javax.swing.JButton();setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);setTitle("\u7528\u6237\u767b\u5f55");jLabel1.setFont(new java.awt.Font("宋体", 0, 24));jLabel1.setText("\u5ba2\u6237\u5173\u7cfb\u7ba1\u7406\u7cfb\u7edf");jLabel2.setText("\u7528\u6237\u540d\uff1a");jLabel3.setText("\u5bc6 \u7801\uff1a");jLabel4.setText("\u9a8c\u8bc1\u7801\uff1a");jb_login.setText("\u767b\u5f55");jb_login.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_loginActionPerformed(evt);}});jb_cancle.setText("\u53d6\u6d88");jb_cancle.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_cancleActionPerformed(evt);}});javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());getContentPane().setLayout(layout);layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGap(108,108,108).addComponent(jLabel1)).addGroup(layout.createSequentialGroup().addGap(78, 78,78).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,false).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(jLabel2).addComponent(jLabel3).addComponent(jLabel4)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,false).addGroup(javax.swing.GroupLayout.Alignment.LEADING,layout.createSequentialGroup().addComponent(jtf_check,javax.swing.GroupLayout.PREFERRED_SIZE,71,javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jl_checkImage)).addComponent(jpw_password,javax.swing.GroupLayout.Alignment.LEADING,javax.swing.GroupLayout.DEFAULT_SIZE,157,Short.MAX_VALUE).addComponent(jtf_username,javax.swing.GroupLayout.Alignment.LEADING))).addGroup(layout.createSequentialGroup().addComponent(jb_login).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,javax.swing.GroupLayout.DEFAULT_SIZE,Short.MAX_VALUE).addComponent(jb_cancle))))).addContainerGap(79, Short.MAX_VALUE)));layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGap(34, 34, 34).addComponent(jLabel1).addGap(53, 53, 53).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel2).addComponent(jtf_username,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(18, 18, 18).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel3).addComponent(jpw_password,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(28, 28, 28).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel4).addComponent(jtf_check,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jl_checkImage)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,38, Short.MAX_VALUE).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jb_login).addComponent(jb_cancle)).addContainerGap()));pack();}// </editor-fold>// GEN-END:initComponentsprivate void jb_cancleActionPerformed(java.awt.event.ActionEvent evt) {int i = JOptionPane.showConfirmDialog(this, "确定退出系统?", "确认信息",JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);if (i == 0) {this.dispose();}}private void jb_loginActionPerformed(java.awt.event.ActionEvent evt) {String userName = this.jtf_username.getText();String password = new String(this.jpw_password.getPassword());String checkCode = this.jtf_check.getText();if (StringUtil.isEmpty(userName)) {JOptionPane.showMessageDialog(this, "用户名不能为空!");return;}if (StringUtil.isEmpty(password)) {JOptionPane.showMessageDialog(this, "密码不能为空");return;}if (!checkCode.equals(imageCode)) {JOptionPane.showMessageDialog(this, "验证码错误");// this.fillImageCode();// this.jl_checkImage.updateUI();// this.pack();return;}User user = new User(userName, password);UserEbi userEbi = UserEbiFactory.getUserEbi();User currentUser = userEbi.login(user);if (currentUser == null) {JOptionPane.showMessageDialog(this, "用户名或密码错误!");return;}// System.out.println("登录成功");this.dispose();new MainFrm(currentUser).setVisible(true);}/*** @param args* the command line arguments*/public static void main(String args[]) {java.awt.EventQueue.invokeLater(new Runnable() {public void run() {new LoginFrm(null).setVisible(true);}});}// GEN-BEGIN:variables// Variables declaration - do not modifyprivate javax.swing.JLabel jLabel1;private javax.swing.JLabel jLabel2;private javax.swing.JLabel jLabel3;private javax.swing.JLabel jLabel4;private javax.swing.JButton jb_cancle;private javax.swing.JButton jb_login;private javax.swing.JLabel jl_checkImage;private javax.swing.JPasswordField jpw_password;private javax.swing.JTextField jtf_check;private javax.swing.JTextField jtf_username;// End of variables declaration//GEN-END:variables}
用户服务类:
public class UserSerInterFrm extends javax.swing.JInternalFrame {/*** */private static final long serialVersionUID = -8462503234613628488L;private PageBean bean = null;/** Creates new form UserSerInterFrm */public UserSerInterFrm() {initComponents();this.setLocation(230, 130);this.fillRole();QueryInfo info = new QueryInfo();info.setPagesize(9);this.fillTable(info);}private void fillRole() {DefaultComboBoxModel dcm = (DefaultComboBoxModel) this.jcb_role.getModel();dcm.removeAllElements();List<Role> list = RoleEbiFactory.getRoleEbo().getRole();for (Role role : list) {dcm.addElement(role);}}/*** This method is called from within the constructor to initialize the form.* WARNING: Do NOT modify this code. The content of this method is always* regenerated by the Form Editor.*///GEN-BEGIN:initComponents// <editor-fold defaultstate="collapsed" desc="Generated Code">private void initComponents() {jScrollPane1 = new javax.swing.JScrollPane();jtb_user = new javax.swing.JTable();jLabel1 = new javax.swing.JLabel();jLabel2 = new javax.swing.JLabel();jLabel3 = new javax.swing.JLabel();jtf_username = new javax.swing.JTextField();jtf_password = new javax.swing.JTextField();jcb_role = new javax.swing.JComboBox();jb_modify = new javax.swing.JButton();jb_del = new javax.swing.JButton();jb_end = new javax.swing.JButton();jb_nextpage = new javax.swing.JButton();jb_previouspage = new javax.swing.JButton();jb_start = new javax.swing.JButton();jb_add = new javax.swing.JButton();jLabel4 = new javax.swing.JLabel();setClosable(true);setIconifiable(true);setTitle("\u7528\u6237\u7ba1\u7406");jtb_user.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] { "编号", "用户名", "角色" }) {boolean[] canEdit = new boolean[] { false, false, false };public boolean isCellEditable(int rowIndex, int columnIndex) {return canEdit[columnIndex];}});jtb_user.addMouseListener(new java.awt.event.MouseAdapter() {public void mouseClicked(java.awt.event.MouseEvent evt) {jtb_userMouseClicked(evt);}});jScrollPane1.setViewportView(jtb_user);jLabel1.setText("\u7528\u6237\u540d\uff1a");jLabel2.setText("\u5bc6 \u7801\uff1a");jLabel3.setText("\u89d2 \u8272\uff1a");jcb_role.setModel(new javax.swing.DefaultComboBoxModel(new String[] {"Item 1", "Item 2", "Item 3", "Item 4" }));jb_modify.setText("\u4fee\u6539");jb_modify.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_modifyActionPerformed(evt);}});jb_del.setText("\u5220\u9664");jb_del.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_delActionPerformed(evt);}});jb_end.setText("\u672b\u9875");jb_end.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_endActionPerformed(evt);}});jb_nextpage.setText("\u4e0b\u4e00\u9875");jb_nextpage.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_nextpageActionPerformed(evt);}});jb_previouspage.setText("\u4e0a\u4e00\u9875");jb_previouspage.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_previouspageActionPerformed(evt);}});jb_start.setText("\u9996\u9875");jb_start.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_startActionPerformed(evt);}});jb_add.setText("\u65b0\u5efa");jb_add.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_addActionPerformed(evt);}});jLabel4.setText("jLabel4");javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());getContentPane().setLayout(layout);layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING,layout.createSequentialGroup().addContainerGap(87,Short.MAX_VALUE).addComponent(jb_start).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jb_previouspage).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jb_nextpage).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jb_end).addGap(39, 39,39)).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jScrollPane1,javax.swing.GroupLayout.PREFERRED_SIZE,359,javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel4,javax.swing.GroupLayout.PREFERRED_SIZE,271,javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(28, 28,28))).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,false).addGroup(layout.createSequentialGroup().addComponent(jLabel1).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jtf_username,javax.swing.GroupLayout.PREFERRED_SIZE,125,javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(layout.createSequentialGroup().addComponent(jLabel2).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jtf_password)).addGroup(layout.createSequentialGroup().addComponent(jLabel3).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jcb_role,javax.swing.GroupLayout.PREFERRED_SIZE,75,javax.swing.GroupLayout.PREFERRED_SIZE))).addGroup(layout.createSequentialGroup().addComponent(jb_add).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jb_modify).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jb_del))).addContainerGap(20, Short.MAX_VALUE)));layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jScrollPane1,javax.swing.GroupLayout.PREFERRED_SIZE,199,javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jLabel4).addGap(4, 4, 4).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jb_end).addComponent(jb_nextpage).addComponent(jb_previouspage).addComponent(jb_start).addComponent(jb_del).addComponent(jb_modify).addComponent(jb_add)).addContainerGap(45, Short.MAX_VALUE)).addGroup(javax.swing.GroupLayout.Alignment.TRAILING,layout.createSequentialGroup().addContainerGap(99, Short.MAX_VALUE).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1).addComponent(jtf_username,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(26, 26, 26).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel2).addComponent(jtf_password,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(26, 26, 26).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel3).addComponent(jcb_role,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(98, 98, 98)));pack();}// </editor-fold>//GEN-END:initComponentsprivate void jtb_userMouseClicked(java.awt.event.MouseEvent evt) {DefaultTableModel tableModel = (DefaultTableModel) jtb_user.getModel();int selectRows = jtb_user.getSelectedRows().length;// 取得用户所选行的行数int selectedRowIndex = jtb_user.getSelectedRow(); // 取得用户所选单行if (selectRows == 1) {String id = tableModel.getValueAt(selectedRowIndex, 0).toString();User user = UserEbiFactory.getUserEbi().search(id);this.jtf_username.setText(user.getusername());this.jtf_password.setText(user.getpassword());// Role[] role = (Role[]) this.jcb_role.getSelectedObjects();// for (Role r: role) {// if (r.getId()==user.getid()) {// this.jcb_role.setSelectedItem(r);// }// }for (int i = 0; i < this.jcb_role.getItemCount(); i++) {Role role = (Role) this.jcb_role.getItemAt(i);if (role.getId() == user.getroleid()) {this.jcb_role.setSelectedIndex(i);}}}}private void jb_endActionPerformed(java.awt.event.ActionEvent evt) {QueryInfo info = new QueryInfo();info.setCurrentpage(bean.getTotalpage());info.setPagesize(9);fillTable(info);}private void jb_nextpageActionPerformed(java.awt.event.ActionEvent evt) {QueryInfo info = new QueryInfo();info.setCurrentpage(bean.getNextpage());info.setPagesize(9);fillTable(info);}private void jb_previouspageActionPerformed(java.awt.event.ActionEvent evt) {QueryInfo info = new QueryInfo();info.setCurrentpage(bean.getPreviouspage());info.setPagesize(9);fillTable(info);}private void jb_startActionPerformed(java.awt.event.ActionEvent evt) {QueryInfo info = new QueryInfo();info.setCurrentpage(1);info.setPagesize(9);fillTable(info);}private void jb_modifyActionPerformed(java.awt.event.ActionEvent evt) {DefaultTableModel tableModel = (DefaultTableModel) jtb_user.getModel();int selectRows = jtb_user.getSelectedRows().length;// 取得用户所选行的行数int selectedRowIndex = jtb_user.getSelectedRow(); // 取得用户所选单行if (selectRows == 1) {BigDecimal userId = (BigDecimal) tableModel.getValueAt(selectedRowIndex, 0);String username = this.jtf_username.getText();String password = this.jtf_password.getText();Role role = (Role) this.jcb_role.getSelectedItem();BigDecimal roleId = role.getId();User user = new User(userId, username, password, roleId);boolean b = UserEbiFactory.getUserEbi().update(user);if (b) {JOptionPane.showMessageDialog(this, "修改成功!");} else {JOptionPane.showMessageDialog(this, "修改失败!");}}}private void jb_addActionPerformed(java.awt.event.ActionEvent evt) {String username = this.jtf_username.getText();String password = this.jtf_password.getText();User user = new User(username, password, new BigDecimal(5));boolean b = UserEbiFactory.getUserEbi().add(user);if (b) {JOptionPane.showMessageDialog(this, "添加成功!");} else {JOptionPane.showMessageDialog(this, "添加失败!");}}private void jb_delActionPerformed(java.awt.event.ActionEvent evt) {int i = JOptionPane.showConfirmDialog(this, "确认删除此条记录?", "确认信息",JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);if (i == 0) {DefaultTableModel tableModel = (DefaultTableModel) jtb_user.getModel();int selectRows = jtb_user.getSelectedRows().length;// 取得用户所选行的行数int selectedRowIndex = jtb_user.getSelectedRow(); // 取得用户所选单行if (selectRows == 1) {String userId = tableModel.getValueAt(selectedRowIndex, 0).toString();boolean b = UserEbiFactory.getUserEbi().del(userId);if (b) {JOptionPane.showMessageDialog(this, "删除成功!");} else {JOptionPane.showMessageDialog(this, "删除失败!");}}}}@SuppressWarnings({ "unchecked", "rawtypes" })private void fillTable(QueryInfo info) {// 获取表格模型DefaultTableModel dtm = (DefaultTableModel) this.jtb_user.getModel();// 清空表格dtm.setRowCount(0);// 获取业务层接口实现类对象UserEbi userEbi = UserEbiFactory.getUserEbi();// 查询数据bean = userEbi.search(info);// 获取封装数据的集合List list = bean.getList();// 遍历集合并向表格填充数据for (Object object : list) {Vector v = new Vector();User user = (User) object;v.add(user.getid());v.add(user.getusername());v.add(user.getRolename());dtm.addRow(v);}this.jLabel4.setText("共" + bean.getTotalrecord() + "条记录-共"+ bean.getTotalpage() + "页-当前第" + bean.getCurrentpage() + "页");}//GEN-BEGIN:variables// Variables declaration - do not modifyprivate javax.swing.JLabel jLabel1;private javax.swing.JLabel jLabel2;private javax.swing.JLabel jLabel3;private javax.swing.JLabel jLabel4;private javax.swing.JScrollPane jScrollPane1;private javax.swing.JButton jb_add;private javax.swing.JButton jb_del;private javax.swing.JButton jb_end;private javax.swing.JButton jb_modify;private javax.swing.JButton jb_nextpage;private javax.swing.JButton jb_previouspage;private javax.swing.JButton jb_start;private javax.swing.JComboBox jcb_role;private javax.swing.JTable jtb_user;private javax.swing.JTextField jtf_password;private javax.swing.JTextField jtf_username;// End of variables declaration//GEN-END:variables}
订单管理服务类:
public class CusOrderInterFrm extends javax.swing.JInternalFrame {private static final long serialVersionUID = 5178086178074169208L;private static final int PAGESIZE = 10;private String id;private String name;private PageBean bean;/** Creates new form CusOrderInterFrm */public CusOrderInterFrm(String id, String name) {this.id = id;this.name = name;initComponents();this.setLocation(330, 80);initData();}private void initData() {this.jtf_cusid.setText(id);this.jtf_cusname.setText(name);QueryInfo info = new QueryInfo();info.setPagesize(PAGESIZE);fillTable(info, id);}@SuppressWarnings({ "unchecked", "rawtypes" })private void fillTable(QueryInfo info, String id) {DefaultTableModel dtm = (DefaultTableModel) this.jtb_order.getModel();dtm.setRowCount(0);bean = CustomerEbiFactory.getCustomerEbi().searchOrder(id, info);List<CusOrder> list = bean.getList();for (CusOrder cusOrder : list) {Vector v = new Vector();v.add(cusOrder.getOrderid());v.add(cusOrder.getOrder_date());v.add(cusOrder.getOrder_address());v.add(cusOrder.getOr_state());dtm.addRow(v);}this.jLabel9.setText("共" + bean.getTotalrecord() + "条记录-共"+ bean.getTotalpage() + "页-当前第" + bean.getCurrentpage() + "页");}//GEN-BEGIN:initComponents// <editor-fold defaultstate="collapsed" desc="Generated Code">private void initComponents() {jLabel1 = new javax.swing.JLabel();jtf_cusid = new javax.swing.JTextField();jLabel2 = new javax.swing.JLabel();jtf_cusname = new javax.swing.JTextField();jScrollPane1 = new javax.swing.JScrollPane();jtb_order = new javax.swing.JTable();jb_start = new javax.swing.JButton();jb_end = new javax.swing.JButton();jb_previouspage = new javax.swing.JButton();jb_nextpage = new javax.swing.JButton();jLabel9 = new javax.swing.JLabel();jb_info = new javax.swing.JButton();setClosable(true);setIconifiable(true);setTitle("\u5386\u53f2\u8ba2\u5355");jLabel1.setText("\u5ba2\u6237\u7f16\u53f7\uff1a");jtf_cusid.setEditable(false);jLabel2.setText("\u5ba2\u6237\u540d\u79f0\uff1a");jtf_cusname.setEditable(false);jtb_order.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] { "订单编号", "日期", "送货地址", "状态" }) {boolean[] canEdit = new boolean[] { false, false, false, false };public boolean isCellEditable(int rowIndex, int columnIndex) {return canEdit[columnIndex];}});jScrollPane1.setViewportView(jtb_order);jb_start.setText("\u9996\u9875");jb_start.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_startActionPerformed(evt);}});jb_end.setText("\u672b\u9875");jb_end.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_endActionPerformed(evt);}});jb_previouspage.setText("\u4e0a\u4e00\u9875");jb_previouspage.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_previouspageActionPerformed(evt);}});jb_nextpage.setText("\u4e0b\u4e00\u9875");jb_nextpage.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_nextpageActionPerformed(evt);}});jLabel9.setText("jLabel9");jb_info.setText("\u660e\u7ec6");jb_info.addActionListener(new java.awt.event.ActionListener() {public void actionPerformed(java.awt.event.ActionEvent evt) {jb_infoActionPerformed(evt);}});javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());getContentPane().setLayout(layout);layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,false).addGroup(javax.swing.GroupLayout.Alignment.TRAILING,layout.createSequentialGroup().addComponent(jLabel9,javax.swing.GroupLayout.PREFERRED_SIZE,162,javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jb_info).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,javax.swing.GroupLayout.DEFAULT_SIZE,Short.MAX_VALUE).addComponent(jb_start).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jb_previouspage).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jb_nextpage).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jb_end)).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(jScrollPane1,javax.swing.GroupLayout.PREFERRED_SIZE,503,javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(javax.swing.GroupLayout.Alignment.LEADING,layout.createSequentialGroup().addComponent(jLabel1).addGap(18,18,18).addComponent(jtf_cusid,javax.swing.GroupLayout.PREFERRED_SIZE,151,javax.swing.GroupLayout.PREFERRED_SIZE).addGap(26,26,26).addComponent(jLabel2).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jtf_cusname,javax.swing.GroupLayout.PREFERRED_SIZE,176,javax.swing.GroupLayout.PREFERRED_SIZE)))).addContainerGap(36, Short.MAX_VALUE)));layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1).addComponent(jtf_cusid,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel2).addComponent(jtf_cusname,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jScrollPane1,javax.swing.GroupLayout.PREFERRED_SIZE,193,javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jb_end).addComponent(jb_nextpage).addComponent(jb_previouspage).addComponent(jb_start).addComponent(jLabel9).addComponent(jb_info)).addGap(24, 24, 24)));pack();}// </editor-fold>//GEN-END:initComponentsprivate void jb_infoActionPerformed(java.awt.event.ActionEvent evt) {JOptionPane.showMessageDialog(this, "暂不提供查看明细\n系统功能开发中");}private void jb_endActionPerformed(java.awt.event.ActionEvent evt) {QueryInfo info = new QueryInfo();info.setCurrentpage(bean.getTotalpage());info.setPagesize(PAGESIZE);fillTable(info, id);}private void jb_nextpageActionPerformed(java.awt.event.ActionEvent evt) {QueryInfo info = new QueryInfo();info.setCurrentpage(bean.getNextpage());info.setPagesize(PAGESIZE);fillTable(info, id);}private void jb_previouspageActionPerformed(java.awt.event.ActionEvent evt) {QueryInfo info = new QueryInfo();info.setCurrentpage(bean.getPreviouspage());info.setPagesize(PAGESIZE);fillTable(info, id);}private void jb_startActionPerformed(java.awt.event.ActionEvent evt) {QueryInfo info = new QueryInfo();info.setCurrentpage(1);info.setPagesize(PAGESIZE);fillTable(info, id);}//GEN-BEGIN:variables// Variables declaration - do not modifyprivate javax.swing.JLabel jLabel1;private javax.swing.JLabel jLabel2;private javax.swing.JLabel jLabel9;private javax.swing.JScrollPane jScrollPane1;private javax.swing.JButton jb_end;private javax.swing.JButton jb_info;private javax.swing.JButton jb_nextpage;private javax.swing.JButton jb_previouspage;private javax.swing.JButton jb_start;private javax.swing.JTable jtb_order;private javax.swing.JTextField jtf_cusid;private javax.swing.JTextField jtf_cusname;// End of variables declaration//GEN-END:variables}
源码获取:博客首页 "资源" 里下载!
相关文章:

linux下occi操作oracle数据库,中文乱码的问题
转载:http://www.linuxidc.com/Linux/2008-02/11238.htm 前几日调通了OCI连接数据库的问题后,用Oracle自带的例子测试了一下,能正常读取数据(都是英文的),就放心了,转去开发别的模块。这几天做数…

tomcat启动时一闪而过的问题
在CMD窗口中输入 cd E:\apache-tomcat-7.0.52\bin 后再输入E:显示进入相应目录E:\apache-tomcat-7.0.52\bin后,再输入startup 后窗口一闪而过,可通过以下步骤进行调试解决:1.检查确认JAVA_HOME配置正确,可以在命令行中输入java显示…

The Long-Term Stability of Ecosystems
The Long-Term Stability of Ecosystems Plant communities assemble themselves flexibly, and their particular structure depends on the specific history of the area. Ecologists use the term “succession”to refer to the changes that happen in plant communities…

big endian little endian
大端(big-endian)和小端(little-endian)<转>2007-12-07 20:36补:x86机是小端(修改分区表时要注意),单片机一般为大端 今天碰一个关于字节顺序的问题,虽然看起来很简单,但一直都没怎么完全明白这个东西,索性就找了下资料,把它弄清楚. 因为现行的…

Java项目:学生考勤管理系统(java+SSM+Poi导出+Easyui+JFreeChart+maven+mysql)
源码获取:博客首页 "资源" 里下载! 这个项目适合SSM框架的初学者(涉及大量增删改查,很适合初学者)以及对Shiro安全框架和Poi技术感兴趣的同学。 项目功能: 用户管理功能(登录、退出登…
【STL源码剖析读书笔记】【第5章】关联式容器之hashtable
1、hashtable在插入、删除、搜寻操作上具有“常数平均时间”的表现,不依赖输入元素的随机性。 2、hashtable通过hashfunction将元素映射到不同的位置,但当不同的元素通过hash function映射到相同的位置时,便产生了“碰撞”问题。解决碰撞问题…

Event自定义事件
//index.html文件<!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><meta http-equiv"X-UA-Compatible"…
byte endian(biglittle endian)
1. 大小端的区别 little endian:把低位字节存放在内存的低位; // big endian: 将低位字节存放在内存的高位; 比如:0x1234,则12 就属于高位字节;34 属于低位字节 假如从地址0x0000 0000开始的一个字节中保存数据0x12345678, 这2中字节序在内存当中存…

鸡啄米vc++2010系列32(标签控件Tab Control 下)
上一节中鸡啄米讲了标签控件知识的上半部分,本节继续讲下半部分。 标签控件的创建 MFC为标签控件的操作提供了CTabCtrl类。 与之前的控件类似,创建标签控件可以在对话框模板中直接拖入Tab Control,也可以使用CTabCtrl类的Create成员函数创建。…

Java项目:网上图书商城系统(java+SSM+Jsp+MySQL+Redis+JWT+Shiro+RabbitMQ+EasyUI)
源码获取:博客首页 "资源" 里下载! 这个项目涉及到Shiro整合JWT、秒杀功能所具备的基本要求(限流、乐观锁、接口隐藏、JMeter高并发测试等等)、消息中间件RabbitMQ的异步邮件通知和死信队列、沙箱支付宝模拟支付等等技术亮点。 项目功能&#…

虚拟机使用镜像文件安装系统
场景说明:指定Linux镜像之后,点击电源开始安装,安装完成之后,卸载ISO,进入BIOS,设置从硬盘启动。vmvare有提供快速安装的方式。当前的安装类似于手动安装,模拟真实的环境操作步骤:1&…

cmd命令简单别木马的蛛丝马迹
一些基本的Windows命令往往可以识别木马的蛛丝马迹,而且在保护网络安全上起到很大的作用。 检测网络连接 如果你怀疑自己的计算机上被别人安装了木马,或者是中了病毒,但是手里没有完善的工具来检测是不是真有这样的事情发生,那可以…

ubuntu常用翻译工具stardict
日常办公应用中,我们经常会碰到一些陌生的外文单词或文章需要翻译,在Windows平台上,可通过很多翻译工具来帮忙解决。当我们转到Ubuntu系统 中办公时,肯定也希望能有一款简单易用、功能强大的翻译工具。 这里给大家推荐Linux平…

Java项目:教务管理系统(java+JSP+Spring+SpringBoot+layui+maven)
源码获取:博客首页 "资源" 里下载! 一、项目简述 功能包括: 三角色教师 管理员,学生教务管理系统,包括院系管理,课题综合管理,信息管理,以及差旅管理,学生选题…

jsp 环境配置记录
1. jdk,下载地址1 环境变量配置: 1)新建 JAVA_HOME 变量 。 变量值填写jdk的安装目录(本人是 C:\Java\jdk1.7.0) 2) 系统变量→寻找 Path 变量→编辑 在变量值最后输入 %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin; (注意原…

一些关于找工作的书籍
技术类 算法导论:不要纠缠太难的部分(红黑树、斐波那契额堆、NP、近似算法); 编程之美:仔细阅读,包括上面的智力题,纸上手写代码; 编程珠玑:建议仔细阅读,尤其…

最快地复制一张表
1.mysqldump方法 一种方法是,使用mysqldump命令将数据导出成一组INSERT语句。你可以使用下面的命令: mysqldump -h$host -P$port -u$user --add-locks --no-create-info --single-transaction --set-gtid-purgedOFF db1 t --where"a>900" …

Linux下C++开发工具介绍
概述 就C++开发工具而言,与Windows下微软(VC, VS2005等)一统天下相比,Linux/Unix下C++开发,可谓五花八门,各式各样。Emacs, vi, eclipse, anj…

Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up:Can you solve it without using extra space? 分析:和Linked List Cycle类似,还是用map。 用时:60ms 1 /**2 * Definition …

Java项目:考试管理系统(java+Springboot+Maven+Jpa+Vue+Mysql)
源码获取:博客首页 "资源" 里下载! 一、项目简述本系统功能包括: 支持单选题、多选题、判断题支持学生(student)、教师(teacher)、管理员(admin)三种角色学生:参加考试和查看我的考试教师:学生的所有权限创建…

[物理学与PDEs]第1章第7节 媒质中的 Maxwell 方程组 7.2 媒质交界面上的条件
通过 Maxwell 方程组的积分形式易在交界面上各量应满足交界面条件: $$\beex \bea \sez{{\bf D}}\cdot{\bf n}\omega_f,&\sex{\omega_f:\ \mbox{交界面上自由电荷密度}};\\ \sez{{\bf B}}\cdot{\bf n}0,&\sex{\ra\mbox{ 磁感应强度法向分量在交界面上连续}};\\ \sez{{\b…

第十二周编程总结
这个作业属于的课程C语言程序设计2这个作业要求在哪里https://edu.cnblogs.com/campus/zswxy/MS/homework/3239我在这个课程的目标是使用编程实现简单的游戏设计这个作业在哪个具体方面帮助我实现目标使用指针解决问题,熟悉指针与函数之间的关系和指针作为函数返回值…

什么是交叉编译
在一种计算机环境中运行的编译程序,能编译出在另外一种环境下运行的代码,我们就称这种编译器支持交叉编译。这个编译过程就叫交叉编译。简单地说,就是在一个平台上生成另一个平台上的可执行代码。这里需要注意的是所谓平台,实际上…

树形结构在关系数据库中的设计
在程序设计中,经常以树形结构表示数据的层次关系,如菜单的结构、商品的分类等。 这样的层次结构在关系数据库中难以直观地表示。常见的一种做法是用一个字段指向上级节点来表示记录的上下级关系。 fidpidfname 1 Food 2 1 Fruit 3 2 Red 4 3…

Java项目:在线课程会员系统(java+Springboot+Maven+JSP+Spring+Mysql+layui)
一、项目简述 功能包括: 用户管理,课程管理,在线视频观看,评论,会员展示,会员充值等等。 二、项目运行 环境配置: Jdk1.8 Tomcat8.5 mysql Eclispe(IntelliJ IDEA,Eclispe,MyEc…

职场观察:高薪需要什么?
标签:职场高薪原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://xjsunjie.blog.51cto.com/999372/1378547新的一年,看到别人跳槽或涨薪,你是否也蠢蠢欲动…

Excel-姓名列中同一个人汇总金额列,得出总金额
8、姓名列中同一个人求和金额列,得出总金额。 方法一: P2处公式SUMPRODUCT(($M$2:$M$20$M2)*($N$2:$N$20)) 解释函数: 引用:https://zhinan.sogou.com/guide/detail/?id1610011625 PS:这个只是单条件求和,…

C语言编译全过程(转贴)
C语言编译全过程 编译的概念:编译程序读取源程序(字符流),对之进行词法和语法的分析,将高级语言指令转换为功能等效的汇编代码,再由汇编程序转换为机器语言,并且按照操作系统对可执行文件…

Java项目:家教管理系统(java+SSM+MyBatis+MySQL+Maven+Jsp)
源码获取:博客首页 "资源" 里下载! 该系统分为前台和后台 前台功能有:登录、注册、查看学员、查看教师、个人中心等。 后台功能有:用户管理、学员管理、教师管理、审核管理、公告管理、新闻管理、简历管理等。前台注册…

ecshop /api/client/api.php、/api/client/includes/lib_api.php SQL Injection Vul
catalog 1. 漏洞描述 2. 漏洞触发条件 3. 漏洞影响范围 4. 漏洞代码分析 5. 防御方法 6. 攻防思考 1. 漏洞描述 ECShop存在一个盲注漏洞,问题存在于/api/client/api.php文件中,提交特制的恶意POST请求可进行SQL注入攻击,可获得敏感信息或操作…