[pal-cvs 2800] [544] renamed member.

svnno****@sourc***** svnno****@sourc*****
2007年 9月 6日 (木) 17:44:08 JST


Revision: 544
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=544
Author:   shinsuke
Date:     2007-09-06 17:44:07 +0900 (Thu, 06 Sep 2007)

Log Message:
-----------
renamed member.

Added Paths:
-----------
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/dxo/CustomerDxo.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerConfirmAction.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerConfirmPage.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerEditAction.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerEditPage.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerListAction.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerListPage.java
    pompei/portlets/pompei-core/trunk/src/main/resources/jp/sf/pal/pompei/web/admin/customer/
    pompei/portlets/pompei-core/trunk/src/main/resources/jp/sf/pal/pompei/web/admin/customer/label.properties
    pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/customer/
    pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/customer/customerConfirm.html
    pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/customer/customerEdit.html
    pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/customer/customerList.html

Removed Paths:
-------------
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/dxo/MemberDxo.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/MemberService.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/MemberServiceImpl.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberConfirmAction.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberConfirmPage.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberEditAction.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberEditPage.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberListAction.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberListPage.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/
    pompei/portlets/pompei-core/trunk/src/main/resources/jp/sf/pal/pompei/web/admin/member/
    pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberConfirm.html
    pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberEdit.html
    pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberList.html


-------------- next part --------------
Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/dxo/CustomerDxo.java (from rev 543, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/dxo/MemberDxo.java)
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/dxo/MemberDxo.java	2007-09-06 08:03:36 UTC (rev 543)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/dxo/CustomerDxo.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -0,0 +1,38 @@
+package jp.sf.pal.pompei.dxo;
+
+import java.io.Serializable;
+import java.util.List;
+import java.util.Map;
+
+import jp.sf.pal.pompei.exentity.AddressBook;
+import jp.sf.pal.pompei.exentity.Customers;
+import jp.sf.pal.pompei.web.admin.customer.CustomerConfirmPage;
+import jp.sf.pal.pompei.web.admin.customer.CustomerEditPage;
+
+import org.seasar.extension.dxo.annotation.ConversionRule;
+
+public interface CustomerDxo extends Serializable {
+
+    Customers convert(CustomerEditPage memberEditPage);
+
+    AddressBook convertAddress(CustomerEditPage memberEditPage);
+
+    Customers convert(CustomerConfirmPage memberConfirmPage);
+
+    AddressBook convertAddress(CustomerConfirmPage memberConfirmPage);
+
+    @ConversionRule("customersId : customersId"
+            + ",lastName : customersLastname"
+            + ",firstName : customersFirstname"
+            + ",entryCity : addressBook.entryCity"
+            + ",entryState : addressBook.entryState"
+            + ",entryCompany : addressBook.entryCompany")
+    List<Map> conbertMap(List memberItems);
+
+    void convert(Customers customers, CustomerEditPage memberEditPage);
+
+    void convert(CustomerConfirmPage memberConfirmPage, Customers customers);
+
+    void convert(CustomerConfirmPage memberConfirmPage, AddressBook book);
+
+}

Deleted: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/dxo/MemberDxo.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/dxo/MemberDxo.java	2007-09-06 08:03:36 UTC (rev 543)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/dxo/MemberDxo.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,38 +0,0 @@
-package jp.sf.pal.pompei.dxo;
-
-import java.io.Serializable;
-import java.util.List;
-import java.util.Map;
-
-import jp.sf.pal.pompei.exentity.AddressBook;
-import jp.sf.pal.pompei.exentity.Customers;
-import jp.sf.pal.pompei.web.admin.member.MemberConfirmPage;
-import jp.sf.pal.pompei.web.admin.member.MemberEditPage;
-
-import org.seasar.extension.dxo.annotation.ConversionRule;
-
-public interface MemberDxo extends Serializable {
-
-    Customers convert(MemberEditPage memberEditPage);
-
-    AddressBook convertAddress(MemberEditPage memberEditPage);
-
-    Customers convert(MemberConfirmPage memberConfirmPage);
-
-    AddressBook convertAddress(MemberConfirmPage memberConfirmPage);
-
-    @ConversionRule("customersId : customersId"
-            + ",lastName : customersLastname"
-            + ",firstName : customersFirstname"
-            + ",entryCity : addressBook.entryCity"
-            + ",entryState : addressBook.entryState"
-            + ",entryCompany : addressBook.entryCompany")
-    List<Map> conbertMap(List memberItems);
-
-    void convert(Customers customers, MemberEditPage memberEditPage);
-
-    void convert(MemberConfirmPage memberConfirmPage, Customers customers);
-
-    void convert(MemberConfirmPage memberConfirmPage, AddressBook book);
-
-}

Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java (from rev 527, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/MemberService.java)
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/MemberService.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -0,0 +1,24 @@
+package jp.sf.pal.pompei.service;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.List;
+
+import jp.sf.pal.pompei.exentity.AddressBook;
+import jp.sf.pal.pompei.exentity.Customers;
+
+public interface CustomerService extends Serializable {
+
+    void addCustomer(AddressBook addressBook);
+
+    List getCustomerList();
+
+    Customers getCustomer(BigDecimal customersId);
+
+    Customers getCustomer(String portalId);
+
+    void updateCustomer(Customers customers);
+
+    void deleteCustomer(BigDecimal customersId);
+
+}

Deleted: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/MemberService.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/MemberService.java	2007-09-06 08:03:36 UTC (rev 543)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/MemberService.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,22 +0,0 @@
-package jp.sf.pal.pompei.service;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.util.List;
-
-import jp.sf.pal.pompei.exentity.AddressBook;
-import jp.sf.pal.pompei.exentity.Customers;
-
-public interface MemberService extends Serializable {
-
-    void addMember(AddressBook addressBook);
-
-    List getMemberList();
-
-    Customers getMember(BigDecimal customersId);
-
-    void updateMember(Customers customers);
-
-    void deleteMember(BigDecimal customersId);
-
-}

Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java (from rev 527, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/MemberServiceImpl.java)
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/MemberServiceImpl.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -0,0 +1,119 @@
+package jp.sf.pal.pompei.service.impl;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+import jp.sf.pal.pompei.cbean.AddressBookCB;
+import jp.sf.pal.pompei.cbean.CustomersCB;
+import jp.sf.pal.pompei.exbhv.AddressBookBhv;
+import jp.sf.pal.pompei.exbhv.CustomersBhv;
+import jp.sf.pal.pompei.exbhv.CustomersInfoBhv;
+import jp.sf.pal.pompei.exentity.AddressBook;
+import jp.sf.pal.pompei.exentity.Customers;
+import jp.sf.pal.pompei.service.CustomerService;
+
+public class CustomerServiceImpl implements CustomerService {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -5106715434338567436L;
+
+    private CustomersBhv customersBhv;
+
+    private CustomersInfoBhv customersInfoBhv;
+
+    private AddressBookBhv addressBookBhv;
+
+    public void addCustomer(Customers customers) {
+
+    }
+
+    public void addCustomer(AddressBook addressBook) {
+
+        //		addressBook.setCustomers(customers);
+        Customers customers = addressBook.getCustomers();
+        //顧客を登録
+        customersBhv.insert(customers);
+
+        //アドレスブックを登録
+        addressBook.setCustomersId(customers.getCustomersId());
+        addressBookBhv.insert(addressBook);
+
+        //デフォルトアドレスIDを設定
+        customers.setCustomersDefaultAddressId(addressBook.getAddressBookId());
+        customersBhv.update(customers);
+    }
+
+    public void updateCustomer(Customers customers, AddressBook addressBook) {
+
+    }
+
+    public AddressBookBhv getAddressBookBhv() {
+        return addressBookBhv;
+    }
+
+    public void setAddressBookBhv(AddressBookBhv addressBookBhv) {
+        this.addressBookBhv = addressBookBhv;
+    }
+
+    public CustomersBhv getCustomersBhv() {
+        return customersBhv;
+    }
+
+    public void setCustomersBhv(CustomersBhv customersBhv) {
+        this.customersBhv = customersBhv;
+    }
+
+    public CustomersInfoBhv getCustomersInfoBhv() {
+        return customersInfoBhv;
+    }
+
+    public void setCustomersInfoBhv(CustomersInfoBhv customersInfoBhv) {
+        this.customersInfoBhv = customersInfoBhv;
+    }
+
+    public List getCustomerList() {
+        CustomersCB customersCB = new CustomersCB();
+        //        customersCB.setupSelect_AddressBook();
+        List customersList = customersBhv.selectList(customersCB);
+        return customersList;
+    }
+
+    public Customers getCustomer(BigDecimal customersId) {
+        CustomersCB customersCB = new CustomersCB();
+        //        customersCB.setupSelect_CustomersInfoAsOne()
+        customersCB.query().setCustomersId_Equal(customersId);
+        Customers customers = customersBhv.selectEntity(customersCB);
+        return customers;
+    }
+    public Customers getCustomer(String portalId) {
+        CustomersCB cb = new CustomersCB();
+//        cb.setupSelect_CustomersInfoAsOne();
+        cb.query().setCustomersPortalId_Equal(portalId);
+        Customers customers = customersBhv.selectEntity(cb);
+        return customers;
+    }
+
+    public void updateCustomer(Customers customers) {
+
+        customersBhv.update(customers);
+
+        //        AddressBook addressBook = customers.getAddressBook();
+        //        addressBookBhv.update(addressBook);
+
+    }
+
+    public void deleteCustomer(BigDecimal customersId) {
+        Customers customers = getCustomer(customersId);
+        customers.setCustomersDefaultAddressId(new BigDecimal("0"));
+        customersBhv.update(customers);
+
+        AddressBookCB addressBookCB = new AddressBookCB();
+        addressBookCB.query().setCustomersId_Equal(customers.getCustomersId());
+        addressBookBhv.deleteList(addressBookBhv.selectList(addressBookCB));
+
+        customersBhv.delete(customers);
+    }
+
+}

