Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
019c43ef
Commit
019c43ef
authored
Mar 07, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
4ab967e2
265d6704
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
534 additions
and
41 deletions
+534
-41
PersonPostApi.java
src/main/java/com/yxproject/start/api/PersonPostApi.java
+50
-0
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+23
-7
ReadCardDto.java
src/main/java/com/yxproject/start/dto/ReadCardDto.java
+50
-0
FilesEntity.java
src/main/java/com/yxproject/start/entity/FilesEntity.java
+24
-2
PersonPostEntity.java
...ain/java/com/yxproject/start/entity/PersonPostEntity.java
+34
-18
FilesMapper.java
src/main/java/com/yxproject/start/mapper/FilesMapper.java
+2
-2
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+9
-2
PersonPostService.java
...n/java/com/yxproject/start/service/PersonPostService.java
+4
-0
TaskListService.java
...ain/java/com/yxproject/start/service/TaskListService.java
+2
-0
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+15
-0
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+14
-1
IDCardFactory.java
src/main/java/com/yxproject/start/utils/IDCardFactory.java
+2
-3
app.js
src/main/resources/static/js/app.js
+3
-0
service.js
src/main/resources/static/js/service.js
+2
-2
print-test.html
src/main/resources/static/print-test.html
+143
-0
test.html
src/main/resources/static/test.html
+153
-0
searchCardMsg.html
...n/resources/static/views/searchCardMsg/searchCardMsg.html
+0
-0
searchCardMsg.js
...ain/resources/static/views/searchCardMsg/searchCardMsg.js
+4
-4
No files found.
src/main/java/com/yxproject/start/api/PersonPostApi.java
View file @
019c43ef
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.dto.ReadCardDto
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.service.PersonPostService
;
import
net.sf.json.JSONObject
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -20,6 +29,20 @@ public class PersonPostApi {
@Autowired
PersonPostService
personPostService
;
private
Logger
logger
=
LoggerFactory
.
getLogger
(
PersonPostEntity
.
class
);
private
SimpleDateFormat
dateTimeFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm:ss"
);
private
Date
getDateFromString
(
String
gmtCreat
,
DateFormat
dateFormat
)
{
if
(
gmtCreat
!=
null
)
{
try
{
return
dateFormat
.
parse
(
gmtCreat
);
}
catch
(
ParseException
e
)
{
logger
.
error
(
e
.
getMessage
());
return
null
;
}
}
return
null
;
}
/**
* 按条件查询个人邮寄信息
* @param jsonStr
...
...
@@ -59,4 +82,31 @@ public class PersonPostApi {
personPostService
.
deletePersonalData
(
applicantName
,
orderNumber
,
state
,
latticeMouthInformation
,
getToCounty
,
uploadDate
);
return
true
;
}
/**
*刷身份证查询邮寄单信息详情
*/
@RequestMapping
(
"getPostInfo"
)
public
List
<
PersonPostEntity
>
findPersonalData
(
@RequestBody
ReadCardDto
readCardDto
){
List
<
PersonPostEntity
>
list
=
personPostService
.
getPostInfo
(
readCardDto
);
return
list
;
}
/**
* 更改打印状态
* @param id
* @param printTime
* @return
*/
@RequestMapping
(
"updatePrintDate"
)
public
boolean
updatePrintDate
(
@RequestParam
(
"id"
)
int
id
,
@RequestParam
(
"printTime"
)
String
printTime
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
boolean
flag
=
false
;
try
{
flag
=
personPostService
.
printPostList
(
id
,
sdf
.
parse
(
printTime
));
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
return
flag
;
}
}
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
019c43ef
...
...
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
sun.net.idn.StringPrep
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.transaction.Transactional
;
...
...
@@ -101,15 +102,30 @@ public class TaskListApi {
}
/**
* 查询任务单详情
* (辅助库)
* @param process 工序
* @param date 查询时间
* @param resp
* @return
*/
@RequestMapping
(
"queryByCountyAtAuxiliary"
)
public
List
<
Object
>
queryByCountyAtAuxiliary
(
@RequestParam
(
"process"
)
String
process
,
HttpServletResponse
resp
){
List
<
Object
>
objects
=
taskListService
.
selectByCountyAtAuxiliary
(
process
);
return
objects
;
}
/**
* 生成任务单
*
* @param date 查询时间
* @param name 提交人姓名
* @param groupList 组号列表
* @param countyList 区县列表 {typeCode:1,countyCode:'123456'}
* @param resp
* date 查询时间
* name 提交人姓名
* groupList 组号列表
* countyList 区县列表 {typeCode:1,countyCode:'123456'}
* @return
*/
@RequestMapping
(
"createTask"
)
...
...
@@ -123,14 +139,14 @@ public class TaskListApi {
JSONArray
jsonGroup
=
jsonObject
.
getJSONArray
(
"groupList"
);
List
<
Map
<
String
,
Object
>>
countyList
=(
List
<
Map
<
String
,
Object
>>)
jsonCounty
;
List
<
String
>
groupList
=(
List
<
String
>)
jsonGroup
;
//正常生成区县任务单
for
(
Map
<
String
,
Object
>
map
:
countyList
){
String
typeCode
=
map
.
get
(
"typeCode"
).
toString
();
String
countyCode
=
map
.
get
(
"countyCode"
).
toString
();
List
<
Object
>
objects
=
taskListService
.
selectGroupAtACCU
(
date
,
typeCode
,
countyCode
);
//todo 保存任务单数据
boolean
b
=
taskListService
.
saveTask
(
objects
,
name
);
}
//生成某几个组的区县任务单
if
(
groupList
.
size
()>
0
){
//查询组号详情
String
groupNo
=
"("
;
...
...
src/main/java/com/yxproject/start/dto/ReadCardDto.java
0 → 100644
View file @
019c43ef
package
com
.
yxproject
.
start
.
dto
;
public
class
ReadCardDto
{
private
String
idCard
;
private
String
startDate
;
private
String
endDate
;
@Override
public
String
toString
()
{
return
"ReadCardDto{"
+
"idCard='"
+
idCard
+
'\''
+
", startDate='"
+
startDate
+
'\''
+
", endDate='"
+
endDate
+
'\''
+
'}'
;
}
public
ReadCardDto
()
{
}
public
ReadCardDto
(
String
idCard
,
String
startDate
,
String
endDate
)
{
this
.
idCard
=
idCard
;
this
.
startDate
=
startDate
;
this
.
endDate
=
endDate
;
}
public
String
getIdCard
()
{
return
idCard
;
}
public
void
setIdCard
(
String
idCard
)
{
this
.
idCard
=
idCard
;
}
public
String
getStartDate
()
{
return
startDate
;
}
public
void
setStartDate
(
String
startDate
)
{
this
.
startDate
=
startDate
;
}
public
String
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
String
endDate
)
{
this
.
endDate
=
endDate
;
}
}
src/main/java/com/yxproject/start/entity/FilesEntity.java
View file @
019c43ef
...
...
@@ -15,6 +15,8 @@ public class FilesEntity {
private
String
createTime
;
private
String
sourceFileName
;
private
Date
newTime
;
private
long
id
;
private
Date
upload_date
;
@Basic
@Column
(
name
=
"VERSION_CODE"
)
...
...
@@ -66,7 +68,7 @@ public class FilesEntity {
this
.
createTime
=
createTime
;
}
@
Id
@
Basic
@Column
(
name
=
"SOURCE_FILE_NAME"
)
public
String
getSourceFileName
()
{
return
sourceFileName
;
...
...
@@ -85,6 +87,24 @@ public class FilesEntity {
public
void
setNewTime
(
Date
newTime
)
{
this
.
newTime
=
newTime
;
}
@Id
@Column
(
name
=
"ID"
)
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
@Basic
@Column
(
name
=
"UPLOAD_DATE"
)
public
Date
getUpload_date
()
{
return
upload_date
;
}
public
void
setUpload_date
(
Date
upload_date
)
{
this
.
upload_date
=
upload_date
;
}
@Override
public
boolean
equals
(
Object
o
)
{
...
...
@@ -97,11 +117,13 @@ public class FilesEntity {
Objects
.
equals
(
recordNumber
,
that
.
recordNumber
)
&&
Objects
.
equals
(
createTime
,
that
.
createTime
)
&&
Objects
.
equals
(
sourceFileName
,
that
.
sourceFileName
)
&&
Objects
.
equals
(
id
,
that
.
id
)
&&
Objects
.
equals
(
upload_date
,
that
.
upload_date
)
&&
Objects
.
equals
(
newTime
,
that
.
newTime
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
versionCode
,
dwdm
,
dwmc
,
recordNumber
,
createTime
,
sourceFileName
,
newTime
);
return
Objects
.
hash
(
versionCode
,
dwdm
,
dwmc
,
upload_date
,
id
,
recordNumber
,
createTime
,
sourceFileName
,
newTime
);
}
}
src/main/java/com/yxproject/start/entity/PersonPostEntity.java
View file @
019c43ef
...
...
@@ -2,6 +2,7 @@ package com.yxproject.start.entity;
import
javax.persistence.*
;
import
java.sql.Time
;
import
java.util.Date
;
import
java.util.Objects
;
@Entity
...
...
@@ -31,20 +32,21 @@ public class PersonPostEntity {
private
String
natureOfTheInternal
;
private
String
natureOfTheInformation
;
private
String
firstWhite
;
private
Lo
ng
idCard
;
private
Stri
ng
idCard
;
private
String
acceptTheMatter
;
private
Time
beginUsefulLife
;
private
Time
validPeriodEnd
;
private
String
beginUsefulLife
;
private
String
validPeriodEnd
;
private
String
note
;
private
Long
state
;
private
Time
uploadDate
;
private
Long
fileId
;
private
Time
analysisDate
;
private
Tim
e
printDate
;
private
Dat
e
printDate
;
private
Time
formStartTime
;
private
Time
formDeadline
;
private
long
id
;
@
Id
@
Basic
@Column
(
name
=
"WAYBILL_NUMBER"
)
public
String
getWaybillNumber
()
{
return
waybillNumber
;
...
...
@@ -273,6 +275,15 @@ public class PersonPostEntity {
public
void
setNatureOfTheInformation
(
String
natureOfTheInformation
)
{
this
.
natureOfTheInformation
=
natureOfTheInformation
;
}
@Id
@Column
(
name
=
"ID"
)
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
@Basic
@Column
(
name
=
"FIRST_WHITE"
)
...
...
@@ -286,11 +297,11 @@ public class PersonPostEntity {
@Basic
@Column
(
name
=
"ID_CARD"
)
public
Lo
ng
getIdCard
()
{
public
Stri
ng
getIdCard
()
{
return
idCard
;
}
public
void
setIdCard
(
Lo
ng
idCard
)
{
public
void
setIdCard
(
Stri
ng
idCard
)
{
this
.
idCard
=
idCard
;
}
...
...
@@ -304,24 +315,28 @@ public class PersonPostEntity {
this
.
acceptTheMatter
=
acceptTheMatter
;
}
public
void
setValidPeriodEnd
(
String
validPeriodEnd
)
{
this
.
validPeriodEnd
=
validPeriodEnd
;
}
@Basic
@Column
(
name
=
"BEGIN_USEFUL_LIFE"
)
public
Time
getBeginUsefulLife
()
{
public
String
getBeginUsefulLife
()
{
return
beginUsefulLife
;
}
public
void
setBeginUsefulLife
(
Time
beginUsefulLife
)
{
this
.
beginUsefulLife
=
beginUsefulLife
;
}
@Basic
@Column
(
name
=
"VALID_PERIOD_END"
)
public
Time
getValidPeriodEnd
(
)
{
return
validPeriodEnd
;
public
void
setBeginUsefulLife
(
String
beginUsefulLife
)
{
this
.
beginUsefulLife
=
beginUsefulLife
;
}
public
void
setValidPeriodEnd
(
Time
validPeriodEnd
)
{
this
.
validPeriodEnd
=
validPeriodEnd
;
public
String
getValidPeriodEnd
()
{
return
validPeriodEnd
;
}
@Basic
...
...
@@ -376,11 +391,11 @@ public class PersonPostEntity {
@Basic
@Column
(
name
=
"PRINT_DATE"
)
public
Tim
e
getPrintDate
()
{
public
Dat
e
getPrintDate
()
{
return
printDate
;
}
public
void
setPrintDate
(
Tim
e
printDate
)
{
public
void
setPrintDate
(
Dat
e
printDate
)
{
this
.
printDate
=
printDate
;
}
...
...
@@ -444,11 +459,12 @@ public class PersonPostEntity {
Objects
.
equals
(
analysisDate
,
that
.
analysisDate
)
&&
Objects
.
equals
(
printDate
,
that
.
printDate
)
&&
Objects
.
equals
(
formStartTime
,
that
.
formStartTime
)
&&
Objects
.
equals
(
id
,
that
.
id
)
&&
Objects
.
equals
(
formDeadline
,
that
.
formDeadline
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
waybillNumber
,
backWaybillNumber
,
orderNumber
,
createDate
,
openid
,
wcPlayOrderNumber
,
playState
,
orderState
,
applicantName
,
senderName
,
senderPhone
,
senderAddress
,
recipientName
,
recipientPhone
,
recipientAddress
,
orderBlankNumber
,
getToProvince
,
getToCity
,
getToCounty
,
businessType
,
latticeMouthInformation
,
natureOfTheInternal
,
natureOfTheInformation
,
firstWhite
,
idCard
,
acceptTheMatter
,
beginUsefulLife
,
validPeriodEnd
,
note
,
state
,
uploadDate
,
fileId
,
analysisDate
,
printDate
,
formStartTime
,
formDeadline
);
return
Objects
.
hash
(
waybillNumber
,
backWaybillNumber
,
id
,
orderNumber
,
createDate
,
openid
,
wcPlayOrderNumber
,
playState
,
orderState
,
applicantName
,
senderName
,
senderPhone
,
senderAddress
,
recipientName
,
recipientPhone
,
recipientAddress
,
orderBlankNumber
,
getToProvince
,
getToCity
,
getToCounty
,
businessType
,
latticeMouthInformation
,
natureOfTheInternal
,
natureOfTheInformation
,
firstWhite
,
idCard
,
acceptTheMatter
,
beginUsefulLife
,
validPeriodEnd
,
note
,
state
,
uploadDate
,
fileId
,
analysisDate
,
printDate
,
formStartTime
,
formDeadline
);
}
}
src/main/java/com/yxproject/start/mapper/FilesMapper.java
View file @
019c43ef
...
...
@@ -9,8 +9,8 @@ import java.util.List;
@Mapper
public
interface
FilesMapper
{
@Insert
(
"INSERT INTO FILES (VERSION_CODE,DWDM,DWMC,RECORD_NUMBER,CREATE_TIME,SOURCE_FILE_NAME)"
+
"VALUES(#{versionCode},#{dwdm},#{dwmc},#{recordNumber},#{createTime},#{sourceFileName})"
)
@Insert
(
"INSERT INTO FILES (VERSION_CODE,DWDM,DWMC,RECORD_NUMBER,CREATE_TIME,SOURCE_FILE_NAME
,UPLOAD_DATE
)"
+
"VALUES(#{versionCode},#{dwdm},#{dwmc},#{recordNumber},#{createTime},#{sourceFileName}
,#{upload_date}
)"
)
@Options
(
useGeneratedKeys
=
true
,
keyProperty
=
"id"
,
keyColumn
=
"id"
)
public
long
insertFiles
(
FilesEntity
filesEntity
);
...
...
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
019c43ef
...
...
@@ -3,6 +3,7 @@ package com.yxproject.start.mapper;
import
com.yxproject.start.entity.PersonPostEntity
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -22,8 +23,8 @@ public interface PersonPostMapper {
"where JMSFZSLH in(select FIRST_WHITE from person_post where FILE_ID=#{fileId}) and files.CREAT_TIME=#{creatTime} );"
)
public
boolean
updateIsPost
(
@Param
(
"fileId"
)
String
fileId
,
@Param
(
"creatTime"
)
String
creatTime
);
@Select
(
"SELECT * FROM PERSON_POST WHERE ID_CARD=
idCard AND BEGIN_USEFUL_LIFE=to_date(#{startDate},'yyyyMMdd') AND VALID_PERIOD_END=to_date(#{endDate},'yyyyMMdd')
"
)
public
List
<
PersonPostEntity
>
findAllByIdCardAndStartDateAndEndDate
(
String
idCard
,
String
startDate
,
String
endDate
);
@Select
(
"SELECT * FROM PERSON_POST WHERE ID_CARD=
#{idCard} AND BEGIN_USEFUL_LIFE=#{startDate} AND VALID_PERIOD_END=#{endDate}
"
)
public
List
<
PersonPostEntity
>
findAllByIdCardAndStartDateAndEndDate
(
@Param
(
"idCard"
)
String
idCard
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
//TODO getToCounty是List
...
...
@@ -52,4 +53,10 @@ public interface PersonPostMapper {
@Delete
(
"DELETE FROM PERSON_POST WHERE FILE_ID = #{fileId}"
)
public
void
deletePersonPostByFileId
(
@Param
(
"fileId"
)
String
fileId
);
@Select
(
"select * from PERSON_POST where id = #{id}"
)
public
PersonPostEntity
findPostInfoById
(
int
id
);
@Update
(
"update PERSON_POST SET PRINT_DATE=#{printDateTime} where id=#{id}"
)
void
updateIsPrint
(
@Param
(
"id"
)
int
id
,
@Param
(
"printDateTime"
)
Date
printDateTime
);
}
src/main/java/com/yxproject/start/service/PersonPostService.java
View file @
019c43ef
package
com
.
yxproject
.
start
.
service
;
import
com.yxproject.start.dto.ReadCardDto
;
import
com.yxproject.start.entity.FileNameDicEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
...
...
@@ -26,4 +27,7 @@ public interface PersonPostService {
public
boolean
deletePersonalData
(
String
applicantName
,
String
orderNumber
,
String
state
,
String
latticeMouthInformation
,
List
<
String
>
getToCounty
,
String
uploadDate
);
public
List
<
PersonPostEntity
>
getPostInfo
(
ReadCardDto
readCardDto
);
public
boolean
printPostList
(
int
id
,
Date
printDateTime
);
}
src/main/java/com/yxproject/start/service/TaskListService.java
View file @
019c43ef
...
...
@@ -22,6 +22,8 @@ public interface TaskListService {
public
List
<
Object
>
selectByCountyAtACCU
(
String
date
);
public
List
<
Object
>
selectByCountyAtAuxiliary
(
String
process
);
public
List
<
Object
>
selectGroupAtACCU
(
String
date
,
String
typeCode
,
String
countyCode
);
public
List
<
Object
>
selectGroupAtACCU
(
String
groupNo
);
...
...
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
019c43ef
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.dto.ReadCardDto
;
import
com.yxproject.start.entity.FileNameDicEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.mapper.FileNameDicMapper
;
...
...
@@ -69,6 +70,20 @@ public class PersonPostServiceImpl implements PersonPostService {
return
true
;
}
@Override
public
List
<
PersonPostEntity
>
getPostInfo
(
ReadCardDto
readCardDto
)
{
String
idCard
=
readCardDto
.
getIdCard
();
String
startDate
=
readCardDto
.
getStartDate
();
String
endDate
=
readCardDto
.
getEndDate
();
return
personPostMapper
.
findAllByIdCardAndStartDateAndEndDate
(
idCard
,
startDate
,
endDate
);
}
@Override
public
boolean
printPostList
(
int
id
,
Date
printDateTime
)
{
personPostMapper
.
updateIsPrint
(
id
,
printDateTime
);
return
true
;
}
// /**
// * 查询个人邮寄信息
// * @param fileName 文件名
...
...
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
019c43ef
...
...
@@ -68,7 +68,7 @@ public class TaskListServiceImpl implements TaskListService {
List
list
=
new
ArrayList
();
Map
<
String
,
Object
>
typeMap
=
new
LinkedHashMap
<>();
for
(
Map
o
:
maps
){
//
TODO
组合JSON
// 组合JSON
if
(
typeMap
!=
null
&
typeMap
.
containsKey
(
o
.
get
(
"CARD_TYPE"
)+
""
)){
List
<
Map
<
String
,
Object
>>
mapList
=
(
List
<
Map
<
String
,
Object
>>)
typeMap
.
get
(
o
.
get
(
"CARD_TYPE"
));
mapList
.
add
(
o
);
...
...
@@ -149,6 +149,19 @@ public class TaskListServiceImpl implements TaskListService {
return
list
;
}
/**
* 查询任务单详情
* 辅助库
* @param process 查询工序
* @return
*/
@Override
public
List
<
Object
>
selectByCountyAtAuxiliary
(
String
process
)
{
// taskListMapper
return
null
;
}
/**
* 查询组号信息
* 受理库
...
...
src/main/java/com/yxproject/start/utils/IDCardFactory.java
View file @
019c43ef
...
...
@@ -40,8 +40,8 @@ public class IDCardFactory {
filesEntity
.
setDwmc
(
DWMC
);
Date
date
=
new
Date
();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
filesEntity
.
setCreateTime
(
simpleDateFormat
.
format
(
date
));
filesEntity
.
setCreateTime
(
packagehead
.
element
(
"SCSJ"
).
getTextTrim
(
));
filesEntity
.
setUpload_date
(
new
Date
());
List
<
Element
>
recordlist
=
records
.
elements
(
"RECORD"
);
for
(
Element
e
:
recordlist
)
{
PreproPersonEntity
preproPersonEntity
=
new
PreproPersonEntity
();
...
...
@@ -69,7 +69,6 @@ public class IDCardFactory {
preproPersonEntity
.
setSjrLxdh
(
e
.
element
(
"SJR_LXDH"
).
getStringValue
());
preproPersonEntity
.
setSjrYzbm
(
e
.
element
(
"SJR_YZBM"
).
getStringValue
());
preproPersonEntity
.
setSjrTxdz
(
e
.
element
(
"SJR_TXDZ"
).
getStringValue
());
// preproPersonEntity.setFileId();
preproPersonEntityList
.
add
(
preproPersonEntity
);
System
.
out
.
println
(
preproPersonEntity
.
getJmsfzslh
()+
"--------------"
);
}
...
...
src/main/resources/static/js/app.js
View file @
019c43ef
...
...
@@ -150,6 +150,9 @@ angular.module('AvatarCheck', [
if
(
index
==
'/tagPrint'
){
$
(
"body"
).
addClass
(
"sidebar-collapse"
);
}
if
(
index
==
'/searchCardMsg'
){
location
.
reload
(
'#!/searchCardMsg'
);
}
$rootScope
.
tab
=
index
;
$rootScope
.
close
=
0
;
console
.
log
(
$rootScope
.
tab
)
...
...
src/main/resources/static/js/service.js
View file @
019c43ef
...
...
@@ -36,7 +36,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
var
body
=
JSON
.
stringify
(
data
);
$http
({
method
:
'POST'
,
url
:
"../
api/idCard
/getPostInfo"
,
url
:
"../
personPostApi
/getPostInfo"
,
data
:
body
,
headers
:
{
'Content-Type'
:
'application/json'
}
}).
then
(
function
successCallback
(
response
)
{
...
...
@@ -55,7 +55,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
console
.
log
(
id
)
$http
({
method
:
'GET'
,
url
:
"../
api/idCard/printPostList
"
+
urlTimeStamp
(),
url
:
"../
personPostApi/updatePrintDate
"
+
urlTimeStamp
(),
params
:
{
id
:
id
,
printTime
:
printTime
...
...
src/main/resources/static/print-test.html
0 → 100644
View file @
019c43ef
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
WEB打印控件LODOP的样例十五:打印有页头页尾的表格
</title>
<script
language=
"javascript"
src=
"components/js/LodopFuncs.js"
></script>
</head>
<body>
<div
id=
"div1"
>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border-collapse:collapse;border:0px dashed #000;width:96mm"
>
<tr>
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border:2px dashed #000;border-collapse:collapse;height:20mm"
>
<tr>
<td
style=
"border-right:2px dashed #000;width:40mm"
>
40*20
</td>
<td
style=
"border:0px dashed #000;width:56mm"
>
56*20
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border:2px dashed #000;border-top:none;border-collapse:collapse;height:15mm"
>
<tr>
<td
style=
"border-right:2px dashed #000;width:46mm"
>
46*15
</td>
<td
style=
"border:0px dashed #000;width:50mm"
>
50*15
</td>
</tr>
</table>
<td>
</tr>
<tr>
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border:2px dashed #000;border-top:none;border-collapse:collapse;height:17mm"
>
<tr>
<td
style=
"border-right:2px dashed #000;width:96mm"
>
96*17
</td>
</tr>
</table>
<td>
</tr>
<tr>
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border:2px dashed #000;border-top:none;border-collapse:collapse;height:15mm"
>
<tr>
<td
style=
"border-right:2px dashed #000;width:52mm"
>
52*14
</td>
<td
style=
"border:0px dashed #000;width:44mm"
>
44*14
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border:2px dashed #000;border-top:none;border-collapse:collapse;height:20mm"
>
<tr>
<td
style=
"border-right:2px dashed #000;width:96mm"
>
96*20
</td>
</tr>
</table>
<td>
</tr>
<tr>
<td
style=
"height:4mm"
></td>
</tr>
<tr>
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border:2px dashed #000;border-collapse:collapse;height:15mm"
>
<tr>
<td
style=
"border-right:2px dashed #000;width:96mm"
>
96*15
</td>
</tr>
</table>
<td>
</tr>
<tr>
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border:2px dashed #000;border-top:none;border-collapse:collapse;height:17mm"
>
<tr>
<td
style=
"border-right:2px dashed #000;width:40mm"
>
40*17
</td>
<td
style=
"border:0px dashed #000;width:56mm"
>
56*17
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border:2px dashed #000;border-top:none;border-collapse:collapse;height:15mm"
>
<tr>
<td
style=
"border-right:2px dashed #000;width:68mm"
>
68*17
</td>
<td
style=
"border:0px dashed #000;width:28mm"
>
28*17
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border:2px dashed #000;border-top:none;border-collapse:collapse;height:7mm"
>
<tr>
<td
style=
"border-right:2px dashed #000;width:68mm"
>
68*7
</td>
<td
style=
"border:0px dashed #000;width:28mm"
>
28*7
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<hr/>
<a
href=
"javascript:PreviewMytable()"
>
预览
</a>
,
<a
href=
"javascript:PreviewMytableRotate()"
>
预览(翻转)
</a>
<script
language=
"javascript"
type=
"text/javascript"
>
var
LODOP
;
//声明为全局变量
var
iRadioValue
=
1
;
function
PreviewMytable
(){
LODOP
=
getLodop
();
LODOP
.
PRINT_INIT
(
"打印控件功能演示_Lodop功能_预览打印表格"
);
LODOP
.
SET_PRINT_PAGESIZE
(
1
,
"100mm"
,
"149mm"
,
""
);
LODOP
.
ADD_PRINT_TABLE
(
13
,
2
,
960
,
1400
,
document
.
getElementById
(
"div1"
).
innerHTML
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"TableHeightScope"
,
iRadioValue
);
//LODOP.SET_PRINT_STYLEA(0,"AngleOfPageInside",180);
LODOP
.
PREVIEW
();
};
function
PreviewMytableRotate
(){
LODOP
=
getLodop
();
LODOP
.
PRINT_INIT
(
"打印控件功能演示_Lodop功能_预览打印表格"
);
LODOP
.
SET_PRINT_PAGESIZE
(
1
,
"100mm"
,
"149mm"
,
""
);
LODOP
.
ADD_PRINT_TABLE
(
13
,
2
,
960
,
1400
,
document
.
getElementById
(
"div1"
).
innerHTML
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"TableHeightScope"
,
iRadioValue
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"AngleOfPageInside"
,
180
);
LODOP
.
PREVIEW
();
};
</script>
</body>
</html>
src/main/resources/static/test.html
0 → 100644
View file @
019c43ef
<html>
<head>
<title>
videoView
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=gb2312"
>
</head>
<body>
<table
border=
"1"
>
<tr>
<td>
<form
name=
"myform"
>
<table
width=
"100%"
border=
"0"
cellpadding=
"0"
cellspacing=
"1"
bgcolor=
"#D9D4B6"
>
<TR>
<TD
colspan=
"2"
align=
"center"
valign=
"bottom"
bgColor=
#f7f2ff
>
<input
type=
"button"
value=
"读取二代证卡"
onclick=
"showvalue();"
></a>
</TR>
<TR>
<TD
colspan=
"2"
align=
"left"
valign=
"bottom"
bgColor=
#f7f2ff
>
个人基本信息
</TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
style=
"width:25%"
>
姓名:
</TD>
<TD
align=
"left"
bgColor=
#f7f2ff
><input
size=
"30"
name=
"name"
style=
"width:75%"
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
style=
"width:25%"
>
性别:
</TD>
<TD
align=
"left"
bgColor=
#f7f2ff
><INPUT
size=
"2"
style=
"width:75%"
name=
"sex"
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
>
民族:
</TD>
<TD
align=
"left"
bgColor=
#f7f2ff
><INPUT
size=
"4"
style=
"width:75%"
name=
"national"
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
>
出生日期:
</TD>
<TD
bgColor=
#f7f2ff
><INPUT
size=
"16"
name=
"birthday"
style=
"width:75%"
type=
""
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
>
住址:
</TD>
<TD
bgColor=
#f7f2ff
><INPUT
size=
"70"
name=
"address"
style=
"width:75%"
type=
""
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
>
公民身份号码:
</TD>
<TD
bgColor=
#f7f2ff
><INPUT
size=
"36"
name=
"id"
style=
"width:75%"
type=
""
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
>
签发机关:
</TD>
<TD
bgColor=
#f7f2ff
><INPUT
size=
"30"
name=
"qfjg"
style=
"width:75%"
type=
""
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
>
有效期起始日期:
</TD>
<TD
bgColor=
#f7f2ff
><INPUT
size=
"16"
name=
"yxqstart"
style=
"width:75%"
type=
""
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
>
有效期截止日期:
</TD>
<TD
bgColor=
#f7f2ff
><INPUT
size=
"16"
name=
"yxqend"
style=
"width:75%"
type=
""
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
>
最新住址:
</TD>
<TD
bgColor=
#f7f2ff
><INPUT
size=
"70"
name=
"newaddress"
style=
"width:75%"
type=
""
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
>
照片
</TD>
<TD
bgColor=
#f7f2ff
><INPUT
size=
"70"
name=
"Base64"
style=
"width:75%"
type=
""
></TD>
</TR>
<TR>
<TD
bgColor=
#f7f2ff
align=
"right"
>
是否含指纹信息
</TD>
<TD
bgColor=
#f7f2ff
><INPUT
size=
"70"
name=
"fp"
style=
"width:75%"
type=
""
></TD>
</TR>
</table>
</form>
</td>
<td>
<table>
<tr>
<td
valign=
"top"
>
<OBJECT
classid=
"clsid:18EE8930-6993-4ADA-B8BB-02BA5820AC94"
id=
"aaa"
CODEBASE=
"Termb.cab#version=1,0,0,1"
VIEWASTEXT
></OBJECT>
<script
language=
"javascript"
>
// aaa.visible=false;
function
showvalue
()
{
i
=
0
;
flag
=
0
;
if
(
aaa
.
OpenComm
(
1001
)
==
1
)
{
flag
=
1
;
//alert(i);
}
else
{
for
(
i
=
1
;
i
<
3
;
i
++
)
{
if
(
aaa
.
OpenComm
(
i
)
==
1
)
{
flag
=
1
;
//alert(i);
break
;
}
if
(
flag
!=
1
)
{
alert
(
"打开端口失败"
);
}
}
}
if
(
flag
==
1
)
{
if
(
aaa
.
Authen
()
==
1
)
{
ret
=
aaa
.
ReadCardPath
(
"c:
\
\"
, 1);
if (ret == 1 || ret == 3) {
myform.name.value = aaa.sName;
myform.sex.value = aaa.sSex;
myform.national.value = aaa.sNation;
myform.birthday.value = aaa.sBornDate;
myform.address.value = aaa.sAddress;
myform.id.value = aaa.sIDNo;
myform.qfjg.value = aaa.sSignGov;
myform.yxqstart.value = aaa.sStartDate;
myform.yxqend.value = aaa.sEndDate;
aaa.ReadCard(3)
myform.newaddress.value = aaa.sNewAddress;
myform.Base64.value = aaa.PhotoBuffer;
myform.fp.value = aaa.sFpState;
}
else {
alert("
读卡错误!
" + aaa.ReadCardPath("", 1));
}
}
else {
alert("
找卡错误
,
请重新放卡
!
");
}
}
aaa.EndComm();
}
</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</body>
</html>
src/main/resources/static/views/searchCardMsg/searchCardMsg.html
View file @
019c43ef
This diff is collapsed.
Click to expand it.
src/main/resources/static/views/searchCardMsg/searchCardMsg.js
View file @
019c43ef
...
...
@@ -230,8 +230,8 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
LODOP1.SET_PRINT_STYLEA(3, "
FontSize
", 4);
LODOP1.SET_PRINT_STYLEA(0, "
TableHeightScope
", iRadioValue);
LODOP1.SET_PRINT_STYLEA(0, "
AngleOfPageInside
", 0);
//
LODOP1.PREVIEW();
LODOP1.PRINT();
LODOP1.PREVIEW();
//
LODOP1.PRINT();
var LODOP = getLodop();
LODOP.SET_LICENSES("", "
15
F0BE661E7F32F37491843CB2510905
", "
C94CEE276DB2187AE6B65D56B3FC2848
", "");
...
...
@@ -260,8 +260,8 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
LODOP.SET_PRINT_STYLEA(2, "
FontSize
", 10);
LODOP.SET_PRINT_STYLEA(0, "
TableHeightScope
", iRadioValue);
LODOP.SET_PRINT_STYLEA(0, "
AngleOfPageInside
", 0);
//
LODOP.PREVIEW();
LODOP.PRINT();
LODOP.PREVIEW();
//
LODOP.PRINT();
var id = document.getElementsByClassName("
minimal
")[$scope.idx].value;
console.log(id)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment