基于javaweb+springboot的客户关系管理系统CRM

基于javaweb+springboot的客户关系管理系统CRM,第1张

Springboot项目CRM客户关系管理系统:
系统实现了CRM客户关系系统的基本功能,主要有看板(当月参与的业务机会、当月转化情况、将要结束的业务机会等)、业务机会(初步接触中、需求分析中、协商方案中、商业谈判中的业务机会)、客户管理、联系人管理、个人日报管理、查看团队日报、主数据管理(组织架构管理)、系统管理(用户管理、角色管理、菜单管理)。






适用

课程设计,大作业,毕业设计,项目练习,学习演示等

	/**
	 * 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
	// 
	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();
	private void fillImageCode() {
		// this.jl_checkImage.setIcon(new ImageIcon("images/check.png"));
		// this.repaint();
		// jl_checkImage.setIcon(new ImageIcon(ImageIO.read(new
		// File("images/check.png"))));
		ImageCodeUtil imageCodeUtil = ImageCodeUtil.getImageCodeUtil();
		jl_checkImage.setIcon(new ImageIcon(imageCodeUtil.getBufferedImage()));
		imageCode =imageCodeUtil.sRand;
	}
	// GEN-BEGIN:initComponents
	// 
	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();
			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" })
		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(
	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();
																														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)
						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)
										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,
	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
}
登录控制层:
public class LoginFrm extends javax.swing.JFrame {
	/**
	 * 皮肤
	 */
				.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(
	private 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);
								.addContainerGap()));
		pack();
	}// editor-fold>
		// GEN-END:initComponents
	private 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)) {

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/923071.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-16
下一篇 2022-05-16

发表评论

登录后才能评论

评论列表(0条)

保存