Deleted: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/MemberServiceImpl.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/MemberServiceImpl.java	2007-09-06 08:03:36 UTC (rev 543)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/MemberServiceImpl.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,112 +0,0 @@
-package jp.sf.pal.pompei.service.impl;
-
-import java.math.BigDecimal;
-import java.util.List;
-
-import jp.sf.pal.pompei.cbean.AddressBookCB;
-import jp.sf.pal.pompei.cbean.CustomersCB;
-import jp.sf.pal.pompei.exbhv.AddressBookBhv;
-import jp.sf.pal.pompei.exbhv.CustomersBhv;
-import jp.sf.pal.pompei.exbhv.CustomersInfoBhv;
-import jp.sf.pal.pompei.exentity.AddressBook;
-import jp.sf.pal.pompei.exentity.Customers;
-import jp.sf.pal.pompei.service.MemberService;
-
-public class MemberServiceImpl implements MemberService {
-
-    /**
-     * 
-     */
-    private static final long serialVersionUID = -5106715434338567436L;
-
-    private CustomersBhv customersBhv;
-
-    private CustomersInfoBhv customersInfoBhv;
-
-    private AddressBookBhv addressBookBhv;
-
-    public void addMember(Customers customers) {
-
-    }
-
-    public void addMember(AddressBook addressBook) {
-
-        //		addressBook.setCustomers(customers);
-        Customers customers = addressBook.getCustomers();
-        //顧客を登録
-        customersBhv.insert(customers);
-
-        //アドレスブックを登録
-        addressBook.setCustomersId(customers.getCustomersId());
-        addressBookBhv.insert(addressBook);
-
-        //デフォルトアドレスIDを設定
-        customers.setCustomersDefaultAddressId(addressBook.getAddressBookId());
-        customersBhv.update(customers);
-    }
-
-    public void updateMember(Customers customers, AddressBook addressBook) {
-
-    }
-
-    public AddressBookBhv getAddressBookBhv() {
-        return addressBookBhv;
-    }
-
-    public void setAddressBookBhv(AddressBookBhv addressBookBhv) {
-        this.addressBookBhv = addressBookBhv;
-    }
-
-    public CustomersBhv getCustomersBhv() {
-        return customersBhv;
-    }
-
-    public void setCustomersBhv(CustomersBhv customersBhv) {
-        this.customersBhv = customersBhv;
-    }
-
-    public CustomersInfoBhv getCustomersInfoBhv() {
-        return customersInfoBhv;
-    }
-
-    public void setCustomersInfoBhv(CustomersInfoBhv customersInfoBhv) {
-        this.customersInfoBhv = customersInfoBhv;
-    }
-
-    public List getMemberList() {
-        CustomersCB customersCB = new CustomersCB();
-        //        customersCB.setupSelect_AddressBook();
-        List customersList = customersBhv.selectList(customersCB);
-        return customersList;
-    }
-
-    public Customers getMember(BigDecimal customersId) {
-        CustomersCB customersCB = new CustomersCB();
-        //        customersCB.setupSelect_CustomersInfoAsOne()
-        customersCB.query().setCustomersId_Equal(customersId);
-        Customers customers = customersBhv.selectEntity(customersCB);
-        return customers;
-    }
-
-    public void updateMember(Customers customers) {
-
-        customersBhv.update(customers);
-
-        //        AddressBook addressBook = customers.getAddressBook();
-        //        addressBookBhv.update(addressBook);
-
-    }
-
-    public void deleteMember(BigDecimal customersId) {
-        Customers customers = getMember(customersId);
-        customers.setCustomersDefaultAddressId(new BigDecimal("0"));
-        customersBhv.update(customers);
-
-        AddressBookCB addressBookCB = new AddressBookCB();
-        addressBookCB.query().setCustomersId_Equal(customers.getCustomersId());
-        addressBookBhv.deleteList(addressBookBhv.selectList(addressBookCB));
-
-        customersBhv.delete(customers);
-    }
-
-}

Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer (from rev 527, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member)

Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerConfirmAction.java (from rev 527, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberConfirmAction.java)
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberConfirmAction.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerConfirmAction.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -0,0 +1,111 @@
+package jp.sf.pal.pompei.web.admin.customer;
+
+import java.io.Serializable;
+
+import jp.sf.pal.pompei.PompeiConstants;
+import jp.sf.pal.pompei.dxo.CustomerDxo;
+import jp.sf.pal.pompei.exentity.AddressBook;
+import jp.sf.pal.pompei.exentity.Customers;
+import jp.sf.pal.pompei.service.CustomerService;
+import jp.sf.pal.pompei.web.util.DateUtil;
+import jp.sf.pal.pompei.web.util.PageUtil;
+
+public class CustomerConfirmAction implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -1188349655650999839L;
+
+    /**
+     *
+     */
+    private CustomerConfirmPage memberConfirmPage;
+
+    private CustomerDxo memberDxo;
+
+    private CustomerService memberService;
+
+    public Class doUpdate() {
+        if (isInsert()) {
+            Customers customers = memberDxo.convert(memberConfirmPage);
+            customers.setCustomersGender(memberConfirmPage.getGender());
+            customers.setCustomersDob(DateUtil.getTimeStamp(memberConfirmPage
+                    .getCustomersDob()));
+            AddressBook book = memberDxo.convertAddress(memberConfirmPage);
+
+            book.setEntryState(PageUtil.getLabelOfValue(memberConfirmPage
+                    .getEntryZoneIdItems(), memberConfirmPage.getEntryZoneId()
+                    .toString()));
+            book.setEntryGender(customers.getCustomersGender());
+            book.setEntryFirstname(customers.getCustomersFirstname());
+            book.setEntryLastname(customers.getCustomersLastname());
+            book.setCustomers(customers);
+            memberService.addCustomer(book);
+        } else if (isUpdate()) {
+            //            Customers customers = memberService.getCustomer(memberConfirmPage
+            //                    .getCustomersId());
+            //            AddressBook book = customers.getAddressBook();
+            //
+            //            memberDxo.convert(memberConfirmPage, customers);
+            //            memberDxo.convert(memberConfirmPage, book);
+            //
+            //            customers.setCustomersDob(DateUtil.getTimeStamp(memberConfirmPage
+            //                    .getCustomersDob()));
+            //
+            //            book.setEntryState(PageUtil.getLabelOfValue(memberConfirmPage
+            //                    .getEntryZoneIdItems(), memberConfirmPage.getEntryZoneId()
+            //                    .toString()));
+            //            book.setEntryGender(customers.getCustomersGender());
+            //            book.setEntryFirstname(customers.getCustomersFirstname());
+            //            book.setEntryLastname(customers.getCustomersLastname());
+            //
+            //            memberService.updateCustomer(customers);
+
+        } else {
+            return null;
+        }
+        return CustomerListPage.class;
+    }
+
+    private boolean isUpdate() {
+        String mode = memberConfirmPage.getMode();
+        return mode != null && mode.equals(PompeiConstants.UPDATE_MODE);
+    }
+
+    private boolean isInsert() {
+        String mode = memberConfirmPage.getMode();
+        return mode != null && mode.equals(PompeiConstants.INSERT_MODE);
+    }
+
+    /**
+     * @return memberConfirmPage
+     */
+    public CustomerConfirmPage getCustomerConfirmPage() {
+        return memberConfirmPage;
+    }
+
+    /**
+     * @param memberConfirmPage 設定する memberConfirmPage
+     */
+    public void setCustomerConfirmPage(CustomerConfirmPage memberConfirmPage) {
+        this.memberConfirmPage = memberConfirmPage;
+    }
+
+    public CustomerDxo getCustomerDxo() {
+        return memberDxo;
+    }
+
+    public void setCustomerDxo(CustomerDxo memberDxo) {
+        this.memberDxo = memberDxo;
+    }
+
+    public CustomerService getCustomerService() {
+        return memberService;
+    }
+
+    public void setCustomerService(CustomerService memberService) {
+        this.memberService = memberService;
+    }
+
+}

Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerConfirmPage.java (from rev 527, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberConfirmPage.java)
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberConfirmPage.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerConfirmPage.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -0,0 +1,304 @@
+package jp.sf.pal.pompei.web.admin.customer;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.List;
+import java.util.Map;
+
+import jp.sf.pal.pompei.web.util.PageUtil;
+
+import org.seasar.teeda.extension.annotation.scope.SubapplicationScope;
+
+public class CustomerConfirmPage implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -2946943974630142860L;
+
+    private BigDecimal customersId;
+
+    @SubapplicationScope
+    private String mode;
+
+    @SubapplicationScope
+    private String customersFirstname;
+
+    @SubapplicationScope
+    private String customersLastname;
+
+    @SubapplicationScope
+    private String customersPassword;
+
+    @SubapplicationScope
+    private String entryPostcode1;
+
+    @SubapplicationScope
+    private String entryPostcode2;
+
+    @SubapplicationScope
+    private String customersDob;
+
+    @SubapplicationScope
+    private String customersEmailAddress;
+
+    @SubapplicationScope
+    private String customersFax;
+
+    @SubapplicationScope
+    private String customersTelephone;
+
+    @SubapplicationScope
+    private String entryCity;
+
+    @SubapplicationScope
+    private String entryCompany;
+
+    @SubapplicationScope
+    private String entryPostcode;
+
+    @SubapplicationScope
+    private String entryStreetAddress;
+
+    @SubapplicationScope
+    private String entrySuburb;
+
+    @SubapplicationScope
+    private String entryZoneName;
+
+    @SubapplicationScope
+    private BigDecimal entryZoneId;
+
+    @SubapplicationScope
+    private List entryZoneIdItems;
+
+    @SubapplicationScope
+    private String genderLabel;
+
+    @SubapplicationScope
+    private String newsLetterLabel;
+
+    @SubapplicationScope
+    private String title;
+
+    private String usersName;
+
+    @SubapplicationScope
+    private String gender;
+
+    @SubapplicationScope
+    private List<Map> genderItems;
+
+    public String getCustomersDob() {
+        return customersDob;
+    }
+
+    public void setCustomersDob(String customersDob) {
+        this.customersDob = customersDob;
+    }
+
+    public String getCustomersEmailAddress() {
+        return customersEmailAddress;
+    }
+
+    public void setCustomersEmailAddress(String customersEmailAddress) {
+        this.customersEmailAddress = customersEmailAddress;
+    }
+
+    public String getCustomersFax() {
+        return customersFax;
+    }
+
+    public void setCustomersFax(String customersFax) {
+        this.customersFax = customersFax;
+    }
+
+    public String getCustomersTelephone() {
+        return customersTelephone;
+    }
+
+    public void setCustomersTelephone(String customersTelephone) {
+        this.customersTelephone = customersTelephone;
+    }
+
+    public String getEntryCity() {
+        return entryCity;
+    }
+
+    public void setEntryCity(String entryCity) {
+        this.entryCity = entryCity;
+    }
+
+    public String getEntryCompany() {
+        return entryCompany;
+    }
+
+    public void setEntryCompany(String entryCompany) {
+        this.entryCompany = entryCompany;
+    }
+
+    public String getEntryPostcode() {
+        return entryPostcode1 + "-" + entryPostcode2;
+        //		return entryPostcode;
+    }
+
+    public void setEntryPostcode(String entryPostcode) {
+        this.entryPostcode = entryPostcode;
+    }
+
+    public String getEntryStreetAddress() {
+        return entryStreetAddress;
+    }
+
+    public void setEntryStreetAddress(String entryStreetAddress) {
+        this.entryStreetAddress = entryStreetAddress;
+    }
+
+    public String getEntrySuburb() {
+        return entrySuburb;
+    }
+
+    public void setEntrySuburb(String entrySuburb) {
+        this.entrySuburb = entrySuburb;
+    }
+
+    public String getEntryZoneName() {
+        return PageUtil.getLabelOfValue(entryZoneIdItems, entryZoneId
+                .toString());
+        //		return entryZoneName;
+    }
+
+    public void setEntryZoneName(String entryZoneName) {
+        this.entryZoneName = entryZoneName;
+    }
+
+    public String getGenderLabel() {
+        return PageUtil.getLabelOfValue(genderItems, gender);
+        //return genderLabel;
+    }
+
+    public void setGenderLabel(String genderLabel) {
+        this.genderLabel = genderLabel;
+    }
+
+    public String getNewsLetterLabel() {
+        return this.newsLetterLabel;
+    }
+
+    public void setNewsLetterLabel(String newsLetterLabel) {
+        this.newsLetterLabel = newsLetterLabel;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getUsersName() {
+        return this.customersFirstname + " " + this.customersLastname;
+    }
+
+    public void setUsersName(String usersName) {
+        this.usersName = usersName;
+    }
+
+    public Class initialize() {
+        return null;
+    }
+
+    public Class prerender() {
+        return null;
+    }
+
+    public String getCustomersFirstname() {
+        return customersFirstname;
+    }
+
+    public void setCustomersFirstname(String customersFirstname) {
+        this.customersFirstname = customersFirstname;
+    }
+
+    public String getCustomersLastname() {
+        return customersLastname;
+    }
+
+    public void setCustomersLastname(String customersLastname) {
+        this.customersLastname = customersLastname;
+    }
+
+    public String getCustomersPassword() {
+        return customersPassword;
+    }
+
+    public void setCustomersPassword(String customersPassword) {
+        this.customersPassword = customersPassword;
+    }
+
+    public String getEntryPostcode1() {
+        return entryPostcode1;
+    }
+
+    public void setEntryPostcode1(String entryPostcode1) {
+        this.entryPostcode1 = entryPostcode1;
+    }
+
+    public String getEntryPostcode2() {
+        return entryPostcode2;
+    }
+
+    public void setEntryPostcode2(String entryPostcode2) {
+        this.entryPostcode2 = entryPostcode2;
+    }
+
+    public List<Map> getGenderItems() {
+        return genderItems;
+    }
+
+    public void setGenderItems(List<Map> genderItems) {
+        this.genderItems = genderItems;
+    }
+
+    public String getGender() {
+        return gender;
+    }
+
+    public void setGender(String gender) {
+        this.gender = gender;
+    }
+
+    public BigDecimal getEntryZoneId() {
+        return entryZoneId;
+    }
+
+    public void setEntryZoneId(BigDecimal entryZoneId) {
+        this.entryZoneId = entryZoneId;
+    }
+
+    public List getEntryZoneIdItems() {
+        return entryZoneIdItems;
+    }
+
+    public void setEntryZoneIdItems(List entryZoneIdItems) {
+        this.entryZoneIdItems = entryZoneIdItems;
+    }
+
+    public String getMode() {
+        return mode;
+    }
+
+    public void setMode(String mode) {
+        this.mode = mode;
+    }
+
+    public BigDecimal getCustomersId() {
+        return customersId;
+    }
+
+    public void setCustomersId(BigDecimal customersId) {
+        this.customersId = customersId;
+    }
+
+}

Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerEditAction.java (from rev 527, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberEditAction.java)
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberEditAction.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerEditAction.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -0,0 +1,154 @@
+package jp.sf.pal.pompei.web.admin.customer;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import jp.sf.pal.pompei.PompeiConstants;
+import jp.sf.pal.pompei.dxo.CustomerDxo;
+import jp.sf.pal.pompei.exentity.Customers;
+import jp.sf.pal.pompei.service.CustomerService;
+
+public class CustomerEditAction implements Serializable {
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 111723657530085205L;
+
+    /**
+     *
+     */
+    private CustomerEditPage memberEditPage;
+
+    /**
+     *
+     */
+    private CustomerService memberService;
+
+    private CustomerDxo memberDxo;
+
+    public Class initialize() {
+        List genderItems = createGenderItems();
+        memberEditPage.setGenderItems(genderItems);
+
+        List zoneItems = createZoneItems();
+        memberEditPage.setEntryZoneIdItems(zoneItems);
+
+        return null;
+    }
+
+    private List<Map> createZoneItems() {
+        List<Map> list = new ArrayList<Map>();
+        list.add(setValue("北海道", "1"));
+        list.add(setValue("青森", "2"));
+        list.add(setValue("秋田", "3"));
+        list.add(setValue("宮城", "4"));
+        list.add(setValue("山形", "5"));
+        list.add(setValue("福島", "6"));
+        list.add(setValue("茨城", "7"));
+        list.add(setValue("群馬", "8"));
+        list.add(setValue("栃木", "9"));
+        list.add(setValue("東京", "10"));
+        list.add(setValue("神奈川", "11"));
+        return list;
+    }
+
+    public Class prerender() {
+        if (isUpdate()) {
+            Customers customers = memberService.getCustomer(memberEditPage
+                    .getCustomersId());
+            memberDxo.convert(customers, memberEditPage);
+
+            String s = memberEditPage.getEntryPostcode1();
+
+        } else {
+            memberEditPage.setMode(PompeiConstants.INSERT_MODE);
+            setDefaultValue();
+        }
+        return null;
+    }
+
+    private Map setValue(String lavel, String value) {
+        Map map = new HashMap();
+        map.put("label", lavel);
+        map.put("value", value);
+        return map;
+    }
+
+    private List createGenderItems() {
+        List list = new ArrayList();
+        Map map = new HashMap();
+        map.put("label", "男");
+        map.put("value", "1");
+        list.add(map);
+        map = new HashMap();
+        map.put("label", "女");
+        map.put("value", "2");
+        list.add(map);
+        return list;
+    }
+
+    private void setDefaultValue() {
+        memberEditPage.setCustomersLastname("佐藤");
+        memberEditPage.setCustomersFirstname("浩一");
+        memberEditPage.setCustomersDob("20070101");
+        memberEditPage.setCustomersEmailAddress("aaa****@aaa*****");
+        memberEditPage.setCustomersTelephone("999-9999-9999");
+        memberEditPage.setEntryCity("豊島区");
+        memberEditPage.setEntryPostcode1("999");
+        memberEditPage.setEntryPostcode2("9999");
+        memberEditPage.setEntryStreetAddress("1-1-1");
+        memberEditPage.setEntryZoneId(new BigDecimal("1"));
+
+    }
+
+    private boolean isUpdate() {
+        String mode = memberEditPage.getMode();
+        return mode != null && mode.equals(PompeiConstants.UPDATE_MODE);
+    }
+
+    private boolean isInsert() {
+        String mode = memberEditPage.getMode();
+        return mode != null && mode.equals(PompeiConstants.INSERT_MODE);
+    }
+
+    /**
+     * @return memberEditPage
+     */
+    public CustomerEditPage getCustomerEditPage() {
+        return memberEditPage;
+    }
+
+    /**
+     * @param memberEditPage 設定する memberEditPage
+     */
+    public void setCustomerEditPage(CustomerEditPage memberEditPage) {
+        this.memberEditPage = memberEditPage;
+    }
+
+    /**
+     * @return memberService
+     */
+    public CustomerService getCustomerService() {
+        return memberService;
+    }
+
+    /**
+     * @param memberService 設定する memberService
+     */
+    public void setCustomerService(CustomerService memberService) {
+        this.memberService = memberService;
+    }
+
+    public CustomerDxo getCustomerDxo() {
+        return memberDxo;
+    }
+
+    public void setCustomerDxo(CustomerDxo memberDxo) {
+        this.memberDxo = memberDxo;
+    }
+
+}

Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerEditPage.java (from rev 527, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberEditPage.java)
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberEditPage.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerEditPage.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -0,0 +1,276 @@
+package jp.sf.pal.pompei.web.admin.customer;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.List;
+import java.util.Map;
+
+import org.seasar.teeda.extension.annotation.scope.SubapplicationScope;
+
+public class CustomerEditPage implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 7616443380048617561L;
+
+    public static final String customersEmailAddress_TRequiredValidator = null;
+
+    public static final String customersFirstname_TRequiredValidator = null;
+
+    public static final String customersLastname_TRequiredValidator = null;
+
+    public static final String customersDob_TRequiredValidator = null;
+
+    public static final String customersPassword_TRequiredValidator = null;
+
+    public static final String customersTelephone_TRequiredValidator = null;
+
+    public static final String entryCity_TRequiredValidator = null;
+
+    public static final String entryPostcode1_TRequiredValidator = null;
+
+    public static final String entryPostcode2_TRequiredValidator = null;
+
+    public static final String entryStreetAddress_TRequiredValidator = null;
+
+    public static final String entryZoneId_TRequiredValidator = null;
+
+    public static final String gender_TRequiredValidator = null;
+
+    @SubapplicationScope
+    private BigDecimal customersId;
+
+    @SubapplicationScope
+    private String customersDob;
+
+    @SubapplicationScope
+    private String customersEmailAddress;
+
+    @SubapplicationScope
+    private String customersFax;
+
+    @SubapplicationScope
+    private String customersFirstname;
+
+    @SubapplicationScope
+    private String customersLastname;
+
+    @SubapplicationScope
+    private String customersPassword;
+
+    @SubapplicationScope
+    private String customersTelephone;
+
+    @SubapplicationScope
+    private String entryCity;
+
+    @SubapplicationScope
+    private String entryCompany;
+
+    @SubapplicationScope
+    private String entryPostcode;
+
+    @SubapplicationScope
+    private String entryPostcode1;
+
+    @SubapplicationScope
+    private String entryPostcode2;
+
+    @SubapplicationScope
+    private String entryStreetAddress;
+
+    @SubapplicationScope
+    private String entrySuburb;
+
+    @SubapplicationScope
+    private BigDecimal entryZoneId;
+
+    @SubapplicationScope
+    private List entryZoneIdItems;
+
+    @SubapplicationScope
+    private String gender;
+
+    @SubapplicationScope
+    private List<Map> genderItems;
+
+    private String title;
+
+    private String mode;
+
+    public String getCustomersDob() {
+        return customersDob;
+    }
+
+    public void setCustomersDob(String customersDob) {
+        this.customersDob = customersDob;
+    }
+
+    public String getCustomersEmailAddress() {
+        return customersEmailAddress;
+    }
+
+    public void setCustomersEmailAddress(String customersEmailAddress) {
+        this.customersEmailAddress = customersEmailAddress;
+    }
+
+    public String getCustomersFax() {
+        return customersFax;
+    }
+
+    public void setCustomersFax(String customersFax) {
+        this.customersFax = customersFax;
+    }
+
+    public String getCustomersFirstname() {
+        return customersFirstname;
+    }
+
+    public void setCustomersFirstname(String customersFirstname) {
+        this.customersFirstname = customersFirstname;
+    }
+
+    public String getCustomersLastname() {
+        return customersLastname;
+    }
+
+    public void setCustomersLastname(String customersLastname) {
+        this.customersLastname = customersLastname;
+    }
+
+    public String getCustomersPassword() {
+        return customersPassword;
+    }
+
+    public void setCustomersPassword(String customersPassword) {
+        this.customersPassword = customersPassword;
+    }
+
+    public String getCustomersTelephone() {
+        return customersTelephone;
+    }
+
+    public void setCustomersTelephone(String customersTelephone) {
+        this.customersTelephone = customersTelephone;
+    }
+
+    public String getEntryCity() {
+        return entryCity;
+    }
+
+    public void setEntryCity(String entryCity) {
+        this.entryCity = entryCity;
+    }
+
+    public String getEntryCompany() {
+        return entryCompany;
+    }
+
+    public void setEntryCompany(String entryCompany) {
+        this.entryCompany = entryCompany;
+    }
+
+    public String getEntryPostcode1() {
+        return entryPostcode1;
+    }
+
+    public void setEntryPostcode1(String entryPostcode1) {
+        this.entryPostcode1 = entryPostcode1;
+    }
+
+    public String getEntryPostcode2() {
+        return entryPostcode2;
+    }
+
+    public void setEntryPostcode2(String entryPostcode2) {
+        this.entryPostcode2 = entryPostcode2;
+    }
+
+    public String getEntryStreetAddress() {
+        return entryStreetAddress;
+    }
+
+    public void setEntryStreetAddress(String entryStreetAddress) {
+        this.entryStreetAddress = entryStreetAddress;
+    }
+
+    public String getEntrySuburb() {
+        return entrySuburb;
+    }
+
+    public void setEntrySuburb(String entrySuburb) {
+        this.entrySuburb = entrySuburb;
+    }
+
+    public BigDecimal getEntryZoneId() {
+        return entryZoneId;
+    }
+
+    public void setEntryZoneId(BigDecimal entryZoneId) {
+        this.entryZoneId = entryZoneId;
+    }
+
+    public List getEntryZoneIdItems() {
+        return entryZoneIdItems;
+    }
+
+    public void setEntryZoneIdItems(List entryZoneIdItems) {
+        this.entryZoneIdItems = entryZoneIdItems;
+    }
+
+    public String getGender() {
+        return gender;
+    }
+
+    public void setGender(String gender) {
+        this.gender = gender;
+    }
+
+    public List getGenderItems() {
+        return genderItems;
+    }
+
+    public void setGenderItems(List<Map> genderItems) {
+        this.genderItems = genderItems;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getMode() {
+        return mode;
+    }
+
+    public void setMode(String mode) {
+        this.mode = mode;
+    }
+
+    public BigDecimal getCustomersId() {
+        return customersId;
+    }
+
+    public void setCustomersId(BigDecimal customersId) {
+        this.customersId = customersId;
+    }
+
+    public String getEntryPostcode() {
+        return entryPostcode1 + entryPostcode2;
+    }
+
+    public void setEntryPostcode(String entryPostcode) {
+        if (entryPostcode != null) {
+            String[] s = entryPostcode.split("-");
+            if (s.length == 2) {
+                this.entryPostcode1 = s[0];
+                this.entryPostcode2 = s[1];
+            }
+        }
+        this.entryPostcode = entryPostcode;
+    }
+}

Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerListAction.java (from rev 527, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberListAction.java)
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberListAction.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerListAction.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -0,0 +1,83 @@
+package jp.sf.pal.pompei.web.admin.customer;
+
+import java.io.Serializable;
+import java.util.List;
+import java.util.Map;
+
+import jp.sf.pal.pompei.dxo.CustomerDxo;
+import jp.sf.pal.pompei.service.CustomerService;
+
+public class CustomerListAction implements Serializable {
+
+	/**
+     * 
+     */
+    private static final long serialVersionUID = 3320789446397915285L;
+
+    /**
+	 *
+	 */
+	private CustomerListPage memberListPage;
+
+	/**
+	 *
+	 */
+	private CustomerService memberService;
+	private CustomerDxo memberDxo;
+
+	public Class initialize() {
+		return null;
+	}
+
+	public Class prerender() {
+		if(memberListPage.isDelete()) {
+			memberService.deleteCustomer(memberListPage.getCustomersId());
+		}
+
+		List memberItems = memberService.getCustomerList();
+
+		List<Map> items = memberDxo.conbertMap(memberItems);
+		memberListPage.setCustomerItems(items);
+
+
+		return null;
+	}
+
+
+	/**
+	 * @return memberListPage
+	 */
+	public CustomerListPage getCustomerListPage() {
+		return memberListPage;
+	}
+
+	/**
+	 * @param memberListPage 設定する memberListPage
+	 */
+	public void setCustomerListPage(CustomerListPage memberListPage) {
+		this.memberListPage = memberListPage;
+	}
+
+	public CustomerService getCustomerService() {
+		return memberService;
+	}
+
+	public void setCustomerService(CustomerService memberService) {
+		this.memberService = memberService;
+	}
+
+	public CustomerDxo getCustomerDxo() {
+		return memberDxo;
+	}
+
+	public void setCustomerDxo(CustomerDxo memberDxo) {
+		this.memberDxo = memberDxo;
+	}
+
+	public Class doSearch() {
+
+
+		return null;
+	}
+
+}

Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerListPage.java (from rev 527, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberListPage.java)
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberListPage.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerListPage.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -0,0 +1,124 @@
+package jp.sf.pal.pompei.web.admin.customer;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.List;
+
+public class CustomerListPage implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 6026492917522102392L;
+
+    private BigDecimal customersId;
+
+    private String entryCity;
+
+    private String entryCompany;
+
+    private String entryState;
+
+    private String firstName;
+
+    private String lastName;
+
+    private String searchParams;
+
+    private String title;
+
+    private boolean delete;
+
+    private int memberIndex;
+
+    private List memberItems;
+
+    public BigDecimal getCustomersId() {
+        return customersId;
+    }
+
+    public void setCustomersId(BigDecimal customersId) {
+        this.customersId = customersId;
+    }
+
+    public String getEntryCity() {
+        return entryCity;
+    }
+
+    public void setEntryCity(String entryCity) {
+        this.entryCity = entryCity;
+    }
+
+    public String getEntryCompany() {
+        return entryCompany;
+    }
+
+    public void setEntryCompany(String entryCompany) {
+        this.entryCompany = entryCompany;
+    }
+
+    public String getEntryState() {
+        return entryState;
+    }
+
+    public void setEntryState(String entryState) {
+        this.entryState = entryState;
+    }
+
+    public String getFirstName() {
+        return firstName;
+    }
+
+    public void setFirstName(String firstName) {
+        this.firstName = firstName;
+    }
+
+    public String getLastName() {
+        return lastName;
+    }
+
+    public void setLastName(String lastName) {
+        this.lastName = lastName;
+    }
+
+    public String getSearchParams() {
+        return searchParams;
+    }
+
+    public void setSearchParams(String searchParams) {
+        this.searchParams = searchParams;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public List getCustomerItems() {
+        return memberItems;
+    }
+
+    public void setCustomerItems(List member) {
+        this.memberItems = member;
+    }
+
+    public int getCustomerIndex() {
+        return memberIndex;
+    }
+
+    public void setCustomerIndex(int memberIndex) {
+        this.memberIndex = memberIndex;
+    }
+
+    public boolean isDelete() {
+        return delete;
+    }
+
+    public void setDelete(boolean delete) {
+        this.delete = delete;
+    }
+
+}

Deleted: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberConfirmAction.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberConfirmAction.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberConfirmAction.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,111 +0,0 @@
-package jp.sf.pal.pompei.web.admin.member;
-
-import java.io.Serializable;
-
-import jp.sf.pal.pompei.PompeiConstants;
-import jp.sf.pal.pompei.dxo.MemberDxo;
-import jp.sf.pal.pompei.exentity.AddressBook;
-import jp.sf.pal.pompei.exentity.Customers;
-import jp.sf.pal.pompei.service.MemberService;
-import jp.sf.pal.pompei.web.util.DateUtil;
-import jp.sf.pal.pompei.web.util.PageUtil;
-
-public class MemberConfirmAction implements Serializable {
-
-    /**
-     * 
-     */
-    private static final long serialVersionUID = -1188349655650999839L;
-
-    /**
-     *
-     */
-    private MemberConfirmPage memberConfirmPage;
-
-    private MemberDxo memberDxo;
-
-    private MemberService memberService;
-
-    public Class doUpdate() {
-        if (isInsert()) {
-            Customers customers = memberDxo.convert(memberConfirmPage);
-            customers.setCustomersGender(memberConfirmPage.getGender());
-            customers.setCustomersDob(DateUtil.getTimeStamp(memberConfirmPage
-                    .getCustomersDob()));
-            AddressBook book = memberDxo.convertAddress(memberConfirmPage);
-
-            book.setEntryState(PageUtil.getLabelOfValue(memberConfirmPage
-                    .getEntryZoneIdItems(), memberConfirmPage.getEntryZoneId()
-                    .toString()));
-            book.setEntryGender(customers.getCustomersGender());
-            book.setEntryFirstname(customers.getCustomersFirstname());
-            book.setEntryLastname(customers.getCustomersLastname());
-            book.setCustomers(customers);
-            memberService.addMember(book);
-        } else if (isUpdate()) {
-            //            Customers customers = memberService.getMember(memberConfirmPage
-            //                    .getCustomersId());
-            //            AddressBook book = customers.getAddressBook();
-            //
-            //            memberDxo.convert(memberConfirmPage, customers);
-            //            memberDxo.convert(memberConfirmPage, book);
-            //
-            //            customers.setCustomersDob(DateUtil.getTimeStamp(memberConfirmPage
-            //                    .getCustomersDob()));
-            //
-            //            book.setEntryState(PageUtil.getLabelOfValue(memberConfirmPage
-            //                    .getEntryZoneIdItems(), memberConfirmPage.getEntryZoneId()
-            //                    .toString()));
-            //            book.setEntryGender(customers.getCustomersGender());
-            //            book.setEntryFirstname(customers.getCustomersFirstname());
-            //            book.setEntryLastname(customers.getCustomersLastname());
-            //
-            //            memberService.updateMember(customers);
-
-        } else {
-            return null;
-        }
-        return MemberListPage.class;
-    }
-
-    private boolean isUpdate() {
-        String mode = memberConfirmPage.getMode();
-        return mode != null && mode.equals(PompeiConstants.UPDATE_MODE);
-    }
-
-    private boolean isInsert() {
-        String mode = memberConfirmPage.getMode();
-        return mode != null && mode.equals(PompeiConstants.INSERT_MODE);
-    }
-
-    /**
-     * @return memberConfirmPage
-     */
-    public MemberConfirmPage getMemberConfirmPage() {
-        return memberConfirmPage;
-    }
-
-    /**
-     * @param memberConfirmPage 設定する memberConfirmPage
-     */
-    public void setMemberConfirmPage(MemberConfirmPage memberConfirmPage) {
-        this.memberConfirmPage = memberConfirmPage;
-    }
-
-    public MemberDxo getMemberDxo() {
-        return memberDxo;
-    }
-
-    public void setMemberDxo(MemberDxo memberDxo) {
-        this.memberDxo = memberDxo;
-    }
-
-    public MemberService getMemberService() {
-        return memberService;
-    }
-
-    public void setMemberService(MemberService memberService) {
-        this.memberService = memberService;
-    }
-
-}

