Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
em
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ichikawa
em
Commits
7d46402a
Commit
7d46402a
authored
Dec 20, 2023
by
Kim Gyeongeun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#56952 設問設定機能追加
#56951 性別の選択肢を追加 #56954 メールアドレスの種別変更
parent
76d152e8
Show whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
592 additions
and
383 deletions
+592
-383
src/main/java/jp/agentec/sinaburocast/action/admin/member/DeliveryGroupSearchAction.java
+17
-13
src/main/java/jp/agentec/sinaburocast/action/admin/member/MemberEditAction.java
+42
-42
src/main/java/jp/agentec/sinaburocast/action/admin/member/MemberRegistAction.java
+25
-25
src/main/java/jp/agentec/sinaburocast/action/admin/member/MemberRegistAllAction.java
+11
-11
src/main/java/jp/agentec/sinaburocast/action/user/PointUseAction.java
+9
-9
src/main/java/jp/agentec/sinaburocast/action/user/RegistAction.java
+4
-4
src/main/java/jp/agentec/sinaburocast/action/user/TopAction.java
+10
-4
src/main/java/jp/agentec/sinaburocast/action/user/UserEditAction.java
+23
-38
src/main/java/jp/agentec/sinaburocast/common/SinaburoConstant.java
+7
-0
src/main/java/jp/agentec/sinaburocast/csv/MemberInfoCsv.java
+29
-29
src/main/java/jp/agentec/sinaburocast/csv/MemberMigrationInfoCsv.java
+23
-19
src/main/java/jp/agentec/sinaburocast/entity/Member.java
+4
-4
src/main/java/jp/agentec/sinaburocast/form/admin/member/MemberEditForm.java
+4
-4
src/main/java/jp/agentec/sinaburocast/form/admin/member/MemberSearchForm.java
+10
-6
src/main/java/jp/agentec/sinaburocast/form/user/UserEditForm.java
+10
-6
src/main/java/jp/agentec/sinaburocast/logic/MemberRegisterBatchLogic.java
+6
-6
src/main/java/jp/agentec/sinaburocast/service/EnqueteMailAddressTmpService.java
+3
-3
src/main/java/jp/agentec/sinaburocast/service/EnqueteMailService.java
+6
-6
src/main/java/jp/agentec/sinaburocast/service/EnqueteService.java
+6
-2
src/main/java/jp/agentec/sinaburocast/service/GiftExchangeService.java
+1
-1
src/main/java/jp/agentec/sinaburocast/service/MemberService.java
+45
-45
src/main/java/jp/agentec/sinaburocast/service/MemberWithdrawService.java
+4
-4
src/main/java/jp/agentec/sinaburocast/service/PointDonationService.java
+4
-4
src/main/java/jp/agentec/sinaburocast/service/ReplyService.java
+4
-4
src/main/resources/application_ja.properties
+4
-3
src/main/resources/csv_application.properties
+4
-4
src/main/webapp/WEB-INF/view/admin/enquete/giftExchangeSearch.html
+1
-1
src/main/webapp/WEB-INF/view/admin/member/memberConfirm.html
+4
-4
src/main/webapp/WEB-INF/view/admin/member/memberEdit.html
+8
-8
src/main/webapp/WEB-INF/view/admin/member/memberInput.html
+12
-8
src/main/webapp/WEB-INF/view/admin/member/memberInputConfirm.html
+6
-6
src/main/webapp/WEB-INF/view/admin/member/memberSearch.html
+4
-4
src/main/webapp/WEB-INF/view/common/menu.vm
+6
-4
src/main/webapp/WEB-INF/view/index.html
+17
-2
src/main/webapp/WEB-INF/view/mb/user/userEdit/uEdit.html
+6
-6
src/main/webapp/WEB-INF/view/mb/user/userEdit/uEditConfirm.html
+8
-6
src/main/webapp/WEB-INF/view/sp/user/userEdit/uEdit.html
+14
-8
src/main/webapp/WEB-INF/view/sp/user/userEdit/uEditConfirm.html
+6
-4
src/main/webapp/WEB-INF/view/user/enquete/enquete.html
+8
-4
src/main/webapp/WEB-INF/view/user/top/newUserRegist.html
+154
-0
src/main/webapp/WEB-INF/view/user/userEdit/uEdit.html
+12
-13
src/main/webapp/WEB-INF/view/user/userEdit/uEditConfirm.html
+8
-6
src/main/webapp/images/logon_btn_new.png
+0
-0
src/test/java/jp/agentec/sinaburocast/service/EnqueteMailAddressTmpServiceTest.java
+1
-1
src/test/java/jp/agentec/sinaburocast/service/MemberServiceTest.java
+2
-2
No files found.
src/main/java/jp/agentec/sinaburocast/action/admin/member/DeliveryGroupSearchAction.java
View file @
7d46402a
...
@@ -14,6 +14,17 @@ import java.util.HashMap;
...
@@ -14,6 +14,17 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Properties
;
import
java.util.Properties
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.log4j.Logger
;
import
org.apache.struts.Globals
;
import
org.apache.struts.action.ActionMessage
;
import
org.apache.struts.action.ActionMessages
;
import
org.apache.struts.util.TokenProcessor
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
import
org.seasar.struts.util.ResponseUtil
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.annotation.OperationHistoryAno
;
import
jp.agentec.sinaburocast.common.annotation.OperationHistoryAno
;
...
@@ -31,17 +42,6 @@ import jp.agentec.sinaburocast.service.DeliveryGroupService;
...
@@ -31,17 +42,6 @@ import jp.agentec.sinaburocast.service.DeliveryGroupService;
import
jp.agentec.sinaburocast.service.MemberService
;
import
jp.agentec.sinaburocast.service.MemberService
;
import
jp.agentec.sinaburocast.service.PrefectureService
;
import
jp.agentec.sinaburocast.service.PrefectureService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.log4j.Logger
;
import
org.apache.struts.Globals
;
import
org.apache.struts.action.ActionMessage
;
import
org.apache.struts.action.ActionMessages
;
import
org.apache.struts.util.TokenProcessor
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
import
org.seasar.struts.util.ResponseUtil
;
/**
/**
*
*
* 配信グループ検索
* 配信グループ検索
...
@@ -362,7 +362,7 @@ public class DeliveryGroupSearchAction extends AbstractAction {
...
@@ -362,7 +362,7 @@ public class DeliveryGroupSearchAction extends AbstractAction {
public
String
memberGroupDownload
()
throws
UnsupportedEncodingException
,
Exception
{
public
String
memberGroupDownload
()
throws
UnsupportedEncodingException
,
Exception
{
StringBuffer
str
=
new
StringBuffer
();
StringBuffer
str
=
new
StringBuffer
();
str
.
append
(
"\"会員ID\"\t\"ログインID\"\t\"パスワード\"\t\"氏\"\t\"名\"\t\"氏(カナ)\"\t\"名(カナ)\"\t\"
PCメールアドレス\"\t\"携帯メールアドレス
\"\t\"電話\"\t\"性別\"\t\""
+
str
.
append
(
"\"会員ID\"\t\"ログインID\"\t\"パスワード\"\t\"氏\"\t\"名\"\t\"氏(カナ)\"\t\"名(カナ)\"\t\"
E-mail(メイン)\"\t\"E-mail(サブ)
\"\t\"電話\"\t\"性別\"\t\""
+
"生年月日\"\t\"年代\"\t\"郵便番号\"\t\"都道府県\"\t\"市区町村\"\t\"町名・番地\"\t\"建物名\"\t\"ポイント\"\t\"メモ\"\t\"削除フラグ\"\t\"退会有無\"\t\"退会日時\"\t\"退会理由区分\"\t\"退会理由コメント\""
"生年月日\"\t\"年代\"\t\"郵便番号\"\t\"都道府県\"\t\"市区町村\"\t\"町名・番地\"\t\"建物名\"\t\"ポイント\"\t\"メモ\"\t\"削除フラグ\"\t\"退会有無\"\t\"退会日時\"\t\"退会理由区分\"\t\"退会理由コメント\""
+
"\r\n"
);
+
"\r\n"
);
int
offSet
=
0
;
int
offSet
=
0
;
...
@@ -379,12 +379,16 @@ public class DeliveryGroupSearchAction extends AbstractAction {
...
@@ -379,12 +379,16 @@ public class DeliveryGroupSearchAction extends AbstractAction {
do
{
do
{
for
(
DeliveryGroupMember
report
:
list
)
{
for
(
DeliveryGroupMember
report
:
list
)
{
str
.
append
(
"\""
+
report
.
memberId
+
"\"\t\""
+
report
.
member
.
loginId
+
"\"\t\""
+
report
.
member
.
password
+
"\"\t\""
+
report
.
member
.
firstName
+
"\"\t\""
+
report
.
member
.
lastName
+
"\"\t\""
+
report
.
member
.
firstNameKana
+
"\"\t\""
+
report
.
member
.
lastNameKana
);
str
.
append
(
"\""
+
report
.
memberId
+
"\"\t\""
+
report
.
member
.
loginId
+
"\"\t\""
+
report
.
member
.
password
+
"\"\t\""
+
report
.
member
.
firstName
+
"\"\t\""
+
report
.
member
.
lastName
+
"\"\t\""
+
report
.
member
.
firstNameKana
+
"\"\t\""
+
report
.
member
.
lastNameKana
);
str
.
append
(
"\"\t\""
+
report
.
member
.
pcEmail
+
"\"\t\""
+
report
.
member
.
mb
Email
+
"\"\t\""
+
report
.
member
.
telno
+
"\"\t\""
);
str
.
append
(
"\"\t\""
+
report
.
member
.
mainPcEmail
+
"\"\t\""
+
report
.
member
.
subPc
Email
+
"\"\t\""
+
report
.
member
.
telno
+
"\"\t\""
);
if
(
report
.
member
.
genderCd
!=
null
)
{
if
(
report
.
member
.
genderCd
!=
null
)
{
if
(
report
.
member
.
genderCd
==
SinaburoConstant
.
GenderType
.
MAN
)
{
if
(
report
.
member
.
genderCd
==
SinaburoConstant
.
GenderType
.
MAN
)
{
str
.
append
(
"男"
);
str
.
append
(
"男"
);
}
else
if
(
report
.
member
.
genderCd
==
SinaburoConstant
.
GenderType
.
WOMAN
)
{
}
else
if
(
report
.
member
.
genderCd
==
SinaburoConstant
.
GenderType
.
WOMAN
)
{
str
.
append
(
"女"
);
str
.
append
(
"女"
);
}
else
if
(
report
.
member
.
genderCd
==
SinaburoConstant
.
GenderType
.
OTHERS
)
{
str
.
append
(
"その他"
);
}
else
if
(
report
.
member
.
genderCd
==
SinaburoConstant
.
GenderType
.
DO_NOT_ENTER
)
{
str
.
append
(
"入力しない"
);
}
else
{
}
else
{
str
.
append
(
""
);
str
.
append
(
""
);
}
}
...
...
src/main/java/jp/agentec/sinaburocast/action/admin/member/MemberEditAction.java
View file @
7d46402a
...
@@ -11,6 +11,16 @@ import java.util.List;
...
@@ -11,6 +11,16 @@ import java.util.List;
import
javax.mail.MessagingException
;
import
javax.mail.MessagingException
;
import
org.apache.log4j.Logger
;
import
org.apache.struts.Globals
;
import
org.apache.struts.action.ActionMessage
;
import
org.apache.struts.action.ActionMessages
;
import
org.apache.struts.util.TokenProcessor
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
import
org.seasar.struts.util.RequestUtil
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.annotation.OperationHistoryAno
;
import
jp.agentec.sinaburocast.common.annotation.OperationHistoryAno
;
...
@@ -24,16 +34,6 @@ import jp.agentec.sinaburocast.form.admin.member.MemberEditForm;
...
@@ -24,16 +34,6 @@ import jp.agentec.sinaburocast.form.admin.member.MemberEditForm;
import
jp.agentec.sinaburocast.service.MemberService
;
import
jp.agentec.sinaburocast.service.MemberService
;
import
jp.agentec.sinaburocast.service.PrefectureService
;
import
jp.agentec.sinaburocast.service.PrefectureService
;
import
org.apache.log4j.Logger
;
import
org.apache.struts.Globals
;
import
org.apache.struts.action.ActionMessage
;
import
org.apache.struts.action.ActionMessages
;
import
org.apache.struts.util.TokenProcessor
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
import
org.seasar.struts.util.RequestUtil
;
/**
/**
* @author kim-hs
* @author kim-hs
* 会員情報編集
* 会員情報編集
...
@@ -68,11 +68,11 @@ public class MemberEditAction extends AbstractAction {
...
@@ -68,11 +68,11 @@ public class MemberEditAction extends AbstractAction {
memberEditForm
.
lastName
=
memberInfo
.
lastName
;
memberEditForm
.
lastName
=
memberInfo
.
lastName
;
memberEditForm
.
firstNameKana
=
memberInfo
.
firstNameKana
;
memberEditForm
.
firstNameKana
=
memberInfo
.
firstNameKana
;
memberEditForm
.
lastNameKana
=
memberInfo
.
lastNameKana
;
memberEditForm
.
lastNameKana
=
memberInfo
.
lastNameKana
;
memberEditForm
.
pcEmail
=
memberInfo
.
p
cEmail
;
memberEditForm
.
mainPcEmail
=
memberInfo
.
mainP
cEmail
;
memberEditForm
.
pcEmailBefore
=
memberInfo
.
p
cEmail
;
memberEditForm
.
mainPcEmailBefore
=
memberInfo
.
mainP
cEmail
;
memberEditForm
.
mbEmail
=
memberInfo
.
mb
Email
;
memberEditForm
.
subPcEmail
=
memberInfo
.
subPc
Email
;
memberEditForm
.
mbEmailBefore
=
memberInfo
.
mb
Email
;
memberEditForm
.
subPcEmailBefore
=
memberInfo
.
subPc
Email
;
memberEditForm
.
password
=
memberInfo
.
password
;
memberEditForm
.
password
=
memberInfo
.
password
;
memberEditForm
.
password2
=
memberInfo
.
password
;
memberEditForm
.
password2
=
memberInfo
.
password
;
...
@@ -142,7 +142,7 @@ public class MemberEditAction extends AbstractAction {
...
@@ -142,7 +142,7 @@ public class MemberEditAction extends AbstractAction {
}
}
// メールアドレス登録チェック
// メールアドレス登録チェック
if
(
StringUtil
.
isBlank
(
memberEditForm
.
pcEmail
)
&&
StringUtil
.
isBlank
(
memberEditForm
.
mb
Email
))
{
if
(
StringUtil
.
isBlank
(
memberEditForm
.
mainPcEmail
)
&&
StringUtil
.
isBlank
(
memberEditForm
.
subPc
Email
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
...
@@ -156,39 +156,39 @@ public class MemberEditAction extends AbstractAction {
...
@@ -156,39 +156,39 @@ public class MemberEditAction extends AbstractAction {
}
}
//携帯メールチェック
//携帯メールチェック
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
subPc
Email
))
{
if
(!
SinaburoUtil
.
mobileAddressCheck
(
memberEditForm
.
mb
Email
))
{
if
(!
SinaburoUtil
.
mobileAddressCheck
(
memberEditForm
.
subPc
Email
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
mb
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.mbMail"
))));
messages
.
add
(
"
subPc
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.mbMail"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberEdit.html"
;
return
"/admin/member/memberEdit.html"
;
}
}
}
}
//メールアドレス重複チェックPCメール
//メールアドレス重複チェックPCメール
if
(!
memberEditForm
.
pcEmail
.
trim
().
equals
(
memberEditForm
.
p
cEmailBefore
))
{
if
(!
memberEditForm
.
mainPcEmail
.
trim
().
equals
(
memberEditForm
.
mainP
cEmailBefore
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
p
cEmail
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mainP
cEmail
))
{
if
(
SinaburoUtil
.
mobileAddressCheck
(
memberEditForm
.
p
cEmail
))
{
if
(
SinaburoUtil
.
mobileAddressCheck
(
memberEditForm
.
mainP
cEmail
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
p
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.pcMail"
))));
messages
.
add
(
"
mainP
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.pcMail"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberEdit.html"
;
return
"/admin/member/memberEdit.html"
;
}
}
memberInfo
=
memberService
.
findBy
PcEmail
(
memberEditForm
.
p
cEmail
);
memberInfo
=
memberService
.
findBy
MainPcEmail
(
memberEditForm
.
mainP
cEmail
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
p
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
)));
messages
.
add
(
"
mainP
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberEdit.html"
;
return
"/admin/member/memberEdit.html"
;
...
@@ -199,14 +199,14 @@ public class MemberEditAction extends AbstractAction {
...
@@ -199,14 +199,14 @@ public class MemberEditAction extends AbstractAction {
if
(
memberEditForm
.
withDrawFlgBefore
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
DEL
)
&&
memberEditForm
.
withDrawFlg
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
))
{
if
(
memberEditForm
.
withDrawFlgBefore
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
DEL
)
&&
memberEditForm
.
withDrawFlg
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
p
cEmail
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mainP
cEmail
))
{
memberInfo
=
memberService
.
findBy
PcEmail
(
memberEditForm
.
p
cEmail
);
memberInfo
=
memberService
.
findBy
MainPcEmail
(
memberEditForm
.
mainP
cEmail
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
p
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
messages
.
add
(
"
mainP
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberEdit.html"
;
return
"/admin/member/memberEdit.html"
;
...
@@ -216,17 +216,17 @@ public class MemberEditAction extends AbstractAction {
...
@@ -216,17 +216,17 @@ public class MemberEditAction extends AbstractAction {
}
}
//メールアドレス重複チェック携帯メール
//メールアドレス重複チェック携帯メール
if
(!
memberEditForm
.
mbEmail
.
trim
().
equals
(
memberEditForm
.
mb
EmailBefore
))
{
if
(!
memberEditForm
.
subPcEmail
.
trim
().
equals
(
memberEditForm
.
subPc
EmailBefore
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
subPc
Email
))
{
memberInfo
=
memberService
.
findBy
MoEmail
(
memberEditForm
.
mb
Email
);
memberInfo
=
memberService
.
findBy
SubPcEmail
(
memberEditForm
.
subPc
Email
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
mb
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
)));
messages
.
add
(
"
subPc
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberEdit.html"
;
return
"/admin/member/memberEdit.html"
;
}
}
...
@@ -234,14 +234,14 @@ public class MemberEditAction extends AbstractAction {
...
@@ -234,14 +234,14 @@ public class MemberEditAction extends AbstractAction {
}
}
if
(
memberEditForm
.
withDrawFlgBefore
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
DEL
)
&&
memberEditForm
.
withDrawFlg
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
))
{
if
(
memberEditForm
.
withDrawFlgBefore
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
DEL
)
&&
memberEditForm
.
withDrawFlg
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
subPc
Email
))
{
memberInfo
=
memberService
.
findBy
MoEmail
(
memberEditForm
.
mb
Email
.
trim
());
memberInfo
=
memberService
.
findBy
SubPcEmail
(
memberEditForm
.
subPc
Email
.
trim
());
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
mb
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
messages
.
add
(
"
subPc
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberEdit.html"
;
return
"/admin/member/memberEdit.html"
;
...
@@ -281,27 +281,27 @@ public class MemberEditAction extends AbstractAction {
...
@@ -281,27 +281,27 @@ public class MemberEditAction extends AbstractAction {
//return "/admin/member/memberEdit.html";
//return "/admin/member/memberEdit.html";
}
}
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
p
cEmail
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mainP
cEmail
))
{
memberInfo
=
memberService
.
findBy
PcEmail
(
memberEditForm
.
p
cEmail
);
memberInfo
=
memberService
.
findBy
MainPcEmail
(
memberEditForm
.
mainP
cEmail
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
p
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
messages
.
add
(
"
mainP
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
err
=
true
;
err
=
true
;
//return "/admin/member/memberEdit.html";
//return "/admin/member/memberEdit.html";
}
}
}
}
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
subPc
Email
))
{
memberInfo
=
memberService
.
findBy
MoEmail
(
memberEditForm
.
mb
Email
);
memberInfo
=
memberService
.
findBy
SubPcEmail
(
memberEditForm
.
subPc
Email
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
mb
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
messages
.
add
(
"
subPc
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
err
=
true
;
err
=
true
;
//return "/admin/member/memberEdit.html";
//return "/admin/member/memberEdit.html";
...
@@ -385,8 +385,8 @@ public class MemberEditAction extends AbstractAction {
...
@@ -385,8 +385,8 @@ public class MemberEditAction extends AbstractAction {
member
.
lastName
=
memberEditForm
.
lastName
;
member
.
lastName
=
memberEditForm
.
lastName
;
member
.
firstNameKana
=
memberEditForm
.
firstNameKana
;
member
.
firstNameKana
=
memberEditForm
.
firstNameKana
;
member
.
lastNameKana
=
memberEditForm
.
lastNameKana
;
member
.
lastNameKana
=
memberEditForm
.
lastNameKana
;
member
.
pcEmail
=
memberEditForm
.
p
cEmail
;
member
.
mainPcEmail
=
memberEditForm
.
mainP
cEmail
;
member
.
mbEmail
=
memberEditForm
.
mb
Email
;
member
.
subPcEmail
=
memberEditForm
.
subPc
Email
;
member
.
password
=
memberEditForm
.
password
;
member
.
password
=
memberEditForm
.
password
;
member
.
password
=
memberEditForm
.
password2
;
member
.
password
=
memberEditForm
.
password2
;
member
.
zipCode
=
memberEditForm
.
zipCode
;
member
.
zipCode
=
memberEditForm
.
zipCode
;
...
...
src/main/java/jp/agentec/sinaburocast/action/admin/member/MemberRegistAction.java
View file @
7d46402a
...
@@ -8,6 +8,15 @@ import java.text.SimpleDateFormat;
...
@@ -8,6 +8,15 @@ import java.text.SimpleDateFormat;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
org.apache.log4j.Logger
;
import
org.apache.struts.Globals
;
import
org.apache.struts.action.ActionMessage
;
import
org.apache.struts.action.ActionMessages
;
import
org.apache.struts.util.TokenProcessor
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.annotation.OperationHistoryAno
;
import
jp.agentec.sinaburocast.common.annotation.OperationHistoryAno
;
...
@@ -22,15 +31,6 @@ import jp.agentec.sinaburocast.service.MemberService;
...
@@ -22,15 +31,6 @@ import jp.agentec.sinaburocast.service.MemberService;
import
jp.agentec.sinaburocast.service.PostalcodeService
;
import
jp.agentec.sinaburocast.service.PostalcodeService
;
import
jp.agentec.sinaburocast.service.PrefectureService
;
import
jp.agentec.sinaburocast.service.PrefectureService
;
import
org.apache.log4j.Logger
;
import
org.apache.struts.Globals
;
import
org.apache.struts.action.ActionMessage
;
import
org.apache.struts.action.ActionMessages
;
import
org.apache.struts.util.TokenProcessor
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
/**
/**
*
*
* 会員登録
* 会員登録
...
@@ -102,7 +102,7 @@ public class MemberRegistAction extends AbstractAction {
...
@@ -102,7 +102,7 @@ public class MemberRegistAction extends AbstractAction {
}
}
// メールアドレス登録チェック
// メールアドレス登録チェック
if
(
StringUtil
.
isBlank
(
memberEditForm
.
pcEmail
)
&&
memberEditForm
.
mb
Email
==
""
)
{
if
(
StringUtil
.
isBlank
(
memberEditForm
.
mainPcEmail
)
&&
memberEditForm
.
subPc
Email
==
""
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
...
@@ -116,39 +116,39 @@ public class MemberRegistAction extends AbstractAction {
...
@@ -116,39 +116,39 @@ public class MemberRegistAction extends AbstractAction {
}
}
//携帯メールチェック
//携帯メールチェック
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
subPc
Email
))
{
if
(!
SinaburoUtil
.
mobileAddressCheck
(
memberEditForm
.
mb
Email
))
{
if
(!
SinaburoUtil
.
mobileAddressCheck
(
memberEditForm
.
subPc
Email
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
mb
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.mbMail"
))));
messages
.
add
(
"
subPc
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.mbMail"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberInput.html"
;
return
"/admin/member/memberInput.html"
;
}
}
}
}
//メールアドレス重複チェックPCメール
//メールアドレス重複チェックPCメール
if
(!
memberEditForm
.
pcEmail
.
trim
().
equals
(
memberEditForm
.
p
cEmailBefore
))
{
if
(!
memberEditForm
.
mainPcEmail
.
trim
().
equals
(
memberEditForm
.
mainP
cEmailBefore
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
p
cEmail
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mainP
cEmail
))
{
if
(
SinaburoUtil
.
mobileAddressCheck
(
memberEditForm
.
p
cEmail
))
{
if
(
SinaburoUtil
.
mobileAddressCheck
(
memberEditForm
.
mainP
cEmail
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
p
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.pcMail"
))));
messages
.
add
(
"
mainP
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.pcMail"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberInput.html"
;
return
"/admin/member/memberInput.html"
;
}
}
memberInfo
=
memberService
.
findBy
PcEmail
(
memberEditForm
.
p
cEmail
);
memberInfo
=
memberService
.
findBy
MainPcEmail
(
memberEditForm
.
mainP
cEmail
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
p
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
)));
messages
.
add
(
"
mainP
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberInput.html"
;
return
"/admin/member/memberInput.html"
;
...
@@ -158,17 +158,17 @@ public class MemberRegistAction extends AbstractAction {
...
@@ -158,17 +158,17 @@ public class MemberRegistAction extends AbstractAction {
}
}
//メールアドレス重複チェック携帯メール
//メールアドレス重複チェック携帯メール
if
(!
memberEditForm
.
mbEmail
.
trim
().
equals
(
memberEditForm
.
mb
EmailBefore
))
{
if
(!
memberEditForm
.
subPcEmail
.
trim
().
equals
(
memberEditForm
.
subPc
EmailBefore
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
subPc
Email
))
{
memberInfo
=
memberService
.
findBy
MoEmail
(
memberEditForm
.
mb
Email
);
memberInfo
=
memberService
.
findBy
SubPcEmail
(
memberEditForm
.
subPc
Email
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
mb
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
)));
messages
.
add
(
"
subPc
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberInput.html"
;
return
"/admin/member/memberInput.html"
;
}
}
...
@@ -262,8 +262,8 @@ public class MemberRegistAction extends AbstractAction {
...
@@ -262,8 +262,8 @@ public class MemberRegistAction extends AbstractAction {
member
.
lastName
=
memberEditForm
.
lastName
;
member
.
lastName
=
memberEditForm
.
lastName
;
member
.
firstNameKana
=
memberEditForm
.
firstNameKana
;
member
.
firstNameKana
=
memberEditForm
.
firstNameKana
;
member
.
lastNameKana
=
memberEditForm
.
lastNameKana
;
member
.
lastNameKana
=
memberEditForm
.
lastNameKana
;
member
.
pcEmail
=
memberEditForm
.
p
cEmail
;
member
.
mainPcEmail
=
memberEditForm
.
mainP
cEmail
;
member
.
mbEmail
=
memberEditForm
.
mb
Email
;
member
.
subPcEmail
=
memberEditForm
.
subPc
Email
;
member
.
password
=
memberEditForm
.
password
;
member
.
password
=
memberEditForm
.
password
;
member
.
password
=
memberEditForm
.
password2
;
member
.
password
=
memberEditForm
.
password2
;
member
.
zipCode
=
memberEditForm
.
zipCode
;
member
.
zipCode
=
memberEditForm
.
zipCode
;
...
...
src/main/java/jp/agentec/sinaburocast/action/admin/member/MemberRegistAllAction.java
View file @
7d46402a
...
@@ -8,6 +8,16 @@ import java.io.UnsupportedEncodingException;
...
@@ -8,6 +8,16 @@ import java.io.UnsupportedEncodingException;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.util.List
;
import
java.util.List
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.log4j.Logger
;
import
org.apache.struts.util.TokenProcessor
;
import
org.seasar.framework.util.FileUtil
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
import
org.seasar.struts.util.ResponseUtil
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.annotation.OperationHistoryAno
;
import
jp.agentec.sinaburocast.common.annotation.OperationHistoryAno
;
...
@@ -21,16 +31,6 @@ import jp.agentec.sinaburocast.service.MemberService;
...
@@ -21,16 +31,6 @@ import jp.agentec.sinaburocast.service.MemberService;
import
jp.agentec.sinaburocast.service.UploadErrorService
;
import
jp.agentec.sinaburocast.service.UploadErrorService
;
import
jp.agentec.sinaburocast.service.csv.CsvService
;
import
jp.agentec.sinaburocast.service.csv.CsvService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.log4j.Logger
;
import
org.apache.struts.util.TokenProcessor
;
import
org.seasar.framework.util.FileUtil
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
import
org.seasar.struts.util.ResponseUtil
;
/**
/**
* @author kim-hs
* @author kim-hs
*
*
...
@@ -41,7 +41,7 @@ public class MemberRegistAllAction extends AbstractAction {
...
@@ -41,7 +41,7 @@ public class MemberRegistAllAction extends AbstractAction {
private
final
Logger
logger
=
Logger
.
getLogger
(
getClass
());
private
final
Logger
logger
=
Logger
.
getLogger
(
getClass
());
private
final
String
header
=
"\"会員ID\"\t\"ログインID\"\t\"パスワード\"\t\"氏\"\t\"名\"\t\"氏(カナ)\"\t\"名(カナ)\"\t\"
PCメールアドレス\"\t\"携帯メールアドレス
\"\t\"電話\"\t\"性別\"\t\""
+
private
final
String
header
=
"\"会員ID\"\t\"ログインID\"\t\"パスワード\"\t\"氏\"\t\"名\"\t\"氏(カナ)\"\t\"名(カナ)\"\t\"
E-mail(メイン)\"\t\"E-mail(サブ)
\"\t\"電話\"\t\"性別\"\t\""
+
"生年月日\"\t\"年代\"\t\"郵便番号\"\t\"都道府県\"\t\"市区町村\"\t\"町名・番地\"\t\"建物名\"\t\"ポイント\"\t\"メモ\"\t\"削除フラグ\"\t\"退会有無\""
+
"\r\n"
;
"生年月日\"\t\"年代\"\t\"郵便番号\"\t\"都道府県\"\t\"市区町村\"\t\"町名・番地\"\t\"建物名\"\t\"ポイント\"\t\"メモ\"\t\"削除フラグ\"\t\"退会有無\""
+
"\r\n"
;
@ActionForm
@ActionForm
...
...
src/main/java/jp/agentec/sinaburocast/action/user/PointUseAction.java
View file @
7d46402a
...
@@ -76,7 +76,7 @@ public class PointUseAction extends AbstractAction {
...
@@ -76,7 +76,7 @@ public class PointUseAction extends AbstractAction {
if
(
StringUtil
.
isBlank
(
member
.
zipCode
)
||
member
.
prefectureId
==
null
||
StringUtil
.
isBlank
(
member
.
cityName
)
||
StringUtil
.
isBlank
(
member
.
areaName
)
||
StringUtil
.
isBlank
(
member
.
telno
)
if
(
StringUtil
.
isBlank
(
member
.
zipCode
)
||
member
.
prefectureId
==
null
||
StringUtil
.
isBlank
(
member
.
cityName
)
||
StringUtil
.
isBlank
(
member
.
areaName
)
||
StringUtil
.
isBlank
(
member
.
telno
)
||
StringUtil
.
isBlank
(
member
.
firstName
)
||
StringUtil
.
isBlank
(
member
.
lastName
)
||
StringUtil
.
isBlank
(
member
.
firstNameKana
)
||
StringUtil
.
isBlank
(
member
.
lastNameKana
)
||
StringUtil
.
isBlank
(
member
.
firstName
)
||
StringUtil
.
isBlank
(
member
.
lastName
)
||
StringUtil
.
isBlank
(
member
.
firstNameKana
)
||
StringUtil
.
isBlank
(
member
.
lastNameKana
)
||
member
.
genderCd
==
null
||
StringUtil
.
isBlank
(
member
.
birthday
))
{
||
StringUtil
.
isBlank
(
member
.
birthday
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
...
@@ -277,11 +277,11 @@ public class PointUseAction extends AbstractAction {
...
@@ -277,11 +277,11 @@ public class PointUseAction extends AbstractAction {
//メール送信
//メール送信
try
{
try
{
Message
message
=
messageService
.
findById
(
SinaburoConstant
.
MessageCode
.
MEMBER_CARD_RECEIPT
);
Message
message
=
messageService
.
findById
(
SinaburoConstant
.
MessageCode
.
MEMBER_CARD_RECEIPT
);
if
(!
StringUtil
.
isBlank
(
member
.
p
cEmail
))
{
if
(!
StringUtil
.
isBlank
(
member
.
mainP
cEmail
))
{
MailUtil
.
send
(
member
.
p
cEmail
,
PropertyUtil
.
getProperty
(
"MEMBER_CARD_RECEIPT_MAIL_TITLE"
),
message
.
message
);
MailUtil
.
send
(
member
.
mainP
cEmail
,
PropertyUtil
.
getProperty
(
"MEMBER_CARD_RECEIPT_MAIL_TITLE"
),
message
.
message
);
}
}
if
(!
StringUtil
.
isBlank
(
member
.
mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
member
.
subPc
Email
))
{
MailUtil
.
send
(
member
.
mb
Email
,
PropertyUtil
.
getProperty
(
"MEMBER_CARD_RECEIPT_MAIL_TITLE"
),
message
.
message
);
MailUtil
.
send
(
member
.
subPc
Email
,
PropertyUtil
.
getProperty
(
"MEMBER_CARD_RECEIPT_MAIL_TITLE"
),
message
.
message
);
}
}
}
catch
(
MessagingException
e
)
{
}
catch
(
MessagingException
e
)
{
logger
.
warn
(
"Mail send failed."
+
e
.
toString
());
logger
.
warn
(
"Mail send failed."
+
e
.
toString
());
...
@@ -333,11 +333,11 @@ public class PointUseAction extends AbstractAction {
...
@@ -333,11 +333,11 @@ public class PointUseAction extends AbstractAction {
}
else
{
}
else
{
giftExchangeInfo
=
giftExchangeInfoService
.
findGiftExchangeInfoById
(
SinaburoConstant
.
giftType
.
ICHICO
);
giftExchangeInfo
=
giftExchangeInfoService
.
findGiftExchangeInfoById
(
SinaburoConstant
.
giftType
.
ICHICO
);
}
}
if
(!
StringUtil
.
isBlank
(
member
.
p
cEmail
))
{
if
(!
StringUtil
.
isBlank
(
member
.
mainP
cEmail
))
{
MailUtil
.
send
(
member
.
p
cEmail
,
PropertyUtil
.
getProperty
(
"POINT_USE_MAIL_TITLE"
),
giftExchangeInfo
.
mailBody
);
MailUtil
.
send
(
member
.
mainP
cEmail
,
PropertyUtil
.
getProperty
(
"POINT_USE_MAIL_TITLE"
),
giftExchangeInfo
.
mailBody
);
}
}
if
(!
StringUtil
.
isBlank
(
member
.
mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
member
.
subPc
Email
))
{
MailUtil
.
send
(
member
.
mb
Email
,
PropertyUtil
.
getProperty
(
"POINT_USE_MAIL_TITLE"
),
giftExchangeInfo
.
mailBody
);
MailUtil
.
send
(
member
.
subPc
Email
,
PropertyUtil
.
getProperty
(
"POINT_USE_MAIL_TITLE"
),
giftExchangeInfo
.
mailBody
);
}
}
}
catch
(
MessagingException
e
)
{
}
catch
(
MessagingException
e
)
{
logger
.
warn
(
"Mail send failed."
+
e
.
toString
());
logger
.
warn
(
"Mail send failed."
+
e
.
toString
());
...
...
src/main/java/jp/agentec/sinaburocast/action/user/RegistAction.java
View file @
7d46402a
...
@@ -106,9 +106,9 @@ public class RegistAction extends AbstractAction {
...
@@ -106,9 +106,9 @@ public class RegistAction extends AbstractAction {
List
<
Member
>
memberList
=
new
ArrayList
<
Member
>();
List
<
Member
>
memberList
=
new
ArrayList
<
Member
>();
if
(
SinaburoUtil
.
mobileAddressCheck
(
registForm
.
email
))
{
if
(
SinaburoUtil
.
mobileAddressCheck
(
registForm
.
email
))
{
member
.
mb
Email
=
registForm
.
email
;
member
.
subPc
Email
=
registForm
.
email
;
}
else
{
}
else
{
member
.
p
cEmail
=
registForm
.
email
;
member
.
mainP
cEmail
=
registForm
.
email
;
}
}
String
id
=
RandomStringUtils
.
randomAlphanumeric
(
6
);
String
id
=
RandomStringUtils
.
randomAlphanumeric
(
6
);
...
@@ -228,9 +228,9 @@ public class RegistAction extends AbstractAction {
...
@@ -228,9 +228,9 @@ public class RegistAction extends AbstractAction {
// 登録済みのメールアドレスチェック
// 登録済みのメールアドレスチェック
Member
memberInfo
=
null
;
Member
memberInfo
=
null
;
if
(
SinaburoUtil
.
mobileAddressCheck
(
registForm
.
email
))
{
if
(
SinaburoUtil
.
mobileAddressCheck
(
registForm
.
email
))
{
memberInfo
=
memberService
.
findBy
Mo
Email
(
registForm
.
email
);
memberInfo
=
memberService
.
findBy
SubPc
Email
(
registForm
.
email
);
}
else
{
}
else
{
memberInfo
=
memberService
.
findByPcEmail
(
registForm
.
email
);
memberInfo
=
memberService
.
findBy
Main
PcEmail
(
registForm
.
email
);
}
}
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
...
...
src/main/java/jp/agentec/sinaburocast/action/user/TopAction.java
View file @
7d46402a
package
jp
.
agentec
.
sinaburocast
.
action
.
user
;
package
jp
.
agentec
.
sinaburocast
.
action
.
user
;
import
org.apache.log4j.Logger
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.common.annotation.NoLogin
;
import
jp.agentec.sinaburocast.common.annotation.NoLogin
;
import
jp.agentec.sinaburocast.form.user.TopForm
;
import
jp.agentec.sinaburocast.form.user.TopForm
;
import
jp.agentec.sinaburocast.service.TestService
;
import
jp.agentec.sinaburocast.service.TestService
;
import
org.apache.log4j.Logger
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
@NoLogin
@NoLogin
public
class
TopAction
extends
AbstractAction
{
public
class
TopAction
extends
AbstractAction
{
private
final
Logger
logger
=
Logger
.
getLogger
(
getClass
());
private
final
Logger
logger
=
Logger
.
getLogger
(
getClass
());
...
@@ -87,4 +87,10 @@ public class TopAction extends AbstractAction {
...
@@ -87,4 +87,10 @@ public class TopAction extends AbstractAction {
return
"/user/top/faq.html"
;
return
"/user/top/faq.html"
;
}
}
@Execute
(
validator
=
false
)
public
String
newUserRegist
()
{
return
"/user/top/newUserRegist.html"
;
}
}
}
src/main/java/jp/agentec/sinaburocast/action/user/UserEditAction.java
View file @
7d46402a
...
@@ -68,8 +68,8 @@ public class UserEditAction extends AbstractAction {
...
@@ -68,8 +68,8 @@ public class UserEditAction extends AbstractAction {
userEditForm
.
lastName
=
memberInfo
.
lastName
;
userEditForm
.
lastName
=
memberInfo
.
lastName
;
userEditForm
.
firstNameKana
=
memberInfo
.
firstNameKana
;
userEditForm
.
firstNameKana
=
memberInfo
.
firstNameKana
;
userEditForm
.
lastNameKana
=
memberInfo
.
lastNameKana
;
userEditForm
.
lastNameKana
=
memberInfo
.
lastNameKana
;
userEditForm
.
pcEmail
=
memberInfo
.
p
cEmail
;
userEditForm
.
mainPcEmail
=
memberInfo
.
mainP
cEmail
;
userEditForm
.
mbEmail
=
memberInfo
.
mb
Email
;
userEditForm
.
subPcEmail
=
memberInfo
.
subPc
Email
;
userEditForm
.
password
=
memberInfo
.
password
;
userEditForm
.
password
=
memberInfo
.
password
;
userEditForm
.
password2
=
memberInfo
.
password
;
userEditForm
.
password2
=
memberInfo
.
password
;
...
@@ -169,7 +169,7 @@ public class UserEditAction extends AbstractAction {
...
@@ -169,7 +169,7 @@ public class UserEditAction extends AbstractAction {
Member
memberInfo
=
null
;
Member
memberInfo
=
null
;
// メールアドレス登録チェック
// メールアドレス登録チェック
if
(
StringUtil
.
isBlank
(
userEditForm
.
pcEmail
)
&&
StringUtil
.
isBlank
(
userEditForm
.
mb
Email
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
mainPc
Email
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
...
@@ -183,59 +183,44 @@ public class UserEditAction extends AbstractAction {
...
@@ -183,59 +183,44 @@ public class UserEditAction extends AbstractAction {
}
}
//携帯メールチェック
//携帯メールチェック
if
(!
StringUtil
.
isBlank
(
userEditForm
.
mb
Email
))
{
// if (!StringUtil.isBlank(userEditForm.subPc
Email)) {
if
(!
SinaburoUtil
.
mobileAddressCheck
(
userEditForm
.
mb
Email
))
{
// if (!SinaburoUtil.mobileAddressCheck(userEditForm.subPc
Email)) {
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
//
ActionMessages messages = (ActionMessages)request.getAttribute(Globals.ERROR_KEY);
if
(
messages
==
null
)
{
//
if (messages == null) {
messages
=
new
ActionMessages
();
//
messages = new ActionMessages();
}
//
}
messages
.
add
(
"mb
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.mbMail"
))));
// messages.add("subPc
Email", new ActionMessage(SinaburoViewUtil.getMessage("errors.email",SinaburoViewUtil.getMessage("labels.mbMail"))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
//
request.setAttribute(Globals.ERROR_KEY, messages);
return
"/user/userEdit/uEdit.html"
;
//
return "/user/userEdit/uEdit.html";
}
//
}
}
//
}
//メールアドレス重複チェックPCメール
//メールアドレス重複チェックPCメール
if
(!
userEditForm
.
pcEmail
.
trim
().
equals
(
memberInfoSession
.
pcEmail
))
{
if
(!
userEditForm
.
mainPcEmail
.
trim
().
equals
(
memberInfoSession
.
mainPcEmail
))
{
if
(!
StringUtil
.
isBlank
(
userEditForm
.
pcEmail
))
{
memberInfo
=
memberService
.
findByMainPcEmail
(
userEditForm
.
mainPcEmail
);
if
(
SinaburoUtil
.
mobileAddressCheck
(
userEditForm
.
pcEmail
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
}
messages
.
add
(
"pcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.pcMail"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
memberInfo
=
memberService
.
findByPcEmail
(
userEditForm
.
pcEmail
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"p
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
)));
messages
.
add
(
"mainP
cEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
return
"/user/userEdit/uEdit.html"
;
}
}
}
}
}
//メールアドレス重複チェック携帯メール
//メールアドレス重複チェック携帯メール
if
(!
userEditForm
.
mbEmail
.
trim
().
equals
(
memberInfoSession
.
mbEmail
))
{
if
(!
userEditForm
.
subPcEmail
.
trim
().
equals
(
memberInfoSession
.
subPcEmail
))
{
if
(!
StringUtil
.
isBlank
(
userEditForm
.
mbEmail
))
{
if
(!
StringUtil
.
isBlank
(
userEditForm
.
subPcEmail
))
{
memberInfo
=
memberService
.
findBySubPcEmail
(
userEditForm
.
subPcEmail
);
memberInfo
=
memberService
.
findByMoEmail
(
userEditForm
.
mbEmail
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"
mb
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
)));
messages
.
add
(
"
subPc
Email"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
return
"/user/userEdit/uEdit.html"
;
}
}
...
@@ -444,8 +429,8 @@ public class UserEditAction extends AbstractAction {
...
@@ -444,8 +429,8 @@ public class UserEditAction extends AbstractAction {
member
.
lastName
=
userEditForm
.
lastName
;
member
.
lastName
=
userEditForm
.
lastName
;
member
.
firstNameKana
=
userEditForm
.
firstNameKana
;
member
.
firstNameKana
=
userEditForm
.
firstNameKana
;
member
.
lastNameKana
=
userEditForm
.
lastNameKana
;
member
.
lastNameKana
=
userEditForm
.
lastNameKana
;
member
.
pcEmail
=
userEditForm
.
p
cEmail
;
member
.
mainPcEmail
=
userEditForm
.
mainP
cEmail
;
member
.
mbEmail
=
userEditForm
.
mb
Email
;
member
.
subPcEmail
=
userEditForm
.
subPc
Email
;
member
.
password
=
userEditForm
.
password
;
member
.
password
=
userEditForm
.
password
;
member
.
password
=
userEditForm
.
password2
;
member
.
password
=
userEditForm
.
password2
;
member
.
zipCode
=
userEditForm
.
zipCode
;
member
.
zipCode
=
userEditForm
.
zipCode
;
...
...
src/main/java/jp/agentec/sinaburocast/common/SinaburoConstant.java
View file @
7d46402a
...
@@ -122,6 +122,13 @@ public interface SinaburoConstant {
...
@@ -122,6 +122,13 @@ public interface SinaburoConstant {
/** 女性 */
/** 女性 */
int
WOMAN
=
1
;
int
WOMAN
=
1
;
/** その他 */
int
OTHERS
=
2
;
/** 入力しない */
int
DO_NOT_ENTER
=
3
;
}
}
/**
/**
...
...
src/main/java/jp/agentec/sinaburocast/csv/MemberInfoCsv.java
View file @
7d46402a
...
@@ -10,13 +10,6 @@ import java.util.List;
...
@@ -10,13 +10,6 @@ import java.util.List;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
jp.agentec.sinaburocast.common.util.SinaburoUtil
;
import
jp.agentec.sinaburocast.common.util.SinaburoViewUtil
;
import
jp.agentec.sinaburocast.entity.Member
;
import
jp.agentec.sinaburocast.entity.Prefecture
;
import
jp.agentec.sinaburocast.service.MemberService
;
import
jp.agentec.sinaburocast.service.PrefectureService
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.s2csv.csv.annotation.CSVValidator
;
import
org.seasar.s2csv.csv.annotation.CSVValidator
;
import
org.seasar.s2csv.csv.annotation.column.CSVColumn
;
import
org.seasar.s2csv.csv.annotation.column.CSVColumn
;
...
@@ -28,6 +21,13 @@ import org.seasar.s2csv.csv.annotation.entity.CSVRecordValidator;
...
@@ -28,6 +21,13 @@ import org.seasar.s2csv.csv.annotation.entity.CSVRecordValidator;
import
org.seasar.s2csv.csv.exception.runtime.CSVValidationException
;
import
org.seasar.s2csv.csv.exception.runtime.CSVValidationException
;
import
org.seasar.struts.util.RequestUtil
;
import
org.seasar.struts.util.RequestUtil
;
import
jp.agentec.sinaburocast.common.util.SinaburoUtil
;
import
jp.agentec.sinaburocast.common.util.SinaburoViewUtil
;
import
jp.agentec.sinaburocast.entity.Member
;
import
jp.agentec.sinaburocast.entity.Prefecture
;
import
jp.agentec.sinaburocast.service.MemberService
;
import
jp.agentec.sinaburocast.service.PrefectureService
;
/**
/**
* @author kim-hs
* @author kim-hs
*
*
...
@@ -41,8 +41,8 @@ public class MemberInfoCsv extends AbstractCsv {
...
@@ -41,8 +41,8 @@ public class MemberInfoCsv extends AbstractCsv {
private
int
checkMemberId
;
private
int
checkMemberId
;
private
String
checkLoginId
;
private
String
checkLoginId
;
private
String
checkPcEmail
;
private
String
check
Main
PcEmail
;
private
String
check
Mb
Email
;
private
String
check
SubPc
Email
;
private
int
checkDelFlg
;
private
int
checkDelFlg
;
...
@@ -83,15 +83,15 @@ public class MemberInfoCsv extends AbstractCsv {
...
@@ -83,15 +83,15 @@ public class MemberInfoCsv extends AbstractCsv {
@CSVMaxLength
(
maxlength
=
64
)
@CSVMaxLength
(
maxlength
=
64
)
@CSVMask
(
mask
=
"^[!-~]+@[!-~]+$"
)
@CSVMask
(
mask
=
"^[!-~]+@[!-~]+$"
)
@CSVValidator
(
msgKey
=
"errors.
pcEmail"
,
method
=
"validatep
cEmail"
)
@CSVValidator
(
msgKey
=
"errors.
mainPcEmail"
,
method
=
"validateMainP
cEmail"
)
@CSVColumn
(
columnIndex
=
7
,
columnName
=
"
PCメールアドレス
"
)
@CSVColumn
(
columnIndex
=
7
,
columnName
=
"
E-mail(メイン)
"
)
public
String
p
cEmail
;
public
String
mainP
cEmail
;
@CSVMaxLength
(
maxlength
=
64
)
@CSVMaxLength
(
maxlength
=
64
)
@CSVMask
(
mask
=
"^[!-~]+@[!-~]+$"
)
@CSVMask
(
mask
=
"^[!-~]+@[!-~]+$"
)
@CSVValidator
(
msgKey
=
"errors.
mbEmail"
,
method
=
"validatemb
Email"
)
@CSVValidator
(
msgKey
=
"errors.
subPcEmail"
,
method
=
"validateSubPc
Email"
)
@CSVColumn
(
columnIndex
=
8
,
columnName
=
"
携帯メールアドレス
"
)
@CSVColumn
(
columnIndex
=
8
,
columnName
=
"
E-mail(サブ)
"
)
public
String
mb
Email
;
public
String
subPc
Email
;
@CSVMask
(
mask
=
"^[0-9]{8,20}$"
)
@CSVMask
(
mask
=
"^[0-9]{8,20}$"
)
@CSVColumn
(
columnIndex
=
9
,
columnName
=
"電話番号"
)
@CSVColumn
(
columnIndex
=
9
,
columnName
=
"電話番号"
)
...
@@ -268,15 +268,15 @@ public class MemberInfoCsv extends AbstractCsv {
...
@@ -268,15 +268,15 @@ public class MemberInfoCsv extends AbstractCsv {
return
true
;
return
true
;
}
}
public
boolean
validate
p
cEmail
(
String
args
)
{
public
boolean
validate
MainP
cEmail
(
String
args
)
{
// PCメールアドレスの検証は削除フラグの検証で行う
//
メイン
PCメールアドレスの検証は削除フラグの検証で行う
checkPcEmail
=
args
;
check
Main
PcEmail
=
args
;
return
true
;
return
true
;
}
}
public
boolean
validate
mb
Email
(
String
args
)
{
public
boolean
validate
SubPc
Email
(
String
args
)
{
//
携帯
メールアドレスの検証は削除フラグの検証で行う
//
サブPC
メールアドレスの検証は削除フラグの検証で行う
check
Mb
Email
=
args
;
check
SubPc
Email
=
args
;
return
true
;
return
true
;
}
}
...
@@ -319,31 +319,31 @@ public class MemberInfoCsv extends AbstractCsv {
...
@@ -319,31 +319,31 @@ public class MemberInfoCsv extends AbstractCsv {
}
}
// PCメールチェック
//
メイン
PCメールチェック
if
(!
StringUtil
.
isBlank
(
checkPcEmail
))
{
if
(!
StringUtil
.
isBlank
(
check
Main
PcEmail
))
{
memberInfo
=
memberService
.
findBy
PcEmail
(
check
PcEmail
);
memberInfo
=
memberService
.
findBy
MainPcEmail
(
checkMain
PcEmail
);
if
(
memberInfo
!=
null
){
if
(
memberInfo
!=
null
){
if
(!
memberInfo
.
memberId
.
equals
(
checkMemberId
))
{
if
(!
memberInfo
.
memberId
.
equals
(
checkMemberId
))
{
errorMessage
.
append
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
));
errorMessage
.
append
(
SinaburoViewUtil
.
getMessage
(
"errors.E014"
));
}
}
}
}
if
(
SinaburoUtil
.
mobileAddressCheck
(
checkPcEmail
))
{
if
(
SinaburoUtil
.
mobileAddressCheck
(
check
Main
PcEmail
))
{
errorMessage
.
append
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.pcMail"
)));
errorMessage
.
append
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.pcMail"
)));
}
}
}
}
//
携帯
メールチェック
//
サブPC
メールチェック
if
(!
StringUtil
.
isBlank
(
check
Mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
check
SubPc
Email
))
{
memberInfo
=
memberService
.
findBy
MoEmail
(
checkMb
Email
);
memberInfo
=
memberService
.
findBy
SubPcEmail
(
checkSubPc
Email
);
if
(
memberInfo
!=
null
){
if
(
memberInfo
!=
null
){
if
(!
memberInfo
.
memberId
.
equals
(
checkMemberId
))
{
if
(!
memberInfo
.
memberId
.
equals
(
checkMemberId
))
{
errorMessage
.
append
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
));
errorMessage
.
append
(
SinaburoViewUtil
.
getMessage
(
"errors.E015"
));
}
}
}
}
if
(!
SinaburoUtil
.
mobileAddressCheck
(
check
Mb
Email
))
{
if
(!
SinaburoUtil
.
mobileAddressCheck
(
check
SubPc
Email
))
{
errorMessage
.
append
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.mbMail"
)));
errorMessage
.
append
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.mbMail"
)));
}
}
}
}
...
...
src/main/java/jp/agentec/sinaburocast/csv/MemberMigrationInfoCsv.java
View file @
7d46402a
...
@@ -11,12 +11,6 @@ import java.util.List;
...
@@ -11,12 +11,6 @@ import java.util.List;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.entity.Member
;
import
jp.agentec.sinaburocast.entity.Prefecture
;
import
jp.agentec.sinaburocast.service.MemberService
;
import
jp.agentec.sinaburocast.service.PrefectureService
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.framework.util.StringUtil
;
import
org.seasar.s2csv.csv.annotation.CSVValidator
;
import
org.seasar.s2csv.csv.annotation.CSVValidator
;
import
org.seasar.s2csv.csv.annotation.column.CSVColumn
;
import
org.seasar.s2csv.csv.annotation.column.CSVColumn
;
...
@@ -28,6 +22,12 @@ import org.seasar.s2csv.csv.annotation.entity.CSVRecordValidator;
...
@@ -28,6 +22,12 @@ import org.seasar.s2csv.csv.annotation.entity.CSVRecordValidator;
import
org.seasar.s2csv.csv.exception.runtime.CSVValidationException
;
import
org.seasar.s2csv.csv.exception.runtime.CSVValidationException
;
import
org.seasar.struts.util.RequestUtil
;
import
org.seasar.struts.util.RequestUtil
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.entity.Member
;
import
jp.agentec.sinaburocast.entity.Prefecture
;
import
jp.agentec.sinaburocast.service.MemberService
;
import
jp.agentec.sinaburocast.service.PrefectureService
;
/**
/**
* @author choi-c
* @author choi-c
*
*
...
@@ -78,16 +78,16 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
...
@@ -78,16 +78,16 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
@CSVMaxLength
(
maxlength
=
64
)
@CSVMaxLength
(
maxlength
=
64
)
@CSVValidator
(
msgKey
=
"errors.
pcEmail"
,
method
=
"validatep
cEmail"
)
@CSVValidator
(
msgKey
=
"errors.
mainPcEmail"
,
method
=
"validateMainP
cEmail"
)
@CSVMask
(
mask
=
"^[!-~]+@[!-~]+$"
)
@CSVMask
(
mask
=
"^[!-~]+@[!-~]+$"
)
@CSVColumn
(
columnIndex
=
9
,
columnName
=
"メールアドレス(PC)"
)
@CSVColumn
(
columnIndex
=
9
,
columnName
=
"メールアドレス(PC)"
)
public
String
p
cEmail
;
public
String
mainP
cEmail
;
@CSVMaxLength
(
maxlength
=
64
)
@CSVMaxLength
(
maxlength
=
64
)
@CSVValidator
(
msgKey
=
"errors.
mbEmail"
,
method
=
"validatemb
Email"
)
@CSVValidator
(
msgKey
=
"errors.
subPcEmail"
,
method
=
"validateSubPc
Email"
)
@CSVMask
(
mask
=
"^[!-~]+@[!-~]+$"
)
@CSVMask
(
mask
=
"^[!-~]+@[!-~]+$"
)
@CSVColumn
(
columnIndex
=
10
,
columnName
=
"メールアドレス(
携帯
)"
)
@CSVColumn
(
columnIndex
=
10
,
columnName
=
"メールアドレス(
サブPC
)"
)
public
String
mb
Email
;
public
String
subPc
Email
;
@CSVValidator
(
msgKey
=
"errors.prefecture"
,
method
=
"validatezipCode"
)
@CSVValidator
(
msgKey
=
"errors.prefecture"
,
method
=
"validatezipCode"
)
//@CSVMask(mask = "^[0-9]{7}$")
//@CSVMask(mask = "^[0-9]{7}$")
...
@@ -203,6 +203,10 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
...
@@ -203,6 +203,10 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
genderCd
=
SinaburoConstant
.
GenderType
.
MAN
;
genderCd
=
SinaburoConstant
.
GenderType
.
MAN
;
}
else
if
(
args
.
equals
(
"女性"
))
{
}
else
if
(
args
.
equals
(
"女性"
))
{
genderCd
=
SinaburoConstant
.
GenderType
.
WOMAN
;
genderCd
=
SinaburoConstant
.
GenderType
.
WOMAN
;
}
else
if
(
args
.
equals
(
"その他"
))
{
genderCd
=
SinaburoConstant
.
GenderType
.
OTHERS
;
}
else
if
(
args
.
equals
(
"入力しない"
))
{
genderCd
=
SinaburoConstant
.
GenderType
.
DO_NOT_ENTER
;
}
else
{
}
else
{
genderCd
=
null
;
genderCd
=
null
;
}
}
...
@@ -269,7 +273,7 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
...
@@ -269,7 +273,7 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
//
//
// }
// }
public
boolean
validate
p
cEmail
(
String
args
)
{
public
boolean
validate
MainP
cEmail
(
String
args
)
{
boolean
result
=
false
;
boolean
result
=
false
;
...
@@ -277,13 +281,13 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
...
@@ -277,13 +281,13 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
if
(
StringUtil
.
isBlank
(
args
))
return
true
;
if
(
StringUtil
.
isBlank
(
args
))
return
true
;
memberInfo
=
memberService
.
findByPcEmail
(
args
);
memberInfo
=
memberService
.
findBy
Main
PcEmail
(
args
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
if
(
StringUtil
.
isBlank
(
args
))
{
if
(
StringUtil
.
isBlank
(
args
))
{
result
=
false
;
result
=
false
;
throw
new
CSVValidationException
(
throw
new
CSVValidationException
(
"errors.
p
cEmail"
,
"errors.
mainP
cEmail"
,
new
Object
[]{
"costom validation error"
}
new
Object
[]{
"costom validation error"
}
);
);
}
}
...
@@ -293,7 +297,7 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
...
@@ -293,7 +297,7 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
}
}
result
=
false
;
result
=
false
;
throw
new
CSVValidationException
(
throw
new
CSVValidationException
(
"errors.
p
cEmail"
,
"errors.
mainP
cEmail"
,
new
Object
[]{
"costom validation error"
}
new
Object
[]{
"costom validation error"
}
);
);
}
}
...
@@ -311,7 +315,7 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
...
@@ -311,7 +315,7 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
return
result
;
return
result
;
}
}
public
boolean
validate
mb
Email
(
String
args
)
{
public
boolean
validate
SubPc
Email
(
String
args
)
{
boolean
result
=
false
;
boolean
result
=
false
;
...
@@ -319,13 +323,13 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
...
@@ -319,13 +323,13 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
if
(
StringUtil
.
isBlank
(
args
))
return
true
;
if
(
StringUtil
.
isBlank
(
args
))
return
true
;
memberInfo
=
memberService
.
findBy
Mo
Email
(
args
);
memberInfo
=
memberService
.
findBy
SubPc
Email
(
args
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
if
(
StringUtil
.
isBlank
(
args
))
{
if
(
StringUtil
.
isBlank
(
args
))
{
result
=
false
;
result
=
false
;
throw
new
CSVValidationException
(
throw
new
CSVValidationException
(
"errors.
mb
Email"
,
"errors.
subPc
Email"
,
new
Object
[]{
"costom validation error"
}
new
Object
[]{
"costom validation error"
}
);
);
}
}
...
@@ -334,7 +338,7 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
...
@@ -334,7 +338,7 @@ public class MemberMigrationInfoCsv extends AbstractCsv {
}
}
result
=
false
;
result
=
false
;
throw
new
CSVValidationException
(
throw
new
CSVValidationException
(
"errors.
mb
Email"
,
"errors.
subPc
Email"
,
new
Object
[]{
"costom validation error"
}
new
Object
[]{
"costom validation error"
}
);
);
}
}
...
...
src/main/java/jp/agentec/sinaburocast/entity/Member.java
View file @
7d46402a
...
@@ -45,11 +45,11 @@ public class Member extends AbstractEntity {
...
@@ -45,11 +45,11 @@ public class Member extends AbstractEntity {
@Column
(
name
=
"last_name_kana"
)
@Column
(
name
=
"last_name_kana"
)
public
String
lastNameKana
;
public
String
lastNameKana
;
@Column
(
name
=
"pc_email"
)
@Column
(
name
=
"
main_
pc_email"
)
public
String
p
cEmail
;
public
String
mainP
cEmail
;
@Column
(
name
=
"
mb
_email"
)
@Column
(
name
=
"
sub_pc
_email"
)
public
String
mb
Email
;
public
String
subPc
Email
;
@Column
(
name
=
"zip_code"
)
@Column
(
name
=
"zip_code"
)
public
String
zipCode
;
public
String
zipCode
;
...
...
src/main/java/jp/agentec/sinaburocast/form/admin/member/MemberEditForm.java
View file @
7d46402a
...
@@ -53,12 +53,12 @@ public class MemberEditForm {
...
@@ -53,12 +53,12 @@ public class MemberEditForm {
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.pcMail"))
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.pcMail"))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.pcMail"
))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.pcMail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.pcMail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.pcMail"
))
public
String
p
cEmail
;
public
String
mainP
cEmail
;
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.mbMail"))
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.mbMail"))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.mbMail"
))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.mbMail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.mbMail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.mbMail"
))
public
String
mb
Email
;
public
String
subPc
Email
;
@Mask
(
mask
=
"^[0-9]{7}$"
,
msg
=
@Msg
(
key
=
"errors.invalid"
),
arg0
=
@Arg
(
key
=
"labels.zipCode"
))
@Mask
(
mask
=
"^[0-9]{7}$"
,
msg
=
@Msg
(
key
=
"errors.invalid"
),
arg0
=
@Arg
(
key
=
"labels.zipCode"
))
public
String
zipCode
;
public
String
zipCode
;
...
@@ -96,8 +96,8 @@ public class MemberEditForm {
...
@@ -96,8 +96,8 @@ public class MemberEditForm {
public
String
withDrawFlg
;
public
String
withDrawFlg
;
public
String
loginIdBefore
;
public
String
loginIdBefore
;
public
String
p
cEmailBefore
;
public
String
mainP
cEmailBefore
;
public
String
mb
EmailBefore
;
public
String
subPc
EmailBefore
;
public
String
withDrawFlgBefore
;
public
String
withDrawFlgBefore
;
@Override
@Override
...
...
src/main/java/jp/agentec/sinaburocast/form/admin/member/MemberSearchForm.java
View file @
7d46402a
...
@@ -4,8 +4,6 @@
...
@@ -4,8 +4,6 @@
package
jp
.
agentec
.
sinaburocast
.
form
.
admin
.
member
;
package
jp
.
agentec
.
sinaburocast
.
form
.
admin
.
member
;
import
jp.agentec.sinaburocast.form.admin.setting.PagingForm
;
import
org.apache.commons.lang.builder.StandardToStringStyle
;
import
org.apache.commons.lang.builder.StandardToStringStyle
;
import
org.apache.commons.lang.builder.ToStringBuilder
;
import
org.apache.commons.lang.builder.ToStringBuilder
;
import
org.seasar.framework.container.annotation.tiger.Component
;
import
org.seasar.framework.container.annotation.tiger.Component
;
...
@@ -15,6 +13,8 @@ import org.seasar.struts.annotation.Mask;
...
@@ -15,6 +13,8 @@ import org.seasar.struts.annotation.Mask;
import
org.seasar.struts.annotation.Maxlength
;
import
org.seasar.struts.annotation.Maxlength
;
import
org.seasar.struts.annotation.Msg
;
import
org.seasar.struts.annotation.Msg
;
import
jp.agentec.sinaburocast.form.admin.setting.PagingForm
;
/**
/**
* @author kim-hs
* @author kim-hs
*
*
...
@@ -36,9 +36,12 @@ public class MemberSearchForm extends PagingForm{
...
@@ -36,9 +36,12 @@ public class MemberSearchForm extends PagingForm{
public
String
lastNameKana
;
public
String
lastNameKana
;
public
String
pcEmail
;
public
String
mainPcEmail
;
public
String
subPcEmail
;
public
String
mbEmail
;
// メイン、サブいずれか含む検索
public
String
searchPcEmail
;
@Mask
(
mask
=
"^[0-9]{7}$"
,
msg
=
@Msg
(
key
=
"errors.zipcode"
),
arg0
=
@Arg
(
key
=
"labels.zipCode.from"
),
target
=
"memberSearchResult"
)
@Mask
(
mask
=
"^[0-9]{7}$"
,
msg
=
@Msg
(
key
=
"errors.zipcode"
),
arg0
=
@Arg
(
key
=
"labels.zipCode.from"
),
target
=
"memberSearchResult"
)
public
String
zipCode
;
public
String
zipCode
;
...
@@ -93,8 +96,9 @@ public class MemberSearchForm extends PagingForm{
...
@@ -93,8 +96,9 @@ public class MemberSearchForm extends PagingForm{
lastName
=
null
;
lastName
=
null
;
firstNameKana
=
null
;
firstNameKana
=
null
;
lastNameKana
=
null
;
lastNameKana
=
null
;
pcEmail
=
null
;
mainPcEmail
=
null
;
mbEmail
=
null
;
subPcEmail
=
null
;
searchPcEmail
=
null
;
zipCode
=
null
;
zipCode
=
null
;
zipCode1
=
null
;
zipCode1
=
null
;
pageNo
=
1
;
pageNo
=
1
;
...
...
src/main/java/jp/agentec/sinaburocast/form/user/UserEditForm.java
View file @
7d46402a
...
@@ -41,14 +41,18 @@ public class UserEditForm {
...
@@ -41,14 +41,18 @@ public class UserEditForm {
public
String
lastNameKana
;
public
String
lastNameKana
;
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.pcMail"))
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.pcMail"))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.
p
cMail"
))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.
mainP
cMail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.
p
cMail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.
mainP
cMail"
))
public
String
p
cEmail
;
public
String
mainP
cEmail
;
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.mbMail"))
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.mbMail"))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.mbMail"
))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.subPcMail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.mbMail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.subPcMail"
))
public
String
mbEmail
;
public
String
subPcEmail
;
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.email"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.email"
))
public
String
searchPcEmail
;
@Required
(
msg
=
@Msg
(
key
=
"errors.required"
),
arg0
=
@Arg
(
key
=
"labels.zipCode"
),
target
=
"addrSearchUseMb"
)
@Required
(
msg
=
@Msg
(
key
=
"errors.required"
),
arg0
=
@Arg
(
key
=
"labels.zipCode"
),
target
=
"addrSearchUseMb"
)
@Mask
(
mask
=
"^[0-9]{7}$"
,
msg
=
@Msg
(
key
=
"errors.invalid"
),
arg0
=
@Arg
(
key
=
"labels.zipCode"
))
@Mask
(
mask
=
"^[0-9]{7}$"
,
msg
=
@Msg
(
key
=
"errors.invalid"
),
arg0
=
@Arg
(
key
=
"labels.zipCode"
))
...
...
src/main/java/jp/agentec/sinaburocast/logic/MemberRegisterBatchLogic.java
View file @
7d46402a
...
@@ -112,9 +112,9 @@ public class MemberRegisterBatchLogic {
...
@@ -112,9 +112,9 @@ public class MemberRegisterBatchLogic {
private
void
sendRegisterMail
(
String
email
)
throws
Exception
{
private
void
sendRegisterMail
(
String
email
)
throws
Exception
{
Member
member
;
Member
member
;
if
(
SinaburoUtil
.
mobileAddressCheck
(
email
))
{
if
(
SinaburoUtil
.
mobileAddressCheck
(
email
))
{
member
=
memberService
.
findBy
Mo
Email
(
email
);
member
=
memberService
.
findBy
SubPc
Email
(
email
);
}
else
{
}
else
{
member
=
memberService
.
findByPcEmail
(
email
);
member
=
memberService
.
findBy
Main
PcEmail
(
email
);
}
}
if
(
member
!=
null
)
{
// すでに登録されている場合のメール送信
if
(
member
!=
null
)
{
// すでに登録されている場合のメール送信
...
@@ -144,11 +144,11 @@ public class MemberRegisterBatchLogic {
...
@@ -144,11 +144,11 @@ public class MemberRegisterBatchLogic {
List
<
Member
>
memberList
=
new
ArrayList
<
Member
>();
List
<
Member
>
memberList
=
new
ArrayList
<
Member
>();
if
(
SinaburoUtil
.
mobileAddressCheck
(
email
))
{
if
(
SinaburoUtil
.
mobileAddressCheck
(
email
))
{
member
.
mb
Email
=
email
;
member
.
subPc
Email
=
email
;
memberInfo
=
memberService
.
findBy
Mo
Email
(
email
);
memberInfo
=
memberService
.
findBy
SubPc
Email
(
email
);
}
else
{
}
else
{
member
.
p
cEmail
=
email
;
member
.
mainP
cEmail
=
email
;
memberInfo
=
memberService
.
findByPcEmail
(
email
);
memberInfo
=
memberService
.
findBy
Main
PcEmail
(
email
);
}
}
if
(
memberInfo
==
null
)
{
if
(
memberInfo
==
null
)
{
...
...
src/main/java/jp/agentec/sinaburocast/service/EnqueteMailAddressTmpService.java
View file @
7d46402a
...
@@ -31,8 +31,8 @@ public class EnqueteMailAddressTmpService extends AbstractService<EnqueteMailAdd
...
@@ -31,8 +31,8 @@ public class EnqueteMailAddressTmpService extends AbstractService<EnqueteMailAdd
for
(
EnqueteMailAddressTmp
address
:
select
().
where
(
new
SimpleWhere
().
eq
(
"enqueteMailId"
,
enqueteMailId
)).
getResultList
())
{
for
(
EnqueteMailAddressTmp
address
:
select
().
where
(
new
SimpleWhere
().
eq
(
"enqueteMailId"
,
enqueteMailId
)).
getResultList
())
{
DeliveryGroupMember
deliveryGroupMember
=
new
DeliveryGroupMember
();
DeliveryGroupMember
deliveryGroupMember
=
new
DeliveryGroupMember
();
Member
member
=
new
Member
();
Member
member
=
new
Member
();
member
.
p
cEmail
=
address
.
email
;
member
.
mainP
cEmail
=
address
.
email
;
member
.
mb
Email
=
address
.
email
;
member
.
subPc
Email
=
address
.
email
;
member
.
firstName
=
""
;
member
.
firstName
=
""
;
member
.
lastName
=
""
;
member
.
lastName
=
""
;
member
.
loginId
=
""
;
member
.
loginId
=
""
;
...
@@ -58,7 +58,7 @@ public class EnqueteMailAddressTmpService extends AbstractService<EnqueteMailAdd
...
@@ -58,7 +58,7 @@ public class EnqueteMailAddressTmpService extends AbstractService<EnqueteMailAdd
for
(
DeliveryGroupMember
address
:
addressList
)
{
for
(
DeliveryGroupMember
address
:
addressList
)
{
EnqueteMailAddressTmp
entity
=
new
EnqueteMailAddressTmp
();
EnqueteMailAddressTmp
entity
=
new
EnqueteMailAddressTmp
();
entity
.
enqueteMailId
=
enqueteMailId
;
entity
.
enqueteMailId
=
enqueteMailId
;
entity
.
email
=
address
.
member
.
p
cEmail
;
entity
.
email
=
address
.
member
.
mainP
cEmail
;
insert
(
entity
,
insIdStr
);
insert
(
entity
,
insIdStr
);
}
}
}
}
...
...
src/main/java/jp/agentec/sinaburocast/service/EnqueteMailService.java
View file @
7d46402a
...
@@ -245,15 +245,15 @@ public class EnqueteMailService extends AbstractService<EnqueteMail> {
...
@@ -245,15 +245,15 @@ public class EnqueteMailService extends AbstractService<EnqueteMail> {
for
(
DeliveryGroupMember
member
:
list
)
{
for
(
DeliveryGroupMember
member
:
list
)
{
String
email
=
null
;
String
email
=
null
;
if
(
enqueteMail
.
deliveryTargetType
.
equals
(
SinaburoConstant
.
DeliveryTargetType
.
PC
))
{
if
(
enqueteMail
.
deliveryTargetType
.
equals
(
SinaburoConstant
.
DeliveryTargetType
.
PC
))
{
if
(
StringUtil
.
isBlank
(
member
.
member
.
p
cEmail
))
{
if
(
StringUtil
.
isBlank
(
member
.
member
.
mainP
cEmail
))
{
continue
;
continue
;
}
}
email
=
member
.
member
.
p
cEmail
;
email
=
member
.
member
.
mainP
cEmail
;
}
else
{
}
else
{
if
(
StringUtil
.
isBlank
(
member
.
member
.
mb
Email
))
{
if
(
StringUtil
.
isBlank
(
member
.
member
.
subPc
Email
))
{
continue
;
continue
;
}
}
email
=
member
.
member
.
mb
Email
;
email
=
member
.
member
.
subPc
Email
;
}
}
String
contents
=
enqueteMail
.
mailBody
;
String
contents
=
enqueteMail
.
mailBody
;
...
@@ -350,8 +350,8 @@ public class EnqueteMailService extends AbstractService<EnqueteMail> {
...
@@ -350,8 +350,8 @@ public class EnqueteMailService extends AbstractService<EnqueteMail> {
for
(
MailCsv
csv
:
list
)
{
for
(
MailCsv
csv
:
list
)
{
DeliveryGroupMember
deliveryGroupMember
=
new
DeliveryGroupMember
();
DeliveryGroupMember
deliveryGroupMember
=
new
DeliveryGroupMember
();
Member
member
=
new
Member
();
Member
member
=
new
Member
();
member
.
p
cEmail
=
csv
.
mailAddress
;
member
.
mainP
cEmail
=
csv
.
mailAddress
;
member
.
mb
Email
=
csv
.
mailAddress
;
member
.
subPc
Email
=
csv
.
mailAddress
;
member
.
firstName
=
""
;
member
.
firstName
=
""
;
member
.
lastName
=
""
;
member
.
lastName
=
""
;
member
.
loginId
=
""
;
member
.
loginId
=
""
;
...
...
src/main/java/jp/agentec/sinaburocast/service/EnqueteService.java
View file @
7d46402a
...
@@ -1185,7 +1185,7 @@ public class EnqueteService extends AbstractService<Enquete> {
...
@@ -1185,7 +1185,7 @@ public class EnqueteService extends AbstractService<Enquete> {
StringBuffer
str
=
new
StringBuffer
();
StringBuffer
str
=
new
StringBuffer
();
if
(
hasHeader
){
if
(
hasHeader
){
str
.
append
(
"\"会員ID\"\t\"ログインID\"\t\"パスワード\"\t\"氏\"\t\"名\"\t\"氏(カナ)\"\t\"名(カナ)\"\t\"
PCメールアドレス\"\t\"携帯メールアドレス
\"\t\"電話\"\t\"性別\"\t\""
+
str
.
append
(
"\"会員ID\"\t\"ログインID\"\t\"パスワード\"\t\"氏\"\t\"名\"\t\"氏(カナ)\"\t\"名(カナ)\"\t\"
E-mail(メイン)\"\t\"E-mail(サブ)
\"\t\"電話\"\t\"性別\"\t\""
+
"生年月日\"\t\"年代\"\t\"郵便番号\"\t\"都道府県\"\t\"市区町村\"\t\"町名・番地\"\t\"建物名\"\t\"ポイント\"\t\"メモ\"\t\"削除フラグ\""
);
"生年月日\"\t\"年代\"\t\"郵便番号\"\t\"都道府県\"\t\"市区町村\"\t\"町名・番地\"\t\"建物名\"\t\"ポイント\"\t\"メモ\"\t\"削除フラグ\""
);
if
(
isMemberWithdraw
){
if
(
isMemberWithdraw
){
...
@@ -1205,12 +1205,16 @@ public class EnqueteService extends AbstractService<Enquete> {
...
@@ -1205,12 +1205,16 @@ public class EnqueteService extends AbstractService<Enquete> {
for
(
Member
report
:
list
)
{
for
(
Member
report
:
list
)
{
str
.
append
(
"\""
+
report
.
memberId
+
"\"\t\""
+
report
.
loginId
+
"\"\t\""
+
report
.
password
+
"\"\t\""
+
report
.
firstName
+
"\"\t\""
+
report
.
lastName
+
"\"\t\""
+
report
.
firstNameKana
+
"\"\t\""
+
report
.
lastNameKana
);
str
.
append
(
"\""
+
report
.
memberId
+
"\"\t\""
+
report
.
loginId
+
"\"\t\""
+
report
.
password
+
"\"\t\""
+
report
.
firstName
+
"\"\t\""
+
report
.
lastName
+
"\"\t\""
+
report
.
firstNameKana
+
"\"\t\""
+
report
.
lastNameKana
);
str
.
append
(
"\"\t\""
+
report
.
pcEmail
+
"\"\t\""
+
report
.
mb
Email
+
"\"\t\""
+
report
.
telno
+
"\"\t\""
);
str
.
append
(
"\"\t\""
+
report
.
mainPcEmail
+
"\"\t\""
+
report
.
subPc
Email
+
"\"\t\""
+
report
.
telno
+
"\"\t\""
);
if
(
report
.
genderCd
!=
null
)
{
if
(
report
.
genderCd
!=
null
)
{
if
(
report
.
genderCd
==
SinaburoConstant
.
GenderType
.
MAN
)
{
if
(
report
.
genderCd
==
SinaburoConstant
.
GenderType
.
MAN
)
{
str
.
append
(
"男"
);
str
.
append
(
"男"
);
}
else
if
(
report
.
genderCd
==
SinaburoConstant
.
GenderType
.
WOMAN
)
{
}
else
if
(
report
.
genderCd
==
SinaburoConstant
.
GenderType
.
WOMAN
)
{
str
.
append
(
"女"
);
str
.
append
(
"女"
);
}
else
if
(
report
.
genderCd
==
SinaburoConstant
.
GenderType
.
OTHERS
)
{
str
.
append
(
"その他"
);
}
else
if
(
report
.
genderCd
==
SinaburoConstant
.
GenderType
.
DO_NOT_ENTER
)
{
str
.
append
(
"入力しない"
);
}
else
{
}
else
{
str
.
append
(
""
);
str
.
append
(
""
);
}
}
...
...
src/main/java/jp/agentec/sinaburocast/service/GiftExchangeService.java
View file @
7d46402a
...
@@ -135,7 +135,7 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
...
@@ -135,7 +135,7 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
str
.
append
(
"\""
+
giftExchange
.
member
.
firstName
+
" "
+
giftExchange
.
member
.
lastName
+
"\","
);
str
.
append
(
"\""
+
giftExchange
.
member
.
firstName
+
" "
+
giftExchange
.
member
.
lastName
+
"\","
);
//メールアドレス
//メールアドレス
str
.
append
(
"\""
+
replaceNullWithBlank
(
giftExchange
.
member
.
p
cEmail
)
+
"\","
);
str
.
append
(
"\""
+
replaceNullWithBlank
(
giftExchange
.
member
.
mainP
cEmail
)
+
"\","
);
//申請枚数
//申請枚数
String
unit
=
null
;
String
unit
=
null
;
...
...
src/main/java/jp/agentec/sinaburocast/service/MemberService.java
View file @
7d46402a
...
@@ -92,8 +92,8 @@ public class MemberService extends AbstractService<Member> {
...
@@ -92,8 +92,8 @@ public class MemberService extends AbstractService<Member> {
* @return emailが一致するMember情報
* @return emailが一致するMember情報
*/
*/
public
List
<
Member
>
findByEmail
(
String
email
)
{
public
List
<
Member
>
findByEmail
(
String
email
)
{
//入力されたemailで
mb_email,
pc_emailともに検索する。
//入力されたemailで
sub_pc_email,main_
pc_emailともに検索する。
return
jdbcManager
.
from
(
Member
.
class
).
where
(
" '"
+
email
+
"' in (
mb_email,
pc_email) and del_flg = ? and valid_flg = ? "
return
jdbcManager
.
from
(
Member
.
class
).
where
(
" '"
+
email
+
"' in (
sub_pc_email,main_
pc_email) and del_flg = ? and valid_flg = ? "
,
Integer
.
parseInt
(
SinaburoConstant
.
DelFlg
.
NOT_DEL
)
,
Integer
.
parseInt
(
SinaburoConstant
.
DelFlg
.
NOT_DEL
)
,
SinaburoConstant
.
ValidFlg
.
VALID
,
SinaburoConstant
.
ValidFlg
.
VALID
).
getResultList
();
).
getResultList
();
...
@@ -101,19 +101,19 @@ public class MemberService extends AbstractService<Member> {
...
@@ -101,19 +101,19 @@ public class MemberService extends AbstractService<Member> {
public
Member
findByPcEmail
(
String
mail
)
{
public
Member
findBy
Main
PcEmail
(
String
mail
)
{
return
select
().
where
(
new
SimpleWhere
()
return
select
().
where
(
new
SimpleWhere
()
.
eq
(
"
p
cEmail"
,
mail
)
.
eq
(
"
mainP
cEmail"
,
mail
)
.
eq
(
"validFlg"
,
SinaburoConstant
.
MemberValidFlg
.
VALID
)
.
eq
(
"validFlg"
,
SinaburoConstant
.
MemberValidFlg
.
VALID
)
.
eq
(
"delFlg"
,
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
)
.
eq
(
"delFlg"
,
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
)
).
orderBy
(
"memberId asc"
).
getSingleResult
();
).
orderBy
(
"memberId asc"
).
getSingleResult
();
}
}
public
Member
findBy
Mo
Email
(
String
mail
)
{
public
Member
findBy
SubPc
Email
(
String
mail
)
{
return
select
().
where
(
new
SimpleWhere
()
return
select
().
where
(
new
SimpleWhere
()
.
eq
(
"
mb
Email"
,
mail
)
.
eq
(
"
subPc
Email"
,
mail
)
.
eq
(
"validFlg"
,
SinaburoConstant
.
MemberValidFlg
.
VALID
)
.
eq
(
"validFlg"
,
SinaburoConstant
.
MemberValidFlg
.
VALID
)
.
eq
(
"delFlg"
,
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
)
.
eq
(
"delFlg"
,
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
)
).
orderBy
(
"memberId asc"
).
getSingleResult
();
).
orderBy
(
"memberId asc"
).
getSingleResult
();
...
@@ -278,16 +278,16 @@ public class MemberService extends AbstractService<Member> {
...
@@ -278,16 +278,16 @@ public class MemberService extends AbstractService<Member> {
values
.
add
(
"%"
+
memberSearchForm
.
lastNameKana
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
values
.
add
(
"%"
+
memberSearchForm
.
lastNameKana
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
flg
=
true
;
flg
=
true
;
}
}
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
p
cEmail
))
{
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
mainP
cEmail
))
{
if
(
flg
)
sql
.
append
(
" and "
);
if
(
flg
)
sql
.
append
(
" and "
);
sql
.
append
(
"pc_email like ? "
);
sql
.
append
(
"
main_
pc_email like ? "
);
values
.
add
(
"%"
+
memberSearchForm
.
p
cEmail
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
values
.
add
(
"%"
+
memberSearchForm
.
mainP
cEmail
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
flg
=
true
;
flg
=
true
;
}
}
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
subPc
Email
))
{
if
(
flg
)
sql
.
append
(
" and "
);
if
(
flg
)
sql
.
append
(
" and "
);
sql
.
append
(
"
mb
_email like ? "
);
sql
.
append
(
"
sub_pc
_email like ? "
);
values
.
add
(
"%"
+
memberSearchForm
.
mb
Email
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
values
.
add
(
"%"
+
memberSearchForm
.
subPc
Email
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
flg
=
true
;
flg
=
true
;
}
}
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
telNo
))
{
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
telNo
))
{
...
@@ -489,10 +489,10 @@ public class MemberService extends AbstractService<Member> {
...
@@ -489,10 +489,10 @@ public class MemberService extends AbstractService<Member> {
dto
.
name1
=
member
.
firstName
;
dto
.
name1
=
member
.
firstName
;
dto
.
name2
=
member
.
lastName
;
dto
.
name2
=
member
.
lastName
;
if
(
StringUtil
.
isBlank
(
member
.
p
cEmail
)
)
{
if
(
StringUtil
.
isBlank
(
member
.
mainP
cEmail
)
)
{
dto
.
mail
=
member
.
mb
Email
;
dto
.
mail
=
member
.
subPc
Email
;
}
else
{
}
else
{
dto
.
mail
=
member
.
p
cEmail
;
dto
.
mail
=
member
.
mainP
cEmail
;
}
}
dto
.
birthDay
=
member
.
birthday
;
dto
.
birthDay
=
member
.
birthday
;
...
@@ -526,14 +526,14 @@ public class MemberService extends AbstractService<Member> {
...
@@ -526,14 +526,14 @@ public class MemberService extends AbstractService<Member> {
sb
.
append
(
" ,COUNT(1) ALL_REG"
);
sb
.
append
(
" ,COUNT(1) ALL_REG"
);
sb
.
append
(
" ,0 ALL_RET "
);
sb
.
append
(
" ,0 ALL_RET "
);
sb
.
append
(
" ,COUNT(1) ALL_JUN "
);
sb
.
append
(
" ,COUNT(1) ALL_JUN "
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(pc_email),'') != '' THEN 1 ELSE 0 END ) PC_REG"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
main_
pc_email),'') != '' THEN 1 ELSE 0 END ) PC_REG"
);
sb
.
append
(
" ,0 PC_RET"
);
sb
.
append
(
" ,0 PC_RET"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(pc_email),'') != '' THEN 1 ELSE 0 END ) PC_JUN"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
main_
pc_email),'') != '' THEN 1 ELSE 0 END ) PC_JUN"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
mb
_email),'') != '' THEN 1 ELSE 0 END ) MB_REG"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
sub_pc
_email),'') != '' THEN 1 ELSE 0 END ) MB_REG"
);
sb
.
append
(
" ,0 MB_RET"
);
sb
.
append
(
" ,0 MB_RET"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
mb
_email),'') != '' THEN 1 ELSE 0 END ) MB_JUN"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
sub_pc
_email),'') != '' THEN 1 ELSE 0 END ) MB_JUN"
);
sb
.
append
(
" FROM"
);
sb
.
append
(
" FROM"
);
sb
.
append
(
" (SELECT member_id,TO_CHAR(insert_date, 'yyyyMMdd') AS insert_date,
mb_email,
pc_email "
);
sb
.
append
(
" (SELECT member_id,TO_CHAR(insert_date, 'yyyyMMdd') AS insert_date,
sub_pc_email,main_
pc_email "
);
sb
.
append
(
" FROM m_member ) M"
);
sb
.
append
(
" FROM m_member ) M"
);
sb
.
append
(
" GROUP BY SUBSTRING(M.insert_date,1,6) "
);
sb
.
append
(
" GROUP BY SUBSTRING(M.insert_date,1,6) "
);
sb
.
append
(
" UNION ALL"
);
sb
.
append
(
" UNION ALL"
);
...
@@ -542,15 +542,15 @@ public class MemberService extends AbstractService<Member> {
...
@@ -542,15 +542,15 @@ public class MemberService extends AbstractService<Member> {
sb
.
append
(
" ,COUNT(1) ALL_RET"
);
sb
.
append
(
" ,COUNT(1) ALL_RET"
);
sb
.
append
(
" ,-COUNT(1) ALL_JUN"
);
sb
.
append
(
" ,-COUNT(1) ALL_JUN"
);
sb
.
append
(
" ,0 PC_REG"
);
sb
.
append
(
" ,0 PC_REG"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(W.pc_email),'') != '' THEN 1 ELSE 0 END ) PC_RET"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(W.
main_
pc_email),'') != '' THEN 1 ELSE 0 END ) PC_RET"
);
sb
.
append
(
" ,-SUM(CASE WHEN COALESCE(LTRIM(W.pc_email),'') != '' THEN 1 ELSE 0 END ) PC_JUN"
);
sb
.
append
(
" ,-SUM(CASE WHEN COALESCE(LTRIM(W.
main_
pc_email),'') != '' THEN 1 ELSE 0 END ) PC_JUN"
);
sb
.
append
(
" ,0 MB_REG"
);
sb
.
append
(
" ,0 MB_REG"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
mb
_email),'') != '' THEN 1 ELSE 0 END ) MB_RET"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
sub_pc
_email),'') != '' THEN 1 ELSE 0 END ) MB_RET"
);
sb
.
append
(
" ,-SUM(CASE WHEN COALESCE(LTRIM(
mb
_email),'') != '' THEN 1 ELSE 0 END ) MB_JUN"
);
sb
.
append
(
" ,-SUM(CASE WHEN COALESCE(LTRIM(
sub_pc
_email),'') != '' THEN 1 ELSE 0 END ) MB_JUN"
);
sb
.
append
(
" FROM"
);
sb
.
append
(
" FROM"
);
sb
.
append
(
" (SELECT TO_CHAR(WIT.INSERT_DATE,'yyyyMMdd') AS insert_date"
);
sb
.
append
(
" (SELECT TO_CHAR(WIT.INSERT_DATE,'yyyyMMdd') AS insert_date"
);
sb
.
append
(
" ,MEM.pc_email"
);
sb
.
append
(
" ,MEM.
main_
pc_email"
);
sb
.
append
(
" ,MEM.
mb
_email"
);
sb
.
append
(
" ,MEM.
sub_pc
_email"
);
sb
.
append
(
" FROM t_member_withdraw WIT"
);
sb
.
append
(
" FROM t_member_withdraw WIT"
);
sb
.
append
(
" INNER JOIN m_member MEM"
);
sb
.
append
(
" INNER JOIN m_member MEM"
);
sb
.
append
(
" ON MEM.member_id = WIT.member_id"
);
sb
.
append
(
" ON MEM.member_id = WIT.member_id"
);
...
@@ -594,14 +594,14 @@ public class MemberService extends AbstractService<Member> {
...
@@ -594,14 +594,14 @@ public class MemberService extends AbstractService<Member> {
sb
.
append
(
" ,COUNT(1) ALL_REG"
);
sb
.
append
(
" ,COUNT(1) ALL_REG"
);
sb
.
append
(
" ,0 ALL_RET "
);
sb
.
append
(
" ,0 ALL_RET "
);
sb
.
append
(
" ,COUNT(1) ALL_JUN "
);
sb
.
append
(
" ,COUNT(1) ALL_JUN "
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(pc_email),'') != '' THEN 1 ELSE 0 END ) PC_REG"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
main_
pc_email),'') != '' THEN 1 ELSE 0 END ) PC_REG"
);
sb
.
append
(
" ,0 PC_RET"
);
sb
.
append
(
" ,0 PC_RET"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(pc_email),'') != '' THEN 1 ELSE 0 END ) PC_JUN"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
main_
pc_email),'') != '' THEN 1 ELSE 0 END ) PC_JUN"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
mb
_email),'') != '' THEN 1 ELSE 0 END ) MB_REG"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
sub_pc
_email),'') != '' THEN 1 ELSE 0 END ) MB_REG"
);
sb
.
append
(
" ,0 MB_RET"
);
sb
.
append
(
" ,0 MB_RET"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
mb
_email),'') != '' THEN 1 ELSE 0 END ) MB_JUN"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
sub_pc
_email),'') != '' THEN 1 ELSE 0 END ) MB_JUN"
);
sb
.
append
(
" FROM"
);
sb
.
append
(
" FROM"
);
sb
.
append
(
" (SELECT member_id,TO_CHAR(insert_date, 'yyyyMMdd') AS insert_date,
mb_email,
pc_email "
);
sb
.
append
(
" (SELECT member_id,TO_CHAR(insert_date, 'yyyyMMdd') AS insert_date,
sub_pc_email,main_
pc_email "
);
sb
.
append
(
" FROM m_member WHERE TO_CHAR(INSERT_DATE,'yyyyMMdd') BETWEEN ? AND ?) M"
);
sb
.
append
(
" FROM m_member WHERE TO_CHAR(INSERT_DATE,'yyyyMMdd') BETWEEN ? AND ?) M"
);
sb
.
append
(
" GROUP BY M.insert_date "
);
sb
.
append
(
" GROUP BY M.insert_date "
);
sb
.
append
(
" UNION ALL"
);
sb
.
append
(
" UNION ALL"
);
...
@@ -610,15 +610,15 @@ public class MemberService extends AbstractService<Member> {
...
@@ -610,15 +610,15 @@ public class MemberService extends AbstractService<Member> {
sb
.
append
(
" ,COUNT(1) ALL_RET"
);
sb
.
append
(
" ,COUNT(1) ALL_RET"
);
sb
.
append
(
" ,-COUNT(1) ALL_JUN"
);
sb
.
append
(
" ,-COUNT(1) ALL_JUN"
);
sb
.
append
(
" ,0 PC_REG"
);
sb
.
append
(
" ,0 PC_REG"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(W.pc_email),'') != '' THEN 1 ELSE 0 END ) PC_RET"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(W.
main_
pc_email),'') != '' THEN 1 ELSE 0 END ) PC_RET"
);
sb
.
append
(
" ,-SUM(CASE WHEN COALESCE(LTRIM(W.pc_email),'') != '' THEN 1 ELSE 0 END ) PC_JUN"
);
sb
.
append
(
" ,-SUM(CASE WHEN COALESCE(LTRIM(W.
main_
pc_email),'') != '' THEN 1 ELSE 0 END ) PC_JUN"
);
sb
.
append
(
" ,0 MB_REG"
);
sb
.
append
(
" ,0 MB_REG"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
mb
_email),'') != '' THEN 1 ELSE 0 END ) MB_RET"
);
sb
.
append
(
" ,SUM(CASE WHEN COALESCE(LTRIM(
sub_pc
_email),'') != '' THEN 1 ELSE 0 END ) MB_RET"
);
sb
.
append
(
" ,-SUM(CASE WHEN COALESCE(LTRIM(
mb
_email),'') != '' THEN 1 ELSE 0 END ) MB_JUN"
);
sb
.
append
(
" ,-SUM(CASE WHEN COALESCE(LTRIM(
sub_pc
_email),'') != '' THEN 1 ELSE 0 END ) MB_JUN"
);
sb
.
append
(
" FROM"
);
sb
.
append
(
" FROM"
);
sb
.
append
(
" (SELECT TO_CHAR(WIT.INSERT_DATE,'yyyyMMdd') AS insert_date"
);
sb
.
append
(
" (SELECT TO_CHAR(WIT.INSERT_DATE,'yyyyMMdd') AS insert_date"
);
sb
.
append
(
" ,MEM.pc_email"
);
sb
.
append
(
" ,MEM.
main_
pc_email"
);
sb
.
append
(
" ,MEM.
mb
_email"
);
sb
.
append
(
" ,MEM.
sub_pc
_email"
);
sb
.
append
(
" FROM t_member_withdraw WIT"
);
sb
.
append
(
" FROM t_member_withdraw WIT"
);
sb
.
append
(
" INNER JOIN m_member MEM"
);
sb
.
append
(
" INNER JOIN m_member MEM"
);
sb
.
append
(
" ON MEM.member_id = WIT.member_id"
);
sb
.
append
(
" ON MEM.member_id = WIT.member_id"
);
...
@@ -709,16 +709,16 @@ public class MemberService extends AbstractService<Member> {
...
@@ -709,16 +709,16 @@ public class MemberService extends AbstractService<Member> {
values
.
add
(
"%"
+
memberSearchForm
.
lastNameKana
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
values
.
add
(
"%"
+
memberSearchForm
.
lastNameKana
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
flg
=
true
;
flg
=
true
;
}
}
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
p
cEmail
))
{
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
mainP
cEmail
))
{
if
(
flg
)
sql
.
append
(
" and "
);
if
(
flg
)
sql
.
append
(
" and "
);
sql
.
append
(
"pc_email like ? "
);
sql
.
append
(
"
main_
pc_email like ? "
);
values
.
add
(
"%"
+
memberSearchForm
.
p
cEmail
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
values
.
add
(
"%"
+
memberSearchForm
.
mainP
cEmail
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
flg
=
true
;
flg
=
true
;
}
}
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
mb
Email
))
{
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
subPc
Email
))
{
if
(
flg
)
sql
.
append
(
" and "
);
if
(
flg
)
sql
.
append
(
" and "
);
sql
.
append
(
"
mb
_email like ? "
);
sql
.
append
(
"
sub_pc
_email like ? "
);
values
.
add
(
"%"
+
memberSearchForm
.
mb
Email
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
values
.
add
(
"%"
+
memberSearchForm
.
subPc
Email
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
flg
=
true
;
flg
=
true
;
}
}
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
telNo
))
{
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
telNo
))
{
...
@@ -1067,8 +1067,8 @@ public class MemberService extends AbstractService<Member> {
...
@@ -1067,8 +1067,8 @@ public class MemberService extends AbstractService<Member> {
member
.
lastName
=
null
;
member
.
lastName
=
null
;
member
.
firstNameKana
=
null
;
member
.
firstNameKana
=
null
;
member
.
lastNameKana
=
null
;
member
.
lastNameKana
=
null
;
member
.
p
cEmail
=
null
;
member
.
mainP
cEmail
=
null
;
member
.
mb
Email
=
null
;
member
.
subPc
Email
=
null
;
member
.
zipCode
=
null
;
member
.
zipCode
=
null
;
member
.
prefectureId
=
null
;
member
.
prefectureId
=
null
;
member
.
cityName
=
null
;
member
.
cityName
=
null
;
...
...
src/main/java/jp/agentec/sinaburocast/service/MemberWithdrawService.java
View file @
7d46402a
...
@@ -90,11 +90,11 @@ public class MemberWithdrawService extends AbstractService<MemberWithdraw> {
...
@@ -90,11 +90,11 @@ public class MemberWithdrawService extends AbstractService<MemberWithdraw> {
Properties
prop
=
PropertyUtil
.
getProperties
(
"application_ja"
,
false
);
Properties
prop
=
PropertyUtil
.
getProperties
(
"application_ja"
,
false
);
try
{
try
{
if
(
StringUtil
.
isNotBlank
(
member
.
p
cEmail
)){
if
(
StringUtil
.
isNotBlank
(
member
.
mainP
cEmail
)){
MailUtil
.
send
(
member
.
p
cEmail
,
prop
.
getProperty
(
"withDrow.mail.title"
),
prop
.
getProperty
(
"withDrow.mail.body"
));
MailUtil
.
send
(
member
.
mainP
cEmail
,
prop
.
getProperty
(
"withDrow.mail.title"
),
prop
.
getProperty
(
"withDrow.mail.body"
));
}
}
if
(
StringUtil
.
isNotBlank
(
member
.
mb
Email
)){
if
(
StringUtil
.
isNotBlank
(
member
.
subPc
Email
)){
MailUtil
.
send
(
member
.
mb
Email
,
prop
.
getProperty
(
"withDrow.mail.title"
),
prop
.
getProperty
(
"withDrow.mail.body"
));
MailUtil
.
send
(
member
.
subPc
Email
,
prop
.
getProperty
(
"withDrow.mail.title"
),
prop
.
getProperty
(
"withDrow.mail.body"
));
}
}
}
catch
(
MessagingException
e
)
{
}
catch
(
MessagingException
e
)
{
logger
.
error
(
"Mail send failed."
+
e
.
toString
());
// 退会時なので例外はスローしない
logger
.
error
(
"Mail send failed."
+
e
.
toString
());
// 退会時なので例外はスローしない
...
...
src/main/java/jp/agentec/sinaburocast/service/PointDonationService.java
View file @
7d46402a
...
@@ -99,12 +99,12 @@ public class PointDonationService extends AbstractService<PointDonation> {
...
@@ -99,12 +99,12 @@ public class PointDonationService extends AbstractService<PointDonation> {
//ユーザーに送信
//ユーザーに送信
if
(
StringUtil
.
isNotBlank
(
member
.
p
cEmail
)){
if
(
StringUtil
.
isNotBlank
(
member
.
mainP
cEmail
)){
MailUtil
.
send
(
member
.
p
cEmail
,
memberNotifyMail
.
subject
,
memberNotifyMail
.
mailBody
);
MailUtil
.
send
(
member
.
mainP
cEmail
,
memberNotifyMail
.
subject
,
memberNotifyMail
.
mailBody
);
}
}
if
(
StringUtil
.
isNotBlank
(
member
.
mb
Email
)){
if
(
StringUtil
.
isNotBlank
(
member
.
subPc
Email
)){
MailUtil
.
send
(
member
.
mb
Email
,
memberNotifyMail
.
subject
,
memberNotifyMail
.
mailBody
);
MailUtil
.
send
(
member
.
subPc
Email
,
memberNotifyMail
.
subject
,
memberNotifyMail
.
mailBody
);
}
}
//BCCに送信
//BCCに送信
...
...
src/main/java/jp/agentec/sinaburocast/service/ReplyService.java
View file @
7d46402a
...
@@ -389,9 +389,9 @@ public class ReplyService extends AbstractService<Reply> {
...
@@ -389,9 +389,9 @@ public class ReplyService extends AbstractService<Reply> {
memberNotifyMail
.
mailBody
+
"\r\n"
+
memberNotifyMail
.
mailBody
+
"\r\n"
+
PropertyUtil
.
getString
(
"ENQUETE_CONFIRM_URL"
),
enqueteEncodeId
);
PropertyUtil
.
getString
(
"ENQUETE_CONFIRM_URL"
),
enqueteEncodeId
);
//ユーザーに送信
//ユーザーに送信
if
(
StringUtil
.
isNotBlank
(
member
.
p
cEmail
)){
if
(
StringUtil
.
isNotBlank
(
member
.
mainP
cEmail
)){
try
{
try
{
MailUtil
.
send
(
member
.
p
cEmail
,
memberNotifyMail
.
subject
,
mailbody
);
MailUtil
.
send
(
member
.
mainP
cEmail
,
memberNotifyMail
.
subject
,
mailbody
);
}
catch
(
UnsupportedEncodingException
e
)
{
}
catch
(
UnsupportedEncodingException
e
)
{
logger
.
error
(
"Mail encode failed."
+
e
.
toString
());
logger
.
error
(
"Mail encode failed."
+
e
.
toString
());
}
catch
(
MessagingException
e
)
{
}
catch
(
MessagingException
e
)
{
...
@@ -399,9 +399,9 @@ public class ReplyService extends AbstractService<Reply> {
...
@@ -399,9 +399,9 @@ public class ReplyService extends AbstractService<Reply> {
}
}
}
}
if
(
StringUtil
.
isNotBlank
(
member
.
mb
Email
)){
if
(
StringUtil
.
isNotBlank
(
member
.
subPc
Email
)){
try
{
try
{
MailUtil
.
send
(
member
.
mb
Email
,
memberNotifyMail
.
subject
,
mailbody
);
MailUtil
.
send
(
member
.
subPc
Email
,
memberNotifyMail
.
subject
,
mailbody
);
}
catch
(
UnsupportedEncodingException
e
)
{
}
catch
(
UnsupportedEncodingException
e
)
{
logger
.
error
(
"Mail encode failed."
+
e
.
toString
());
logger
.
error
(
"Mail encode failed."
+
e
.
toString
());
}
catch
(
MessagingException
e
)
{
}
catch
(
MessagingException
e
)
{
...
...
src/main/resources/application_ja.properties
View file @
7d46402a
...
@@ -49,7 +49,7 @@ errors.E006=\u4e0d\u6b63\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u
...
@@ -49,7 +49,7 @@ errors.E006=\u4e0d\u6b63\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u
errors.E007
=
\u
8a72
\u
5f53
\u3059\u
308b
\u
30c7
\u
30fc
\u
30bf
\u
304c
\u3042\u
308a
\u
307e
\u
305b
\u3093\u3002
errors.E007
=
\u
8a72
\u
5f53
\u3059\u
308b
\u
30c7
\u
30fc
\u
30bf
\u
304c
\u3042\u
308a
\u
307e
\u
305b
\u3093\u3002
errors.E008
=
\u
30e1
\u
30fc
\u
30eb
\u
30a2
\u
30c9
\u
30ec
\u
30b9
\u
304c
\u
4e00
\u
81f4
\u3057\u
307e
\u
305b
\u3093\u3002
errors.E008
=
\u
30e1
\u
30fc
\u
30eb
\u
30a2
\u
30c9
\u
30ec
\u
30b9
\u
304c
\u
4e00
\u
81f4
\u3057\u
307e
\u
305b
\u3093\u3002
errors.E009
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
\u
30e1
\u
30fc
\u
30eb
\u
30a2
\u
30c9
\u
30ec
\u
30b9
\u3067\u3059\u3002
errors.E009
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
\u
30e1
\u
30fc
\u
30eb
\u
30a2
\u
30c9
\u
30ec
\u
30b9
\u3067\u3059\u3002
errors.E010
=
\u
30d1
\u
30bd
\u
30b3
\u
30f3
\u
307e
\u
305f
\u
306f
\u
643a
\u
5e2f
\u
96fb
\u
8a71
\u3069\u3061\u3089\u
304b
\u
306f
\u
5fc5
\u9808\u3067\u3059\u3002
errors.E010
=
E-mail(
\u
30e1
\u
30a4
\u
30f3)
\u
306f
\u
5fc5
\u9808\u3067\u3059\u3002
errors.E011
=
\u
30d1
\u
30b9
\u
30ef
\u
30fc
\u
30c9
\u
304c
\u
4e00
\u
81f4
\u3057\u
307e
\u
305b
\u3093\u3002
errors.E011
=
\u
30d1
\u
30b9
\u
30ef
\u
30fc
\u
30c9
\u
304c
\u
4e00
\u
81f4
\u3057\u
307e
\u
305b
\u3093\u3002
errors.E012
=
\u
30ed
\u
30b0
\u
30a4
\u
30f3ID
\u3082\u3057\u
304f
\u
306f
\u
30d1
\u
30b9
\u
30ef
\u
30fc
\u
30c9
\u
304c
\u
4e0d
\u
6b63
\u3067\u3059\u3002
errors.E012
=
\u
30ed
\u
30b0
\u
30a4
\u
30f3ID
\u3082\u3057\u
304f
\u
306f
\u
30d1
\u
30b9
\u
30ef
\u
30fc
\u
30c9
\u
304c
\u
4e0d
\u
6b63
\u3067\u3059\u3002
errors.E013
=
\u
73fe
\u5728\u
306e
\u
30dd
\u
30a4
\u
30f3
\u
30c8
\u6570\u3088\u
308a
\u
30dd
\u
30a4
\u
30f3
\u
30c8
\u
6d88
\u
8cbb
\u6570\u
304c
\u5927\u
304d
\u3044\u3067\u3059\u3002
errors.E013
=
\u
73fe
\u5728\u
306e
\u
30dd
\u
30a4
\u
30f3
\u
30c8
\u6570\u3088\u
308a
\u
30dd
\u
30a4
\u
30f3
\u
30c8
\u
6d88
\u
8cbb
\u6570\u
304c
\u5927\u
304d
\u3044\u3067\u3059\u3002
...
@@ -168,8 +168,9 @@ labels.firstName=\u6c0f\u540d(\u59d3)
...
@@ -168,8 +168,9 @@ labels.firstName=\u6c0f\u540d(\u59d3)
labels.lastName
=
\u
6c0f
\u
540d(
\u
540d)
labels.lastName
=
\u
6c0f
\u
540d(
\u
540d)
labels.firstKana
=
\u
30d5
\u
30ea
\u
30ac
\u
30ca(
\u
30bb
\u
30a4)
labels.firstKana
=
\u
30d5
\u
30ea
\u
30ac
\u
30ca(
\u
30bb
\u
30a4)
labels.lastKana
=
\u
30d5
\u
30ea
\u
30ac
\u
30ca(
\u
30e1
\u
30a4)
labels.lastKana
=
\u
30d5
\u
30ea
\u
30ac
\u
30ca(
\u
30e1
\u
30a4)
labels.pcMail
=
\u
30d1
\u
30bd
\u
30b3
\u
30f3E-mail
labels.mainPcEmail
=
E-mail(
\u
30e1
\u
30a4
\u
30f3)
labels.mbMail
=
\u
643a
\u
5e2f
\u
96fb
\u
8a71E-mail
labels.subPcEmail
=
E-mail(
\u
30b5
\u
30d6)
labels.email
=
E-mail
labels.zipCode
=
\u
90f5
\u
4fbf
\u
756a
\u
53f7
labels.zipCode
=
\u
90f5
\u
4fbf
\u
756a
\u
53f7
labels.zipCode.from
=
\u
90f5
\u
4fbf
\u
756a
\u
53f7(From)
labels.zipCode.from
=
\u
90f5
\u
4fbf
\u
756a
\u
53f7(From)
labels.zipCode.to
=
\u
90f5
\u
4fbf
\u
756a
\u
53f7(To)
labels.zipCode.to
=
\u
90f5
\u
4fbf
\u
756a
\u
53f7(To)
...
...
src/main/resources/csv_application.properties
View file @
7d46402a
...
@@ -27,10 +27,10 @@ errors.mailCheck=\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff08PC\u30e1\u30fc\
...
@@ -27,10 +27,10 @@ errors.mailCheck=\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff08PC\u30e1\u30fc\
errors.prefecture
=
\u
8a72
\u
5f53
\u3059\u
308b
\u
90fd
\u9053\u
5e9c
\u
770c
\u
304c
\u
5b58
\u5728\u3057\u
307e
\u
305b
\u3093\u3002
errors.prefecture
=
\u
8a72
\u
5f53
\u3059\u
308b
\u
90fd
\u9053\u
5e9c
\u
770c
\u
304c
\u
5b58
\u5728\u3057\u
307e
\u
305b
\u3093\u3002
errors.birthday
=
\u
751f
\u
5e74
\u6708\u
65e5
\u
306f
\u
65e5
\u
4ed8
\u3067\u
306a
\u3051\u
308c
\u3070\u3044\u3051\u
307e
\u
305b
\u3093\u3002
errors.birthday
=
\u
751f
\u
5e74
\u6708\u
65e5
\u
306f
\u
65e5
\u
4ed8
\u3067\u
306a
\u3051\u
308c
\u3070\u3044\u3051\u
307e
\u
305b
\u3093\u3002
errors.birthday
=
\u
751f
\u
5e74
\u6708\u
65e5
\u
306f
\u
65e5
\u
4ed8
\u3067\u
306a
\u3051\u
308c
\u3070\u3044\u3051\u
307e
\u
305b
\u3093\u3002
errors.birthday
=
\u
751f
\u
5e74
\u6708\u
65e5
\u
306f
\u
65e5
\u
4ed8
\u3067\u
306a
\u3051\u
308c
\u3070\u3044\u3051\u
307e
\u
305b
\u3093\u3002
errors.
pcEmail
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
\u
30d1
\u
30bd
\u
30b3
\u
30f3
E-mail
\u3067\u3059\u3002
errors.
mainPcEmail
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
E-mail
\u3067\u3059\u3002
errors.
p
cEmail1
=
\u
30d1
\u
30bd
\u
30b3
\u
30f3E-mail
\u
306f
\u
30e1
\u
30fc
\u
30eb
\u
30a2
\u
30c9
\u
30ec
\u
30b9
\u3068\u3057\u3066\u
4e0d
\u
6b63
\u3067\u3059\u3002
errors.
mainP
cEmail1
=
\u
30d1
\u
30bd
\u
30b3
\u
30f3E-mail
\u
306f
\u
30e1
\u
30fc
\u
30eb
\u
30a2
\u
30c9
\u
30ec
\u
30b9
\u3068\u3057\u3066\u
4e0d
\u
6b63
\u3067\u3059\u3002
errors.
mbEmail
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
\u
643a
\u
5e2f
\u
96fb
\u
8a71
E-mail
\u3067\u3059\u3002
errors.
subPcEmail
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
E-mail
\u3067\u3059\u3002
errors.
mb
Email1
=
\u
643a
\u
5e2f
\u
96fb
\u
8a71E-mail
\u
306f
\u
30e1
\u
30fc
\u
30eb
\u
30a2
\u
30c9
\u
30ec
\u
30b9
\u3068\u3057\u3066\u
4e0d
\u
6b63
\u3067\u3059\u3002
errors.
subPc
Email1
=
\u
643a
\u
5e2f
\u
96fb
\u
8a71E-mail
\u
306f
\u
30e1
\u
30fc
\u
30eb
\u
30a2
\u
30c9
\u
30ec
\u
30b9
\u3068\u3057\u3066\u
4e0d
\u
6b63
\u3067\u3059\u3002
errors.loginId
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
\u
30ed
\u
30b0
\u
30a4
\u
30f3ID
\u3067\u3059\u3002
errors.loginId
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
\u
30ed
\u
30b0
\u
30a4
\u
30f3ID
\u3067\u3059\u3002
errors.memberId
=
\u
5b58
\u5728\u3057\u
306a
\u3044\u
4f1a
\u
54e1ID
\u3067\u3059\u3002
errors.memberId
=
\u
5b58
\u5728\u3057\u
306a
\u3044\u
4f1a
\u
54e1ID
\u3067\u3059\u3002
errors.memberId2
=
\u
4f1a
\u
54e1ID
\u
304c
\u
4e0d
\u
6b63
\u3067\u3059\u3002
errors.memberId2
=
\u
4f1a
\u
54e1ID
\u
304c
\u
4e0d
\u
6b63
\u3067\u3059\u3002
...
...
src/main/webapp/WEB-INF/view/admin/enquete/giftExchangeSearch.html
View file @
7d46402a
...
@@ -115,7 +115,7 @@ $!tools.getMsg("dateError") $!tools.getMsg("dateError_1") $!tools.getMsg("dateEr
...
@@ -115,7 +115,7 @@ $!tools.getMsg("dateError") $!tools.getMsg("dateError_1") $!tools.getMsg("dateEr
<td
class=
"tdDiv t_center"
>
$date.format("yyyy/MM/dd",$!giftExchange.applyDate)
</td>
<td
class=
"tdDiv t_center"
>
$date.format("yyyy/MM/dd",$!giftExchange.applyDate)
</td>
<td
class=
"tdDiv"
>
$!giftExchange.memberId
</td>
<td
class=
"tdDiv"
>
$!giftExchange.memberId
</td>
<td
class=
"tdDiv"
>
$!escape.html($!giftExchange.member.firstName) $!escape.html($!giftExchange.member.lastName)
</td>
<td
class=
"tdDiv"
>
$!escape.html($!giftExchange.member.firstName) $!escape.html($!giftExchange.member.lastName)
</td>
<td
class=
"tdDiv"
>
$!giftExchange.member.
p
cEmail
</td>
<td
class=
"tdDiv"
>
$!giftExchange.member.
mainP
cEmail
</td>
<td
class=
"tdDiv"
>
$!giftExchange.cnt #if($!giftExchange.gift.giftType == 1)枚#elseポイント#end
</td>
<td
class=
"tdDiv"
>
$!giftExchange.cnt #if($!giftExchange.gift.giftType == 1)枚#elseポイント#end
</td>
<td
class=
"tdDiv"
>
$!giftExchange.member.zipCode
</td>
<td
class=
"tdDiv"
>
$!giftExchange.member.zipCode
</td>
<td
class=
"tdDiv"
>
$!giftExchange.member.prefecture.prefecture
</td>
<td
class=
"tdDiv"
>
$!giftExchange.member.prefecture.prefecture
</td>
...
...
src/main/webapp/WEB-INF/view/admin/member/memberConfirm.html
View file @
7d46402a
...
@@ -48,11 +48,11 @@
...
@@ -48,11 +48,11 @@
</tr>
</tr>
<tr>
<tr>
<td
style=
"vertical-align:top"
>
パソコンE-mail
</td>
<td
style=
"vertical-align:top"
>
パソコンE-mail
</td>
<td>
$!escape.html($!memberEditForm.
p
cEmail)
</td>
<td>
$!escape.html($!memberEditForm.
mainP
cEmail)
</td>
</tr>
</tr>
<tr>
<tr>
<td
style=
"vertical-align:top"
>
携帯電話E-mail
</td>
<td
style=
"vertical-align:top"
>
携帯電話E-mail
</td>
<td>
$!escape.html($!memberEditForm.
mb
Email)
</td>
<td>
$!escape.html($!memberEditForm.
subPc
Email)
</td>
</tr>
</tr>
<tr>
<tr>
<td
style=
"vertical-align:top"
>
氏名
</td>
<td
style=
"vertical-align:top"
>
氏名
</td>
...
@@ -139,8 +139,8 @@
...
@@ -139,8 +139,8 @@
##
</div>
##
</div>
#makeToken()
#makeToken()
<input
type=
"hidden"
name=
"loginIdBefore"
value=
"$!memberEditForm.loginIdBefore"
>
<input
type=
"hidden"
name=
"loginIdBefore"
value=
"$!memberEditForm.loginIdBefore"
>
<input
type=
"hidden"
name=
"
pcEmailBefore"
value=
"$!memberEditForm.p
cEmailBefore"
>
<input
type=
"hidden"
name=
"
mainPcEmailBefore"
value=
"$!memberEditForm.mainP
cEmailBefore"
>
<input
type=
"hidden"
name=
"
mbEmailBefore"
value=
"$!memberEditForm.mb
EmailBefore"
>
<input
type=
"hidden"
name=
"
subPcEmailBefore"
value=
"$!memberEditForm.subPc
EmailBefore"
>
</form>
</form>
</div>
</div>
</div>
</div>
...
...
src/main/webapp/WEB-INF/view/admin/member/memberEdit.html
View file @
7d46402a
...
@@ -78,16 +78,16 @@
...
@@ -78,16 +78,16 @@
</td>
</td>
</tr>
</tr>
<tr
class=
"gray"
>
<tr
class=
"gray"
>
<td>
パソコンE-mail
<font
class=
"listpoint"
>
*
</font></td>
<td>
E-mail(メイン)
<font
class=
"listpoint"
>
*
</font></td>
<td><input
name=
"
pcEmail"
type=
"text"
/
class=
"w250"
value=
"$!escape.html($!memberEditForm.p
cEmail)"
>
<td><input
name=
"
mainPcEmail"
type=
"text"
/
class=
"w250"
value=
"$!escape.html($!memberEditForm.mainP
cEmail)"
>
<BR>
$!tools.getMsg("
p
cEmail")
<BR>
$!tools.getMsg("
mainP
cEmail")
$!tools.getMsg("Email")
$!tools.getMsg("Email")
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
携帯電話E-mail
<font
class=
"listpoint"
>
*
</font></td>
<td>
E-mail(サブ)
<font
class=
"listpoint"
>
*
</font></td>
<td><input
name=
"
mbEmail"
type=
"text"
/
class=
"w250"
value=
"$!escape.html($!{memberEditForm.mb
Email})"
>
<td><input
name=
"
subPcEmail"
type=
"text"
/
class=
"w250"
value=
"$!escape.html($!{memberEditForm.subPc
Email})"
>
<BR>
$!tools.getMsg("
mb
Email")
<BR>
$!tools.getMsg("
subPc
Email")
$!tools.getMsg("Email")
$!tools.getMsg("Email")
</td>
</td>
</tr>
</tr>
...
@@ -261,8 +261,8 @@
...
@@ -261,8 +261,8 @@
##
</div>
##
</div>
#makeToken()
#makeToken()
<input
type=
"hidden"
name=
"loginIdBefore"
value=
"$!memberEditForm.loginIdBefore"
>
<input
type=
"hidden"
name=
"loginIdBefore"
value=
"$!memberEditForm.loginIdBefore"
>
<input
type=
"hidden"
name=
"
pcEmailBefore"
value=
"$!memberEditForm.p
cEmailBefore"
>
<input
type=
"hidden"
name=
"
mainPcEmailBefore"
value=
"$!memberEditForm.mainP
cEmailBefore"
>
<input
type=
"hidden"
name=
"
mbEmailBefore"
value=
"$!memberEditForm.mb
EmailBefore"
>
<input
type=
"hidden"
name=
"
subPcEmailBefore"
value=
"$!memberEditForm.subPc
EmailBefore"
>
<input
type=
"hidden"
name=
"memberId"
value=
"$!memberEditForm.memberId"
>
<input
type=
"hidden"
name=
"memberId"
value=
"$!memberEditForm.memberId"
>
<input
type=
"hidden"
name=
"withDrawFlgBefore"
value=
"$!memberEditForm.withDrawFlgBefore"
>
<input
type=
"hidden"
name=
"withDrawFlgBefore"
value=
"$!memberEditForm.withDrawFlgBefore"
>
</form>
</form>
...
...
src/main/webapp/WEB-INF/view/admin/member/memberInput.html
View file @
7d46402a
...
@@ -60,15 +60,15 @@
...
@@ -60,15 +60,15 @@
</tr>
</tr>
<tr>
<tr>
<td>
パソコンE-mail
<font
class=
"listpoint"
>
*
</font></td>
<td>
パソコンE-mail
<font
class=
"listpoint"
>
*
</font></td>
<td><input
name=
"
pcEmail"
type=
"text"
/
class=
"w250"
value=
"$!escape.html($!memberEditForm.p
cEmail)"
>
<td><input
name=
"
mainPcEmail"
type=
"text"
/
class=
"w250"
value=
"$!escape.html($!memberEditForm.mainP
cEmail)"
>
<BR>
$!tools.getMsg("
p
cEmail")
<BR>
$!tools.getMsg("
mainP
cEmail")
$!tools.getMsg("Email")
$!tools.getMsg("Email")
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
携帯電話E-mail
<font
class=
"listpoint"
>
*
</font></td>
<td>
携帯電話E-mail
<font
class=
"listpoint"
>
*
</font></td>
<td><input
name=
"
mbEmail"
type=
"text"
/
class=
"w250"
value=
"$!escape.html($!{memberEditForm.mb
Email})"
>
<td><input
name=
"
subPcEmail"
type=
"text"
/
class=
"w250"
value=
"$!escape.html($!{memberEditForm.subPc
Email})"
>
<BR>
$!tools.getMsg("
mb
Email")
<BR>
$!tools.getMsg("
subPc
Email")
$!tools.getMsg("Email")
$!tools.getMsg("Email")
</td>
</td>
</tr>
</tr>
...
@@ -153,11 +153,15 @@
...
@@ -153,11 +153,15 @@
<td>
<td>
#if($!memberEditForm.genderCd)
#if($!memberEditForm.genderCd)
<input
type=
"radio"
name=
"genderCd"
value=
"0"
#
if
($!
memberEditForm
.
genderCd =
=
"
0
")
checked
#
end
>
男性
<input
type=
"radio"
name=
"genderCd"
value=
"0"
#
if
($!
memberEditForm
.
genderCd =
=
"
0
")
checked
#
end
>
男性
<input
type=
"radio"
name=
"genderCd"
value=
"1"
#
if
($!
memberEditForm
.
genderCd =
=
"
1
")
checked
#
end
>
女性
<input
type=
"radio"
name=
"genderCd"
value=
"1"
#
if
($!
memberEditForm
.
genderCd =
=
"
1
")
checked
#
end
>
女性
<input
type=
"radio"
name=
"genderCd"
value=
"2"
#
if
($!
memberEditForm
.
genderCd =
=
"
2
")
checked
#
end
>
その他
<input
type=
"radio"
name=
"genderCd"
value=
"3"
#
if
($!
memberEditForm
.
genderCd =
=
"
3
")
checked
#
end
>
入力しない
#else
#else
<input
type=
"radio"
name=
"genderCd"
value=
"0"
>
男性
<input
type=
"radio"
name=
"genderCd"
value=
"0"
>
男性
<input
type=
"radio"
name=
"genderCd"
value=
"1"
>
女性
<input
type=
"radio"
name=
"genderCd"
value=
"1"
>
女性
<input
type=
"radio"
name=
"genderCd"
value=
"2"
>
その他
<input
type=
"radio"
name=
"genderCd"
value=
"3"
>
入力しない
#end
#end
</td>
</td>
</tr>
</tr>
...
@@ -239,8 +243,8 @@
...
@@ -239,8 +243,8 @@
</div>
</div>
##
</div>
##
</div>
<input
type=
"hidden"
name=
"loginIdBefore"
value=
"$!memberEditForm.loginIdBefore"
>
<input
type=
"hidden"
name=
"loginIdBefore"
value=
"$!memberEditForm.loginIdBefore"
>
<input
type=
"hidden"
name=
"
pcEmailBefore"
value=
"$!memberEditForm.p
cEmailBefore"
>
<input
type=
"hidden"
name=
"
mainPcEmailBefore"
value=
"$!memberEditForm.mainP
cEmailBefore"
>
<input
type=
"hidden"
name=
"
mbEmailBefore"
value=
"$!memberEditForm.mb
EmailBefore"
>
<input
type=
"hidden"
name=
"
subPcEmailBefore"
value=
"$!memberEditForm.subPc
EmailBefore"
>
<input
type=
"hidden"
name=
"memberId"
value=
"$!memberEditForm.memberId"
>
<input
type=
"hidden"
name=
"memberId"
value=
"$!memberEditForm.memberId"
>
</form>
</form>
...
...
src/main/webapp/WEB-INF/view/admin/member/memberInputConfirm.html
View file @
7d46402a
...
@@ -46,13 +46,13 @@
...
@@ -46,13 +46,13 @@
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
style=
"vertical-align:top"
>
パソコンE-mail
</td>
<td
style=
"vertical-align:top"
>
E-mail(メイン)
</td>
<td>
$!escape.html($!memberEditForm.
p
cEmail)
<td>
$!escape.html($!memberEditForm.
mainP
cEmail)
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
style=
"vertical-align:top"
>
携帯電話E-mail
</td>
<td
style=
"vertical-align:top"
>
E-mail(サブ)
</td>
<td>
$!escape.html($!memberEditForm.
mb
Email)
<td>
$!escape.html($!memberEditForm.
subPc
Email)
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -135,8 +135,8 @@
...
@@ -135,8 +135,8 @@
##
</div>
##
</div>
#makeToken()
#makeToken()
<input
type=
"hidden"
name=
"loginIdBefore"
value=
"$!memberEditForm.loginIdBefore"
>
<input
type=
"hidden"
name=
"loginIdBefore"
value=
"$!memberEditForm.loginIdBefore"
>
<input
type=
"hidden"
name=
"
pcEmailBefore"
value=
"$!memberEditForm.p
cEmailBefore"
>
<input
type=
"hidden"
name=
"
mainPcEmailBefore"
value=
"$!memberEditForm.mainP
cEmailBefore"
>
<input
type=
"hidden"
name=
"
mbEmailBefore"
value=
"$!memberEditForm.mb
EmailBefore"
>
<input
type=
"hidden"
name=
"
subPcEmailBefore"
value=
"$!memberEditForm.subPc
EmailBefore"
>
</form>
</form>
</div>
</div>
</div>
</div>
...
...
src/main/webapp/WEB-INF/view/admin/member/memberSearch.html
View file @
7d46402a
...
@@ -82,10 +82,8 @@ function formClear(form_obj){
...
@@ -82,10 +82,8 @@ function formClear(form_obj){
<td><input
name=
"lastNameKana"
type=
"text"
class=
"w180 mgl10"
value=
"$!escape.html($!memberSearchForm.lastNameKana)"
>
を含む
</td>
<td><input
name=
"lastNameKana"
type=
"text"
class=
"w180 mgl10"
value=
"$!escape.html($!memberSearchForm.lastNameKana)"
>
を含む
</td>
</tr>
</tr>
<tr>
<tr>
<td>
PCメールアドレス
</td>
<td>
E-mail
</td>
<td><input
name=
"pcEmail"
type=
"text"
class=
"w180 mgl10"
value=
"$!escape.html($!memberSearchForm.pcEmail)"
>
を含む
</td>
<td><input
name=
"searchPcEmail"
type=
"text"
class=
"w180 mgl10"
value=
"$!escape.html($!memberSearchForm.searchPcEmail)"
>
を含む
</td>
<td>
携帯メールアドレス
</td>
<td><input
name=
"mbEmail"
type=
"text"
class=
"w180 mgl10"
value=
"$!escape.html($!memberSearchForm.mbEmail)"
>
を含む
</td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"w100"
>
電話
</td>
<td
class=
"w100"
>
電話
</td>
...
@@ -96,6 +94,8 @@ function formClear(form_obj){
...
@@ -96,6 +94,8 @@ function formClear(form_obj){
<option
value=
""
></option>
<option
value=
""
></option>
<option
value=
"0"
#
if
(
"$!{
memberSearchForm
.
genderCd
}"
==
"
0
"
)
selected
#
end
>
男
</option>
<option
value=
"0"
#
if
(
"$!{
memberSearchForm
.
genderCd
}"
==
"
0
"
)
selected
#
end
>
男
</option>
<option
value=
"1"
#
if
(
"$!{
memberSearchForm
.
genderCd
}"
==
"
1
"
)
selected
#
end
>
女
</option>
<option
value=
"1"
#
if
(
"$!{
memberSearchForm
.
genderCd
}"
==
"
1
"
)
selected
#
end
>
女
</option>
<option
value=
"2"
#
if
(
"$!{
memberSearchForm
.
genderCd
}"
==
"
2
"
)
selected
#
end
>
その他
</option>
<option
value=
"3"
#
if
(
"$!{
memberSearchForm
.
genderCd
}"
==
"
3
"
)
selected
#
end
>
入力しない
</option>
</select>
と一致
</select>
と一致
</td>
</td>
</tr>
</tr>
...
...
src/main/webapp/WEB-INF/view/common/menu.vm
View file @
7d46402a
...
@@ -39,15 +39,17 @@
...
@@ -39,15 +39,17 @@
</td>
</td>
</tr>
</tr>
</table>
</table>
</FORM>
</div>
<table width="150" border="0" cellspacing="0" cellpadding="0">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr style="padding: 15px 0 0 0;">
<tr style="padding: 15px 0 0 0;">
<td nowrap align="center">
<td nowrap align="center">
<input type="image" src="/em/images/logon_btn.png" onmouseover="this.src='/em/images/logon_on_btn.png'" onmouseout="this.src='/em/images/logon_btn.png'" alt="ログイン">
<a href="/em/user/top/newUserRegist/">
<img src="/em/images/logon_btn_new.png"/>
</a>
</td>
</td>
</tr>
</tr>
</table>
</table>
</FORM>
</div>
#end
#end
</td>
</td>
</tr>
</tr>
...
@@ -80,7 +82,7 @@
...
@@ -80,7 +82,7 @@
<div class="ctg01"><a href="#q('/user/top/howtoHtml/')">ご利用方法</a></div>
<div class="ctg01"><a href="#q('/user/top/howtoHtml/')">ご利用方法</a></div>
<div class="ctg01"><a href="#q('/user/top/ruleHtml/')">会員規約</a></div>
<div class="ctg01"><a href="#q('/user/top/ruleHtml/')">会員規約</a></div>
<div class="ctg01"><a href="#q('/user/top/faqHtml/')">FAQ</a></div>
<div class="ctg01"><a href="#q('/user/top/faqHtml/')">FAQ</a></div>
<div class="ctg01"><a href="#q('/user/
top/faqHtml
/')" style="font-size:11pt;">アンケート結果</a></div>
<div class="ctg01"><a href="#q('/user/
enqResultList
/')" style="font-size:11pt;">アンケート結果</a></div>
#if($userInfo.loginId)
#if($userInfo.loginId)
<div class="ctg01"><a href="/em/user/myPage/">マイページ</a></div>
<div class="ctg01"><a href="/em/user/myPage/">マイページ</a></div>
#end
#end
...
...
src/main/webapp/WEB-INF/view/index.html
View file @
7d46402a
...
@@ -93,14 +93,29 @@
...
@@ -93,14 +93,29 @@
#if($registForm.genderCd == 0)
#if($registForm.genderCd == 0)
<input type="radio" name="genderCd" value="0" checked>男性
<input type="radio" name="genderCd" value="0" checked>男性
<input type="radio" name="genderCd" value="1">女性
<input type="radio" name="genderCd" value="1">女性
<input type="radio" name="genderCd" value="2">その他
<input type="radio" name="genderCd" value="3">入力しない
#elseif($registForm.genderCd == 1)
#elseif($registForm.genderCd == 1)
<input type="radio" name="genderCd" value="0">男性
<input type="radio" name="genderCd" value="0">男性
<input type="radio" name="genderCd" value="1" checked>女性
<input type="radio" name="genderCd" value="1" checked>女性
#else
<input type="radio" name="genderCd" value="2">その他
<input type="radio" name="genderCd" value="3">入力しない
#elseif($registForm.genderCd == 2)
<input type="radio" name="genderCd" value="0">男性
<input type="radio" name="genderCd" value="1">女性
<input type="radio" name="genderCd" value="2" checked>その他
<input type="radio" name="genderCd" value="3">入力しない
#elseif($registForm.genderCd == 3)
<input type="radio" name="genderCd" value="0">男性
<input type="radio" name="genderCd" value="0">男性
<input type="radio" name="genderCd" value="1">女性
<input type="radio" name="genderCd" value="1">女性
<input type="radio" name="genderCd" value="2">その他
<input type="radio" name="genderCd" value="3" checked>入力しない
#else
<input type="radio" name="genderCd" value="0"><span>男性</span>
<input type="radio" name="genderCd" value="1"><span>女性</span>
<input type="radio" name="genderCd" value="2"><span>その他</span>
<input type="radio" name="genderCd" value="3"><span>入力しない</span>
#end
#end
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
src/main/webapp/WEB-INF/view/mb/user/userEdit/uEdit.html
View file @
7d46402a
...
@@ -36,14 +36,14 @@ $!tools.getMsg("lastNameKana")
...
@@ -36,14 +36,14 @@ $!tools.getMsg("lastNameKana")
$!tools.getMsg("Email")
<br>
$!tools.getMsg("Email")
<br>
<font
class=
"txt10or"
>
※パソコンと携帯どちらかを必ず入力してください。
</font><br>
<font
class=
"txt10or"
>
※パソコンと携帯どちらかを必ず入力してください。
</font><br>
<br>
パソコン E-mail
<br>
E-mail(メイン)
<br><input
type=
"text"
size=
"37"
name=
"
pcEmail"
maxlength=
"128"
value=
"$!escape.html($!userEditForm.p
cEmail)"
style=
"width:100%"
>
<br><input
type=
"text"
size=
"37"
name=
"
mainPcEmail"
maxlength=
"128"
value=
"$!escape.html($!userEditForm.mainP
cEmail)"
style=
"width:100%"
>
$!tools.getMsg("
p
cEmail")
$!tools.getMsg("
mainP
cEmail")
$!tools.getMsg("Email")
$!tools.getMsg("Email")
<br>
携帯電話 E-mail
<br>
E-mail(サブ)
<br><input
type=
"text"
size=
"37"
name=
"
mbEmail"
maxlength=
"128"
value=
"$!escape.html($!{userEditForm.mb
Email})"
style=
"width:100%"
>
<br><input
type=
"text"
size=
"37"
name=
"
subPcEmail"
maxlength=
"128"
value=
"$!escape.html($!{userEditForm.subPc
Email})"
style=
"width:100%"
>
$!tools.getMsg("
mb
Email")
$!tools.getMsg("
subPc
Email")
$!tools.getMsg("Email")
$!tools.getMsg("Email")
<br>
<br>
...
...
src/main/webapp/WEB-INF/view/mb/user/userEdit/uEditConfirm.html
View file @
7d46402a
...
@@ -26,12 +26,12 @@
...
@@ -26,12 +26,12 @@
<br>
$!escape.html($!userEditForm.lastNameKana)
<br>
$!escape.html($!userEditForm.lastNameKana)
##
<input
type=
"hidden"
name=
"lastNameKana"
value=
"$!userEditForm.lastNameKana"
>
##
<input
type=
"hidden"
name=
"lastNameKana"
value=
"$!userEditForm.lastNameKana"
>
<br>
パソコン E-mail
<br>
E-mail(メイン)
<br>
$!userEditForm.
p
cEmail
<br>
$!userEditForm.
mainP
cEmail
##
<input
type=
"hidden"
name=
"
pcEmail"
value=
"$!userEditForm.p
cEmail"
>
##
<input
type=
"hidden"
name=
"
mainPcEmail"
value=
"$!userEditForm.mainP
cEmail"
>
<br>
携帯電話 E-mail
<br>
E-mail(サブ)
<br>
$!userEditForm.
mb
Email
<br>
$!userEditForm.
subPc
Email
##
<input
type=
"hidden"
name=
"
mbEmail"
value=
"$!userEditForm.mb
Email"
>
##
<input
type=
"hidden"
name=
"
subPcEmail"
value=
"$!userEditForm.subPc
Email"
>
<br>
ログイン名
<br>
ログイン名
<br>
$!escape.html($!userEditForm.loginId)
<br>
$!escape.html($!userEditForm.loginId)
...
@@ -77,6 +77,8 @@
...
@@ -77,6 +77,8 @@
<br>
<br>
#if($!userEditForm.genderCd == "0")男性
#if($!userEditForm.genderCd == "0")男性
#elseif($!userEditForm.genderCd == "1")女性
#elseif($!userEditForm.genderCd == "1")女性
#elseif($!userEditForm.genderCd == "2")その他
#elseif($!userEditForm.genderCd == "3")入力しない
#else
#else
#end
#end
##
<input
type=
"hidden"
name=
"genderCd"
value=
"$!userEditForm.genderCd"
>
##
<input
type=
"hidden"
name=
"genderCd"
value=
"$!userEditForm.genderCd"
>
...
...
src/main/webapp/WEB-INF/view/sp/user/userEdit/uEdit.html
View file @
7d46402a
...
@@ -21,20 +21,20 @@ $!tools.getMsg("pointUse")
...
@@ -21,20 +21,20 @@ $!tools.getMsg("pointUse")
<div
class=
"dot_line02"
></div>
<div
class=
"dot_line02"
></div>
<div
data-role=
"fieldcontain"
>
<div
data-role=
"fieldcontain"
>
$!tools.getMsg("
p
cEmail")
$!tools.getMsg("
mainP
cEmail")
$!tools.getMsg("Email")
$!tools.getMsg("Email")
<label
for=
"
pcEmail"
class=
"area_title"
>
パソコンE-mail(半角英数字)
<sup>
※
</sup></label>
<label
for=
"
mainPcEmail"
class=
"area_title"
>
E-mail(メイン)
<sup>
※
</sup></label>
<input
type=
"text"
id=
"
pcEmail"
name=
"pcEmail"
size=
"40"
maxlength=
"128"
value=
"$!escape.html($!userEditForm.p
cEmail)"
>
<input
type=
"text"
id=
"
mainPcEmail"
name=
"mainPcEmail"
size=
"40"
maxlength=
"128"
value=
"$!escape.html($!userEditForm.mainP
cEmail)"
>
</div>
</div>
<div
class=
"dot_line02"
></div>
<div
class=
"dot_line02"
></div>
<div
data-role=
"fieldcontain"
>
<div
data-role=
"fieldcontain"
>
$!tools.getMsg("
mb
Email")
$!tools.getMsg("
subPc
Email")
$!tools.getMsg("Email")
$!tools.getMsg("Email")
<label
for=
"
mbEmail"
class=
"area_title"
>
携帯電話E-mail
<sup>
※
</sup></label>
<label
for=
"
subPcEmail"
class=
"area_title"
>
E-mail(サブ)
<sup>
※
</sup></label>
<input
type=
"text"
id=
"
mbEmail"
name=
"mbEmail"
size=
"40"
maxlength=
"128"
value=
"$!escape.html($!{userEditForm.mb
Email})"
>
<input
type=
"text"
id=
"
subPcEmail"
name=
"subPcEmail"
size=
"40"
maxlength=
"128"
value=
"$!escape.html($!{userEditForm.subPc
Email})"
>
<p
class=
"indent01"
>
※
パソコンE-mailまたは携帯電話E-mailどちらか
は必須です。
</p>
<p
class=
"indent01"
>
※
E-mail(メイン)
は必須です。
</p>
<p
class=
"indent01"
>
※ドメイン指定受信をされている方は[city.ichikawa.lg.jp]をドメインに追加していただく必要があります。
</p>
<p
class=
"indent01"
>
※ドメイン指定受信をされている方は[city.ichikawa.lg.jp]をドメインに追加していただく必要があります。
</p>
</div>
</div>
...
@@ -169,9 +169,15 @@ $!tools.getMsg("pointUse")
...
@@ -169,9 +169,15 @@ $!tools.getMsg("pointUse")
<label
for=
"genderCd1"
>
男性
</label>
<label
for=
"genderCd1"
>
男性
</label>
<input
type=
"radio"
name=
"genderCd"
id=
"genderCd2"
value=
"1"
/>
<input
type=
"radio"
name=
"genderCd"
id=
"genderCd2"
value=
"1"
/>
<label
for=
"genderCd2"
>
女性
</label>
<label
for=
"genderCd2"
>
女性
</label>
<input
type=
"radio"
name=
"genderCd"
id=
"genderCd3"
value=
"2"
/>
<label
for=
"genderCd3"
>
その他
</label>
<input
type=
"radio"
name=
"genderCd"
id=
"genderCd4"
value=
"3"
/>
<label
for=
"genderCd4"
>
入力しない
</label>
#else
#else
<input
type=
"radio"
name=
"genderCd"
id=
"genderCd1"
value=
"0"
#
if
($!
userEditForm
.
genderCd =
=
"
0
")
checked
#
end
><label
for=
"genderCd1"
>
男性
</label>
<input
type=
"radio"
name=
"genderCd"
id=
"genderCd1"
value=
"0"
#
if
($!
userEditForm
.
genderCd =
=
"
0
")
checked
#
end
><label
for=
"genderCd1"
>
男性
</label>
<input
type=
"radio"
name=
"genderCd"
id=
"genderCd2"
value=
"1"
#
if
($!
userEditForm
.
genderCd
!=
"
0
")
checked
#
end
><label
for=
"genderCd2"
>
女性
</label>
<input
type=
"radio"
name=
"genderCd"
id=
"genderCd2"
value=
"1"
#
if
($!
userEditForm
.
genderCd =
=
"
1
")
checked
#
end
><label
for=
"genderCd2"
>
女性
</label>
<input
type=
"radio"
name=
"genderCd"
id=
"genderCd3"
value=
"2"
#
if
($!
userEditForm
.
genderCd =
=
"
2
")
checked
#
end
><label
for=
"genderCd3"
>
その他
</label>
<input
type=
"radio"
name=
"genderCd"
id=
"genderCd4"
value=
"3"
#
if
($!
userEditForm
.
genderCd =
=
"
3
")
checked
#
end
><label
for=
"genderCd4"
>
入力しない
</label>
#end
#end
</fieldset>
</fieldset>
...
...
src/main/webapp/WEB-INF/view/sp/user/userEdit/uEditConfirm.html
View file @
7d46402a
...
@@ -41,12 +41,12 @@
...
@@ -41,12 +41,12 @@
</p>
</p>
<div
class=
"dot_line01"
></div>
<div
class=
"dot_line01"
></div>
<h4>
パソコン E-mail
</h4>
<h4>
E-mail(メイン)
</h4>
<p>
$!userEditForm.
pcEmail
<input
type=
"hidden"
name=
"pcEmail"
value=
"$!userEditForm.p
cEmail"
></p>
<p>
$!userEditForm.
mainPcEmail
<input
type=
"hidden"
name=
"mainPcEmail"
value=
"$!userEditForm.mainP
cEmail"
></p>
<div
class=
"dot_line01"
></div>
<div
class=
"dot_line01"
></div>
<h4>
携帯電話 E-mail
</h4>
<h4>
E-mail(サブ)
</h4>
<p>
$!userEditForm.
mbEmail
<input
type=
"hidden"
name=
"mbEmail"
value=
"$!userEditForm.mb
Email"
></p>
<p>
$!userEditForm.
subPcEmail
<input
type=
"hidden"
name=
"subPcEmail"
value=
"$!userEditForm.subPc
Email"
></p>
<div
class=
"dot_line01"
></div>
<div
class=
"dot_line01"
></div>
<h4>
ログイン名
</h4>
<h4>
ログイン名
</h4>
...
@@ -107,6 +107,8 @@
...
@@ -107,6 +107,8 @@
<p>
<p>
#if($!userEditForm.genderCd == "0")男性
#if($!userEditForm.genderCd == "0")男性
#elseif($!userEditForm.genderCd == "1")女性
#elseif($!userEditForm.genderCd == "1")女性
#elseif($!userEditForm.genderCd == "2")その他
#elseif($!userEditForm.genderCd == "3")入力しない
#else
#else
#end
#end
...
...
src/main/webapp/WEB-INF/view/user/enquete/enquete.html
View file @
7d46402a
...
@@ -9,7 +9,11 @@
...
@@ -9,7 +9,11 @@
#set($dateIndex=0)
#set($dateIndex=0)
#foreach($question in $!enqueteForm.questionList)
#foreach($question in $!enqueteForm.questionList)
<script
language=
"javascript"
type=
"text/javascript"
charset=
"utf-8"
>
console
.
log
(
"${question.questionId}"
);
console
.
log
(
"${question.condRequiredQuestionNo}"
);
console
.
log
(
"${question.condRequiredAnswer}"
);
</script>
#if($question.controlId == 5)
#if($question.controlId == 5)
#set($dateIndex = $dateIndex+1)
#set($dateIndex = $dateIndex+1)
<script
language=
"javascript"
type=
"text/javascript"
charset=
"utf-8"
>
<script
language=
"javascript"
type=
"text/javascript"
charset=
"utf-8"
>
...
@@ -183,7 +187,7 @@ $tools.getMsg("errorheader")
...
@@ -183,7 +187,7 @@ $tools.getMsg("errorheader")
#if($!question.controlId == "2")
#if($!question.controlId == "2")
<td
width=
"$tdWidthPercent%"
valign =
"top"
>
<td
width=
"$tdWidthPercent%"
valign =
"top"
>
#set($answerIdValueName = "questionList[$questionIndex].answerList[0].answerIdValue")
#set($answerIdValueName = "questionList[$questionIndex].answerList[0].answerIdValue")
<select
name=
"$answerIdValueName"
>
<select
name=
"$answerIdValueName"
#
if
($!
question
.
condRequiredQuestionNo
!=
"
0
")
disabled=
"disabled"
#
end
>
#foreach($selectAnswer in $question.answerList)
#foreach($selectAnswer in $question.answerList)
<option
value=
"$!selectAnswer.answerId"
#
if
($
enqueteForm
.
initCount =
="2"
&&
$!
selectAnswer
.
answerId =
=
$!
selectAnswer
.
answerIdValue
)
selected
#
elseif
($!
selectAnswer
.
defaultFlg =
=
"
1
"
&&
$
enqueteForm
.
initCount
!="
2
")
selected
#
end
>
$!escape.html($!selectAnswer.answer)
</option>
<option
value=
"$!selectAnswer.answerId"
#
if
($
enqueteForm
.
initCount =
="2"
&&
$!
selectAnswer
.
answerId =
=
$!
selectAnswer
.
answerIdValue
)
selected
#
elseif
($!
selectAnswer
.
defaultFlg =
=
"
1
"
&&
$
enqueteForm
.
initCount
!="
2
")
selected
#
end
>
$!escape.html($!selectAnswer.answer)
</option>
<!-- <option value="$!selectAnswer.answerId" #if($enqueteForm.initCount =="2" && $!selectAnswer.answerId == $!selectAnswer.answerIdValue) selected $!selectAnswer.answerId , $!selectAnswer.answerIdValue #elseif($!selectAnswer.defaultFlg == "1" ) selected $!selectAnswer.answerId , $!selectAnswer.answerIdValue #end >$!escape.html($!selectAnswer.answer)</option> -->
<!-- <option value="$!selectAnswer.answerId" #if($enqueteForm.initCount =="2" && $!selectAnswer.answerId == $!selectAnswer.answerIdValue) selected $!selectAnswer.answerId , $!selectAnswer.answerIdValue #elseif($!selectAnswer.defaultFlg == "1" ) selected $!selectAnswer.answerId , $!selectAnswer.answerIdValue #end >$!escape.html($!selectAnswer.answer)</option> -->
...
@@ -215,7 +219,7 @@ $tools.getMsg("errorheader")
...
@@ -215,7 +219,7 @@ $tools.getMsg("errorheader")
##if($!answer.freeTextFlg != "1"
&&
$!answer.freeTextFlg != "2")
##if($!answer.freeTextFlg != "1"
&&
$!answer.freeTextFlg != "2")
<input
type=
"radio"
name=
"$!answerIdValueRadioName"
value=
"$velocityCount"
#
if
($!
answer
.
answerIdValue =
=
$
velocityCount
.
toString
()
&&
$
enqueteForm
.
initCount =
="2")
checked
#{
end
}
<input
type=
"radio"
name=
"$!answerIdValueRadioName"
value=
"$velocityCount"
#
if
($!
answer
.
answerIdValue =
=
$
velocityCount
.
toString
()
&&
$
enqueteForm
.
initCount =
="2")
checked
#{
end
}
#
if
($!
answer
.
defaultFlg =
=
1
&&
$
enqueteForm
.
initCount =
="1")
checked
#
end
#
if
($!
answer
.
defaultFlg =
=
1
&&
$
enqueteForm
.
initCount =
="1")
checked
#
end
>
$!escape.html($!answer.answer)
#
if
($!
question
.
condRequiredQuestionNo
!=
"
0
")
disabled=
"disabled"
#
end
>
$!escape.html($!answer.answer)
##end
##end
##
<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
##
<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
...
@@ -227,7 +231,7 @@ $tools.getMsg("errorheader")
...
@@ -227,7 +231,7 @@ $tools.getMsg("errorheader")
##if($!answer.freeTextFlg != "1"
&&
$!answer.freeTextFlg != "2")
##if($!answer.freeTextFlg != "1"
&&
$!answer.freeTextFlg != "2")
<input
type=
"checkbox"
name=
"$answerIdValueName"
value=
"$!escape.html($!answer.answerNo)"
#
if
($
answer
.
answerIdValue
!=
""
&&
$
enqueteForm
.
initCount =
="2")
checked
#
end
<input
type=
"checkbox"
name=
"$answerIdValueName"
value=
"$!escape.html($!answer.answerNo)"
#
if
($
answer
.
answerIdValue
!=
""
&&
$
enqueteForm
.
initCount =
="2")
checked
#
end
#
if
($!
answer
.
defaultFlg =
=
1
&&
$
enqueteForm
.
initCount =
="1")
checked
#
end
#
if
($!
answer
.
defaultFlg =
=
1
&&
$
enqueteForm
.
initCount =
="1")
checked
#
end
>
$!escape.html($!answer.answer)
#
if
($!
question
.
condRequiredQuestionNo
!=
"
0
")
disabled=
"disabled"
#
end
>
$!escape.html($!answer.answer)
##end
##end
##
<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
##
<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
...
...
src/main/webapp/WEB-INF/view/user/top/newUserRegist.html
0 → 100644
View file @
7d46402a
#set($title = "eモニとは")
<!-- preHeader -->
#parse( "/WEB-INF/view/common/preHeader.vm" )
##
<!-- JAVASCRIPTはここに記載 -->
<style
type=
"text/css"
>
<!
--
.style1
{
color
:
#FF0000
;
font-weight
:
bold
;
}
.style2
{
color
:
#FF0000
}
--
>
</style>
<body
bgcolor=
"#B3C9E1"
leftmargin=
"0"
topmargin=
"0"
marginwidth=
"0"
marginheight=
"0"
>
<center>
<!-- header -->
<table
width=
"1024"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<TD>
#parse( "/WEB-INF/view/common/header.vm" )
</TD>
</tr>
<tr>
<TD>
<table
width=
"1024"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<td
width=
"25"
background=
"/em/images/shadowlft2.jpg"
><img
src=
"/em/images/spacer.gif"
width=
"25"
height=
"1"
border=
"0"
></td>
<td
width=
"1024"
bgcolor=
"#FFFFFF"
>
<table
width=
"100%"
border=
"0"
cellspacing=
"5"
cellpadding=
"0"
>
<tr>
<td
align=
"right"
width=
"155"
valign=
"top"
>
#parse( "/WEB-INF/view/common/menu.vm" )
</td>
<td
align=
"left"
width=
"10"
background=
"/em/images/cts_bar.gif"
><img
src=
"/em/images/spacer.gif"
border=
"0"
></td>
<td
align=
"center"
valign=
"top"
>
##CONTENT START 各ページコンテンツ
<!-- Contents Title Table Start -->
<div
id=
"registration_title"
>
<div
style=
"font-size: 9pt;"
>
$!tools.getMsg("email")
$!tools.getMsg("email1")
$!tools.getMsg("genderCd")
$!tools.getMsg("birthdayY")
</div>
<img
src=
"/em/images/registration_ttl.png"
width=
"206"
height=
"21"
border=
"0"
alt=
"e-モニター新規登録"
>
</div>
#set($regist-url = $tools.getSecureUrl('/user/regist/regist'))
<div
class=
"input_form"
>
<form
name=
"mainForm"
action=
"$regist-url"
method=
"post"
style=
"padding: 0; margin: 10px 0;"
>
<table
width=
"780"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<td
style=
"text-align: right; width: 150px; padding-bottom: 7px;"
>
E-mail:
</td>
<td
style=
"text-align: left; width: 230px; padding-bottom: 7px;"
>
<input
type=
"text"
name=
"email"
class=
"inputBox"
maxlength=
"128"
value=
"$!escape.html($!registForm.email)"
>
</td>
</tr>
<tr>
<td
style=
"text-align: right; width: 70px; padding-bottom: 10px;"
nowrap
>
E-mail確認:
</td>
<td
style=
"text-align: left; padding-bottom: 10px;"
>
<input
type=
"text"
name=
"email1"
class=
"inputBox"
maxlength=
"128"
value=
"$!escape.html($!registForm.email1)"
>
</td>
</tr>
<tr>
<td
style=
"text-align: right; width: 70px; padding-bottom: 15px;"
>
性別:
</td>
<td
style=
"padding-bottom: 15px;"
>
<input
type=
"radio"
name=
"genderCd"
value=
"0"
#
if
($
registForm
.
genderCd =
=
0
)
checked
#
end
style=
"margin-left: 10px;"
>
男性
<input
type=
"radio"
name=
"genderCd"
value=
"1"
#
if
($
registForm
.
genderCd =
=
1
)
checked
#
end
>
女性
<input
type=
"radio"
name=
"genderCd"
value=
"2"
#
if
($
registForm
.
genderCd =
=
2
)
checked
#
end
>
その他
<input
type=
"radio"
name=
"genderCd"
value=
"3"
#
if
($
registForm
.
genderCd =
=
3
)
checked
#
end
>
入力しない
</td>
</tr>
<tr>
<td
style=
"text-align: right; width: 70px; padding-bottom: 15px;"
nowrap
>
生年月日:
</td>
<td
style=
"text-align: left; padding: 0px 0px 15px 10px; margin: 0;"
>
<select
name=
"birthdayY"
id=
"birthdayY"
>
<option
value=
""
></option>
#foreach($yyyy in [1900..$birthYYYY])
#if($registForm.birthdayY)
#if($yyyy == $!{registForm.birthdayY})
<option
value=
"$!yyyy"
selected
>
#he($!yyyy)
</option>
#else
<option
value=
"$!yyyy"
>
#he($!yyyy)
</option>
#end
#else
<option
value=
"$!yyyy"
>
#he($!yyyy)
</option>
#end
#end
</select>
年
<select
name=
"birthdayM"
id=
"birthdayM"
>
<option
value=
""
></option>
#foreach($mm in [1..12])
#if($mm == $!{registForm.birthdayM})
<option
value=
"$!mm"
selected
>
#he($!mm)
</option>
#else
<option
value=
"$!mm"
>
#he($!mm)
</option>
#end
#end
</select>
月
<select
name=
"birthdayD"
id=
"birthdayD"
>
<option
value=
""
></option>
#foreach($dd in [1..31])
#if($dd == $!{registForm.birthdayD})
<option
value=
"$!dd"
selected
>
#he($!dd)
</option>
#else
<option
value=
"$!dd"
>
#he($!dd)
</option>
#end
#end
</select>
日
</td>
</tr>
<tr>
<td
colspan=
"2"
style=
"padding-left: 220px;"
><a
href=
"#q('/user/top/ruleHtml/')"
>
会員規約
</a>
と
<a
href=
"#q('/user/top/howtoHtml/')"
>
ご利用方法
</a>
をご確認いただき、同意いただけましたら、
<br>
[新規登録]ボタンをクリックしてください。
</td>
</tr>
</table>
<table
width=
"300"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
style=
"margin-top: 5px;"
>
<tr>
<td
align=
"center"
>
<a
href=
"#"
onclick=
"send_check();"
>
<img
src=
"/em/images/registration_btn.png"
onmouseover=
"this.src='/em/images/registration_on_btn.png'"
onmouseout=
"this.src='/em/images/registration_btn.png'"
alt=
"新規登録"
width=
"302"
height=
"42"
border=
"0"
>
</a>
</td>
</tr>
</table>
</form>
</div>
</td>
</tr>
<tr>
<td
colspan=
"3"
align=
"right"
valign=
"top"
>
<img
src=
"/em/images/spacer.gif"
width=
"1"
height=
"6"
border=
"0"
></td>
</tr>
</table>
</td>
<td
width=
"25"
background=
"/em/images/shadowrgt2.jpg"
>
<img
src=
"/em/images/spacer.gif"
width=
"25"
height=
"1"
border=
"0"
></td>
</tr>
</table>
<!-- Contents Table End -->
##CONTENT END 各ページコンテンツ
</td>
</tr>
<tr>
<TD>
#parse( "/WEB-INF/view/common/footer.vm" )
</TD>
</tr>
</table>
</center>
</body>
</html>
\ No newline at end of file
src/main/webapp/WEB-INF/view/user/userEdit/uEdit.html
View file @
7d46402a
...
@@ -108,23 +108,18 @@
...
@@ -108,23 +108,18 @@
<table
width=
"740"
border=
"0"
cellpadding=
"2"
cellspacing=
"1"
bgcolor=
"#004080"
>
<table
width=
"740"
border=
"0"
cellpadding=
"2"
cellspacing=
"1"
bgcolor=
"#004080"
>
<tr>
<tr>
<td
class=
"listmenu"
>
パソコンE-mail
<span
class=
"listpoint"
>
*
</span></td>
<td
class=
"listmenu"
>
E-mail(メイン)
<span
class=
"listpoint"
>
*
</span></td>
<td
class=
"listcts"
>
<td
class=
"listcts"
>
<input
type=
"text"
size=
"40"
name=
"
pcEmail"
maxlength=
"128"
value=
"$!escape.html($!userEditForm.p
cEmail)"
>
<input
type=
"text"
size=
"40"
name=
"
mainPcEmail"
maxlength=
"128"
value=
"$!escape.html($!userEditForm.mainP
cEmail)"
>
<TABLE
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
><TR><Td>
$!tools.getMsg("pcEmail")
</Td></TR></TABLE>
<TABLE
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
><TR><Td>
$!tools.getMsg("mainPcEmail")
</Td></TR></TABLE>
<TABLE
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
><TR><Td>
$!tools.getMsg("Email")
</Td></TR></TABLE>
<font
class=
"txt10or"
>
※E-mail(メイン)は必須です。
</font>
<font
class=
"txt10or"
>
※パソコンまたは携帯電話どちらかは必須です。
</font>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"listmenu"
>
携帯電話E-mail
<span
class=
"listpoint"
>
*
</span>
</td>
<td
class=
"listmenu"
>
E-mail(サブ)
</td>
<td
class=
"listcts"
>
<td
class=
"listcts"
>
<input
type=
"text"
size=
"40"
name=
"mbEmail"
maxlength=
"128"
value=
"$!escape.html($!{userEditForm.mbEmail})"
>
<input
type=
"text"
size=
"40"
name=
"subPcEmail"
maxlength=
"128"
value=
"$!escape.html($!{userEditForm.subPcEmail})"
>
<TABLE
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
><TR><Td>
$!tools.getMsg("mbEmail")
</Td></TR></TABLE>
<TABLE
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
><TR><Td>
$!tools.getMsg("Email")
</Td></TR></TABLE>
<font
class=
"txt10or"
>
※パソコンまたは携帯電話どちらかは必須です。
</font>
</td>
</td>
</tr>
</tr>
...
@@ -283,10 +278,14 @@
...
@@ -283,10 +278,14 @@
<td
width=
"350"
class=
"listcts"
>
<td
width=
"350"
class=
"listcts"
>
#if($!userEditForm.genderCd == "null" || $!userEditForm.genderCd == "")
#if($!userEditForm.genderCd == "null" || $!userEditForm.genderCd == "")
<input
type=
"radio"
name=
"genderCd"
value=
"0"
>
男性
<input
type=
"radio"
name=
"genderCd"
value=
"0"
>
男性
<input
type=
"radio"
name=
"genderCd"
value=
"1"
>
女性
<input
type=
"radio"
name=
"genderCd"
value=
"1"
>
女性
<input
type=
"radio"
name=
"genderCd"
value=
"2"
>
その他
<input
type=
"radio"
name=
"genderCd"
value=
"3"
>
入力しない
#else
#else
<input
type=
"radio"
name=
"genderCd"
value=
"0"
#
if
($!
userEditForm
.
genderCd =
=
"
0
")
checked
#
end
>
男性
<input
type=
"radio"
name=
"genderCd"
value=
"0"
#
if
($!
userEditForm
.
genderCd =
=
"
0
")
checked
#
end
>
男性
<input
type=
"radio"
name=
"genderCd"
value=
"1"
#
if
($!
userEditForm
.
genderCd
!=
"
0
")
checked
#
end
>
女性
<input
type=
"radio"
name=
"genderCd"
value=
"1"
#
if
($!
userEditForm
.
genderCd =
=
"
1
")
checked
#
end
>
女性
<input
type=
"radio"
name=
"genderCd"
value=
"2"
#
if
($!
userEditForm
.
genderCd =
=
"
2
")
checked
#
end
>
その他
<input
type=
"radio"
name=
"genderCd"
value=
"3"
#
if
($!
userEditForm
.
genderCd =
=
"
3
")
checked
#
end
>
入力しない
#end
#end
<font
class=
"error"
></font>
<font
class=
"error"
></font>
<br>
<br>
...
...
src/main/webapp/WEB-INF/view/user/userEdit/uEditConfirm.html
View file @
7d46402a
...
@@ -84,15 +84,15 @@
...
@@ -84,15 +84,15 @@
<table
width=
"480"
border=
"0"
cellpadding=
"2"
cellspacing=
"1"
bgcolor=
"#004080"
>
<table
width=
"480"
border=
"0"
cellpadding=
"2"
cellspacing=
"1"
bgcolor=
"#004080"
>
<tr>
<tr>
<td
class=
"listcts"
>
パソコンE-mail
<td
class=
"listcts"
>
E-mail(メイン)
<td
class=
"listmenu"
>
$!userEditForm.
p
cEmail
</td>
<td
class=
"listmenu"
>
$!userEditForm.
mainP
cEmail
</td>
##
<input
type=
"hidden"
name=
"
pcEmail"
value=
"$!userEditForm.p
cEmail"
>
##
<input
type=
"hidden"
name=
"
mainPcEmail"
value=
"$!userEditForm.mainP
cEmail"
>
</tr>
</tr>
<tr>
<tr>
<td
class=
"listcts"
>
携帯電話E-mail
<td
class=
"listcts"
>
E-mail(サブ)
</td>
</td>
<td
class=
"listmenu"
>
$!userEditForm.
mb
Email
</td>
<td
class=
"listmenu"
>
$!userEditForm.
subPc
Email
</td>
##
<input
type=
"hidden"
name=
"
mbEmail"
value=
"$!userEditForm.mb
Email"
>
##
<input
type=
"hidden"
name=
"
subPcEmail"
value=
"$!userEditForm.subPc
Email"
>
</tr>
</tr>
<tr>
<tr>
...
@@ -165,6 +165,8 @@ $!userEditForm.lastNameKana
...
@@ -165,6 +165,8 @@ $!userEditForm.lastNameKana
<td
width=
"280"
class=
"listmenu"
>
<td
width=
"280"
class=
"listmenu"
>
#if($!userEditForm.genderCd == "0")男性
#if($!userEditForm.genderCd == "0")男性
#elseif($!userEditForm.genderCd == "1")女性
#elseif($!userEditForm.genderCd == "1")女性
#elseif($!userEditForm.genderCd == "2")その他
#elseif($!userEditForm.genderCd == "3")入力しない
#else
#else
#end
#end
##
<input
type=
"hidden"
name=
"genderCd"
value=
"$!userEditForm.genderCd"
>
##
<input
type=
"hidden"
name=
"genderCd"
value=
"$!userEditForm.genderCd"
>
...
...
src/main/webapp/images/logon_btn_new.png
0 → 100644
View file @
7d46402a
3.55 KB
src/test/java/jp/agentec/sinaburocast/service/EnqueteMailAddressTmpServiceTest.java
View file @
7d46402a
...
@@ -92,7 +92,7 @@ public class EnqueteMailAddressTmpServiceTest extends S2DaoTestCase {
...
@@ -92,7 +92,7 @@ public class EnqueteMailAddressTmpServiceTest extends S2DaoTestCase {
List
<
DeliveryGroupMember
>
addressList
=
new
ArrayList
<
DeliveryGroupMember
>();
List
<
DeliveryGroupMember
>
addressList
=
new
ArrayList
<
DeliveryGroupMember
>();
DeliveryGroupMember
deliveryGroupMember
=
new
DeliveryGroupMember
();
DeliveryGroupMember
deliveryGroupMember
=
new
DeliveryGroupMember
();
deliveryGroupMember
.
member
=
new
Member
();
deliveryGroupMember
.
member
=
new
Member
();
deliveryGroupMember
.
member
.
p
cEmail
=
"tauchi@agentec.jp"
;
deliveryGroupMember
.
member
.
mainP
cEmail
=
"tauchi@agentec.jp"
;
addressList
.
add
(
deliveryGroupMember
);
addressList
.
add
(
deliveryGroupMember
);
enqueteMailAddressTmpService
.
deleteInsert
(
2
,
addressList
,
"test"
);
enqueteMailAddressTmpService
.
deleteInsert
(
2
,
addressList
,
"test"
);
}
}
...
...
src/test/java/jp/agentec/sinaburocast/service/MemberServiceTest.java
View file @
7d46402a
...
@@ -145,12 +145,12 @@ public class MemberServiceTest extends S2DaoTestCase {
...
@@ -145,12 +145,12 @@ public class MemberServiceTest extends S2DaoTestCase {
}
}
}
}
public
void
findByPcEmail
(){
public
void
findByPcEmail
(){
System
.
out
.
println
(
memberService
.
findByPcEmail
(
"kim-hs@agentec.jp"
));
System
.
out
.
println
(
memberService
.
findBy
Main
PcEmail
(
"kim-hs@agentec.jp"
));
}
}
public
void
findByMoEmail
(){
public
void
findByMoEmail
(){
System
.
out
.
println
(
memberService
.
findBy
Mo
Email
(
"kim-hs@agentec.jp"
));
System
.
out
.
println
(
memberService
.
findBy
SubPc
Email
(
"kim-hs@agentec.jp"
));
}
}
public
void
findByLoginId
(){
public
void
findByLoginId
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment