/**
*                                                (客先名) 殿
*                                             サブシステム名
*                           機能名(ユーザーマスタ)
*
*                                                       作成:アイエムシンクタンク株式会社
*                                                       初版:年月日 by IMTT 
*                                                       改版:2010年7月19日 by トウ
*/
/*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2008 Aimluck,Inc.
 * http://aipostyle.com/
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.aimluck.eip.account;

import java.util.ArrayList;

import com.aimluck.commons.field.ALNumberField;
import com.aimluck.commons.field.ALStringField;
import com.aimluck.eip.common.ALData;
/* Add　2010/7/21 tou Start--- */
import com.aimluck.commons.field.ALDateField;
import com.aimluck.commons.field.ALDateTimeField;
import java.util.Date;
/* Add　2010/7/21 tou End--- */

/**
 * ユーザーアカウントのResultDataです。 <BR>
 * 
 */
public class AccountResultData implements ALData {

  /** ユーザーID */
  private ALNumberField user_id;
  
  /** 有効/無効 */
  private ALStringField disabled;

  /** ユーザー名 */
  private ALStringField user_name;

  /** 名前 */
  private ALStringField name;

  /** フリガナ（名前） */
  private ALStringField name_kana;

  /** メールアドレス */
  private ALStringField email;

  /** 電話番号（外線） */
  private ALStringField out_telephone;

  /** 電話番号（内線） */
  private ALStringField in_telephone;

  /** 電話番号（携帯） */
  private ALStringField cellular_phone;

  /** 携帯メールアドレス */
  private ALStringField cellular_mail;

  /** 部署名 */
  private ArrayList post_name_list;

  /** 役職名 */
  private ALStringField position_name;

  /* Add　2011/2/8 Otomaru Start--- */
  /** 勤務先 */
  private ALStringField office_name;
  /* Add　2011/2/8 Otomaru End----- */
  
  private boolean has_photo;

  /* Add　2010/8/24 muramoto Start--- */
  private ALNumberField car_commuting_flag;
  /* Add　2010/8/24 muramoto End--- */
  /* Add　2010/7/19 tou Start--- */
  /** 退職フラグ */
  private ALNumberField retire_flag;
  
  /** パスワード有効期限 */
  private ALStringField password_end_date;
  
  /** 入社日 */
  private ALStringField enter_company_date;
  
  /** 生年月日 */
  private ALStringField birthday;
  /* Add　2010/7/19 tou End--- */

  /**
   * 
   * @see com.aimluck.eip.common.ALData#initField()
   */
  public void initField() {
    user_id = new ALNumberField();
    user_name = new ALStringField();
    name = new ALStringField();
    name_kana = new ALStringField();
    email = new ALStringField();
    out_telephone = new ALStringField();
    in_telephone = new ALStringField();
    cellular_phone = new ALStringField();
    cellular_mail = new ALStringField();
    post_name_list = new ArrayList();
    position_name = new ALStringField();
    /* Add　2011/2/8 Otomaru Start--- */
    office_name = new ALStringField();
    /* Add　2011/2/8 Otomaru End----- */
    disabled = new ALStringField();

    has_photo = false;
    
    /* Add　2010/8/24 muramoto Start--- */
    car_commuting_flag = new ALNumberField();
    /* Add　2010/8/24 muramoto End--- */
    /* Add　2010/7/19 tou Start--- */
    retire_flag = new ALNumberField();
    password_end_date = new ALStringField();
    enter_company_date = new ALStringField();
    birthday = new ALStringField();
    /* Add　2010/7/19 tou End--- */
  }

  /**
   * @return
   */
  public ALStringField getName() {
    return name;
  }

  /**
   * @return
   */
  public ALStringField getUserName() {
    return user_name;
  }

  /**
   * @return
   */
  public ALNumberField getUserId() {
    return user_id;
  }

  /**
   * @return
   */
  public ALStringField getDisabled() {
    return disabled;
  }

  /**
   * @param string
   */
  public void setName(String string) {
    name.setValue(string);
  }

  /**
   * @param string
   */
  public void setUserName(String string) {
    user_name.setValue(string);
  }

  /**
   * @param i
   */
  public void setUserId(int i) {
    user_id.setValue(i);
  }

  /**
   * @param string
   */
  public void setDisabled(String string) {
    disabled.setValue(string);
  }

  /**
   * @return
   */
  public ALStringField getPositionName() {
    return position_name;
  }

  /**
   * @return
   */
  public ArrayList getPostNameList() {
    return post_name_list;
  }

  /* Add　2011/2/8 Otomaru Start--- */
  /**
   * @return
   */
  public ALStringField getOfficeName(){
    return office_name;
  }
  /* Add　2011/2/8 Otomaru End----- */
  
  /**
   * @param string
   */
  public void setPositionName(String string) {
    position_name.setValue(string);
  }

  /**
   * @param string
   */
  public void setPostNameList(ArrayList list) {
    post_name_list.addAll(list);
  }

  /* Add　2011/2/8 Otomaru Start--- */
  /**
   * @param string
   */
  public void setOfficeName(String string){
    office_name.setValue(string);
  }
  /* Add　2011/2/8 Otomaru End----- */
  
  /**
   * @return
   */
  public ALStringField getCellularMail() {
    return cellular_mail;
  }

  /**
   * @return
   */
  public ALStringField getCellularPhone() {
    return cellular_phone;
  }

  /**
   * @return
   */
  public ALStringField getEmail() {
    return email;
  }

  /**
   * @return
   */
  public ALStringField getInTelephone() {
    return in_telephone;
  }

  /**
   * @return
   */
  public ALStringField getOutTelephone() {
    return out_telephone;
  }

  /* Add　2010/8/24 muramoto Start--- */
  /**
   * @return
   */
  public ALNumberField getCarCommutingFlag() {
    return car_commuting_flag;
  }
  /* Add　2010/8/24 muramoto End--- */
  /* Add　2010/7/19 tou Start--- */
  /**
   * @return
   */
  public ALNumberField getRetireFlag() {
    return retire_flag;
  }
  
  /**
   * @return
   */
  public ALStringField getPasswordEndDate() {
    return password_end_date;
  }
  
  /**
   * @return
   */
  public ALStringField getEnterCompanyDate() {
    return enter_company_date;
  }
  
  /**
   * @return
   */
  public ALStringField getBirthday() {
    return birthday;
  }
  /* Add　2010/7/19 tou End--- */
  
  /**
   * @param string
   */
  public void setCellularMail(String string) {
    cellular_mail.setValue(string);
  }

  /**
   * @param string
   */
  public void setCellularPhone(String string) {
    cellular_phone.setValue(string);
  }

  /**
   * @param string
   */
  public void setEmail(String string) {
    email.setValue(string);
  }

  /**
   * @param string
   */
  public void setInTelephone(String string) {
    in_telephone.setValue(string);
  }

  /**
   * @param field
   */
  public void setOutTelephone(String string) {
    out_telephone.setValue(string);
  }

  /**
   * @return
   */
  public ALStringField getNameKana() {
    return name_kana;
  }

  /**
   * @param string
   */
  public void setNameKana(String string) {
    name_kana.setValue(string);
  }

  public boolean hasPhoto() {
    return has_photo;
  }

  public void setHasPhoto(boolean bool) {
    has_photo = bool;
  }
  /* Add　2010/8/24 muramoto Start--- */
  public void setCarCommutingFlag(int flg) {
    car_commuting_flag.setValue(flg);
  }
  /* Add　2010/8/24 muramoto End--- */
  /* Add　2010/7/19 tou Start--- */
  /**
   * @param string
   */
  public void setRetireFlag(int string) {
    retire_flag.setValue(string);
  }
  
  /**
   * @param string
   */
  public void setPasswordEndDate(String string) {
    password_end_date.setValue(string);
  }
  
  /**
   * @param string
   */
  public void setEnterCompanyDate(String string) {
    enter_company_date.setValue(string);
  }
  
  /**
   * @param string
   */
  public void setBirthday(String string) {
    birthday.setValue(string);
  }
  /* Add　2010/7/19 tou End--- */

}
