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;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
......@@ -31,7 +32,7 @@ import java.util.Random;
* @author 孙其鹏
* @version 1.0
*/
@Controller
@RestController
@RequestMapping("/training")
public class IndexController extends BaseController {
@Autowired
......@@ -40,6 +41,8 @@ public class IndexController extends BaseController {
private MetadataService metadataService;
@Autowired
private PhaseService phaseService;
@Autowired
private SubjectInfoService subjectInfoService;
private Map<String,Object> check(){
if (getActivePhase()==null){
......@@ -165,7 +168,6 @@ public class IndexController extends BaseController {
* @return
*/
@RequestMapping("/saveCertificateId")
@ResponseBody
public Object saveCertificateId(HttpServletRequest request){
RegisterInfo registerInfo = (RegisterInfo) request.getSession().getAttribute("registerInfo");
String img1 = request.getParameter("img1");
......@@ -181,7 +183,6 @@ public class IndexController extends BaseController {
}
@RequestMapping("/checkEmail")
@ResponseBody
public Object checkEmail(String email,Boolean regType){
Map<String,Object> map =new HashMap<String,Object>();
Phase phase = getActivePhase();
......@@ -195,7 +196,6 @@ public class IndexController extends BaseController {
}
@RequestMapping("/reg")
@ResponseBody
public Object reg(HttpServletRequest request,RegisterInfo registerInfo,String repassword){
Phase phase = getActivePhase();
//检查是否开放注册
......@@ -262,7 +262,6 @@ public class IndexController extends BaseController {
}
@RequestMapping("/reg2")
@ResponseBody
public Object reg2(HttpServletRequest request,RegisterInfo registerInfo,String repassword){
Phase phase = getActivePhase();
if (phase==null){
......@@ -331,13 +330,37 @@ public class IndexController extends BaseController {
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){
EmailBody body = new EmailBody();
MailSender.send(email,"","");
}
@RequestMapping("/login")
@ResponseBody
public Object login(String name,String password,String code,HttpServletRequest request){
Phase phase = getActivePhase();
if (phase == null){
......@@ -372,7 +395,6 @@ public class IndexController extends BaseController {
}
@RequestMapping("/login2")
@ResponseBody
public Object login2(String name,String password,String code,HttpServletRequest request){
Phase phase = getActivePhase();
if (phase==null){
......
......@@ -31,6 +31,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
......@@ -45,7 +46,7 @@ import com.alibaba.fastjson.JSON;
* @see
* @since JDK 1.6
*/
@Controller
@RestController
@RequestMapping("/admin/business/registerManage")
public class RegisterController extends BaseController {
......@@ -55,9 +56,11 @@ public class RegisterController extends BaseController {
private MetadataService metadataService;
@Autowired
private PhaseService phaseService;
@Autowired
private SubjectInfoService subjectInfoService;
/*
* 进入新闻管理列表界面(中文)
*
*/
@RequestMapping("/goinRegisterInfoListPage")
public Object goinNewsListPage() {
......@@ -76,7 +79,6 @@ public class RegisterController extends BaseController {
return mv;
}
@RequestMapping("/addOrUpdateRegisterInfo")
@ResponseBody
public Object addOrUpdateRegisterInfo(HttpServletRequest request,RegisterInfo registerInfo,String operate,HttpServletResponse response) {
boolean success = false;
if (StringUtils.isNotEmpty(operate)&&operate.equals("add")){
......@@ -120,7 +122,6 @@ public class RegisterController extends BaseController {
}
@RequestMapping("/queryAllRegisterInfo")
@ResponseBody
public Object queryAllRegisterInfo(HttpServletRequest request,String name,String status,String status2,String subject,String subject2,Long phase) {
PageRequest pageRequest = getPage(request);
StringBuilder sb = new StringBuilder("from RegisterInfo where 1=1 ");
......@@ -155,8 +156,17 @@ public class RegisterController extends BaseController {
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")
@ResponseBody
public RegisterInfo queryRegisterInfoById(HttpServletRequest request,HttpServletResponse response) {
String registerInfoId = request.getParameter("registerInfo");
response.setHeader("expires","0");
......@@ -166,7 +176,6 @@ public class RegisterController extends BaseController {
}
@RequestMapping("/deleteByIds")
@ResponseBody
public Object deleteRegisters(HttpServletRequest request){
String ids = request.getParameter("ids");
List<Long> list = JSON.parseArray(ids, Long.class);
......@@ -176,7 +185,6 @@ public class RegisterController extends BaseController {
return map;
}
@RequestMapping("/updateStatus")
@ResponseBody
public Object updateStatus(HttpServletRequest request){
Map<String,Object> map = new HashMap<String, Object>();
String ids = request.getParameter("ids");
......@@ -198,7 +206,6 @@ public class RegisterController extends BaseController {
}
@RequestMapping("/updateStatus2")
@ResponseBody
public Object updateStatus2(HttpServletRequest request){
Map<String,Object> map = new HashMap<String, Object>();
String ids = request.getParameter("ids");
......@@ -222,7 +229,6 @@ public class RegisterController extends BaseController {
* 导出excel
*/
@RequestMapping("/exporgExcel2")
@ResponseBody
public void exporgExcel2(HttpServletResponse response,
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 {
* 证书照3
*/
private String img3;
/**
* 发票开具时间
*/
private String taxIssue;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
......
......@@ -37,6 +37,7 @@ import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.metadataManage.Metadata;
import org.ccpit.base.metadataManage.MetadataService;
import org.ccpit.base.user.User;
import org.ccpit.base.utils.TypeUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
......@@ -162,10 +163,10 @@ public class RegisterService {
map.put("email", RegisterInfo.getEmail());
map.put("company", RegisterInfo.getCompany());
map.put("invoiceType",
translateData("invoiceType", RegisterInfo.getInvoiceType()));
map.put("subject", translateData("subject", RegisterInfo.getSubject()));
TypeUtils.translateData("invoiceType", RegisterInfo.getInvoiceType()));
map.put("subject", TypeUtils.translateData("subject", RegisterInfo.getSubject()));
map.put("registerStatus",
translateData("registerStatus",
TypeUtils.translateData("registerStatus",
RegisterInfo.getRegisterStatus()));
map.put("sort", RegisterInfo.getSort());
return map;
......@@ -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 <功能详细描述>
......
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 @@
</style>
</head>
<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">
<table>
<tr>
......@@ -119,7 +119,7 @@
</form>
</div>
<!-- datagrid列表 -->
<table id="registersTable" toolbar="#toolbar" key="newsList" title="角色列表"
<table id="registersTable" toolbar="#toolbar" key="newsList" title="用户列表"
width="98%" singleSelect="false">
</table>
<!-- datagrid工具栏 -->
......@@ -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-email" plain="true" onclick="openEmailWin()"><span >发送邮件</span></a></security:url>
</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 class="main">
<h3>导出所有查询结果,请选择导出字段和顺序:</h3>
......
......@@ -59,10 +59,10 @@
english="Participant's Information"
isnotnull="0">考生基本信息</yh:yh></td>
</tr>
<input type="hidden" id="registerInfo_id" value="${registerInfo.id}">
<c:if test="${registerInfo.regType}">
<tr name="trEmial">
<td class="name" width="25%">报名科目:</td>
<td class="name" width="25%" style="font-weight: bold;font-size: 15px">报名科目:</td>
<td>
<c:forEach items="${subject}" var="s">
<c:if test="${registerInfo.subject == s.dataNameId}">${s.dataName} </c:if>
......@@ -163,19 +163,6 @@
<td>${registerInfo.telphone}</td>
</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>
<td class="name">增值税发票:</td>
<td>
......@@ -350,20 +337,116 @@
</tr>
</tbody>
</table>
<c:if test="${!registerInfo.regType}">
<div style="margin:0 20px;">
<div style="color:red;">延考考生须知:</div>
<div>1. 当报名状态从<font style="font-weight:bold;font-size:14px">“报名成功”</font>变更为<font style="font-weight:bold;font-size:14px">“延考受理”</font>后,表示延考已经受理,请考生自行登录my LIBF页面确认英国系统里的考试时间是否延期,考试日期请以英国系统内显示的时间为准。</div>
<div>2. 办理延考后,考试时间只能往后延期一次,不是无限次延考。</div>
<div>3. 根据新的延考规定,每名考生只有唯一一次免费延考机会,考生免费延考后如需再延考,需要重新提交申请,在规定时间内缴纳延考费用。如不提交申请并缴费,则考试资格作废。</div>
<br>
<div style="color:red;"> 恢复考生须知:</div>
<div>1. 考生在本系统提交的信息仅用于中方搜集考生正确的中文信息,以便考生通过考试后证书能邮寄至正确地址。</div>
<div>2. 如果考生上次报名期间已办理延考,则不管在本系统提交恢复与否,您的考试资格都在本次考试。</div>
<div>3. 在本系统内提交考试恢复申请,不会造成my LIBF页面内考试时间变更,考试时间请以my LIBF内显示的时间为准。</div>
</div>
</c:if>
</td>
<tr>
<td><hr></td>
</tr>
<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>
<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>
......@@ -374,5 +457,8 @@
邮箱:training@ccpit.org &nbsp;技术支持:中贸促信息技术有限责任公司</p>
</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>
</html>
......@@ -34,35 +34,13 @@
</tr>
</table>
<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">
<td height="25" colspan="2">
<!--开始 -->
<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>
</tr>
<tr id="trEmial" name="email33">
......@@ -103,16 +81,16 @@
<td><input name="birthday" class="required" style="width:220px" type="text"></td>
<td><span class="reg_body">年-月-日 如:1988-01-01</span></td>
</tr>
<tr>
<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">
<option value="">请选择</option>
<c:forEach items="${cityType}" var="g">
<option value="${g.dataNameId}">${g.dataName}</option>
</c:forEach>
</select></td>
<td><span class="reg_body"></span></td>
</tr>
<%-- <tr>--%>
<%-- <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">--%>
<%-- <option value="">请选择</option>--%>
<%-- <c:forEach items="${cityType}" var="g">--%>
<%-- <option value="${g.dataNameId}">${g.dataName}</option>--%>
<%-- </c:forEach>--%>
<%-- </select></td>--%>
<%-- <td><span class="reg_body"></span></td>--%>
<%-- </tr>--%>
<tr id="trFixedTel" name="trFixedTel">
<td class="name"><span style="color: red;">*</span>固定电话:</td>
<td><input class="required" name="telphone" style="width:220px" type="text"></td>
......@@ -133,6 +111,7 @@
<td><textarea class="required" name="address" style="width:220px;height:45px;resize: none;" type="text"></textarea></td>
<td><span class="reg_body">可以安全收到邮寄材料的地址</span></td>
</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="appreciationTaxTypeId" name="appreciationTaxType" style="width:220px">
......@@ -186,6 +165,15 @@
<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 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><span class="reg_body">原IFS号码,仅限补考考生填写,该框填写字母与数字</span></td>
......@@ -242,25 +230,49 @@
<td><input class="required" name="phone" style="width:220px" type="text"></td>
<td><span class="reg_body">请填写手机号,标准国际电话格式,地区码空格手机号,如:86 13810001234</span></td>
</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>
<%-- <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>
<td><hr></td>
</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">
<div class="message"></div>
</td>
......@@ -278,10 +290,7 @@
</td>
<td background="/resource/front/img/borderc_06.gif"></td>
</tr>
</table>
<div class="pp">
</div>
<div id="foot">
......
......@@ -32,7 +32,7 @@
<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>
</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 region="south" split="true" style="height: 30px; background: #D2E0F2;">
<div class="footer">技术支持: <a href="#">中贸促信息技术有限责任公司</a></div>
......
......@@ -138,18 +138,19 @@ function initExportWindow(){
function initDataTable(){
var h = document.documentElement.clientHeight;
$("#registersTable").datagrid({
height : h - dataGridHeight,
height : (h - dataGridHeight)/3*2,
nowrap : true,
striped : true,
pagination : true,
rownumbers : true,
pageList : [15,20,30,40,50],
singleSelect : true,
pageList : [10,20,30,40,50],
autoRowHeight : false,
fitColumns : true,
queryParams : {
phase:activePhase
},
title : "新闻列表",
title : "报名用户列表",
url : '/admin/business/registerManage/queryAllRegisterInfo',
columns : [ [ {
field : 'ck',
......@@ -203,6 +204,86 @@ function initDataTable(){
},
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) { // 双击"任一行"执行
},
onLoadSuccess : function(data) { // 加载成功之后执行
......@@ -210,6 +291,7 @@ function initDataTable(){
});
}
function view(val,row){
return "<a href=\"javascript:viewData("+row.id+")\">"+row.name+"</button>";
}
......@@ -588,7 +670,6 @@ function saveData(){
});
}
if('edit' == operation){
console.log("dddd");
var row = $('#registersTable').datagrid('getSelected');
url = "/admin/business/registerManage/addOrUpdateRegisterInfo?operate="+ operation+"&id="+row.id;
$('#newsForm').form('submit',{
......
......@@ -141,7 +141,7 @@ function initDataTable(){
pageList : [15,20,30,40,50],
autoRowHeight : false,
fitColumns : true,
title : "新闻列表",
title : "延考恢复报名用户列表",
queryParams : {
phase:activePhase
},
......
html{color:#000;background:#fff;}
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;}
table{border-collapse:collapse;border-spacing:0;}
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}
html {
color: #000;
background: #fff;
}
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;}
.wrapper{ width:1024px;height:100%; background-color:#fff; margin:0 auto; padding:0;
table {
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);}
#top img{ margin:0 auto; padding:0; border:0;}
fieldset, img {
border: 0;
}
.pp{margin:0 0; padding:30px 40px; color:#5e829f; line-height:20px; text-align:left;}
.pp1{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 ;}
#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;}
address, caption, cite, code, dfn, em, strong, th, var {
font-style: normal;
font-weight: normal;
}
.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;}
li {
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;}
.input_02:hover{ background-color:#eee;}
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
}
a:link {
font-size: 12px;
color: #039;
text-decoration: none;
body {
margin: 0;
padding: 0;
font-family: Arial, "微软雅黑";
font-size: 15px;
background-color: #2b85c1;
color: #555;
}
.wrapper {
width: 1024px;
height: 100%;
background-color: #fff;
margin: 0 auto;
padding: 0;
}
a:visited {
font-size: 12px;
color: #039;
text-decoration: none;
#top {
margin: 0 0;
width: auto;
height: 160px;
padding: 0;
background-image: url(/resource/front/img/imageslog/topbg_01.gif);
}
a:hover {
font-size: 12px;
color: #000;
text-decoration: underline;
#top img {
margin: 0 auto;
padding: 0;
border: 0;
}
a:active {
font-size: 12px;
color: #039;
text-decoration: none;
.pp {
margin: 0 0;
padding: 30px 40px;
color: #5e829f;
line-height: 20px;
text-align: left;
}
a.b:link {
font-size: 12px;
color: #fff;
text-decoration: none;
.pp1 {
margin: 0 0;
padding: 20px 20px;
color: #5e829f;
line-height: 20px;
text-align: left;
}
.twar {
margin: 0;
padding: 0;
}
a.b:visited {
font-size: 12px;
color: #fff;
text-decoration: none;
#table {
width: 500px;
padding: 0;
text-align: left;
}
a.b:hover {
font-size: 12px;
color: #000;
text-decoration: underline;
#subject_table{
width: 50%;
text-align: left;
border-collapse:separate; border-spacing:10px;
}
a.b:active {
font-size: 12px;
color: #fff;
text-decoration: none;
#dengf {
text-align: center;
}
.name {
font-size: 12px;
line-height: 22px;
color: #000;
text-align: right;
vertical-align:top;
#foot {
margin: 0 auto;
width: auto;
padding: 0 20px;
background-color: #d5dfe7;
}
.P_title {
font-size: 16px;
line-height: 25px;
font-weight: bold;
color: #FF8000;
#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
}
.title {
FONT-WEIGHT: bold;
FONT-SIZE: 13px;
COLOR: #004aaf;
.t_right {
text-align: right;
}
.title_name {
font-family: "黑体";
font-size: 20px;
font-weight: normal;
color: #222;
.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;
}
.title_date {
font-size: 12px;
font-weight: bold;
color: #222;
.input {
width: 300px;
height: 28px;
padding: 5px 10px;
border: 0;
color: #222;
font-size: 18px;
border: 1px solid #CCC;
overflow: hidden;
}
.title_black {
font-size: 13px;
line-height: 22px;
color: #000;
font-weight: bold;
.input:hover {
background-color: #eee;
}
.title1 {
font-size: 16px;
font-weight: bold;
color: #047;
line-height: 30px;
.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 {
.body {
font-size: 12px;
color: #222;
line-height: 18px;
font-weight: normal;
font-size: 12px;
color: #039;
text-decoration: none;
}
.td {
font-size: 12px;
color: #000;
line-height: 20px;
}
.ts {
font-size: 13px;
color: #fff;
a:visited {
font-size: 12px;
color: #039;
text-decoration: none;
}
a:hover {
.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;
font-size: 12px;
color: #000;
text-decoration: underline;
}
.line {
font-size: 12px;
line-height: 20px;
color: #004aaf;
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #b8b8b8;
a:active {
font-size: 12px;
color: #039;
text-decoration: none;
}
.white {
font-size: 12px;
color: #FFFFFF;
a.b:link {
font-size: 12px;
color: #fff;
text-decoration: none;
}
a.b:visited {
.namecenter {
font-size: 12px;
line-height: 22px;
color: #000;
text-align: center;
}
.textcss {
font-size: 12px;
line-height: 20px;
color: #000;
text-align: left;
font-size: 12px;
color: #fff;
text-decoration: none;
}
a.b:hover {
.buttonstyle {
font-size: 14px;
color: #000;
font-weight: bold;
background-image: url(/resource/front/img/but.gif);
position: absolute;
height: 30px;
width: 100px;
font-size: 12px;
color: #000;
text-decoration: underline;
}
.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;
a.b:active {
font-size: 12px;
color: #fff;
text-decoration: none;
}
.name {
.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;
font-size: 12px;
line-height: 22px;
color: #000;
text-align: right;
vertical-align: top;
}
.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;
}
.P_title {
.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;
font-size: 16px;
line-height: 25px;
font-weight: bold;
color: #FF8000;
}
.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;
.title {
FONT-WEIGHT: bold;
FONT-SIZE: 13px;
COLOR: #004aaf;
}
.reg_red {
font-size: 12px;
line-height: 18px;
color: #FF0000;
width: 300px;
margin-left:10px;
margin-right:50px;
.title_name {
font-family: "黑体";
font-size: 20px;
font-weight: normal;
color: #222;
}
.reg_body {
font-size: 12px;
line-height: 18px;
color: #555;
margin-left:10px;
.title_date {
font-size: 12px;
font-weight: bold;
color: #222;
}
tables {
font-size: 12px;
color: #333;
line-height: 20px;
text-align: left;
.title_black {
font-size: 13px;
line-height: 22px;
color: #000;
font-weight: bold;
}
BODY {font-size:12px; display:}
.title1 {
.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;
font-size: 16px;
font-weight: bold;
color: #047;
line-height: 30px;
}
.textteadonly{
border:none;
text-align:center
.body {
font-size: 12px;
color: #222;
line-height: 18px;
font-weight: normal;
}
.textteadonlyleft{
border:none;
text-align:left;
.td {
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}
\ No newline at end of file
.foot {
height: 1000px
}
\ No newline at end of file
$(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() {
$.post('/training/saveCertificateId',
{
......@@ -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