web Intelligent Community Management System

Record learning every day, have a good mood every day. * ^ _ ^ *

Learning web-based Intelligent Community management systems when the project for future timely access to records about this platform web-based Intelligent Community Management System development process. In the study, when the selection of the SSM (MYECLIPSE), whether this framework is to learn or use are very convenient, simple and approachable.
Web-based project management system Intelligent Community user roles have included administrators, users, each character contains its own user name and password.

Summary drawn web intelligent community management system project based on all data: administrator (admin), user (yonghu), Management Center (guanlizhongxin), system decomposition (xitongfenjie)

Table-based Intelligent Community Management System administrator of the web

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 management system Intelligent Community of the web

Field Name  | Type  | property  | describe
the above mentioned id  INT ( 11 PRIMARY  KEY  | user the above mentioned id
Xingming  VARCHAR ( 255 | Name
nianling  VARCHAR ( 255 | Age
xingbie  VARCHAR ( 255 | Sex
quanxian  VARCHAR ( 255 | rights
zhuzhi  VARCHAR ( 255| Address
username  VARCHAR ( 255 | account
password  VARCHAR ( 255 | password

Intelligent Community based center management system of web management table

Field Name  | Type  | property  | describe
the above mentioned id  INT ( 11 PRIMARY  KEY  | Management Center the above mentioned id
yonghuguanli  VARCHAR ( 255 | User Management
tingchecxhangguanli  VARCHAR ( 255 | parking management
anfangguanli  VARCHAR ( 255 | security management
wuyeguanli  VARCHAR ( 255 | Property management

Web-based system Intelligent Community management systems breakdown table

Field Name  | Type  | property  | describe
the above mentioned id  INT ( 11 PRIMARY  KEY  | system into the above mentioned id
jiatingzhineng  VARCHAR ( 255 | smart home
xiaoquwangluo  VARCHAR ( 255 | Community Network
tongxunxitong  VARCHAR ( 255 | Communications The system
duijiangxitong  VARCHAR ( 255 | intercom system

 

SET FOREIGN_KEY_CHECKS=0;

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

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

-- Table structure for ggjywebdznxqglxt

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

DROP TABLE IF EXISTS `t_admin`;

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

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='管理员';

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

DROP TABLE IF EXISTS `t_yonghu`;

CREATE TABLE `t_yonghu` (`id` INT(11NOT NULL AUTO_INCREMENT COMMENT '用户id',`xingming` VARCHAR(255DEFAULT NULL COMMENT '姓名',nianling` `  VARCHAR ( 255 the DEFAULT  NULL the COMMENT  'Age' , ` xingbie`  VARCHAR ( 255 the DEFAULT  NULL the COMMENT  'sex' , `quanxian`  VARCHAR ( 255 the DEFAULT  NULL the COMMENT  'rights' , ` zhuzhi`  VARCHAR ( 255 the DEFAULT  the COMMENT NULL  'address' , `username`  VARCHAR ( 255 the DEFAULT  NULL the COMMENT  'account number' , ` password` VARCHAR(255DEFAULT NULL COMMENT '密码',PRIMARY KEY (`id`)

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

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

DROP TABLE IF EXISTS `t_guanlizhongxin`;

CREATE TABLE `t_guanlizhongxin` (`id` INT(11NOT NULL AUTO_INCREMENT COMMENT '管理中心id',`yonghuguanli` VARCHAR(255The DEFAULT  NULL the COMMENT  'User Manager' , `tingchecxhangguanli`  VARCHAR ( 255 the DEFAULT  NULL the COMMENT  'parking management' , ` anfangguanli`  VARCHAR ( 255 the DEFAULT  NULL the COMMENT  'security management' , `wuyeguanli`  VARCHAR ( 255 the DEFAULT  NULL the COMMENT  'Property management' , a PRIMARY  KEY  ( `id` )

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

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

the DROP  TABLE  the IF  EXISTS  `t_xitongfenjie`;

the CREATE  TABLE  ` t_xitongfenjie`  ( `id`  the INT ( . 11 the NOT  NULL  the AUTO_INCREMENT the COMMENT  'decomposition system ID' , `jiatingzhineng`  VARCHAR ( 255 the DEFAULT  NULL the COMMENT  'smart home' , ` xiaoquwangluo`  VARCHAR ( 255 the DEFAULT  NULL the COMMENT  'cell network' , `tongxunxitong`  VARCHAR ( 255 The DEFAULT  NULL the COMMENT  'communication systems' , `duijiangxitong`  VARCHAR ( 255 the DEFAULT  NULL the COMMENT  'intercom systems' , a PRIMARY  KEY  ( ` id` )

) ENGINE = MyISAM  the DEFAULT the CHARSET = UTF8 the COMMENT = 'system decomposition';

 

Add decomposition module system:

Receiving an incoming page defined tianjiaxitongfenjieact decomposition system parameter, as defined in xitongfenjie in xitongfenjieController. Xitongfenjie which contains the field: intelligent family, community networks, communications systems, intercom systems, using tianjiaxitongfenjieact the system into objects stored in the database, insert method defined in xitongfenjieMapper, the matching database insert into xitongfenjie statement to achieve the system is decomposed data stored in the database. The part of the core code is as follows:

The system for transmitting a page insert decomposition method by adding to the database xitongfenjiedao xitongfenjiedao.insert (xitongfenjie);

Add the information system into success, to save the message request, the user is given prompt request.setAttribute in the page ( "message", "Add system decomposition success");

Return decomposition system management interface

return "forward:/tianjiaxitongfenjie.action";

Query system decomposition module:

When the browser into the system query decomposition, now the browser's address bar is xitongfenjieguanli.action, the address will respond xitongfenjieController class xitongfenjieguanli, in the process, get all the information selectByexample system decomposition method, and save the information to the request, make cycle through the pages. The part of the core code is as follows:

Sample Class generating system decomposition, XitongfenjieExample example = new XitongfenjieExample () define the query by example;

Query by selectByExample method xitongfenjiedao decomposition of all system information List xitongfenjieall = xitongfenjiedao.selectByExample (example);

The decomposing system information, stored in the request, on display request.setAttribute ( "xitongfenjieall", xitongfenjieall) foreach method by page;

Return decomposition system management interface

return "forward:/xitongfenjieguanli.action";

Decomposition module to modify the system:

After filling out the page modify information, click the Modify button to submit data to xiugaixitongfenjie, the package is decomposed into a system

, Using a method to modify the system update the division information, synchronize data to the database, to complete the modification operation.

Modify the definition of the success message, the success modifying system decomposition, and stores the request code would read:

The decomposition xitongfenjiedao.updateByPrimaryKeySelective id modified by modifying the system corresponding to the method xitongfenjiedao (xitongfenjie);

Will modify the system into a successful information saved to the message request, the user is given prompt request.setAttribute in the page ( "message", "modify information system decomposition success");

Return decomposition system management interface

return "forward:/xitongfenjieguanli.action";

Delete the system decomposition module:

Implementation of the system into delete function is decomposed by clicking the Delete button system, initiate get request to the server. Id information request includes decomposing system using the accepted int id, and the id of incoming deleteByPrimaryKey method xitongfenjiedao in the xitongfenjieController. The method for the action of the decomposing system according to delete the corresponding id. Finally, delete the information system into a successful return to the page, which is part of the core code is as follows:

Delete by deleting the corresponding method according xitongfenjiedao system id exploded xitongfenjiedao.deleteByPrimaryKey (id);

The deleted information system into success, to save the message request, the user is given prompt request.setAttribute in the page ( "message", "delete system decomposition success");

Return decomposition system management interface

return "forward:/xitongfenjieguanli.action";

address

Guess you like

Origin www.cnblogs.com/yyqsy/p/11694110.html