Deleted: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberConfirmPage.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberConfirmPage.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberConfirmPage.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,304 +0,0 @@
-package jp.sf.pal.pompei.web.admin.member;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.util.List;
-import java.util.Map;
-
-import jp.sf.pal.pompei.web.util.PageUtil;
-
-import org.seasar.teeda.extension.annotation.scope.SubapplicationScope;
-
-public class MemberConfirmPage implements Serializable {
-
-    /**
-     * 
-     */
-    private static final long serialVersionUID = -2946943974630142860L;
-
-    private BigDecimal customersId;
-
-    @SubapplicationScope
-    private String mode;
-
-    @SubapplicationScope
-    private String customersFirstname;
-
-    @SubapplicationScope
-    private String customersLastname;
-
-    @SubapplicationScope
-    private String customersPassword;
-
-    @SubapplicationScope
-    private String entryPostcode1;
-
-    @SubapplicationScope
-    private String entryPostcode2;
-
-    @SubapplicationScope
-    private String customersDob;
-
-    @SubapplicationScope
-    private String customersEmailAddress;
-
-    @SubapplicationScope
-    private String customersFax;
-
-    @SubapplicationScope
-    private String customersTelephone;
-
-    @SubapplicationScope
-    private String entryCity;
-
-    @SubapplicationScope
-    private String entryCompany;
-
-    @SubapplicationScope
-    private String entryPostcode;
-
-    @SubapplicationScope
-    private String entryStreetAddress;
-
-    @SubapplicationScope
-    private String entrySuburb;
-
-    @SubapplicationScope
-    private String entryZoneName;
-
-    @SubapplicationScope
-    private BigDecimal entryZoneId;
-
-    @SubapplicationScope
-    private List entryZoneIdItems;
-
-    @SubapplicationScope
-    private String genderLabel;
-
-    @SubapplicationScope
-    private String newsLetterLabel;
-
-    @SubapplicationScope
-    private String title;
-
-    private String usersName;
-
-    @SubapplicationScope
-    private String gender;
-
-    @SubapplicationScope
-    private List<Map> genderItems;
-
-    public String getCustomersDob() {
-        return customersDob;
-    }
-
-    public void setCustomersDob(String customersDob) {
-        this.customersDob = customersDob;
-    }
-
-    public String getCustomersEmailAddress() {
-        return customersEmailAddress;
-    }
-
-    public void setCustomersEmailAddress(String customersEmailAddress) {
-        this.customersEmailAddress = customersEmailAddress;
-    }
-
-    public String getCustomersFax() {
-        return customersFax;
-    }
-
-    public void setCustomersFax(String customersFax) {
-        this.customersFax = customersFax;
-    }
-
-    public String getCustomersTelephone() {
-        return customersTelephone;
-    }
-
-    public void setCustomersTelephone(String customersTelephone) {
-        this.customersTelephone = customersTelephone;
-    }
-
-    public String getEntryCity() {
-        return entryCity;
-    }
-
-    public void setEntryCity(String entryCity) {
-        this.entryCity = entryCity;
-    }
-
-    public String getEntryCompany() {
-        return entryCompany;
-    }
-
-    public void setEntryCompany(String entryCompany) {
-        this.entryCompany = entryCompany;
-    }
-
-    public String getEntryPostcode() {
-        return entryPostcode1 + "-" + entryPostcode2;
-        //		return entryPostcode;
-    }
-
-    public void setEntryPostcode(String entryPostcode) {
-        this.entryPostcode = entryPostcode;
-    }
-
-    public String getEntryStreetAddress() {
-        return entryStreetAddress;
-    }
-
-    public void setEntryStreetAddress(String entryStreetAddress) {
-        this.entryStreetAddress = entryStreetAddress;
-    }
-
-    public String getEntrySuburb() {
-        return entrySuburb;
-    }
-
-    public void setEntrySuburb(String entrySuburb) {
-        this.entrySuburb = entrySuburb;
-    }
-
-    public String getEntryZoneName() {
-        return PageUtil.getLabelOfValue(entryZoneIdItems, entryZoneId
-                .toString());
-        //		return entryZoneName;
-    }
-
-    public void setEntryZoneName(String entryZoneName) {
-        this.entryZoneName = entryZoneName;
-    }
-
-    public String getGenderLabel() {
-        return PageUtil.getLabelOfValue(genderItems, gender);
-        //return genderLabel;
-    }
-
-    public void setGenderLabel(String genderLabel) {
-        this.genderLabel = genderLabel;
-    }
-
-    public String getNewsLetterLabel() {
-        return this.newsLetterLabel;
-    }
-
-    public void setNewsLetterLabel(String newsLetterLabel) {
-        this.newsLetterLabel = newsLetterLabel;
-    }
-
-    public String getTitle() {
-        return title;
-    }
-
-    public void setTitle(String title) {
-        this.title = title;
-    }
-
-    public String getUsersName() {
-        return this.customersFirstname + " " + this.customersLastname;
-    }
-
-    public void setUsersName(String usersName) {
-        this.usersName = usersName;
-    }
-
-    public Class initialize() {
-        return null;
-    }
-
-    public Class prerender() {
-        return null;
-    }
-
-    public String getCustomersFirstname() {
-        return customersFirstname;
-    }
-
-    public void setCustomersFirstname(String customersFirstname) {
-        this.customersFirstname = customersFirstname;
-    }
-
-    public String getCustomersLastname() {
-        return customersLastname;
-    }
-
-    public void setCustomersLastname(String customersLastname) {
-        this.customersLastname = customersLastname;
-    }
-
-    public String getCustomersPassword() {
-        return customersPassword;
-    }
-
-    public void setCustomersPassword(String customersPassword) {
-        this.customersPassword = customersPassword;
-    }
-
-    public String getEntryPostcode1() {
-        return entryPostcode1;
-    }
-
-    public void setEntryPostcode1(String entryPostcode1) {
-        this.entryPostcode1 = entryPostcode1;
-    }
-
-    public String getEntryPostcode2() {
-        return entryPostcode2;
-    }
-
-    public void setEntryPostcode2(String entryPostcode2) {
-        this.entryPostcode2 = entryPostcode2;
-    }
-
-    public List<Map> getGenderItems() {
-        return genderItems;
-    }
-
-    public void setGenderItems(List<Map> genderItems) {
-        this.genderItems = genderItems;
-    }
-
-    public String getGender() {
-        return gender;
-    }
-
-    public void setGender(String gender) {
-        this.gender = gender;
-    }
-
-    public BigDecimal getEntryZoneId() {
-        return entryZoneId;
-    }
-
-    public void setEntryZoneId(BigDecimal entryZoneId) {
-        this.entryZoneId = entryZoneId;
-    }
-
-    public List getEntryZoneIdItems() {
-        return entryZoneIdItems;
-    }
-
-    public void setEntryZoneIdItems(List entryZoneIdItems) {
-        this.entryZoneIdItems = entryZoneIdItems;
-    }
-
-    public String getMode() {
-        return mode;
-    }
-
-    public void setMode(String mode) {
-        this.mode = mode;
-    }
-
-    public BigDecimal getCustomersId() {
-        return customersId;
-    }
-
-    public void setCustomersId(BigDecimal customersId) {
-        this.customersId = customersId;
-    }
-
-}

Deleted: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberEditAction.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberEditAction.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberEditAction.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,154 +0,0 @@
-package jp.sf.pal.pompei.web.admin.member;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import jp.sf.pal.pompei.PompeiConstants;
-import jp.sf.pal.pompei.dxo.MemberDxo;
-import jp.sf.pal.pompei.exentity.Customers;
-import jp.sf.pal.pompei.service.MemberService;
-
-public class MemberEditAction implements Serializable {
-    /**
-     * 
-     */
-    private static final long serialVersionUID = 111723657530085205L;
-
-    /**
-     *
-     */
-    private MemberEditPage memberEditPage;
-
-    /**
-     *
-     */
-    private MemberService memberService;
-
-    private MemberDxo memberDxo;
-
-    public Class initialize() {
-        List genderItems = createGenderItems();
-        memberEditPage.setGenderItems(genderItems);
-
-        List zoneItems = createZoneItems();
-        memberEditPage.setEntryZoneIdItems(zoneItems);
-
-        return null;
-    }
-
-    private List<Map> createZoneItems() {
-        List<Map> list = new ArrayList<Map>();
-        list.add(setValue("北海道", "1"));
-        list.add(setValue("青森", "2"));
-        list.add(setValue("秋田", "3"));
-        list.add(setValue("宮城", "4"));
-        list.add(setValue("山形", "5"));
-        list.add(setValue("福島", "6"));
-        list.add(setValue("茨城", "7"));
-        list.add(setValue("群馬", "8"));
-        list.add(setValue("栃木", "9"));
-        list.add(setValue("東京", "10"));
-        list.add(setValue("神奈川", "11"));
-        return list;
-    }
-
-    public Class prerender() {
-        if (isUpdate()) {
-            Customers customers = memberService.getMember(memberEditPage
-                    .getCustomersId());
-            memberDxo.convert(customers, memberEditPage);
-
-            String s = memberEditPage.getEntryPostcode1();
-
-        } else {
-            memberEditPage.setMode(PompeiConstants.INSERT_MODE);
-            setDefaultValue();
-        }
-        return null;
-    }
-
-    private Map setValue(String lavel, String value) {
-        Map map = new HashMap();
-        map.put("label", lavel);
-        map.put("value", value);
-        return map;
-    }
-
-    private List createGenderItems() {
-        List list = new ArrayList();
-        Map map = new HashMap();
-        map.put("label", "男");
-        map.put("value", "1");
-        list.add(map);
-        map = new HashMap();
-        map.put("label", "女");
-        map.put("value", "2");
-        list.add(map);
-        return list;
-    }
-
-    private void setDefaultValue() {
-        memberEditPage.setCustomersLastname("佐藤");
-        memberEditPage.setCustomersFirstname("浩一");
-        memberEditPage.setCustomersDob("20070101");
-        memberEditPage.setCustomersEmailAddress("aaa****@aaa*****");
-        memberEditPage.setCustomersTelephone("999-9999-9999");
-        memberEditPage.setEntryCity("豊島区");
-        memberEditPage.setEntryPostcode1("999");
-        memberEditPage.setEntryPostcode2("9999");
-        memberEditPage.setEntryStreetAddress("1-1-1");
-        memberEditPage.setEntryZoneId(new BigDecimal("1"));
-
-    }
-
-    private boolean isUpdate() {
-        String mode = memberEditPage.getMode();
-        return mode != null && mode.equals(PompeiConstants.UPDATE_MODE);
-    }
-
-    private boolean isInsert() {
-        String mode = memberEditPage.getMode();
-        return mode != null && mode.equals(PompeiConstants.INSERT_MODE);
-    }
-
-    /**
-     * @return memberEditPage
-     */
-    public MemberEditPage getMemberEditPage() {
-        return memberEditPage;
-    }
-
-    /**
-     * @param memberEditPage 設定する memberEditPage
-     */
-    public void setMemberEditPage(MemberEditPage memberEditPage) {
-        this.memberEditPage = memberEditPage;
-    }
-
-    /**
-     * @return memberService
-     */
-    public MemberService getMemberService() {
-        return memberService;
-    }
-
-    /**
-     * @param memberService 設定する memberService
-     */
-    public void setMemberService(MemberService memberService) {
-        this.memberService = memberService;
-    }
-
-    public MemberDxo getMemberDxo() {
-        return memberDxo;
-    }
-
-    public void setMemberDxo(MemberDxo memberDxo) {
-        this.memberDxo = memberDxo;
-    }
-
-}

Deleted: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberEditPage.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberEditPage.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberEditPage.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,276 +0,0 @@
-package jp.sf.pal.pompei.web.admin.member;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.util.List;
-import java.util.Map;
-
-import org.seasar.teeda.extension.annotation.scope.SubapplicationScope;
-
-public class MemberEditPage implements Serializable {
-
-    /**
-     * 
-     */
-    private static final long serialVersionUID = 7616443380048617561L;
-
-    public static final String customersEmailAddress_TRequiredValidator = null;
-
-    public static final String customersFirstname_TRequiredValidator = null;
-
-    public static final String customersLastname_TRequiredValidator = null;
-
-    public static final String customersDob_TRequiredValidator = null;
-
-    public static final String customersPassword_TRequiredValidator = null;
-
-    public static final String customersTelephone_TRequiredValidator = null;
-
-    public static final String entryCity_TRequiredValidator = null;
-
-    public static final String entryPostcode1_TRequiredValidator = null;
-
-    public static final String entryPostcode2_TRequiredValidator = null;
-
-    public static final String entryStreetAddress_TRequiredValidator = null;
-
-    public static final String entryZoneId_TRequiredValidator = null;
-
-    public static final String gender_TRequiredValidator = null;
-
-    @SubapplicationScope
-    private BigDecimal customersId;
-
-    @SubapplicationScope
-    private String customersDob;
-
-    @SubapplicationScope
-    private String customersEmailAddress;
-
-    @SubapplicationScope
-    private String customersFax;
-
-    @SubapplicationScope
-    private String customersFirstname;
-
-    @SubapplicationScope
-    private String customersLastname;
-
-    @SubapplicationScope
-    private String customersPassword;
-
-    @SubapplicationScope
-    private String customersTelephone;
-
-    @SubapplicationScope
-    private String entryCity;
-
-    @SubapplicationScope
-    private String entryCompany;
-
-    @SubapplicationScope
-    private String entryPostcode;
-
-    @SubapplicationScope
-    private String entryPostcode1;
-
-    @SubapplicationScope
-    private String entryPostcode2;
-
-    @SubapplicationScope
-    private String entryStreetAddress;
-
-    @SubapplicationScope
-    private String entrySuburb;
-
-    @SubapplicationScope
-    private BigDecimal entryZoneId;
-
-    @SubapplicationScope
-    private List entryZoneIdItems;
-
-    @SubapplicationScope
-    private String gender;
-
-    @SubapplicationScope
-    private List<Map> genderItems;
-
-    private String title;
-
-    private String mode;
-
-    public String getCustomersDob() {
-        return customersDob;
-    }
-
-    public void setCustomersDob(String customersDob) {
-        this.customersDob = customersDob;
-    }
-
-    public String getCustomersEmailAddress() {
-        return customersEmailAddress;
-    }
-
-    public void setCustomersEmailAddress(String customersEmailAddress) {
-        this.customersEmailAddress = customersEmailAddress;
-    }
-
-    public String getCustomersFax() {
-        return customersFax;
-    }
-
-    public void setCustomersFax(String customersFax) {
-        this.customersFax = customersFax;
-    }
-
-    public String getCustomersFirstname() {
-        return customersFirstname;
-    }
-
-    public void setCustomersFirstname(String customersFirstname) {
-        this.customersFirstname = customersFirstname;
-    }
-
-    public String getCustomersLastname() {
-        return customersLastname;
-    }
-
-    public void setCustomersLastname(String customersLastname) {
-        this.customersLastname = customersLastname;
-    }
-
-    public String getCustomersPassword() {
-        return customersPassword;
-    }
-
-    public void setCustomersPassword(String customersPassword) {
-        this.customersPassword = customersPassword;
-    }
-
-    public String getCustomersTelephone() {
-        return customersTelephone;
-    }
-
-    public void setCustomersTelephone(String customersTelephone) {
-        this.customersTelephone = customersTelephone;
-    }
-
-    public String getEntryCity() {
-        return entryCity;
-    }
-
-    public void setEntryCity(String entryCity) {
-        this.entryCity = entryCity;
-    }
-
-    public String getEntryCompany() {
-        return entryCompany;
-    }
-
-    public void setEntryCompany(String entryCompany) {
-        this.entryCompany = entryCompany;
-    }
-
-    public String getEntryPostcode1() {
-        return entryPostcode1;
-    }
-
-    public void setEntryPostcode1(String entryPostcode1) {
-        this.entryPostcode1 = entryPostcode1;
-    }
-
-    public String getEntryPostcode2() {
-        return entryPostcode2;
-    }
-
-    public void setEntryPostcode2(String entryPostcode2) {
-        this.entryPostcode2 = entryPostcode2;
-    }
-
-    public String getEntryStreetAddress() {
-        return entryStreetAddress;
-    }
-
-    public void setEntryStreetAddress(String entryStreetAddress) {
-        this.entryStreetAddress = entryStreetAddress;
-    }
-
-    public String getEntrySuburb() {
-        return entrySuburb;
-    }
-
-    public void setEntrySuburb(String entrySuburb) {
-        this.entrySuburb = entrySuburb;
-    }
-
-    public BigDecimal getEntryZoneId() {
-        return entryZoneId;
-    }
-
-    public void setEntryZoneId(BigDecimal entryZoneId) {
-        this.entryZoneId = entryZoneId;
-    }
-
-    public List getEntryZoneIdItems() {
-        return entryZoneIdItems;
-    }
-
-    public void setEntryZoneIdItems(List entryZoneIdItems) {
-        this.entryZoneIdItems = entryZoneIdItems;
-    }
-
-    public String getGender() {
-        return gender;
-    }
-
-    public void setGender(String gender) {
-        this.gender = gender;
-    }
-
-    public List getGenderItems() {
-        return genderItems;
-    }
-
-    public void setGenderItems(List<Map> genderItems) {
-        this.genderItems = genderItems;
-    }
-
-    public String getTitle() {
-        return title;
-    }
-
-    public void setTitle(String title) {
-        this.title = title;
-    }
-
-    public String getMode() {
-        return mode;
-    }
-
-    public void setMode(String mode) {
-        this.mode = mode;
-    }
-
-    public BigDecimal getCustomersId() {
-        return customersId;
-    }
-
-    public void setCustomersId(BigDecimal customersId) {
-        this.customersId = customersId;
-    }
-
-    public String getEntryPostcode() {
-        return entryPostcode1 + entryPostcode2;
-    }
-
-    public void setEntryPostcode(String entryPostcode) {
-        if (entryPostcode != null) {
-            String[] s = entryPostcode.split("-");
-            if (s.length == 2) {
-                this.entryPostcode1 = s[0];
-                this.entryPostcode2 = s[1];
-            }
-        }
-        this.entryPostcode = entryPostcode;
-    }
-}

