javaweb bank account management system

Thinking today, based on a complete javaweb of bank account management system project, which features need to achieve?
The account management is one part of the process of banking processes is very important and necessary, plays an important role in the banking processes them. Now the bank's business more and more, attracting more and more customers, bank account management more important. In this paper, a very popular B / S architecture of current to develop as JAVA technology relying on SSM technical framework, mysql database to establish the system. Bank account management system for the daily management of bank accounts and design, bank account management system requires not only easy to operate and requires simple interface, it also needs to implement account management, user queries and query statistics.
SSM (MYECLIPSE) framework and suitable javaweb bank account management system based on the use of MVC can reduce duplication of effort thinking a great extent. And SSM (MYECLIPSE) framework with the best development tools is MYECLIPSE. MYECLIPSE integrates a large number of plug-ins, you can better use the SSM (MYECLIPSE) for development projects, while making more effective project development.
Through careful analysis of javaweb bank account management system based on the system can be drawn javaweb bank account management system is based on a system of background items.
In such a project, the system login role is essential for each login role is set account and password. To ensure the system can log in normal use. SSM (MYECLIPSE) project included the role of administrator login user.
In the function of the system, the withdrawal is an important table. This table allows the user to associate up. In the withdrawal table username field corresponds to the user and the user's withdrawal, the withdrawal of the user id and user id corresponding to the field
, they have a relationship.

Summary drawn javaweb bank account management system project based on all the data: the administrator (admin), user (yonghu), Teller (cunqukuan)

Table-based administrator account management system of the Bank of javaweb

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | administrator the above mentioned id 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password

 

Table-based user account management system of the Bank of javaweb

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | user the above mentioned id 
mingzi |  VARCHAR ( 255 ) |  | name 
shenfenzhenghao |  VARCHAR ( 255 ) |  | ID number 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  |Password 
nianling |  VARCHAR ( 255 ) |  | Age 
yue |  VARCHAR ( 255 ) |  | Balance

 

Based on the accounts of banks javaweb management systems teller table

Field Name | Type | properties | Description 
ID |  the INT ( . 11 ) |  a PRIMARY  KEY  | teller ID 
yonghu |  VARCHAR ( 255 ) |  | user 
yonghuid |  VARCHAR ( 255 ) |  | user ID 
leixing |  VARCHAR ( 255 ) |  | type 
jine |  VARCHAR ( 255 ) |  | Money

 

 

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------

-- ----------------------------

-- Table structure for ggjyjavawebdyhzmglxt

-- ----------------------------

DROP TABLE IF EXISTS `t_admin`;

CREATE TABLE `t_admin` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '管理员id',`username` VARCHAR(255) DEFAULT NULL COMMENT '账号', `password` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' password ' , a PRIMARY  KEY (` id`) 

) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' Administrators ' ; 

- ----------- ----------------- 

the DROP  TABLE  the IF  EXISTS `t_yonghu`; 

the CREATE  TABLE ` t_yonghu` ( `id` the INT ( . 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' user id' , `Mingzi` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' name ' ,` shenfenzhenghao` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' ID number ' , `username` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' account ' ,` password` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' password ' , `nianling` VARCHAR (255) DEFAULT NULL COMMENT '年龄',`yue` VARCHAR(255) DEFAULT NULL COMMENT '余额',PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户';

-- ----------------------------

DROP TABLE IF EXISTS `t_cunqukuan`;

CREATE TABLE `t_cunqukuan` (`id` INT(. 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' teller ID ' , `yonghu` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' user ' ,` yonghuid` the INT ( . 11 ) the DEFAULT  NULL the COMMENT ' user ID ' , `leixing` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' type ' , `jine` VARCHAR ( 255 ) the DEFAULT  NULLThe COMMENT ' amount ' , a PRIMARY  KEY ( `id`) 

) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' withdrawal ' ;

 

 

Adding deposit and withdrawal module:

Add the presence of withdrawal system function, by clicking the Add teller module to jump to the function, the function module, the teller fill in the corresponding information. Teller contains information of the user, the user id, the type, amount, after filling out all the information, the data submitted by the post method to tianjiacunqukuan.action, the address server responds cunqukuanController tianjiacunqukuanact Method in class. In response to a result, the teller get all the information, a package cunqukuan class, cunqukuandao cunqukuanController using the insert method defined in the class, the data to be inserted withdrawal cunqukuan database table. And gives the user prompts, add teller successful, save the information to the message request, this information will be shown on the page. The part of the core code is as follows:

By adding the teller insert method cunqukuandao page transmitted to the database cunqukuandao.insert (cunqukuan);

Add the successful withdrawal information, save the message request, the user is given the page prompt request.setAttribute ( "message", "added Teller success");

Return Teller Management Interface

return "forward:/tianjiacunqukuan.action";

Queries teller module:

Withdrawal query module implementations to initiate cunqukuanguanli.action request page. By this request, the server response cunqukuanController class cunqukuanguanli, query data by selectByexample operation in the process. After withdrawal of all the information query, the request stored in the cunqukuanall, on display in the page returned cunqukuanguanli.jsp, the portion of the core code is as follows:

Generating sample withdrawal class, query by example defined CunqukuanExample example = new CunqukuanExample ();

All of the query information teller List cunqukuanall = cunqukuandao.selectByExample (example) by the method cunqukuandao of selectByExample;

The deposit and withdrawal information stored in the request, on display request.setAttribute ( "cunqukuanall", cunqukuanall) page by foreach method;

Return Teller Management Interface

return "forward:/cunqukuanguanli.action";

Modify teller module:

Click the Edit button, you can jump to the withdrawal modify the page. Modifying page teller, the teller initializes all the information, and padding information correspond to a corresponding edit field. After withdrawal edit information page by encapsulating the data post method is a teller entity, passed into the cunqukuanController. In xiugaicunqukuan the reception, after reception is completed, the call updateByPrimaryKeySelective method cunqukuanMapper modified. The part of the code as follows:

Modify withdrawal cunqukuandao.updateByPrimaryKeySelective id corresponding to modify the method according to the cunqukuandao (cunqukuan);

The teller changed successfully message, save the message request to give the user prompt request.setAttribute in the page ( "message", "modify withdrawal information successfully");

Return Teller Management Interface

return "forward:/cunqukuanguanli.action";

Delete teller module:

By a label, shanchucunqukuan the page? Id = id will be passed into the background by shanchucunqukuan receiving teller id. Use of deleteByid

Remove the deposit, complete the deletion. Delete the definition of a successful message, delete the successful withdrawal, and saved to the request, the part of the code is as follows:

Delete the corresponding withdrawal cunqukuandao.deleteByPrimaryKey (id) id by removing method according to the cunqukuandao;

The withdrawal successfully deleted information, save it to request the message, the user is given the page prompt request.setAttribute ( "message", "delete teller success");

Return Teller Management Interface

return "forward:/cunqukuanguanli.action";

 

Source download

Guess you like

Origin www.cnblogs.com/ygzswdy/p/11687158.html