Closed GoogleCodeExporter closed 9 years ago
*provider:not null
*education/degree:fixed options
*marriage:fixed options
*Email:format
**organization_code:if format wrong,1;else if in options,0;else error ?
①组织代码证号 为
73294277-3、57604022-4、51736741-1、68931275-9、57218915-2、57604432-1、68
931275-9 时,不用传附件
②当某个组织代码证号上传对应的附件后,只要系统有一份��
�,即后面的订单涉及到该组织代码证号附件的都不用再上传
*school and major:check if has school and major,if not,check format
校名+(院校代码:*****) 5 位代码
专业+(专业代码:*****) 6位代码
*id_card:format
*graduation_date:not null,date format
*get_job_type:暂缓/应届
*“省”“公安局”“派出所”,format
*①把挂靠内容的拉选内容中的“挂靠入集体户”改为“挂靠�
��体户”
②当供应商拉选“南租”并且挂靠内容拉选“挂靠集体户”��
�,户口挂靠地址自动填上:广州市越秀区建设六马路33号503��
�
③凡“挂靠内容”拉选“挂靠不入户”时,户口挂靠地址自��
�填上:不入户
拉选“挂靠入私户”或“挂靠集体户”时,挂靠年限不能拉��
�“1年”
*生源地,填写非
“广东省广州市***”时,其他地区填写两级即可,如“广东��
�茂名市”,但不能跨级,如不允许填写“广东省高州市”,�
��为高州市是县级市
像北京市、上海市,这些地方,也要填写两级,如“北京市��
�城区”
导入时,如不符合 此逻辑,即变为待修改状态
*户籍地址栏 不能少于 11
位汉字字符,导入时,如少于11位,即变为待修改状态
配偶的也一样
*receiver:该栏不能为空,导入时,如
该栏少于7为中文字符时,即变为待修改状态
Original comment by Giggs...@gmail.com
on 12 Mar 2013 at 8:59
*id_card:format,unique
Original comment by Giggs...@gmail.com
on 12 Mar 2013 at 1:18
function checkOrderInput($order, &$error_msg, &$error_level, $error_line_from)
{
$message = '';
$hasExisit = checkHasExisitByColumn('id_card', $order[$i - 2]['id_card']);
if($hasExisit) {
$message .= '第' . $error_line_from . '行:' . $order['id_card'] . ' 该身份证已存在!' . '\n';
$message .= '---------------------------------------------' . '\n';
}
if($order[$i - 2]['id_card'] && !idCardValidate($order[$i - 2]['id_card'])) {
$message .= '第' . $error_line_from . '行:' . $order['id_card'] . ' 身份证格式有误!' . '\n';
$message .= '---------------------------------------------' . '\n';
}
if($order[$i - 2]['email'] && !regExpcheck('email', $order[$i - 2]['email'])) {
$message .= '第' . $error_line_from . '行:' . $order['email'] . ' 邮箱格式有误!';
}
if($order[$i - 2]['QQ'] && !regExpcheck('QQ', $order[$i - 2]['QQ'])) {
$message .= '第' . $error_line_from . '行:' . $order['QQ'] . ' QQ格式有误!';
}
if($order['telphone'] && !regExpcheck('telphone', trim($order['telphone'])) && !regExpcheck('mobile', trim($order['telphone'])))
{
$message .= '第' . $i . '行:' . $order['telphone'] . ' 电话格式有误!';
}
if($order['get_job_type'] != '0' && $order['get_job_type'] != '1')
{
$message .= '第' . $i . '行:暂缓/应届没有填写!';
}
}
function regExpcheck($type,$val) {
if($val == '')
return false;
if($type == 'name') {
$reg = '/\w/i';
}
if($type == 'email') {
$reg = '/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/';
}
if ($type == 'mobile'){
$reg = '/^(13[0-9]|15[0|3|6|7|8|9]|18[8|9])\d{8}$/';
}
if ($type == 'telphone'){
$reg = '/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/';
}
if ($type == 'QQ'){
$reg = '/^\d{5,10}$/';
}
if ($type == 'num'){
$reg = '/^\d+$/';
}
if (preg_match($reg,$val)){
return true;
}
return false;
}
Original comment by Giggs...@gmail.com
on 13 Mar 2013 at 1:23
Original comment by Giggs...@gmail.com
on 14 Mar 2013 at 11:58
Original comment by Giggs...@gmail.com
on 14 Mar 2013 at 11:59
[deleted comment]
Original comment by Giggs...@gmail.com
on 21 Mar 2013 at 1:09
Original issue reported on code.google.com by
Giggs...@gmail.com
on 9 Mar 2013 at 3:05