Deleted: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberListAction.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberListAction.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberListAction.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,83 +0,0 @@
-package jp.sf.pal.pompei.web.admin.member;
-
-import java.io.Serializable;
-import java.util.List;
-import java.util.Map;
-
-import jp.sf.pal.pompei.dxo.MemberDxo;
-import jp.sf.pal.pompei.service.MemberService;
-
-public class MemberListAction implements Serializable {
-
-	/**
-     * 
-     */
-    private static final long serialVersionUID = 3320789446397915285L;
-
-    /**
-	 *
-	 */
-	private MemberListPage memberListPage;
-
-	/**
-	 *
-	 */
-	private MemberService memberService;
-	private MemberDxo memberDxo;
-
-	public Class initialize() {
-		return null;
-	}
-
-	public Class prerender() {
-		if(memberListPage.isDelete()) {
-			memberService.deleteMember(memberListPage.getCustomersId());
-		}
-
-		List memberItems = memberService.getMemberList();
-
-		List<Map> items = memberDxo.conbertMap(memberItems);
-		memberListPage.setMemberItems(items);
-
-
-		return null;
-	}
-
-
-	/**
-	 * @return memberListPage
-	 */
-	public MemberListPage getMemberListPage() {
-		return memberListPage;
-	}
-
-	/**
-	 * @param memberListPage 設定する memberListPage
-	 */
-	public void setMemberListPage(MemberListPage memberListPage) {
-		this.memberListPage = memberListPage;
-	}
-
-	public MemberService getMemberService() {
-		return memberService;
-	}
-
-	public void setMemberService(MemberService memberService) {
-		this.memberService = memberService;
-	}
-
-	public MemberDxo getMemberDxo() {
-		return memberDxo;
-	}
-
-	public void setMemberDxo(MemberDxo memberDxo) {
-		this.memberDxo = memberDxo;
-	}
-
-	public Class doSearch() {
-
-
-		return null;
-	}
-
-}

