Commit 140dad81 by 丁伟

1、增加多次报名科目功能

parent be1bd695
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;
}
}
...@@ -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 @RestController
@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){
......
...@@ -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 @RestController
@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) {
......
...@@ -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)
......
...@@ -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 <功能详细描述>
......
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;
}
}
package org.ccpit.business.registerManage;
import org.ccpit.base.dao.BaseDao;
import org.springframework.stereotype.Repository;
@Repository
public class SubjectInfoDao extends BaseDao<SubjectInfo> {
}
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);
}
});
}
}
...@@ -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>
......
...@@ -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%">&nbsp;</td>
</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>
<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 &nbsp;技术支持:中贸促信息技术有限责任公司</p> 邮箱:training@ccpit.org &nbsp;技术支持:中贸促信息技术有限责任公司</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>
...@@ -34,35 +34,13 @@ ...@@ -34,35 +34,13 @@
</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%">&nbsp;</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">
<!--开始 --> <!--开始 -->
<table class="body" border="0" cellpadding="0" cellspacing="2" width="100%" id="feijrr"> <table class="body" border="0" cellpadding="0" cellspacing="2" width="100%" id="feijrr">
<tbody><tr> <tbody><tr>
<td td="" colspan="3" class="title" align="left" background="/resource/front/img/dh.gif" height="24"><yh:yh id="0_ParticipantsInformation" english="Participant's Information" isnotnull="0">考生基本信息</yh:yh></td> <td td="" colspan="3" class="title" align="left" background="/resource/front/img/dh.gif" height="24"><yh:yh id="0_ParticipantsInformation" english="Participant's Information" isnotnull="0">考生基本信息</yh:yh></td>
</tr> </tr>
<tr id="trEmial" name="email33"> <tr id="trEmial" name="email33">
...@@ -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> <%-- <tr>--%>
<td class="name"><span style="color: red;">*</span>CITY SELECT:</td> <%-- <td class="name"><span style="color: red;">*</span>CITY SELECT:</td>--%>
<td><select class="required" name="city_en" style="width:220px"> <%-- <td><select class="required" name="city_en" style="width:220px">--%>
<option value="">请选择</option> <%-- <option value="">请选择</option>--%>
<c:forEach items="${encityType}" var="g"> <%-- <c:forEach items="${encityType}" 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>--%>
</tbody></table> </tbody></table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><hr></td> <td><hr></td>
</tr> </tr>
<tr id=""> <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%">&nbsp;</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>
<tr>
<td><hr></td>
</tr>
<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">
......
...@@ -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" >&nbsp;&nbsp;修改密码</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" >&nbsp;&nbsp;修改密码</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" />&emsp;培训中心报名管理平台</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" />&emsp;培训中心报名管理平台</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>
......
...@@ -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',{
......
...@@ -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
}, },
......
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;}
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*/
.clean{clear:both}
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;
}
body{ margin:0; padding:0; font-family:Arial,"微软雅黑"; font-size:15px;background-color:#2b85c1; color:#555;} table {
.wrapper{ width:1024px;height:100%; background-color:#fff; margin:0 auto; padding:0; border-collapse: collapse;
border-spacing: 0;
} }
#top{ margin:0 0; width: auto; height:160px;padding:0;background-image:url(/resource/front/img/imageslog/topbg_01.gif);} fieldset, img {
#top img{ margin:0 auto; padding:0; border:0;} border: 0;
}
.pp{margin:0 0; padding:30px 40px; color:#5e829f; line-height:20px; text-align:left;} address, caption, cite, code, dfn, em, strong, th, var {
.pp1{margin:0 0; padding:20px 20px; color:#5e829f; line-height:20px; text-align:left;} font-style: normal;
.twar{ margin:0; padding:0;} font-weight: normal;
#table{ width:500px; padding:0; text-align:left ;} }
#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;} li {
.input:hover{ background-color:#eee;} list-style: none;
}
.input_02{width:160px; height:28px; padding:5px 10px; border:0; color:#222;font-size:18px; border:1px solid #CCC; overflow:hidden;} caption, th {
.input_02:hover{ background-color:#eee;} 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*/
.clean {
clear: both
}
a:link { body {
margin: 0;
font-size: 12px; padding: 0;
color: #039; font-family: Arial, "微软雅黑";
text-decoration: none; font-size: 15px;
background-color: #2b85c1;
color: #555;
} }
.wrapper {
width: 1024px;
height: 100%;
background-color: #fff;
margin: 0 auto;
padding: 0;
}
a:visited { #top {
margin: 0 0;
font-size: 12px; width: auto;
color: #039; height: 160px;
text-decoration: none; padding: 0;
background-image: url(/resource/front/img/imageslog/topbg_01.gif);
} }
a:hover {
#top img {
font-size: 12px; margin: 0 auto;
color: #000; padding: 0;
text-decoration: underline; border: 0;
} }
a:active { .pp {
margin: 0 0;
font-size: 12px; padding: 30px 40px;
color: #039; color: #5e829f;
text-decoration: none; line-height: 20px;
text-align: left;
} }
a.b:link {
.pp1 {
font-size: 12px; margin: 0 0;
color: #fff; padding: 20px 20px;
text-decoration: none; color: #5e829f;
line-height: 20px;
text-align: left;
} }
.twar {
margin: 0;
padding: 0;
}
a.b:visited { #table {
width: 500px;
font-size: 12px; padding: 0;
color: #fff; text-align: left;
text-decoration: none;
} }
a.b:hover {
#subject_table{
font-size: 12px; width: 50%;
color: #000; text-align: left;
text-decoration: underline; border-collapse:separate; border-spacing:10px;
} }
a.b:active { #dengf {
text-align: center;
font-size: 12px;
color: #fff;
text-decoration: none;
} }
.name {
font-size: 12px; #foot {
line-height: 22px; margin: 0 auto;
color: #000; width: auto;
text-align: right; padding: 0 20px;
vertical-align:top; background-color: #d5dfe7;
} }
.P_title {
#foot p {
font-size: 16px; margin: 0 auto;
line-height: 25px; padding: 20px 0 20px 0;
font-weight: bold; text-align: center;
color: #FF8000; color: #5e829f;
} }
#tadeng {
height: 100%;
min-height: 630px;
}
#tadeng table td {
padding: 5px 10px
}
.title { .t_right {
FONT-WEIGHT: bold; text-align: right;
FONT-SIZE: 13px;
COLOR: #004aaf;
} }
.title_name {
font-family: "黑体"; .button {
font-size: 20px; float: left;
font-weight: normal; width: 143px;
color: #222; 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;
} }
.title_date {
.input {
font-size: 12px; width: 300px;
font-weight: bold; height: 28px;
color: #222; padding: 5px 10px;
border: 0;
color: #222;
font-size: 18px;
border: 1px solid #CCC;
overflow: hidden;
} }
.title_black {
.input:hover {
font-size: 13px; background-color: #eee;
line-height: 22px;
color: #000;
font-weight: bold;
} }
.title1 { .input_02 {
width: 160px;
font-size: 16px; height: 28px;
font-weight: bold; padding: 5px 10px;
color: #047; border: 0;
line-height: 30px; color: #222;
font-size: 18px;
border: 1px solid #CCC;
overflow: hidden;
} }
.input_02:hover {
background-color: #eee;
}
a:link {
.body { font-size: 12px;
color: #039;
font-size: 12px; text-decoration: none;
color: #222;
line-height: 18px;
font-weight: normal;
} }
.td {
font-size: 12px;
color: #000;
line-height: 20px;
}
.ts { a:visited {
font-size: 13px;
color: #fff; font-size: 12px;
color: #039;
text-decoration: none;
} }
a:hover {
.ns { font-size: 12px;
color: #000;
font-size: 12px; text-decoration: underline;
color: #f00;
}
.red {
font-size: 14px;
color: #f00;
font-weight: bold;
}
.hyjj {
font-size: 12px;
line-height: 22px;
color: #be292d;
}
.title_red {
font-size: 13px;
line-height: 22px;
color: #be292d;
font-weight: bold;
}
.border {
font-size: 12px;
color: #222;
line-height: 20px;
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #b8b8b8;
} }
.line { a:active {
font-size: 12px; font-size: 12px;
line-height: 20px; color: #039;
color: #004aaf; text-decoration: none;
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #b8b8b8;
} }
.white {
font-size: 12px; a.b:link {
color: #FFFFFF;
font-size: 12px;
color: #fff;
text-decoration: none;
} }
a.b:visited {
.namecenter { font-size: 12px;
color: #fff;
font-size: 12px; text-decoration: none;
line-height: 22px;
color: #000;
text-align: center;
}
.textcss {
font-size: 12px;
line-height: 20px;
color: #000;
text-align: left;
} }
a.b:hover {
.buttonstyle { font-size: 12px;
color: #000;
font-size: 14px; text-decoration: underline;
color: #000;
font-weight: bold;
background-image: url(/resource/front/img/but.gif);
position: absolute;
height: 30px;
width: 100px;
} }
.buttonstyle1 { a.b:active {
font-size: 12px; font-size: 12px;
height: 20px; color: #fff;
width: 80px; text-decoration: none;
background-image: url(/resource/front/img/b_g.gif);
border: none;
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
}
.buttonstyle3 {
font-size: 12px;
height: 20px;
width: 58px;
background-image: url(/resource/front/img/btn.gif);
border: none;
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
} }
.name {
.buttonstyle2 { font-size: 12px;
line-height: 22px;
font-size: 14px; color: #000;
height: 30px; text-align: right;
width: 100px; vertical-align: top;
background-image: url(/resource/front/img/but.gif);
border: none;
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
} }
.menu_title { .P_title {
font-size: 12px;
line-height: 18px;
color: #fff;
background-image: url(/resource/front/img/menu_title.gif);
background-repeat: repeat-x;
cursor:pointer;
}
.menu_body {
font-size: 12px;
line-height: 18px;
color: #000;
}
.menu_on {
background-color: #7be;
font-size: 12px;
line-height: 18px;
color:#FFFFFF;
cursor:pointer;
}
.menu_click {
background-color: #Abe;
font-size: 12px;
line-height: 18px;
color:#FFFFFF;
cursor:pointer;
}
.table {
font-size: 12px;
color: #333;
line-height: 20px;
text-align: center;
}
.table_title {
font-size: 12px;
line-height: 22px;
color: #000;
background-color: #E0E0E0;
text-indent: 4px;
}
.table_body {
font-size: 12px;
line-height: 22px;
color: #111;
background-color: #F4F4F4;
text-indent: 4px;
}
.view {
font-size: 12px;
color: #000;
background-image: url(/resource/front/img/view.gif);
text-align: center;
height: 18px;
width: 60px;
border: none;
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
}
.linkbutton {
font-size: 12px;
color: #047;
text-decoration: none;
font-weight: bold;
cursor:pointer;
}
.tr { font-size: 16px;
background-color: #e7ebfe; line-height: 25px;
} font-weight: bold;
.line22 { color: #FF8000;
border-top-width: 0px;
border-bottom-width: 1px;
border-top-style: solid;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-top-color: #000000;
border-bottom-color: #000000;
font-size: 12px;
line-height: 18px;
}
.table_left {
font-size: 12px;
color: #000000;
line-height: 20px;
} }
.tr1 { .title {
background-color: #f8eecf; FONT-WEIGHT: bold;
} FONT-SIZE: 13px;
.reg_sm { COLOR: #004aaf;
font-size: 12px;
line-height: 18px;
color: #333;
background-color: #ddf1fc;
width: 300px;
border: 1px solid #5DAADB;
padding:3px;
margin-left:10px;
margin-right:50px;
} }
.reg_red {
.title_name {
font-size: 12px; font-family: "黑体";
line-height: 18px; font-size: 20px;
color: #FF0000; font-weight: normal;
width: 300px; color: #222;
margin-left:10px;
margin-right:50px;
} }
.reg_body { .title_date {
font-size: 12px; font-size: 12px;
line-height: 18px; font-weight: bold;
color: #555; color: #222;
margin-left:10px;
} }
tables { .title_black {
font-size: 12px; font-size: 13px;
color: #333; line-height: 22px;
line-height: 20px; color: #000;
text-align: left; font-weight: bold;
} }
BODY {font-size:12px; display:} .title1 {
.text1{ font-size: 16px;
border-top-width: 1px; font-weight: bold;
border-right-width: 1px; color: #047;
border-bottom-width: 1px; line-height: 30px;
border-left-width: 1px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #000000;
border-right-color: #000000;
border-bottom-color: #000000;
border-left-color: #000000;
} }
.textteadonly{
border:none;
text-align:center .body {
font-size: 12px;
color: #222;
line-height: 18px;
font-weight: normal;
} }
.textteadonlyleft{
border:none; .td {
text-align:left;
font-size: 12px;
color: #000;
line-height: 20px;
} }
#feijrr tr td{padding:5px} .ts {
font-size: 13px;
color: #fff;
#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}
.ns {
font-size: 12px;
color: #f00;
}
.red {
font-size: 14px;
color: #f00;
font-weight: bold;
}
.hyjj {
font-size: 12px;
line-height: 22px;
color: #be292d;
}
.title_red {
font-size: 13px;
line-height: 22px;
color: #be292d;
font-weight: bold;
}
.border {
font-size: 12px;
color: #222;
line-height: 20px;
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #b8b8b8;
}
.line {
font-size: 12px;
line-height: 20px;
color: #004aaf;
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #b8b8b8;
}
.white {
font-size: 12px;
color: #FFFFFF;
}
.namecenter {
font-size: 12px;
line-height: 22px;
color: #000;
text-align: center;
}
.textcss {
font-size: 12px;
line-height: 20px;
color: #000;
text-align: left;
}
.buttonstyle {
font-size: 14px;
color: #000;
font-weight: bold;
background-image: url(/resource/front/img/but.gif);
position: absolute;
height: 30px;
width: 100px;
}
.buttonstyle1 {
font-size: 12px;
height: 20px;
width: 80px;
background-image: url(/resource/front/img/b_g.gif);
border: none;
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
}
.buttonstyle3 {
font-size: 12px;
height: 20px;
width: 58px;
background-image: url(/resource/front/img/btn.gif);
border: none;
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
}
.buttonstyle2 {
font-size: 14px;
height: 30px;
width: 100px;
background-image: url(/resource/front/img/but.gif);
border: none;
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
}
.menu_title {
font-size: 12px;
line-height: 18px;
color: #fff;
background-image: url(/resource/front/img/menu_title.gif);
background-repeat: repeat-x;
cursor: pointer;
}
.menu_body {
font-size: 12px;
line-height: 18px;
color: #000;
}
.menu_on {
background-color: #7be;
font-size: 12px;
line-height: 18px;
color: #FFFFFF;
cursor: pointer;
}
.menu_click {
background-color: #Abe;
font-size: 12px;
line-height: 18px;
color: #FFFFFF;
cursor: pointer;
}
.table {
font-size: 12px;
color: #333;
line-height: 20px;
text-align: center;
}
.table_title {
font-size: 12px;
line-height: 22px;
color: #000;
background-color: #E0E0E0;
text-indent: 4px;
}
.table_body {
font-size: 12px;
line-height: 22px;
color: #111;
background-color: #F4F4F4;
text-indent: 4px;
}
.view {
font-size: 12px;
color: #000;
background-image: url(/resource/front/img/view.gif);
text-align: center;
height: 18px;
width: 60px;
border: none;
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
}
.linkbutton {
font-size: 12px;
color: #047;
text-decoration: none;
font-weight: bold;
cursor: pointer;
}
.tr {
background-color: #e7ebfe;
}
.line22 {
border-top-width: 0px;
border-bottom-width: 1px;
border-top-style: solid;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-top-color: #000000;
border-bottom-color: #000000;
font-size: 12px;
line-height: 18px;
}
.table_left {
font-size: 12px;
color: #000000;
line-height: 20px;
}
.tr1 {
background-color: #f8eecf;
}
.reg_sm {
font-size: 12px;
line-height: 18px;
color: #333;
background-color: #ddf1fc;
width: 300px;
border: 1px solid #5DAADB;
padding: 3px;
margin-left: 10px;
margin-right: 50px;
}
.reg_red {
font-size: 12px;
line-height: 18px;
color: #FF0000;
width: 300px;
margin-left: 10px;
margin-right: 50px;
}
.reg_body {
font-size: 12px;
line-height: 18px;
color: #555;
margin-left: 10px;
}
tables {
font-size: 12px;
color: #333;
line-height: 20px;
text-align: left;
}
BODY {
font-size: 12px;
display:
}
.text1 {
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #000000;
border-right-color: #000000;
border-bottom-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
}
.foot{height:1000px} .foot {
\ No newline at end of file height: 1000px
}
\ No newline at end of file
$(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(){
} }
}); });
}); });
})
\ No newline at end of file $("#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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment