├── .idea ├── .name ├── vcs.xml ├── modules.xml ├── artifacts │ ├── drug_war.xml │ └── drug_war_exploded.xml ├── libraries │ ├── Maven__taglibs_standard_1_1_2.xml │ ├── Maven__com_mchange_c3p0_0_9_5_5.xml │ ├── Maven__org_mybatis_mybatis_3_5_13.xml │ ├── Maven__aopalliance_aopalliance_1_0.xml │ ├── Maven__javax_servlet_jsp_jsp_api_2_1.xml │ ├── Maven__javax_servlet_jsp_jstl_jstl_1_2.xml │ ├── Maven__com_fasterxml_classmate_1_5_1.xml │ ├── Maven__javax_servlet_servlet_api_2_5.xml │ ├── Maven__org_glassfish_web_jstl_impl_1_2.xml │ ├── Maven__javax_servlet_jsp_jstl_jstl_api_1_2.xml │ ├── Maven__org_aspectj_aspectjweaver_1_9_7.xml │ ├── Maven__com_github_jsqlparser_jsqlparser_4_5.xml │ ├── Maven__org_mybatis_mybatis_spring_2_1_0.xml │ ├── Maven__com_github_pagehelper_pagehelper_5_3_2.xml │ ├── Maven__com_mysql_mysql_connector_j_8_0_32.xml │ ├── Maven__javax_servlet_javax_servlet_api_3_1_0.xml │ ├── Maven__com_google_protobuf_protobuf_java_3_21_9.xml │ ├── Maven__com_mchange_mchange_commons_java_0_2_20.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_14_2.xml │ ├── Maven__org_jboss_logging_jboss_logging_3_2_1_Final.xml │ ├── Maven__org_springframework_spring_tx_5_2_21_RELEASE.xml │ ├── Maven__javax_validation_validation_api_2_0_1_Final.xml │ ├── Maven__org_springframework_spring_aop_5_2_21_RELEASE.xml │ ├── Maven__org_springframework_spring_jcl_5_2_21_RELEASE.xml │ ├── Maven__org_springframework_spring_web_5_2_21_RELEASE.xml │ ├── Maven__org_springframework_spring_core_5_2_21_RELEASE.xml │ ├── Maven__org_springframework_spring_jdbc_5_2_21_RELEASE.xml │ ├── Maven__org_springframework_spring_test_5_2_21_RELEASE.xml │ ├── Maven__org_springframework_spring_beans_5_2_21_RELEASE.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_14_2.xml │ ├── Maven__jakarta_validation_jakarta_validation_api_2_0_2.xml │ ├── Maven__org_springframework_spring_webmvc_5_2_21_RELEASE.xml │ ├── Maven__org_springframework_spring_aspects_5_2_21_RELEASE.xml │ ├── Maven__org_springframework_spring_context_5_2_21_RELEASE.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_14_2.xml │ ├── Maven__org_springframework_spring_websocket_5_2_21_RELEASE.xml │ ├── Maven__org_springframework_spring_expression_5_2_21_RELEASE.xml │ ├── Maven__org_hibernate_validator_hibernate_validator_6_2_1_Final.xml │ └── Maven__org_hibernate_validator_hibernate_validator_annotation_processor_6_2_1_Final.xml ├── misc.xml ├── compiler.xml ├── jarRepositories.xml └── encodings.xml ├── src └── main │ ├── resources │ ├── i18n.properties │ ├── i18n_en_US.properties │ ├── i18n_zh_CN.properties │ ├── db.properties │ ├── sqlMapConfig.xml │ ├── springmvc-config.xml │ └── spring_config.xml │ ├── webapp │ ├── static-res │ │ ├── css │ │ │ ├── index_css.css │ │ │ └── main.css │ │ └── bootstrap-3.3.7-dist │ │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ ├── js │ │ │ └── npm.js │ │ │ └── datetimepicker │ │ │ └── bootstrap-datetimepicker.zh-CN.js │ ├── META-INF │ │ └── MANIFEST.MF │ ├── WEB-INF │ │ ├── service │ │ │ ├── model.jsp │ │ │ ├── main.jsp │ │ │ ├── store │ │ │ │ ├── store.jsp │ │ │ │ └── addstore.jsp │ │ │ ├── storetip │ │ │ │ └── storetip.jsp │ │ │ ├── sell │ │ │ │ ├── sellselect_user.jsp │ │ │ │ ├── sellamount_user.jsp │ │ │ │ └── sellselect.jsp │ │ │ ├── sellover │ │ │ │ └── sellover.jsp │ │ │ └── forclerk │ │ │ │ └── clerk_manage.jsp │ │ └── web.xml │ ├── index.jsp │ └── register.jsp │ └── java │ └── com │ ├── bean │ ├── Gonghuoshang.java │ ├── Manager.java │ ├── RxpersonJson.java │ ├── Limitsell.java │ ├── Msg.java │ ├── ResponseResult.java │ ├── Json.java │ ├── Rxdrug.java │ ├── Sellover.java │ ├── Sell.java │ ├── Rxperson.java │ ├── Drug.java │ ├── Datetips.java │ ├── Sellrecords.java │ ├── Store.java │ └── Jinhuo.java │ ├── mapper │ ├── GonghuoshangMapper.java │ ├── ManagerMapper.java │ ├── RxpersonMapper.java │ ├── RxdrugMapper.java │ ├── GonghuoshangMapper.xml │ ├── LimitsellMapper.java │ ├── JinhuoMapper.java │ ├── DrugMapper.java │ ├── ManagerMapper.xml │ ├── LimitsellMapper.xml │ ├── RxpersonMapper.xml │ ├── StoreMapper.java │ ├── DrugMapper.xml │ ├── SellMapper.java │ ├── JinhuoMapper.xml │ ├── RxdrugMapper.xml │ ├── StoreMapper.xml │ └── SellMapper.xml │ ├── utils │ ├── Boolean_tiaoxingma.java │ └── StringPro.java │ ├── service │ ├── ManagerService.java │ ├── DruginfoService.java │ ├── RxService.java │ ├── StoreService.java │ └── JinhuoService.java │ ├── interceptors │ └── LoginInterceptor.java │ └── controller │ ├── RxController.java │ ├── LimitController.java │ ├── SellController.java │ ├── JinhuoController.java │ ├── LoginController.java │ └── DruginfoController.java ├── README.md ├── drug.sql └── drug.iml /.idea/.name: -------------------------------------------------------------------------------- 1 | drug -------------------------------------------------------------------------------- /src/main/resources/i18n.properties: -------------------------------------------------------------------------------- 1 | i18n.username=Username 2 | i18n.password=Password -------------------------------------------------------------------------------- /src/main/resources/i18n_en_US.properties: -------------------------------------------------------------------------------- 1 | i18n.username=Username 2 | i18n.password=Password -------------------------------------------------------------------------------- /src/main/resources/i18n_zh_CN.properties: -------------------------------------------------------------------------------- 1 | i18n.username=\u7528\u6237\u540D 2 | i18n.password=\u5BC6\u7801 -------------------------------------------------------------------------------- /src/main/webapp/static-res/css/index_css.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color:rgba(232,232,232,0.6); 3 | } -------------------------------------------------------------------------------- /src/main/webapp/static-res/css/main.css: -------------------------------------------------------------------------------- 1 | .main_nav{ 2 | padding-left:50px; 3 | padding-top:20px; 4 | height:100px; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Administrator 3 | Created-By: Apache Maven 3.6.0 4 | Build-Jdk: 1.8.0_171 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/db.properties: -------------------------------------------------------------------------------- 1 | db.driver=com.mysql.cj.jdbc.Driver 2 | db.url=jdbc:mysql://localhost:3306/drug?useUnicode=true&characterEncoding=utf8&useSSL=false 3 | db.username=root 4 | db.password=1310748243 -------------------------------------------------------------------------------- /src/main/webapp/static-res/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deathbreak/drug/HEAD/src/main/webapp/static-res/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/webapp/static-res/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deathbreak/drug/HEAD/src/main/webapp/static-res/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/webapp/static-res/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deathbreak/drug/HEAD/src/main/webapp/static-res/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/webapp/static-res/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deathbreak/drug/HEAD/src/main/webapp/static-res/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Gonghuoshang.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class Gonghuoshang { 4 | private String gonghuoshang; 5 | 6 | public String getGonghuoshang() { 7 | return gonghuoshang; 8 | } 9 | 10 | public void setGonghuoshang(String gonghuoshang) { 11 | this.gonghuoshang = gonghuoshang; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # drug 2 | 药店销售管理系统 3 | maven+spring+springmvc+mybatis+mysql. 4 | 项目运行后样例 5 | 人太忙了,项目是可以直接运行的,要是不会包调试运行走闲鱼-->[闲鱼链接](https://m.tb.cn/h.6yzDs3X?tk=XUMBVoGNfrJ) 闲鱼联系微信15638534323 6 | 7 | ## Stargazers over time 8 | [![Stargazers over time](https://starchart.cc/deathbreak/drug.svg?variant=dark)](https://starchart.cc/deathbreak/drug) 9 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/GonghuoshangMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.stereotype.Repository; 6 | 7 | import com.bean.Gonghuoshang; 8 | 9 | 10 | @Repository 11 | public interface GonghuoshangMapper { 12 | void AddGHS(String gonghuoshang); 13 | void DelGHS(String gonghuoshang); 14 | List QueryGHS(String gonghuoshang); 15 | List GeyAllGHS(); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/ManagerMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.stereotype.Repository; 6 | 7 | import com.bean.Manager; 8 | 9 | @Repository 10 | public interface ManagerMapper { 11 | List QueryUserByName(String username); 12 | int CountUserByName(String username); 13 | void AddNewUser(Manager manager); 14 | List GetAllClerk(); 15 | void DelClerk(String username); 16 | } 17 | -------------------------------------------------------------------------------- /.idea/artifacts/drug_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/target 4 | 5 | 6 | drug 7 | war 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/RxpersonMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.stereotype.Repository; 6 | 7 | import com.bean.Rxperson; 8 | 9 | @Repository 10 | public interface RxpersonMapper { 11 | void AddRxperson(Rxperson Rxp); 12 | List GetByTime(String time); 13 | /** 14 | * 获取已记录的处方药登记时间. 15 | * @return 16 | */ 17 | List GetequalsTime(); 18 | List GetDateTime(String time); 19 | void UpdateRxp(Rxperson rx); 20 | void DelRxp(String time); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/webapp/static-res/bootstrap-3.3.7-dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /src/main/java/com/utils/Boolean_tiaoxingma.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | public class Boolean_tiaoxingma { 4 | private final static String reg = "[0-9]{6,22}"; 5 | private final static String reg2 = "^\\d{4}-\\d{2}-\\d{2}$"; 6 | 7 | /** 8 | * 用于校验条形码格式 9 | * reg = "[0-9]{6,22}" 10 | * 11 | * @param param 12 | * @return 13 | */ 14 | public static boolean CheckParam(String param) { 15 | return param.matches(reg); 16 | } 17 | 18 | public static boolean Checkdate(String date) { 19 | return date.matches(reg2); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__taglibs_standard_1_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_mchange_c3p0_0_9_5_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/RxdrugMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.stereotype.Repository; 6 | 7 | import com.bean.Rxdrug; 8 | 9 | @Repository 10 | public interface RxdrugMapper { 11 | void AddRxdrug(Rxdrug rxd); 12 | void DelRxdrug(String time); 13 | List GetIt(String time); 14 | Integer CountNullRx(); 15 | /** 16 | * @return 获取未记录的处方药购药时间(time主键) 17 | */ 18 | List GetAllOverTime(); 19 | /** 20 | * 查询登记的处方药购药记录 21 | * @param drug 22 | * @return 23 | */ 24 | List GetSomeDrugTime(String drug); 25 | } 26 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_mybatis_3_5_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/resources/sqlMapConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_servlet_jsp_jstl_jstl_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_classmate_1_5_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_web_jstl_impl_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_servlet_jsp_jstl_jstl_api_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Manager.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class Manager { 4 | private String user; 5 | private String password; 6 | private Integer role; // role 0/1 ---> 普通店员/店长 7 | 8 | public String getUser() { 9 | return user; 10 | } 11 | 12 | public void setUser(String user) { 13 | this.user = user; 14 | } 15 | 16 | public String getPassword() { 17 | return password; 18 | } 19 | 20 | public void setPassword(String password) { 21 | this.password = password; 22 | } 23 | 24 | public Integer getRole() { 25 | return role; 26 | } 27 | 28 | public void setRole(Integer role) { 29 | this.role = role; 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_github_jsqlparser_jsqlparser_4_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_mybatis_spring_2_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_github_pagehelper_pagehelper_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_mysql_mysql_connector_j_8_0_32.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_21_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_mchange_mchange_commons_java_0_2_20.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/GonghuoshangMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | insert into ghs values(#{gonghuoshang}) 8 | 9 | 10 | delete from ghs where gonghuoshang = #{gonghuoshang} 11 | 12 | 15 | 18 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_14_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_2_1_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_tx_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/LimitsellMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import com.bean.Gonghuoshang; 4 | import com.bean.Limitsell; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | 8 | import java.util.List; 9 | 10 | 11 | @Repository 12 | public interface LimitsellMapper { 13 | void AddLimit(Limitsell limitsell); 14 | 15 | void DelLimit(@Param("drugname")String drugname, @Param("changshang")String changshang); 16 | 17 | Integer QueryLimit(@Param("drugname")String drugname, @Param("changshang")String changshang); 18 | 19 | List GetAllLimit(); 20 | 21 | int CountLimit(@Param("drugname")String drugname, @Param("changshang")String changshang); 22 | } 23 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_aop_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_jcl_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_web_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/webapp/static-res/bootstrap-3.3.7-dist/datetimepicker/bootstrap-datetimepicker.zh-CN.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Simplified Chinese translation for bootstrap-datetimepicker 3 | * Yuan Cheung 4 | */ 5 | ;(function($){ 6 | $.fn.datetimepicker.dates['zh-CN'] = { 7 | days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"], 8 | daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"], 9 | daysMin: ["日", "一", "二", "三", "四", "五", "六", "日"], 10 | months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], 11 | monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], 12 | today: "今天", 13 | suffix: [], 14 | meridiem: ["上午", "下午"] 15 | }; 16 | }(jQuery)); 17 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_core_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_jdbc_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_test_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_beans_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_14_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_2_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_webmvc_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_aspects_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_context_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/JinhuoMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | 8 | import com.bean.Jinhuo; 9 | 10 | @Repository 11 | public interface JinhuoMapper { 12 | List GetAllJinhuo(); 13 | void DelTableJinhuo(); 14 | void DelJinhuo(@Param("drugname")String drugname,@Param("changshang")String changshang,@Param("pihao")String pihao,@Param("amount")String amount); 15 | void AddJinhuo(Jinhuo jh); 16 | //////////////////////// 17 | void AddJinhuorecords(Jinhuo j); 18 | int CountGhsRecords(String gonghuoshang); 19 | void DelJinhuoRecords(String gonghuoshang); 20 | List GAJRecords(); 21 | List GJRGHS(String ghs); 22 | } 23 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_14_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_websocket_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_expression_5_2_21_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/bean/RxpersonJson.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | import java.util.List; 4 | /** 5 | * for return Json 6 | * 7 | * 8 | */ 9 | public class RxpersonJson { 10 | private List rxperson; 11 | private List rxdrug; 12 | 13 | public List getRxperson() { 14 | return rxperson; 15 | } 16 | 17 | public void setRxperson(List rxperson) { 18 | this.rxperson = rxperson; 19 | } 20 | 21 | public List getRxdrug() { 22 | return rxdrug; 23 | } 24 | 25 | public void setRxdrug(List rxdrug) { 26 | this.rxdrug = rxdrug; 27 | } 28 | 29 | public RxpersonJson() {} 30 | 31 | public RxpersonJson(List rxperson, List rxdrug) { 32 | super(); 33 | this.rxperson = rxperson; 34 | this.rxdrug = rxdrug; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_2_1_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/DrugMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | 8 | import com.bean.Drug; 9 | 10 | 11 | @Repository 12 | public interface DrugMapper { 13 | List QueryByNameCS(@Param("drugname")String drugname,@Param("changshang")String changshang); //根据drugname和changshang查找 14 | void AddDrug(Drug drug); //添加drug 15 | void DeleteDrug(@Param("drugname")String drugname,@Param("changshang")String changshang);//根据drugname和changshang删除drug 16 | List GetAllDrug();//查询全部druginfo 17 | List QueryByTiao(String tiaoxingma); //根据条形码查询drug 18 | List QueryByName(String name); //根据drugname模糊查询 19 | void Update(@Param("olddn")String olddn,@Param("oldcs")String oldcs,@Param("dd")Drug drug); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/ManagerMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | 13 | 14 | 15 | insert into manager(`user`,`password`,`role`)values(#{user},#{password},#{role}) 16 | 17 | 20 | 21 | delete from `manager` where `user`=#{user} and `role`= 0 22 | 23 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_annotation_processor_6_2_1_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Limitsell.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class Limitsell { 4 | 5 | private String drugname; 6 | 7 | private String changshang; 8 | 9 | private int amount; 10 | 11 | 12 | public String getDrugname() { 13 | return drugname; 14 | } 15 | 16 | public void setDrugname(String drugname) { 17 | this.drugname = drugname; 18 | } 19 | 20 | public String getChangshang() { 21 | return changshang; 22 | } 23 | 24 | public void setChangshang(String changshang) { 25 | this.changshang = changshang; 26 | } 27 | 28 | public int getAmount() { 29 | return amount; 30 | } 31 | 32 | public void setAmount(int amount) { 33 | this.amount = amount; 34 | } 35 | 36 | public Limitsell(String drugname, String changshang, int amount) { 37 | this.drugname = drugname; 38 | this.changshang = changshang; 39 | this.amount = amount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/LimitsellMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | insert into limitsell values(#{drugname},#{changshang},#{amount}) 8 | 9 | 10 | delete from limitsell where drugname = #{drugname} and changshang=#{changshang} 11 | 12 | 15 | 16 | 19 | 20 | 23 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Msg.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | 6 | public class Msg { 7 | private int status_code; 8 | private boolean flag; 9 | private Map Msgcontext = new HashMap(); 10 | public static Msg success() { 11 | Msg re = new Msg(); 12 | re.setStatus_code(100); 13 | re.setFlag(true); 14 | return re; 15 | } 16 | public static Msg fail() { 17 | Msg re = new Msg(); 18 | re.setStatus_code(200); 19 | re.setFlag(false); 20 | return re; 21 | } 22 | public Msg add(String attr,Object obj) { 23 | this.getMsgcontext().put(attr, obj); 24 | return this; 25 | } 26 | public int getStatus_code() { 27 | return status_code; 28 | } 29 | public void setStatus_code(int status_code) { 30 | this.status_code = status_code; 31 | } 32 | public boolean isFlag() { 33 | return flag; 34 | } 35 | public void setFlag(boolean flag) { 36 | this.flag = flag; 37 | } 38 | public Map getMsgcontext() { 39 | return Msgcontext; 40 | } 41 | public void setMsgcontext(Map msgcontext) { 42 | Msgcontext = msgcontext; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/service/model.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 医药信息管理系统 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 |
25 |
26 |
27 |
28 | 29 | 30 | -------------------------------------------------------------------------------- /src/main/java/com/service/ManagerService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | 7 | 8 | import org.springframework.stereotype.Service; 9 | 10 | import com.bean.Manager; 11 | import com.mapper.ManagerMapper; 12 | 13 | @Service 14 | public class ManagerService { 15 | @Autowired 16 | ManagerMapper manager; 17 | 18 | public List QueryUserService(String username) { 19 | return manager.QueryUserByName(username); 20 | } 21 | 22 | public synchronized Boolean AddUser(Manager _manager) { 23 | String username = _manager.getUser(); 24 | if (!"".equals(username) && !(null == username)) { 25 | int check = manager.CountUserByName(_manager.getUser()); 26 | if (check == 0) { 27 | manager.AddNewUser(_manager); 28 | return true; 29 | } else { 30 | return false; 31 | } 32 | } else { 33 | return false; 34 | } 35 | } 36 | 37 | public List GetClerk() { 38 | return manager.GetAllClerk(); 39 | } 40 | 41 | public void DelClerk(String username) { 42 | manager.DelClerk(username); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/RxpersonMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | insert into rxperson 8 | values(#{time},#{name},#{gendar},#{age},#{phone},#{location},#{hospital},#{htime},#{yz},#{ysname},#{zdys}) 9 | 10 | 13 | 16 | 19 | 20 | update rxperson set `name`=#{name},`gendar`=#{gendar},`age`=#{age},`phone`=#{phone},`location`=#{location},`hospital`=#{hospital},`htime`=#{htime},`yz`=#{yz},`ysname`=#{ysname},`zdys`=#{zdys} where `time`=#{time} 21 | 22 | 23 | delete from rxperson where `time` = #{time} 24 | 25 | -------------------------------------------------------------------------------- /src/main/java/com/bean/ResponseResult.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | 5 | @JsonInclude(JsonInclude.Include.NON_NULL) 6 | public class ResponseResult { 7 | /** 8 | * 状态码 9 | */ 10 | private Integer code; 11 | /** 12 | * 提示信息,如果有错误时,前端可以获取该字段进行提示 13 | */ 14 | private String message; 15 | /** 16 | * 查询到的结果数据, 17 | */ 18 | private T data; 19 | 20 | public ResponseResult(Integer code, String msg) { 21 | this.code = code; 22 | this.message = msg; 23 | } 24 | 25 | public ResponseResult(Integer code, T data) { 26 | this.code = code; 27 | this.data = data; 28 | } 29 | 30 | public Integer getCode() { 31 | return code; 32 | } 33 | 34 | public void setCode(Integer code) { 35 | this.code = code; 36 | } 37 | 38 | public String getMsg() { 39 | return message; 40 | } 41 | 42 | public void setMsg(String msg) { 43 | this.message = msg; 44 | } 45 | 46 | public T getData() { 47 | return data; 48 | } 49 | 50 | public void setData(T data) { 51 | this.data = data; 52 | } 53 | 54 | public ResponseResult(Integer code, String msg, T data) { 55 | this.code = code; 56 | this.message = msg; 57 | this.data = data; 58 | } 59 | } -------------------------------------------------------------------------------- /src/main/java/com/mapper/StoreMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | 8 | import com.bean.Store; 9 | 10 | 11 | @Repository 12 | public interface StoreMapper { 13 | List QueryByNCP(@Param("drugname")String drugname,@Param("changshang")String changshang,@Param("pihao")String pihao);//根据name,changshang,pihao查询 14 | String QueryBpByNCP(@Param("drugname")String drugname,@Param("changshang")String changshang,@Param("pihao")String pihao);//根据name,changshang,pihao查询beginprice 15 | void AddStore(Store store); 16 | void UpdateStoreCount(@Param("count")String count,@Param("drugname")String drugname,@Param("changshang")String changshang,@Param("pihao")String pihao); 17 | void DeleteStore(@Param("drugname")String drugname,@Param("changshang")String changshang,@Param("pihao")String pihao); 18 | List GetAllStore(); 19 | List QueryBySTiao(String tiao); 20 | List QueryBySName(String name); //根据drugname模糊查询 21 | /** 22 | * 用于缺货信息那边 23 | */ 24 | void DeleteCountZero(); 25 | /** 26 | * 库存预警 27 | * @param c (预警的数量) 28 | * @return 29 | */ 30 | List StoreYJ(int c); 31 | /** 32 | * 使用时这个方法时注意,把原批号pihao就赋值给Store.guige, 33 | * 然后把要改的批号pihao赋值给Store.pihao 34 | */ 35 | void UpdateStoreSomeInfo(Store store); 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Json.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class Json { 4 | private String first; 5 | private String second; 6 | private String three; 7 | private String four; 8 | private String five; 9 | private int six; 10 | public String getFirst() { 11 | return first; 12 | } 13 | public void setFirst(String first) { 14 | this.first = first; 15 | } 16 | public String getSecond() { 17 | return second; 18 | } 19 | public void setSecond(String second) { 20 | this.second = second; 21 | } 22 | public String getThree() { 23 | return three; 24 | } 25 | public void setThree(String three) { 26 | this.three = three; 27 | } 28 | public String getFour() { 29 | return four; 30 | } 31 | public void setFour(String four) { 32 | this.four = four; 33 | } 34 | public String getFive() { 35 | return five; 36 | } 37 | public void setFive(String five) { 38 | this.five = five; 39 | } 40 | public int getSix() { 41 | return six; 42 | } 43 | public void setSix(int six) { 44 | this.six = six; 45 | } 46 | public Json(){} 47 | public Json(String first, String second, String three, String four, 48 | String five, int six) { 49 | super(); 50 | this.first = first; 51 | this.second = second; 52 | this.three = three; 53 | this.four = four; 54 | this.five = five; 55 | this.six = six; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/interceptors/LoginInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.interceptors; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpServletResponse; 5 | 6 | import org.springframework.web.servlet.HandlerInterceptor; 7 | import org.springframework.web.servlet.ModelAndView; 8 | 9 | import com.bean.Manager; 10 | 11 | public class LoginInterceptor implements HandlerInterceptor { 12 | 13 | /** 14 | * 登录拦截器 15 | */ 16 | // @Override 17 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) 18 | throws Exception { 19 | Manager fl = (Manager) request.getSession().getAttribute("login"); 20 | if (fl != null) { 21 | return true; 22 | } else { 23 | response.sendRedirect("/drug/index.jsp"); 24 | //request.getRequestDispatcher("/index.jsp").forward(request, response); 25 | return false; 26 | } 27 | 28 | } 29 | 30 | // @Override 31 | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, 32 | ModelAndView modelAndView) throws Exception { 33 | 34 | } 35 | 36 | // @Override 37 | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) 38 | throws Exception { 39 | 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/DrugMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 12 | 13 | insert into druginfo(`drugname`,`changshang`,`beizhu`,`location`,`unit`,`guige`,`tiaoxingma`)values(#{drugname},#{changshang},#{beizhu},#{location},#{unit},#{guige},#{tiaoxingma}) 14 | 15 | 16 | delete from druginfo where `drugname`=#{drugname} and `changshang`=#{changshang} 17 | 18 | 21 | 24 | 25 | update druginfo set drugname=#{dd.drugname},changshang=#{dd.changshang},beizhu=#{dd.beizhu},location=#{dd.location},unit=#{dd.unit},guige=#{dd.guige},tiaoxingma=#{dd.tiaoxingma} where drugname=#{olddn} and changshang = #{oldcs} 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/SellMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | 8 | import com.bean.Sell; 9 | import com.bean.Sellover; 10 | import com.bean.Sellrecords; 11 | 12 | 13 | @Repository 14 | public interface SellMapper { 15 | void DeleteSellByDCPA(@Param("drugname")String drugname,@Param("changshang")String changshang,@Param("pihao")String pihao,@Param("amount")String amount); 16 | List GetAllSell(); 17 | List QuerySellByDCP(@Param("drugname")String drugname,@Param("changshang")String changshang,@Param("pihao")String pihao); 18 | void AddSell(Sell sell); 19 | void UpdateSellCountSum(@Param("amount")String amount,@Param("sum")String sum,@Param("drugname")String drugname,@Param("changshang")String changshang,@Param("pihao")String pihao); 20 | void DelTableSell(); 21 | ///Sellrecords 22 | void AddSellrecords(Sellrecords sellrecords); 23 | List GetAllSellrecords(); 24 | List GetRecordsByST(String selltime); 25 | void DeleteSellrecords(@Param("drugname")String drugname,@Param("changshang")String changshang,@Param("pihao")String pihao,@Param("selltime")String selltime); 26 | //Sellover 27 | void AddSellover(Sellover sellover); 28 | List GetAllSellover(); 29 | void DelSellover(@Param("drugname")String drugname,@Param("changshang")String changshang,@Param("pihao")String pihao); 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Rxdrug.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class Rxdrug { 4 | private String time; //购药时间 5 | private String drugname; 6 | private String changshang; 7 | private String date; 8 | private String pihao; 9 | private String count; 10 | public String getTime() { 11 | return time; 12 | } 13 | public void setTime(String time) { 14 | this.time = time; 15 | } 16 | public String getDrugname() { 17 | return drugname; 18 | } 19 | public void setDrugname(String drugname) { 20 | this.drugname = drugname; 21 | } 22 | public String getChangshang() { 23 | return changshang; 24 | } 25 | public void setChangshang(String changshang) { 26 | this.changshang = changshang; 27 | } 28 | public String getDate() { 29 | return date; 30 | } 31 | public void setDate(String date) { 32 | this.date = date; 33 | } 34 | public String getPihao() { 35 | return pihao; 36 | } 37 | public void setPihao(String pihao) { 38 | this.pihao = pihao; 39 | } 40 | public String getCount() { 41 | return count; 42 | } 43 | public void setCount(String count) { 44 | this.count = count; 45 | } 46 | public Rxdrug() {} 47 | public Rxdrug(String time, String drugname, String changshang, String date, String pihao, String count) { 48 | super(); 49 | this.time = time; 50 | this.drugname = drugname; 51 | this.changshang = changshang; 52 | this.date = date; 53 | this.pihao = pihao; 54 | this.count = count; 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/utils/StringPro.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import java.math.BigDecimal; 4 | import java.text.ParseException; 5 | import java.text.SimpleDateFormat; 6 | import java.util.Calendar; 7 | 8 | public class StringPro { 9 | public static String add(String str1, String str2) {//加法 10 | BigDecimal b1 = new BigDecimal(str1); 11 | BigDecimal b2 = new BigDecimal(str2); 12 | return b1.add(b2).toString(); 13 | } 14 | 15 | public static String sub(String str1, String str2) {//减法 16 | BigDecimal b1 = new BigDecimal(str1); 17 | BigDecimal b2 = new BigDecimal(str2); 18 | return b1.subtract(b2).toString(); 19 | } 20 | 21 | public static String mul(String str1, String str2) {//乘法 22 | BigDecimal b1 = new BigDecimal(str1); 23 | BigDecimal b2 = new BigDecimal(str2); 24 | return b1.multiply(b2).toString(); 25 | } 26 | 27 | /* public static String div(String str1,String str2){ 28 | BigDecimal b1=new BigDecimal(str1); 29 | BigDecimal b2=new BigDecimal(str2); 30 | return b1.divide(b2,DEF_DIV_SCALE,BigDecimal.ROUND_HALF_UP).toString(); 31 | } 32 | */ 33 | public static int daysBetween(String nowdate, String bdate) throws ParseException { 34 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 35 | Calendar cal = Calendar.getInstance(); 36 | cal.setTime(sdf.parse(nowdate)); 37 | long time1 = cal.getTimeInMillis(); 38 | cal.setTime(sdf.parse(bdate)); 39 | long time2 = cal.getTimeInMillis(); 40 | long between_days = (time2 - time1) / (1000 * 3600 * 24); 41 | 42 | return Integer.parseInt(String.valueOf(between_days)); 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/com/mapper/JinhuoMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | truncate TABLE jinhuo 11 | 12 | 13 | delete from jinhuo where drugname=#{drugname} and changshang=#{changshang} and pihao=#{pihao} and amount=#{amount} 14 | 15 | 16 | insert into jinhuo values(#{drugname},#{changshang},#{beginprice},#{price},#{amount},#{sum},#{begindate},#{date},#{pihao},#{beizhu},#{location},#{unit},#{guige},#{tiaoxingma},#{jinhuo_time},#{gonghuoshang}) 17 | 18 | 19 | 20 | insert into jinhuorecords values(#{drugname},#{changshang},#{beginprice},#{price},#{amount},#{sum},#{begindate},#{date},#{pihao},#{beizhu},#{location},#{unit},#{guige},#{tiaoxingma},#{jinhuo_time},#{gonghuoshang}) 21 | 22 | 25 | 26 | delete from jinhuorecords where gonghuoshang=#{gonghuoshang} 27 | 28 | 31 | 34 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/RxdrugMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | insert into rxdrug values(#{time},#{drugname},#{changshang},#{date},#{pihao},#{count}) 8 | 9 | 10 | delete from rxdrug where `time` = #{time} 11 | 12 | 15 | 29 | 37 | 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Sellover.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class Sellover { 4 | private String drugname; 5 | private String changshang; 6 | private String price; 7 | private String date; 8 | private String pihao; 9 | private String beizhu; 10 | private String count; 11 | private String unit; 12 | private String guige; 13 | public String getDrugname() { 14 | return drugname; 15 | } 16 | public void setDrugname(String drugname) { 17 | this.drugname = drugname; 18 | } 19 | public String getChangshang() { 20 | return changshang; 21 | } 22 | public void setChangshang(String changshang) { 23 | this.changshang = changshang; 24 | } 25 | public String getPrice() { 26 | return price; 27 | } 28 | public void setPrice(String price) { 29 | this.price = price; 30 | } 31 | public String getDate() { 32 | return date; 33 | } 34 | public void setDate(String date) { 35 | this.date = date; 36 | } 37 | public String getPihao() { 38 | return pihao; 39 | } 40 | public void setPihao(String pihao) { 41 | this.pihao = pihao; 42 | } 43 | public String getBeizhu() { 44 | return beizhu; 45 | } 46 | public void setBeizhu(String beizhu) { 47 | this.beizhu = beizhu; 48 | } 49 | public String getCount() { 50 | return count; 51 | } 52 | public void setCount(String count) { 53 | this.count = count; 54 | } 55 | public String getUnit() { 56 | return unit; 57 | } 58 | public void setUnit(String unit) { 59 | this.unit = unit; 60 | } 61 | public String getGuige() { 62 | return guige; 63 | } 64 | public void setGuige(String guige) { 65 | this.guige = guige; 66 | } 67 | public Sellover(String drugname, String changshang, String price, 68 | String date, String pihao, String beizhu, String count, 69 | String unit, String guige) { 70 | super(); 71 | this.drugname = drugname; 72 | this.changshang = changshang; 73 | this.price = price; 74 | this.date = date; 75 | this.pihao = pihao; 76 | this.beizhu = beizhu; 77 | this.count = count; 78 | this.unit = unit; 79 | this.guige = guige; 80 | } 81 | public Sellover(){} 82 | } 83 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/StoreMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 12 | 13 | insert into store(`drugname`,`changshang`,`beginprice`,`price`,`begindate`,`date`,`pihao`,`beizhu`,`location`,`count`,`unit`,`guige`,`tiaoxingma`)values(#{drugname},#{changshang},#{beginprice},#{price},#{begindate},#{date},#{pihao},#{beizhu},#{location},#{count},#{unit},#{guige},#{tiaoxingma}) 14 | 15 | 16 | update store set `count`=#{count} where drugname=#{drugname} and changshang=#{changshang} and pihao=#{pihao} 17 | 18 | 19 | delete from store where drugname=#{drugname} and changshang=#{changshang} and pihao=#{pihao} 20 | 21 | 24 | 27 | 30 | 31 | UPDATE store SET `beginprice`=#{beginprice},`price`=#{price},`begindate`=#{begindate},`date`=#{date},`pihao`=#{pihao},`count`=#{count} WHERE drugname=#{drugname} and changshang=#{changshang} and pihao=#{guige} 32 | 33 | 36 | 37 | delete from store where count='0' 38 | 39 | -------------------------------------------------------------------------------- /src/main/java/com/controller/RxController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.util.Map; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.ResponseBody; 9 | 10 | import com.bean.Rxperson; 11 | import com.service.RxService; 12 | 13 | @Controller 14 | public class RxController { 15 | 16 | @Autowired 17 | RxService RS; 18 | 19 | 20 | @RequestMapping("/rx") //rx 21 | public String to_rx(Map map) { 22 | map.put("timeinfo", RS.GetOverTime()); 23 | return "rx/rx"; 24 | } 25 | 26 | @RequestMapping(value = "/addprx") 27 | public String to_addRxperson(Rxperson Rx, Map map) { 28 | RS.AddRxPService(Rx); 29 | map.put("timeinfo", RS.GetOverTime()); 30 | return "rx/rx"; 31 | } 32 | 33 | @RequestMapping(value = "/rxinfo") 34 | public String to_rxinfo(Rxperson Rx, Map map) { 35 | map.put("rxallinfo", RS.GetCompleteInfoService()); 36 | return "rx/rxinfo"; 37 | } 38 | 39 | //queryrx 40 | @RequestMapping(value = "/queryrx") 41 | public String to_queryrx(String queryrx, Map map) { 42 | map.put("rxallinfo", RS.QueryRxService(queryrx)); 43 | return "rx/rxinfo"; 44 | } 45 | 46 | @ResponseBody 47 | @RequestMapping(value = "/getrxtime") 48 | public Rxperson to_getrxtime(String time) { 49 | return RS.GetTimeRxpService(time); 50 | } 51 | 52 | //updaterxp 53 | @RequestMapping(value = "/updaterxp") 54 | public String to_updaterxp(Rxperson Rx, Map map) { 55 | RS.UpdateRxService(Rx); 56 | map.put("rxallinfo", RS.GetCompleteInfoService()); 57 | return "rx/rxinfo"; 58 | } 59 | 60 | //delrxinfo 61 | @RequestMapping(value = "/delrxinfo") 62 | public String to_delrxinfo(String del, Map map) { 63 | RS.DelRxService(del); 64 | map.put("rxallinfo", RS.GetCompleteInfoService()); 65 | return "rx/rxinfo"; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/main/java/com/mapper/SellMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | delete from sell where drugname=#{drugname} and changshang=#{changshang} and pihao=#{pihao} and amount=#{amount} 8 | 9 | 12 | 15 | 16 | insert into sell values(#{drugname},#{changshang},#{price},#{date},#{pihao},#{beizhu},#{count},#{unit},#{guige},#{amount},#{sum}) 17 | 18 | 19 | update sell set `amount`=#{amount},`sum`=#{sum} where `drugname`=#{drugname} and `changshang`=#{changshang} and `pihao`=#{pihao} 20 | 21 | 22 | 23 | truncate TABLE sell 24 | 25 | 26 | 27 | 28 | insert into sellrecords values(#{drugname},#{changshang},#{beginprice},#{price},#{date},#{pihao},#{beizhu},#{unit},#{guige},#{amount},#{sum},#{selltime}) 29 | 30 | 33 | 36 | 37 | delete from sellrecords where drugname=#{drugname} and changshang=#{changshang} and pihao=#{pihao} and selltime=#{selltime} 38 | 39 | 40 | 41 | insert into sellover values(#{drugname},#{changshang},#{price},#{date},#{pihao},#{beizhu},#{count},#{unit},#{guige}) 42 | 43 | 46 | 47 | delete from sellover where drugname=#{drugname} and changshang=#{changshang} and pihao=#{pihao} 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Sell.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class Sell { 4 | private String drugname; 5 | private String changshang; 6 | private String price; 7 | private String date; 8 | private String pihao; 9 | private String beizhu; 10 | private String count; 11 | private String unit; 12 | private String guige; 13 | private String amount; 14 | private String sum; 15 | public String getDrugname() { 16 | return drugname; 17 | } 18 | public void setDrugname(String drugname) { 19 | this.drugname = drugname; 20 | } 21 | public String getChangshang() { 22 | return changshang; 23 | } 24 | public void setChangshang(String changshang) { 25 | this.changshang = changshang; 26 | } 27 | public String getPrice() { 28 | return price; 29 | } 30 | public void setPrice(String price) { 31 | this.price = price; 32 | } 33 | public String getDate() { 34 | return date; 35 | } 36 | public void setDate(String date) { 37 | this.date = date; 38 | } 39 | public String getPihao() { 40 | return pihao; 41 | } 42 | public void setPihao(String pihao) { 43 | this.pihao = pihao; 44 | } 45 | public String getBeizhu() { 46 | return beizhu; 47 | } 48 | public void setBeizhu(String beizhu) { 49 | this.beizhu = beizhu; 50 | } 51 | public String getCount() { 52 | return count; 53 | } 54 | public void setCount(String count) { 55 | this.count = count; 56 | } 57 | public String getUnit() { 58 | return unit; 59 | } 60 | public void setUnit(String unit) { 61 | this.unit = unit; 62 | } 63 | public String getGuige() { 64 | return guige; 65 | } 66 | public void setGuige(String guige) { 67 | this.guige = guige; 68 | } 69 | public String getAmount() { 70 | return amount; 71 | } 72 | public void setAmount(String amount) { 73 | this.amount = amount; 74 | } 75 | public String getSum() { 76 | return sum; 77 | } 78 | public void setSum(String sum) { 79 | this.sum = sum; 80 | } 81 | public Sell(String drugname, String changshang, String price, String date, 82 | String pihao, String beizhu, String count, String unit, 83 | String guige, String amount, String sum) { 84 | super(); 85 | this.drugname = drugname; 86 | this.changshang = changshang; 87 | this.price = price; 88 | this.date = date; 89 | this.pihao = pihao; 90 | this.beizhu = beizhu; 91 | this.count = count; 92 | this.unit = unit; 93 | this.guige = guige; 94 | this.amount = amount; 95 | this.sum = sum; 96 | } 97 | public Sell(){} 98 | } 99 | -------------------------------------------------------------------------------- /src/main/java/com/controller/LimitController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import com.bean.Limitsell; 4 | import com.bean.ResponseResult; 5 | import com.mapper.LimitsellMapper; 6 | import com.service.SellService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.RequestMethod; 11 | import org.springframework.web.bind.annotation.RequestParam; 12 | import org.springframework.web.bind.annotation.ResponseBody; 13 | 14 | @Controller 15 | public class LimitController { 16 | 17 | @Autowired 18 | SellService ss; 19 | 20 | @Autowired 21 | LimitsellMapper lm; 22 | 23 | @RequestMapping("/limitinfo") //limitinfo 24 | public String to_limitinfo() { 25 | return "tostore/limitinfo"; 26 | } 27 | 28 | //addlimit 29 | @ResponseBody 30 | @RequestMapping(value = "/addlimit", method = RequestMethod.POST) 31 | public ResponseResult to_addlimit(String drugname, String changshang, int amount) { 32 | Limitsell limitsell = new Limitsell(drugname, changshang, amount); 33 | int check = lm.CountLimit(drugname, changshang); 34 | if (check > 0 || null == limitsell) { 35 | return new ResponseResult(202, "error"); 36 | } 37 | 38 | lm.AddLimit(limitsell); 39 | return new ResponseResult(200, "添加成功"); 40 | } 41 | 42 | //getlimitinfo 43 | @ResponseBody 44 | @RequestMapping(value = "/getlimitinfo", method = RequestMethod.POST) 45 | public ResponseResult to_getlimitinfo() { 46 | return ss.CheckLimit(); 47 | } 48 | 49 | //getlimitinfo_clerk 50 | @ResponseBody 51 | @RequestMapping(value = "/getlimitinfo_clerk", method = RequestMethod.POST) 52 | public ResponseResult getlimitinfo_clerk() { 53 | return ss.CheckLimit(); 54 | } 55 | 56 | //dellimitinfo 57 | @ResponseBody 58 | @RequestMapping(value = "/dellimit", method = RequestMethod.POST) 59 | public ResponseResult to_dellimitinfo(String drugname, String changshang) { 60 | lm.DelLimit(drugname, changshang); 61 | return new ResponseResult(200, lm.GetAllLimit()); 62 | } 63 | 64 | 65 | @ResponseBody 66 | @RequestMapping(value = "/Alllimit", method = RequestMethod.POST) 67 | public ResponseResult all_limit_info() { 68 | return new ResponseResult(200, lm.GetAllLimit()); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Rxperson.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class Rxperson { 4 | private String time; //购药时间 5 | private String name; //顾客姓名 6 | private String gendar; //性别 7 | private String age; //年龄 8 | private String phone; //联系方式 9 | private String location; //通讯地址 10 | private String hospital; //医疗机构名称 11 | private String htime; //就医日期 12 | private String yz; //医嘱内容 13 | private String ysname; //医师姓名 14 | private String zdys; //驻店药师签名 15 | public String getTime() { 16 | return time; 17 | } 18 | public void setTime(String time) { 19 | this.time = time; 20 | } 21 | public String getName() { 22 | return name; 23 | } 24 | public void setName(String name) { 25 | this.name = name; 26 | } 27 | public String getGendar() { 28 | return gendar; 29 | } 30 | public void setGendar(String gendar) { 31 | this.gendar = gendar; 32 | } 33 | public String getAge() { 34 | return age; 35 | } 36 | public void setAge(String age) { 37 | this.age = age; 38 | } 39 | public String getPhone() { 40 | return phone; 41 | } 42 | public void setPhone(String phone) { 43 | this.phone = phone; 44 | } 45 | public String getLocation() { 46 | return location; 47 | } 48 | public void setLocation(String location) { 49 | this.location = location; 50 | } 51 | public String getHospital() { 52 | return hospital; 53 | } 54 | public void setHospital(String hospital) { 55 | this.hospital = hospital; 56 | } 57 | public String getHtime() { 58 | return htime; 59 | } 60 | public void setHtime(String htime) { 61 | this.htime = htime; 62 | } 63 | public String getYz() { 64 | return yz; 65 | } 66 | public void setYz(String yz) { 67 | this.yz = yz; 68 | } 69 | public String getYsname() { 70 | return ysname; 71 | } 72 | public void setYsname(String ysname) { 73 | this.ysname = ysname; 74 | } 75 | public String getZdys() { 76 | return zdys; 77 | } 78 | public void setZdys(String zdys) { 79 | this.zdys = zdys; 80 | } 81 | public Rxperson() {} 82 | public Rxperson(String time, String name, String gendar, String age, String phone, String location, 83 | String hospital, String htime, String yz, String ysname, String zdys) { 84 | super(); 85 | this.time = time; 86 | this.name = name; 87 | this.gendar = gendar; 88 | this.age = age; 89 | this.phone = phone; 90 | this.location = location; 91 | this.hospital = hospital; 92 | this.htime = htime; 93 | this.yz = yz; 94 | this.ysname = ysname; 95 | this.zdys = zdys; 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ssm_spring 4 | 5 | index.jsp 6 | 7 | 8 | 9 | contextConfigLocation 10 | classpath:spring_config.xml 11 | 12 | 13 | org.springframework.web.context.ContextLoaderListener 14 | 15 | 16 | 17 | drug 18 | org.springframework.web.servlet.DispatcherServlet 19 | 20 | 21 | contextConfigLocation 22 | classpath:springmvc-config.xml 23 | 24 | 1 25 | 26 | 27 | 28 | drug 29 | / 30 | 31 | 32 | 37 | 38 | CharacterEncodingFilter 39 | org.springframework.web.filter.CharacterEncodingFilter 40 | 41 | encoding 42 | UTF-8 43 | 44 | 45 | forceRequestEncoding 46 | true 47 | 48 | 49 | forceResponseEncoding 50 | true 51 | 52 | 53 | 54 | CharacterEncodingFilter 55 | /* 56 | 57 | 58 | 59 | 60 | 61 | hiddenHttpMethodFilter 62 | org.springframework.web.filter.HiddenHttpMethodFilter 63 | 64 | 65 | hiddenHttpMethodFilter 66 | /* 67 | 68 | -------------------------------------------------------------------------------- /src/main/resources/springmvc-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 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 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Drug.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | import javax.validation.constraints.NotBlank; 4 | import javax.validation.constraints.Pattern; 5 | 6 | public class Drug { 7 | @Pattern(regexp = "^.{1,22}$",message = "格式错误或超过字数限制") 8 | @NotBlank(message="dn不能为空") 9 | private String drugname; 10 | 11 | @Pattern(regexp = "^.{1,22}$",message = "格式错误或超过字数限制") 12 | @NotBlank(message="cs不能为空") 13 | private String changshang; 14 | 15 | @Pattern(regexp = "^.{1,22}$",message = "格式错误或超过字数限制") 16 | @NotBlank(message="bz不能为空") 17 | private String beizhu; 18 | 19 | @Pattern(regexp = "^.{1,22}$",message = "格式错误或超过字数限制") 20 | @NotBlank(message="loc不能为空") 21 | private String location; 22 | 23 | @Pattern(regexp = "^.{1,10}$",message = "格式错误或超过字数限制") 24 | @NotBlank(message="unit不能为空") 25 | private String unit; 26 | 27 | @Pattern(regexp = "^.{1,22}$",message = "格式错误或超过字数限制") 28 | @NotBlank(message="gg不能为空") 29 | private String guige; 30 | 31 | @Pattern(regexp = "^$|^[0-9]{6,22}$",message = "格式错误或超过字数限制") 32 | private String tiaoxingma; 33 | public Drug(){} 34 | public Drug(String drugname, String changshang, String beizhu, 35 | String location, String unit, String guige, String tiaoxingma) { 36 | super(); 37 | this.drugname = drugname; 38 | this.changshang = changshang; 39 | this.beizhu = beizhu; 40 | this.location = location; 41 | this.unit = unit; 42 | this.guige = guige; 43 | this.tiaoxingma = tiaoxingma; 44 | } 45 | public String getDrugname() { 46 | return drugname; 47 | } 48 | public void setDrugname(String drugname) { 49 | this.drugname = drugname; 50 | } 51 | public String getChangshang() { 52 | return changshang; 53 | } 54 | public void setChangshang(String changshang) { 55 | this.changshang = changshang; 56 | } 57 | public String getBeizhu() { 58 | return beizhu; 59 | } 60 | public void setBeizhu(String beizhu) { 61 | this.beizhu = beizhu; 62 | } 63 | public String getLocation() { 64 | return location; 65 | } 66 | public void setLocation(String location) { 67 | this.location = location; 68 | } 69 | public String getUnit() { 70 | return unit; 71 | } 72 | public void setUnit(String unit) { 73 | this.unit = unit; 74 | } 75 | public String getGuige() { 76 | return guige; 77 | } 78 | public void setGuige(String guige) { 79 | this.guige = guige; 80 | } 81 | public String getTiaoxingma() { 82 | return tiaoxingma; 83 | } 84 | public void setTiaoxingma(String tiaoxingma) { 85 | this.tiaoxingma = tiaoxingma; 86 | } 87 | @Override 88 | public String toString() { 89 | return "Drug [drugname=" + drugname + ", changshang=" + changshang 90 | + ", beizhu=" + beizhu + ", location=" + location + ", unit=" 91 | + unit + ", guige=" + guige + ", tiaoxingma=" + tiaoxingma 92 | + "]"; 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 2 | 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 医药信息管理系统 13 | 14 | 15 | 16 | 17 | 18 | 19 | ${logininfo } 20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |

欢迎使用医药信息管理系统

28 |
29 |
30 | 31 |
32 | 34 | ${logininfouser} 35 |
36 |
37 |
38 | 39 |
40 | 42 | ${logininfopass} 43 |
44 |
45 |
46 | 47 | 注册 48 |
49 |
50 |
51 |
52 |
53 |
54 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/main/resources/spring_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Datetips.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | //效期提示 4 | public class Datetips { 5 | private String drugname; 6 | private String changshang; 7 | private String beginprice; 8 | private String price; 9 | private String date; 10 | private String pihao; 11 | private String beizhu; 12 | private String location; 13 | private String count; 14 | private String unit; 15 | private String guige; 16 | private String tip; 17 | private String flag; //颜色判断r|y 18 | public Datetips(){} 19 | public Datetips(String drugname, String changshang, String beginprice, 20 | String price, String date, String pihao, String beizhu, 21 | String location, String count, String unit, String guige, 22 | String tip, String flag) { 23 | super(); 24 | this.drugname = drugname; 25 | this.changshang = changshang; 26 | this.beginprice = beginprice; 27 | this.price = price; 28 | this.date = date; 29 | this.pihao = pihao; 30 | this.beizhu = beizhu; 31 | this.location = location; 32 | this.count = count; 33 | this.unit = unit; 34 | this.guige = guige; 35 | this.tip = tip; 36 | this.flag = flag; 37 | } 38 | public String getDrugname() { 39 | return drugname; 40 | } 41 | public void setDrugname(String drugname) { 42 | this.drugname = drugname; 43 | } 44 | public String getChangshang() { 45 | return changshang; 46 | } 47 | public void setChangshang(String changshang) { 48 | this.changshang = changshang; 49 | } 50 | public String getBeginprice() { 51 | return beginprice; 52 | } 53 | public void setBeginprice(String beginprice) { 54 | this.beginprice = beginprice; 55 | } 56 | public String getPrice() { 57 | return price; 58 | } 59 | public void setPrice(String price) { 60 | this.price = price; 61 | } 62 | public String getDate() { 63 | return date; 64 | } 65 | public void setDate(String date) { 66 | this.date = date; 67 | } 68 | public String getPihao() { 69 | return pihao; 70 | } 71 | public void setPihao(String pihao) { 72 | this.pihao = pihao; 73 | } 74 | public String getBeizhu() { 75 | return beizhu; 76 | } 77 | public void setBeizhu(String beizhu) { 78 | this.beizhu = beizhu; 79 | } 80 | public String getLocation() { 81 | return location; 82 | } 83 | public void setLocation(String location) { 84 | this.location = location; 85 | } 86 | public String getCount() { 87 | return count; 88 | } 89 | public void setCount(String count) { 90 | this.count = count; 91 | } 92 | public String getUnit() { 93 | return unit; 94 | } 95 | public void setUnit(String unit) { 96 | this.unit = unit; 97 | } 98 | public String getGuige() { 99 | return guige; 100 | } 101 | public void setGuige(String guige) { 102 | this.guige = guige; 103 | } 104 | public String getTip() { 105 | return tip; 106 | } 107 | public void setTip(String tip) { 108 | this.tip = tip; 109 | } 110 | public String getFlag() { 111 | return flag; 112 | } 113 | public void setFlag(String flag) { 114 | this.flag = flag; 115 | } 116 | 117 | } 118 | -------------------------------------------------------------------------------- /src/main/java/com/controller/SellController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.RequestMethod; 11 | 12 | import com.bean.Rxdrug; 13 | import com.bean.Rxperson; 14 | import com.service.SellService; 15 | 16 | 17 | @Controller 18 | public class SellController { 19 | 20 | @Autowired 21 | SellService SeS; 22 | 23 | @RequestMapping("/sell") //sell 24 | public String to_sell(Map map) { 25 | map.put("sellinfo", SeS.GetAllSellService()); 26 | return "sell/sell"; 27 | } 28 | 29 | //deletesell 30 | @RequestMapping(value = "/deletesell", method = RequestMethod.POST) //deletejinhuo 31 | public String to_deletesell(String drugname, String changshang, 32 | String pihao, String amount) { 33 | SeS.DeleteSellService(drugname, changshang, pihao, amount); 34 | return "redirect:/sell"; 35 | } 36 | 37 | //queryselldruginfo 38 | @RequestMapping("/queryselldruginfo") 39 | public String to_queryselldruginfo(String querydrug, Map map) { 40 | map.put("forSS", SeS.ForSellSelectService(querydrug)); 41 | return "sell/sellselect"; 42 | } 43 | 44 | //toaddsellamount 45 | @RequestMapping(value = "/toaddsellamount", method = RequestMethod.POST) 46 | public String to_toaddsellamount(String drugname, String changshang, String pihao, Map map) { 47 | map.put("foraddamount", SeS.QueryDCPinStoreService(drugname, changshang, pihao)); 48 | return "sell/sellamount"; 49 | } 50 | 51 | //addsellamount 52 | @RequestMapping(value = "/addsellamount", method = RequestMethod.POST) 53 | public String to_addsellamount(String drugname, String changshang, String pihao, String amount) { 54 | SeS.ProSellService(drugname, changshang, pihao, amount); 55 | return "redirect:/sell"; 56 | } 57 | 58 | //sellit 59 | @RequestMapping(value = "/sellit") 60 | public String to_sellit(Map map) { 61 | List check = SeS.SellitService(); 62 | if (check == null) { 63 | return "redirect:/sell"; 64 | } else { 65 | map.put("rxinfo", check); 66 | map.put("rxcount", SeS.RxCountService()); 67 | return "sell/sell"; 68 | } 69 | } 70 | 71 | //printsell 72 | @RequestMapping(value = "/printsell") 73 | public String to_printsell() { 74 | SeS.PrintService(); 75 | return "redirect:/sell"; 76 | } 77 | 78 | // 79 | //addrxperson 80 | @RequestMapping(value = "/addrxperson") 81 | public String to_addRxperson(Rxperson Rx, Map map) { 82 | map.put("msg", SeS.AddRxPersonService(Rx)); 83 | return "sell/sell"; 84 | } 85 | } 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /src/main/java/com/service/DruginfoService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | 4 | import java.util.List; 5 | 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import com.bean.Drug; 11 | import com.github.pagehelper.PageHelper; 12 | import com.github.pagehelper.PageInfo; 13 | import com.mapper.DrugMapper; 14 | import com.utils.Boolean_tiaoxingma; 15 | 16 | 17 | @Service 18 | public class DruginfoService { 19 | @Autowired 20 | DrugMapper drug; 21 | 22 | public PageInfo QueryDrugService(Integer pn, String qd) { //查询drug信息 23 | if (qd == "" || qd == null) { 24 | PageHelper.startPage(pn, 8); 25 | List re = drug.GetAllDrug(); 26 | //使用pageinfo包装查询后的结果,只需要将pageinfo交给页面就行了PageInfo(ee,5) 5是连续显示多少页 27 | PageInfo page_1 = new PageInfo(re, 5); 28 | return page_1; 29 | } else { 30 | if (Boolean_tiaoxingma.CheckParam(qd)) { 31 | PageHelper.startPage(pn, 8); 32 | List re2 = drug.QueryByTiao(qd); 33 | PageInfo page_2 = new PageInfo(re2, 5); 34 | return page_2; 35 | } else { 36 | PageHelper.startPage(pn, 8); 37 | List re3 = drug.QueryByName(qd); 38 | PageInfo page_3 = new PageInfo(re3, 5); 39 | return page_3; 40 | } 41 | } 42 | 43 | } 44 | 45 | public boolean UpdateDrugService(String olddn, String oldcs, Drug updrug) { 46 | /*drug.DeleteDrug(olddn, oldcs); 47 | drug.AddDrug(updrug);*/ 48 | if (olddn.equals(updrug.getDrugname()) && oldcs.equals(updrug.getChangshang())) { 49 | drug.Update(olddn, oldcs, updrug); 50 | return true; 51 | } else { 52 | List check = drug.QueryByNameCS(updrug.getDrugname(), updrug.getChangshang()); 53 | if (check.size() > 0) { 54 | return false; 55 | } else { 56 | drug.Update(olddn, oldcs, updrug); 57 | return true; 58 | } 59 | } 60 | 61 | } 62 | 63 | //add 64 | public boolean AddService(Drug adddrug) { 65 | List check = drug.QueryByNameCS(adddrug.getDrugname(), adddrug.getChangshang()); 66 | if (check.size() > 0) { 67 | return false; 68 | } else { 69 | drug.AddDrug(adddrug); 70 | return true; 71 | } 72 | } 73 | 74 | public void DeleteService(String drugname, String changshang) { 75 | drug.DeleteDrug(drugname, changshang); 76 | } 77 | 78 | /** 79 | * 用于查询基础信息 80 | * 81 | * @param qd(查询字段) 82 | * @return 83 | */ 84 | public List QueryDrugService(String qd) { 85 | if (qd == "" || qd == null) { 86 | List re = drug.GetAllDrug(); 87 | return re; 88 | } else { 89 | if (Boolean_tiaoxingma.CheckParam(qd)) { 90 | List re2 = drug.QueryByTiao(qd); 91 | return re2; 92 | } else { 93 | List re3 = drug.QueryByName(qd); 94 | return re3; 95 | } 96 | } 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Sellrecords.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class Sellrecords { 4 | private String drugname; 5 | private String changshang; 6 | private String beginprice; 7 | private String price; 8 | private String date; 9 | private String pihao; 10 | private String beizhu; 11 | private String unit; 12 | private String guige; 13 | private String amount; 14 | private String sum; 15 | private String selltime; 16 | 17 | @Override 18 | public String toString() { 19 | return "Sellrecords{" + 20 | "drugname='" + drugname + '\'' + 21 | ", changshang='" + changshang + '\'' + 22 | ", beginprice='" + beginprice + '\'' + 23 | ", price='" + price + '\'' + 24 | ", date='" + date + '\'' + 25 | ", pihao='" + pihao + '\'' + 26 | ", beizhu='" + beizhu + '\'' + 27 | ", unit='" + unit + '\'' + 28 | ", guige='" + guige + '\'' + 29 | ", amount='" + amount + '\'' + 30 | ", sum='" + sum + '\'' + 31 | ", selltime='" + selltime + '\'' + 32 | '}'; 33 | } 34 | 35 | public Sellrecords(){} 36 | public Sellrecords(String drugname, String changshang, String beginprice, String price, String date, String pihao, String beizhu, String unit, String guige, String amount, String sum, String selltime) { 37 | this.drugname = drugname; 38 | this.changshang = changshang; 39 | this.beginprice = beginprice; 40 | this.price = price; 41 | this.date = date; 42 | this.pihao = pihao; 43 | this.beizhu = beizhu; 44 | this.unit = unit; 45 | this.guige = guige; 46 | this.amount = amount; 47 | this.sum = sum; 48 | this.selltime = selltime; 49 | } 50 | 51 | public String getDrugname() { 52 | return drugname; 53 | } 54 | 55 | public void setDrugname(String drugname) { 56 | this.drugname = drugname; 57 | } 58 | 59 | public String getChangshang() { 60 | return changshang; 61 | } 62 | 63 | public void setChangshang(String changshang) { 64 | this.changshang = changshang; 65 | } 66 | 67 | public String getBeginprice() { 68 | return beginprice; 69 | } 70 | 71 | public void setBeginprice(String beginprice) { 72 | this.beginprice = beginprice; 73 | } 74 | 75 | public String getPrice() { 76 | return price; 77 | } 78 | 79 | public void setPrice(String price) { 80 | this.price = price; 81 | } 82 | 83 | public String getDate() { 84 | return date; 85 | } 86 | 87 | public void setDate(String date) { 88 | this.date = date; 89 | } 90 | 91 | public String getPihao() { 92 | return pihao; 93 | } 94 | 95 | public void setPihao(String pihao) { 96 | this.pihao = pihao; 97 | } 98 | 99 | public String getBeizhu() { 100 | return beizhu; 101 | } 102 | 103 | public void setBeizhu(String beizhu) { 104 | this.beizhu = beizhu; 105 | } 106 | 107 | public String getUnit() { 108 | return unit; 109 | } 110 | 111 | public void setUnit(String unit) { 112 | this.unit = unit; 113 | } 114 | 115 | public String getGuige() { 116 | return guige; 117 | } 118 | 119 | public void setGuige(String guige) { 120 | this.guige = guige; 121 | } 122 | 123 | public String getAmount() { 124 | return amount; 125 | } 126 | 127 | public void setAmount(String amount) { 128 | this.amount = amount; 129 | } 130 | 131 | public String getSum() { 132 | return sum; 133 | } 134 | 135 | public void setSum(String sum) { 136 | this.sum = sum; 137 | } 138 | 139 | public String getSelltime() { 140 | return selltime; 141 | } 142 | 143 | public void setSelltime(String selltime) { 144 | this.selltime = selltime; 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/service/main.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 医药信息管理系统 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 |
29 |
30 | 33 |
34 | 57 | 64 |
65 | 66 |
67 |
68 |
69 |
70 |
71 | 73 | 74 | 75 |
76 |
77 |
78 |
79 |
80 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/service/store/store.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 医药信息管理系统 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 |
29 |
30 | 33 |
34 |
35 | 57 |
58 | 59 | 66 |
67 | 68 |
69 |
70 |
71 |
72 |
73 | 75 | 76 | 77 |
78 |
79 |
80 |
81 |
82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/service/store/addstore.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 医药信息管理系统 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 32 | 33 |
34 |
35 | 38 |
39 |
40 | 62 |
63 | 64 | 71 |
72 | 73 |
74 |
75 |
76 |
77 |
78 | 80 | 81 | 82 |
83 |
84 |
85 |
86 |
87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /src/main/java/com/service/RxService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collections; 5 | import java.util.List; 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import com.bean.Json; 11 | import com.bean.Rxdrug; 12 | import com.bean.Rxperson; 13 | import com.bean.RxpersonJson; 14 | import com.mapper.RxdrugMapper; 15 | import com.mapper.RxpersonMapper; 16 | import com.utils.Boolean_tiaoxingma; 17 | 18 | @Service 19 | public class RxService { 20 | 21 | @Autowired 22 | RxdrugMapper rdm; 23 | 24 | @Autowired 25 | RxpersonMapper rpm; 26 | 27 | public List GetOverTime() { 28 | List itstr = rdm.GetAllOverTime(); 29 | if (itstr.size() == 0) { 30 | return null; 31 | } else { 32 | int len = itstr.size(); 33 | List re = new ArrayList(); 34 | //StringBuffer forappend = new StringBuffer(""); 35 | for (int ii = 0; ii < len; ii++) { 36 | StringBuffer forappend = new StringBuffer(""); 37 | List RD = rdm.GetIt(itstr.get(ii)); 38 | for (Rxdrug rxdrug : RD) { 39 | forappend.append(rxdrug.getDrugname() + ","); 40 | } 41 | 42 | re.add(new Json(itstr.get(ii), forappend.toString(), null, null, null, 0)); 43 | } 44 | Collections.reverse(re); 45 | return re; 46 | } 47 | 48 | } 49 | 50 | public Rxperson GetTimeRxpService(String time) { 51 | List check = rpm.GetByTime(time); 52 | if (check.size() == 0) { 53 | return null; 54 | } else { 55 | return check.get(0); 56 | } 57 | } 58 | 59 | 60 | public void AddRxPService(Rxperson rx) { 61 | List check = rpm.GetByTime(rx.getTime()); 62 | if (check.size() == 0) { 63 | rpm.AddRxperson(rx); 64 | } 65 | } 66 | 67 | public List GetCompleteInfoService() { 68 | List str = rpm.GetequalsTime(); 69 | if (str.size() == 0) { 70 | return null; 71 | } else { 72 | List re = new ArrayList(); 73 | for (String s : str) { 74 | re.add(new RxpersonJson(rpm.GetByTime(s), rdm.GetIt(s))); 75 | } 76 | Collections.reverse(re); 77 | return re; 78 | } 79 | } 80 | 81 | public List QueryRxService(String queryrx) { 82 | if (queryrx.equals("")) { 83 | return GetCompleteInfoService(); 84 | } else { 85 | if (Boolean_tiaoxingma.Checkdate(queryrx)) { 86 | List str = rpm.GetDateTime(queryrx); 87 | if (str.size() == 0) { 88 | return null; 89 | } else { 90 | List re = new ArrayList(); 91 | for (String s : str) { 92 | re.add(new RxpersonJson(rpm.GetByTime(s), rdm.GetIt(s))); 93 | } 94 | return re; 95 | } 96 | } else { 97 | List str2 = rdm.GetSomeDrugTime(queryrx); 98 | if (str2.size() == 0) { 99 | return null; 100 | } else { 101 | List re2 = new ArrayList(); 102 | for (String s : str2) { 103 | re2.add(new RxpersonJson(rpm.GetByTime(s), rdm.GetIt(s))); 104 | } 105 | return re2; 106 | } 107 | } 108 | } 109 | } 110 | 111 | public void UpdateRxService(Rxperson rx) { 112 | rpm.UpdateRxp(rx); 113 | } 114 | 115 | public void DelRxService(String del) { 116 | rdm.DelRxdrug(del); 117 | rpm.DelRxp(del); 118 | } 119 | 120 | } 121 | -------------------------------------------------------------------------------- /src/main/java/com/controller/JinhuoController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import javax.validation.Valid; 7 | 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Controller; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | import org.springframework.web.bind.annotation.RequestMethod; 12 | import org.springframework.web.bind.annotation.RequestParam; 13 | import org.springframework.web.bind.annotation.ResponseBody; 14 | 15 | import com.bean.Drug; 16 | import com.bean.Gonghuoshang; 17 | import com.bean.Jinhuo; 18 | import com.bean.Msg; 19 | import com.service.JinhuoService; 20 | 21 | 22 | @Controller 23 | public class JinhuoController { 24 | 25 | @Autowired 26 | JinhuoService JS; 27 | 28 | @RequestMapping("/tostore") //jinhuo 29 | public String to_tostore(Map map) { 30 | map.put("jinhuo", JS.GetAllJinhuoService()); 31 | return "tostore/tostore"; 32 | } 33 | 34 | @RequestMapping("/jhrecords") //jhrecords查看进货记录 35 | public String to_jhrecords(@RequestParam(value = "pn", defaultValue = "1") Integer pn, 36 | @RequestParam(value = "querydrug", defaultValue = "") String qd, Map map) { 37 | map.put("queryresult", JS.QueryJFYService(pn, qd)); 38 | map.put("querystring", qd); 39 | map.put("ghsinfo", JS.GetAllGhsService()); 40 | return "tostore/jhrecords"; 41 | } 42 | 43 | @RequestMapping("/ghsinfo") //ghsinfo 44 | public String to_ghsinfo() { 45 | return "tostore/ghsinfo"; 46 | } 47 | 48 | @RequestMapping(value = "/deletejinhuo", method = RequestMethod.POST) //deletejinhuo 49 | public String to_deletejinhuo(String drugname, String changshang, 50 | String pihao, String amount) { 51 | JS.DeleteJinhuoService(drugname, changshang, pihao, amount); 52 | return "redirect:/tostore"; 53 | } 54 | 55 | //cpsh 56 | @RequestMapping("/cpsh") 57 | public String to_cpsh() { 58 | JS.CpshService(); 59 | return "redirect:/tostore"; 60 | } 61 | 62 | //queryjhdruginfo 63 | @RequestMapping("/queryjhdruginfo") 64 | public String to_queryjhdruginfo(String querydrug, Map map) { 65 | map.put("forselect", JS.ForSelectService(querydrug)); 66 | return "tostore/jinhuoselect"; 67 | } 68 | 69 | //toaddjinhuo 70 | @RequestMapping("/toaddjinhuo") 71 | public String to_toaddjinhuo(@Valid Drug drug, Map map) { 72 | map.put("druginfo", drug); 73 | map.put("ghsinfo", JS.GetAllGhsService()); 74 | return "tostore/toaddjinhuo"; 75 | } 76 | 77 | //addjinhuo 78 | @RequestMapping("/addjinhuo") 79 | public String to_addjinhuo(@Valid Jinhuo j) { 80 | JS.AddJinhuoService(j); 81 | return "redirect:/tostore"; 82 | } 83 | 84 | //getghsinfo 85 | @ResponseBody 86 | @RequestMapping(value = "/getghsinfo", method = RequestMethod.POST) 87 | public List to_getghsinfo() { 88 | return JS.GetAllGhsService(); 89 | } 90 | 91 | //delghsinfo 92 | @ResponseBody 93 | @RequestMapping(value = "/delghsinfo", method = RequestMethod.POST) 94 | public Msg to_delghsinfo(String delargs) { 95 | return JS.DelGhsCheckService(delargs); 96 | } 97 | 98 | //delghs-records 99 | @RequestMapping("/delghs-records") 100 | public String to_delghs_records(String confirmdel) { 101 | JS.DelGhsAndRecordsService(confirmdel); 102 | return "redirect:/ghsinfo"; 103 | } 104 | 105 | //addghsinfo 106 | @ResponseBody 107 | @RequestMapping(value = "/addghsinfo", method = RequestMethod.POST) 108 | public Msg to_addghsinfo(String addval) { 109 | if (!addval.equals("")) { 110 | return JS.AddGhsService(addval); 111 | } 112 | return null; 113 | } 114 | } 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /src/main/webapp/register.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="utf-8" %> 2 | 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 新用户注册 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 |
23 |
24 |
25 |
26 | 27 | 28 |
29 |
30 |

新用户注册 (去登陆)

31 |
32 |
33 | 34 |
35 | 37 | 38 |
39 |
40 |
41 | 42 |
43 | 45 | 46 |
47 |
48 |
49 | 52 | 55 |
56 |
57 | 58 | 59 |
60 |
61 | 62 | 63 |
64 |
65 |
66 |
67 | 68 | 69 | 70 | 71 | 101 | 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /src/main/java/com/service/StoreService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.ArrayList; 5 | import java.util.Date; 6 | import java.util.List; 7 | 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | 12 | import com.bean.Datetips; 13 | import com.bean.Store; 14 | import com.github.pagehelper.PageHelper; 15 | import com.github.pagehelper.PageInfo; 16 | import com.mapper.StoreMapper; 17 | import com.utils.Boolean_tiaoxingma; 18 | import com.utils.StringPro; 19 | 20 | 21 | @Service 22 | public class StoreService { 23 | 24 | @Autowired 25 | StoreMapper store; 26 | 27 | public PageInfo QueryStoreService(Integer pn, String qs) { 28 | if (qs == "" || qs == null) { 29 | PageHelper.startPage(pn, 8); 30 | List re = store.GetAllStore(); 31 | PageInfo page_1 = new PageInfo(re, 5); 32 | return page_1; 33 | } else { 34 | if (Boolean_tiaoxingma.CheckParam(qs)) { 35 | PageHelper.startPage(pn, 8); 36 | List re2 = store.QueryBySTiao(qs); 37 | PageInfo page_2 = new PageInfo(re2, 5); 38 | return page_2; 39 | } else { 40 | PageHelper.startPage(pn, 8); 41 | List re3 = store.QueryBySName(qs); 42 | PageInfo page_3 = new PageInfo(re3, 5); 43 | return page_3; 44 | } 45 | } 46 | } 47 | 48 | public void DeleteService(String drugname, String changshang, String pihao) { 49 | store.DeleteStore(drugname, changshang, pihao); 50 | } 51 | 52 | public void UpdateStoreService(Store reqstore) { 53 | store.UpdateStoreSomeInfo(reqstore); 54 | 55 | } 56 | 57 | /** 58 | * 添加库存,根据库存中是否有同批号药品返回true或false,有同批号返回true 59 | * 60 | * @param s 61 | * @return 62 | */ 63 | public boolean AddStoreService(Store s) { 64 | List check = store.QueryByNCP(s.getDrugname(), s.getChangshang(), s.getPihao()); 65 | if (check.isEmpty()) { 66 | store.AddStore(s); 67 | return false; 68 | } else { 69 | String newcount = StringPro.add(check.get(0).getCount(), s.getCount()); 70 | store.UpdateStoreCount(newcount, s.getDrugname(), s.getChangshang(), s.getPihao()); 71 | return true; 72 | } 73 | } 74 | 75 | /** 76 | * 效期提示 77 | * 78 | * @return 如果没有记录返回值只有一个记录,并且flag="notip" 79 | */ 80 | public synchronized List CheckStoreService() { 81 | List allstore = store.GetAllStore(); 82 | ArrayList re = new ArrayList(); 83 | if (allstore.isEmpty()) { 84 | re.add(new Datetips(null, null, null, null, null, null, null, null, null, null, null, null, "notip")); 85 | return re; 86 | } else { 87 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 88 | String nowdate = sdf.format(new Date());//获取系统当前时间 89 | for (Store s : allstore) { 90 | try { 91 | int flag = StringPro.daysBetween(nowdate, s.getDate()); 92 | if (flag <= 180) { 93 | String tip = ""; 94 | String f = ""; 95 | if (flag <= 0) { 96 | tip = "已过期"; 97 | f = "r"; 98 | } else { 99 | tip = "还有" + flag + "天过期"; 100 | f = "y"; 101 | } 102 | Datetips nn = new Datetips(s.getDrugname(), s.getChangshang(), s.getBeginprice(), s.getPrice(), s.getDate(), s.getPihao(), s.getBeizhu(), s.getLocation(), s.getCount(), s.getUnit(), s.getGuige(), tip, f); 103 | re.add(nn); 104 | } 105 | } catch (Exception e) { 106 | continue; 107 | } 108 | } 109 | if (re.isEmpty()) { 110 | re.add(new Datetips(null, null, null, null, null, null, null, null, null, null, null, null, "notip")); 111 | } 112 | return re; 113 | } 114 | } 115 | 116 | public List YJService(int c) { 117 | return store.StoreYJ(c); 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /drug.sql: -------------------------------------------------------------------------------- 1 | create table druginfo 2 | ( 3 | drugname varchar(50) null, 4 | changshang varchar(50) null, 5 | beizhu varchar(100) null, 6 | location varchar(100) null, 7 | unit varchar(50) null, 8 | guige varchar(50) null, 9 | tiaoxingma varchar(50) null 10 | ); 11 | 12 | create table ghs 13 | ( 14 | gonghuoshang varchar(80) null 15 | ); 16 | 17 | create table jinhuo 18 | ( 19 | drugname varchar(50) null, 20 | changshang varchar(50) null, 21 | beginprice varchar(50) null, 22 | price varchar(50) null, 23 | amount varchar(50) null, 24 | sum varchar(50) null, 25 | begindate varchar(50) null, 26 | date varchar(50) null, 27 | pihao varchar(50) null, 28 | beizhu varchar(100) null, 29 | location varchar(100) null, 30 | unit varchar(50) null, 31 | guige varchar(50) null, 32 | tiaoxingma varchar(50) null, 33 | jinhuo_time varchar(100) null, 34 | gonghuoshang varchar(100) null 35 | ); 36 | 37 | create table jinhuorecords 38 | ( 39 | drugname varchar(50) null, 40 | changshang varchar(50) null, 41 | beginprice varchar(50) null, 42 | price varchar(50) null, 43 | amount varchar(50) null, 44 | sum varchar(50) null, 45 | begindate varchar(50) null, 46 | date varchar(50) null, 47 | pihao varchar(50) null, 48 | beizhu varchar(100) null, 49 | location varchar(100) null, 50 | unit varchar(50) null, 51 | guige varchar(50) null, 52 | tiaoxingma varchar(50) null, 53 | jinhuo_time varchar(100) null, 54 | gonghuoshang varchar(100) null 55 | ); 56 | 57 | create table limitsell 58 | ( 59 | drugname varchar(100) null, 60 | changshang varchar(100) null, 61 | amount int default 0 null 62 | ); 63 | 64 | create table manager 65 | ( 66 | user varchar(50) null, 67 | password varchar(50) null, 68 | role int null 69 | ); 70 | 71 | create table rxdrug 72 | ( 73 | time varchar(50) not null, 74 | drugname varchar(80) not null, 75 | changshang varchar(80) not null, 76 | date varchar(80) not null, 77 | pihao varchar(50) not null, 78 | count varchar(50) not null 79 | ); 80 | 81 | create table rxperson 82 | ( 83 | time varchar(50) not null, 84 | name varchar(50) null, 85 | gendar varchar(20) null, 86 | age varchar(20) null, 87 | phone varchar(50) null, 88 | location varchar(80) null, 89 | hospital varchar(80) null, 90 | htime varchar(80) null, 91 | yz varchar(80) null, 92 | ysname varchar(80) null, 93 | zdys varchar(80) null 94 | ); 95 | 96 | create table sell 97 | ( 98 | drugname varchar(100) null, 99 | changshang varchar(100) null, 100 | price varchar(100) null, 101 | date varchar(100) null, 102 | pihao varchar(100) null, 103 | beizhu varchar(100) null, 104 | count varchar(100) null, 105 | unit varchar(100) null, 106 | guige varchar(100) null, 107 | amount varchar(100) null, 108 | sum varchar(100) null 109 | ); 110 | 111 | create table sellover 112 | ( 113 | drugname varchar(50) null, 114 | changshang varchar(50) null, 115 | price varchar(50) null, 116 | date varchar(50) null, 117 | pihao varchar(50) null, 118 | beizhu varchar(100) null, 119 | count varchar(50) null, 120 | unit varchar(50) null, 121 | guige varchar(50) null 122 | ); 123 | 124 | create table sellrecords 125 | ( 126 | drugname varchar(100) null, 127 | changshang varchar(100) null, 128 | beginprice varchar(100) null, 129 | price varchar(100) null, 130 | date varchar(100) null, 131 | pihao varchar(100) null, 132 | beizhu varchar(100) null, 133 | unit varchar(100) null, 134 | guige varchar(100) null, 135 | amount varchar(100) null, 136 | sum varchar(100) null, 137 | selltime varchar(100) null 138 | ); 139 | 140 | create table store 141 | ( 142 | drugname varchar(50) null, 143 | changshang varchar(50) null, 144 | beginprice varchar(50) null, 145 | price varchar(50) null, 146 | begindate varchar(50) null, 147 | date varchar(50) null, 148 | pihao varchar(50) null, 149 | beizhu varchar(100) null, 150 | location varchar(100) null, 151 | count varchar(50) null, 152 | unit varchar(50) null, 153 | guige varchar(50) null, 154 | tiaoxingma varchar(50) null 155 | ) 156 | charset = utf8mb4; 157 | 158 | -------------------------------------------------------------------------------- /src/main/java/com/controller/LoginController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import javax.servlet.http.HttpSession; 7 | 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Controller; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | import org.springframework.web.bind.annotation.RequestMethod; 12 | import org.springframework.web.bind.annotation.RequestParam; 13 | 14 | import com.bean.Manager; 15 | import com.service.ManagerService; 16 | import com.service.SellService; 17 | import com.service.StoreService; 18 | 19 | @Controller 20 | public class LoginController { 21 | @Autowired 22 | StoreService SS; 23 | 24 | @Autowired 25 | ManagerService checkuser; 26 | 27 | @Autowired 28 | SellService SellS; 29 | 30 | @RequestMapping(value = "/login", method = RequestMethod.POST) 31 | public String logincheck(@RequestParam(value = "username", required = true) String username, 32 | @RequestParam(value = "password") String password, HttpSession hs, Map map) { 33 | if (username.equals("") && password.equals("")) { 34 | map.put("logininfouser", "用户名或密码不能为空"); 35 | } else { 36 | List ck = checkuser.QueryUserService(username); 37 | int N = 0; 38 | int P = 0; 39 | for (Manager it : ck) { 40 | if (username.equals(it.getUser())) { 41 | N = 111111; 42 | if (password.equals(it.getPassword())) { 43 | P = 111111; 44 | Manager login = new Manager(); 45 | login.setUser(username); 46 | login.setPassword(password); 47 | hs.setAttribute("login", login); 48 | if (it.getRole() == 0) { 49 | return "redirect:/sell_user"; 50 | } else { 51 | return "redirect:/main"; 52 | } 53 | } else { 54 | N++; 55 | } 56 | } 57 | } 58 | if (N < 111111) { 59 | map.put("logininfouser", "该用户尚未注册,登录失败"); 60 | return "../../index"; 61 | } 62 | if (P < 111111) { 63 | map.put("logininfopass", "用户密码不正确,登录失败"); 64 | return "../../index"; 65 | } 66 | } 67 | return "../../index"; 68 | } 69 | 70 | @RequestMapping("/date") //date 效期提示 71 | public String to_date(Map map) { 72 | map.put("datetips", SS.CheckStoreService()); 73 | return "date/date"; 74 | } 75 | 76 | @RequestMapping("/sellover") //sellover 77 | public String to_sellover(Map map) { 78 | map.put("sellover", SellS.GetASService()); 79 | return "sellover/sellover"; 80 | } 81 | 82 | @RequestMapping("/delsellover") //delsellover 83 | public String to_delsellover(String drugname, String changshang, String pihao) { 84 | SellS.DelSelloverService(drugname, changshang, pihao); 85 | return "redirect:/sellover"; 86 | } 87 | 88 | @RequestMapping("/storetip") //storetip 库存预警 89 | public String to_storetip(@RequestParam(value = "c", required = false, defaultValue = "1") String c, Map map) { 90 | int a = 0; 91 | try { 92 | a = Integer.parseInt(c); 93 | } catch (Exception e) { 94 | a = 1; 95 | } 96 | map.put("yj", SS.YJService(a)); 97 | return "storetip/storetip"; 98 | } 99 | 100 | @RequestMapping(value = "/tips") //tips销售记录 101 | public String to_tips(@RequestParam(value = "pn", defaultValue = "1") Integer pn, 102 | @RequestParam(value = "selltime", defaultValue = "nowtime") String selltime, Map map) { 103 | map.put("alltips", SellS.GetRecordsService(pn, selltime)); 104 | map.put("moneyinfo", SellS.GetMoneyInfo(selltime)); 105 | map.put("today", SellS.GetTimeInfo(selltime)); 106 | return "tips/tips"; 107 | } 108 | 109 | // @RequestMapping(value="/gettips") //tips销售记录 110 | // public String to_gettips(String selltime,Map map){ 111 | // map.put("alltips", SellS.GetRecordsService(1,selltime)); 112 | // return "tips/tips"; 113 | // } 114 | @RequestMapping(value = "/deltips", method = RequestMethod.POST) //deltips销售记录 115 | public String to_deltips(String drugname, String changshang, String pihao, String selltime) { 116 | SellS.DelRecordsService(drugname, changshang, pihao, selltime); 117 | return "redirect:/tips"; 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/service/storetip/storetip.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 医药信息管理系统 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 |
29 |
30 | 33 |
34 |
35 | 57 |
58 |
59 |

设置预警数量:

60 |
61 | 73 | 74 |
75 |
76 | 77 |
78 | 没有记录。 79 |
80 |
81 | 82 |
83 |
84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 |
药品名称厂商销售价格有效期至批号备注单位规格数量
${dq.drugname }${dq.changshang }${dq.price }${dq.date }${dq.pihao }${dq.beizhu }${dq.unit }${dq.guige }${dq.count }
110 |
111 |
112 |
113 |
114 | 115 | 116 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Store.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | 7 | 8 | 9 | import javax.validation.constraints.Future; 10 | import javax.validation.constraints.NotBlank; 11 | import javax.validation.constraints.Past; 12 | import javax.validation.constraints.Pattern; 13 | 14 | import org.springframework.format.annotation.DateTimeFormat; 15 | 16 | 17 | 18 | public class Store { 19 | 20 | private String drugname; 21 | private String changshang; 22 | 23 | @Pattern(regexp = "^[1-9]\\d*\\.\\d*|^0\\.\\d*[1-9]\\d*$|^\\d+$",message = "数字格式有误") 24 | @NotBlank(message="bp不能为空") 25 | private String beginprice; 26 | 27 | @Pattern(regexp = "^[1-9]\\d*\\.\\d*|^0\\.\\d*[1-9]\\d*$|^\\d+$",message = "数字格式有误") 28 | @NotBlank(message="pri不能为空") 29 | private String price; 30 | 31 | @Past 32 | @DateTimeFormat(pattern="yyyy-MM-dd") 33 | //@Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$$",message = "日期格式有误") 34 | private Date begindate; 35 | 36 | 37 | @Future 38 | @DateTimeFormat(pattern="yyyy-MM-dd") 39 | //@Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$",message = "日期格式有误") 40 | private Date date; 41 | 42 | 43 | 44 | @Pattern(regexp = "^.{1,30}$",message = "格式错误或超过字数限制") 45 | @NotBlank(message="ph不能为空") 46 | private String pihao; 47 | private String beizhu; 48 | private String location; 49 | 50 | @Pattern(regexp = "^[1-9]\\d*|0$",message = "数字格式有误") 51 | @NotBlank(message="kc不能为空") 52 | private String count; 53 | private String unit; 54 | private String guige; 55 | private String tiaoxingma; 56 | public String getDrugname() { 57 | return drugname; 58 | } 59 | public void setDrugname(String drugname) { 60 | this.drugname = drugname; 61 | } 62 | public String getChangshang() { 63 | return changshang; 64 | } 65 | public void setChangshang(String changshang) { 66 | this.changshang = changshang; 67 | } 68 | public String getBeginprice() { 69 | return beginprice; 70 | } 71 | public void setBeginprice(String beginprice) { 72 | this.beginprice = beginprice; 73 | } 74 | public String getPrice() { 75 | return price; 76 | } 77 | public void setPrice(String price) { 78 | this.price = price; 79 | } 80 | 81 | 82 | public String getPihao() { 83 | return pihao; 84 | } 85 | public void setPihao(String pihao) { 86 | this.pihao = pihao; 87 | } 88 | public String getBeizhu() { 89 | return beizhu; 90 | } 91 | public void setBeizhu(String beizhu) { 92 | this.beizhu = beizhu; 93 | } 94 | public String getLocation() { 95 | return location; 96 | } 97 | public void setLocation(String location) { 98 | this.location = location; 99 | } 100 | public String getCount() { 101 | return count; 102 | } 103 | public void setCount(String count) { 104 | this.count = count; 105 | } 106 | public String getUnit() { 107 | return unit; 108 | } 109 | public void setUnit(String unit) { 110 | this.unit = unit; 111 | } 112 | public String getGuige() { 113 | return guige; 114 | } 115 | public void setGuige(String guige) { 116 | this.guige = guige; 117 | } 118 | public String getTiaoxingma() { 119 | return tiaoxingma; 120 | } 121 | public void setTiaoxingma(String tiaoxingma) { 122 | this.tiaoxingma = tiaoxingma; 123 | } 124 | 125 | public String getBegindate() { 126 | return new SimpleDateFormat("yyyy-MM-dd").format(begindate); 127 | } 128 | public void setBegindate(Date begindate) { 129 | this.begindate = begindate; 130 | } 131 | public String getDate() { 132 | return new SimpleDateFormat("yyyy-MM-dd").format(date); 133 | } 134 | public void setDate(Date date) { 135 | this.date = date; 136 | } 137 | @Override 138 | public String toString() { 139 | return "Store [drugname=" + drugname + ", changshang=" + changshang 140 | + ", beginprice=" + beginprice + ", price=" + price 141 | + ", begindate=" + begindate + ", date=" + date 142 | + ", pihao=" + pihao + ", beizhu=" + beizhu + ", location=" 143 | + location + ", count=" + count + ", unit=" + unit 144 | + ", guige=" + guige + ", tiaoxingma=" + tiaoxingma + "]"; 145 | } 146 | public Store(String drugname, String changshang, String beginprice, 147 | String price, Date begindate, Date date, String pihao, 148 | String beizhu, String location, String count, String unit, 149 | String guige, String tiaoxingma) { 150 | super(); 151 | this.drugname = drugname; 152 | this.changshang = changshang; 153 | this.beginprice = beginprice; 154 | this.price = price; 155 | this.begindate = begindate; 156 | this.date = date; 157 | this.pihao = pihao; 158 | this.beizhu = beizhu; 159 | this.location = location; 160 | this.count = count; 161 | this.unit = unit; 162 | this.guige = guige; 163 | this.tiaoxingma = tiaoxingma; 164 | } 165 | public Store(){} 166 | 167 | } 168 | -------------------------------------------------------------------------------- /.idea/artifacts/drug_war_exploded.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/target/drug-0.0.1-SNAPSHOT 4 | 5 | 6 | true 7 | drug 8 | war 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/service/sell/sellselect_user.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 医药信息管理系统 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 |
29 |
30 | 33 |
34 |
35 | 49 |
50 | 51 | 52 |
53 | 57 |
58 |
59 | 60 | 61 | 62 |
63 |
64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 96 | 97 | 98 |
药品名称厂商销售价格有效日期批号备注药品位置信息库存单位规格操作
${ds.drugname }${ds.changshang }${ds.price }${ds.date }${ds.pihao }${ds.beizhu }${ds.location }${ds.count }${ds.unit }${ds.guige } 92 | 95 |
99 |
100 |
101 |
102 | 103 |
104 |
105 | 106 | 107 | 108 |
109 | 117 | 118 | 119 | 120 | 121 | 122 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/service/sellover/sellover.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 医药信息管理系统 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 |
29 |
30 | 33 |
34 |
35 | 57 |
58 | 59 |
60 |
61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 91 | 92 | 93 |
药品名称厂商销售价格售完的时间批号备注库存单位规格操作
${dq.drugname }${dq.changshang }${dq.price }${dq.date }${dq.pihao }${dq.beizhu }${dq.count }${dq.unit }${dq.guige } 86 | 90 |
94 |
95 |
96 |
97 | 98 |
99 |
100 | 101 | 102 | 103 |
104 | 112 | 113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /src/main/java/com/bean/Jinhuo.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | import javax.validation.constraints.NotBlank; 4 | import javax.validation.constraints.Pattern; 5 | 6 | public class Jinhuo { 7 | 8 | @Pattern(regexp = "^.{1,22}$",message = "格式错误或超过字数限制") 9 | @NotBlank(message="dn不能为空") 10 | private String drugname; 11 | 12 | @Pattern(regexp = "^.{1,22}$",message = "格式错误或超过字数限制") 13 | @NotBlank(message="cs不能为空") 14 | private String changshang; 15 | 16 | @Pattern(regexp = "^[1-9]\\d*\\.\\d*|^0\\.\\d*[1-9]\\d*$|^\\d+$",message = "数字格式有误") 17 | @NotBlank(message="bp不能为空") 18 | private String beginprice; 19 | 20 | @Pattern(regexp = "^[1-9]\\d*\\.\\d*|^0\\.\\d*[1-9]\\d*$|^\\d+$",message = "数字格式有误") 21 | @NotBlank(message="pri不能为空") 22 | private String price; 23 | 24 | @Pattern(regexp = "^[1-9]\\d*|0$",message = "数字格式有误") 25 | @NotBlank(message="kc不能为空") 26 | private String amount; 27 | 28 | @Pattern(regexp = "^[1-9]\\d*\\.\\d*|^0\\.\\d*[1-9]\\d*$|^\\d+$",message = "数字格式有误") 29 | @NotBlank(message="sum不能为空") 30 | private String sum; 31 | private String begindate; 32 | private String date; 33 | 34 | @Pattern(regexp = "^.{1,30}$",message = "格式错误或超过字数限制") 35 | @NotBlank(message="ph不能为空") 36 | private String pihao; 37 | private String beizhu; 38 | private String location; 39 | private String unit; 40 | private String guige; 41 | private String tiaoxingma; 42 | private String jinhuo_time; 43 | private String gonghuoshang; 44 | public String getDrugname() { 45 | return drugname; 46 | } 47 | public void setDrugname(String drugname) { 48 | this.drugname = drugname; 49 | } 50 | public String getChangshang() { 51 | return changshang; 52 | } 53 | public void setChangshang(String changshang) { 54 | this.changshang = changshang; 55 | } 56 | public String getBeginprice() { 57 | return beginprice; 58 | } 59 | public void setBeginprice(String beginprice) { 60 | this.beginprice = beginprice; 61 | } 62 | public String getPrice() { 63 | return price; 64 | } 65 | public void setPrice(String price) { 66 | this.price = price; 67 | } 68 | public String getAmount() { 69 | return amount; 70 | } 71 | public void setAmount(String amount) { 72 | this.amount = amount; 73 | } 74 | public String getSum() { 75 | return sum; 76 | } 77 | public void setSum(String sum) { 78 | this.sum = sum; 79 | } 80 | public String getBegindate() { 81 | return begindate; 82 | } 83 | public void setBegindate(String begindate) { 84 | this.begindate = begindate; 85 | } 86 | public String getDate() { 87 | return date; 88 | } 89 | public void setDate(String date) { 90 | this.date = date; 91 | } 92 | public String getPihao() { 93 | return pihao; 94 | } 95 | public void setPihao(String pihao) { 96 | this.pihao = pihao; 97 | } 98 | public String getBeizhu() { 99 | return beizhu; 100 | } 101 | public void setBeizhu(String beizhu) { 102 | this.beizhu = beizhu; 103 | } 104 | public String getLocation() { 105 | return location; 106 | } 107 | public void setLocation(String location) { 108 | this.location = location; 109 | } 110 | public String getUnit() { 111 | return unit; 112 | } 113 | public void setUnit(String unit) { 114 | this.unit = unit; 115 | } 116 | public String getGuige() { 117 | return guige; 118 | } 119 | public void setGuige(String guige) { 120 | this.guige = guige; 121 | } 122 | public String getTiaoxingma() { 123 | return tiaoxingma; 124 | } 125 | public void setTiaoxingma(String tiaoxingma) { 126 | this.tiaoxingma = tiaoxingma; 127 | } 128 | public String getJinhuo_time() { 129 | return jinhuo_time; 130 | } 131 | public void setJinhuo_time(String jinhuo_time) { 132 | this.jinhuo_time = jinhuo_time; 133 | } 134 | public String getGonghuoshang() { 135 | return gonghuoshang; 136 | } 137 | public void setGonghuoshang(String gonghuoshang) { 138 | this.gonghuoshang = gonghuoshang; 139 | } 140 | public Jinhuo(){} 141 | public Jinhuo(String drugname, String changshang, String beginprice, 142 | String price, String amount, String sum, String begindate, 143 | String date, String pihao, String beizhu, String location, 144 | String unit, String guige, String tiaoxingma, String jinhuo_time, 145 | String gonghuoshang) { 146 | super(); 147 | this.drugname = drugname; 148 | this.changshang = changshang; 149 | this.beginprice = beginprice; 150 | this.price = price; 151 | this.amount = amount; 152 | this.sum = sum; 153 | this.begindate = begindate; 154 | this.date = date; 155 | this.pihao = pihao; 156 | this.beizhu = beizhu; 157 | this.location = location; 158 | this.unit = unit; 159 | this.guige = guige; 160 | this.tiaoxingma = tiaoxingma; 161 | this.jinhuo_time = jinhuo_time; 162 | this.gonghuoshang = gonghuoshang; 163 | } 164 | @Override 165 | public String toString() { 166 | return "Jinhuo [drugname=" + drugname + ", changshang=" + changshang 167 | + ", beginprice=" + beginprice + ", price=" + price 168 | + ", amount=" + amount + ", sum=" + sum + ", begindate=" 169 | + begindate + ", date=" + date + ", pihao=" + pihao 170 | + ", beizhu=" + beizhu + ", location=" + location + ", unit=" 171 | + unit + ", guige=" + guige + ", tiaoxingma=" + tiaoxingma 172 | + ", jinhuo_time=" + jinhuo_time + ", gonghuoshang=" 173 | + gonghuoshang + "]"; 174 | } 175 | 176 | 177 | } 178 | -------------------------------------------------------------------------------- /drug.iml: -------------------------------------------------------------------------------- 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 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/service/JinhuoService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.List; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import com.bean.Drug; 10 | import com.bean.Gonghuoshang; 11 | import com.bean.Jinhuo; 12 | import com.bean.Json; 13 | import com.bean.Msg; 14 | import com.bean.Store; 15 | import com.github.pagehelper.PageHelper; 16 | import com.github.pagehelper.PageInfo; 17 | import com.mapper.DrugMapper; 18 | import com.mapper.GonghuoshangMapper; 19 | import com.mapper.JinhuoMapper; 20 | import com.mapper.StoreMapper; 21 | import com.utils.Boolean_tiaoxingma; 22 | import com.utils.StringPro; 23 | 24 | 25 | @Service 26 | public class JinhuoService { 27 | @Autowired 28 | GonghuoshangMapper ghs; 29 | 30 | @Autowired 31 | JinhuoMapper jin; 32 | 33 | @Autowired 34 | StoreMapper sm; 35 | 36 | @Autowired 37 | DrugMapper drug; 38 | 39 | /** 40 | * 添加供货商,如果数据库有同样的记录,返回Msg.fail,如果没有就添加,并且返回Msg.success 41 | * 42 | * @param it(传进来的值) 43 | * @return 44 | */ 45 | public Msg AddGhsService(String it) { 46 | if (ghs.QueryGHS(it).isEmpty()) { 47 | ghs.AddGHS(it); 48 | Msg re = Msg.success().add("success", "success"); 49 | return re; 50 | } else { 51 | Msg re2 = Msg.fail().add("fail", "数据库中已存在次供货商信息"); 52 | return re2; 53 | } 54 | } 55 | 56 | /** 57 | * 返回所有ghs 58 | * 59 | * @return 60 | */ 61 | public List GetAllGhsService() { 62 | return ghs.GeyAllGHS(); 63 | } 64 | 65 | /** 66 | * 删除it和records中的记录 67 | * 68 | * @param it 69 | */ 70 | public void DelGhsAndRecordsService(String it) { 71 | ghs.DelGHS(it); 72 | jin.DelJinhuoRecords(it); 73 | } 74 | 75 | /** 76 | * del check 77 | * 78 | * @param it 79 | */ 80 | public Msg DelGhsCheckService(String it) { 81 | int checkcount = jin.CountGhsRecords(it); 82 | if (checkcount == 0) { 83 | ghs.DelGHS(it); 84 | Msg re = Msg.success().add("success", "delete success!!!"); 85 | return re; 86 | } else { 87 | Json j = new Json(it, null, null, null, null, checkcount); 88 | Msg re2 = Msg.fail().add("grcount", j); 89 | return re2; 90 | } 91 | } 92 | 93 | public List GetAllJinhuoService() { 94 | return jin.GetAllJinhuo(); 95 | } 96 | 97 | public void AddJinhuoService(Jinhuo j) { 98 | jin.AddJinhuo(j); 99 | } 100 | 101 | public void DeleteJinhuoService(String drugname, String changshang, 102 | String pihao, String amount) { 103 | jin.DelJinhuo(drugname, changshang, pihao, amount); 104 | } 105 | 106 | /** 107 | * 审核入库 108 | * 109 | * @return 110 | */ 111 | public boolean CpshService() { 112 | List CheckJh = jin.GetAllJinhuo(); 113 | if (CheckJh.isEmpty()) { 114 | return false; 115 | } else { 116 | List checkstore = null; 117 | for (Jinhuo j : CheckJh) { 118 | jin.AddJinhuorecords(j); 119 | checkstore = sm.QueryByNCP(j.getDrugname(), j.getChangshang(), j.getPihao()); 120 | if (checkstore.size() <= 0) { 121 | try { 122 | sm.AddStore(new Store(j.getDrugname(), j.getChangshang(), j.getBeginprice(), j.getPrice(), new SimpleDateFormat("yyyy-MM-dd").parse(j.getBegindate()), new SimpleDateFormat("yyyy-MM-dd").parse(j.getDate()), j.getPihao(), j.getBeizhu(), j.getLocation(), j.getAmount(), j.getUnit(), j.getGuige(), j.getTiaoxingma())); 123 | } catch (Exception e) { 124 | 125 | } 126 | } else { 127 | String newcount = StringPro.add(checkstore.get(0).getCount(), j.getAmount()); 128 | sm.UpdateStoreCount(newcount, j.getDrugname(), j.getChangshang(), j.getPihao()); 129 | } 130 | } 131 | jin.DelTableJinhuo(); 132 | return true; 133 | } 134 | } 135 | 136 | public List ForSelectService(String qd) { 137 | if (qd == "" || qd == null) { 138 | List re = drug.GetAllDrug(); 139 | return re; 140 | } else { 141 | if (Boolean_tiaoxingma.CheckParam(qd)) { 142 | List re2 = drug.QueryByTiao(qd); 143 | return re2; 144 | } else { 145 | List re3 = drug.QueryByName(qd); 146 | return re3; 147 | } 148 | } 149 | } 150 | 151 | public PageInfo QueryJFYService(Integer pn, String qd) { 152 | if (qd == "" || qd == null) { 153 | PageHelper.startPage(pn, 8); 154 | List re = jin.GAJRecords(); 155 | //使用pageinfo包装查询后的结果,只需要将pageinfo交给页面就行了PageInfo(ee,5) 5是连续显示多少页 156 | PageInfo page_1 = new PageInfo(re, 5); 157 | return page_1; 158 | } else { 159 | PageHelper.startPage(pn, 8); 160 | List re3 = jin.GJRGHS(qd); 161 | PageInfo page_3 = new PageInfo(re3, 5); 162 | return page_3; 163 | } 164 | } 165 | } 166 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/service/sell/sellamount_user.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 医药信息管理系统 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 |
29 |
30 | 33 |
34 |
35 | 49 |
50 | 51 | 52 |
53 | 56 |
57 |
58 | 59 | 60 | 61 |
62 |
63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 95 | 96 |
药品名称厂商销售价格有效日期批号备注药品位置信息库存单位规格输入销售数量操作
${foraddamount[0].drugname }${foraddamount[0].changshang }${foraddamount[0].price }${foraddamount[0].date }${foraddamount[0].pihao }${foraddamount[0].beizhu }${foraddamount[0].location }${foraddamount[0].count }${foraddamount[0].unit }${foraddamount[0].guige } 91 | 94 |
97 |
98 |
99 |
100 | 101 |
102 |
103 | 104 | 105 | 106 | 107 |
108 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | -------------------------------------------------------------------------------- /src/main/java/com/controller/DruginfoController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.util.Map; 4 | 5 | 6 | import javax.validation.Valid; 7 | 8 | 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Controller; 11 | import org.springframework.web.bind.annotation.RequestMapping; 12 | 13 | 14 | import org.springframework.web.bind.annotation.RequestMethod; 15 | import org.springframework.web.bind.annotation.RequestParam; 16 | 17 | 18 | import org.springframework.web.servlet.mvc.support.RedirectAttributes; 19 | 20 | import com.bean.Drug; 21 | import com.service.DruginfoService; 22 | 23 | 24 | @Controller 25 | public class DruginfoController { 26 | @Autowired 27 | DruginfoService DS; 28 | 29 | @RequestMapping("/main") 30 | public String redirect_to_main() { 31 | return "main"; 32 | } 33 | 34 | //querydrug 35 | @RequestMapping("/querydrug") //这个方法还需要优化,耗性能,前端可以使用JSON来平衡性能 36 | public String to_querydrug(@RequestParam(value = "pn", defaultValue = "1") Integer pn, 37 | @RequestParam(value = "querydrug") String qd, Map map) { 38 | map.put("queryresult", DS.QueryDrugService(pn, qd)); 39 | map.put("querystring", qd); 40 | return "druginfo/querydrug"; 41 | } 42 | 43 | @RequestMapping("/querydrug2") //这个方法还需要优化,耗性能,前端可以使用JSON来平衡性能 44 | public String to_querydrug2(@RequestParam(value = "pn", defaultValue = "1") Integer pn, 45 | @RequestParam(value = "querydrug") String qd, 46 | Map map) { 47 | map.put("queryresult", DS.QueryDrugService(pn, qd)); 48 | map.put("querystring", qd); 49 | return "druginfo/druginfo"; 50 | } 51 | 52 | /** 53 | * 药品基础信息修改 54 | * 55 | * @param hs 56 | * @param pn 57 | * @param nowqd 58 | * @param olddn 59 | * @param oldcs 60 | * @param reqdrug 61 | * @param map 62 | * @return 63 | */ 64 | @RequestMapping(value = "/updatedrug", method = RequestMethod.POST) 65 | public String to_update(@RequestParam(value = "nowpage", defaultValue = "1") Integer pn, 66 | String nowqd, String olddn, String oldcs, @Valid Drug reqdrug, Map map) { 67 | if (DS.UpdateDrugService(olddn, oldcs, reqdrug)) { 68 | map.put("queryresult", DS.QueryDrugService(pn, nowqd)); 69 | map.put("querystring", nowqd); 70 | map.put("msg", "修改成功!"); 71 | return "druginfo/querydrug"; 72 | } else { 73 | map.put("queryresult", DS.QueryDrugService(pn, nowqd)); 74 | map.put("querystring", nowqd); 75 | map.put("msg", "修改失败,要修改的名称不可用,数据库中已存在同名药品!"); 76 | return "druginfo/querydrug"; 77 | } 78 | } 79 | 80 | //这个可以优化一下,和上面那个方法写成一个 81 | @RequestMapping(value = "/updatedrug2", method = RequestMethod.POST) 82 | public String to_update2(@RequestParam(value = "nowpage", defaultValue = "1") Integer pn, 83 | String nowqd, String olddn, String oldcs, @Valid Drug reqdrug, Map map) { 84 | if (DS.UpdateDrugService(olddn, oldcs, reqdrug)) { 85 | map.put("queryresult", DS.QueryDrugService(pn, nowqd)); 86 | map.put("querystring", nowqd); 87 | map.put("msg", "修改成功!"); 88 | return "druginfo/druginfo"; 89 | } else { 90 | map.put("queryresult", DS.QueryDrugService(pn, nowqd)); 91 | map.put("querystring", nowqd); 92 | map.put("msg", "修改失败,要修改的名称不可用,数据库中已存在同名药品!"); 93 | return "druginfo/druginfo"; 94 | } 95 | } 96 | 97 | @RequestMapping("/druginfo") 98 | public String to_druginfo(Map map) { 99 | map.put("queryresult", DS.QueryDrugService(1, "")); 100 | map.put("querystring", ""); 101 | return "druginfo/druginfo"; 102 | } 103 | 104 | @RequestMapping("/adddrug") 105 | public String to_adddrug() { 106 | return "druginfo/adddrug"; 107 | } 108 | 109 | //add 110 | @RequestMapping(value = "/adddrugval", method = RequestMethod.POST) 111 | public String to_adddrugval(@Valid Drug adddrug, Map map) { 112 | if (DS.AddService(adddrug)) { 113 | map.put("msg", "添加成功"); 114 | return "druginfo/adddrug"; 115 | } else { 116 | map.put("msg", "添加失败,要添加的名称不可用,数据库中已存在同名药品,请稍微修改一下重试"); 117 | map.put("olddrug", adddrug); 118 | return "druginfo/adddrug"; 119 | } 120 | } 121 | 122 | @RequestMapping(value = "/deletedrug", method = RequestMethod.POST) 123 | public String to_delete(String pn, String qd, String drugname, String changshang, 124 | RedirectAttributes attr) { 125 | DS.DeleteService(drugname, changshang); 126 | attr.addAttribute("pn", pn); 127 | attr.addAttribute("querydrug", qd); 128 | return "redirect:/querydrug"; 129 | } 130 | 131 | @RequestMapping(value = "/deletedrug2", method = RequestMethod.POST) 132 | public String to_delete2(String pn, String qd, String drugname, String changshang, 133 | RedirectAttributes attr) { 134 | DS.DeleteService(drugname, changshang); 135 | attr.addAttribute("pn", pn); 136 | attr.addAttribute("querydrug", qd); 137 | return "redirect:/querydrug2"; 138 | } 139 | 140 | } -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/service/sell/sellselect.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 医药信息管理系统 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 |
29 |
30 | 33 |
34 |
35 | 57 |
58 | 59 | 60 |
61 | 66 |
67 |
68 | 69 | 70 | 71 |
72 |
73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 105 | 106 | 107 |
药品名称厂商销售价格有效日期批号备注药品位置信息库存单位规格操作
${ds.drugname }${ds.changshang }${ds.price }${ds.date }${ds.pihao }${ds.beizhu }${ds.location }${ds.count }${ds.unit }${ds.guige } 101 | 104 |
108 |
109 |
110 |
111 | 112 |
113 |
114 | 115 | 116 | 117 |
118 | 126 | 127 | 128 | 129 | 130 | 131 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/service/forclerk/clerk_manage.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 医药信息管理系统 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 32 | 33 |
34 |
35 | 38 |
39 | 62 | 63 | 64 |
65 | 68 |
69 |
70 | 71 |
72 |
73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 89 | 90 | 91 |
员工账号员工密码操作
${dq.user }${dq.password } 84 | 88 |
92 |
93 |
94 |
95 | 96 |
97 | 98 | 99 | 100 | 122 | 123 | 131 | 132 | 133 | 134 | 135 | 136 | --------------------------------------------------------------------------------