Deleted: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberListPage.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/member/MemberListPage.java	2007-09-03 07:48:37 UTC (rev 527)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/MemberListPage.java	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,124 +0,0 @@
-package jp.sf.pal.pompei.web.admin.member;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.util.List;
-
-public class MemberListPage implements Serializable {
-
-    /**
-     * 
-     */
-    private static final long serialVersionUID = 6026492917522102392L;
-
-    private BigDecimal customersId;
-
-    private String entryCity;
-
-    private String entryCompany;
-
-    private String entryState;
-
-    private String firstName;
-
-    private String lastName;
-
-    private String searchParams;
-
-    private String title;
-
-    private boolean delete;
-
-    private int memberIndex;
-
-    private List memberItems;
-
-    public BigDecimal getCustomersId() {
-        return customersId;
-    }
-
-    public void setCustomersId(BigDecimal customersId) {
-        this.customersId = customersId;
-    }
-
-    public String getEntryCity() {
-        return entryCity;
-    }
-
-    public void setEntryCity(String entryCity) {
-        this.entryCity = entryCity;
-    }
-
-    public String getEntryCompany() {
-        return entryCompany;
-    }
-
-    public void setEntryCompany(String entryCompany) {
-        this.entryCompany = entryCompany;
-    }
-
-    public String getEntryState() {
-        return entryState;
-    }
-
-    public void setEntryState(String entryState) {
-        this.entryState = entryState;
-    }
-
-    public String getFirstName() {
-        return firstName;
-    }
-
-    public void setFirstName(String firstName) {
-        this.firstName = firstName;
-    }
-
-    public String getLastName() {
-        return lastName;
-    }
-
-    public void setLastName(String lastName) {
-        this.lastName = lastName;
-    }
-
-    public String getSearchParams() {
-        return searchParams;
-    }
-
-    public void setSearchParams(String searchParams) {
-        this.searchParams = searchParams;
-    }
-
-    public String getTitle() {
-        return title;
-    }
-
-    public void setTitle(String title) {
-        this.title = title;
-    }
-
-    public List getMemberItems() {
-        return memberItems;
-    }
-
-    public void setMemberItems(List member) {
-        this.memberItems = member;
-    }
-
-    public int getMemberIndex() {
-        return memberIndex;
-    }
-
-    public void setMemberIndex(int memberIndex) {
-        this.memberIndex = memberIndex;
-    }
-
-    public boolean isDelete() {
-        return delete;
-    }
-
-    public void setDelete(boolean delete) {
-        this.delete = delete;
-    }
-
-}

Copied: pompei/portlets/pompei-core/trunk/src/main/resources/jp/sf/pal/pompei/web/admin/customer/label.properties (from rev 527, pompei/portlets/pompei-core/trunk/src/main/resources/jp/sf/pal/pompei/web/admin/member/label.properties)

Copied: pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/customer/customerConfirm.html (from rev 527, pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberConfirm.html)

Copied: pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/customer/customerEdit.html (from rev 527, pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberEdit.html)

Copied: pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/customer/customerList.html (from rev 527, pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberList.html)

Deleted: pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberConfirm.html
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberConfirm.html	2007-09-06 08:03:36 UTC (rev 543)
+++ pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberConfirm.html	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<title id="title-head">会員情報編集画面</title>
-</head>
-<body>
-<form id="form" method="post">
-<table border="1">
-	<tr style="dummy" height="20px">
-		<th>氏名</th>
-		<td><span id="usersName"></span></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>性別</th>
-		<td><span id="genderLabel">男</span></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>生年月日</th>
-		<td><span id="customersDob"></span></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>Eメールアドレス</th>
-		<td><span id="customersEmailAddress"></span></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>電話番号</th>
-		<td><span id="customersTelephone"></span></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>FAX番号</th>
-		<td><span id="customersFax"></span></td>
-	</tr>
-<!--
-	<tr style="dummy" height="20px">
-		<th>メルマガ配信</th>
-		<td><span id="newsLetterLabel"></span></td>
-	</tr>
--->
-</table>
-
-<hr/>
-<strong><label>会員住所</label></strong>
-<table border="1">
-	<tr style="dummy" height="20px">
-		<th>会社名</th><td><span id="entryCompany"></span></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>郵便番号*</th>
-		<td><span id="entryPostcode"></span></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>都道府県*</th>
-		<td><span id="entryZoneName"></span>
-		</td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>市区町村*</th><td><span id="entryCity"></span></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>住所1*</th><td><span id="entryStreetAddress"></span></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>住所2</th><td><span id="entrySuburb"></span></td>
-	</tr>
-</table>
-<hr/>
-<input type="submit" id="doUpdate" value="登録する" onclick="location.href='./memberConfirm.html'"/>
-<input type="submit" id="jumpMemberEdit" value="編集画面に戻る" onclick="location.href='./memberConfirm.html'"/>
-</form>
-</body></html>
\ No newline at end of file

Deleted: pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberEdit.html
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberEdit.html	2007-09-06 08:03:36 UTC (rev 543)
+++ pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberEdit.html	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<title id="title-head">会員情報編集画面</title>
-</head>
-<body>
-<form id="form" method="post">
-<input type="hidden" id="mode"/>
-<input type="hidden" id="customersId"/>
-<div><span id="allMessages"></span></div>
-<table border="1">
-	<tr style="dummy" height="20px">
-		<th>氏名*</th>
-		<td>姓<input type="text" id="customersLastname" size="6" maxlength="32" /> 名<input type="text" id="customersFirstname" size="6" maxlength="32"/></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>性別*</th>
-		<td><select id="gender"><option value="1">男</option><option value="2">女</option></select></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>パスワード*</th>
-		<td><input type="password" id="customersPassword" maxlength="40"/></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>パスワード(再入力)*</th>
-		<td><input type="password" id="customersPassword-retype" maxlength="40"/></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>生年月日*</th>
-		<td>(例)19760408<br/><input type="text" id="customersDob" size="6" maxlength="8"/></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>Eメールアドレス*</th>
-		<td>hoge****@hoge*****<br/><input type="text" id="customersEmailAddress" size="40" maxlength="96"/></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>電話番号*</th>
-		<td>(例)99-9999-9999<br/><input type="text" id="customersTelephone" size="34" maxlength="32"/></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>FAX番号</th>
-		<td>(例)99-9999-9999<br/><input type="text" id="customersFax" size="34" maxlength="32"/></td>
-	</tr>
-<!--
-	<tr style="dummy" height="20px">
-		<th>メルマガ配信</th>
-		<td><select id="newsLetter"><option value="0">希望しない</option><option value="1">希望する</option></select></td>
-	</tr>
--->
-</table>
-<hr/>
-<strong><label>会員住所</label></strong>
-<table border="1">
-	<tr style="dummy" height="20px">
-		<th>会社名</th><td><input type="text" id="entryCompany" /></td>
-	</tr>
-<!--
-	<tr style="dummy" height="20px">
-		<th>部署名</th><td><input type="text" id="" /></td>
-	</tr>
--->
-	<tr style="dummy" height="20px">
-		<th>郵便番号*</th>
-		<td><input type="text" id="entryPostcode1" size="1" maxlength="3" />-<input type="text" id="entryPostcode2" size="1" maxlength="4"/></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>都道府県*</th>
-		<td>
-		<select id="entryZoneId">
-			<option value="1">北海道</option>
-		</select>
-		</td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>市区町村*</th><td><input type="text" id="entryCity" size="20" maxlength="40" /></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>住所1*</th><td><input type="text" id="entryStreetAddress" /></td>
-	</tr>
-	<tr style="dummy" height="20px">
-		<th>住所2</th><td><input type="text" id="entrySuburb" /></td>
-	</tr>
-</table>
-<hr/>
-<input type="submit" id="goMemberConfirm" value="確認画面へ" onclick="location.href='./memberConfirm.html'"/>
-<input type="button" id="jumpMemberList" value="一覧に戻る" onclick="location.href='./memberConfirm.html'"/>
-</form>
-</body></html>
\ No newline at end of file

Deleted: pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberList.html
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberList.html	2007-09-06 08:03:36 UTC (rev 543)
+++ pompei/portlets/pompei-core/trunk/src/main/webapp/view/admin/member/memberList.html	2007-09-06 08:44:07 UTC (rev 544)
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<title id="title-head">会員一覧</title>
-</head>
-<body>
-<script language="JavaScript">
-<!--
-function confirmDelete(obj){
-	if(confirm('削除します。よろしいですか?')){
-		obj.href = obj.href+'&delete=true';
-		return true;
-	}
-	return false;
-}
--->
-</script>
-<form id="form" method="post">
-<div id="searchParams">
-	<label>購入区分</label><select><option value="0">指定なし</option><option value="1">個人</option><option value="2">法人</option></select>
-	<br />
-	<label>名前</label><input type="text" id="" />
-	<input type="button" id="doSearch" value="検索" />
-</div>
-<hr />
-<table border="1">
-	<thead>
-		<tr>
-			<th>ID</th>
-			<th>氏名</th>
-			<th>会社名</th>
-			<th>都道府県</th>
-			<th>市区町村</th>
-			<th>&nbsp;</th>
-		</tr>
-	</thead>
-	<tbody id="memberItems">
-		<tr>
-			<td><span id="customersId">0001</span></td>
-			<td><span id="lastName">山田</span> <span id="firstName">太郎</span></td>
-			<td><span id="entryCompany">会社名</span></td>
-			<td><span id="entryState">東京都</span></td>
-			<td><span id="entryCity">葛飾区</span></td>
-			<td>
-				<a id="goMemberEdit" href="./memberEdit.html?customersId=0&mode=update">編集</a>
-				<a id="goMemberDelete" href="./memberList.html?customersId=0" onClick="if(!confirmDelete(this)){return false;}">削除</a>
-			</td>
-		</tr>
-	</tbody>
-	<tfoot></tfoot>
-</table>
-<br/>
-<input type="submit" id="goMemberEdit" value="会員を追加する" onclick="location.href='./memberEdit.html'"/>
-</form>
-</body></html>
\ No newline at end of file


pal-cvs メーリングリストの案内