├── WebRoot ├── excel │ └── test ├── word │ └── test ├── META-INF │ └── MANIFEST.MF ├── images │ ├── cz.gif │ ├── dl.gif │ ├── no.png │ ├── ok.png │ ├── sj.gif │ ├── tb.gif │ ├── add.gif │ ├── del.gif │ ├── edit.gif │ ├── ico.png │ ├── pass.gif │ ├── quit.gif │ ├── user.gif │ ├── main_01.gif │ ├── main_03.gif │ ├── main_05.gif │ ├── main_06.gif │ ├── main_07.gif │ ├── main_10.gif │ ├── main_11.gif │ ├── main_13.gif │ ├── main_15.gif │ ├── main_17.gif │ ├── main_19.gif │ ├── main_21.gif │ ├── main_28.gif │ ├── main_29.gif │ ├── main_30.gif │ ├── main_31.gif │ ├── main_32.gif │ ├── main_34.gif │ ├── main_35.gif │ ├── main_43.gif │ ├── main_69.gif │ ├── main_71.gif │ ├── main_72.gif │ ├── main_74.gif │ ├── tab_bg.gif │ ├── checkcode.png │ ├── login_03.gif │ ├── login_04.gif │ ├── login_06.gif │ ├── login_07.gif │ ├── login_08.gif │ ├── login_09.gif │ ├── login_10.gif │ └── login_11.gif ├── pic │ ├── about.jpg │ ├── backup.png │ ├── recovery.png │ ├── welcome.jpg │ └── border │ │ ├── 404.jpg │ │ ├── a_1.gif │ │ ├── a_2.gif │ │ ├── a_3.gif │ │ ├── a_4.gif │ │ ├── b_1.gif │ │ ├── b_4.gif │ │ ├── c_1.gif │ │ ├── c_4.gif │ │ ├── d_1.gif │ │ ├── d_2.gif │ │ ├── d_3.gif │ │ └── d_4.gif ├── tracklock.jsp ├── css │ ├── themes │ │ └── base │ │ │ ├── jquery.ui.all.css │ │ │ ├── jquery.ui.selectable.css │ │ │ ├── jquery.ui.progressbar.css │ │ │ ├── jquery.ui.base.css │ │ │ ├── jquery.ui.accordion.css │ │ │ ├── jquery.ui.autocomplete.css │ │ │ ├── jquery.ui.slider.css │ │ │ ├── jquery.ui.resizable.css │ │ │ ├── jquery.ui.dialog.css │ │ │ ├── jquery.ui.tabs.css │ │ │ ├── jquery.ui.core.css │ │ │ └── jquery.ui.button.css │ ├── jquery-ui-timepicker-addon.css │ ├── subcss.css │ └── style.css ├── download_word.jsp ├── group_success.jsp ├── js │ ├── images │ │ ├── help.gif │ │ ├── info.gif │ │ ├── buticon.gif │ │ ├── title.gif │ │ ├── window.gif │ │ ├── dialog_bg.jpg │ │ ├── dialog_cb.gif │ │ ├── dialog_cb.png │ │ ├── dialog_ct.gif │ │ ├── dialog_ct.png │ │ ├── dialog_lb.gif │ │ ├── dialog_lb.png │ │ ├── dialog_lt.gif │ │ ├── dialog_lt.png │ │ ├── dialog_rb.gif │ │ ├── dialog_rb.png │ │ ├── dialog_rt.gif │ │ ├── dialog_rt.png │ │ ├── important.gif │ │ ├── dialog_mlm.gif │ │ ├── dialog_mlm.png │ │ ├── dialog_mrm.gif │ │ ├── dialog_mrm.png │ │ ├── icon_alert.gif │ │ ├── icon_dialog.gif │ │ ├── icon_query.gif │ │ ├── dialog_closebtn.gif │ │ ├── dialog_closebtn_over.gif │ │ └── dir.txt │ ├── jquery.alerts.js │ ├── MarkShowHidden.js │ ├── js.js │ ├── jquery-ui-timepicker-zh-CN.js │ ├── GameManageGetGroup.js │ ├── GameManageGetItem.js │ ├── jquery.alerts.css │ └── GameManagePrintScan.js ├── WEB-INF │ ├── lib │ │ ├── jstl.jar │ │ ├── date4j.jar │ │ ├── poi-3.8.jar │ │ ├── iTextAsian.jar │ │ ├── jspsmart.jar │ │ ├── standard.jar │ │ ├── commons-lang.jar │ │ ├── itext-2.1.5.jar │ │ ├── log4j-1.2.15.jar │ │ ├── commons-logging.jar │ │ ├── ezmorph-1.0.6.jar │ │ ├── itext-rtf-2.1.4.jar │ │ ├── patchca-0.5.0.jar │ │ ├── proxool-cglib.jar │ │ ├── commons-beanutils.jar │ │ ├── proxool-0.9.0RC3.jar │ │ ├── json-lib-2.4-jdk15.jar │ │ ├── commons-collections-3.2.jar │ │ └── mysql-connector-java-5.0.0-beta-bin.jar │ └── proxool.xml ├── My97DatePicker │ ├── skin │ │ ├── datePicker.gif │ │ ├── default │ │ │ └── img.gif │ │ ├── whyGreen │ │ │ ├── bg.jpg │ │ │ └── img.gif │ │ └── WdatePicker.css │ └── lang │ │ ├── en.js │ │ ├── zh-cn.js │ │ └── zh-tw.js ├── set_sturecord.jsp ├── apply_playershow.jsp ├── apply_queryshow.jsp ├── main.jsp ├── gamemanageathleteupload.jsp ├── down.html ├── center.html ├── show_update_runway.jsp ├── downloads.jsp ├── download.jsp ├── apply_listinfo.jsp ├── apply_infolist.jsp ├── apply_groupitem.jsp └── update_runway.jsp ├── .gitignore ├── README ├── .settings ├── org.eclipse.wst.jsdt.ui.superType.name ├── org.eclipse.wst.jsdt.ui.superType.container ├── com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs ├── org.eclipse.ltk.core.refactoring.prefs ├── org.eclipse.core.resources.prefs ├── .jsdtscope ├── org.eclipse.jdt.core.prefs └── com.genuitec.eclipse.j2eedt.core.prefs ├── src ├── log4j.properties ├── db.properties └── cn │ └── edu │ └── hbcit │ └── smms │ ├── pojo │ ├── fildPlayerNumPojo.java │ ├── Track1500PlayerPojo.java │ ├── T_groupPojo.java │ ├── FinalitemGroup.java │ ├── CPItemPojo.java │ ├── Group.java │ ├── GameLookPojo.java │ ├── Group2item.java │ ├── GetPlayerNumber.java │ ├── Stujudge.java │ ├── GroupRunwayInfo.java │ ├── Fieldjudge.java │ ├── FildItemJudge.java │ ├── StudentJudgePojo.java │ ├── ManageItemPJ.java │ ├── ManageGroupPJ.java │ ├── GameDatePlanPojo.java │ ├── ManagerMarkPJ.java │ ├── Group2itemPojo.java │ ├── FildJudgePojo.java │ ├── Group2Sports.java │ ├── Sports2department.java │ ├── SportRecordPojo.java │ ├── PlayerPojo.java │ ├── PlayerNum.java │ ├── T_finalitemPojo.java │ ├── QueryMarkPoJo.java │ ├── Item.java │ ├── Department.java │ ├── QueryAllMarksPlayerMsg.java │ ├── Player.java │ ├── QueryPageData.java │ ├── GameManageCheckTablePojo.java │ ├── Sports.java │ ├── QuerySeInfoData.java │ └── Rule.java │ ├── services │ ├── createprogramservices │ │ ├── SetWordServices.java │ │ ├── AdjustByHandServices.java │ │ ├── WordDemoService.java │ │ └── GameGroupingServices.java │ ├── gamemanageservices │ │ ├── GetMessageservices.java │ │ ├── AddScoreServices.java │ │ ├── GetConditonServices.java │ │ ├── MarkManangerBeanServices.java │ │ ├── GameManageCheckTableServices.java │ │ └── GameManageServices.java │ ├── gamesetservices │ │ ├── DaHuiJiLvServices.java │ │ ├── SetServices.java │ │ ├── FieldjudgeService.java │ │ └── UpdateOfficialSetService.java │ ├── gameapplyservices │ │ ├── AddTeamleaderService.java │ │ └── SelGameApplyService.java │ ├── loginservices │ │ └── LoginService.java │ └── gamequeryservices │ │ └── GameQueryServices.java │ ├── dao │ ├── systemmanagedao │ │ └── RightsDAO.java │ ├── databasedao │ │ └── DBTest.java │ ├── createprogramdao │ │ ├── SetWordConnUtil.java │ │ └── SelectItems.java │ ├── gamequerydao │ │ └── SelectTeamLeaderDao.java │ └── gameapplydao │ │ └── AddTeamleaderDAO.java │ ├── servlet │ ├── gamesetservlet │ │ ├── AddFiledItemJudgeServlet.java │ │ ├── UpdateFinalItemServlet.java │ │ ├── GetSportsInfoServlet.java │ │ ├── UpdatePlayernumServlet.java │ │ ├── ViewCreateRecordServlet.java │ │ ├── SelectStuentJudgeServlet.java │ │ ├── ViewAllRecordServlet.java │ │ ├── ViewPlayerNumServlet.java │ │ ├── RemoveRecordServlet.java │ │ ├── SeleteItemRecordSonServlet.java │ │ └── SeleteItemRecordServlet.java │ ├── loginservlet │ │ └── LogoutServlet.java │ ├── gamequeryservlet │ │ └── SelectTeamleaderServlet.java │ └── systemmanageservlet │ │ └── ViewAddAccountPageServlet.java │ ├── util │ └── OperateProperties.java │ └── filter │ └── LoginFilter.java ├── .mymetadata ├── .project └── .classpath /WebRoot/excel/test: -------------------------------------------------------------------------------- 1 | excel -------------------------------------------------------------------------------- /WebRoot/word/test: -------------------------------------------------------------------------------- 1 | word -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /class 2 | Thumbs.db -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | HBCIT Sports Meeting Management System (SMMS) -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /WebRoot/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /WebRoot/images/cz.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/cz.gif -------------------------------------------------------------------------------- /WebRoot/images/dl.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/dl.gif -------------------------------------------------------------------------------- /WebRoot/images/no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/no.png -------------------------------------------------------------------------------- /WebRoot/images/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/ok.png -------------------------------------------------------------------------------- /WebRoot/images/sj.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/sj.gif -------------------------------------------------------------------------------- /WebRoot/images/tb.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/tb.gif -------------------------------------------------------------------------------- /WebRoot/pic/about.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/about.jpg -------------------------------------------------------------------------------- /WebRoot/tracklock.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/tracklock.jsp -------------------------------------------------------------------------------- /src/log4j.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/src/log4j.properties -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.all.css: -------------------------------------------------------------------------------- 1 | @import "jquery.ui.base.css"; 2 | @import "jquery.ui.theme.css"; 3 | -------------------------------------------------------------------------------- /WebRoot/images/add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/add.gif -------------------------------------------------------------------------------- /WebRoot/images/del.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/del.gif -------------------------------------------------------------------------------- /WebRoot/images/edit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/edit.gif -------------------------------------------------------------------------------- /WebRoot/images/ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/ico.png -------------------------------------------------------------------------------- /WebRoot/images/pass.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/pass.gif -------------------------------------------------------------------------------- /WebRoot/images/quit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/quit.gif -------------------------------------------------------------------------------- /WebRoot/images/user.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/user.gif -------------------------------------------------------------------------------- /WebRoot/pic/backup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/backup.png -------------------------------------------------------------------------------- /WebRoot/pic/recovery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/recovery.png -------------------------------------------------------------------------------- /WebRoot/pic/welcome.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/welcome.jpg -------------------------------------------------------------------------------- /WebRoot/download_word.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/download_word.jsp -------------------------------------------------------------------------------- /WebRoot/group_success.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/group_success.jsp -------------------------------------------------------------------------------- /WebRoot/images/main_01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_01.gif -------------------------------------------------------------------------------- /WebRoot/images/main_03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_03.gif -------------------------------------------------------------------------------- /WebRoot/images/main_05.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_05.gif -------------------------------------------------------------------------------- /WebRoot/images/main_06.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_06.gif -------------------------------------------------------------------------------- /WebRoot/images/main_07.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_07.gif -------------------------------------------------------------------------------- /WebRoot/images/main_10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_10.gif -------------------------------------------------------------------------------- /WebRoot/images/main_11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_11.gif -------------------------------------------------------------------------------- /WebRoot/images/main_13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_13.gif -------------------------------------------------------------------------------- /WebRoot/images/main_15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_15.gif -------------------------------------------------------------------------------- /WebRoot/images/main_17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_17.gif -------------------------------------------------------------------------------- /WebRoot/images/main_19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_19.gif -------------------------------------------------------------------------------- /WebRoot/images/main_21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_21.gif -------------------------------------------------------------------------------- /WebRoot/images/main_28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_28.gif -------------------------------------------------------------------------------- /WebRoot/images/main_29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_29.gif -------------------------------------------------------------------------------- /WebRoot/images/main_30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_30.gif -------------------------------------------------------------------------------- /WebRoot/images/main_31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_31.gif -------------------------------------------------------------------------------- /WebRoot/images/main_32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_32.gif -------------------------------------------------------------------------------- /WebRoot/images/main_34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_34.gif -------------------------------------------------------------------------------- /WebRoot/images/main_35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_35.gif -------------------------------------------------------------------------------- /WebRoot/images/main_43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_43.gif -------------------------------------------------------------------------------- /WebRoot/images/main_69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_69.gif -------------------------------------------------------------------------------- /WebRoot/images/main_71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_71.gif -------------------------------------------------------------------------------- /WebRoot/images/main_72.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_72.gif -------------------------------------------------------------------------------- /WebRoot/images/main_74.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/main_74.gif -------------------------------------------------------------------------------- /WebRoot/images/tab_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/tab_bg.gif -------------------------------------------------------------------------------- /WebRoot/js/images/help.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/help.gif -------------------------------------------------------------------------------- /WebRoot/js/images/info.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/info.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/404.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/404.jpg -------------------------------------------------------------------------------- /WebRoot/pic/border/a_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/a_1.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/a_2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/a_2.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/a_3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/a_3.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/a_4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/a_4.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/b_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/b_1.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/b_4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/b_4.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/c_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/c_1.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/c_4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/c_4.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/d_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/d_1.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/d_2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/d_2.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/d_3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/d_3.gif -------------------------------------------------------------------------------- /WebRoot/pic/border/d_4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/pic/border/d_4.gif -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/jstl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/jstl.jar -------------------------------------------------------------------------------- /WebRoot/images/checkcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/checkcode.png -------------------------------------------------------------------------------- /WebRoot/images/login_03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/login_03.gif -------------------------------------------------------------------------------- /WebRoot/images/login_04.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/login_04.gif -------------------------------------------------------------------------------- /WebRoot/images/login_06.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/login_06.gif -------------------------------------------------------------------------------- /WebRoot/images/login_07.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/login_07.gif -------------------------------------------------------------------------------- /WebRoot/images/login_08.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/login_08.gif -------------------------------------------------------------------------------- /WebRoot/images/login_09.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/login_09.gif -------------------------------------------------------------------------------- /WebRoot/images/login_10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/login_10.gif -------------------------------------------------------------------------------- /WebRoot/images/login_11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/images/login_11.gif -------------------------------------------------------------------------------- /WebRoot/js/images/buticon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/buticon.gif -------------------------------------------------------------------------------- /WebRoot/js/images/title.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/title.gif -------------------------------------------------------------------------------- /WebRoot/js/images/window.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/window.gif -------------------------------------------------------------------------------- /WebRoot/js/jquery.alerts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/jquery.alerts.js -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/date4j.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/date4j.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/poi-3.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/poi-3.8.jar -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_bg.jpg -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_cb.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_cb.gif -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_cb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_cb.png -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_ct.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_ct.gif -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_ct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_ct.png -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_lb.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_lb.gif -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_lb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_lb.png -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_lt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_lt.gif -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_lt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_lt.png -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_rb.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_rb.gif -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_rb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_rb.png -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_rt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_rt.gif -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_rt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_rt.png -------------------------------------------------------------------------------- /WebRoot/js/images/important.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/important.gif -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/iTextAsian.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/iTextAsian.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/jspsmart.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/jspsmart.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/standard.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/standard.jar -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_mlm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_mlm.gif -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_mlm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_mlm.png -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_mrm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_mrm.gif -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_mrm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_mrm.png -------------------------------------------------------------------------------- /WebRoot/js/images/icon_alert.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/icon_alert.gif -------------------------------------------------------------------------------- /WebRoot/js/images/icon_dialog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/icon_dialog.gif -------------------------------------------------------------------------------- /WebRoot/js/images/icon_query.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/icon_query.gif -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-lang.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/commons-lang.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/itext-2.1.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/itext-2.1.5.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/log4j-1.2.15.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/log4j-1.2.15.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-logging.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/commons-logging.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/ezmorph-1.0.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/ezmorph-1.0.6.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/itext-rtf-2.1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/itext-rtf-2.1.4.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/patchca-0.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/patchca-0.5.0.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/proxool-cglib.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/proxool-cglib.jar -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_closebtn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_closebtn.gif -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-beanutils.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/commons-beanutils.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/proxool-0.9.0RC3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/proxool-0.9.0RC3.jar -------------------------------------------------------------------------------- /WebRoot/My97DatePicker/skin/datePicker.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/My97DatePicker/skin/datePicker.gif -------------------------------------------------------------------------------- /WebRoot/My97DatePicker/skin/default/img.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/My97DatePicker/skin/default/img.gif -------------------------------------------------------------------------------- /WebRoot/My97DatePicker/skin/whyGreen/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/My97DatePicker/skin/whyGreen/bg.jpg -------------------------------------------------------------------------------- /WebRoot/My97DatePicker/skin/whyGreen/img.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/My97DatePicker/skin/whyGreen/img.gif -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/json-lib-2.4-jdk15.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/json-lib-2.4-jdk15.jar -------------------------------------------------------------------------------- /WebRoot/js/images/dialog_closebtn_over.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/js/images/dialog_closebtn_over.gif -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-collections-3.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/commons-collections-3.2.jar -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.selectable.css: -------------------------------------------------------------------------------- 1 | /* Selectable 2 | ----------------------------------*/ 3 | .ui-selectable-helper { border:1px dotted black } 4 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/mysql-connector-java-5.0.0-beta-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hbcit2010software/hbcitsports/HEAD/WebRoot/WEB-INF/lib/mysql-connector-java-5.0.0-beta-bin.jar -------------------------------------------------------------------------------- /.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs: -------------------------------------------------------------------------------- 1 | #Tue Jul 17 01:21:43 CST 2012 2 | eclipse.preferences.version=1 3 | xdoclet.build.policy=automatic 4 | xdoclet.jdk.support=jdk5 5 | -------------------------------------------------------------------------------- /.settings/org.eclipse.ltk.core.refactoring.prefs: -------------------------------------------------------------------------------- 1 | #Tue Jul 17 01:21:43 CST 2012 2 | eclipse.preferences.version=1 3 | org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false 4 | -------------------------------------------------------------------------------- /src/db.properties: -------------------------------------------------------------------------------- 1 | #说明:-uroot为mysql用户名 -proot为mysql密码 smms为库名;注意更改mysql服务器IP 2 | backupStr=mysqldump -uroot -proot --set-charset=utf8 smms 3 | recoveryStr=mysql -h 127.0.0.1 -uroot -proot smms -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.progressbar.css: -------------------------------------------------------------------------------- 1 | /* Progressbar 2 | ----------------------------------*/ 3 | .ui-progressbar { height:2em; text-align: left; } 4 | .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; } -------------------------------------------------------------------------------- /WebRoot/My97DatePicker/skin/WdatePicker.css: -------------------------------------------------------------------------------- 1 | .Wdate{ 2 | border:#999 1px solid; 3 | height:20px; 4 | background:#fff url(datePicker.gif) no-repeat right; 5 | } 6 | 7 | .WdateFmtErr{ 8 | font-weight:bold; 9 | color:red; 10 | } -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | #Sun Nov 11 15:56:47 CST 2012 2 | eclipse.preferences.version=1 3 | encoding//WebRoot/js/GameManagePrintScan.js=UTF-8 4 | encoding//WebRoot/js/mark_manager.js=UTF-8 5 | encoding//WebRoot/js/zDialog_inner.js=UTF-8 6 | encoding/src=UTF-8 7 | -------------------------------------------------------------------------------- /WebRoot/js/MarkShowHidden.js: -------------------------------------------------------------------------------- 1 | //层的显示 2 | function showDepartDiv(){ 3 | $("#departDiv").show(); 4 | $("#itemDiv").hide(); 5 | } 6 | function showItemDiv(){ 7 | $("#itemDiv").show(); 8 | $("#departDiv").hide(); 9 | } 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /WebRoot/js/js.js: -------------------------------------------------------------------------------- 1 | function form_submit(){ 2 | document.getElementById("login").submit(); 3 | } 4 | function form_reset(){ 5 | document.getElementById("login").reset(); 6 | } 7 | function reloadcode(){ 8 | var verify=document.getElementById('safecode'); 9 | verify.setAttribute('src','code.php?'+Math.random()); 10 | } -------------------------------------------------------------------------------- /WebRoot/set_sturecord.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 学生记录首页 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/fildPlayerNumPojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class fildPlayerNumPojo { 4 | public String playerNum; 5 | 6 | public String getPlayerNum() { 7 | return playerNum; 8 | } 9 | 10 | public void setPlayerNum(String playerNum) { 11 | this.playerNum = playerNum; 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /.mymetadata: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /WebRoot/css/jquery-ui-timepicker-addon.css: -------------------------------------------------------------------------------- 1 | .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; } 2 | .ui-timepicker-div dl { text-align: left; } 3 | .ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; } 4 | .ui-timepicker-div dl dd { margin: 0 10px 10px 65px; } 5 | .ui-timepicker-div td { font-size: 90%; } 6 | .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } 7 | -------------------------------------------------------------------------------- /WebRoot/js/images/dir.txt: -------------------------------------------------------------------------------- 1 | dialog_bg.jpg 2 | dialog_cb.gif 3 | dialog_cb.png 4 | dialog_closebtn.gif 5 | dialog_closebtn_over.gif 6 | dialog_ct.gif 7 | dialog_ct.png 8 | dialog_lb.gif 9 | dialog_lb.png 10 | dialog_lt.gif 11 | dialog_lt.png 12 | dialog_mlm.gif 13 | dialog_mlm.png 14 | dialog_mrm.gif 15 | dialog_mrm.png 16 | dialog_rb.gif 17 | dialog_rb.png 18 | dialog_rt.gif 19 | dialog_rt.png 20 | dir.txt 21 | icon_alert.gif 22 | icon_dialog.gif 23 | icon_query.gif 24 | window.gif 25 | -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.base.css: -------------------------------------------------------------------------------- 1 | @import url("jquery.ui.core.css"); 2 | 3 | @import url("jquery.ui.accordion.css"); 4 | @import url("jquery.ui.autocomplete.css"); 5 | @import url("jquery.ui.button.css"); 6 | @import url("jquery.ui.datepicker.css"); 7 | @import url("jquery.ui.dialog.css"); 8 | @import url("jquery.ui.progressbar.css"); 9 | @import url("jquery.ui.resizable.css"); 10 | @import url("jquery.ui.selectable.css"); 11 | @import url("jquery.ui.slider.css"); 12 | @import url("jquery.ui.tabs.css"); 13 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Track1500PlayerPojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class Track1500PlayerPojo { 4 | public int teamnum; 5 | public String playerNum; 6 | 7 | public String getPlayerNum() { 8 | return playerNum; 9 | } 10 | 11 | public void setPlayerNum(String playerNum) { 12 | this.playerNum = playerNum; 13 | } 14 | 15 | public int getTeamnum() { 16 | return teamnum; 17 | } 18 | 19 | public void setTeamnum(int teamnum) { 20 | this.teamnum = teamnum; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /WebRoot/apply_playershow.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | My JSP 'cc.jsp' starting page 7 | <%String msg= (String)session.getAttribute("msg");%> 8 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /WebRoot/js/jquery-ui-timepicker-zh-CN.js: -------------------------------------------------------------------------------- 1 | /* Simplified Chinese translation for the jQuery Timepicker Addon / 2 | / Written by Will Lu */ 3 | (function($) { 4 | $.timepicker.regional['zh-CN'] = { 5 | timeOnlyTitle: '选择时间', 6 | timeText: '时间', 7 | hourText: '小时', 8 | minuteText: '分钟', 9 | secondText: '秒钟', 10 | millisecText: '微秒', 11 | timezoneText: '时区', 12 | currentText: '现在时间', 13 | closeText: '关闭', 14 | timeFormat: 'hh:mm', 15 | amNames: ['AM', 'A'], 16 | pmNames: ['PM', 'P'], 17 | ampm: false 18 | }; 19 | $.timepicker.setDefaults($.timepicker.regional['zh-CN']); 20 | })(jQuery); 21 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/createprogramservices/SetWordServices.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.createprogramservices; 2 | 3 | import java.util.HashMap; 4 | 5 | import cn.edu.hbcit.smms.dao.createprogramdao.SetWordDAO; 6 | 7 | /** 8 | * 9 | * @author 韩鑫鹏 10 | * 11 | */ 12 | public class SetWordServices { 13 | 14 | SetWordDAO swd = new SetWordDAO(); 15 | 16 | public void AddGroupInfo(String site, HashMap allGirlPlayers, HashMap allBoyPlayers, 17 | HashMap players, HashMap department ) { 18 | swd.AddGroupInfo(site, allGirlPlayers, allBoyPlayers, players, department); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /WebRoot/js/GameManageGetGroup.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | $("#printScan").attr("disabled",true); 3 | $.ajax( { 4 | url : "servlet/GameManageCheckTableGetGroupServlet", 5 | type : 'get', 6 | contentType : "application/json;charset=utf-8", 7 | dataType : 'json', 8 | data : null, 9 | success : function(json) { 10 | var inhtml = ""; 11 | inhtml+=""; 12 | for (i = 0; i < json.contents.length; i++) { 13 | 14 | inhtml += ""; 15 | 16 | } 17 | $('#group').html(inhtml); 18 | } 19 | 20 | }); 21 | }); -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/T_groupPojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class T_groupPojo { 4 | 5 | private int id; 6 | private String groupname; 7 | private int grouptype; 8 | public int getId() { 9 | return id; 10 | } 11 | public void setId(int id) { 12 | this.id = id; 13 | } 14 | public String getGroupname() { 15 | return groupname; 16 | } 17 | public void setGroupname(String groupname) { 18 | this.groupname = groupname; 19 | } 20 | public int getGrouptype() { 21 | return grouptype; 22 | } 23 | public void setGrouptype(int grouptype) { 24 | this.grouptype = grouptype; 25 | } 26 | 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/createprogramservices/AdjustByHandServices.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.createprogramservices; 2 | 3 | import java.util.List; 4 | 5 | import cn.edu.hbcit.smms.dao.createprogramdao.AdjustByHandDao; 6 | 7 | public class AdjustByHandServices { 8 | AdjustByHandDao adjust = new AdjustByHandDao(); 9 | public List getRunwayInfo(int finalitemid, int teamnum){ 10 | return adjust.getRunwayInfo( finalitemid, teamnum); 11 | } 12 | public int updatePlayerRunway(int finalitemid , int teamnum, String[] playerid, String[] runway ){ 13 | return adjust.updatePlayerRunway(finalitemid, teamnum, playerid, runway); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamemanageservices/GetMessageservices.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.gamemanageservices; 2 | 3 | import cn.edu.hbcit.smms.dao.gamemanagedao.GetMessage; 4 | import net.sf.json.JSONArray; 5 | 6 | public class GetMessageservices { 7 | public JSONArray getPlayerMessage( String finalitemname ){ 8 | return new GetMessage().getPlayerMessage(finalitemname); 9 | } 10 | 11 | public String getItemType( String finalitemname ){ 12 | return new GetMessage().getItemType(finalitemname); 13 | } 14 | public String getFormatReg( String finalitemname ){ 15 | return new GetMessage().getFormatReg(finalitemname); 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | #Tue Jul 17 01:21:43 CST 2012 2 | eclipse.preferences.version=1 3 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.6 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.source=1.6 13 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/FinalitemGroup.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public final class FinalitemGroup { 4 | public String getFinalitemname() { 5 | return finalitemname; 6 | } 7 | public void setFinalitemname(String finalitemname) { 8 | this.finalitemname = finalitemname; 9 | } 10 | public String getGroupname() { 11 | return groupname; 12 | } 13 | public void setGroupname(String groupname) { 14 | this.groupname = groupname; 15 | } 16 | private String finalitemname; 17 | private String groupname; 18 | private int fmid; 19 | public int getFmid() { 20 | return fmid; 21 | } 22 | public void setFmid(int fmid) { 23 | this.fmid = fmid; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamemanageservices/AddScoreServices.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.gamemanageservices; 2 | 3 | import cn.edu.hbcit.smms.dao.gamemanagedao.AddScore; 4 | 5 | public class AddScoreServices { 6 | public boolean isAddScore( String playernum ,String score , String finalitemname,String group ){ 7 | return new AddScore().isAddScore(playernum, score, finalitemname, group); 8 | } 9 | public int getIntegral( String finalitemname ,String group){ 10 | return new AddScore().getIntegral(finalitemname, group); 11 | } 12 | 13 | public String getFinalitemType( String finalitemname){ 14 | return new AddScore().getFinalitemType(finalitemname); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /WebRoot/My97DatePicker/lang/en.js: -------------------------------------------------------------------------------- 1 | var $lang={ 2 | errAlertMsg: "Invalid date or the date out of range,redo or not?", 3 | aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], 4 | aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"], 5 | aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], 6 | aLongMonStr: ["January","February","March","April","May","June","July","August","September","October","November","December"], 7 | clearStr: "Clear", 8 | todayStr: "Today", 9 | okStr: "OK", 10 | updateStr: "OK", 11 | timeStr: "Time", 12 | quickStr: "Quick Selection", 13 | err_1: 'MinDate Cannot be bigger than MaxDate!' 14 | } -------------------------------------------------------------------------------- /WebRoot/apply_queryshow.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | My JSP 'cc.jsp' starting page 7 | <%String msg= (String)session.getAttribute("msg");%> 8 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/CPItemPojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | /** 3 | * 运功会项目pojo 为了方便分组而建立的pojo 4 | * @author 韩鑫鹏 5 | * 创建时间:2012-06-14 09:00:00 6 | */ 7 | public class CPItemPojo { 8 | private int itemId; //项目id 9 | private int gp2spid; //组别与运动会id 10 | private String itemType; //项目类型 11 | 12 | public int getItemId() { 13 | return itemId; 14 | } 15 | public void setItemId(int itemId) { 16 | this.itemId = itemId; 17 | } 18 | public int getGp2spid() { 19 | return gp2spid; 20 | } 21 | public void setGp2spid(int gp2spid) { 22 | this.gp2spid = gp2spid; 23 | } 24 | public String getItemType() { 25 | return itemType; 26 | } 27 | public void setItemType(String itemType) { 28 | this.itemType = itemType; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Group.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class Group { 4 | private int id; 5 | private String groupname; 6 | private int groupsex; 7 | private int grouptype; 8 | public int getId() { 9 | return id; 10 | } 11 | public void setId(int id) { 12 | this.id = id; 13 | } 14 | public String getGroupname() { 15 | return groupname; 16 | } 17 | public void setGroupname(String groupname) { 18 | this.groupname = groupname; 19 | } 20 | public int getGroupsex() { 21 | return groupsex; 22 | } 23 | public void setGroupsex(int groupsex) { 24 | this.groupsex = groupsex; 25 | } 26 | 27 | public int getGrouptype() { 28 | return grouptype; 29 | } 30 | public void setGrouptype(int grouptype) { 31 | this.grouptype = grouptype; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamesetservices/DaHuiJiLvServices.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.gamesetservices; 2 | 3 | import java.util.ArrayList; 4 | 5 | import cn.edu.hbcit.smms.dao.gamesetdao.DaHuiJiLvDao; 6 | 7 | public class DaHuiJiLvServices { 8 | DaHuiJiLvDao dd = new DaHuiJiLvDao(); 9 | 10 | public ArrayList seleteBySportsId( int sportsId) { 11 | return dd.seleteBySportsId(sportsId); 12 | } 13 | public boolean getQuery( int sportsid){ 14 | return dd.getQuery(sportsid); 15 | } 16 | public boolean add(int sportsid,String open, String close, String rule){ 17 | return dd.add(sportsid, open, close, rule); 18 | } 19 | public boolean update( int sportsid,String open, String close, String rule){ 20 | return dd.update(sportsid, open, close, rule); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/GameLookPojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | /** 4 | * 赛事分组情况预览 5 | * 6 | *简要说明 7 | * 8 | *详细解释。 9 | * @author 韩鑫鹏 10 | * @version 1.00 2011/12/07 新規作成
11 | */ 12 | 13 | public class GameLookPojo { 14 | 15 | public String groupNum; 16 | public String players; 17 | public String nextFlag; 18 | public String getGroupNum() { 19 | return groupNum; 20 | } 21 | public void setGroupNum(String groupNum) { 22 | this.groupNum = groupNum; 23 | } 24 | public String getPlayers() { 25 | return players; 26 | } 27 | public void setPlayers(String players) { 28 | this.players = players; 29 | } 30 | public String getNextFlag() { 31 | return nextFlag; 32 | } 33 | public void setNextFlag(String nextFlag) { 34 | this.nextFlag = nextFlag; 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Group2item.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class Group2item { 4 | private int itemid; 5 | private int groupsex; 6 | private String itemname; 7 | private String groupname; 8 | public int getItemid() { 9 | return itemid; 10 | } 11 | public void setItemid(int itemid) { 12 | this.itemid = itemid; 13 | } 14 | public int getGroupsex() { 15 | return groupsex; 16 | } 17 | public void setGroupsex(int groupsex) { 18 | this.groupsex = groupsex; 19 | } 20 | public String getItemname() { 21 | return itemname; 22 | } 23 | public void setItemname(String itemname) { 24 | this.itemname = itemname; 25 | } 26 | public String getGroupname() { 27 | return groupname; 28 | } 29 | public void setGroupname(String groupname) { 30 | this.groupname = groupname; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/GetPlayerNumber.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class GetPlayerNumber { 4 | String username; 5 | int sportsid; 6 | int departid; 7 | int sp2dpid; 8 | public String getUsername() { 9 | return username; 10 | } 11 | public void setUsername(String username) { 12 | this.username = username; 13 | } 14 | public int getSportsid() { 15 | return sportsid; 16 | } 17 | public void setSportsid(int sportsid) { 18 | this.sportsid = sportsid; 19 | } 20 | public int getDepartid() { 21 | return departid; 22 | } 23 | public void setDepartid(int departid) { 24 | this.departid = departid; 25 | } 26 | public int getSp2dpid() { 27 | return sp2dpid; 28 | } 29 | public void setSp2dpid(int sp2dpid) { 30 | this.sp2dpid = sp2dpid; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /WebRoot/js/GameManageGetItem.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | $("#item").change(function(){ 3 | $("#printScan").attr("disabled",true); 4 | }); 5 | $("#group").change(function(){ 6 | $("#printScan").attr("disabled",true); 7 | var groupid= $("#group").find("option:selected").val(); 8 | $.ajax({ 9 | url:"servlet/GameManageCheckTableGetItemServlet", 10 | type:"get", 11 | data:"groupid="+groupid, 12 | contentType:"application/json;charset=utf-8", 13 | dataType:"json", 14 | success : function(json) { 15 | 16 | var inhtml = ""; 17 | for (i = 0; i < json.contents.length; i++) { 18 | 19 | inhtml += ""; 20 | 21 | 22 | } 23 | 24 | $('#item').html(inhtml); 25 | 26 | } 27 | }); 28 | }); 29 | 30 | 31 | 32 | }); -------------------------------------------------------------------------------- /WebRoot/main.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | SMMS运动会综合管理系统 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | <body> 17 | </body> 18 | 19 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Stujudge.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class Stujudge { 4 | private int id; 5 | public int getId() { 6 | return id; 7 | } 8 | public void setId(int id) { 9 | this.id = id; 10 | } 11 | public int getSp2dpid() { 12 | return sp2dpid; 13 | } 14 | public void setSp2dpid(int sp2dpid) { 15 | this.sp2dpid = sp2dpid; 16 | } 17 | public String getContact() { 18 | return contact; 19 | } 20 | public void setContact(String contact) { 21 | this.contact = contact; 22 | } 23 | public String getTel() { 24 | return tel; 25 | } 26 | public void setTel(String tel) { 27 | this.tel = tel; 28 | } 29 | public String getMember() { 30 | return member; 31 | } 32 | public void setMember(String member) { 33 | this.member = member; 34 | } 35 | private int sp2dpid; 36 | private String contact; 37 | private String tel; 38 | private String member; 39 | } 40 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamesetservices/SetServices.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.gamesetservices; 2 | 3 | import java.util.ArrayList; 4 | 5 | import cn.edu.hbcit.smms.dao.gamesetdao.GuiChengDao; 6 | 7 | public class SetServices { 8 | GuiChengDao gg = new GuiChengDao(); 9 | 10 | public ArrayList seleteBySportsId( int sportsId) { 11 | return gg.seleteBySportsId(sportsId); 12 | } 13 | public boolean getQuery(int sportsid){ 14 | return gg.getQuery(sportsid); 15 | } 16 | public boolean add(int sportsid,String action, String conts, String pionts, String others){ 17 | return gg.add(sportsid, action, conts, pionts, others); 18 | } 19 | public boolean update(int sportsid,String action, String conts, String pionts, String others){ 20 | return gg.update(sportsid, action, conts, pionts, others); 21 | } 22 | public void getSportId(String sportsname ){ 23 | gg.getSportId(sportsname); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gameapplyservices/AddTeamleaderService.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, 河北工业职业技术学院. 3 | * 4 | * 模块名称: 赛事报名 5 | * 子模块名称: 领队报名 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2012-6-27 陈系晶 新建 12 | */ 13 | package cn.edu.hbcit.smms.services.gameapplyservices; 14 | 15 | import cn.edu.hbcit.smms.dao.gameapplydao.AddTeamleaderDAO; 16 | 17 | public class AddTeamleaderService { 18 | AddTeamleaderDAO addTeamleaderDAO = new AddTeamleaderDAO(); 19 | /** 20 | * 插入t_ports2Department表信息 21 | */ 22 | public int addSports2Department(int sportsId,int departId,String teamLeader,String coach,String doctor){ 23 | return addTeamleaderDAO.addSports2Department(sportsId, departId, teamLeader, coach, doctor); 24 | 25 | } 26 | public int updatePlayerNum( int sportsId,int departId){ 27 | return addTeamleaderDAO.updatePlayerNum(sportsId, departId); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/GroupRunwayInfo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | /** 3 | * 各组运动员跑道的pojo 4 | * 5 | * 本类的简要信息 6 | * @author 田小英 7 | * 8 | * 9 | * 10 | */ 11 | public class GroupRunwayInfo { 12 | private int teamNum; 13 | private String playNum; 14 | private int runway; 15 | private int playerId; 16 | public int getTeamNum() { 17 | return teamNum; 18 | } 19 | public void setTeamNum(int teamNum) { 20 | this.teamNum = teamNum; 21 | } 22 | public String getPlayNum() { 23 | return playNum; 24 | } 25 | public void setPlayNum(String playNum) { 26 | this.playNum = playNum; 27 | } 28 | public int getRunway() { 29 | return runway; 30 | } 31 | public void setRunway(int runway) { 32 | this.runway = runway; 33 | } 34 | public int getPlayerId() { 35 | return playerId; 36 | } 37 | public void setPlayerId(int playerId) { 38 | this.playerId = playerId; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.accordion.css: -------------------------------------------------------------------------------- 1 | /* Accordion 2 | ----------------------------------*/ 3 | .ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; } 4 | .ui-accordion .ui-accordion-li-fix { display: inline; } 5 | .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; } 6 | .ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; } 7 | /* IE7-/Win - Fix extra vertical space in lists */ 8 | .ui-accordion a { zoom: 1; } 9 | .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; } 10 | .ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; } 11 | .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; } 12 | .ui-accordion .ui-accordion-content-active { display: block; } -------------------------------------------------------------------------------- /WebRoot/gamemanageathleteupload.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | My JSP 'gamemanageathleteupload.jsp' starting page 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | <% 16 | try{ 17 | 18 | response.reset(); 19 | out.clear(); 20 | out=pageContext.pushBody(); 21 | download.initialize(pageContext); 22 | download.setContentDisposition(null); 23 | String filePath=new String(request.getParameter("filePath").getBytes("gb2312"),"ISO-8859-1"); 24 | download.downloadFile(session.getAttribute("file")+filePath); 25 | }catch(Exception e){ 26 | out.println(""); 27 | } 28 | %> 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Fieldjudge.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class Fieldjudge { 4 | private int id; 5 | public int getId() { 6 | return id; 7 | } 8 | public void setId(int id) { 9 | this.id = id; 10 | } 11 | public int getGp2itid() { 12 | return gp2itid; 13 | } 14 | public void setGp2itid(int gp2itid) { 15 | this.gp2itid = gp2itid; 16 | } 17 | public String getJudge_1() { 18 | return judge_1; 19 | } 20 | public void setJudge_1(String judge_1) { 21 | this.judge_1 = judge_1; 22 | } 23 | public String getJudge_2() { 24 | return judge_2; 25 | } 26 | public void setJudge_2(String judge_2) { 27 | this.judge_2 = judge_2; 28 | } 29 | public String getJudge_3() { 30 | return judge_3; 31 | } 32 | public void setJudge_3(String judge_3) { 33 | this.judge_3 = judge_3; 34 | } 35 | private int gp2itid; 36 | private String judge_1; 37 | private String judge_2; 38 | private String judge_3; 39 | } 40 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/FildItemJudge.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class FildItemJudge { 4 | public int judgeId; 5 | public String itemName; 6 | public String judge1; 7 | public String judge2; 8 | public String judge3; 9 | public int getJudgeId() { 10 | return judgeId; 11 | } 12 | public void setJudgeId(int judgeId) { 13 | this.judgeId = judgeId; 14 | } 15 | public String getItemName() { 16 | return itemName; 17 | } 18 | public void setItemName(String itemName) { 19 | this.itemName = itemName; 20 | } 21 | public String getJudge1() { 22 | return judge1; 23 | } 24 | public void setJudge1(String judge1) { 25 | this.judge1 = judge1; 26 | } 27 | public String getJudge2() { 28 | return judge2; 29 | } 30 | public void setJudge2(String judge2) { 31 | this.judge2 = judge2; 32 | } 33 | public String getJudge3() { 34 | return judge3; 35 | } 36 | public void setJudge3(String judge3) { 37 | this.judge3 = judge3; 38 | } 39 | 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/loginservices/LoginService.java: -------------------------------------------------------------------------------- 1 | 2 | package cn.edu.hbcit.smms.services.loginservices; 3 | 4 | import cn.edu.hbcit.smms.dao.logindao.LoginDAO; 5 | 6 | public class LoginService { 7 | 8 | LoginDAO login = new LoginDAO(); 9 | 10 | /** 11 | * 验证登录 12 | * @param username 13 | * @param password 14 | * @return 15 | */ 16 | public boolean canLogin(String username, String password){ 17 | return login.canLogin(username, password); 18 | } 19 | 20 | /** 21 | * 获取用户权限 22 | * @param username 23 | * @return 24 | */ 25 | public int selectUserRights(String username){ 26 | return login.selectUserRights(username); 27 | } 28 | 29 | /** 30 | * 获取当前运动会ID 31 | * @return 32 | */ 33 | public int selectCurrentSportsId(){ 34 | return login.selectCurrentSportsId(); 35 | } 36 | 37 | /** 38 | * 获取当前运动会名称 39 | * @return 40 | */ 41 | public String selectCurrentSportsName(){ 42 | return login.selectCurrentSportsName(); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /WebRoot/down.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 无标题文档 6 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
   
25 | 26 | 27 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/StudentJudgePojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | /** 3 | * 学生裁判 t_stujudge表的pojo 4 | * 5 | * 简要说明 6 | * @author 田小英 7 | * 8 | * @version 1.00 2012-6-26 新建类 9 | * 10 | */ 11 | public class StudentJudgePojo { 12 | private String departmentName; 13 | private String contact; 14 | private String tel; 15 | private String member; 16 | public String getDepartmentName() { 17 | return departmentName; 18 | } 19 | public void setDepartmentName(String departmentName) { 20 | this.departmentName = departmentName; 21 | } 22 | public String getContact() { 23 | return contact; 24 | } 25 | public void setContact(String contact) { 26 | this.contact = contact; 27 | } 28 | public String getTel() { 29 | return tel; 30 | } 31 | public void setTel(String tel) { 32 | this.tel = tel; 33 | } 34 | public String getMember() { 35 | return member; 36 | } 37 | public void setMember(String member) { 38 | this.member = member; 39 | } 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.autocomplete.css: -------------------------------------------------------------------------------- 1 | /* Autocomplete 2 | ----------------------------------*/ 3 | .ui-autocomplete { position: absolute; cursor: default; } 4 | .ui-autocomplete-loading { background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat; } 5 | 6 | /* workarounds */ 7 | * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */ 8 | 9 | /* Menu 10 | ----------------------------------*/ 11 | .ui-menu { 12 | list-style:none; 13 | padding: 2px; 14 | margin: 0; 15 | display:block; 16 | } 17 | .ui-menu .ui-menu { 18 | margin-top: -3px; 19 | } 20 | .ui-menu .ui-menu-item { 21 | margin:0; 22 | padding: 0; 23 | zoom: 1; 24 | float: left; 25 | clear: left; 26 | width: 100%; 27 | } 28 | .ui-menu .ui-menu-item a { 29 | text-decoration:none; 30 | display:block; 31 | padding:.2em .4em; 32 | line-height:1.5; 33 | zoom:1; 34 | } 35 | .ui-menu .ui-menu-item a.ui-state-hover, 36 | .ui-menu .ui-menu-item a.ui-state-active { 37 | font-weight: normal; 38 | margin: -1px; 39 | } 40 | -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.slider.css: -------------------------------------------------------------------------------- 1 | /* Slider 2 | ----------------------------------*/ 3 | .ui-slider { position: relative; text-align: left; } 4 | .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } 5 | .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; } 6 | 7 | .ui-slider-horizontal { height: .8em; } 8 | .ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; } 9 | .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } 10 | .ui-slider-horizontal .ui-slider-range-min { left: 0; } 11 | .ui-slider-horizontal .ui-slider-range-max { right: 0; } 12 | 13 | .ui-slider-vertical { width: .8em; height: 100px; } 14 | .ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; } 15 | .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } 16 | .ui-slider-vertical .ui-slider-range-min { bottom: 0; } 17 | .ui-slider-vertical .ui-slider-range-max { top: 0; } -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/ManageItemPJ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright(C) 2004, XXXXXXXX. 3 | * 4 | * 模块名称: AAAAAAAAAAA 5 | * 子模块名称: BBBBBBBBBBB 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2004/12/12 0.1 张 三 新建 12 | * 2005/02/05 0.1 李 四 Bug修正 13 | */ 14 | 15 | package cn.edu.hbcit.smms.pojo; 16 | /** 17 | * 项目类 18 | * 19 | *简要说明 20 | * 21 | *详细解释。 22 | * @author 无国法 23 | * @version 1.00 2012/06/11 新建 24 | */ 25 | 26 | public class ManageItemPJ { 27 | private int id; 28 | private String itemname; 29 | private String itemtype; 30 | public int getId() { 31 | return id; 32 | } 33 | public void setId(int id) { 34 | this.id = id; 35 | } 36 | public String getItemname() { 37 | return itemname; 38 | } 39 | public void setItemname(String itemname) { 40 | this.itemname = itemname; 41 | } 42 | public String getItemtype() { 43 | return itemtype; 44 | } 45 | public void setItemtype(String itemtype) { 46 | this.itemtype = itemtype; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.resizable.css: -------------------------------------------------------------------------------- 1 | /* Resizable 2 | ----------------------------------*/ 3 | .ui-resizable { position: relative;} 4 | .ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;} 5 | .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } 6 | .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; } 7 | .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; } 8 | .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; } 9 | .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; } 10 | .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; } 11 | .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; } 12 | .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; } 13 | .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;} -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamesetservices/FieldjudgeService.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.gamesetservices; 2 | 3 | import java.util.ArrayList; 4 | 5 | import cn.edu.hbcit.smms.dao.gamesetdao.FieldjudgeDAO; 6 | 7 | public class FieldjudgeService { 8 | FieldjudgeDAO fieldjudgeDAO=new FieldjudgeDAO(); 9 | /** 10 | * 11 | *修改小框中田赛裁判类 12 | * @return 13 | */ 14 | public boolean updateFiledItemJudge( int fildJudgeId,String judge_1,String judge_2,String judge_3){ 15 | return fieldjudgeDAO.updateFiledItemJudge(fildJudgeId,judge_1, judge_2, judge_3); 16 | } 17 | /** 18 | * 根据gp2itid查询田赛裁判类显示在小框中 19 | * @param itemname 20 | * @return 21 | */ 22 | public ArrayList selectFiledItemJudgeByItemname(int gp2itid) { 23 | return fieldjudgeDAO.selectFiledItemJudgeByItemname(gp2itid); 24 | } 25 | /** 26 | * 根据sportsid查询所有学生部门 27 | * @return 28 | */ 29 | public ArrayList selectTeaDepartmentBySportsid(int sportsid) { 30 | return fieldjudgeDAO.selectStuDepartmentBySportsid(sportsid); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/ManageGroupPJ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright(C) 2004, XXXXXXXX. 3 | * 4 | * 模块名称: AAAAAAAAAAA 5 | * 子模块名称: BBBBBBBBBBB 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2004/12/12 0.1 张 三 新建 12 | * 2005/02/05 0.1 李 四 Bug修正 13 | */ 14 | 15 | package cn.edu.hbcit.smms.pojo; 16 | /** 17 | * 组别类 18 | * 19 | *简要说明 20 | * 21 | *详细解释。 22 | * @author 吴国法 23 | * @version 1.00 2012/06/11 新建 24 | */ 25 | 26 | public class ManageGroupPJ { 27 | private int id; 28 | private String groupname; 29 | private String grouptype; 30 | public int getId() { 31 | return id; 32 | } 33 | public void setId(int id) { 34 | this.id = id; 35 | } 36 | public String getGroupname() { 37 | return groupname; 38 | } 39 | public void setGroupname(String groupname) { 40 | this.groupname = groupname; 41 | } 42 | public String getGrouptype() { 43 | return grouptype; 44 | } 45 | public void setGrouptype(String grouptype) { 46 | this.grouptype = grouptype; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /.settings/com.genuitec.eclipse.j2eedt.core.prefs: -------------------------------------------------------------------------------- 1 | #Tue Jul 17 01:21:43 CST 2012 2 | defaultTldInfo=f\=http\://java.sun.com/jsf/core;http\://java.sun.com/jsf/html\=h;http\://struts.apache.org/tags-bean\=bean;http\://java.sun.com/jsp/jstl/fmt\=fmt;nested\=http\://struts.apache.org/tags-nested;bean\=http\://struts.apache.org/tags-bean;http\://java.sun.com/jsp/jstl/sql\=sql;c\=http\://java.sun.com/jsp/jstl/core;fmt\=http\://java.sun.com/jsp/jstl/fmt;http\://struts.apache.org/tags-logic\=logic;http\://java.sun.com/jsp/jstl/xml\=x;http\://java.sun.com/jsp/jstl/core\=c;logic\=http\://struts.apache.org/tags-logic;h\=http\://java.sun.com/jsf/html;http\://struts.apache.org/tags-tiles\=tiles;http\://java.sun.com/jsp/jstl/functions\=fn;tiles\=http\://struts.apache.org/tags-tiles;sql\=http\://java.sun.com/jsp/jstl/sql;http\://struts.apache.org/tags-html\=html;http\://struts.apache.org/tags-nested\=nested;html\=http\://struts.apache.org/tags-html;http\://java.sun.com/jsf/core\=f;fn\=http\://java.sun.com/jsp/jstl/functions;x\=http\://java.sun.com/jsp/jstl/xml 3 | eclipse.preferences.version=1 4 | -------------------------------------------------------------------------------- /WebRoot/center.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SMMS 5 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
   
27 | 28 | 29 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamemanageservices/GetConditonServices.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright(C) 2004, XXXXXXXX. 3 | * 4 | * 模块名称: 运动会管理系统 5 | * 子模块名称: 赛中管理 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2004/12/12 0.1 吴国法 新建 12 | */ 13 | 14 | package cn.edu.hbcit.smms.services.gamemanageservices; 15 | 16 | import java.util.ArrayList; 17 | 18 | import net.sf.json.JSONArray; 19 | 20 | import cn.edu.hbcit.smms.dao.gamemanagedao.GetCondition; 21 | 22 | /** 23 | * GetConditonServices类 24 | * 25 | *简要说明 对应 GetConditon dao 26 | * 27 | *详细解释。 28 | * @author wuguofa 29 | * @version 1.00 2012/06/11 新建 30 | */ 31 | 32 | public class GetConditonServices { 33 | 34 | public int getSportID(){ 35 | return new GetCondition().getSportID(); 36 | } 37 | 38 | public ArrayList getAllGP( int sportsid ){ 39 | return new GetCondition().getAllGP(sportsid); 40 | } 41 | 42 | public JSONArray selectItemsByGroup( String groupname ,int sportsid ){ 43 | return new GetCondition().selectItemsByGroup(groupname, sportsid); 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamemanageservices/MarkManangerBeanServices.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.gamemanageservices; 2 | 3 | import java.util.ArrayList; 4 | 5 | import cn.edu.hbcit.smms.dao.gamemanagedao.MarkManagerBean; 6 | /** 7 | * 积分管理 8 | * @author 霍立芳 9 | * 10 | */ 11 | public class MarkManangerBeanServices { 12 | /** 13 | * 获取部门名称 14 | * @return 15 | */ 16 | public ArrayList getDepart() { 17 | return new MarkManagerBean().getDepart(); 18 | } 19 | 20 | /** 21 | * 获取项目名称 22 | * @return 23 | */ 24 | public ArrayList getItem() { 25 | return new MarkManagerBean().getItem(); 26 | } 27 | /** 28 | * 获取按部门和组别查询得到的总积分 29 | * @param departId 30 | * @param groupId 31 | * @return 32 | */ 33 | public ArrayList getQuery(int departId,int groupId ) { 34 | return new MarkManagerBean().getQuery(departId, groupId); 35 | } 36 | /** 37 | * 获取按项目和组别查询得到的总积分 38 | * @param itemId 39 | * @param roleId 40 | * @return 41 | */ 42 | public ArrayList getItemQuery(int itemId,int roleId ) { 43 | return new MarkManagerBean().getItemQuery(itemId, roleId); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /WebRoot/My97DatePicker/lang/zh-cn.js: -------------------------------------------------------------------------------- 1 | var $lang={ 2 | errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?", 3 | aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], 4 | aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"], 5 | aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"], 6 | aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"], 7 | clearStr: "\u6E05\u7A7A", 8 | todayStr: "\u4ECA\u5929", 9 | okStr: "\u786E\u5B9A", 10 | updateStr: "\u786E\u5B9A", 11 | timeStr: "\u65F6\u95F4", 12 | quickStr: "\u5FEB\u901F\u9009\u62E9", 13 | err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u4E8E\u6700\u5927\u65E5\u671F!' 14 | } -------------------------------------------------------------------------------- /WebRoot/My97DatePicker/lang/zh-tw.js: -------------------------------------------------------------------------------- 1 | var $lang={ 2 | errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?", 3 | aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], 4 | aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"], 5 | aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"], 6 | aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"], 7 | clearStr: "\u6E05\u7A7A", 8 | todayStr: "\u4ECA\u5929", 9 | okStr: "\u78BA\u5B9A", 10 | updateStr: "\u78BA\u5B9A", 11 | timeStr: "\u6642\u9593", 12 | quickStr: "\u5FEB\u901F\u9078\u64C7", 13 | err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u65BC\u6700\u5927\u65E5\u671F!' 14 | } -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/GameDatePlanPojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | /** 3 | * 项目日程类 4 | * 5 | * 简要说明 6 | * 7 | * @author 田小英 8 | * @version 1.00 2012/06/26 新建 9 | * 10 | */ 11 | public class GameDatePlanPojo { 12 | private String finalDate; 13 | private String finalItem; 14 | private String groupNum; 15 | private String time; 16 | private String itemType; 17 | public String getFinalItem() { 18 | return finalItem; 19 | } 20 | public void setFinalItem(String finalItem) { 21 | this.finalItem = finalItem; 22 | } 23 | public String getGroupNum() { 24 | return groupNum; 25 | } 26 | public void setGroupNum(String groupNum) { 27 | this.groupNum = groupNum; 28 | } 29 | public String getTime() { 30 | return time; 31 | } 32 | public void setTime(String time) { 33 | this.time = time; 34 | } 35 | public String getItemType() { 36 | return itemType; 37 | } 38 | public void setItemType(String itemType) { 39 | this.itemType = itemType; 40 | } 41 | public String getFinalDate() { 42 | return finalDate; 43 | } 44 | public void setFinalDate(String finalDate) { 45 | this.finalDate = finalDate; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/ManagerMarkPJ.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class ManagerMarkPJ { 4 | private int id; 5 | private int sp2dpid; 6 | private int sum; 7 | private String departname; 8 | private String groupName; 9 | private String itemname; 10 | 11 | 12 | public String getItemname() { 13 | return itemname; 14 | } 15 | public void setItemname(String itemname) { 16 | this.itemname = itemname; 17 | } 18 | public String getDepartname() { 19 | return departname; 20 | } 21 | public void setDepartname(String departname) { 22 | this.departname = departname; 23 | } 24 | public String getGroupName() { 25 | return groupName; 26 | } 27 | public void setGroupName(String groupName) { 28 | this.groupName = groupName; 29 | } 30 | 31 | public int getId() { 32 | return id; 33 | } 34 | public void setId(int id) { 35 | this.id = id; 36 | } 37 | public int getSp2dpid() { 38 | return sp2dpid; 39 | } 40 | public void setSp2dpid(int sp2dpid) { 41 | this.sp2dpid = sp2dpid; 42 | } 43 | public int getSum() { 44 | return sum; 45 | } 46 | public void setSum(int sum) { 47 | this.sum = sum; 48 | } 49 | 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/proxool.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | smms 5 | jdbc:mysql://127.0.0.1:3306/smms 6 | 7 | 8 | com.mysql.jdbc.Driver 9 | 10 | 11 | 12 | 13 | 100 14 | 10 15 | 90000 16 | 10 17 | 5 18 | true 19 | SELECT id FROM t_scoreformat 20 | 21 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Group2itemPojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | //李玮 2012-07-19 修改 4 | public class Group2itemPojo { 5 | private int id ; 6 | private int gp2spid; 7 | private int itemid; 8 | private String matchtype; 9 | private String gp2spidItemidMatchtype; //连接三字段 10 | 11 | public int getId() { 12 | return id; 13 | } 14 | public void setId(int id) { 15 | this.id = id; 16 | } 17 | public int getGp2spid() { 18 | return gp2spid; 19 | } 20 | public void setGp2spid(int gp2spid) { 21 | this.gp2spid = gp2spid; 22 | } 23 | public int getItemid() { 24 | return itemid; 25 | } 26 | public void setItemid(int itemid) { 27 | this.itemid = itemid; 28 | } 29 | public String getMatchtype() { 30 | return matchtype; 31 | } 32 | public void setMatchtype(String matchtype) { 33 | this.matchtype = matchtype; 34 | } 35 | /** 36 | * @return the gp2spidItemidMatchtype 37 | */ 38 | public String getGp2spidItemidMatchtype() { 39 | return gp2spidItemidMatchtype; 40 | } 41 | /** 42 | * @param gp2spidItemidMatchtype the gp2spidItemidMatchtype to set 43 | */ 44 | public void setGp2spidItemidMatchtype(String gp2spidItemidMatchtype) { 45 | this.gp2spidItemidMatchtype = gp2spidItemidMatchtype; 46 | } 47 | 48 | } 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/FildJudgePojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | /** 3 | * t_fieldjudge表POJO类 4 | * 5 | * 本类的简要描述: 6 | * 7 | * @author 田小英 8 | * 9 | *@version 1.00 2012/06/26 新建 10 | */ 11 | public class FildJudgePojo { 12 | private int id; 13 | private String fildJudge1; 14 | private String fildJudge2; 15 | private String fildJudge3; 16 | private String itemName; 17 | public int getId() { 18 | return id; 19 | } 20 | public void setId(int id) { 21 | this.id = id; 22 | } 23 | public String getFildJudge1() { 24 | return fildJudge1; 25 | } 26 | public void setFildJudge1(String fildJudge1) { 27 | this.fildJudge1 = fildJudge1; 28 | } 29 | public String getFildJudge2() { 30 | return fildJudge2; 31 | } 32 | public void setFildJudge2(String fildJudge2) { 33 | this.fildJudge2 = fildJudge2; 34 | } 35 | public String getFildJudge3() { 36 | return fildJudge3; 37 | } 38 | public void setFildJudge3(String fildJudge3) { 39 | this.fildJudge3 = fildJudge3; 40 | } 41 | public String getItemName() { 42 | return itemName; 43 | } 44 | public void setItemName(String itemName) { 45 | this.itemName = itemName; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.dialog.css: -------------------------------------------------------------------------------- 1 | /* Dialog 2 | ----------------------------------*/ 3 | .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; } 4 | .ui-dialog .ui-dialog-titlebar { padding: .5em 1em .3em; position: relative; } 5 | .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .2em 0; } 6 | .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } 7 | .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } 8 | .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } 9 | .ui-dialog .ui-dialog-content { border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; } 10 | .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } 11 | .ui-dialog .ui-dialog-buttonpane button { float: right; margin: .5em .4em .5em 0; cursor: pointer; padding: .2em .6em .3em .6em; line-height: 1.4em; width:auto; overflow:visible; } 12 | .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } 13 | .ui-draggable .ui-dialog-titlebar { cursor: move; } 14 | -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.tabs.css: -------------------------------------------------------------------------------- 1 | /* Tabs 2 | ----------------------------------*/ 3 | .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ 4 | .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; } 5 | .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; } 6 | .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; } 7 | .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; } 8 | .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; } 9 | .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ 10 | .ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; } 11 | .ui-tabs .ui-tabs-hide { display: none !important; } 12 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Group2Sports.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, 河北工业职业技术学院计算机系2010软件专业. 3 | * 4 | * 模块名称: 5 | * 子模块名称: 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 2012-7-17 0.1 李玮 新建 11 | */ 12 | package cn.edu.hbcit.smms.pojo; 13 | 14 | /** 15 | * group2sports POJO类 16 | * 简要说明: 17 | * @author lw 18 | * @version 1.00 2012-7-17下午11:17:42 新建 19 | */ 20 | 21 | public class Group2Sports { 22 | 23 | private int id; 24 | private int sportsid; 25 | private int groupid; 26 | /** 27 | * @return the id 28 | */ 29 | public int getId() { 30 | return id; 31 | } 32 | /** 33 | * @param id the id to set 34 | */ 35 | public void setId(int id) { 36 | this.id = id; 37 | } 38 | /** 39 | * @return the sportsid 40 | */ 41 | public int getSportsid() { 42 | return sportsid; 43 | } 44 | /** 45 | * @param sportsid the sportsid to set 46 | */ 47 | public void setSportsid(int sportsid) { 48 | this.sportsid = sportsid; 49 | } 50 | /** 51 | * @return the groupid 52 | */ 53 | public int getGroupid() { 54 | return groupid; 55 | } 56 | /** 57 | * @param groupid the groupid to set 58 | */ 59 | public void setGroupid(int groupid) { 60 | this.groupid = groupid; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /WebRoot/show_update_runway.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 7 | 8 | 修改运动员跑道 9 | 10 | 11 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | 33 | 34 | 35 |
第几组部门名称(跑道)
${ temp.groupNum }${ temp.players }
36 | 返回 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /WebRoot/js/jquery.alerts.css: -------------------------------------------------------------------------------- 1 | #popup_container { 2 | font-family: Arial, sans-serif; 3 | font-size: 12px; 4 | min-width: 300px; /* Dialog will be no smaller than this */ 5 | max-width: 600px; /* Dialog will wrap after this width */ 6 | background: #FFF; 7 | border: solid 5px #999; 8 | color: #000; 9 | -moz-border-radius: 5px; 10 | -webkit-border-radius: 5px; 11 | border-radius: 5px; 12 | } 13 | 14 | #popup_title { 15 | font-size: 14px; 16 | font-weight: bold; 17 | text-align: center; 18 | line-height: 1.75em; 19 | color: #666; 20 | background: #CCC url(images/title.gif) top repeat-x; 21 | border: solid 1px #FFF; 22 | border-bottom: solid 1px #999; 23 | cursor: default; 24 | padding: 0em; 25 | margin: 0em; 26 | } 27 | 28 | #popup_content { 29 | background: 16px 16px no-repeat url(images/info.gif); 30 | padding: 1em 1.75em; 31 | margin: 0em; 32 | } 33 | 34 | #popup_content.alert { 35 | background-image: url(images/info.gif); 36 | } 37 | 38 | #popup_content.confirm { 39 | background-image: url(images/important.gif); 40 | } 41 | 42 | #popup_content.prompt { 43 | background-image: url(images/help.gif); 44 | } 45 | 46 | #popup_message { 47 | padding-left: 48px; 48 | } 49 | 50 | #popup_panel { 51 | text-align: center; 52 | margin: 1em 0em 0em 1em; 53 | } 54 | 55 | #popup_prompt { 56 | margin: .5em 0em; 57 | } -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Sports2department.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class Sports2department { 4 | private int id; 5 | private int sportsid; 6 | private int departid; 7 | private int departtype; 8 | private String teamleader; 9 | private String coach; 10 | private String doctor; 11 | public int getId() { 12 | return id; 13 | } 14 | public void setId(int id) { 15 | this.id = id; 16 | } 17 | public int getSportsid() { 18 | return sportsid; 19 | } 20 | public void setSportsid(int sportsid) { 21 | this.sportsid = sportsid; 22 | } 23 | public int getDepartid() { 24 | return departid; 25 | } 26 | public void setDepartid(int departid) { 27 | this.departid = departid; 28 | } 29 | public String getTeamleader() { 30 | return teamleader; 31 | } 32 | public void setTeamleader(String teamleader) { 33 | this.teamleader = teamleader; 34 | } 35 | public String getCoach() { 36 | return coach; 37 | } 38 | public void setCoach(String coach) { 39 | this.coach = coach; 40 | } 41 | public String getDoctor() { 42 | return doctor; 43 | } 44 | public void setDoctor(String doctor) { 45 | this.doctor = doctor; 46 | } 47 | /** 48 | * @return the departtype 49 | */ 50 | public int getDeparttype() { 51 | return departtype; 52 | } 53 | /** 54 | * @param departtype the departtype to set 55 | */ 56 | public void setDeparttype(int departtype) { 57 | this.departtype = departtype; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/createprogramservices/WordDemoService.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.createprogramservices; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import cn.edu.hbcit.smms.dao.createprogramdao.SelectGameInfoDao; 7 | 8 | 9 | 10 | public class WordDemoService { 11 | 12 | SelectGameInfoDao selectInfo = new SelectGameInfoDao(); 13 | public Map getSplitOfficialMember(int sportId) { 14 | return selectInfo.getSplitOfficialMember(sportId); 15 | } 16 | public Map getSplitFildJudge(int sportId){ 17 | return selectInfo.getSplitFildJudge(sportId); 18 | } 19 | public Map getGameDate(int sportId) { 20 | return selectInfo.getGameDate(sportId); 21 | } 22 | public Map getItemByMale(int sportId) { 23 | return selectInfo.getItemByMale(sportId); 24 | } 25 | public Map getItemByFemale(int sportId) { 26 | return selectInfo.getItemByFemale(sportId); 27 | } 28 | public List getStudentPlayerNumber(int sportId){ 29 | return selectInfo.getStudentPlayerNumber(sportId); 30 | } 31 | public List getTeacherPlayerNumber(int sportId){ 32 | return selectInfo.getTeacherPlayerNumber(sportId); 33 | } 34 | public Map getGameDateInfo(int sportId){ 35 | return selectInfo.getGameDateInfo(sportId); 36 | } 37 | public List getGameRecord(){ 38 | return selectInfo.getGameRecord(); 39 | } 40 | public Map SlipStudentJudgeMember(int sportId){ 41 | return selectInfo.SlipStudentJudgeMember(sportId); 42 | } 43 | 44 | 45 | 46 | } -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/dao/systemmanagedao/RightsDAO.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, 河北工业职业技术学院. 3 | * 4 | * 模块名称: 系统设置 5 | * 子模块名称: 权限管理 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2012-06-06 V1.0 李玮 新建 12 | */ 13 | package cn.edu.hbcit.smms.dao.systemmanagedao; 14 | 15 | import cn.edu.hbcit.smms.util.UtilTools; 16 | /** 17 | * 权限控制类 18 | * 19 | * 本类的简要描述: 20 | * 控制系统权限 21 | * 0-系统设置 22 | * 1-赛前设置 23 | * 2-秩序册生成 24 | * 3-赛中管理 25 | * 4-赛事报名 26 | * 27 | * @author Administrator 28 | * @version 1.00 2012-6-6 新建类 29 | */ 30 | 31 | public class RightsDAO { 32 | 33 | /** 34 | * 检查权限 35 | * @param userPurview 36 | * @param optPurview 37 | * @return boolean 38 | * userPurview是用户具有的总权限 39 | * optPurview是一个操作要求的权限为一个整数(没有经过权的!) 40 | */ 41 | public boolean checkPower(int userPurview, int optPurview){ 42 | int purviewValue = (int)Math.pow(2, optPurview); 43 | return (userPurview & purviewValue) == purviewValue; 44 | } 45 | 46 | /** 47 | * 获取权限加权和 48 | * @param purviewStr 49 | * @return 50 | */ 51 | public int getPower(String[] purviewStr ){ 52 | UtilTools ut = new UtilTools(); 53 | int sum = 0; 54 | for(int i=0; i < purviewStr.length; i++){ 55 | //如果purviewStr[i]内的元素为数字类型 56 | if(ut.isNumeric(purviewStr[i])){ 57 | sum += (int)Math.pow(2, Integer.parseInt(purviewStr[i])); 58 | } 59 | } 60 | return sum; 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /WebRoot/js/GameManagePrintScan.js: -------------------------------------------------------------------------------- 1 | 2 | $(function (){//下载文档方法 3 | $("#printScan").click(function(){ 4 | var groupname =$("#group").find("option:selected").text(); 5 | var groupvalue =$("#group").find("option:selected").val(); 6 | var finalitemname = $("#item").find("option:selected").text(); 7 | var finalitemtype = $("#item").find("option:selected").val(); 8 | if(groupvalue == "0"){ 9 | Dialog.alert("请选择组别"); 10 | 11 | }else if(finalitemtype == "0"){ 12 | Dialog.alert("请选择项目"); 13 | }else{ 14 | $.ajax( { 15 | url :"servlet/GameManageCheckTablePrintScanServlet", 16 | type : 'get', 17 | contentType : "application/json;charset=utf-8", 18 | dataType : 'json', 19 | data : {finalitemname:finalitemname,finalitemtype:finalitemtype,groupname:groupname}, 20 | success : function(json) { 21 | if(json==1){ 22 | if(groupname+finalitemname+finalitemtype==$("#href a").text()){ 23 | Dialog.alert("已生成此链接,请点击下面的连接可以下载文档!!!!!"); 24 | 25 | } 26 | else{ 27 | Dialog.alert("生成成功,下载请点击此链接"); 28 | var a = $(""+groupname+finalitemname+finalitemtype+"
"); 29 | $("#href").append(a); 30 | } 31 | }else 32 | { 33 | Dialog.alert("这个文档还未生成,不能下载!!!!!!"); 34 | 35 | } 36 | 37 | }, 38 | error : function(xhr, status, errorThrown) { 39 | alert("errorThrown=" + errorThrown); 40 | 41 | } 42 | }); 43 | } 44 | 45 | }); 46 | 47 | }); -------------------------------------------------------------------------------- /WebRoot/css/subcss.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin-left: 3px; 3 | margin-top: 0px; 4 | margin-right: 3px; 5 | margin-bottom: 0px; 6 | } 7 | .pageTitle { 8 | color: #e1e2e3; 9 | font-size: 12px; 10 | } 11 | .tableTitle {color: #000000; font-weight:bold; font-size: 12px; background-color:#d3eaef;font-family:"宋体","微软雅黑"; } 12 | .tableContent {color: #344b50;font-size: 12px;background-color:#FFFFFF; text-align:center; line-height:1.5em;} 13 | .pageJump { 14 | font-size: 12px; 15 | color: #295568; 16 | } 17 | a:link {text-decoration: none; font-family: AdobeSm; color: #344b50 } 18 | a:visited {text-decoration: none; color: #344b50 } 19 | A:hover {COLOR: green; FONT-FAMILY: "宋体,MingLiU"; TEXT-DECORATION: underline} 20 | /* 21 | 22 | body {font-size: 9pt; font-family: "宋体,MingLiU, Arial";color: #000000} 23 | TD {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000;table-layout:fixed;word-break:break-all} 24 | p {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000} 25 | input {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000} 26 | body {margin-top: 0; margin-bottom: 0;margin-left:0;margin-right:0; color: #000000} 27 | select {FONT-SIZE: 9PT;} 28 | option {FONT-SIZE: 9pt;} 29 | textarea {FONT-SIZE: 9pt;} 30 | */ 31 | 32 | .stripe_tb tr.alt td{background:#ecf6fc} 33 | .stripe_tb tr.over td{background:#FEF3D1;} 34 | .title { TEXT-ALIGN: center;COLOR: #2b5cbb; FONT-SIZE: 18px; font-family:"微软雅黑","黑体", "宋体";} -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/SportRecordPojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | /** 3 | *t_record表 的pojo 4 | * 5 | * 类的简要说明 6 | * @author 田小英 7 | * 8 | * @version 1.00 2012-6-26 新建类 9 | * 10 | */ 11 | public class SportRecordPojo { 12 | private String sex; 13 | private String itemName; 14 | private String score; 15 | private String sporter; 16 | private String departName; 17 | private String sportName; 18 | private String recordTime; 19 | public String getSex() { 20 | return sex; 21 | } 22 | public void setSex(String sex) { 23 | this.sex = sex; 24 | } 25 | public String getItemName() { 26 | return itemName; 27 | } 28 | public void setItemName(String itemName) { 29 | this.itemName = itemName; 30 | } 31 | public String getScore() { 32 | return score; 33 | } 34 | public void setScore(String score) { 35 | this.score = score; 36 | } 37 | public String getSporter() { 38 | return sporter; 39 | } 40 | public void setSporter(String sporter) { 41 | this.sporter = sporter; 42 | } 43 | public String getDepartName() { 44 | return departName; 45 | } 46 | public void setDepartName(String departName) { 47 | this.departName = departName; 48 | } 49 | public String getSportName() { 50 | return sportName; 51 | } 52 | public void setSportName(String sportName) { 53 | this.sportName = sportName; 54 | } 55 | public String getRecordTime() { 56 | return recordTime; 57 | } 58 | public void setRecordTime(String recordTime) { 59 | this.recordTime = recordTime; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.core.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery UI CSS Framework 3 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) 4 | * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. 5 | */ 6 | 7 | /* Layout helpers 8 | ----------------------------------*/ 9 | .ui-helper-hidden { display: none; } 10 | .ui-helper-hidden-accessible { position: absolute; left: -99999999px; } 11 | .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } 12 | .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } 13 | .ui-helper-clearfix { display: inline-block; } 14 | /* required comment for clearfix to work in Opera \*/ 15 | * html .ui-helper-clearfix { height:1%; } 16 | .ui-helper-clearfix { display:block; } 17 | /* end clearfix */ 18 | .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } 19 | 20 | 21 | /* Interaction Cues 22 | ----------------------------------*/ 23 | .ui-state-disabled { cursor: default !important; } 24 | 25 | 26 | /* Icons 27 | ----------------------------------*/ 28 | 29 | /* states and images */ 30 | .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } 31 | 32 | 33 | /* Misc visuals 34 | ----------------------------------*/ 35 | 36 | /* Overlays */ 37 | .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } 38 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/PlayerPojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | /** 3 | * player表POJO类 4 | * 5 | * 本类的简要描述: 6 | * 7 | * @author 李兆珠 8 | * @version 1.00 2012-6-20 新建类 9 | */ 10 | public class PlayerPojo { 11 | private int id; 12 | private int sp2dpid; 13 | private String playernum; 14 | private String playername; 15 | private short playersex; 16 | private int groupid; 17 | private String registitem; 18 | public int getId() { 19 | return id; 20 | } 21 | public void setId(int id) { 22 | this.id = id; 23 | } 24 | public int getSp2dpid() { 25 | return sp2dpid; 26 | } 27 | public void setSp2dpid(int sp2dpid) { 28 | this.sp2dpid = sp2dpid; 29 | } 30 | public String getPlayernum() { 31 | return playernum; 32 | } 33 | public void setPlayernum(String playernum) { 34 | this.playernum = playernum; 35 | } 36 | public String getPlayername() { 37 | return playername; 38 | } 39 | public void setPlayername(String playername) { 40 | this.playername = playername; 41 | } 42 | public short getPlayersex() { 43 | return playersex; 44 | } 45 | public void setPlayersex(short playersex) { 46 | this.playersex = playersex; 47 | } 48 | public int getGroupid() { 49 | return groupid; 50 | } 51 | public void setGroupid(int groupid) { 52 | this.groupid = groupid; 53 | } 54 | public String getRegistitem() { 55 | return registitem; 56 | } 57 | public void setRegistitem(String registitem) { 58 | this.registitem = registitem; 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/PlayerNum.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | //李玮 2012.9.18添加三个字段 3 | public class PlayerNum { 4 | private String beginnum; 5 | private String endnum; 6 | private String departshortname; 7 | private int numtype; 8 | private int id; 9 | private String playerNum; 10 | 11 | public String getPlayerNum() { 12 | return playerNum; 13 | } 14 | public void setPlayerNum(String playerNum) { 15 | this.playerNum = playerNum; 16 | } 17 | public String getBeginnum() { 18 | return beginnum; 19 | } 20 | public void setBeginnum(String beginnum) { 21 | this.beginnum = beginnum; 22 | } 23 | public String getEndnum() { 24 | return endnum; 25 | } 26 | public void setEndnum(String endnum) { 27 | this.endnum = endnum; 28 | } 29 | /** 30 | * @return the departshortname 31 | */ 32 | public String getDepartshortname() { 33 | return departshortname; 34 | } 35 | /** 36 | * @param departshortname the departshortname to set 37 | */ 38 | public void setDepartshortname(String departshortname) { 39 | this.departshortname = departshortname; 40 | } 41 | /** 42 | * @return the numtype 43 | */ 44 | public int getNumtype() { 45 | return numtype; 46 | } 47 | /** 48 | * @param numtype the numtype to set 49 | */ 50 | public void setNumtype(int numtype) { 51 | this.numtype = numtype; 52 | } 53 | /** 54 | * @return the id 55 | */ 56 | public int getId() { 57 | return id; 58 | } 59 | /** 60 | * @param id the id to set 61 | */ 62 | public void setId(int id) { 63 | this.id = id; 64 | } 65 | 66 | 67 | } 68 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | hbcitsports 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator 25 | 26 | 27 | 28 | 29 | com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator 30 | 31 | 32 | 33 | 34 | org.eclipse.wst.validation.validationbuilder 35 | 36 | 37 | 38 | 39 | com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder 40 | 41 | 42 | 43 | 44 | 45 | com.genuitec.eclipse.ast.deploy.core.deploymentnature 46 | com.genuitec.eclipse.j2eedt.core.webnature 47 | org.eclipse.jdt.core.javanature 48 | org.eclipse.wst.jsdt.core.jsNature 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/T_finalitemPojo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class T_finalitemPojo { 4 | 5 | private int id; 6 | private int gp2itid; 7 | private String finalitemname; 8 | private String finalitemtype; 9 | private String date; 10 | private String time; 11 | private int groupnum; 12 | private int promotionnum; 13 | 14 | public int getId() { 15 | return id; 16 | } 17 | public void setId(int id) { 18 | this.id = id; 19 | } 20 | public int getGp2itid() { 21 | return gp2itid; 22 | } 23 | public void setGp2itid(int gp2itid) { 24 | this.gp2itid = gp2itid; 25 | } 26 | public String getFinalitemname() { 27 | return finalitemname; 28 | } 29 | public void setFinalitemname(String finalitemname) { 30 | this.finalitemname = finalitemname; 31 | } 32 | public String getFinalitemtype() { 33 | return finalitemtype; 34 | } 35 | public void setFinalitemtype(String finalitemtype) { 36 | this.finalitemtype = finalitemtype; 37 | } 38 | public String getDate() { 39 | return date; 40 | } 41 | public void setDate(String date) { 42 | this.date = date; 43 | } 44 | public String getTime() { 45 | return time; 46 | } 47 | public void setTime(String time) { 48 | this.time = time; 49 | } 50 | public int getGroupnum() { 51 | return groupnum; 52 | } 53 | public void setGroupnum(int groupnum) { 54 | this.groupnum = groupnum; 55 | } 56 | public int getPromotionnum() { 57 | return promotionnum; 58 | } 59 | public void setPromotionnum(int promotionnum) { 60 | this.promotionnum = promotionnum; 61 | } 62 | 63 | 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/QueryMarkPoJo.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | import java.util.ArrayList; 4 | 5 | public class QueryMarkPoJo { 6 | 7 | private int playerid;//运动员id 8 | private int studetsMarks;//学生实得积分 9 | private int teacherMarks;//教工实得积分 10 | private String depName;//系别名称 11 | private int finalStudentsSum;//学生最终积分 12 | private int finalTeacherSum;//教工最终积分 13 | private int departid; 14 | 15 | public int getStudetsMarks() { 16 | return studetsMarks; 17 | } 18 | public void setStudetsMarks(int studetsMarks) { 19 | this.studetsMarks = studetsMarks; 20 | } 21 | public int getTeacherMarks() { 22 | return teacherMarks; 23 | } 24 | public void setTeacherMarks(int teacherMarks) { 25 | this.teacherMarks = teacherMarks; 26 | } 27 | 28 | public int getFinalStudentsSum() { 29 | return finalStudentsSum; 30 | } 31 | public void setFinalStudentsSum(int finalStudentsSum) { 32 | this.finalStudentsSum = finalStudentsSum; 33 | } 34 | public int getFinalTeacherSum() { 35 | return finalTeacherSum; 36 | } 37 | public void setFinalTeacherSum(int finalTeacherSum) { 38 | this.finalTeacherSum = finalTeacherSum; 39 | } 40 | public int getPlayerid() { 41 | return playerid; 42 | } 43 | public void setPlayerid(int playerid) { 44 | this.playerid = playerid; 45 | } 46 | public String getDepName() { 47 | return depName; 48 | } 49 | public void setDepName(String depName) { 50 | this.depName = depName; 51 | } 52 | public int getDepartid() { 53 | return departid; 54 | } 55 | public void setDepartid(int departid) { 56 | this.departid = departid; 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Item.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | /** 3 | * @version 2012-7-18下午10:32:07 修改 BY 李玮 4 | */ 5 | public class Item { 6 | private int id; 7 | private int itemid; 8 | private String itemname; 9 | private String itemtype; 10 | private String format; 11 | public String getItemtype() { 12 | return itemtype; 13 | } 14 | public void setItemtype(String itemtype) { 15 | this.itemtype = itemtype; 16 | } 17 | private int scoreformatid; 18 | 19 | public String getItemname() { 20 | return itemname; 21 | } 22 | public void setItemname(String itemname) { 23 | this.itemname = itemname; 24 | } 25 | 26 | public int getId() { 27 | return id; 28 | } 29 | public void setId(int id) { 30 | this.id = id; 31 | } 32 | /** 33 | * @return the itemtype 34 | */ 35 | 36 | /** 37 | * @return the scoreformatid 38 | */ 39 | public int getScoreformatid() { 40 | return scoreformatid; 41 | } 42 | /** 43 | * @param scoreformatid the scoreformatid to set 44 | */ 45 | public void setScoreformatid(int scoreformatid) { 46 | this.scoreformatid = scoreformatid; 47 | } 48 | /** 49 | * @return the itemid 50 | */ 51 | public int getItemid() { 52 | return itemid; 53 | } 54 | /** 55 | * @param itemid the itemid to set 56 | */ 57 | public void setItemid(int itemid) { 58 | this.itemid = itemid; 59 | } 60 | /** 61 | * @return the format 62 | */ 63 | public String getFormat() { 64 | return format; 65 | } 66 | /** 67 | * @param format the format to set 68 | */ 69 | public void setFormat(String format) { 70 | this.format = format; 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Department.java: -------------------------------------------------------------------------------- 1 | 2 | package cn.edu.hbcit.smms.pojo; 3 | 4 | /** 5 | * department表POJO类 6 | * 7 | * 本类的简要描述: 8 | * 9 | * @author lw 10 | * @version 1.00 2012-6-13 新建类 11 | */ 12 | 13 | public class Department { 14 | 15 | private int id; 16 | private String departmentName; 17 | private String departmentShortName; 18 | private int departmentType; 19 | /** 20 | * @return the id 21 | */ 22 | public int getId() { 23 | return id; 24 | } 25 | /** 26 | * @param id the id to set 27 | */ 28 | public void setId(int id) { 29 | this.id = id; 30 | } 31 | /** 32 | * @return the departmentName 33 | */ 34 | public String getDepartmentName() { 35 | return departmentName; 36 | } 37 | /** 38 | * @param departmentName the departmentName to set 39 | */ 40 | public void setDepartmentName(String departmentName) { 41 | this.departmentName = departmentName; 42 | } 43 | /** 44 | * @return the departmentShortName 45 | */ 46 | public String getDepartmentShortName() { 47 | return departmentShortName; 48 | } 49 | /** 50 | * @param departmentShortName the departmentShortName to set 51 | */ 52 | public void setDepartmentShortName(String departmentShortName) { 53 | this.departmentShortName = departmentShortName; 54 | } 55 | /** 56 | * @return the departmentType 57 | */ 58 | public int getDepartmentType() { 59 | return departmentType; 60 | } 61 | /** 62 | * @param departmentType the departmentType to set 63 | */ 64 | public void setDepartmentType(int departmentType) { 65 | this.departmentType = departmentType; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/QueryAllMarksPlayerMsg.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class QueryAllMarksPlayerMsg { 4 | 5 | private String groupname; 6 | private String itemname; 7 | private String playername; 8 | private String playersex; 9 | private String score; 10 | private int marks; 11 | private int position; 12 | private String recordlevel; 13 | public String getGroupname() { 14 | return groupname; 15 | } 16 | public void setGroupname(String groupname) { 17 | this.groupname = groupname; 18 | } 19 | public String getItemname() { 20 | return itemname; 21 | } 22 | public void setItemname(String itemname) { 23 | this.itemname = itemname; 24 | } 25 | public String getPlayername() { 26 | return playername; 27 | } 28 | public void setPlayername(String playername) { 29 | this.playername = playername; 30 | } 31 | public String getPlayersex() { 32 | return playersex; 33 | } 34 | public void setPlayersex(String playersex) { 35 | this.playersex = playersex; 36 | } 37 | public String getScore() { 38 | return score; 39 | } 40 | public void setScore(String score) { 41 | this.score = score; 42 | } 43 | public int getMarks() { 44 | return marks; 45 | } 46 | public void setMarks(int marks) { 47 | this.marks = marks; 48 | } 49 | public int getPosition() { 50 | return position; 51 | } 52 | public void setPosition(int position) { 53 | this.position = position; 54 | } 55 | public String getRecordlevel() { 56 | return recordlevel; 57 | } 58 | public void setRecordlevel(String recordlevel) { 59 | this.recordlevel = recordlevel; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/dao/databasedao/DBTest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package cn.edu.hbcit.smms.dao.databasedao; 5 | 6 | import java.sql.Connection; 7 | import java.sql.ResultSet; 8 | import java.sql.SQLException; 9 | import java.sql.Statement; 10 | import org.apache.log4j.Logger; 11 | 12 | /* 13 | * Copyright(C) 2012, 河北工业职业技术学院计算机系2010软件专业. 14 | * 15 | * 模块名称: 数据库连接池操作测试 16 | * 子模块名称: 17 | * 18 | * 备注: 19 | * 20 | * 修改历史: 21 | * 时间 版本号 姓名 修改内容 22 | * 23 | */ 24 | /** 25 | * @author liwei 26 | * 27 | */ 28 | public class DBTest { 29 | protected final Logger log = Logger.getLogger(DBTest.class.getName()); 30 | 31 | /** 32 | * 数据库测试类 33 | * 34 | *简要说明 35 | * 36 | *详细解释。 37 | * @author 李玮 38 | * @version 1.00 2012/6/4 新建 39 | */ 40 | // public void getQuery() { 41 | // DBConn db = new DBConn(); 42 | // try { 43 | // Connection conn = db.getConn(); 44 | // if(conn != null){ 45 | // Statement statement = conn.createStatement(); 46 | // ResultSet rs = statement.executeQuery("select * from tptitle"); 47 | // int c = rs.getMetaData().getColumnCount(); 48 | // while(rs.next()){ 49 | // System.out.println(); 50 | // for(int i=1;i<=c;i++){ 51 | // log.debug(rs.getObject(i)); 52 | // //System.out.print(rs.getObject(i)); 53 | // } 54 | // } 55 | // rs.close(); 56 | // } 57 | // db.freeConnection(conn); 58 | // } catch (SQLException e) { 59 | // e.printStackTrace(); 60 | // } 61 | // 62 | // } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Player.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | public class Player { 4 | int id; 5 | int sp2dpid; 6 | String playernum; 7 | String playername; 8 | boolean playersex; 9 | int groupid ; 10 | String registitem; 11 | int numid; 12 | public int getNumid() { 13 | return numid; 14 | } 15 | public void setNumid(int numid) { 16 | this.numid = numid; 17 | } 18 | public int getId() { 19 | return id; 20 | } 21 | public void setId(int id) { 22 | this.id = id; 23 | } 24 | public int getSp2dpid() { 25 | return sp2dpid; 26 | } 27 | public void setSp2dpid(int sp2dpid) { 28 | this.sp2dpid = sp2dpid; 29 | } 30 | public String getPlayernum() { 31 | return playernum; 32 | } 33 | public void setPlayernum(String playernum) { 34 | this.playernum = playernum; 35 | } 36 | public String getPlayername() { 37 | return playername; 38 | } 39 | public void setPlayername(String playername) { 40 | this.playername = playername; 41 | } 42 | public boolean isPlayersex() { 43 | return playersex; 44 | } 45 | public void setPlayersex(boolean playersex) { 46 | this.playersex = playersex; 47 | } 48 | public int getGroupid() { 49 | return groupid; 50 | } 51 | public void setGroupid(int groupid) { 52 | this.groupid = groupid; 53 | } 54 | public String getRegistitem() { 55 | return registitem; 56 | } 57 | public void setRegistitem(String registitem) { 58 | this.registitem = registitem; 59 | } 60 | String groupname; 61 | public String getGroupname() { 62 | return groupname; 63 | } 64 | public void setGroupname(String groupname) { 65 | this.groupname = groupname; 66 | } 67 | boolean grouptype; 68 | public boolean isGrouptype() { 69 | return grouptype; 70 | } 71 | public void setGrouptype(boolean grouptype) { 72 | this.grouptype = grouptype; 73 | } 74 | 75 | 76 | 77 | 78 | 79 | } 80 | -------------------------------------------------------------------------------- /WebRoot/downloads.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*,java.io.*,java.net.*" contentType="application/x-msdownload" pageEncoding="utf-8"%> 2 | 3 | 4 | 5 | 下载 6 | 7 | 8 | 9 | 10 | <% 11 | response.reset();//可以加也可以不加 12 | response.setContentType("application/x-download"); 13 | String file =(String) session.getAttribute("file"); 14 | String nihao = new String(request.getParameter("nihao").getBytes("ISO-8859-1"),"UTF-8"); 15 | // System.out.println("nihao=============="+nihao); 16 | //System.out.println("file=============="+file); 17 | 18 | //nihao = URLEncoder.encode(nihao,"utf-8"); 19 | response.addHeader("Content-Disposition","attachment;filename=" + new String(nihao.getBytes("UTF-8"),"ISO-8859-1")+".doc"); 20 | 21 | OutputStream outp = null; 22 | FileInputStream in = null; 23 | try 24 | { 25 | outp = response.getOutputStream(); 26 | in = new FileInputStream(file+nihao+".doc"); 27 | 28 | byte[] b = new byte[1024]; 29 | int i = 0; 30 | 31 | while((i = in.read(b)) > 0) 32 | { 33 | outp.write(b, 0, i); 34 | } 35 | outp.flush(); 36 | } 37 | catch(Exception e) 38 | { 39 | // System.out.println("Error!"); 40 | e.printStackTrace(); 41 | } 42 | finally 43 | { 44 | if(in != null) 45 | { 46 | in.close(); 47 | in = null; 48 | } 49 | if(outp != null) 50 | { 51 | outp.close(); 52 | outp = null; 53 | } 54 | } 55 | %> 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/dao/createprogramdao/SetWordConnUtil.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.dao.createprogramdao; 2 | 3 | import java.sql.Connection; 4 | import java.sql.PreparedStatement; 5 | import java.sql.ResultSet; 6 | import java.sql.SQLException; 7 | import java.util.ArrayList; 8 | 9 | import org.apache.log4j.Logger; 10 | 11 | import cn.edu.hbcit.smms.dao.databasedao.DBConn; 12 | 13 | /** 14 | * 15 | * @author 韩鑫鹏 16 | * 17 | */ 18 | public class SetWordConnUtil { 19 | 20 | protected final Logger log = Logger.getLogger(DataManagerDAO.class.getName()); 21 | DBConn db = new DBConn(); 22 | 23 | /** 24 | * 根据finalitemid查询每个组的分组情况 25 | * @param finalitemid 26 | * @return int[] 27 | */ 28 | public int[] slectGroupInfoByFid(int finalitemid){ 29 | ArrayList groupInfo = new ArrayList(); 30 | String sql = "SELECT COUNT(*) FROM t_match WHERE finalitemid = ? GROUP BY teamnum ORDER BY teamnum"; 31 | try { 32 | Connection conn = db.getConn(); 33 | if(conn != null){ 34 | ResultSet rs = null; 35 | PreparedStatement statement = conn.prepareStatement(sql); 36 | statement.setInt(1, finalitemid); 37 | rs = statement.executeQuery(); 38 | while(rs.next()){ 39 | String pnum= rs.getInt(1)+""; 40 | groupInfo.add(pnum); 41 | } 42 | rs.close(); 43 | } 44 | 45 | db.freeConnection(conn); 46 | }catch (SQLException e) { 47 | e.printStackTrace(); } 48 | int[] newgroupInfo = new int[groupInfo.size()]; 49 | for (int i = 0; i < groupInfo.size(); i++){ 50 | newgroupInfo[i] = Integer.parseInt(groupInfo.get(i).toString().trim()); 51 | } 52 | return newgroupInfo; 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/QueryPageData.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | /* 3 | * Copyright(C) 2004, XXXXXXXX. 4 | * 5 | * 模块名称: AAAAAAAAAAA 6 | * 子模块名称: BBBBBBBBBBB 7 | * 8 | * 备注: 9 | * 10 | * 修改历史: 11 | * 时间 版本号 姓名 修改内容 12 | * 2004/12/12 0.1 张 三 新建 13 | * 2005/02/05 0.1 李 四 Bug修正 14 | */ 15 | public class QueryPageData { 16 | /** 17 | * XXXXXXXXXXXXXXXXXXXXXXXX类 18 | * 19 | *简要说明 20 | * 21 | *详细解释。 22 | * @author 袁仕杰 23 | * @version 1.00 2012/6/10
24 | */ 25 | 26 | int departid; 27 | String departname; 28 | public int getDepartid() { 29 | return departid; 30 | } 31 | public void setDepartid(int departid) { 32 | this.departid = departid; 33 | } 34 | public String getDepartname() { 35 | return departname; 36 | } 37 | public void setDepartname(String departname) { 38 | this.departname = departname; 39 | } 40 | 41 | int id; 42 | String sportsname; 43 | public int getId() { 44 | return id; 45 | } 46 | public void setId(int id) { 47 | this.id = id; 48 | } 49 | public String getSportsname() { 50 | return sportsname; 51 | } 52 | public void setSportsname(String sportsname) { 53 | this.sportsname = sportsname; 54 | } 55 | int itemid; 56 | String itemname; 57 | public int getItemid() { 58 | return itemid; 59 | } 60 | public void setItemid(int itemid) { 61 | this.itemid = itemid; 62 | } 63 | public String getItemname() { 64 | return itemname; 65 | } 66 | public void setItemname(String itemname) { 67 | this.itemname = itemname; 68 | } 69 | 70 | 71 | int groupid; 72 | String groupname; 73 | public int getGroupid() { 74 | return groupid; 75 | } 76 | public void setGroupid(int groupid) { 77 | this.groupid = groupid; 78 | } 79 | public String getGroupname() { 80 | return groupname; 81 | } 82 | public void setGroupname(String groupname) { 83 | this.groupname = groupname; 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamemanageservices/GameManageCheckTableServices.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright(C) 2012, XXXXXXXX. 3 | * 4 | * 模块名称: AAAAAAAAAAA 5 | * 子模块名称: BBBBBBBBBBB 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2004/12/12 0.1 张 三 新建 12 | * 2005/02/05 0.1 李 四 Bug修正 13 | */ 14 | package cn.edu.hbcit.smms.services.gamemanageservices; 15 | 16 | import java.io.IOException; 17 | import java.util.ArrayList; 18 | 19 | import com.lowagie.text.DocumentException; 20 | 21 | import net.sf.json.JSONArray; 22 | 23 | import cn.edu.hbcit.smms.dao.gamemanagedao.GameManageCheckTableDao; 24 | import cn.edu.hbcit.smms.dao.gamemanagedao.GameManageCheckTablePrintScanDao; 25 | 26 | /** 27 | * 赛中管理--生成检录表Services类 28 | * 29 | *暂时保存Dao里的方法 30 | * 31 | *详细解释。 32 | * @author 杨春华 33 | * @version 1.00 2011/12/07 新規作成
34 | */ 35 | 36 | public class GameManageCheckTableServices { 37 | GameManageCheckTableDao GCTD = new GameManageCheckTableDao(); 38 | GameManageCheckTablePrintScanDao printScan = new GameManageCheckTablePrintScanDao(); 39 | public ArrayList getGroupList() 40 | { 41 | return GCTD.getGroupList(); 42 | } 43 | public ArrayList getItemList(int groupid) 44 | { 45 | return GCTD.getItemList(groupid); 46 | } 47 | 48 | public boolean isScoreNull( String finalitemname ) 49 | { 50 | return GCTD.isScoreNull( finalitemname ); 51 | } 52 | public JSONArray getItemPlayerMessageAllTeam( String finalitemname ,String itemtype ){ 53 | return GCTD.getItemPlayerMessageAllTeam(finalitemname, itemtype ); 54 | } 55 | public boolean createDocContext(String file,String finalitemname,String itemType,String groupname) throws Exception{ 56 | 57 | return printScan.createDocContext(file, finalitemname, itemType,groupname); 58 | } 59 | public String getSportsName(){ 60 | return GCTD.getSportsName(); 61 | } 62 | public boolean getdate( String finalitemname,String finalitemtype){ 63 | return GCTD.getdate(finalitemname, finalitemtype); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/GameManageCheckTablePojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright(C) 2012, XXXXXXXX. 3 | * 4 | * 模块名称: AAAAAAAAAAA 5 | * 子模块名称: BBBBBBBBBBB 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2004/12/12 0.1 张 三 新建 12 | * 2005/02/05 0.1 李 四 Bug修正 13 | */ 14 | package cn.edu.hbcit.smms.pojo; 15 | /** 16 | * 赛中管理--检录表字段操作类 17 | * 18 | *封装字段 19 | * 20 | *详细解释。 21 | * @author 杨春华 22 | * @version 1.00 2011/12/07 新規作成
23 | */ 24 | 25 | public class GameManageCheckTablePojo { 26 | 27 | private String itemType; 28 | private String groupName; 29 | private int groupId; 30 | private String itemName; 31 | private String playernum; 32 | private String playername; 33 | private String playerrunway; 34 | private String score; 35 | public String getPlayernum() { 36 | return playernum; 37 | } 38 | public void setPlayernum(String playernum) { 39 | this.playernum = playernum; 40 | } 41 | public String getPlayername() { 42 | return playername; 43 | } 44 | public void setPlayername(String playername) { 45 | this.playername = playername; 46 | } 47 | public String getPlayerrunway() { 48 | return playerrunway; 49 | } 50 | public void setPlayerrunway(String playerrunway) { 51 | this.playerrunway = playerrunway; 52 | } 53 | public String getScore() { 54 | return score; 55 | } 56 | public void setScore(String score) { 57 | this.score = score; 58 | } 59 | 60 | public String getGroupName() { 61 | return groupName; 62 | } 63 | public void setGroupName(String groupName) { 64 | this.groupName = groupName; 65 | } 66 | public int getGroupId() { 67 | return groupId; 68 | } 69 | public void setGroupId(int groupId) { 70 | this.groupId = groupId; 71 | } 72 | 73 | public String getItemName() { 74 | return itemName; 75 | } 76 | public void setItemName(String itemName) { 77 | this.itemName = itemName; 78 | } 79 | public String getItemType() { 80 | return itemType; 81 | } 82 | public void setItemType(String itemType) { 83 | this.itemType = itemType; 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamequeryservices/GameQueryServices.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.gamequeryservices; 2 | 3 | import java.sql.SQLException; 4 | import java.util.ArrayList; 5 | 6 | import net.sf.json.JSONArray; 7 | 8 | import cn.edu.hbcit.smms.dao.gamequerydao.GameQueryDAO; 9 | import cn.edu.hbcit.smms.dao.gamequerydao.GameQuerySelectInfDAO; 10 | import cn.edu.hbcit.smms.dao.gamequerydao.SelectTeamLeaderDao; 11 | import cn.edu.hbcit.smms.pojo.QueryRegistitemToItems; 12 | 13 | /* 14 | * Copyright(C) 2004, XXXXXXXX. 15 | * 16 | * 模块名称: AAAAAAAAAAA 17 | * 子模块名称: BBBBBBBBBBB 18 | * 19 | * 备注: 20 | * 21 | * 修改历史: 22 | * 时间 版本号 姓名 修改内容 23 | * 24 | * 25 | */ 26 | public class GameQueryServices { 27 | /** 28 | * XXXXXXXXXXXXXXXXXXXXXXXX类 29 | * 30 | *简要说明 31 | * 32 | *详细解释。 33 | * @author 张三 34 | * @version 1.00 2011/12/07 新規作成
35 | */ 36 | GameQueryDAO gqd = new GameQueryDAO(); 37 | GameQuerySelectInfDAO gqs = new GameQuerySelectInfDAO(); 38 | SelectTeamLeaderDao stld = new SelectTeamLeaderDao(); 39 | public ArrayList getSportsName(){ 40 | return gqd.getSportsName(); 41 | } 42 | public ArrayList selectGroupBySportsId( int sportsid){ 43 | return gqd.selectGroupBySportsId(sportsid); 44 | } 45 | public ArrayList selectDepartNameInSports( int sportsid ){ 46 | return gqd.selectDepartNameInSports(sportsid); 47 | } 48 | /* 49 | public ArrayList selectItemName(){ 50 | return gqd.selectItemName(); 51 | }*/ 52 | public ArrayList selectItemNameByType( int sportsid,String itemtype){ 53 | return gqd.selectItemNameByType(sportsid, itemtype); 54 | } 55 | public JSONArray selectInQuestion(int sportsid,String sportname,int departname,int province,String itemtype,int item,String score1,String score2,String breakrecord){ 56 | return gqs.selectInQuestion(sportsid, sportname, departname, province, itemtype, item, score1, score2, breakrecord); 57 | } 58 | public JSONArray SelectTeamLeader(int sportid,int departid){ 59 | return stld.SelectTeamLeader(sportid, departid); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/dao/createprogramdao/SelectItems.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.dao.createprogramdao; 2 | 3 | /* 4 | * Copyright(C) 2012, 河北工业职业技术学院计算机系2010软件专业. 5 | * 6 | * 模块名称: 秩序册生成模块 7 | * 子模块名称: 手动调整 8 | * 9 | * 备注: 10 | * 11 | * 修改历史: 12 | * 时间 版本号 姓名 修改内容 13 | * 2012-6-25 14 | */ 15 | import java.sql.Connection; 16 | import java.sql.PreparedStatement; 17 | import java.sql.ResultSet; 18 | import java.util.ArrayList; 19 | 20 | import cn.edu.hbcit.smms.dao.databasedao.DBConn; 21 | import cn.edu.hbcit.smms.pojo.FinalitemGroup; 22 | 23 | 24 | 25 | public class SelectItems { 26 | 27 | DBConn db = new DBConn(); 28 | ResultSet rs = null; 29 | Connection conn = null; 30 | private PreparedStatement ps; 31 | 32 | public ArrayList selectItemsById(int sportsid, String itemtype) { 33 | ArrayList ItemsList = new ArrayList(); 34 | 35 | // ArrayList ItemsId = new ArrayList(); 36 | // ArrayList List = new ArrayList(); 37 | // FinalitemGroup fg=new FinalitemGroup(); 38 | try { 39 | conn = db.getConn(); 40 | ps = conn.prepareStatement("SELECT t_group.groupname,t_finalitem.finalitemname,t_finalitem.id " 41 | + "FROM t_finalitem " 42 | + "JOIN t_group2item ON t_finalitem.gp2itid = t_group2item.id " 43 | + "JOIN t_group2sports ON t_group2item.gp2spid = t_group2sports.id " 44 | + "JOIN t_group ON t_group2sports.groupid = t_group.id " 45 | + "JOIN t_item ON t_group2item.itemid = t_item.id " 46 | + "WHERE t_group2sports.sportsid = ? AND t_item.itemtype = ? and t_finalitem.finalitemtype != 2"); 47 | ps.setInt(1, sportsid); 48 | ps.setString(2, itemtype); 49 | rs = ps.executeQuery(); 50 | 51 | while (rs.next()) { 52 | FinalitemGroup fg=new FinalitemGroup(); 53 | //fg.setGroupname(rs.getString(1)); 54 | fg.setFinalitemname(rs.getString(2)); 55 | fg.setFmid(rs.getInt(3)); 56 | ItemsList.add(fg); 57 | } 58 | } catch (Exception ee) { 59 | ee.printStackTrace(); 60 | } 61 | db.freeConnection(conn); 62 | return ItemsList; 63 | 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /WebRoot/download.jsp: -------------------------------------------------------------------------------- 1 | <%@page language="java" import="java.net.URLEncoder,java.io.*,java.net.URLDecoder" contentType="application/x-msdownload" pageEncoding="utf-8"%> 2 | 3 | 4 | <% 5 | //关于文件下载时采用文件流输出的方式处理: 6 | //加上response.reset(),并且所有的%>后面不要换行,包括最后一个; 7 | 8 | response.reset();//可以加也可以不加 9 | response.setContentType("application/x-download"); 10 | String file = (String)request.getParameter("file"); 11 | String fileName = URLDecoder.decode((String)request.getParameter("fileName"),"UTF-8"); 12 | 13 | if(file !=null && fileName !=null){ 14 | String filedownload = file + fileName; 15 | String filedisplay = new String(fileName.getBytes("gb2312"), "iso8859-1");; 16 | response.addHeader("Content-Disposition","attachment;filename=" + filedisplay); 17 | 18 | java.io.OutputStream outp = null; 19 | java.io.FileInputStream in = null; 20 | try 21 | { 22 | outp = response.getOutputStream(); 23 | in = new FileInputStream(filedownload); 24 | 25 | byte[] b = new byte[1024]; 26 | int i = 0; 27 | 28 | while((i = in.read(b)) > 0) 29 | { 30 | outp.write(b, 0, i); 31 | } 32 | // 33 | outp.flush(); 34 | //要加以下两句话,否则会报错 35 | //java.lang.IllegalStateException: getOutputStream() has already been called for //this response 36 | out.clear(); 37 | out = pageContext.pushBody(); 38 | } 39 | catch(Exception e) 40 | { 41 | //System.out.println("Error!"); 42 | e.printStackTrace(); 43 | } 44 | finally 45 | { 46 | if(in != null) 47 | { 48 | in.close(); 49 | in = null; 50 | } 51 | //这里不能关闭 52 | //if(outp != null) 53 | //{ 54 | //outp.close(); 55 | //outp = null; 56 | //} 57 | } } 58 | %> 59 | -------------------------------------------------------------------------------- /WebRoot/css/themes/base/jquery.ui.button.css: -------------------------------------------------------------------------------- 1 | /* Button 2 | ----------------------------------*/ 3 | 4 | .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */ 5 | .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */ 6 | button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */ 7 | .ui-button-icons-only { width: 3.4em; } 8 | button.ui-button-icons-only { width: 3.7em; } 9 | 10 | /*button text element */ 11 | .ui-button .ui-button-text { display: block; line-height: 1.4; } 12 | .ui-button-text-only .ui-button-text { padding: .4em 1em; } 13 | .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; } 14 | .ui-button-text-icon .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; } 15 | .ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; } 16 | /* no icon support for input elements, provide padding by default */ 17 | input.ui-button { padding: .4em 1em; } 18 | 19 | /*button icon element(s) */ 20 | .ui-button-icon-only .ui-icon, .ui-button-text-icon .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; } 21 | .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; } 22 | .ui-button-text-icon .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; } 23 | .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; } 24 | 25 | /*button sets*/ 26 | .ui-buttonset { margin-right: 7px; } 27 | .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; } 28 | 29 | /* workarounds */ 30 | button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */ 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/createprogramservices/GameGroupingServices.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.createprogramservices; 2 | 3 | import java.util.ArrayList; 4 | import java.util.HashMap; 5 | import java.util.Random; 6 | 7 | import cn.edu.hbcit.smms.dao.createprogramdao.GameGroupingDAO; 8 | 9 | /** 10 | * 径赛分道Services 11 | * 12 | *简要说明 13 | * 14 | *详细解释。 15 | * @author 韩鑫鹏 16 | * @version 1.00 2011/12/07 新規作成
17 | */ 18 | public class GameGroupingServices { 19 | 20 | GameGroupingDAO grp = new GameGroupingDAO(); 21 | 22 | /** 23 | * 径赛编排 24 | * @param trackItems 所有径赛项目ArrayList groupid+itemid 25 | * @param itemid2name 项目id,name对照HashMap 26 | * @param player2item 数字+运动员id,运动员组别id+所报项目id对照HashMap 27 | * @param departments 所有部门id ArrayList 28 | * @param pla2dep 运动员id,部门id对照 HashMap 29 | * @param item2finalitem 组别id+项目id,最终项目id对应HashMap 30 | * @param pernums 项目各系限报人数 31 | * @return ArrayList sql语句集合,第一条是分组情况sql语句,第二条是修改分组数目sql语句 32 | */ 33 | public ArrayList trackGrouping(ArrayList trackItems, HashMap itemid2name, HashMap player2item, 34 | ArrayList departments, HashMap pla2dep, HashMap item2finalitem,int pernums){ 35 | 36 | return grp.trackGrouping(trackItems, itemid2name, player2item, 37 | departments, pla2dep, item2finalitem, pernums); 38 | } 39 | 40 | /** 41 | * 田赛赛事编排 42 | * @param filedItems 43 | * @param player2item 44 | * @param item2finalitem 45 | * @return StringBuffer 46 | */ 47 | public StringBuffer filedGrouping(ArrayList fieldItems, HashMap player2item, HashMap item2finalitem){ 48 | 49 | return grp.filedGrouping(fieldItems, player2item, item2finalitem); 50 | } 51 | 52 | /** 53 | * 接力赛赛事编排 54 | * @param reailyItems 55 | * @param groupid2name 56 | * @param departments 57 | * @param stuDep 58 | * @param item2finalitem 59 | * @return ArrayList 60 | */ 61 | public ArrayList trackReailyGrouping(ArrayList reailyItems, HashMap groupid2name, 62 | ArrayList departments, ArrayList stuDep, HashMap item2finalitem){ 63 | 64 | return grp.trackReailyGrouping(reailyItems, groupid2name, departments, stuDep, item2finalitem); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /WebRoot/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin:0; 3 | padding:0; 4 | overflow:hidden; 5 | background:url(../images/login_03.gif) repeat-x #152753; 6 | font-size: 12px; 7 | color: #adc9d9; 8 | } 9 | #top { 10 | margin: 0 auto; 11 | clear:both; 12 | height:318px; 13 | width:847px; 14 | background:url(../images/login_04.gif) no-repeat; 15 | } 16 | #center { 17 | height:84px; 18 | text-align:center; 19 | } 20 | #center_left { 21 | margin-left:216px; 22 | float:left; 23 | background:url(../images/login_06.gif) no-repeat; 24 | height:84px; 25 | width:381px; 26 | } 27 | /* IE7 HACK*/ 28 | *+html #center_left { 29 | margin-left:206px !important; 30 | } 31 | /* END HACK*/ 32 | #center_middle { 33 | float:left; 34 | background:url(../images/login_07.gif) no-repeat; 35 | height:84px; 36 | width:162px; 37 | } 38 | #center_middle_right { 39 | float:left; 40 | background:url(../images/login_08.gif) no-repeat; 41 | height:84px; 42 | width:26px; 43 | } 44 | #center_submit { 45 | float:left; 46 | background:url(../images/login_09.gif) no-repeat; 47 | height:84px; 48 | width:67px; 49 | } 50 | #center_right { 51 | float:left; 52 | background:url(../images/login_10.gif) no-repeat; 53 | height:84px; 54 | width:211px; 55 | } 56 | #footer { 57 | margin:0 auto; 58 | background:url(../images/login_11.gif) no-repeat; 59 | height:206px; 60 | width:847px; 61 | } 62 | .logininput { 63 | width:100px; 64 | height:17px; 65 | background-color:#87adbf; 66 | border:solid 1px #153966; 67 | font-size:12px; 68 | color:#283439; 69 | } 70 | .chknumber_input { 71 | width:40px; 72 | height:17px; 73 | background-color:#87adbf; 74 | border:solid 1px #153966; 75 | font-size:12px; 76 | color:#283439; 77 | } 78 | .user { 79 | margin: 6px auto; 80 | } 81 | /* IE7 HACK*/ 82 | *+html .user { 83 | margin: 4px auto; 84 | } 85 | /* END HACK*/ 86 | .chknumber { 87 | margin-bottom:3px; 88 | text-align:left; 89 | padding-left:3px 90 | } 91 | .button { 92 | margin: 15px auto; 93 | } 94 | IMG { 95 | border:none; 96 | cursor:pointer; 97 | } 98 | FORM { 99 | margin:0; 100 | padding:0 101 | } -------------------------------------------------------------------------------- /WebRoot/apply_listinfo.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 注意事项 7 | 8 | 9 | 10 | 11 | 20 | 29 | 30 | 31 | 32 | 33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 49 | 50 | 51 |
本届参赛组别本届参赛项目
${msg.groupname } 43 | 44 | 45 | ${td.itemname}
46 |
47 |
48 |
52 | 53 | 54 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gameapplyservices/SelGameApplyService.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.gameapplyservices; 2 | 3 | import java.util.ArrayList; 4 | 5 | import cn.edu.hbcit.smms.dao.gameapplydao.SelGameApplyDAO; 6 | 7 | public class SelGameApplyService { 8 | 9 | SelGameApplyDAO sgas = new SelGameApplyDAO(); 10 | /** 11 | * 查询运动员 12 | * @param username 13 | * @param sportsId 14 | * @param grouptype 15 | * @return 16 | */ 17 | public ArrayList selectPlayerItemsMessage( String username,int sportsId ,int grouptype ){ 18 | return sgas.selectPlayerItemsMessage(username, sportsId, grouptype); 19 | } 20 | /** 21 | * 获取系别名称 22 | * @param username 23 | * @return 24 | */ 25 | public String getDepartmentName(String username){ 26 | return sgas.getDepartmentName(username); 27 | } 28 | /** 29 | * 查询组别类型 30 | * @param sportsid 31 | * @return 32 | */ 33 | public ArrayList selectAllGroupTypes(int sportsid ,String username){ 34 | return sgas.selectAllGroupTypes(sportsid, username); 35 | } 36 | /** 37 | * 各组可报项目 38 | * @param sportsid 39 | * @param grouptype 40 | * @return 41 | */ 42 | public ArrayList selectAllItemsByGroupType(int sportsid , int grouptype){ 43 | return sgas.selectAllItemsByGroupType(sportsid, grouptype); 44 | } 45 | /** 46 | * 各个组别名称 47 | * @param sportsid 48 | * @param grouptype 49 | * @return 50 | */ 51 | public ArrayList selectGroupNameByGroupType(int sportsid , int grouptype){ 52 | return sgas.selectGroupNameByGroupType(sportsid, grouptype); 53 | } 54 | /** 55 | * 领队查询 56 | * @param username 57 | * @return 58 | */ 59 | public ArrayList selectAllLeaderByUserName(String username){ 60 | return sgas.selectAllLeaderByUserName(username); 61 | } 62 | /** 63 | * 领队修改 64 | * @param username 65 | * @param teamleader 66 | * @param coach 67 | * @param doctor 68 | * @return 69 | */ 70 | public boolean updateLeaderByUserName(String username,String teamleader,String coach,String doctor){ 71 | return sgas.updateLeaderByUserName(username, teamleader, coach, doctor); 72 | } 73 | public int infoDelete(int sp2dpid,String playernum){ 74 | return sgas.infoDelete(sp2dpid, playernum); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /WebRoot/apply_infolist.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 注意事项 7 | 8 | 9 | 10 | 11 | 20 | 29 | 30 | 31 | 32 | 33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 49 | 50 | 51 |
本届参赛组别本届参赛项目
${msg.groupname } 43 | 44 | 45 | ${td.itemname}
46 |
47 |
48 |
52 | 53 | 54 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/dao/gamequerydao/SelectTeamLeaderDao.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.dao.gamequerydao; 2 | 3 | import java.sql.CallableStatement; 4 | import java.sql.Connection; 5 | import java.sql.PreparedStatement; 6 | import java.sql.ResultSet; 7 | import java.sql.Statement; 8 | 9 | import net.sf.json.JSONArray; 10 | import net.sf.json.JSONObject; 11 | 12 | import cn.edu.hbcit.smms.dao.databasedao.DBConn; 13 | 14 | public class SelectTeamLeaderDao { 15 | private Statement stmt = null; 16 | private PreparedStatement pstmt = null; 17 | private CallableStatement cs = null; 18 | private Connection conn = null; 19 | ResultSet rs = null; 20 | DBConn db = new DBConn(); 21 | JSONArray jsonarray = new JSONArray(); 22 | public JSONArray SelectTeamLeader(int sportid,int departid){ 23 | String sql = null; 24 | if(departid==0){ 25 | sql = " SELECT t_sports.sportsname,t_department.departshortname,teamleader,coach,doctor" + 26 | " FROM t_sports2department" + 27 | " JOIN t_sports ON t_sports2department.sportsid = t_sports.id" + 28 | " JOIN t_department ON t_sports2department.departid = t_department.id" + 29 | " WHERE t_sports.id = ? OR t_department.id = ?"; 30 | }else{ 31 | sql = " SELECT t_sports.sportsname,t_department.departshortname,teamleader,coach,doctor" + 32 | " FROM t_sports2department" + 33 | " JOIN t_sports ON t_sports2department.sportsid = t_sports.id" + 34 | " JOIN t_department ON t_sports2department.departid = t_department.id" + 35 | " WHERE t_sports.id = ? AND t_department.id = ?"; 36 | } 37 | conn = db.getConn(); 38 | try{ 39 | pstmt = conn.prepareStatement(sql); 40 | pstmt.setInt(1, sportid); 41 | pstmt.setInt(2, departid); 42 | rs = pstmt.executeQuery(); 43 | while(rs.next()){ 44 | JSONObject jsonobj = new JSONObject(); 45 | jsonobj.put("sportsname", rs.getString(1)); 46 | jsonobj.put("departshortname", rs.getString(2)); 47 | jsonobj.put("teamleader", rs.getString(3)); 48 | jsonobj.put("coach", rs.getString(4)); 49 | jsonobj.put("doctor", rs.getString(5)); 50 | jsonarray.add(jsonobj); 51 | } 52 | rs.close(); 53 | pstmt.close(); 54 | db.freeConnection(conn); 55 | }catch(Exception e){ 56 | e.getStackTrace(); 57 | e.getMessage(); 58 | } 59 | return jsonarray; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamesetservices/UpdateOfficialSetService.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.services.gamesetservices; 2 | 3 | import cn.edu.hbcit.smms.dao.gamesetdao.UpdateOfficialSetDAO; 4 | 5 | public class UpdateOfficialSetService { 6 | UpdateOfficialSetDAO updateofficialsetDAO=new UpdateOfficialSetDAO(); 7 | /** 8 | * 更改大会主席团人员 9 | * @return 10 | */ 11 | public boolean updatePresidiumBySportsid(int sportsid,String presidium,String org_committee_1,String org_committee_2, 12 | String org_committee_3,String secretariat_1,String secretariat_2,String secretariat_3, 13 | String secretariat_4,String secretariat_5,String secretariat_6,String secretariat_7, 14 | String arbitration){ 15 | return updateofficialsetDAO.updatePresidiumBySportsid(sportsid, presidium, org_committee_1, org_committee_2, org_committee_3, 16 | secretariat_1, secretariat_2, secretariat_3, secretariat_4, secretariat_5, secretariat_6, 17 | secretariat_7, arbitration); 18 | } 19 | /** 20 | * 21 | *更改径赛裁判员类 22 | * @return 23 | */ 24 | public boolean updateTrackjudgeBySportsid(int sportsid,String chiefjudge_1, String chiefjudge_2,String trackjudge, 25 | String trackjudge_rollcall_1,String trackjudge_rollcall_2,String trackjudge_rollcall_3, 26 | String startingpoint_1,String startingpoint_2,String startingpoint_3,String timejudge_1, 27 | String timejudge_2,String timejudge_3,String endpoint_1,String endpoint_2,String endpoint_3, 28 | String endpoint_4,String endpoint_5) { 29 | return updateofficialsetDAO.updateTrackjudgeBySportsid(sportsid, chiefjudge_1, chiefjudge_2, trackjudge, trackjudge_rollcall_1, 30 | trackjudge_rollcall_2, trackjudge_rollcall_3, startingpoint_1, startingpoint_2, startingpoint_3, timejudge_1, 31 | timejudge_2, timejudge_3, endpoint_1, endpoint_2, endpoint_3, endpoint_4, endpoint_5); 32 | } 33 | /** 34 | * 更改田赛裁判员类 35 | * @return 36 | */ 37 | public boolean updateFieldjudgeBySportsid(int sportsid,String fieldjudge,String fieldjudge_1,String fieldjudge_2,String fieldjudge_3, 38 | String fieldjudge_4,String fieldjudge_5,String fieldjudge_6){ 39 | return updateofficialsetDAO.updateFieldjudgeBySportsid(sportsid, fieldjudge, fieldjudge_1, fieldjudge_2, fieldjudge_3, fieldjudge_4, 40 | fieldjudge_5, fieldjudge_6); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Sports.java: -------------------------------------------------------------------------------- 1 | 2 | package cn.edu.hbcit.smms.pojo; 3 | 4 | /** 5 | * 运动会pojo类 6 | * 7 | * 本类的简要描述: 8 | * 9 | * @author 李玮 10 | * @version 1.00 2012-6-19 新建类 11 | */ 12 | 13 | public class Sports { 14 | 15 | private int id; 16 | private String sportsname; 17 | private String sportsbegin; 18 | private String sportsend; 19 | private String registend; 20 | private String address; 21 | private int current; 22 | /** 23 | * @return the id 24 | */ 25 | public int getId() { 26 | return id; 27 | } 28 | /** 29 | * @param id the id to set 30 | */ 31 | public void setId(int id) { 32 | this.id = id; 33 | } 34 | /** 35 | * @return the sportsname 36 | */ 37 | public String getSportsname() { 38 | return sportsname; 39 | } 40 | /** 41 | * @param sportsname the sportsname to set 42 | */ 43 | public void setSportsname(String sportsname) { 44 | this.sportsname = sportsname; 45 | } 46 | /** 47 | * @return the sportsbegin 48 | */ 49 | public String getSportsbegin() { 50 | return sportsbegin; 51 | } 52 | /** 53 | * @param sportsbegin the sportsbegin to set 54 | */ 55 | public void setSportsbegin(String sportsbegin) { 56 | this.sportsbegin = sportsbegin; 57 | } 58 | /** 59 | * @return the sportsend 60 | */ 61 | public String getSportsend() { 62 | return sportsend; 63 | } 64 | /** 65 | * @param sportsend the sportsend to set 66 | */ 67 | public void setSportsend(String sportsend) { 68 | this.sportsend = sportsend; 69 | } 70 | /** 71 | * @return the registend 72 | */ 73 | public String getRegistend() { 74 | return registend; 75 | } 76 | /** 77 | * @param registend the registend to set 78 | */ 79 | public void setRegistend(String registend) { 80 | this.registend = registend; 81 | } 82 | /** 83 | * @return the address 84 | */ 85 | public String getAddress() { 86 | return address; 87 | } 88 | /** 89 | * @param address the address to set 90 | */ 91 | public void setAddress(String address) { 92 | this.address = address; 93 | } 94 | /** 95 | * @return the current 96 | */ 97 | public int getCurrent() { 98 | return current; 99 | } 100 | /** 101 | * @param current the current to set 102 | */ 103 | public void setCurrent(int current) { 104 | this.current = current; 105 | } 106 | 107 | } 108 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/AddFiledItemJudgeServlet.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | 13 | import cn.edu.hbcit.smms.services.gamesetservices.OfficialSetService; 14 | 15 | public class AddFiledItemJudgeServlet extends HttpServlet { 16 | 17 | /**添加田赛项目裁判长 18 | * Constructor of the object. 19 | */ 20 | public AddFiledItemJudgeServlet() { 21 | super(); 22 | } 23 | 24 | /** 25 | * Destruction of the servlet.
26 | */ 27 | public void destroy() { 28 | super.destroy(); // Just puts "destroy" string in log 29 | // Put your code here 30 | } 31 | 32 | /** 33 | * The doGet method of the servlet.
34 | * 35 | * This method is called when a form has its tag value method equals to get. 36 | * 37 | * @param request the request send by the client to the server 38 | * @param response the response send by the server to the client 39 | * @throws ServletException if an error occurred 40 | * @throws IOException if an error occurred 41 | */ 42 | public void doGet(HttpServletRequest request, HttpServletResponse response) 43 | throws ServletException, IOException { 44 | 45 | this.doPost(request, response); 46 | } 47 | 48 | /** 49 | * The doPost method of the servlet.
50 | * 51 | * This method is called when a form has its tag value method equals to post. 52 | * 53 | * @param request the request send by the client to the server 54 | * @param response the response send by the server to the client 55 | * @throws ServletException if an error occurred 56 | * @throws IOException if an error occurred 57 | */ 58 | public void doPost(HttpServletRequest request, HttpServletResponse response) 59 | throws ServletException, IOException { 60 | 61 | request.setCharacterEncoding("utf-8"); 62 | response.setContentType("text/html"); 63 | 64 | } 65 | 66 | 67 | /** 68 | * Initialization of the servlet.
69 | * 70 | * @throws ServletException if an error occurs 71 | */ 72 | public void init() throws ServletException { 73 | // Put your code here 74 | } 75 | 76 | } 77 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/QuerySeInfoData.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.pojo; 2 | 3 | import java.util.ArrayList; 4 | 5 | /* 6 | * Copyright(C) 2004, XXXXXXXX. 7 | * 8 | * 模块名称: AAAAAAAAAAA 9 | * 子模块名称: BBBBBBBBBBB 10 | * 11 | * 备注: 12 | * 13 | * 修改历史: 14 | * 时间 版本号 姓名 修改内容 15 | * 2004/12/12 0.1 张 三 新建 16 | * 2005/02/05 0.1 李 四 Bug修正 17 | */ 18 | public class QuerySeInfoData { 19 | /** 20 | * QuerySeInfoData类 21 | * 查询字段内容 22 | * 23 | *简要说明 24 | * 25 | *详细解释。 26 | * @author 袁仕杰 27 | * @version 1.00 2011/12/07 新規作成
28 | */ 29 | String playername; 30 | String playernum; 31 | String groupname; 32 | String departshortname; 33 | String registitem; 34 | String item; 35 | String score; 36 | String position; 37 | String recordlevel; 38 | public String getPlayername() { 39 | return playername; 40 | } 41 | public void setPlayername(String playername) { 42 | this.playername = playername; 43 | } 44 | public String getPlayernum() { 45 | return playernum; 46 | } 47 | public void setPlayernum(String playernum) { 48 | this.playernum = playernum; 49 | } 50 | public String getGroupname() { 51 | return groupname; 52 | } 53 | public void setGroupname(String groupname) { 54 | this.groupname = groupname; 55 | } 56 | public String getDepartshortname() { 57 | return departshortname; 58 | } 59 | public void setDepartshortname(String departshortname) { 60 | this.departshortname = departshortname; 61 | } 62 | public String getRegistitem() { 63 | return registitem; 64 | } 65 | public void setRegistitem(String registitem) { 66 | this.registitem = registitem; 67 | } 68 | public String getItem() { 69 | return item; 70 | } 71 | public void setItem(String item) { 72 | this.item = item; 73 | } 74 | public String getScore() { 75 | return score; 76 | } 77 | public void setScore(String score) { 78 | this.score = score; 79 | } 80 | public String getPosition() { 81 | return position; 82 | } 83 | public void setPosition(String position) { 84 | this.position = position; 85 | } 86 | public String getRecordlevel() { 87 | return recordlevel; 88 | } 89 | public void setRecordlevel(String recordlevel) { 90 | this.recordlevel = recordlevel; 91 | } 92 | 93 | ArrayList items = new ArrayList(); 94 | public ArrayList getItems() { 95 | return items; 96 | } 97 | public void setItems(ArrayList items) { 98 | this.items = items; 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/loginservlet/LogoutServlet.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, 河北工业职业技术学院. 3 | * 4 | * 模块名称: 登录登出管理 5 | * 子模块名称: 登出 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2012-6-18 V1.0 李玮 新建 12 | */ 13 | package cn.edu.hbcit.smms.servlet.loginservlet; 14 | 15 | import java.io.IOException; 16 | import java.io.PrintWriter; 17 | 18 | import javax.servlet.ServletException; 19 | import javax.servlet.http.HttpServlet; 20 | import javax.servlet.http.HttpServletRequest; 21 | import javax.servlet.http.HttpServletResponse; 22 | import javax.servlet.http.HttpSession; 23 | 24 | /** 25 | * 系统登出类 26 | * 27 | * 本类的简要描述: 28 | * 29 | * @author 李玮 30 | * @version 1.00 2012-6-18 新建类 31 | */ 32 | 33 | public class LogoutServlet extends HttpServlet { 34 | 35 | /** 36 | * Constructor of the object. 37 | */ 38 | public LogoutServlet() { 39 | super(); 40 | } 41 | 42 | /** 43 | * Destruction of the servlet.
44 | */ 45 | public void destroy() { 46 | super.destroy(); // Just puts "destroy" string in log 47 | // Put your code here 48 | } 49 | 50 | /** 51 | * The doGet method of the servlet.
52 | * 53 | * This method is called when a form has its tag value method equals to get. 54 | * 55 | * @param request the request send by the client to the server 56 | * @param response the response send by the server to the client 57 | * @throws ServletException if an error occurred 58 | * @throws IOException if an error occurred 59 | */ 60 | public void doGet(HttpServletRequest request, HttpServletResponse response) 61 | throws ServletException, IOException { 62 | 63 | this.doPost(request, response); 64 | } 65 | 66 | /** 67 | * The doPost method of the servlet.
68 | * 69 | * This method is called when a form has its tag value method equals to post. 70 | * 71 | * @param request the request send by the client to the server 72 | * @param response the response send by the server to the client 73 | * @throws ServletException if an error occurred 74 | * @throws IOException if an error occurred 75 | */ 76 | public void doPost(HttpServletRequest request, HttpServletResponse response) 77 | throws ServletException, IOException { 78 | 79 | response.setContentType("text/html"); 80 | HttpSession session = request.getSession(); 81 | session.invalidate(); 82 | response.sendRedirect("../index.jsp"); 83 | } 84 | 85 | /** 86 | * Initialization of the servlet.
87 | * 88 | * @throws ServletException if an error occurs 89 | */ 90 | public void init() throws ServletException { 91 | // Put your code here 92 | } 93 | 94 | } 95 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/dao/gameapplydao/AddTeamleaderDAO.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, 河北工业职业技术学院. 3 | * 4 | * 模块名称: 赛事报名 5 | * 子模块名称: 领队报名 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2012-6-21 陈系晶 新建 12 | */ 13 | package cn.edu.hbcit.smms.dao.gameapplydao; 14 | 15 | import java.sql.Connection; 16 | import java.sql.PreparedStatement; 17 | import java.sql.ResultSet; 18 | import java.sql.SQLException; 19 | 20 | import org.apache.log4j.Logger; 21 | 22 | import cn.edu.hbcit.smms.dao.databasedao.DBConn; 23 | 24 | public class AddTeamleaderDAO { 25 | private Connection conn = null; 26 | private PreparedStatement pStatement = null; 27 | private ResultSet rs = null; 28 | protected final Logger log = Logger.getLogger(AddTeamleaderDAO.class.getName()); 29 | DBConn db = new DBConn(); 30 | /** 31 | * 插入t_ports2Department表信息 32 | * @param sportsId 33 | * @param departId 34 | * @param teamLeader 35 | * @param coach 36 | * @param doctor 37 | * @return 38 | */ 39 | public int addSports2Department(int sportsId,int departId,String teamLeader, 40 | String coach,String doctor){ 41 | conn = db.getConn(); 42 | String sql = "update t_sports2department set teamleader=?,coach=?,doctor=? where sportsId=? and departId=?"; 43 | int flag = 0; 44 | try { 45 | pStatement = conn.prepareStatement(sql); 46 | pStatement.setString(1, teamLeader); 47 | pStatement.setString(2, coach); 48 | pStatement.setString(3, doctor); 49 | pStatement.setInt(4, sportsId); 50 | pStatement.setInt(5, departId); 51 | flag = pStatement.executeUpdate(); 52 | pStatement.close(); 53 | conn.close(); 54 | }catch (SQLException e) { 55 | log.debug("添加失败!"); 56 | log.debug(e.getMessage()); 57 | //System.out.println(e); 58 | } 59 | return flag; 60 | 61 | } 62 | /* 63 | * 根据部门和运动会id查询记录条数 64 | * 吕志瑶 65 | */ 66 | public int updatePlayerNum( int sportsId,int departId){ 67 | int flag = 0; 68 | String sql = "SELECT COUNT(teamleader) FROM t_sports2department where sportsid = ? and departid = ?"; 69 | try{ 70 | conn = db.getConn(); 71 | pStatement = conn.prepareStatement(sql); 72 | pStatement.setInt(1, sportsId); 73 | pStatement.setInt(2, departId); 74 | rs = pStatement.executeQuery(); 75 | while( rs.next() ){ 76 | flag = rs.getInt(1); 77 | } 78 | db.freeConnection(rs,pStatement,conn); 79 | }catch( Exception e){ 80 | log.debug(e.getMessage()); 81 | //e.getStackTrace(); 82 | //System.out.println(e.getMessage()); 83 | } 84 | return flag; 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /WebRoot/apply_groupitem.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 注意事项 7 | 8 | 9 | 10 | 11 | 24 | 33 | 34 | 35 | 36 | 37 |

报名前请确认各组参赛项目

38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
本届参赛组别本届参赛项目
${msg.groupname } 47 | 48 | 49 | ${td.itemname}
50 |
51 |
52 |
60 | 61 | 62 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/pojo/Rule.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, 河北工业职业技术学院计算机系2010软件专业. 3 | * 4 | * 模块名称: 5 | * 子模块名称: 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 2012-9-23 0.1 李玮 新建 11 | */ 12 | package cn.edu.hbcit.smms.pojo; 13 | 14 | 15 | public class Rule { 16 | 17 | private int id; 18 | private int sportsid; 19 | private int position; 20 | private String mark; 21 | private int recordmark_low; 22 | private int recordmark_high; 23 | private int perman; 24 | private int perdepartment; 25 | /** 26 | * @return the id 27 | */ 28 | public int getId() { 29 | return id; 30 | } 31 | /** 32 | * @param id the id to set 33 | */ 34 | public void setId(int id) { 35 | this.id = id; 36 | } 37 | /** 38 | * @return the sportsid 39 | */ 40 | public int getSportsid() { 41 | return sportsid; 42 | } 43 | /** 44 | * @param sportsid the sportsid to set 45 | */ 46 | public void setSportsid(int sportsid) { 47 | this.sportsid = sportsid; 48 | } 49 | /** 50 | * @return the position 51 | */ 52 | public int getPosition() { 53 | return position; 54 | } 55 | /** 56 | * @param position the position to set 57 | */ 58 | public void setPosition(int position) { 59 | this.position = position; 60 | } 61 | /** 62 | * @return the mark 63 | */ 64 | public String getMark() { 65 | return mark; 66 | } 67 | /** 68 | * @param mark the mark to set 69 | */ 70 | public void setMark(String mark) { 71 | this.mark = mark; 72 | } 73 | /** 74 | * @return the recordmark_low 75 | */ 76 | public int getRecordmark_low() { 77 | return recordmark_low; 78 | } 79 | /** 80 | * @param recordmarkLow the recordmark_low to set 81 | */ 82 | public void setRecordmark_low(int recordmarkLow) { 83 | recordmark_low = recordmarkLow; 84 | } 85 | /** 86 | * @return the recordmark_high 87 | */ 88 | public int getRecordmark_high() { 89 | return recordmark_high; 90 | } 91 | /** 92 | * @param recordmarkHigh the recordmark_high to set 93 | */ 94 | public void setRecordmark_high(int recordmarkHigh) { 95 | recordmark_high = recordmarkHigh; 96 | } 97 | /** 98 | * @return the perman 99 | */ 100 | public int getPerman() { 101 | return perman; 102 | } 103 | /** 104 | * @param perman the perman to set 105 | */ 106 | public void setPerman(int perman) { 107 | this.perman = perman; 108 | } 109 | /** 110 | * @return the perdepartment 111 | */ 112 | public int getPerdepartment() { 113 | return perdepartment; 114 | } 115 | /** 116 | * @param perdepartment the perdepartment to set 117 | */ 118 | public void setPerdepartment(int perdepartment) { 119 | this.perdepartment = perdepartment; 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/UpdateFinalItemServlet.java: -------------------------------------------------------------------------------- 1 | 2 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 3 | 4 | import java.io.IOException; 5 | import java.io.PrintWriter; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import cn.edu.hbcit.smms.services.gamesetservices.SportsService; 13 | 14 | /** 15 | * 更新FinalItem 16 | * 17 | * 本类的简要描述: 18 | * 19 | * @author 李玮 20 | * @version 1.00 2012-9-13 新建类 21 | */ 22 | 23 | public class UpdateFinalItemServlet extends HttpServlet { 24 | 25 | /** 26 | * Constructor of the object. 27 | */ 28 | public UpdateFinalItemServlet() { 29 | super(); 30 | } 31 | 32 | /** 33 | * Destruction of the servlet.
34 | */ 35 | public void destroy() { 36 | super.destroy(); // Just puts "destroy" string in log 37 | // Put your code here 38 | } 39 | 40 | /** 41 | * The doGet method of the servlet.
42 | * 43 | * This method is called when a form has its tag value method equals to get. 44 | * 45 | * @param request the request send by the client to the server 46 | * @param response the response send by the server to the client 47 | * @throws ServletException if an error occurred 48 | * @throws IOException if an error occurred 49 | */ 50 | public void doGet(HttpServletRequest request, HttpServletResponse response) 51 | throws ServletException, IOException { 52 | 53 | this.doPost(request, response); 54 | } 55 | 56 | /** 57 | * The doPost method of the servlet.
58 | * 59 | * This method is called when a form has its tag value method equals to post. 60 | * 61 | * @param request the request send by the client to the server 62 | * @param response the response send by the server to the client 63 | * @throws ServletException if an error occurred 64 | * @throws IOException if an error occurred 65 | */ 66 | public void doPost(HttpServletRequest request, HttpServletResponse response) 67 | throws ServletException, IOException { 68 | 69 | response.setContentType("text/html"); 70 | SportsService ss = new SportsService(); 71 | boolean flag = false; 72 | String[] finalItem; 73 | finalItem = request.getParameterValues("finalitemhidden"); 74 | flag = ss.updateFinalItem(finalItem); 75 | 76 | if(flag){ 77 | request.setAttribute("msg", "竞赛日程设置成功!"); 78 | }else{ 79 | request.setAttribute("msg", "竞赛日程设置失败!"); 80 | } 81 | request.getRequestDispatcher("AddFinalItemServlet").forward(request, response); 82 | } 83 | 84 | /** 85 | * Initialization of the servlet.
86 | * 87 | * @throws ServletException if an error occurs 88 | */ 89 | public void init() throws ServletException { 90 | // Put your code here 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/GetSportsInfoServlet.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, 河北工业职业技术学院. 3 | * 4 | * 模块名称: 赛前管理 5 | * 子模块名称: 运动会管理 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2012-6-19 V1.0 李玮 新建 12 | */ 13 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 14 | 15 | import java.io.IOException; 16 | import java.io.PrintWriter; 17 | import java.util.ArrayList; 18 | 19 | import javax.servlet.ServletException; 20 | import javax.servlet.http.HttpServlet; 21 | import javax.servlet.http.HttpServletRequest; 22 | import javax.servlet.http.HttpServletResponse; 23 | 24 | import cn.edu.hbcit.smms.services.gamesetservices.SportsService; 25 | 26 | /** 27 | * 获取运动会信息类 28 | * 29 | * 本类的简要描述: 30 | * 31 | * @author lw 32 | * @version 1.00 2012-6-19 新建类 33 | */ 34 | 35 | public class GetSportsInfoServlet extends HttpServlet { 36 | 37 | /** 38 | * Constructor of the object. 39 | */ 40 | public GetSportsInfoServlet() { 41 | super(); 42 | } 43 | 44 | /** 45 | * Destruction of the servlet.
46 | */ 47 | public void destroy() { 48 | super.destroy(); // Just puts "destroy" string in log 49 | // Put your code here 50 | } 51 | 52 | /** 53 | * The doGet method of the servlet.
54 | * 55 | * This method is called when a form has its tag value method equals to get. 56 | * 57 | * @param request the request send by the client to the server 58 | * @param response the response send by the server to the client 59 | * @throws ServletException if an error occurred 60 | * @throws IOException if an error occurred 61 | */ 62 | public void doGet(HttpServletRequest request, HttpServletResponse response) 63 | throws ServletException, IOException { 64 | 65 | response.setContentType("text/html"); 66 | SportsService ss = new SportsService(); 67 | ArrayList list = new ArrayList(); 68 | list = ss.selectSportsInfo(); 69 | request.setAttribute("sportsinfo", list); 70 | request.getRequestDispatcher("/set_sportsmanage.jsp").forward(request, response); 71 | } 72 | 73 | /** 74 | * The doPost method of the servlet.
75 | * 76 | * This method is called when a form has its tag value method equals to post. 77 | * 78 | * @param request the request send by the client to the server 79 | * @param response the response send by the server to the client 80 | * @throws ServletException if an error occurred 81 | * @throws IOException if an error occurred 82 | */ 83 | public void doPost(HttpServletRequest request, HttpServletResponse response) 84 | throws ServletException, IOException { 85 | 86 | this.doGet(request, response); 87 | } 88 | 89 | /** 90 | * Initialization of the servlet.
91 | * 92 | * @throws ServletException if an error occurs 93 | */ 94 | public void init() throws ServletException { 95 | // Put your code here 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/util/OperateProperties.java: -------------------------------------------------------------------------------- 1 | 2 | package cn.edu.hbcit.smms.util; 3 | 4 | /** 5 | * Properties文件操作类 6 | * 7 | * 本类的简要描述: 8 | * 9 | * @author 李玮 10 | * @version 1.00 2012-6-13 新建类 11 | */ 12 | import java.io.BufferedInputStream; 13 | import java.io.FileInputStream; 14 | import java.io.FileOutputStream; 15 | import java.io.IOException; 16 | import java.io.InputStream; 17 | import java.io.OutputStream; 18 | import java.util.Enumeration; 19 | import java.util.Properties; 20 | 21 | public class OperateProperties { 22 | public OperateProperties(){ 23 | } 24 | //根据key读取value 25 | public static String readValue(String filePath,String key) { 26 | Properties props = new Properties(); 27 | try { 28 | //InputStream in = new BufferedInputStream (new FileInputStream(filePath)); 29 | InputStream in = OperateProperties.class.getResourceAsStream(filePath); 30 | props.load(in); 31 | String value = props.getProperty (key); 32 | //System.out.println("key:"+key+" "+"value:"+value); 33 | return value; 34 | } catch (Exception e) { 35 | e.printStackTrace(); 36 | return null; 37 | } 38 | } 39 | 40 | //读取properties的全部信息 41 | public static void readProperties(String filePath) { 42 | Properties props = new Properties(); 43 | try { 44 | InputStream in = new BufferedInputStream (new FileInputStream(filePath)); 45 | props.load(in); 46 | Enumeration en = props.propertyNames(); 47 | while (en.hasMoreElements()) { 48 | String key = (String) en.nextElement(); 49 | String Property = props.getProperty (key); 50 | //System.out.println(key+Property); 51 | } 52 | } catch (Exception e) { 53 | e.printStackTrace(); 54 | } 55 | } 56 | 57 | //写入properties信息 58 | public static void writeProperties(String filePath,String parameterName,String parameterValue) { 59 | Properties prop = new Properties(); 60 | try { 61 | InputStream fis = new FileInputStream(filePath); 62 | //从输入流中读取属性列表(键和元素对) 63 | prop.load(fis); 64 | //调用 Hashtable 的方法 put。使用 getProperty 方法提供并行性。 65 | //强制要求为属性的键和值使用字符串。返回值是 Hashtable 调用 put 的结果。 66 | OutputStream fos = new FileOutputStream(filePath); 67 | prop.setProperty(parameterName, parameterValue); 68 | //以适合使用 load 方法加载到 Properties 表中的格式, 69 | //将此 Properties 表中的属性列表(键和元素对)写入输出流 70 | prop.store(fos, "Update '" + parameterName + "' value"); 71 | } catch (IOException e) { 72 | System.err.println("Visit "+filePath+" for updating "+parameterName+" value error"); 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/UpdatePlayernumServlet.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, liwei. 3 | * 4 | * 模块名称: 5 | * 子模块名称: 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2012-9-18 V1.0 李玮 新建 12 | */ 13 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 14 | 15 | import java.io.IOException; 16 | import java.io.PrintWriter; 17 | 18 | import javax.servlet.ServletException; 19 | import javax.servlet.http.HttpServlet; 20 | import javax.servlet.http.HttpServletRequest; 21 | import javax.servlet.http.HttpServletResponse; 22 | 23 | import cn.edu.hbcit.smms.services.gamesetservices.SportsService; 24 | 25 | 26 | public class UpdatePlayernumServlet extends HttpServlet { 27 | 28 | /** 29 | * Constructor of the object. 30 | */ 31 | public UpdatePlayernumServlet() { 32 | super(); 33 | } 34 | 35 | /** 36 | * Destruction of the servlet.
37 | */ 38 | public void destroy() { 39 | super.destroy(); // Just puts "destroy" string in log 40 | // Put your code here 41 | } 42 | 43 | /** 44 | * The doGet method of the servlet.
45 | * 46 | * This method is called when a form has its tag value method equals to get. 47 | * 48 | * @param request the request send by the client to the server 49 | * @param response the response send by the server to the client 50 | * @throws ServletException if an error occurred 51 | * @throws IOException if an error occurred 52 | */ 53 | public void doGet(HttpServletRequest request, HttpServletResponse response) 54 | throws ServletException, IOException { 55 | 56 | this.doPost(request, response); 57 | } 58 | 59 | /** 60 | * The doPost method of the servlet.
61 | * 62 | * This method is called when a form has its tag value method equals to post. 63 | * 64 | * @param request the request send by the client to the server 65 | * @param response the response send by the server to the client 66 | * @throws ServletException if an error occurred 67 | * @throws IOException if an error occurred 68 | */ 69 | public void doPost(HttpServletRequest request, HttpServletResponse response) 70 | throws ServletException, IOException { 71 | 72 | response.setContentType("text/html"); 73 | SportsService ss = new SportsService(); 74 | boolean flag = false; 75 | String[] playerNum; 76 | playerNum = request.getParameterValues("hid"); 77 | flag = ss.updatePlayerNum(playerNum); 78 | 79 | if(flag){ 80 | request.setAttribute("msg", "运动员号段设置成功!"); 81 | }else{ 82 | request.setAttribute("msg", "运动员号段设置失败!"); 83 | } 84 | request.getRequestDispatcher("AddPlayerNumServlet").forward(request, response); 85 | } 86 | 87 | /** 88 | * Initialization of the servlet.
89 | * 90 | * @throws ServletException if an error occurs 91 | */ 92 | public void init() throws ServletException { 93 | // Put your code here 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/filter/LoginFilter.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.filter; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.Filter; 6 | import javax.servlet.FilterChain; 7 | import javax.servlet.FilterConfig; 8 | import javax.servlet.ServletException; 9 | import javax.servlet.ServletRequest; 10 | import javax.servlet.ServletResponse; 11 | import javax.servlet.http.HttpServletRequest; 12 | import javax.servlet.http.HttpServletResponse; 13 | import javax.servlet.http.HttpSession; 14 | 15 | import org.apache.log4j.Logger; 16 | 17 | /** 18 | * 登录管理 19 | * 登录验证过滤器 20 | * @author 李玮 21 | * @version 2012-06-01 22 | */ 23 | public class LoginFilter implements Filter { 24 | 25 | public static final String LOGIN_PAGE = "/index.jsp"; 26 | public static final String LOGOUT_PAGE = "/index.jsp"; 27 | public static final String[] EXCEPT_PAGE = {"index.jsp","index.jsp"};//不参与验证的页面 28 | protected final Logger log = Logger.getLogger(LoginFilter.class.getName()); 29 | public void destroy() { 30 | } 31 | public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, 32 | FilterChain filterChain) throws IOException, ServletException { 33 | HttpServletRequest request = (HttpServletRequest) servletRequest; 34 | /** 35 | * 如果处理HTTP请求,并且需要访问诸如getHeader或getCookies等在ServletRequest中 36 | * 无法得到的方法,就要把此request对象构造成HttpServletRequest 37 | */ 38 | HttpServletResponse response = (HttpServletResponse) servletResponse; 39 | 40 | String currentURL = request.getRequestURI(); // 取得根目录所对应的绝对路径: 41 | 42 | HttpSession session = request.getSession(true); 43 | 44 | boolean bool = false; 45 | for (int i = 0; i< EXCEPT_PAGE.length; i++){ 46 | if (currentURL.indexOf(EXCEPT_PAGE[i])>=0){ 47 | bool = true; 48 | break; 49 | } 50 | } 51 | if (currentURL.indexOf(LOGIN_PAGE) == -1 && currentURL.indexOf(LOGOUT_PAGE) == -1 && currentURL.indexOf(".jsp") > -1 && !bool) { 52 | // 判断当前页是否是重定向以后的登录页面,如果是就不做session的判断,防止出现死循环 53 | String ref = request.getHeader("REFERER"); //是否是从地址栏直接输入的地址吗? 54 | log.debug("request头信息:" + ref); 55 | if (session == null || session.getAttribute("username") == null || session.getAttribute("username").equals("") || (ref==null) || (ref.equals(""))) { 56 | log.debug("非法登录,转向登录页面..."); 57 | response.sendRedirect(request.getContextPath() + LOGOUT_PAGE); 58 | return; 59 | } 60 | } 61 | // 加入filter链继续向下执行 62 | filterChain.doFilter(request, response); 63 | } 64 | 65 | public void init(FilterConfig arg0) throws ServletException { 66 | 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/ViewCreateRecordServlet.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, liwei. 3 | * 4 | * 模块名称: 5 | * 子模块名称: 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2012-10-30 V1.0 李玮 新建 12 | */ 13 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 14 | 15 | import java.io.IOException; 16 | import java.io.PrintWriter; 17 | import java.util.ArrayList; 18 | 19 | import javax.servlet.ServletException; 20 | import javax.servlet.http.HttpServlet; 21 | import javax.servlet.http.HttpServletRequest; 22 | import javax.servlet.http.HttpServletResponse; 23 | 24 | import cn.edu.hbcit.smms.services.gamesetservices.RecordServices; 25 | 26 | /** 27 | * 显示新建赛事记录页面类 28 | * 29 | * 本类的简要描述: 30 | * 31 | * @author Administrator 32 | * @version 1.00 2012-10-30 新建类 33 | */ 34 | 35 | public class ViewCreateRecordServlet extends HttpServlet { 36 | 37 | /** 38 | * Constructor of the object. 39 | */ 40 | public ViewCreateRecordServlet() { 41 | super(); 42 | } 43 | 44 | /** 45 | * Destruction of the servlet.
46 | */ 47 | public void destroy() { 48 | super.destroy(); // Just puts "destroy" string in log 49 | // Put your code here 50 | } 51 | 52 | /** 53 | * The doGet method of the servlet.
54 | * 55 | * This method is called when a form has its tag value method equals to get. 56 | * 57 | * @param request the request send by the client to the server 58 | * @param response the response send by the server to the client 59 | * @throws ServletException if an error occurred 60 | * @throws IOException if an error occurred 61 | */ 62 | public void doGet(HttpServletRequest request, HttpServletResponse response) 63 | throws ServletException, IOException { 64 | 65 | this.doPost(request, response); 66 | } 67 | 68 | /** 69 | * The doPost method of the servlet.
70 | * 71 | * This method is called when a form has its tag value method equals to post. 72 | * 73 | * @param request the request send by the client to the server 74 | * @param response the response send by the server to the client 75 | * @throws ServletException if an error occurred 76 | * @throws IOException if an error occurred 77 | */ 78 | public void doPost(HttpServletRequest request, HttpServletResponse response) 79 | throws ServletException, IOException { 80 | 81 | response.setContentType("text/html"); 82 | RecordServices rs = new RecordServices(); 83 | ArrayList list = new ArrayList(); 84 | list = rs.selectItemAndScoreFormat();//获取item的id和对应格式 85 | request.setAttribute("itemlist", list); 86 | request.getRequestDispatcher("/set_recordcreate.jsp").forward(request, response); 87 | } 88 | 89 | /** 90 | * Initialization of the servlet.
91 | * 92 | * @throws ServletException if an error occurs 93 | */ 94 | public void init() throws ServletException { 95 | // Put your code here 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamequeryservlet/SelectTeamleaderServlet.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.servlet.gamequeryservlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | import net.sf.json.JSONArray; 12 | 13 | import cn.edu.hbcit.smms.services.gamequeryservices.GameQueryServices; 14 | 15 | public class SelectTeamleaderServlet extends HttpServlet { 16 | 17 | /** 18 | * Constructor of the object. 19 | */ 20 | public SelectTeamleaderServlet() { 21 | super(); 22 | } 23 | 24 | /** 25 | * Destruction of the servlet.
26 | */ 27 | public void destroy() { 28 | super.destroy(); // Just puts "destroy" string in log 29 | // Put your code here 30 | } 31 | 32 | /** 33 | * The doGet method of the servlet.
34 | * 35 | * This method is called when a form has its tag value method equals to get. 36 | * 37 | * @param request the request send by the client to the server 38 | * @param response the response send by the server to the client 39 | * @throws ServletException if an error occurred 40 | * @throws IOException if an error occurred 41 | */ 42 | public void doGet(HttpServletRequest request, HttpServletResponse response) 43 | throws ServletException, IOException { 44 | 45 | this.doPost(request, response); 46 | } 47 | 48 | /** 49 | * The doPost method of the servlet.
50 | * 51 | * This method is called when a form has its tag value method equals to post. 52 | * 53 | * @param request the request send by the client to the server 54 | * @param response the response send by the server to the client 55 | * @throws ServletException if an error occurred 56 | * @throws IOException if an error occurred 57 | */ 58 | public void doPost(HttpServletRequest request, HttpServletResponse response) 59 | throws ServletException, IOException { 60 | 61 | response.setContentType("text/html"); 62 | response.setCharacterEncoding("UTF-8"); 63 | PrintWriter out = response.getWriter(); 64 | String id = request.getParameter("sportsid");//获取的运动会届次id 65 | int sportsid = Integer.parseInt(id); 66 | String departid = request.getParameter("departname"); 67 | int depart = Integer.parseInt(departid); 68 | //System.out.println(sportsid); 69 | //System.out.println(depart); 70 | GameQueryServices gqs = new GameQueryServices(); 71 | JSONArray jsonarray = new JSONArray(); 72 | jsonarray = gqs.SelectTeamLeader(sportsid, depart); 73 | out.print(jsonarray); 74 | out.flush(); 75 | out.close(); 76 | } 77 | 78 | /** 79 | * Initialization of the servlet.
80 | * 81 | * @throws ServletException if an error occurs 82 | */ 83 | public void init() throws ServletException { 84 | // Put your code here 85 | } 86 | 87 | } 88 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/SelectStuentJudgeServlet.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | 13 | import org.apache.log4j.Logger; 14 | 15 | import cn.edu.hbcit.smms.dao.logindao.LoginDAO; 16 | import cn.edu.hbcit.smms.services.gamesetservices.OfficialSetService; 17 | 18 | public class SelectStuentJudgeServlet extends HttpServlet { 19 | 20 | /**查询到的学生裁判传到前台以便修改查看 21 | * Constructor of the object. 22 | */ 23 | protected final Logger log = Logger.getLogger(SelectStuentJudgeServlet.class.getName()); 24 | public SelectStuentJudgeServlet() { 25 | super(); 26 | } 27 | 28 | /** 29 | * Destruction of the servlet.
30 | */ 31 | public void destroy() { 32 | super.destroy(); // Just puts "destroy" string in log 33 | // Put your code here 34 | } 35 | 36 | /** 37 | * The doGet method of the servlet.
38 | * 39 | * This method is called when a form has its tag value method equals to get. 40 | * 41 | * @param request the request send by the client to the server 42 | * @param response the response send by the server to the client 43 | * @throws ServletException if an error occurred 44 | * @throws IOException if an error occurred 45 | */ 46 | public void doGet(HttpServletRequest request, HttpServletResponse response) 47 | throws ServletException, IOException { 48 | 49 | OfficialSetService official= new OfficialSetService(); 50 | HttpSession session = request.getSession(); 51 | int sportsid=Integer.parseInt(session.getAttribute("currSportsId").toString()); 52 | 53 | ArrayList list1 = new ArrayList(); 54 | list1 = official.selectAllStuJudge(sportsid); 55 | log.debug("学生裁判 :"+list1); 56 | session.setAttribute("stujudge", list1); 57 | response.sendRedirect("../set_alterstujudge.jsp"); 58 | 59 | } 60 | 61 | /** 62 | * The doPost method of the servlet.
63 | * 64 | * This method is called when a form has its tag value method equals to post. 65 | * 66 | * @param request the request send by the client to the server 67 | * @param response the response send by the server to the client 68 | * @throws ServletException if an error occurred 69 | * @throws IOException if an error occurred 70 | */ 71 | public void doPost(HttpServletRequest request, HttpServletResponse response) 72 | throws ServletException, IOException { 73 | 74 | this.doGet(request, response); 75 | } 76 | 77 | /** 78 | * Initialization of the servlet.
79 | * 80 | * @throws ServletException if an error occurs 81 | */ 82 | public void init() throws ServletException { 83 | // Put your code here 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /WebRoot/update_runway.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*,cn.edu.hbcit.smms.pojo.*" pageEncoding="utf-8"%> 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 | 4 | 5 | 6 | 7 | 8 | update_runway.jsp 9 | 10 | 11 | 12 | 13 | 57 | 58 | 59 | 60 | 61 | 62 |
63 | 64 | 65 | 66 | 67 | 68 | 72 | 73 | 74 | 78 | 79 | 80 |
运动员号码跑道
69 | 70 | 71 | 75 | 76 | 77 |
81 | 82 |
83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/ViewAllRecordServlet.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, 河北工业职业技术学院计算机系2010软件专业. 3 | * 4 | * 模块名称: 5 | * 子模块名称: 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 2012-10-23 0.1 李玮 新建 11 | */ 12 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 13 | 14 | import java.io.IOException; 15 | import java.io.PrintWriter; 16 | import java.util.ArrayList; 17 | 18 | import javax.servlet.ServletException; 19 | import javax.servlet.http.HttpServlet; 20 | import javax.servlet.http.HttpServletRequest; 21 | import javax.servlet.http.HttpServletResponse; 22 | 23 | import cn.edu.hbcit.smms.services.gamesetservices.RecordServices; 24 | 25 | /** 26 | * 显示所有历届记录类 27 | * 简要说明: 28 | * @author 李玮 29 | * @version 1.00 2012-10-23下午11:37:33 新建 30 | */ 31 | 32 | public class ViewAllRecordServlet extends HttpServlet { 33 | 34 | /** 35 | * Constructor of the object. 36 | */ 37 | public ViewAllRecordServlet() { 38 | super(); 39 | } 40 | 41 | /** 42 | * Destruction of the servlet.
43 | */ 44 | public void destroy() { 45 | super.destroy(); // Just puts "destroy" string in log 46 | // Put your code here 47 | } 48 | 49 | /** 50 | * The doGet method of the servlet.
51 | * 52 | * This method is called when a form has its tag value method equals to get. 53 | * 54 | * @param request the request send by the client to the server 55 | * @param response the response send by the server to the client 56 | * @throws ServletException if an error occurred 57 | * @throws IOException if an error occurred 58 | */ 59 | public void doGet(HttpServletRequest request, HttpServletResponse response) 60 | throws ServletException, IOException { 61 | 62 | this.doPost(request, response); 63 | } 64 | 65 | /** 66 | * The doPost method of the servlet.
67 | * 68 | * This method is called when a form has its tag value method equals to post. 69 | * 70 | * @param request the request send by the client to the server 71 | * @param response the response send by the server to the client 72 | * @throws ServletException if an error occurred 73 | * @throws IOException if an error occurred 74 | */ 75 | public void doPost(HttpServletRequest request, HttpServletResponse response) 76 | throws ServletException, IOException { 77 | 78 | response.setContentType("text/html"); 79 | RecordServices record = new RecordServices(); 80 | ArrayList list_man = new ArrayList(); 81 | ArrayList list_woman = new ArrayList(); 82 | list_man = record.selectAllRecords(1); //1:男 83 | list_woman = record.selectAllRecords(0); //2:女 84 | request.setAttribute("man", list_man); 85 | request.setAttribute("woman", list_woman); 86 | request.getRequestDispatcher("/set_recordall.jsp").forward(request, response); 87 | } 88 | 89 | /** 90 | * Initialization of the servlet.
91 | * 92 | * @throws ServletException if an error occurs 93 | */ 94 | public void init() throws ServletException { 95 | // Put your code here 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/ViewPlayerNumServlet.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, liwei. 3 | * 4 | * 模块名称: 5 | * 子模块名称: 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2012-9-18 V1.0 李玮 新建 12 | */ 13 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 14 | 15 | import java.io.IOException; 16 | import java.io.PrintWriter; 17 | import java.util.ArrayList; 18 | 19 | import javax.servlet.ServletException; 20 | import javax.servlet.http.HttpServlet; 21 | import javax.servlet.http.HttpServletRequest; 22 | import javax.servlet.http.HttpServletResponse; 23 | import javax.servlet.http.HttpSession; 24 | 25 | import cn.edu.hbcit.smms.services.gamesetservices.SportsService; 26 | 27 | public class ViewPlayerNumServlet extends HttpServlet { 28 | 29 | /** 30 | * Constructor of the object. 31 | */ 32 | public ViewPlayerNumServlet() { 33 | super(); 34 | } 35 | 36 | /** 37 | * Destruction of the servlet.
38 | */ 39 | public void destroy() { 40 | super.destroy(); // Just puts "destroy" string in log 41 | // Put your code here 42 | } 43 | 44 | /** 45 | * The doGet method of the servlet.
46 | * 47 | * This method is called when a form has its tag value method equals to get. 48 | * 49 | * @param request the request send by the client to the server 50 | * @param response the response send by the server to the client 51 | * @throws ServletException if an error occurred 52 | * @throws IOException if an error occurred 53 | */ 54 | public void doGet(HttpServletRequest request, HttpServletResponse response) 55 | throws ServletException, IOException { 56 | 57 | this.doPost(request, response); 58 | } 59 | 60 | /** 61 | * The doPost method of the servlet.
62 | * 63 | * This method is called when a form has its tag value method equals to post. 64 | * 65 | * @param request the request send by the client to the server 66 | * @param response the response send by the server to the client 67 | * @throws ServletException if an error occurred 68 | * @throws IOException if an error occurred 69 | */ 70 | public void doPost(HttpServletRequest request, HttpServletResponse response) 71 | throws ServletException, IOException { 72 | 73 | response.setContentType("text/html"); 74 | SportsService ss = new SportsService(); 75 | ArrayList list = new ArrayList(); 76 | HttpSession session = request.getSession(); 77 | int sportsId = 0; 78 | if(session.getAttribute("currSportsId") != null){ 79 | sportsId = ((Integer)session.getAttribute("currSportsId")).intValue(); 80 | } 81 | 82 | list = ss.selectPlayernum(sportsId); 83 | request.setAttribute("playerNumList", list); 84 | request.getRequestDispatcher("/set_playernum.jsp").forward(request, response); 85 | } 86 | 87 | /** 88 | * Initialization of the servlet.
89 | * 90 | * @throws ServletException if an error occurs 91 | */ 92 | public void init() throws ServletException { 93 | // Put your code here 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/RemoveRecordServlet.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, 河北工业职业技术学院计算机系2010软件专业. 3 | * 4 | * 模块名称: 5 | * 子模块名称: 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 2012-10-30 0.1 李玮 新建 11 | */ 12 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 13 | 14 | import java.io.IOException; 15 | import java.io.PrintWriter; 16 | 17 | import javax.servlet.ServletException; 18 | import javax.servlet.http.HttpServlet; 19 | import javax.servlet.http.HttpServletRequest; 20 | import javax.servlet.http.HttpServletResponse; 21 | 22 | import cn.edu.hbcit.smms.services.gamesetservices.RecordServices; 23 | 24 | /** 25 | * 删除赛事记录类 26 | * 简要说明: 27 | * @author 李玮 28 | * @version 1.00 2012-10-30下午10:08:17 新建 29 | */ 30 | 31 | public class RemoveRecordServlet extends HttpServlet { 32 | 33 | /** 34 | * Constructor of the object. 35 | */ 36 | public RemoveRecordServlet() { 37 | super(); 38 | } 39 | 40 | /** 41 | * Destruction of the servlet.
42 | */ 43 | public void destroy() { 44 | super.destroy(); // Just puts "destroy" string in log 45 | // Put your code here 46 | } 47 | 48 | /** 49 | * The doGet method of the servlet.
50 | * 51 | * This method is called when a form has its tag value method equals to get. 52 | * 53 | * @param request the request send by the client to the server 54 | * @param response the response send by the server to the client 55 | * @throws ServletException if an error occurred 56 | * @throws IOException if an error occurred 57 | */ 58 | public void doGet(HttpServletRequest request, HttpServletResponse response) 59 | throws ServletException, IOException { 60 | 61 | response.setContentType("text/html"); 62 | PrintWriter out = response.getWriter(); 63 | RecordServices rs = new RecordServices(); 64 | String id = request.getParameter("id").trim(); 65 | boolean flag = false; 66 | 67 | flag = rs.removeRecord(id); 68 | if(flag){ 69 | out.print("success"); 70 | } 71 | else{ 72 | out.print("error"); 73 | } 74 | out.flush(); 75 | out.close(); 76 | } 77 | 78 | /** 79 | * The doPost method of the servlet.
80 | * 81 | * This method is called when a form has its tag value method equals to post. 82 | * 83 | * @param request the request send by the client to the server 84 | * @param response the response send by the server to the client 85 | * @throws ServletException if an error occurred 86 | * @throws IOException if an error occurred 87 | */ 88 | public void doPost(HttpServletRequest request, HttpServletResponse response) 89 | throws ServletException, IOException { 90 | 91 | this.doGet(request, response); 92 | } 93 | 94 | /** 95 | * Initialization of the servlet.
96 | * 97 | * @throws ServletException if an error occurs 98 | */ 99 | public void init() throws ServletException { 100 | // Put your code here 101 | } 102 | 103 | } 104 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/systemmanageservlet/ViewAddAccountPageServlet.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright(C) 2012, 河北工业职业技术学院. 3 | * 4 | * 模块名称: 系统管理 5 | * 子模块名称: 账户管理 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | * 2012-6-13 V1.0 李玮 新建 12 | */ 13 | package cn.edu.hbcit.smms.servlet.systemmanageservlet; 14 | 15 | import java.io.IOException; 16 | import java.io.PrintWriter; 17 | import java.util.ArrayList; 18 | 19 | import javax.servlet.ServletException; 20 | import javax.servlet.http.HttpServlet; 21 | import javax.servlet.http.HttpServletRequest; 22 | import javax.servlet.http.HttpServletResponse; 23 | 24 | import cn.edu.hbcit.smms.services.systemmanageservices.AccountService; 25 | 26 | /** 27 | * 显示“添加账户”页面类 28 | * 29 | * 本类的简要描述: 30 | * 31 | * @author Administrator 32 | * @version 1.00 2012-6-13 新建类 33 | */ 34 | 35 | public class ViewAddAccountPageServlet extends HttpServlet { 36 | 37 | /** 38 | * Constructor of the object. 39 | */ 40 | public ViewAddAccountPageServlet() { 41 | super(); 42 | } 43 | 44 | /** 45 | * Destruction of the servlet.
46 | */ 47 | public void destroy() { 48 | super.destroy(); // Just puts "destroy" string in log 49 | // Put your code here 50 | } 51 | 52 | /** 53 | * The doGet method of the servlet.
54 | * 55 | * This method is called when a form has its tag value method equals to get. 56 | * 57 | * @param request the request send by the client to the server 58 | * @param response the response send by the server to the client 59 | * @throws ServletException if an error occurred 60 | * @throws IOException if an error occurred 61 | */ 62 | public void doGet(HttpServletRequest request, HttpServletResponse response) 63 | throws ServletException, IOException { 64 | 65 | response.setContentType("text/html"); 66 | AccountService as = new AccountService(); 67 | ArrayList list = new ArrayList(); 68 | 69 | list = as.selectDepartment(); 70 | request.setAttribute("depart", list); 71 | request.getRequestDispatcher("/admin_add_account.jsp").forward(request, response); 72 | } 73 | 74 | /** 75 | * The doPost method of the servlet.
76 | * 77 | * This method is called when a form has its tag value method equals to post. 78 | * 79 | * @param request the request send by the client to the server 80 | * @param response the response send by the server to the client 81 | * @throws ServletException if an error occurred 82 | * @throws IOException if an error occurred 83 | */ 84 | public void doPost(HttpServletRequest request, HttpServletResponse response) 85 | throws ServletException, IOException { 86 | 87 | this.doGet(request, response); 88 | } 89 | 90 | /** 91 | * Initialization of the servlet.
92 | * 93 | * @throws ServletException if an error occurs 94 | */ 95 | public void init() throws ServletException { 96 | // Put your code here 97 | } 98 | 99 | } 100 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/SeleteItemRecordSonServlet.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | 13 | import cn.edu.hbcit.smms.services.gamesetservices.RecordServices; 14 | 15 | public class SeleteItemRecordSonServlet extends HttpServlet { 16 | 17 | /**查询出的项目显示在页面中得下拉列表中 18 | * Constructor of the object. 19 | */ 20 | public SeleteItemRecordSonServlet() { 21 | super(); 22 | } 23 | 24 | /** 25 | * Destruction of the servlet.
26 | */ 27 | public void destroy() { 28 | super.destroy(); // Just puts "destroy" string in log 29 | // Put your code here 30 | } 31 | 32 | /** 33 | * The doGet method of the servlet.
34 | * 35 | * This method is called when a form has its tag value method equals to get. 36 | * 37 | * @param request the request send by the client to the server 38 | * @param response the response send by the server to the client 39 | * @throws ServletException if an error occurred 40 | * @throws IOException if an error occurred 41 | */ 42 | public void doGet(HttpServletRequest request, HttpServletResponse response) 43 | throws ServletException, IOException { 44 | 45 | this.doPost(request, response); 46 | } 47 | 48 | /** 49 | * The doPost method of the servlet.
50 | * 51 | * This method is called when a form has its tag value method equals to post. 52 | * 53 | * @param request the request send by the client to the server 54 | * @param response the response send by the server to the client 55 | * @throws ServletException if an error occurred 56 | * @throws IOException if an error occurred 57 | */ 58 | public void doPost(HttpServletRequest request, HttpServletResponse response) 59 | throws ServletException, IOException { 60 | 61 | response.setHeader("Pragma", "No-cache"); 62 | response.setHeader("Cache-control", "no-cache"); 63 | response.setDateHeader("Expires", 0); 64 | response.setContentType("text/html;utf-8"); 65 | response.setCharacterEncoding("utf-8"); 66 | // 67 | 68 | 69 | // 70 | RecordServices bs = new RecordServices(); 71 | // 72 | ArrayList adminList=new ArrayList(); 73 | 74 | adminList = bs.getItemRecord(); 75 | HttpSession session=request.getSession(); 76 | session.setAttribute("iteRecord", adminList); 77 | //out.println(adminList); 78 | response.sendRedirect("../set_recordson.jsp"); 79 | } 80 | 81 | /** 82 | * Initialization of the servlet.
83 | * 84 | * @throws ServletException if an error occurs 85 | */ 86 | public void init() throws ServletException { 87 | // Put your code here 88 | } 89 | 90 | } 91 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/services/gamemanageservices/GameManageServices.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright(C) 2012, 河北工业职业技术学院计算机系2010软件专业. 3 | * 4 | * 模块名称: AAAAAAAAAAA 5 | * 子模块名称: BBBBBBBBBBB 6 | * 7 | * 备注: 8 | * 9 | * 修改历史: 10 | * 时间 版本号 姓名 修改内容 11 | */ 12 | 13 | package cn.edu.hbcit.smms.services.gamemanageservices; 14 | 15 | import java.io.IOException; 16 | import java.util.ArrayList; 17 | 18 | import com.lowagie.text.DocumentException; 19 | 20 | import cn.edu.hbcit.smms.dao.gamemanagedao.GameManageCreateWordOfAthleteInfDao; 21 | import cn.edu.hbcit.smms.dao.gamemanagedao.GameManageDao; 22 | import cn.edu.hbcit.smms.pojo.GameManagePoJo; 23 | 24 | /** 25 | * 赛中管理------------>成绩管理------------>service类 26 | * @author 刘然 27 | * @version 1.00 2012/06/13 新規作成
28 | */ 29 | public class GameManageServices { 30 | 31 | GameManageDao gm = new GameManageDao(); 32 | GameManageCreateWordOfAthleteInfDao cw = new GameManageCreateWordOfAthleteInfDao(); 33 | 34 | public ArrayList getGroup() 35 | { 36 | return gm.getGroup(); 37 | } 38 | 39 | public String getItemType(int finalItemId) 40 | { 41 | return gm.getItemType(finalItemId); 42 | } 43 | 44 | public ArrayList getFinalItem(int groupid) 45 | { 46 | return gm.getFinalItem(groupid); 47 | } 48 | 49 | public ArrayList getAthleteList(int finalItemId,String itemType) 50 | { 51 | return gm.getAthleteList(finalItemId,itemType); 52 | } 53 | 54 | 55 | public ArrayList getPlayerList(int playerNum,int finalItemId) 56 | { 57 | return gm.getPlayerList(playerNum,finalItemId); 58 | } 59 | 60 | public String finalItemName(int matchid){ 61 | return new GameManageDao().finalItemName(matchid); 62 | } 63 | 64 | public String groupName(int matchid){ 65 | return new GameManageDao().groupName(matchid); 66 | } 67 | 68 | public void deletePositionPlayer(String finalitemname,int sportsid,int matchid){ 69 | new GameManageDao().deletePositionPlayer(finalitemname, sportsid, matchid); 70 | } 71 | 72 | public boolean updateMatch(int playerNum,String score,int foul,int recordlevel) 73 | { 74 | return gm.updateMatch(playerNum, score, foul, recordlevel); 75 | } 76 | 77 | public void deleteRecordPlayer(int playerid,int matchid){ 78 | new GameManageDao().deleteRecordPlayer( playerid,matchid); 79 | } 80 | 81 | public ArrayList createWordOfAthleteInf(int finalItemId,String itemType) 82 | { 83 | return gm.createWordOfAthleteInf(finalItemId,itemType); 84 | } 85 | 86 | public void createDocContext(String file,String titles,ArrayList athleteList) throws DocumentException, IOException 87 | { 88 | cw.createDocContext(file,titles,athleteList); 89 | } 90 | 91 | public String createWordOfSportsName(int finalItemId) 92 | { 93 | return gm.createWordOfSportsName(finalItemId); 94 | } 95 | } 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /src/cn/edu/hbcit/smms/servlet/gamesetservlet/SeleteItemRecordServlet.java: -------------------------------------------------------------------------------- 1 | package cn.edu.hbcit.smms.servlet.gamesetservlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | 13 | import cn.edu.hbcit.smms.services.gamesetservices.RecordServices; 14 | 15 | public class SeleteItemRecordServlet extends HttpServlet { 16 | 17 | /**查询出的项目显示在页面中得下拉列表中 18 | * Constructor of the object. 19 | */ 20 | public SeleteItemRecordServlet() { 21 | super(); 22 | } 23 | 24 | /** 25 | * Destruction of the servlet.
26 | */ 27 | public void destroy() { 28 | super.destroy(); // Just puts "destroy" string in log 29 | // Put your code here 30 | } 31 | 32 | /** 33 | * The doGet method of the servlet.
34 | * 35 | * This method is called when a form has its tag value method equals to get. 36 | * 37 | * @param request the request send by the client to the server 38 | * @param response the response send by the server to the client 39 | * @throws ServletException if an error occurred 40 | * @throws IOException if an error occurred 41 | */ 42 | public void doGet(HttpServletRequest request, HttpServletResponse response) 43 | throws ServletException, IOException { 44 | 45 | this.doPost(request, response); 46 | } 47 | 48 | /** 49 | * The doPost method of the servlet.
50 | * 51 | * This method is called when a form has its tag value method equals to post. 52 | * 53 | * @param request the request send by the client to the server 54 | * @param response the response send by the server to the client 55 | * @throws ServletException if an error occurred 56 | * @throws IOException if an error occurred 57 | */ 58 | public void doPost(HttpServletRequest request, HttpServletResponse response) 59 | throws ServletException, IOException { 60 | 61 | response.setHeader("Pragma", "No-cache"); 62 | response.setHeader("Cache-control", "no-cache"); 63 | response.setDateHeader("Expires", 0); 64 | response.setContentType("text/html;utf-8"); 65 | response.setCharacterEncoding("utf-8"); 66 | // 67 | 68 | 69 | // 70 | RecordServices bs = new RecordServices(); 71 | // 72 | 73 | 74 | ArrayList adminList=new ArrayList(); 75 | 76 | adminList = bs.getItemRecord(); 77 | HttpSession session=request.getSession(); 78 | session.setAttribute("itemRecord", adminList); 79 | //out.println(adminList); 80 | response.sendRedirect("set_record.jsp"); 81 | 82 | } 83 | 84 | /** 85 | * Initialization of the servlet.
86 | * 87 | * @throws ServletException if an error occurs 88 | */ 89 | public void init() throws ServletException { 90 | // Put your code here 91 | } 92 | 93 | } 94 | --------------------------------------------------------------------------------