Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
registration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
13
Issues
13
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
丁伟
registration
Commits
140dad81
Commit
140dad81
authored
4 years ago
by
丁伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、增加多次报名科目功能
parent
be1bd695
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
1095 additions
and
303 deletions
+1095
-303
src/main/java/org/ccpit/base/utils/TypeUtils.java
+73
-0
src/main/java/org/ccpit/business/registerManage/IndexController.java
+29
-7
src/main/java/org/ccpit/business/registerManage/RegisterController.java
+15
-9
src/main/java/org/ccpit/business/registerManage/RegisterInfo.java
+6
-0
src/main/java/org/ccpit/business/registerManage/RegisterService.java
+5
-71
src/main/java/org/ccpit/business/registerManage/SubjectInfo.java
+242
-0
src/main/java/org/ccpit/business/registerManage/SubjectInfoDao.java
+8
-0
src/main/java/org/ccpit/business/registerManage/SubjectInfoService.java
+94
-0
src/main/webapp/WEB-INF/jsp/business/registerInfoListPage.jsp
+15
-2
src/main/webapp/WEB-INF/jsp/front/info.jsp
+114
-28
src/main/webapp/WEB-INF/jsp/front/reg.jsp
+54
-45
src/main/webapp/WEB-INF/jsp/home.jsp
+1
-1
src/main/webapp/resource/business/registration.js
+85
-4
src/main/webapp/resource/business/registrationExt.js
+1
-1
src/main/webapp/resource/front/css/style.css
+267
-135
src/main/webapp/resource/front/js/info.js
+86
-0
src/main/webapp/resource/home/images/ccpit-logo.png
+0
-0
src/main/webapp/resource/home/images/homeTop_b20.png
+0
-0
No files found.
src/main/java/org/ccpit/base/utils/TypeUtils.java
0 → 100644
View file @
140dad81
package
org
.
ccpit
.
base
.
utils
;
public
class
TypeUtils
{
public
static
String
translateData
(
String
dataType
,
Integer
num
)
{
String
dataName
=
""
;
if
(
"invoiceType"
.
equals
(
dataType
))
{
switch
(
num
)
{
case
1
:
dataName
=
"CDCS考试费"
;
break
;
case
2
:
dataName
=
"培训费"
;
break
;
case
3
:
dataName
=
"培训服务费"
;
break
;
}
}
if
(
"subject"
.
equals
(
dataType
))
{
switch
(
num
)
{
case
1
:
dataName
=
"单证信用专家(CDCS)"
;
break
;
case
2
:
dataName
=
"保函与备用证专家(CSDG)"
;
break
;
case
3
:
dataName
=
"国际贸易金融专家(CITF)"
;
break
;
}
}
if
(
"registerType"
.
equals
(
dataType
))
{
switch
(
num
)
{
case
1
:
dataName
=
"首次报名 "
;
break
;
case
2
:
dataName
=
"补考报名"
;
break
;
case
3
:
dataName
=
"延考及恢复"
;
break
;
}
}
if
(
"registerStatus"
.
equals
(
dataType
))
{
switch
(
num
)
{
case
1
:
dataName
=
"报名成功"
;
break
;
case
2
:
dataName
=
"缴费成功"
;
break
;
case
3
:
dataName
=
"书籍发放"
;
break
;
case
4
:
dataName
=
"DC号"
;
break
;
case
5
:
dataName
=
"准考证打印"
;
break
;
case
6
:
dataName
=
"发票寄送"
;
break
;
case
7
:
dataName
=
"证书寄送"
;
break
;
}
}
return
dataName
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/org/ccpit/business/registerManage/IndexController.java
View file @
140dad81
...
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Controller;
...
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Controller;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
...
@@ -31,7 +32,7 @@ import java.util.Random;
...
@@ -31,7 +32,7 @@ import java.util.Random;
* @author 孙其鹏
* @author 孙其鹏
* @version 1.0
* @version 1.0
*/
*/
@Controller
@
Rest
Controller
@RequestMapping
(
"/training"
)
@RequestMapping
(
"/training"
)
public
class
IndexController
extends
BaseController
{
public
class
IndexController
extends
BaseController
{
@Autowired
@Autowired
...
@@ -40,6 +41,8 @@ public class IndexController extends BaseController {
...
@@ -40,6 +41,8 @@ public class IndexController extends BaseController {
private
MetadataService
metadataService
;
private
MetadataService
metadataService
;
@Autowired
@Autowired
private
PhaseService
phaseService
;
private
PhaseService
phaseService
;
@Autowired
private
SubjectInfoService
subjectInfoService
;
private
Map
<
String
,
Object
>
check
(){
private
Map
<
String
,
Object
>
check
(){
if
(
getActivePhase
()==
null
){
if
(
getActivePhase
()==
null
){
...
@@ -165,7 +168,6 @@ public class IndexController extends BaseController {
...
@@ -165,7 +168,6 @@ public class IndexController extends BaseController {
* @return
* @return
*/
*/
@RequestMapping
(
"/saveCertificateId"
)
@RequestMapping
(
"/saveCertificateId"
)
@ResponseBody
public
Object
saveCertificateId
(
HttpServletRequest
request
){
public
Object
saveCertificateId
(
HttpServletRequest
request
){
RegisterInfo
registerInfo
=
(
RegisterInfo
)
request
.
getSession
().
getAttribute
(
"registerInfo"
);
RegisterInfo
registerInfo
=
(
RegisterInfo
)
request
.
getSession
().
getAttribute
(
"registerInfo"
);
String
img1
=
request
.
getParameter
(
"img1"
);
String
img1
=
request
.
getParameter
(
"img1"
);
...
@@ -181,7 +183,6 @@ public class IndexController extends BaseController {
...
@@ -181,7 +183,6 @@ public class IndexController extends BaseController {
}
}
@RequestMapping
(
"/checkEmail"
)
@RequestMapping
(
"/checkEmail"
)
@ResponseBody
public
Object
checkEmail
(
String
email
,
Boolean
regType
){
public
Object
checkEmail
(
String
email
,
Boolean
regType
){
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Phase
phase
=
getActivePhase
();
Phase
phase
=
getActivePhase
();
...
@@ -195,7 +196,6 @@ public class IndexController extends BaseController {
...
@@ -195,7 +196,6 @@ public class IndexController extends BaseController {
}
}
@RequestMapping
(
"/reg"
)
@RequestMapping
(
"/reg"
)
@ResponseBody
public
Object
reg
(
HttpServletRequest
request
,
RegisterInfo
registerInfo
,
String
repassword
){
public
Object
reg
(
HttpServletRequest
request
,
RegisterInfo
registerInfo
,
String
repassword
){
Phase
phase
=
getActivePhase
();
Phase
phase
=
getActivePhase
();
//检查是否开放注册
//检查是否开放注册
...
@@ -262,7 +262,6 @@ public class IndexController extends BaseController {
...
@@ -262,7 +262,6 @@ public class IndexController extends BaseController {
}
}
@RequestMapping
(
"/reg2"
)
@RequestMapping
(
"/reg2"
)
@ResponseBody
public
Object
reg2
(
HttpServletRequest
request
,
RegisterInfo
registerInfo
,
String
repassword
){
public
Object
reg2
(
HttpServletRequest
request
,
RegisterInfo
registerInfo
,
String
repassword
){
Phase
phase
=
getActivePhase
();
Phase
phase
=
getActivePhase
();
if
(
phase
==
null
){
if
(
phase
==
null
){
...
@@ -331,13 +330,37 @@ public class IndexController extends BaseController {
...
@@ -331,13 +330,37 @@ public class IndexController extends BaseController {
return
map
;
return
map
;
}
}
@RequestMapping
(
"/reg3"
)
public
Object
reg3
(
HttpServletRequest
request
,
SubjectInfo
subjectInfo
,
long
registerInfo_id
){
Phase
phase
=
getActivePhase
();
if
(
phase
==
null
){
return
null
;
}
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
if
(
StringUtils
.
isEmpty
(
String
.
valueOf
(
subjectInfo
.
getSubject
()))){
map
.
put
(
"success"
,
false
);
map
.
put
(
"info"
,
"请填写报名科目"
);
return
map
;
}
subjectInfo
.
setRegisterInfo_id
(
registerInfo_id
);
subjectInfo
.
setRegisterStatus
(
0
);
RegisterInfo
registerInfo
=
registerService
.
queryRegisterById
(
registerInfo_id
);
boolean
success
=
subjectInfoService
.
addSubjectInfo
(
subjectInfo
);
if
(
success
){
request
.
getSession
().
setAttribute
(
"registerInfo"
,
registerInfo
);
request
.
getSession
().
setAttribute
(
"subjectInfo"
,
subjectInfo
);
}
map
.
put
(
"success"
,
success
);
return
map
;
}
private
void
sendEmail
(
String
email
,
String
name
,
String
subject
){
private
void
sendEmail
(
String
email
,
String
name
,
String
subject
){
EmailBody
body
=
new
EmailBody
();
EmailBody
body
=
new
EmailBody
();
MailSender
.
send
(
email
,
""
,
""
);
MailSender
.
send
(
email
,
""
,
""
);
}
}
@RequestMapping
(
"/login"
)
@RequestMapping
(
"/login"
)
@ResponseBody
public
Object
login
(
String
name
,
String
password
,
String
code
,
HttpServletRequest
request
){
public
Object
login
(
String
name
,
String
password
,
String
code
,
HttpServletRequest
request
){
Phase
phase
=
getActivePhase
();
Phase
phase
=
getActivePhase
();
if
(
phase
==
null
){
if
(
phase
==
null
){
...
@@ -372,7 +395,6 @@ public class IndexController extends BaseController {
...
@@ -372,7 +395,6 @@ public class IndexController extends BaseController {
}
}
@RequestMapping
(
"/login2"
)
@RequestMapping
(
"/login2"
)
@ResponseBody
public
Object
login2
(
String
name
,
String
password
,
String
code
,
HttpServletRequest
request
){
public
Object
login2
(
String
name
,
String
password
,
String
code
,
HttpServletRequest
request
){
Phase
phase
=
getActivePhase
();
Phase
phase
=
getActivePhase
();
if
(
phase
==
null
){
if
(
phase
==
null
){
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/ccpit/business/registerManage/RegisterController.java
View file @
140dad81
...
@@ -31,6 +31,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -31,6 +31,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.ModelAndView
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
...
@@ -45,7 +46,7 @@ import com.alibaba.fastjson.JSON;
...
@@ -45,7 +46,7 @@ import com.alibaba.fastjson.JSON;
* @see
* @see
* @since JDK 1.6
* @since JDK 1.6
*/
*/
@Controller
@
Rest
Controller
@RequestMapping
(
"/admin/business/registerManage"
)
@RequestMapping
(
"/admin/business/registerManage"
)
public
class
RegisterController
extends
BaseController
{
public
class
RegisterController
extends
BaseController
{
...
@@ -55,9 +56,11 @@ public class RegisterController extends BaseController {
...
@@ -55,9 +56,11 @@ public class RegisterController extends BaseController {
private
MetadataService
metadataService
;
private
MetadataService
metadataService
;
@Autowired
@Autowired
private
PhaseService
phaseService
;
private
PhaseService
phaseService
;
@Autowired
private
SubjectInfoService
subjectInfoService
;
/*
/*
*
进入新闻管理列表界面(中文)
*
*/
*/
@RequestMapping
(
"/goinRegisterInfoListPage"
)
@RequestMapping
(
"/goinRegisterInfoListPage"
)
public
Object
goinNewsListPage
()
{
public
Object
goinNewsListPage
()
{
...
@@ -76,7 +79,6 @@ public class RegisterController extends BaseController {
...
@@ -76,7 +79,6 @@ public class RegisterController extends BaseController {
return
mv
;
return
mv
;
}
}
@RequestMapping
(
"/addOrUpdateRegisterInfo"
)
@RequestMapping
(
"/addOrUpdateRegisterInfo"
)
@ResponseBody
public
Object
addOrUpdateRegisterInfo
(
HttpServletRequest
request
,
RegisterInfo
registerInfo
,
String
operate
,
HttpServletResponse
response
)
{
public
Object
addOrUpdateRegisterInfo
(
HttpServletRequest
request
,
RegisterInfo
registerInfo
,
String
operate
,
HttpServletResponse
response
)
{
boolean
success
=
false
;
boolean
success
=
false
;
if
(
StringUtils
.
isNotEmpty
(
operate
)&&
operate
.
equals
(
"add"
)){
if
(
StringUtils
.
isNotEmpty
(
operate
)&&
operate
.
equals
(
"add"
)){
...
@@ -120,7 +122,6 @@ public class RegisterController extends BaseController {
...
@@ -120,7 +122,6 @@ public class RegisterController extends BaseController {
}
}
@RequestMapping
(
"/queryAllRegisterInfo"
)
@RequestMapping
(
"/queryAllRegisterInfo"
)
@ResponseBody
public
Object
queryAllRegisterInfo
(
HttpServletRequest
request
,
String
name
,
String
status
,
String
status2
,
String
subject
,
String
subject2
,
Long
phase
)
{
public
Object
queryAllRegisterInfo
(
HttpServletRequest
request
,
String
name
,
String
status
,
String
status2
,
String
subject
,
String
subject2
,
Long
phase
)
{
PageRequest
pageRequest
=
getPage
(
request
);
PageRequest
pageRequest
=
getPage
(
request
);
StringBuilder
sb
=
new
StringBuilder
(
"from RegisterInfo where 1=1 "
);
StringBuilder
sb
=
new
StringBuilder
(
"from RegisterInfo where 1=1 "
);
...
@@ -155,8 +156,17 @@ public class RegisterController extends BaseController {
...
@@ -155,8 +156,17 @@ public class RegisterController extends BaseController {
return
infoPage
;
return
infoPage
;
}
}
@RequestMapping
(
"/queryAllSubject"
)
public
Object
queryAllSubject
(
HttpServletRequest
request
,
long
id
)
{
PageRequest
pageRequest
=
getPage
(
request
);
StringBuilder
sb
=
new
StringBuilder
(
"from SubjectInfo where registerInfo_id ="
+
id
);
pageRequest
.
setOrderBy
(
"submitTime desc "
);
StringBuffer
hql
=
new
StringBuffer
(
sb
.
toString
());
Page
<
SubjectInfo
>
infoPage
=
subjectInfoService
.
querySubjectInfos
(
pageRequest
,
hql
.
toString
());
return
infoPage
;
}
@RequestMapping
(
"/queryRegisterInfoById"
)
@RequestMapping
(
"/queryRegisterInfoById"
)
@ResponseBody
public
RegisterInfo
queryRegisterInfoById
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
RegisterInfo
queryRegisterInfoById
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
String
registerInfoId
=
request
.
getParameter
(
"registerInfo"
);
String
registerInfoId
=
request
.
getParameter
(
"registerInfo"
);
response
.
setHeader
(
"expires"
,
"0"
);
response
.
setHeader
(
"expires"
,
"0"
);
...
@@ -166,7 +176,6 @@ public class RegisterController extends BaseController {
...
@@ -166,7 +176,6 @@ public class RegisterController extends BaseController {
}
}
@RequestMapping
(
"/deleteByIds"
)
@RequestMapping
(
"/deleteByIds"
)
@ResponseBody
public
Object
deleteRegisters
(
HttpServletRequest
request
){
public
Object
deleteRegisters
(
HttpServletRequest
request
){
String
ids
=
request
.
getParameter
(
"ids"
);
String
ids
=
request
.
getParameter
(
"ids"
);
List
<
Long
>
list
=
JSON
.
parseArray
(
ids
,
Long
.
class
);
List
<
Long
>
list
=
JSON
.
parseArray
(
ids
,
Long
.
class
);
...
@@ -176,7 +185,6 @@ public class RegisterController extends BaseController {
...
@@ -176,7 +185,6 @@ public class RegisterController extends BaseController {
return
map
;
return
map
;
}
}
@RequestMapping
(
"/updateStatus"
)
@RequestMapping
(
"/updateStatus"
)
@ResponseBody
public
Object
updateStatus
(
HttpServletRequest
request
){
public
Object
updateStatus
(
HttpServletRequest
request
){
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
String
ids
=
request
.
getParameter
(
"ids"
);
String
ids
=
request
.
getParameter
(
"ids"
);
...
@@ -198,7 +206,6 @@ public class RegisterController extends BaseController {
...
@@ -198,7 +206,6 @@ public class RegisterController extends BaseController {
}
}
@RequestMapping
(
"/updateStatus2"
)
@RequestMapping
(
"/updateStatus2"
)
@ResponseBody
public
Object
updateStatus2
(
HttpServletRequest
request
){
public
Object
updateStatus2
(
HttpServletRequest
request
){
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
String
ids
=
request
.
getParameter
(
"ids"
);
String
ids
=
request
.
getParameter
(
"ids"
);
...
@@ -222,7 +229,6 @@ public class RegisterController extends BaseController {
...
@@ -222,7 +229,6 @@ public class RegisterController extends BaseController {
* 导出excel
* 导出excel
*/
*/
@RequestMapping
(
"/exporgExcel2"
)
@RequestMapping
(
"/exporgExcel2"
)
@ResponseBody
public
void
exporgExcel2
(
HttpServletResponse
response
,
public
void
exporgExcel2
(
HttpServletResponse
response
,
String
name
,
String
status
,
String
status2
,
String
subject
,
String
subject2
,
Long
phase
,
String
fields
,
String
flagExt
,
Long
bigger
)
{
String
name
,
String
status
,
String
status2
,
String
subject
,
String
subject2
,
Long
phase
,
String
fields
,
String
flagExt
,
Long
bigger
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/ccpit/business/registerManage/RegisterInfo.java
View file @
140dad81
...
@@ -249,6 +249,12 @@ public class RegisterInfo implements Serializable {
...
@@ -249,6 +249,12 @@ public class RegisterInfo implements Serializable {
* 证书照3
* 证书照3
*/
*/
private
String
img3
;
private
String
img3
;
/**
* 发票开具时间
*/
private
String
taxIssue
;
@Id
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/ccpit/business/registerManage/RegisterService.java
View file @
140dad81
...
@@ -37,6 +37,7 @@ import org.ccpit.base.controller.PageRequest;
...
@@ -37,6 +37,7 @@ import org.ccpit.base.controller.PageRequest;
import
org.ccpit.base.metadataManage.Metadata
;
import
org.ccpit.base.metadataManage.Metadata
;
import
org.ccpit.base.metadataManage.MetadataService
;
import
org.ccpit.base.metadataManage.MetadataService
;
import
org.ccpit.base.user.User
;
import
org.ccpit.base.user.User
;
import
org.ccpit.base.utils.TypeUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
...
@@ -162,10 +163,10 @@ public class RegisterService {
...
@@ -162,10 +163,10 @@ public class RegisterService {
map
.
put
(
"email"
,
RegisterInfo
.
getEmail
());
map
.
put
(
"email"
,
RegisterInfo
.
getEmail
());
map
.
put
(
"company"
,
RegisterInfo
.
getCompany
());
map
.
put
(
"company"
,
RegisterInfo
.
getCompany
());
map
.
put
(
"invoiceType"
,
map
.
put
(
"invoiceType"
,
translateData
(
"invoiceType"
,
RegisterInfo
.
getInvoiceType
()));
TypeUtils
.
translateData
(
"invoiceType"
,
RegisterInfo
.
getInvoiceType
()));
map
.
put
(
"subject"
,
translateData
(
"subject"
,
RegisterInfo
.
getSubject
()));
map
.
put
(
"subject"
,
TypeUtils
.
translateData
(
"subject"
,
RegisterInfo
.
getSubject
()));
map
.
put
(
"registerStatus"
,
map
.
put
(
"registerStatus"
,
translateData
(
"registerStatus"
,
TypeUtils
.
translateData
(
"registerStatus"
,
RegisterInfo
.
getRegisterStatus
()));
RegisterInfo
.
getRegisterStatus
()));
map
.
put
(
"sort"
,
RegisterInfo
.
getSort
());
map
.
put
(
"sort"
,
RegisterInfo
.
getSort
());
return
map
;
return
map
;
...
@@ -180,74 +181,7 @@ public class RegisterService {
...
@@ -180,74 +181,7 @@ public class RegisterService {
});
});
}
}
private
String
translateData
(
String
dataType
,
Integer
num
)
{
String
dataName
=
""
;
if
(
"invoiceType"
.
equals
(
dataType
))
{
switch
(
num
)
{
case
1
:
dataName
=
"CDCS考试费"
;
break
;
case
2
:
dataName
=
"培训费"
;
break
;
case
3
:
dataName
=
"培训服务费"
;
break
;
}
}
if
(
"subject"
.
equals
(
dataType
))
{
switch
(
num
)
{
case
1
:
dataName
=
"单证信用专家(CDCS)"
;
break
;
case
2
:
dataName
=
"保函与备用证专家(CSDG)"
;
break
;
case
3
:
dataName
=
"国际贸易金融专家(CITF)"
;
break
;
}
}
if
(
"registerType"
.
equals
(
dataType
))
{
switch
(
num
)
{
case
1
:
dataName
=
"首次报名 "
;
break
;
case
2
:
dataName
=
"补考报名"
;
break
;
case
3
:
dataName
=
"延考及恢复"
;
break
;
}
}
if
(
"registerStatus"
.
equals
(
dataType
))
{
switch
(
num
)
{
case
1
:
dataName
=
"报名成功"
;
break
;
case
2
:
dataName
=
"缴费成功"
;
break
;
case
3
:
dataName
=
"书籍发放"
;
break
;
case
4
:
dataName
=
"DC号"
;
break
;
case
5
:
dataName
=
"准考证打印"
;
break
;
case
6
:
dataName
=
"发票寄送"
;
break
;
case
7
:
dataName
=
"证书寄送"
;
break
;
}
}
return
dataName
;
}
/**
/**
* 根据选择的属性,导出数据到excel <功能详细描述>
* 根据选择的属性,导出数据到excel <功能详细描述>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/ccpit/business/registerManage/SubjectInfo.java
0 → 100644
View file @
140dad81
package
org
.
ccpit
.
business
.
registerManage
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* ClassName:报名科目信息表 <br/>
* Date: 2021年04月13日 下午1:33:37 <br/>
*
* @author dingwei
* @see
* @since JDK 1.8
*/
@Entity
@Table
(
name
=
"reg_subjectInfo"
)
public
class
SubjectInfo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
long
id
;
/**
* 注册用户信息id
*/
private
long
registerInfo_id
;
/**
* 报名科目
*/
private
Integer
subject
;
/**
* 报名状态
*/
private
Integer
registerStatus
;
/**
* 发票 增值税发票类型 1 表示 增值税普通发票 | 2 表示增值税专用发票
*/
private
Integer
appreciationTaxType
;
/**
* 发票 纳税人识别号
*/
private
String
taxpayerNum
;
/**
* 发票 公司地址
*/
private
String
addressName
;
/**
* 发票 公司电话
*/
private
String
telephone
;
/**
* 发票 开户行
*/
private
String
bankAddress
;
/**
* 银行账号
*/
private
String
bankAccount
;
/**
* 证书照1
*/
private
String
img1
;
/**
* 证书照2
*/
private
String
img2
;
/**
* 证书照3
*/
private
String
img3
;
/**
* 发票开具时间
*/
private
String
taxIssue
;
/**
* 备注
*/
private
String
remark
;
/**
* 缴费时间
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
payTime
;
/**
* 提交时间
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
submitTime
;
/**
* 修改时间
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
modifyTime
;
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
public
long
getRegisterInfo_id
()
{
return
registerInfo_id
;
}
public
void
setRegisterInfo_id
(
long
registerInfo_id
)
{
this
.
registerInfo_id
=
registerInfo_id
;
}
public
Integer
getSubject
()
{
return
subject
;
}
public
void
setSubject
(
Integer
subject
)
{
this
.
subject
=
subject
;
}
public
Integer
getRegisterStatus
()
{
return
registerStatus
;
}
public
void
setRegisterStatus
(
Integer
registerStatus
)
{
this
.
registerStatus
=
registerStatus
;
}
public
Integer
getAppreciationTaxType
()
{
return
appreciationTaxType
;
}
public
void
setAppreciationTaxType
(
Integer
appreciationTaxType
)
{
this
.
appreciationTaxType
=
appreciationTaxType
;
}
public
String
getTaxpayerNum
()
{
return
taxpayerNum
;
}
public
void
setTaxpayerNum
(
String
taxpayerNum
)
{
this
.
taxpayerNum
=
taxpayerNum
;
}
public
String
getAddressName
()
{
return
addressName
;
}
public
void
setAddressName
(
String
addressName
)
{
this
.
addressName
=
addressName
;
}
public
String
getTelephone
()
{
return
telephone
;
}
public
void
setTelephone
(
String
telephone
)
{
this
.
telephone
=
telephone
;
}
public
String
getBankAddress
()
{
return
bankAddress
;
}
public
void
setBankAddress
(
String
bankAddress
)
{
this
.
bankAddress
=
bankAddress
;
}
public
String
getBankAccount
()
{
return
bankAccount
;
}
public
void
setBankAccount
(
String
bankAccount
)
{
this
.
bankAccount
=
bankAccount
;
}
public
String
getImg1
()
{
return
img1
;
}
public
void
setImg1
(
String
img1
)
{
this
.
img1
=
img1
;
}
public
String
getImg2
()
{
return
img2
;
}
public
void
setImg2
(
String
img2
)
{
this
.
img2
=
img2
;
}
public
String
getImg3
()
{
return
img3
;
}
public
void
setImg3
(
String
img3
)
{
this
.
img3
=
img3
;
}
public
String
getTaxIssue
()
{
return
taxIssue
;
}
public
void
setTaxIssue
(
String
taxIssue
)
{
this
.
taxIssue
=
taxIssue
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
Date
getPayTime
()
{
return
payTime
;
}
public
void
setPayTime
(
Date
payTime
)
{
this
.
payTime
=
payTime
;
}
public
Date
getSubmitTime
()
{
return
submitTime
;
}
public
void
setSubmitTime
(
Date
submitTime
)
{
this
.
submitTime
=
submitTime
;
}
public
Date
getModifyTime
()
{
return
modifyTime
;
}
public
void
setModifyTime
(
Date
modifyTime
)
{
this
.
modifyTime
=
modifyTime
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/org/ccpit/business/registerManage/SubjectInfoDao.java
0 → 100644
View file @
140dad81
package
org
.
ccpit
.
business
.
registerManage
;
import
org.ccpit.base.dao.BaseDao
;
import
org.springframework.stereotype.Repository
;
@Repository
public
class
SubjectInfoDao
extends
BaseDao
<
SubjectInfo
>
{
}
This diff is collapsed.
Click to expand it.
src/main/java/org/ccpit/business/registerManage/SubjectInfoService.java
0 → 100644
View file @
140dad81
package
org
.
ccpit
.
business
.
registerManage
;
import
org.ccpit.base.controller.Convert
;
import
org.ccpit.base.controller.Page
;
import
org.ccpit.base.controller.PageBo
;
import
org.ccpit.base.controller.PageRequest
;
import
org.ccpit.base.metadataManage.MetadataService
;
import
org.ccpit.base.utils.TypeUtils
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
javax.transaction.Transactional
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@Component
public
class
SubjectInfoService
{
private
static
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd MM:hh:ss"
);
@Resource
private
SubjectInfoDao
subjectInfoDao
;
@Resource
private
MetadataService
metadataService
;
@Transactional
public
boolean
addSubjectInfo
(
SubjectInfo
subjectInfo
)
{
subjectInfo
.
setSubmitTime
(
new
Date
());
return
subjectInfoDao
.
save
(
subjectInfo
);
}
@Transactional
public
boolean
updateSubjectInfo
(
SubjectInfo
subjectInfo
)
{
subjectInfo
.
setModifyTime
(
new
Date
());
return
subjectInfoDao
.
update
(
subjectInfo
);
}
@Transactional
public
boolean
deleteSubjectInfos
(
long
id
)
{
return
subjectInfoDao
.
deleteById
(
id
);
}
public
SubjectInfo
queryRegisterById
(
long
id
)
{
return
subjectInfoDao
.
queryById
(
id
);
}
public
List
<
SubjectInfo
>
queryList
(
String
hql
)
{
return
subjectInfoDao
.
query
(
hql
,
null
);
}
public
Page
<
SubjectInfo
>
queryMemberBaseInfos
(
PageRequest
pageRequest
)
{
String
hql
=
"from SubjectInfo order by createTime desc,sort asc"
;
return
subjectInfoDao
.
findPage
(
pageRequest
,
hql
,
null
);
}
public
Page
<
SubjectInfo
>
querySubjectInfos
(
PageRequest
pageRequest
,
String
hql
)
{
return
subjectInfoDao
.
findPage
(
pageRequest
,
hql
,
null
);
}
public
Map
<
String
,
Object
>
convertToMap
(
SubjectInfo
subjectInfo
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
if
(
subjectInfo
==
null
)
{
return
map
;
}
map
.
put
(
"id"
,
subjectInfo
.
getId
());
map
.
put
(
"subject"
,
TypeUtils
.
translateData
(
"subject"
,
subjectInfo
.
getSubject
()));
map
.
put
(
"registerStatus"
,
TypeUtils
.
translateData
(
"registerStatus"
,
subjectInfo
.
getRegisterStatus
()));
map
.
put
(
"appreciationTaxType"
,
subjectInfo
.
getAppreciationTaxType
()
==
1
?
"增值税普通发票"
:
"表示增值税专用发票"
);
map
.
put
(
"taxpayerNum"
,
subjectInfo
.
getTaxpayerNum
());
map
.
put
(
"addressName"
,
subjectInfo
.
getAddressName
());
map
.
put
(
"telephone"
,
subjectInfo
.
getTelephone
());
map
.
put
(
"bankAddress"
,
subjectInfo
.
getBankAddress
());
map
.
put
(
"bankAccount"
,
subjectInfo
.
getBankAccount
());
map
.
put
(
"taxIssue"
,
subjectInfo
.
getTaxIssue
());
map
.
put
(
"payTime"
,
sdf
.
format
(
subjectInfo
.
getPayTime
()));
map
.
put
(
"submitTime"
,
sdf
.
format
(
subjectInfo
.
getSubmitTime
()));
map
.
put
(
"modifyTime"
,
sdf
.
format
(
subjectInfo
.
getModifyTime
()));
return
map
;
}
public
PageBo
<
SubjectInfo
>
convert
(
Page
<
SubjectInfo
>
page
)
{
return
new
PageBo
<
SubjectInfo
>(
page
,
new
Convert
<
SubjectInfo
>()
{
@Override
public
Map
<
String
,
Object
>
convert
(
SubjectInfo
obj
)
{
return
convertToMap
(
obj
);
}
});
}
}
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/jsp/business/registerInfoListPage.jsp
View file @
140dad81
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
</style>
</style>
</head>
</head>
<body
style=
"overflow:hidden"
>
<body
style=
"overflow:hidden"
>
<div
class=
"easyui-panel"
id=
"queryDiv"
title=
"
资讯
查询"
collapsed=
"false"
collapsible=
"false"
>
<div
class=
"easyui-panel"
id=
"queryDiv"
title=
"
报名
查询"
collapsed=
"false"
collapsible=
"false"
>
<form
method=
"post"
id=
"queryFormId"
name=
"queryForm"
>
<form
method=
"post"
id=
"queryFormId"
name=
"queryForm"
>
<table>
<table>
<tr>
<tr>
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
</form>
</form>
</div>
</div>
<!-- datagrid列表 -->
<!-- datagrid列表 -->
<table
id=
"registersTable"
toolbar=
"#toolbar"
key=
"newsList"
title=
"
角色
列表"
<table
id=
"registersTable"
toolbar=
"#toolbar"
key=
"newsList"
title=
"
用户
列表"
width=
"98%"
singleSelect=
"false"
>
width=
"98%"
singleSelect=
"false"
>
</table>
</table>
<!-- datagrid工具栏 -->
<!-- datagrid工具栏 -->
...
@@ -131,6 +131,19 @@
...
@@ -131,6 +131,19 @@
<security:url
uri=
"/admin/business/registerManage/export"
><a
class=
"easyui-linkbutton"
iconCls=
"icon-pencil"
plain=
"true"
onclick=
"openEditStatusWin()"
><span
>
修改报名状态
</span></a></security:url>
<security:url
uri=
"/admin/business/registerManage/export"
><a
class=
"easyui-linkbutton"
iconCls=
"icon-pencil"
plain=
"true"
onclick=
"openEditStatusWin()"
><span
>
修改报名状态
</span></a></security:url>
<security:url
uri=
"/admin/business/registerManage/export"
><a
class=
"easyui-linkbutton"
iconCls=
"icon-email"
plain=
"true"
onclick=
"openEmailWin()"
><span
>
发送邮件
</span></a></security:url>
<security:url
uri=
"/admin/business/registerManage/export"
><a
class=
"easyui-linkbutton"
iconCls=
"icon-email"
plain=
"true"
onclick=
"openEmailWin()"
><span
>
发送邮件
</span></a></security:url>
</div>
</div>
<!-- datagrid列表 -->
<table
id=
"subjectTable"
toolbar=
"#toolbar2"
key=
"newsList"
title=
"用户报名科目列表"
width=
"98%"
singleSelect=
"false"
>
</table>
<!-- datagrid工具栏 -->
<div
id=
"toolbar2"
>
<security:url
uri=
"/admin/business/registerManage/update"
><a
class=
"easyui-linkbutton"
iconCls=
"icon-pencil"
plain=
"true"
onclick=
"openEditWin()"
><span
>
修改
</span></a></security:url>
<security:url
uri=
"/admin/business/registerManage/delete"
><a
class=
"easyui-linkbutton"
iconCls=
"icon-remove"
plain=
"true"
onclick=
"deleteNews()"
><span
>
删除
</span></a></security:url>
<security:url
uri=
"/admin/business/registerManage/export"
><a
class=
"easyui-linkbutton"
iconCls=
"icon-pencil"
plain=
"true"
onclick=
"openEditStatusWin()"
><span
>
修改报名状态
</span></a></security:url>
</div>
<div
id=
"exportWindow"
class=
"easyui-window close"
>
<div
id=
"exportWindow"
class=
"easyui-window close"
>
<div
class=
"main"
>
<div
class=
"main"
>
<h3>
导出所有查询结果,请选择导出字段和顺序:
</h3>
<h3>
导出所有查询结果,请选择导出字段和顺序:
</h3>
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/jsp/front/info.jsp
View file @
140dad81
...
@@ -59,10 +59,10 @@
...
@@ -59,10 +59,10 @@
english=
"Participant's Information"
english=
"Participant's Information"
isnotnull=
"0"
>
考生基本信息
</yh:yh></td>
isnotnull=
"0"
>
考生基本信息
</yh:yh></td>
</tr>
</tr>
<input
type=
"hidden"
id=
"registerInfo_id"
value=
"${registerInfo.id}"
>
<c:if
test=
"${registerInfo.regType}"
>
<c:if
test=
"${registerInfo.regType}"
>
<tr
name=
"trEmial"
>
<tr
name=
"trEmial"
>
<td
class=
"name"
width=
"25%"
>
报名科目:
</td>
<td
class=
"name"
width=
"25%"
style=
"font-weight: bold;font-size: 15px"
>
已
报名科目:
</td>
<td>
<td>
<c:forEach
items=
"${subject}"
var=
"s"
>
<c:forEach
items=
"${subject}"
var=
"s"
>
<c:if
test=
"${registerInfo.subject == s.dataNameId}"
>
${s.dataName}
</c:if>
<c:if
test=
"${registerInfo.subject == s.dataNameId}"
>
${s.dataName}
</c:if>
...
@@ -163,19 +163,6 @@
...
@@ -163,19 +163,6 @@
<td>
${registerInfo.telphone}
</td>
<td>
${registerInfo.telphone}
</td>
</tr>
</tr>
<
%
--
<
tr
>
<td
class=
"name"
>
发票抬头:
</td>
<td>
${registerInfo.invoiceTitle}
</td>
</tr>
<tr>
<td
class=
"name"
>
发票类型:
</td>
<td>
<c:forEach
items=
"${invoiceType}"
var=
"s"
>
<c:if
test=
"${registerInfo.invoiceType == s.dataNameId}"
>
${s.dataName}
</c:if>
</c:forEach>
</td>
</tr>
--%>
<tr>
<tr>
<td
class=
"name"
>
增值税发票:
</td>
<td
class=
"name"
>
增值税发票:
</td>
<td>
<td>
...
@@ -350,20 +337,116 @@
...
@@ -350,20 +337,116 @@
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<c:if
test=
"${!registerInfo.regType}"
>
<tr>
<div
style=
"margin:0 20px;"
>
<td><hr></td>
<div
style=
"color:red;"
>
延考考生须知:
</div>
</tr>
<div>
1. 当报名状态从
<font
style=
"font-weight:bold;font-size:14px"
>
“报名成功”
</font>
变更为
<font
style=
"font-weight:bold;font-size:14px"
>
“延考受理”
</font>
后,表示延考已经受理,请考生自行登录my LIBF页面确认英国系统里的考试时间是否延期,考试日期请以英国系统内显示的时间为准。
</div>
<form
id=
"form"
>
<div>
2. 办理延考后,考试时间只能往后延期一次,不是无限次延考。
</div>
<table
id=
"tabThesis"
name=
"tabThesis"
align=
"center"
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%"
>
<div>
3. 根据新的延考规定,每名考生只有唯一一次免费延考机会,考生免费延考后如需再延考,需要重新提交申请,在规定时间内缴纳延考费用。如不提交申请并缴费,则考试资格作废。
</div>
<tbody><tr>
<br>
<td
class=
"title"
background=
"/resource/front/img/dh.gif"
height=
"24"
>
参加考试科目
</td>
<div
style=
"color:red;"
>
恢复考生须知:
</div>
</tr>
<div>
1. 考生在本系统提交的信息仅用于中方搜集考生正确的中文信息,以便考生通过考试后证书能邮寄至正确地址。
</div>
<tr>
<div>
2. 如果考生上次报名期间已办理延考,则不管在本系统提交恢复与否,您的考试资格都在本次考试。
</div>
<td
class=
"body"
>
<div>
3. 在本系统内提交考试恢复申请,不会造成my LIBF页面内考试时间变更,考试时间请以my LIBF内显示的时间为准。
</div>
<table
border=
"0"
cellpadding=
"3"
cellspacing=
"3"
width=
"100%"
>
</div>
<tbody><tr>
</c:if>
<td
width=
"3%"
>
</td>
<td
id=
"tdBase"
name=
"tdBase"
width=
"97%"
><table
class=
"body"
width=
"100%"
><tbody>
<tr
valign=
"top"
>
<c:forEach
items=
"${subject}"
var=
"g"
varStatus=
"s"
>
<c:if
test=
"${s.index>0 && s.index%3==0}"
>
</tr><tr
valign=
"top"
></c:if>
<td
width=
"33%"
><input
<
c:if
test=
"${s.index==0}"
>
checked="checked"
</c:if>
id="disid" name="subject" disid="23242AA2BE0E1782E050A8C0480173A9" rowindex="0" type="radio" value="${g.dataNameId}">${g.dataName}
</td>
</c:forEach>
</tr>
</tbody></table></td>
</tr>
</tbody></table>
</td>
</td>
</tr>
</tbody></table>
<tr>
<td><hr></td>
</tr>
<table
id=
"subject_table"
>
<tr>
<td
class=
"body"
>
<tr>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_customitem6"
english=
"Custom Item6:"
isnotnull=
"0"
>
增值税发票:
</yh:yh></td>
<td><select
class=
"required"
id=
"appreciationTaxTypeId"
name=
"appreciationTaxType"
style=
"width:220px"
>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
增值税普通发票
</option>
<option
value=
"2"
>
增值税专用发票
</option>
</select></td>
<td><span
class=
"reg_body"
></span></td>
</tr>
<tr
name=
"trCompanyName"
id=
"companyNameId"
style=
"display :none"
>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
发票抬头:
</td>
<td><input
id=
"companyNameId01"
class=
"required"
name=
"invoiceTitle"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
请填写您的单位全称
</span></td>
</tr>
<tr
id=
"subjectNameId"
name=
"trSubjectName"
style=
"display :none"
>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
发票类型:
</td>
<!-- <td><input id="subjectNameId01" class="required" name="subjectName" style="width:220px" type="text"></td> -->
<td>
<select
id=
"subjectNameId01"
class=
"required"
name=
"invoiceType"
style=
"width:220px"
>
<option
value=
""
>
请选择
</option>
<c:forEach
items=
"${invoiceType}"
var=
"g"
>
<option
value=
"${g.dataNameId}"
>
${g.dataName}
</option>
</c:forEach>
</select>
</td>
<td><span
class=
"reg_body"
>
请选择您的发票类型
</span></td></div>
</tr>
<tr
id=
"taxpayerNumId"
name=
"trTaxpayerNum"
style=
"display :none"
>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
纳税人识别号:
</td>
<td><input
id=
"taxpayerNumId01"
class=
"required"
name=
"taxpayerNum"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
请填写您的纳税人识别号
</span></td></div>
</tr>
<tr
id=
"addressNameId"
name=
"trAddressName"
style=
"display :none"
>
<div><td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
公司地址:
</td>
<td><input
id=
"addressNameId01"
class=
"required"
name=
"addressName"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
请填写您的公司地址
</span></td></div>
</tr>
<tr
id=
"telephoneId"
name=
"trTelephone"
style=
"display :none"
>
<div><td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
公司电话:
</td>
<td><input
id=
"telephoneId01"
class=
"required"
name=
"telephone"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
请填写您的公司电话
</span></td></div>
</tr>
<tr
id=
"bankAddressId"
name=
"trBankAddress"
style=
"display :none"
>
<div><td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
开户行:
</td>
<td><input
id=
"bankAddressId01"
class=
"required"
name=
"bankAddress"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
请填写您的开户行
</span></td></div>
</tr>
<tr
id=
"bankAccountId"
name=
"trBankAccount"
style=
"display :none"
>
<div><td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
银行账号:
</td>
<td><input
id=
"bankAccountId01"
class=
"required"
name=
"bankAccount"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
请填写您的开户行账号
</span></td></div>
</tr>
<tr>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_customitem6"
english=
"Custom Item6:"
isnotnull=
"0"
>
发票开具时间:
</yh:yh></td>
<td><select
class=
"required"
id=
"taxIssueId"
name=
"taxIssue"
style=
"width:220px"
>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
款项到账当年开具
</option>
<option
value=
"2"
>
款项到账次年开具
</option>
</select></td>
<td><span
class=
"reg_body"
></span></td>
</tr>
<tr
>
<td
align=
"center"
>
<div
class=
"message"
></div>
</td>
</tr>
</td>
</tr>
</table>
</form>
</td>
<div
id=
"dengf"
>
<td
align=
"center"
>
<input
id=
"submit"
name=
"BtnSubmit"
class=
"buttonstyle1"
value=
"提交"
onclick=
"javascript:;"
type=
"button"
>
<input
id=
"login"
name=
"BtnReset"
class=
"buttonstyle1"
value=
"登录"
onclick=
"javascript:;"
type=
"button"
>
</td>
</div>
</table>
</table>
</table>
</table>
...
@@ -374,5 +457,8 @@
...
@@ -374,5 +457,8 @@
邮箱:training@ccpit.org
技术支持:中贸促信息技术有限责任公司
</p>
邮箱:training@ccpit.org
技术支持:中贸促信息技术有限责任公司
</p>
</div>
</div>
</div>
</div>
<script
src=
"/resource/front/js/jquery.min.js"
type=
"text/javascript"
></script>
<script
src=
"/resource/front/js/jquery.form.min.js"
type=
"text/javascript"
></script>
<script
src=
"/resource/front/js/jquery-ui-datepicker.js"
type=
"text/javascript"
></script>
</body>
</body>
</html>
</html>
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/jsp/front/reg.jsp
View file @
140dad81
...
@@ -34,29 +34,7 @@
...
@@ -34,29 +34,7 @@
</tr>
</tr>
</table>
</table>
<form
id=
"form"
>
<form
id=
"form"
>
<table
id=
"tabThesis"
name=
"tabThesis"
align=
"center"
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%"
>
<tbody><tr>
<td
class=
"title"
background=
"/resource/front/img/dh.gif"
height=
"24"
>
参加考试科目
</td>
</tr>
<tr>
<td
class=
"body"
>
<table
border=
"0"
cellpadding=
"3"
cellspacing=
"3"
width=
"100%"
>
<tbody><tr>
<td
width=
"3%"
>
</td>
<td
id=
"tdBase"
name=
"tdBase"
width=
"97%"
><table
class=
"body"
width=
"100%"
><tbody>
<tr
valign=
"top"
>
<c:forEach
items=
"${subject}"
var=
"g"
varStatus=
"s"
>
<c:if
test=
"${s.index>0 && s.index%3==0}"
>
</tr><tr
valign=
"top"
></c:if>
<td
width=
"33%"
><input
<
c:if
test=
"${s.index==0}"
>
checked="checked"
</c:if>
id="disid" name="subject" disid="23242AA2BE0E1782E050A8C0480173A9" rowindex="0" type="radio" value="${g.dataNameId}">${g.dataName}
</td>
</c:forEach>
</tr>
</tbody></table></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<table
width=
"100%"
border=
"0"
cellspacing=
"2"
cellpadding=
"0"
align=
"center"
>
<table
width=
"100%"
border=
"0"
cellspacing=
"2"
cellpadding=
"0"
align=
"center"
>
<td
height=
"25"
colspan=
"2"
>
<td
height=
"25"
colspan=
"2"
>
...
@@ -103,16 +81,16 @@
...
@@ -103,16 +81,16 @@
<td><input
name=
"birthday"
class=
"required"
style=
"width:220px"
type=
"text"
></td>
<td><input
name=
"birthday"
class=
"required"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
年-月-日 如:1988-01-01
</span></td>
<td><span
class=
"reg_body"
>
年-月-日 如:1988-01-01
</span></td>
</tr>
</tr>
<tr
>
<
%
--
<
tr
>
--%
>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_customitem7"
english=
"Custom Item7:"
isnotnull=
"0"
>
选择城市:
</yh:yh></td
>
<
%
--
<
td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_customitem7"
english=
"Custom Item7:"
isnotnull=
"0"
>
选择城市:
</yh:yh></td>
--%
>
<td><select
name=
"city"
class=
"required"
style=
"width:220px"
>
<
%
--
<
td
><select
name=
"city"
class=
"required"
style=
"width:220px"
>
--%
>
<option
value=
""
>
请选择
</option
>
<
%
--
<
option
value=
""
>
请选择
</option>
--%
>
<c:forEach
items=
"${cityType}"
var=
"g"
>
<
%
--
<
c:forEach
items=
"${cityType}"
var=
"g"
>
--%
>
<option
value=
"${g.dataNameId}"
>
${g.dataName}
</option
>
<
%
--
<
option
value=
"${g.dataNameId}"
>
${g.dataName}
</option>
--%
>
</c:forEach
>
<
%
--
</
c:forEach
>
--%
>
</select></td
>
<
%
--
</
select
></td>
--%
>
<td><span
class=
"reg_body"
></span></td
>
<
%
--
<
td
><span
class=
"reg_body"
></span></td>
--%
>
</tr
>
<
%
--
</
tr
>
--%
>
<tr
id=
"trFixedTel"
name=
"trFixedTel"
>
<tr
id=
"trFixedTel"
name=
"trFixedTel"
>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
固定电话:
</td>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
固定电话:
</td>
<td><input
class=
"required"
name=
"telphone"
style=
"width:220px"
type=
"text"
></td>
<td><input
class=
"required"
name=
"telphone"
style=
"width:220px"
type=
"text"
></td>
...
@@ -133,6 +111,7 @@
...
@@ -133,6 +111,7 @@
<td><textarea
class=
"required"
name=
"address"
style=
"width:220px;height:45px;resize: none;"
type=
"text"
></textarea></td>
<td><textarea
class=
"required"
name=
"address"
style=
"width:220px;height:45px;resize: none;"
type=
"text"
></textarea></td>
<td><span
class=
"reg_body"
>
可以安全收到邮寄材料的地址
</span></td>
<td><span
class=
"reg_body"
>
可以安全收到邮寄材料的地址
</span></td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_customitem6"
english=
"Custom Item6:"
isnotnull=
"0"
>
增值税发票:
</yh:yh></td>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_customitem6"
english=
"Custom Item6:"
isnotnull=
"0"
>
增值税发票:
</yh:yh></td>
<td><select
class=
"required"
id=
"appreciationTaxTypeId"
name=
"appreciationTaxType"
style=
"width:220px"
>
<td><select
class=
"required"
id=
"appreciationTaxTypeId"
name=
"appreciationTaxType"
style=
"width:220px"
>
...
@@ -186,6 +165,15 @@
...
@@ -186,6 +165,15 @@
<td><span
class=
"reg_body"
>
请填写您的开户行账号
</span></td></div>
<td><span
class=
"reg_body"
>
请填写您的开户行账号
</span></td></div>
</tr>
</tr>
<tr>
<tr>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_customitem6"
english=
"Custom Item6:"
isnotnull=
"0"
>
发票开具时间:
</yh:yh></td>
<td><select
class=
"required"
id=
"taxIssueId"
name=
"taxIssue"
style=
"width:220px"
>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
款项到账当年开具
</option>
<option
value=
"2"
>
款项到账次年开具
</option>
</select></td>
<td><span
class=
"reg_body"
></span></td>
</tr>
<tr>
<td
class=
"name"
><yh:yh
id=
"1_A_LINK_LIKE"
english=
"Hobby:"
isnotnull=
"0"
>
DC/LIBF NUMBER:
</yh:yh></td>
<td
class=
"name"
><yh:yh
id=
"1_A_LINK_LIKE"
english=
"Hobby:"
isnotnull=
"0"
>
DC/LIBF NUMBER:
</yh:yh></td>
<td><input
name=
"dcNumber"
style=
"width:220px"
type=
"text"
></td>
<td><input
name=
"dcNumber"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
原IFS号码,仅限补考考生填写,该框填写字母与数字
</span></td>
<td><span
class=
"reg_body"
>
原IFS号码,仅限补考考生填写,该框填写字母与数字
</span></td>
...
@@ -242,25 +230,49 @@
...
@@ -242,25 +230,49 @@
<td><input
class=
"required"
name=
"phone"
style=
"width:220px"
type=
"text"
></td>
<td><input
class=
"required"
name=
"phone"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
请填写手机号,标准国际电话格式,地区码空格手机号,如:86 13810001234
</span></td>
<td><span
class=
"reg_body"
>
请填写手机号,标准国际电话格式,地区码空格手机号,如:86 13810001234
</span></td>
</tr>
</tr>
<
%
--
<
tr
>
--%>
<
%
--
<
td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
CITY SELECT:
</td>
--%>
<
%
--
<
td
><select
class=
"required"
name=
"city_en"
style=
"width:220px"
>
--%>
<
%
--
<
option
value=
""
>
请选择
</option>
--%>
<
%
--
<
c:forEach
items=
"${encityType}"
var=
"g"
>
--%>
<
%
--
<
option
value=
"${g.dataNameId}"
>
${g.dataName}
</option>
--%>
<
%
--
</
c:forEach
>
--%>
<
%
--
</
select
></td>
--%>
<
%
--
<
td
><span
class=
"reg_body"
></span></td>
--%>
<
%
--
</
tr
>
--%>
</tbody></table>
</td>
</tr>
<tr>
<tr>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
CITY SELECT:
</td>
<td><hr></td>
<td><select
class=
"required"
name=
"city_en"
style=
"width:220px"
>
</tr>
<option
value=
""
>
请选择
</option>
<table
id=
"tabThesis"
name=
"tabThesis"
align=
"center"
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%"
>
<c:forEach
items=
"${encityType}"
var=
"g"
>
<tbody><tr>
<option
value=
"${g.dataNameId}"
>
${g.dataName}
</option>
<td
class=
"title"
background=
"/resource/front/img/dh.gif"
height=
"24"
>
参加考试科目
</td>
</tr>
<tr>
<td
class=
"body"
>
<table
border=
"0"
cellpadding=
"3"
cellspacing=
"3"
width=
"100%"
>
<tbody><tr>
<td
width=
"3%"
>
</td>
<td
id=
"tdBase"
name=
"tdBase"
width=
"97%"
><table
class=
"body"
width=
"100%"
><tbody>
<tr
valign=
"top"
>
<c:forEach
items=
"${subject}"
var=
"g"
varStatus=
"s"
>
<c:if
test=
"${s.index>0 && s.index%3==0}"
>
</tr><tr
valign=
"top"
></c:if>
<td
width=
"33%"
><input
<
c:if
test=
"${s.index==0}"
>
checked="checked"
</c:if>
id="disid" name="subject" disid="23242AA2BE0E1782E050A8C0480173A9" rowindex="0" type="radio" value="${g.dataNameId}">${g.dataName}
</td>
</c:forEach>
</c:forEach>
</select></td>
<td><span
class=
"reg_body"
></span></td>
</tr>
</tr>
</tbody></table></td>
</tr>
</tbody></table>
</tbody></table>
</td>
</td>
</tr>
</tr>
</tbody></table>
<tr>
<tr>
<td><hr></td>
<td><hr></td>
</tr>
</tr>
<tr
id=
""
>
<tr
>
<td
align=
"center"
>
<td
align=
"center"
>
<div
class=
"message"
></div>
<div
class=
"message"
></div>
</td>
</td>
...
@@ -278,10 +290,7 @@
...
@@ -278,10 +290,7 @@
</td>
</td>
<td
background=
"/resource/front/img/borderc_06.gif"
></td>
<td
background=
"/resource/front/img/borderc_06.gif"
></td>
</tr>
</tr>
</table>
</table>
<div
class=
"pp"
>
<div
class=
"pp"
>
</div>
</div>
<div
id=
"foot"
>
<div
id=
"foot"
>
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/jsp/home.jsp
View file @
140dad81
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<span
style=
"float: right; padding-right: 20px;"
class=
"head"
>
欢迎您:
<span
style=
"float: right; padding-right: 20px;"
class=
"head"
>
欢迎您:
<font
style=
"font-weight:bold"
>
${user_in_session.username}
</font><a
style=
"text-decoration:none;color:#000000;font-weight:bold"
href=
"#"
id=
"editpass"
>
修改密码
</a>
<a
style=
"font-weight:bold;text-decoration:none;color:red"
href=
"#"
id=
"loginOut"
>
安全退出
</a>
<font
style=
"font-weight:bold"
>
${user_in_session.username}
</font><a
style=
"text-decoration:none;color:#000000;font-weight:bold"
href=
"#"
id=
"editpass"
>
修改密码
</a>
<a
style=
"font-weight:bold;text-decoration:none;color:red"
href=
"#"
id=
"loginOut"
>
安全退出
</a>
</span>
</span>
<div
align=
"center"
><span
style=
"font-size: 16px;"
><img
src=
"<c:url value='/resource/home/images/
homeTop_b20
.png'/>"
width=
"20"
height=
"20"
align=
"absmiddle"
/>
 
培训中心报名管理平台
</span></div>
<div
align=
"center"
><span
style=
"font-size: 16px;"
><img
src=
"<c:url value='/resource/home/images/
ccpit-logo
.png'/>"
width=
"20"
height=
"20"
align=
"absmiddle"
/>
 
培训中心报名管理平台
</span></div>
</div>
</div>
<div
region=
"south"
split=
"true"
style=
"height: 30px; background: #D2E0F2;"
>
<div
region=
"south"
split=
"true"
style=
"height: 30px; background: #D2E0F2;"
>
<div
class=
"footer"
>
技术支持:
<a
href=
"#"
>
中贸促信息技术有限责任公司
</a></div>
<div
class=
"footer"
>
技术支持:
<a
href=
"#"
>
中贸促信息技术有限责任公司
</a></div>
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/resource/business/registration.js
View file @
140dad81
...
@@ -138,18 +138,19 @@ function initExportWindow(){
...
@@ -138,18 +138,19 @@ function initExportWindow(){
function
initDataTable
(){
function
initDataTable
(){
var
h
=
document
.
documentElement
.
clientHeight
;
var
h
=
document
.
documentElement
.
clientHeight
;
$
(
"#registersTable"
).
datagrid
({
$
(
"#registersTable"
).
datagrid
({
height
:
h
-
dataGridHeight
,
height
:
(
h
-
dataGridHeight
)
/
3
*
2
,
nowrap
:
true
,
nowrap
:
true
,
striped
:
true
,
striped
:
true
,
pagination
:
true
,
pagination
:
true
,
rownumbers
:
true
,
rownumbers
:
true
,
pageList
:
[
15
,
20
,
30
,
40
,
50
],
singleSelect
:
true
,
pageList
:
[
10
,
20
,
30
,
40
,
50
],
autoRowHeight
:
false
,
autoRowHeight
:
false
,
fitColumns
:
true
,
fitColumns
:
true
,
queryParams
:
{
queryParams
:
{
phase
:
activePhase
phase
:
activePhase
},
},
title
:
"
新闻
列表"
,
title
:
"
报名用户
列表"
,
url
:
'/admin/business/registerManage/queryAllRegisterInfo'
,
url
:
'/admin/business/registerManage/queryAllRegisterInfo'
,
columns
:
[
[
{
columns
:
[
[
{
field
:
'ck'
,
field
:
'ck'
,
...
@@ -203,6 +204,86 @@ function initDataTable(){
...
@@ -203,6 +204,86 @@ function initDataTable(){
},
},
width
:
20
width
:
20
}]
],
}]
],
onCheck
:
function
(
index
,
row
)
{
// 双击"任一行"执行
subjectTableById
(
row
.
id
)
},
onLoadSuccess
:
function
(
data
)
{
// 加载成功之后执行
}
});
}
function
subjectTableById
(
id
){
var
h
=
document
.
documentElement
.
clientHeight
;
$
(
"#subjectTable"
).
datagrid
({
height
:
(
h
-
dataGridHeight
)
/
3
,
nowrap
:
true
,
striped
:
true
,
pagination
:
true
,
rownumbers
:
true
,
pageList
:
[
5
,
10
,
15
],
autoRowHeight
:
false
,
fitColumns
:
true
,
title
:
"用户报名科目列表"
,
url
:
'/admin/business/registerManage/queryAllSubject?id='
+
id
,
columns
:
[
[
{
field
:
'ck'
,
title
:
'id'
,
width
:
15
,
checkbox
:
true
},
{
field
:
'subject'
,
title
:
'报名科目'
,
align
:
'center'
,
formatter
:
function
(
val
,
row
){
return
subjectArray
[
val
];
},
width
:
30
},
{
field
:
'registerStatus'
,
title
:
'报名状态'
,
align
:
'center'
,
formatter
:
function
(
val
,
row
){
return
statusArray
[
val
];
},
width
:
30
},{
field
:
'appreciationTaxType'
,
title
:
'发票类型'
,
align
:
'center'
,
width
:
30
,
formatter
:
function
(
val
,
row
)
{
if
(
1
==
val
){
return
"增值税普通发票"
;
}
if
(
2
==
val
){
return
"表示增值税专用发票"
;
}
}
},
{
field
:
'taxIssue'
,
title
:
'发票开具时间'
,
align
:
'center'
,
width
:
30
,
formatter
:
function
(
val
,
row
)
{
if
(
1
==
val
){
return
"款项到账当年开具"
;
}
if
(
2
==
val
){
return
"款项到账次年开具"
;
}
}
},
{
field
:
'submitTime'
,
title
:
'提交时间'
,
align
:
'center'
,
formatter
:
function
(
val
,
row
){
if
(
val
==
''
||
val
==
null
){
return
""
;
}
return
new
Date
(
parseInt
(
val
)).
format
(
"yyyy-MM-dd hh:mm:ss"
);
},
width
:
20
}]
],
onDblClickRow
:
function
(
index
,
row
)
{
// 双击"任一行"执行
onDblClickRow
:
function
(
index
,
row
)
{
// 双击"任一行"执行
},
},
onLoadSuccess
:
function
(
data
)
{
// 加载成功之后执行
onLoadSuccess
:
function
(
data
)
{
// 加载成功之后执行
...
@@ -210,6 +291,7 @@ function initDataTable(){
...
@@ -210,6 +291,7 @@ function initDataTable(){
});
});
}
}
function
view
(
val
,
row
){
function
view
(
val
,
row
){
return
"<a href=
\"
javascript:viewData("
+
row
.
id
+
")
\"
>"
+
row
.
name
+
"</button>"
;
return
"<a href=
\"
javascript:viewData("
+
row
.
id
+
")
\"
>"
+
row
.
name
+
"</button>"
;
}
}
...
@@ -588,7 +670,6 @@ function saveData(){
...
@@ -588,7 +670,6 @@ function saveData(){
});
});
}
}
if
(
'edit'
==
operation
){
if
(
'edit'
==
operation
){
console
.
log
(
"dddd"
);
var
row
=
$
(
'#registersTable'
).
datagrid
(
'getSelected'
);
var
row
=
$
(
'#registersTable'
).
datagrid
(
'getSelected'
);
url
=
"/admin/business/registerManage/addOrUpdateRegisterInfo?operate="
+
operation
+
"&id="
+
row
.
id
;
url
=
"/admin/business/registerManage/addOrUpdateRegisterInfo?operate="
+
operation
+
"&id="
+
row
.
id
;
$
(
'#newsForm'
).
form
(
'submit'
,{
$
(
'#newsForm'
).
form
(
'submit'
,{
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/resource/business/registrationExt.js
View file @
140dad81
...
@@ -141,7 +141,7 @@ function initDataTable(){
...
@@ -141,7 +141,7 @@ function initDataTable(){
pageList
:
[
15
,
20
,
30
,
40
,
50
],
pageList
:
[
15
,
20
,
30
,
40
,
50
],
autoRowHeight
:
false
,
autoRowHeight
:
false
,
fitColumns
:
true
,
fitColumns
:
true
,
title
:
"
新闻
列表"
,
title
:
"
延考恢复报名用户
列表"
,
queryParams
:
{
queryParams
:
{
phase
:
activePhase
phase
:
activePhase
},
},
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/resource/front/css/style.css
View file @
140dad81
html
{
color
:
#000
;
background
:
#fff
;}
html
{
body
,
div
,
dl
,
dt
,
dd
,
ul
,
ol
,
li
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
pre
,
code
,
form
,
fieldset
,
legend
,
input
,
textarea
,
p
,
blockquote
,
th
,
td
{
margin
:
0
;
padding
:
0
;}
color
:
#000
;
table
{
border-collapse
:
collapse
;
border-spacing
:
0
;}
background
:
#fff
;
fieldset
,
img
{
border
:
0
;}
}
address
,
caption
,
cite
,
code
,
dfn
,
em
,
strong
,
th
,
var
{
font-style
:
normal
;
font-weight
:
normal
;}
li
{
list-style
:
none
;}
body
,
div
,
dl
,
dt
,
dd
,
ul
,
ol
,
li
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
pre
,
code
,
form
,
fieldset
,
legend
,
input
,
textarea
,
p
,
blockquote
,
th
,
td
{
caption
,
th
{
text-align
:
left
;}
margin
:
0
;
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
font-size
:
100%
;
font-weight
:
normal
;}
padding
:
0
;
q
:before
,
q
:after
{
content
:
''
;}
}
abbr
,
acronym
{
border
:
0
;
font-variant
:
normal
;}
sup
{
vertical-align
:
text-top
;}
table
{
sub
{
vertical-align
:
text-bottom
;}
border-collapse
:
collapse
;
input
,
textarea
,
select
{
font-family
:
inherit
;
font-size
:
inherit
;
font-weight
:
inherit
;}
border-spacing
:
0
;
input
,
textarea
,
select
{
*
font-size
:
100%
;}
}
legend
{
color
:
#000
;}
fieldset
,
img
{
border
:
0
;
}
address
,
caption
,
cite
,
code
,
dfn
,
em
,
strong
,
th
,
var
{
font-style
:
normal
;
font-weight
:
normal
;
}
li
{
list-style
:
none
;
}
caption
,
th
{
text-align
:
left
;
}
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
font-size
:
100%
;
font-weight
:
normal
;
}
q
:before
,
q
:after
{
content
:
''
;
}
abbr
,
acronym
{
border
:
0
;
font-variant
:
normal
;
}
sup
{
vertical-align
:
text-top
;
}
sub
{
vertical-align
:
text-bottom
;
}
input
,
textarea
,
select
{
font-family
:
inherit
;
font-size
:
inherit
;
font-weight
:
inherit
;
}
input
,
textarea
,
select
{
*
font-size
:
100%
;
}
legend
{
color
:
#000
;
}
/*reset over*/
/*reset over*/
.clean
{
clear
:
both
}
.clean
{
clear
:
both
}
body
{
margin
:
0
;
padding
:
0
;
font-family
:
Arial
,
"微软雅黑"
;
font-size
:
15px
;
background-color
:
#2b85c1
;
color
:
#555
;
}
body
{
margin
:
0
;
padding
:
0
;
font-family
:
Arial
,
"微软雅黑"
;
font-size
:
15px
;
background-color
:
#2b85c1
;
color
:
#555
;}
.wrapper
{
.wrapper
{
width
:
1024px
;
height
:
100%
;
background-color
:
#fff
;
margin
:
0
auto
;
padding
:
0
;
width
:
1024px
;
height
:
100%
;
background-color
:
#fff
;
margin
:
0
auto
;
padding
:
0
;
}
}
#top
{
margin
:
0
0
;
width
:
auto
;
height
:
160px
;
padding
:
0
;
background-image
:
url(/resource/front/img/imageslog/topbg_01.gif)
;}
#top
{
#top
img
{
margin
:
0
auto
;
padding
:
0
;
border
:
0
;}
margin
:
0
0
;
width
:
auto
;
height
:
160px
;
padding
:
0
;
background-image
:
url(/resource/front/img/imageslog/topbg_01.gif)
;
}
.pp
{
margin
:
0
0
;
padding
:
30px
40px
;
color
:
#5e829f
;
line-height
:
20px
;
text-align
:
left
;}
#top
img
{
.pp1
{
margin
:
0
0
;
padding
:
20px
20px
;
color
:
#5e829f
;
line-height
:
20px
;
text-align
:
left
;}
margin
:
0
auto
;
.twar
{
margin
:
0
;
padding
:
0
;}
padding
:
0
;
#table
{
width
:
500px
;
padding
:
0
;
text-align
:
left
;}
border
:
0
;
#foot
{
margin
:
0
auto
;
width
:
auto
;
padding
:
0
20px
;
background-color
:
#d5dfe7
;
}
}
#foot
p
{
margin
:
0
auto
;
padding
:
20px
0
20px
0
;
text-align
:
center
;
color
:
#5e829f
;}
#tadeng
{
height
:
100%
;
min-height
:
630px
;}
#tadeng
table
td
{
padding
:
5px
10px
}
.t_right
{
text-align
:
right
;}
.button
{
float
:
left
;
width
:
143px
;
height
:
52px
;
background-image
:
url(/resource/front/img/buttonbg.gif)
;
margin
:
5px
10px
0
0
;
color
:
#FFF
;
font-size
:
24px
;
text-align
:
center
;
border
:
0
;
cursor
:
hand
;
overflow
:
hidden
;}
.input
{
width
:
300px
;
height
:
28px
;
padding
:
5px
10px
;
border
:
0
;
color
:
#222
;
font-size
:
18px
;
border
:
1px
solid
#CCC
;
overflow
:
hidden
;}
.pp
{
.input
:hover
{
background-color
:
#eee
;}
margin
:
0
0
;
padding
:
30px
40px
;
color
:
#5e829f
;
line-height
:
20px
;
text-align
:
left
;
}
.input_02
{
width
:
160px
;
height
:
28px
;
padding
:
5px
10px
;
border
:
0
;
color
:
#222
;
font-size
:
18px
;
border
:
1px
solid
#CCC
;
overflow
:
hidden
;}
.pp1
{
.input_02
:hover
{
background-color
:
#eee
;}
margin
:
0
0
;
padding
:
20px
20px
;
color
:
#5e829f
;
line-height
:
20px
;
text-align
:
left
;
}
.twar
{
margin
:
0
;
padding
:
0
;
}
#table
{
width
:
500px
;
padding
:
0
;
text-align
:
left
;
}
#subject_table
{
width
:
50%
;
text-align
:
left
;
border-collapse
:
separate
;
border-spacing
:
10px
;
}
#dengf
{
text-align
:
center
;
}
#foot
{
margin
:
0
auto
;
width
:
auto
;
padding
:
0
20px
;
background-color
:
#d5dfe7
;
}
#foot
p
{
margin
:
0
auto
;
padding
:
20px
0
20px
0
;
text-align
:
center
;
color
:
#5e829f
;
}
#tadeng
{
height
:
100%
;
min-height
:
630px
;
}
#tadeng
table
td
{
padding
:
5px
10px
}
.t_right
{
text-align
:
right
;
}
.button
{
float
:
left
;
width
:
143px
;
height
:
52px
;
background-image
:
url(/resource/front/img/buttonbg.gif)
;
margin
:
5px
10px
0
0
;
color
:
#FFF
;
font-size
:
24px
;
text-align
:
center
;
border
:
0
;
cursor
:
hand
;
overflow
:
hidden
;
}
.input
{
width
:
300px
;
height
:
28px
;
padding
:
5px
10px
;
border
:
0
;
color
:
#222
;
font-size
:
18px
;
border
:
1px
solid
#CCC
;
overflow
:
hidden
;
}
.input
:hover
{
background-color
:
#eee
;
}
.input_02
{
width
:
160px
;
height
:
28px
;
padding
:
5px
10px
;
border
:
0
;
color
:
#222
;
font-size
:
18px
;
border
:
1px
solid
#CCC
;
overflow
:
hidden
;
}
.input_02
:hover
{
background-color
:
#eee
;
}
a
:link
{
a
:link
{
...
@@ -66,6 +227,7 @@ a:visited {
...
@@ -66,6 +227,7 @@ a:visited {
color
:
#039
;
color
:
#039
;
text-decoration
:
none
;
text-decoration
:
none
;
}
}
a
:hover
{
a
:hover
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -79,6 +241,7 @@ a:active {
...
@@ -79,6 +241,7 @@ a:active {
color
:
#039
;
color
:
#039
;
text-decoration
:
none
;
text-decoration
:
none
;
}
}
a
.b
:link
{
a
.b
:link
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -93,6 +256,7 @@ a.b:visited {
...
@@ -93,6 +256,7 @@ a.b:visited {
color
:
#fff
;
color
:
#fff
;
text-decoration
:
none
;
text-decoration
:
none
;
}
}
a
.b
:hover
{
a
.b
:hover
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -106,14 +270,16 @@ a.b:active {
...
@@ -106,14 +270,16 @@ a.b:active {
color
:
#fff
;
color
:
#fff
;
text-decoration
:
none
;
text-decoration
:
none
;
}
}
.name
{
.name
{
font-size
:
12px
;
font-size
:
12px
;
line-height
:
22px
;
line-height
:
22px
;
color
:
#000
;
color
:
#000
;
text-align
:
right
;
text-align
:
right
;
vertical-align
:
top
;
vertical-align
:
top
;
}
}
.P_title
{
.P_title
{
font-size
:
16px
;
font-size
:
16px
;
...
@@ -123,25 +289,27 @@ a.b:active {
...
@@ -123,25 +289,27 @@ a.b:active {
}
}
.title
{
.title
{
FONT-WEIGHT
:
bold
;
FONT-WEIGHT
:
bold
;
FONT-SIZE
:
13px
;
FONT-SIZE
:
13px
;
COLOR
:
#004aaf
;
COLOR
:
#004aaf
;
}
}
.title_name
{
.title_name
{
font-family
:
"黑体"
;
font-family
:
"黑体"
;
font-size
:
20px
;
font-size
:
20px
;
font-weight
:
normal
;
font-weight
:
normal
;
color
:
#222
;
color
:
#222
;
}
}
.title_date
{
.title_date
{
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#222
;
color
:
#222
;
}
}
.title_black
{
.title_black
{
font-size
:
13px
;
font-size
:
13px
;
...
@@ -159,8 +327,6 @@ a.b:active {
...
@@ -159,8 +327,6 @@ a.b:active {
}
}
.body
{
.body
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -188,18 +354,21 @@ a.b:active {
...
@@ -188,18 +354,21 @@ a.b:active {
font-size
:
12px
;
font-size
:
12px
;
color
:
#f00
;
color
:
#f00
;
}
}
.red
{
.red
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#f00
;
color
:
#f00
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.hyjj
{
.hyjj
{
font-size
:
12px
;
font-size
:
12px
;
line-height
:
22px
;
line-height
:
22px
;
color
:
#be292d
;
color
:
#be292d
;
}
}
.title_red
{
.title_red
{
font-size
:
13px
;
font-size
:
13px
;
...
@@ -207,6 +376,7 @@ a.b:active {
...
@@ -207,6 +376,7 @@ a.b:active {
color
:
#be292d
;
color
:
#be292d
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.border
{
.border
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -226,13 +396,13 @@ a.b:active {
...
@@ -226,13 +396,13 @@ a.b:active {
border-bottom-style
:
dashed
;
border-bottom-style
:
dashed
;
border-bottom-color
:
#b8b8b8
;
border-bottom-color
:
#b8b8b8
;
}
}
.white
{
.white
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
.namecenter
{
.namecenter
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -240,6 +410,7 @@ a.b:active {
...
@@ -240,6 +410,7 @@ a.b:active {
color
:
#000
;
color
:
#000
;
text-align
:
center
;
text-align
:
center
;
}
}
.textcss
{
.textcss
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -272,6 +443,7 @@ a.b:active {
...
@@ -272,6 +443,7 @@ a.b:active {
background-position
:
center
;
background-position
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.buttonstyle3
{
.buttonstyle3
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -304,30 +476,34 @@ a.b:active {
...
@@ -304,30 +476,34 @@ a.b:active {
color
:
#fff
;
color
:
#fff
;
background-image
:
url(/resource/front/img/menu_title.gif)
;
background-image
:
url(/resource/front/img/menu_title.gif)
;
background-repeat
:
repeat-x
;
background-repeat
:
repeat-x
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.menu_body
{
.menu_body
{
font-size
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
line-height
:
18px
;
color
:
#000
;
color
:
#000
;
}
}
.menu_on
{
.menu_on
{
background-color
:
#7be
;
background-color
:
#7be
;
font-size
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
line-height
:
18px
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.menu_click
{
.menu_click
{
background-color
:
#Abe
;
background-color
:
#Abe
;
font-size
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
line-height
:
18px
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.table
{
.table
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -335,6 +511,7 @@ a.b:active {
...
@@ -335,6 +511,7 @@ a.b:active {
line-height
:
20px
;
line-height
:
20px
;
text-align
:
center
;
text-align
:
center
;
}
}
.table_title
{
.table_title
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -343,6 +520,7 @@ a.b:active {
...
@@ -343,6 +520,7 @@ a.b:active {
background-color
:
#E0E0E0
;
background-color
:
#E0E0E0
;
text-indent
:
4px
;
text-indent
:
4px
;
}
}
.table_body
{
.table_body
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -351,6 +529,7 @@ a.b:active {
...
@@ -351,6 +529,7 @@ a.b:active {
background-color
:
#F4F4F4
;
background-color
:
#F4F4F4
;
text-indent
:
4px
;
text-indent
:
4px
;
}
}
.view
{
.view
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -364,18 +543,20 @@ a.b:active {
...
@@ -364,18 +543,20 @@ a.b:active {
background-position
:
center
;
background-position
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.linkbutton
{
.linkbutton
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#047
;
color
:
#047
;
text-decoration
:
none
;
text-decoration
:
none
;
font-weight
:
bold
;
font-weight
:
bold
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.tr
{
.tr
{
background-color
:
#e7ebfe
;
background-color
:
#e7ebfe
;
}
}
.line22
{
.line22
{
border-top-width
:
0px
;
border-top-width
:
0px
;
border-bottom-width
:
1px
;
border-bottom-width
:
1px
;
...
@@ -389,6 +570,7 @@ a.b:active {
...
@@ -389,6 +570,7 @@ a.b:active {
font-size
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
line-height
:
18px
;
}
}
.table_left
{
.table_left
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -400,6 +582,7 @@ a.b:active {
...
@@ -400,6 +582,7 @@ a.b:active {
.tr1
{
.tr1
{
background-color
:
#f8eecf
;
background-color
:
#f8eecf
;
}
}
.reg_sm
{
.reg_sm
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -408,19 +591,20 @@ a.b:active {
...
@@ -408,19 +591,20 @@ a.b:active {
background-color
:
#ddf1fc
;
background-color
:
#ddf1fc
;
width
:
300px
;
width
:
300px
;
border
:
1px
solid
#5DAADB
;
border
:
1px
solid
#5DAADB
;
padding
:
3px
;
padding
:
3px
;
margin-left
:
10px
;
margin-left
:
10px
;
margin-right
:
50px
;
margin-right
:
50px
;
}
}
.reg_red
{
.reg_red
{
font-size
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
line-height
:
18px
;
color
:
#FF0000
;
color
:
#FF0000
;
width
:
300px
;
width
:
300px
;
margin-left
:
10px
;
margin-left
:
10px
;
margin-right
:
50px
;
margin-right
:
50px
;
}
}
.reg_body
{
.reg_body
{
...
@@ -428,7 +612,7 @@ a.b:active {
...
@@ -428,7 +612,7 @@ a.b:active {
font-size
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
line-height
:
18px
;
color
:
#555
;
color
:
#555
;
margin-left
:
10px
;
margin-left
:
10px
;
}
}
tables
{
tables
{
...
@@ -439,9 +623,12 @@ tables {
...
@@ -439,9 +623,12 @@ tables {
text-align
:
left
;
text-align
:
left
;
}
}
BODY
{
font-size
:
12px
;
display
:}
BODY
{
font-size
:
12px
;
display
:
}
.text1
{
.text1
{
border-top-width
:
1px
;
border-top-width
:
1px
;
border-right-width
:
1px
;
border-right-width
:
1px
;
border-bottom-width
:
1px
;
border-bottom-width
:
1px
;
...
@@ -455,93 +642,38 @@ BODY {font-size:12px; display:}
...
@@ -455,93 +642,38 @@ BODY {font-size:12px; display:}
border-bottom-color
:
#000000
;
border-bottom-color
:
#000000
;
border-left-color
:
#000000
;
border-left-color
:
#000000
;
}
}
.textteadonly
{
border
:
none
;
text-align
:
center
}
.textteadonlyleft
{
border
:
none
;
text-align
:
left
;
}
#feijrr
tr
td
{
padding
:
5px
}
#tabThesis
tr
td
{
padding
:
5px
}
#tabThesis
tr
td
input
{
margin-right
:
5px
}
#dengf
td
{
padding
:
30px
0
10px
0
}
#dengf
td
input
{
margin
:
0
10px
}
.textteadonly
{
border
:
none
;
text-align
:
center
}
.textteadonlyleft
{
border
:
none
;
text-align
:
left
;
}
#feijrr
tr
td
{
padding
:
5px
}
#tabThesis
tr
td
{
padding
:
5px
}
#tabThesis
tr
td
input
{
margin-right
:
5px
}
#dengf
td
{
padding
:
30px
0
10px
0
}
#dengf
td
input
{
margin
:
0
10px
}
.foot
{
height
:
1000px
}
.foot
{
\ No newline at end of file
height
:
1000px
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/webapp/resource/front/js/info.js
View file @
140dad81
$
(
function
(){
$
(
function
(){
$
(
"#appreciationTaxTypeId"
).
change
(
function
(){
var
appreciationTaxType
=
$
(
"#appreciationTaxTypeId"
).
find
(
"option:selected"
).
val
();
if
(
"1"
==
appreciationTaxType
){
$
(
"#companyNameId"
).
css
(
"display"
,
""
);
$
(
"#subjectNameId"
).
css
(
"display"
,
""
);
$
(
"#taxpayerNumId"
).
css
(
"display"
,
""
);
$
(
"#addressNameId"
).
css
(
"display"
,
"none"
);
$
(
"#telephoneId"
).
css
(
"display"
,
"none"
);
$
(
"#bankAddressId"
).
css
(
"display"
,
"none"
);
$
(
"#bankAccountId"
).
css
(
"display"
,
"none"
);
$
(
"#taxpayerNumId01"
).
removeAttr
(
"class"
);
$
(
"#addressNameId01"
).
removeAttr
(
"class"
);
$
(
"#telephoneId01"
).
removeAttr
(
"class"
);
$
(
"#bankAddressId01"
).
removeAttr
(
"class"
);
$
(
"#bankAccountId01"
).
removeAttr
(
"class"
);
}
else
if
(
"2"
==
appreciationTaxType
){
$
(
"#companyNameId"
).
css
(
"display"
,
""
);
$
(
"#subjectNameId"
).
css
(
"display"
,
""
);
$
(
"#taxpayerNumId"
).
css
(
"display"
,
""
);
$
(
"#addressNameId"
).
css
(
"display"
,
""
);
$
(
"#telephoneId"
).
css
(
"display"
,
""
);
$
(
"#bankAddressId"
).
css
(
"display"
,
""
);
$
(
"#bankAccountId"
).
css
(
"display"
,
""
);
$
(
"#taxpayerNumId01"
).
attr
(
"class"
,
"required"
);
$
(
"#addressNameId01"
).
attr
(
"class"
,
"required"
);
$
(
"#telephoneId01"
).
attr
(
"class"
,
"required"
);
$
(
"#bankAddressId01"
).
attr
(
"class"
,
"required"
);
$
(
"#bankAccountId01"
).
attr
(
"class"
,
"required"
);
}
else
{
$
(
"#companyNameId"
).
css
(
"display"
,
"none"
);
$
(
"#subjectNameId"
).
css
(
"display"
,
"none"
);
$
(
"#taxpayerNumId"
).
css
(
"display"
,
"none"
);
$
(
"#addressNameId"
).
css
(
"display"
,
"none"
);
$
(
"#telephoneId"
).
css
(
"display"
,
"none"
);
$
(
"#bankAddressId"
).
css
(
"display"
,
"none"
);
$
(
"#bankAccountId"
).
css
(
"display"
,
"none"
);
$
(
"#taxpayerNumId01"
).
removeAttr
(
"class"
);
$
(
"#addressNameId01"
).
removeAttr
(
"class"
);
$
(
"#telephoneId01"
).
removeAttr
(
"class"
);
$
(
"#bankAddressId01"
).
removeAttr
(
"class"
);
$
(
"#companyNameId01"
).
removeAttr
(
"class"
);
$
(
"#subjectNameId01"
).
removeAttr
(
"class"
);
$
(
"#bankAccountId01"
).
removeAttr
(
"class"
);
}
})
$
(
"#saveCertificateId"
).
click
(
function
()
{
$
(
"#saveCertificateId"
).
click
(
function
()
{
$
.
post
(
'/training/saveCertificateId'
,
$
.
post
(
'/training/saveCertificateId'
,
{
{
...
@@ -14,4 +61,42 @@ $(function(){
...
@@ -14,4 +61,42 @@ $(function(){
}
}
});
});
});
});
$
(
"#submit"
).
on
(
"click"
,
function
(){
$
(
".message"
).
html
();
if
(
checkRequired
()){
var
sn
=
$
(
"input[name='subject']:checked"
)[
0
].
nextSibling
.
nodeValue
;
var
registerInfo_id
=
$
(
"#registerInfo_id"
).
val
();
if
(
confirm
(
"您报名的科目是“"
+
sn
+
"”,请牢记您的用户名和密码,报名成功后可凭此登陆查看缴费等状态,信息提交之后不可再更改,确认要提交吗?"
)){
$
(
"#form"
).
ajaxSubmit
({
url
:
"/training/reg3?registerInfo_id="
+
registerInfo_id
,
type
:
"post"
,
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
success
){
location
.
href
=
"/training/infop"
;
}
else
{
$
(
".message"
).
html
(
data
.
info
);
}
}
});
}
}
});
})
})
function
checkRequired
(){
var
success
=
true
;
$
(
".required"
).
each
(
function
(
n
,
v
){
if
(
$
.
trim
(
$
(
this
).
val
())
==
''
){
showWarning
(
$
(
this
),
"请填写此信息"
);
success
=
false
;
}
});
return
success
;
}
function
showWarning
(
obj
,
text
){
$
(
obj
).
parent
().
parent
().
find
(
"span.reg_body"
).
html
(
"<b style='color:red'>"
+
text
+
"</b>"
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/webapp/resource/home/images/ccpit-logo.png
0 → 100644
View file @
140dad81
25.6 KB
This diff is collapsed.
Click to expand it.
src/main/webapp/resource/home/images/homeTop_b20.png
deleted
100644 → 0
View file @
be1bd695
4.67 KB
This diff is collapsed.
Click to expand it.
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