¼ÒÕþ·þÎñ¹«Ë¾ÃÅ»§ÍøÕ¾µÄÉè¼ÆÓëʵÏÖ±ÏÒµÂÛÎÄ

µÚ4Õ ϵͳÉè¼Æ

4.1 ϵͳ¼Ü¹¹Éè¼Æ

±¾ÏµÍ³¼Ü¹¹Éè¼Æ²ÉÓÃÈý²ãÌåÏֽṹ¡£½«ÏµÍ³µÄÕû¸öÒµÎñÓ¦Óû®·ÖΪ±íʾ²ã¡¢ÒµÎñÂß¼­²ã¡¢Êý¾Ý·ÃÎʲ㣬ÕâÑùÓÐÀûÓÚϵͳµÄ¿ª·¢¡¢Î¬»¤¡¢²¿ÊðºÍÀ©Õ¹£¬ÊµÏÖÁË¡°¸ßÄÚ¾Û¡¢µÍñîºÏ¡±¡£Í¼4.1ΪÈý²ãÌåϵ½á¹¹Ê¾Òâͼ¡£

ͼ4.1 Èý²ãÌåϵ½á¹¹Í¼

Fig. 4.1 Structure diagram of 3-tier application

ͨ¹ý¶ÔÐèÇó½øÐзÖÎö¡¢×éºÏ£¬½«ÏµÍ³Éè¼ÆΪÁù´óÖ÷Ҫģ¿é£¬·Ö±ðÊÇ£ºµÇ¼ע²áÄ£¿é¡¢×ÊѶ¹ÜÀíÄ£¿é¡¢Ê¾·¶»§É걨ģ¿é¡¢Ê¾·¶»§ÆÀÉóÄ£¿é¡¢¼¼ÊõÍƹãÄ£¿é¡¢ÏµÍ³¹ÜÀíÄ£¿é¡£Èçͼ4.2Ëùʾ¡£

ͼ4.2 ¹¦ÄÜÄ£¿é²ã´Î½á¹¹Í¼

Fig.4.2 System function structure diagram of layer

¡ª 32 ¡ª

4.2 Ä£¿éÉè¼Æ

±¾ÏµÍ³µÄ¹¦ÄÜ°üÀ¨µÇ¼ע²á¡¢»ñÈ¡×ÊѶ¡¢Ê¾·¶»§É걨¡¢Ê¾·¶»§ÆÀÉó¡¢¼¼ÊõÍƹ㡢ϵͳ¹ÜÀíµÈ¡£ÒÔ϶Ը÷¸öÄ£¿é½øÐÐϸ»¯µÄÉè¼Æ¡£

4.2.1µÇ¼ע²á

£¨1£©µÇ¼

±¾ÏµÍ³·ÃÎÊÐèÒªµÇ¼µÄÓû§°üÀ¨Å©»§¡¢Ê¾·¶»§¡¢Å©¼¼Ö¸µ¼Ô±¡¢ÆÀÉóר¼Ò¡¢ÐÐÕþ¹ÜÀíÈËÔ±¡¢ÏµÍ³¹ÜÀíÔ±¡£µÇ¼ģ¿é˳ÐòͼÈçͼ4.3Ëùʾ¡£

ͼ4.3 µÇ¼ģ¿é˳Ðòͼ Fig.4.3 Sequence diagram of login

3 : checkUser()2 : login() : Å©»§1 : submit()loginUI : RegLoginCtrl : RegLoginBL : ATDHRS_DAL4 : execute()

¡ª 33 ¡ª

£¨2£©×¢²á

±¾ÏµÍ³ÖУ¬Å©»§½ÇÉ«µÄÓû§Ðè×¢²á£¬²¢¾­ÏµÍ³¹ÜÀíÔ±½øÐÐ×ÊÁÏÈ·ÈÏÉóºËºóÉúЧ¡£Ê¾·¶»§¡¢Å©¼¼Ö¸µ¼Ô±¡¢ÆÀÉóר¼Ò¡¢ÐÐÕþ¹ÜÀíÈËÔ±µÈ½ÇÉ«ÓÉϵͳ¹ÜÀíÔ±ºǫ́Ìí¼Ó²¢Î¬»¤¡£×¢²áÄ£¿é˳ÐòͼÈçͼ4.4Ëùʾ¡£

ͼ4.4 ×¢²áÄ£¿é˳Ðòͼ Fig.4.4 Sequence diagram of register

5 : execute()4 : addUser() : ÆÕͨÓû§1 : submit()2 : registerUser()3 : registerUser()registerUI : RegLoginCtrl : RegLoginBL : User : ATDHRS_DAL4.2.2»ñÈ¡×ÊѶ

ÆÕͨÓû§¿ÉÒÔ·ÃÎʱ¾ÏµÍ³ä¯ÀÀ×ÊѶ¡¢¼ìË÷×ÊѶ¡£×ÊѶ·¶Î§°üÀ¨ÏµÍ³¹ÜÀíÔ±·¢²¼µÄÐÂÎÅÀà×ÊѶºÍʾ·¶»§·¢²¼µÄ¼¼ÊõÓ¦ÓõäÐͳɹ¦°¸Àý¡£»ñÈ¡×ÊѶģ¿é˳ÐòͼÈçͼ4.5Ëùʾ¡£

¡ª 34 ¡ª

ͼ4.5 »ñÈ¡×ÊѶģ¿é˳Ðòͼ Fig.4.5 Sequence diagram of news

7 : submit()68 : getNews()9 : getNews()10 : getNewsByID()11 : execute() : ÆÕͨÓû§1 : submit()2 : queryNews()3 : queryNews()4 : queryByKeywords()5 : execute()newsUI : NewsCtrl : NewsBL : News : ATDHRS_DAL4.2.3¼¼ÊõÍƹã

¼¼ÊõÍƹãÄ£¿é°üÀ¨Å©Òµ¿Æ¼¼Ó¦Ó÷½ÃæµÄÎÊÌâ·¢²¼¡¢ÎÊÌâ½â´ðºÍÅ©¼¼Íƹ㹤×÷µÄ¼Ç¼¡£

£¨1£©Å©¼¼ÎÊÌâ·¢²¼ÓëÎÊÌâ½â´ð

Å©»§¿ÉÒÔͨ¹ýϵͳ·¢²¼Å©¼¼ÎÊÌ⣬¼¼ÊõÖ¸µ¼Ô±¿ÉÒÔ¶ÔÎÊÌâ½øÐнâ´ð¡£±¾Ä£¿é˳ÐòͼÈçͼ4.6Ëùʾ¡£

¡ª 35 ¡ª

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@)