spring mvc接收List集合、JUI传JSP List
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
|
< div class = "tabsContent" style = "height: 150px;" > < div > < table class = "list nowrap itemDetail" addButton = "新建诊疗服务录入" width = "1400px" > < thead > < tr > <!-- <th type="text" name="" defaultVal="#index#" size="2" fieldClass="digits">序号</th> --> < th defaultVal = "注射" type = "text" name = "surgerys[#index#].name" size = "12" fieldClass = "required" fieldAttrs = "{remote:'validate_remote.html', maxlength:100}" >项目名称</ th > < th defaultVal = "注射" type = "text" name = "surgerys[#index#].meaning" size = "12" fieldClass = "required" fieldAttrs = "{remote:'validate_remote.html', maxlength:100}" >项目内涵</ th > < th defaultVal = "注射" type = "text" name = "surgerys[#index#].exceptedContent" size = "12" fieldClass = "required" fieldAttrs = "{remote:'validate_remote.html', maxlength:100}" >除外内容</ th > < th defaultVal = "元" type = "text" name = "surgerys[#index#].chargeElement" size = "12" fieldClass = "required" fieldAttrs = "{remote:'validate_remote.html', maxlength:100}" >计价单位</ th > < th defaultVal = "个" type = "text" name = "surgerys[#index#].unit" size = "12" fieldClass = "required" fieldAttrs = "{remote:'validate_remote.html', maxlength:10}" >单位</ th > < th defaultVal = "注射" type = "text" name = "surgesrys[#index#].specification" size = "12" fieldClass = "required" fieldAttrs = "{remote:'validate_remote.html', maxlength:10}" >规格</ th > < th defaultVal = "45" type = "text" name = "surgerys[#index#].amountUnit" defaultVal = "0.8" size = "12" fieldClass = "number" >单价</ th > < th defaultVal = "12" type = "text" name = "surgerys[#index#].elements" size = "12" fieldClass = "digits" >数量</ th > < th defaultVal = "0.8" type = "text" name = "surgerys[#index#].amount" size = "12" fieldClass = "number" >金额</ th > < th type = "enum" name = "surgerys[#index#].isMedicalInsurance" size = "12" enumUrl = "public-resources/manage/isMedicalInsurance.html" >医保类型</ th > < th defaultVal = "注射" type = "text" name = "surgerys[#index#].instruction" size = "12" fieldClass = "required" fieldAttrs = "{remote:'validate_remote.html', maxlength:100}" >说明</ th > < th defaultVal = "注射" type = "text" name = "surgerys[#index#].surgeryType" size = "12" fieldClass = "required" fieldAttrs = "{remote:'validate_remote.html', maxlength:100}" >类别</ th > < th defaultVal = "13" type = "text" name = "surgerys[#index#].selfPayRatio" size = "12" fieldClass = "number" >自付比例</ th > < th defaultVal = "备注" type = "text" name = "surgerys[#index#].remark" size = "20" fieldClass = "required" fieldAttrs = "{remote:'validate_remote.html', maxlength:200}" >备注</ th > < th type = "del" width = "60" >操作</ th > </ tr > </ thead > < tbody ></ tbody > </ table > </ div > </ div > |
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
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
101
102
103
104
|
< tbody > < tr class = "unitBox" > < td >< input name = "surgerys[0].name" value = "注射" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[0].meaning" value = "注射" size = "12" class = "required textInput valid" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[0].exceptedContent" value = "注射" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[0].chargeElement" value = "元" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[0].unit" value = "个" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "10" type = "text" ></ td > < td >< input name = "surgesrys[0].specification" value = "注射" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "10" type = "text" ></ td > < td >< input name = "surgerys[0].amountUnit" value = "45" size = "12" class = "number textInput" type = "text" ></ td > < td >< input name = "surgerys[0].elements" value = "12" size = "12" class = "digits textInput" type = "text" ></ td > < td >< input name = "surgerys[0].amount" value = "0.8" size = "12" class = "number textInput" type = "text" ></ td > < td > <!-- 录入二 录入账单信息 诊疗服务 医保类型 --> < div class = "combox" > < div id = "combox_4178430" class = "select" > < a href = "javascript:" class = "" name = "surgery.isMedicalInsurance" value = "true" >是</ a >< select class = "" name = "surgery.isMedicalInsurance" > < option value = "true" >是</ option > < option value = "false" >否</ option > </ select > </ div > </ div > </ td > < td >< input name = "surgerys[0].instruction" value = "注射" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[0].surgeryType" value = "注射" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[0].selfPayRatio" value = "13" size = "12" class = "number textInput" type = "text" ></ td > < td >< input name = "surgerys[0].remark" value = "备注" size = "20" class = "required textInput" remote = "validate_remote.html" maxlength = "200" type = "text" ></ td > < td >< a href = "javascript:void(0)" class = "btnDel " >删除</ a ></ td > </ tr > < tr class = "unitBox" > < td >< input name = "surgerys[1].name" value = "注射" size = "12" class = "required textInput valid" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[1].meaning" value = "注射" size = "12" class = "required textInput valid" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[1].exceptedContent" value = "注射" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[1].chargeElement" value = "元" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[1].unit" value = "个" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "10" type = "text" ></ td > < td >< input name = "surgesrys[1].specification" value = "注射" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "10" type = "text" ></ td > < td >< input name = "surgerys[1].amountUnit" value = "45" size = "12" class = "number textInput" type = "text" ></ td > < td >< input name = "surgerys[1].elements" value = "12" size = "12" class = "digits textInput" type = "text" ></ td > < td >< input name = "surgerys[1].amount" value = "0.8" size = "12" class = "number textInput" type = "text" ></ td > < td > <!-- 录入二 录入账单信息 诊疗服务 医保类型 --> < div class = "combox" > < div id = "combox_4628796" class = "select" > < a href = "javascript:" class = "" name = "surgery.isMedicalInsurance" value = "true" >是</ a >< select class = "" name = "surgery.isMedicalInsurance" > < option value = "true" >是</ option > < option value = "false" >否</ option > </ select > </ div > </ div > </ td > < td >< input name = "surgerys[1].instruction" value = "注射" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[1].surgeryType" value = "注射" size = "12" class = "required textInput" remote = "validate_remote.html" maxlength = "100" type = "text" ></ td > < td >< input name = "surgerys[1].selfPayRatio" value = "13" size = "12" class = "number textInput" type = "text" ></ td > < td >< input name = "surgerys[1].remark" value = "备注" size = "20" class = "required textInput" remote = "validate_remote.html" maxlength = "200" type = "text" ></ td > < td >< a href = "javascript:void(0)" class = "btnDel " >删除</ a ></ td > </ tr > </ tbody > |
1
2
3
4
5
|
public class VoucherLineModel { private List<SurgeryImpl> surgerys; // 服务诊疗 private List<MedicineImpl> medicines; // 药品 private List<DiagnosisImpl> diagnosisList; // 手术 |
1
2
3
|
@RequestMapping ( "/addVoucherLineDetail/{oid}" ) public ModelAndView addVoucherLineDetail( @PathVariable ( "oid" ) long oid,VoucherLineModel voucherLineModel, HttpServletRequest request) { |
spring mvc接收List集合、JUI传JSP List的更多相关文章
- Spring MVC之中前端向后端传数据
Spring MVC之中前端向后端传数据和后端向前端传数据是数据流动的两个方向, 在此先介绍前端向后端传数据的情况. 一般而言, 前端向后端传数据的场景, 大多是出现了表单的提交,form表单的内容在 ...
- Spring MVC 实现文件的上传和下载
前些天一位江苏经贸的学弟跟我留言问了我这样一个问题:“用什么技术来实现一般网页上文件的上传和下载?是框架还是Java中的IO流”.我回复他说:“使用Spring MVC框架可以做到这一点,因为Spri ...
- Spring MVC接收参数(Map,List,JSON,Date,2个Bean)(记录一次面试惨状)
题目Spring MVC 接收参数 MapListDate2个BeanJSON Spring MVC接收参数 -Map Spring MVC接收参数 -List Spring MVC接收参数 -dat ...
- 使用Spring mvc接收整个url地址及参数时注意事项
使用Spring mvc接收整个url地址及参数时注意事项:url= http://baidu?oid=9525c1f2b2cd45019b30a37bead6ebbb&td=2015-08- ...
- 关于我使用spring mvc框架做文件上传时遇到的问题
非常感谢作者 原文:https://blog.csdn.net/lingirl/article/details/1714806 昨天尝试着用spring mvc框架做文件上传,犯了挺多不该犯的毛病问题 ...
- spring mvc接收ajax提交的JSON数据,并反序列化为对象
需求:spring mvc接收ajax提交的JSON数据,并反序列化为对象,代码如下: 前台JS代码: //属性要与带转化的对象属性对应 var param={name:'语文',price:16}; ...
- spring mvc接收数组
(一)前言 对于springmvc接收数组的问题啊,我试验过几次,但是了有时候成功了,有时候失败了,也不知道为啥的,然后现在又要用到了,所以打算具体看看到底怎么回事,但是了我实验成功了顺便找了好多资料 ...
- 【spring mvc】后台spring mvc接收List参数报错如下:org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.List]: Specified class is an interface
后台spring mvc接收List参数报错如下:org.springframework.beans.BeanInstantiationException: Failed to instantiate ...
- spring mvc 接收页面表单List
很少写博客,如果写的不好请多多包涵! 最近在用Spring mvc时遇到一个问题,在网上搜了很多资料.几乎没看到解决办法! 例如:当我们在做批量添加或者更新时,在Controller层接收表单数据的问 ...
随机推荐
- Java关键字---this的由来和其三大作用
[声明]欢迎转载,但请保留文章原始出处→_→ 秦学苦练:http://www.cnblogs.com/Qinstudy/ 文章来源:http://www.cnblogs.com/Qinstudy/p/ ...
- C++笔记007:易犯错误模型——类中为什么需要成员函数
先看源码,在VS2010环境下无法编译通过,在VS2013环境下可以编译通过,并且可以运行,只是运行结果并不是我们期待的结果. 最初通过MyCircle类定义对象c1时,为对象分配内存空间,r没有初始 ...
- python打造一个分析网站SQL注入的脚本
前言: 昨天晚上其实就已经写完代码.只不过向FB投稿了,打算延迟一晚上在写博客 所有才到今天早上写.好了,接下来进入正题. 思路: 1.从网站源码中爬取那些类适于:http://xxx.com/xx. ...
- 【mybatis深度历险系列】mybatis的框架原理+入门程序解析
在前面的博文中,小编介绍了springmvc的相关知识点,在今天这篇博文中,小编将介绍一下mybatis的框架原理,以及mybatis的入门程序,实现用户的增删改查,她有什么优缺点以及mybatis和 ...
- ICL Auto Vectorization
简介 此文简单介绍如何使用intel c++编译器实现向量化加速. 全文如下安排: base : 待优化的源代码. vectorization : 第一个向量化版本. aligned : 内存对其对向 ...
- 有一台机器,上面有m个储存空间。然后有n个请求,第i个请求计算时需要占 R[i]个空间,储存计算结果则需要占据O[i]个空间(据O[i]个空间(其中O[i]<R[i])。问怎么安排这n个请求的顺序,使
有一台机器,上面有m个储存空间.然后有n个请求,第i个请求计算时需要占 R[i]个空间,储存计算结果则需要占据O[i]个空间(据O[i]个空间(其中O[i]<R[i]).问怎么安排这n个请求的顺 ...
- 理解性能的奥秘——应用程序中慢,SSMS中快(3)——不总是参数嗅探的错
本文属于<理解性能的奥秘--应用程序中慢,SSMS中快>系列 接上文:理解性能的奥秘--应用程序中慢,SSMS中快(2)--SQL Server如何编译存储过程 在我们开始深入研究如何处理 ...
- 源码推荐:移动端商城(微信小程序源代码) WebView离线缓存
移动端商城(微信小程序源代码)(上传者:腾讯攻城师jack) 功能包括:商品橱窗,商品搜索,购物车,结账等功能. TableView嵌套webView自适应高度(上传者:linlinchen) tab ...
- React Native之ListView实现九宫格效果
概述 在安卓原生开发中,ListView是很常用的一个列表控件,那么React Native(RN)如何实现该功能呢?我们来看一下ListView的源码 ListView是基于ScrollView扩展 ...
- Hibernate缓存集成IMDG
1 第三方缓存插件 除了Ehcache这种轻量级的缓存方案外,几乎所有IMDG产品都提供了对Hibernate二级缓存的直接支持,常用的有: Ø Hazelcast Ø GridGain Ø J ...