/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 */
package jp.co.sint.basic;

import jp.co.sint.tools.SIUtil;

/**
 * @version $Id : SIUser.java,v 1.0 Exp $
 * <br>Description :
 */

public class SIUser extends SIMallShop{
  //ショップ名
  private String shopName="";
  
  //ショップコード
  private String shopCode="";
  
  //ユーザーコード
  private String userCode="";
  
  //ユーザー名
  private String userName="";
  
  //パスワード
  private String passWord ="";
  
  //パスワード確認用
  private String passWordConfirm ="";
  
  //備考
  private String memo="";
  
  //受注出荷管理
  private String mngOrder="";
  
  //受注出荷管理CSV出力
  private String mngOrderCsv="";
  
  //受注出荷管理PDF出力
  private String mngOrderPdf="";
  
  //顧客管理
  private String mngCust="";
  
  //顧客管理CSV出力
  private String mngCustCsv="";
  
  //顧客管理PDF出力
  private String mngCustPdf="";
  
  //基本情報管理
  private String mngBaseInfo="";
  
  //管理ユーザマスタ
  private String mngUserMst="";
  
  //管理側アクセスログ
  private String mngAccesslog="";
  
  //商品・在庫管理
  private String mngCmdty="";
  
  //商品・在庫管理CSV出力
  private String mngCmdtyCsv="";
  
  //分析・統計管理
  private String mngAnalysis="";
  
  //分析・統計管理CSV出力
  private String mngAnalysisCsv="";
  
  //コミュニケーション管理
  private String mngCmn="";
  
  //データ入出力
  private String mngDataIo="";
  
  //データ入出力CSV入力
  private String mngDataInputCsv="";
  
  //データ入出力CSV出力
  private String mngDataOutputCsv="";
  
  //月次締処理
  private String mngStock = "";
  
  //入出庫承認レベル
  private String mngCmdtyLevel = "";
  
  //帳票一括出力
  private String mngDataIoExcel = "";
  
  //無効ポイント削除
  private String mngCustDelPoint="";
  
  //ポイント追加
  private String mngCustAddPoint="";
  
  //商品別ポイントアクセス権
  private String mngCmdtyPoint="";
  
  //BGニュースのみ可能
  private String mngNews="";
  
  //死活フラグ変更可能
  private String mngCmdtyDisable="";
  
  //棚番CSV入出力可能
  private String mngCmdtyStock="";
  
  //購買管理
  private String mngPurchase="";
  
  //購買管理承認レベル
  private String mngPurchaseLevel="";
  
  //購買管理締処理
  private String mngPurchaseExecute="";
  
  //管理者用CSV取込許可
  private String mngDataInputManager = "";
  
  //物流センター用CSV取込許可
  private String mngDataInputWarehouse = "";
  
  //物流センター用CSV出力許可
  private String mngDataOutputWarehouse = "";
  
  //カード決済受注金額変更許可
  private String mngOrderCard = "";
  
  //JANコード更新許可
  private String mngCmdtyJan = "";
  
  //予約一括処理許可
  private String mngOrderReserve = "";
  
  //ユーザータイプ
  private String userType = "";
  
  //拠点コード
  private String branchCode = "";
  
  //預け先コード
  private String storageCode = "";
  
  //setter of ショップ名
  public void setShopName(String lShopName){
    if (SIUtil.isNull(lShopName)) lShopName="";
    this.shopName=lShopName.trim();
  }
  
  //setter of ショップコード
  public void setShopCode(String lShopCode){
    if (SIUtil.isNull(lShopCode)) lShopCode="";
    this.shopCode=SIUtil.changeTo(lShopCode.trim(),this.encode);
  }
  
  //setter of 個人コード
  public void setUserCode(String lUserCode){
    if (SIUtil.isNull(lUserCode)) lUserCode="";
    this.userCode=SIUtil.changeTo(lUserCode.trim(),this.encode);
  }

  //setter of 名前
  public void setUserName(String luserName){
    if (SIUtil.isNull(luserName)) luserName="";
    this.userName=SIUtil.changeTo(luserName.trim(),this.encode);
  }
  
  //setter of パスワード
  public void setPassWord(String lPassWord){
    if (SIUtil.isNull(lPassWord)) lPassWord="";
    this.passWord=SIUtil.changeTo(lPassWord.trim(),this.encode);
  }
  
  //setter of パスワード確認用
  public void setPassWordConfirm(String lPassWord){
    if (SIUtil.isNull(lPassWord)) lPassWord="";
    this.passWordConfirm=SIUtil.changeTo(lPassWord.trim(),this.encode);
  }

  //setter of 備考
  public void setMemo(String lMemo){
    if(lMemo==null)lMemo="";
    lMemo = SIUtil.changeTo(lMemo.trim(),this.encode);
    this.memo=lMemo.trim();
  }
  
  //setter of 受注出荷管理
  public void setMngOrder(String lMngOrder){
    if(SIUtil.isNull(lMngOrder))lMngOrder="0";
    this.mngOrder=lMngOrder;
  }
  
  //setter of 受注出荷管理CSV出力
  public void setMngOrderCsv(String lMngOrderCsv){
    if(SIUtil.isNull(lMngOrderCsv))lMngOrderCsv="0";
    this.mngOrderCsv=lMngOrderCsv;
  }
  
  //setter of 受注出荷管理PDF出力
  public void setMngOrderPdf(String lMngOrderPdf){
    if(SIUtil.isNull(lMngOrderPdf))lMngOrderPdf="0";
    this.mngOrderPdf=lMngOrderPdf;
  }
  
  //setter of 顧客管理
  public void setMngCust(String lMngCust){
    if(SIUtil.isNull(lMngCust))lMngCust="0";
    this.mngCust=lMngCust;
  }
  
  //setter of 顧客管理CSV出力
  public void setMngCustCsv(String lMngCustCsv){
    if(SIUtil.isNull(lMngCustCsv))lMngCustCsv="0";
    this.mngCustCsv=lMngCustCsv;
  }
  
  //setter of 顧客管理PDF出力
  public void setMngCustPdf(String lMngCustPdf){
    if(SIUtil.isNull(lMngCustPdf))lMngCustPdf="0";
    this.mngCustPdf=lMngCustPdf;
  }
  
  //setter of 基本情報管理
  public void setMngBaseInfo(String lMngBase){
    if(SIUtil.isNull(lMngBase))lMngBase="0";
    this.mngBaseInfo=lMngBase;
  }
  
  //setter of 管理ユーザマスタ
  public void setMngUserMst(String lMngUserMst){
    if(SIUtil.isNull(lMngUserMst))lMngUserMst="0";
    this.mngUserMst=lMngUserMst;
  }
  
  //setter of 管理側アクセスログ
  public void setMngAccesslog(String lMngAccesslog){
    if(SIUtil.isNull(lMngAccesslog))lMngAccesslog="0";
    this.mngAccesslog=lMngAccesslog;
  }
  
  //setter of 商品・在庫管理
  public void setMngCmdty(String lMngCmdty){
    if(SIUtil.isNull(lMngCmdty))lMngCmdty="0";
    this.mngCmdty=lMngCmdty;
  }
  
  //setter of 商品・在庫管理CSV
  public void setMngCmdtyCsv(String lMngGoodsCsv){
    if(SIUtil.isNull(lMngGoodsCsv))lMngGoodsCsv="0";
    this.mngCmdtyCsv=lMngGoodsCsv;
  }
  
  //seter of 分析・統計管理
  public void setMngAnalysis(String lMngAnalysis){
    if(SIUtil.isNull(lMngAnalysis))lMngAnalysis="0";
    this.mngAnalysis=lMngAnalysis;
  }
  
  //seter of 分析・統計管理CSV出力
  public void setMngAnalysisCsv(String lMngAnalysisCsv){
    if(SIUtil.isNull(lMngAnalysisCsv))lMngAnalysisCsv="0";
    this.mngAnalysisCsv=lMngAnalysisCsv;
  }
  
  //setter of コミュニケーション管理
  public void setMngCmn(String lMngCmn){
    if(SIUtil.isNull(lMngCmn))lMngCmn="0";
    this.mngCmn=lMngCmn;
  }
  
  //setter of データ入出力
  public void setMngDataIo(String lMngData){
    if(SIUtil.isNull(lMngData))lMngData="0";
    this.mngDataIo=lMngData;
  }
  
  //setter of データ入出力CSV入力
  public void setMngDataInputCsv(String lMngDataInputCsv){
    if(SIUtil.isNull(lMngDataInputCsv))lMngDataInputCsv="0";
    this.mngDataInputCsv=lMngDataInputCsv;
  }
  
  //setter of データ入出力CSV出力
  public void setMngDataOutputCsv(String lMngDataOutputCsv){
    if(SIUtil.isNull(lMngDataOutputCsv))lMngDataOutputCsv="0";
    this.mngDataOutputCsv=lMngDataOutputCsv;
  }
  
  //setter of 無効ポイント削除
  public void setMngCustDelPoint(String mngCustDelPoint) {
    if(SIUtil.isNull(mngCustDelPoint))mngCustDelPoint="0";
    this.mngCustDelPoint = mngCustDelPoint;
  }
  
  //setter of ポイント追加
  public void setMngCustAddPoint(String mngCustAddPoint) {
    if(SIUtil.isNull(mngCustAddPoint))mngCustAddPoint="0";
    this.mngCustAddPoint = mngCustAddPoint;
  }
  
  //getter of ショップ名
  public String getShopName(){
    return this.shopName;
  }
  
  //getter of ショップコード
  public String getShopCode(){
    return this.shopCode;
  }
  
  //getter of ユーザコード
  public String getUserCode(){
    return this.userCode;
  }
  
  //getter of ユーザ名前
  public String getUserName(){
    return this.userName;
  }
  
  //getter of パスワード
  public String getPassWord(){
    return this.passWord;
  }
  
  //getter of パスワード
  public String getPassWordConfirm(){
    return this.passWordConfirm;
  }
  
  //getter of 備考
  public String getMemo(){
    return this.memo;
  }
  
  //getter of 受注出荷管理
  public String getMngOrder(){
    return this.mngOrder;
  }
  
  //getter of 受注出荷管理CSV
  public String getMngOrderCsv(){
    return this.mngOrderCsv;
  }
  
  //getter of 受注出荷管理PDF
  public String getMngOrderPdf(){
    return this.mngOrderPdf;
  }
  
  //getter of 顧客管理
  public String getMngCust(){
    return this.mngCust;
  }
  
  //getter of 顧客管理CSV出力
  public String getMngCustCsv(){
    return this.mngCustCsv;
  }
  
  //getter of 顧客管理PDF出力
  public String getMngCustPdf(){
    return this.mngCustPdf;
  }
  
  //getter of 基本情報管理
  public String getMngBaseInfo(){
    return this.mngBaseInfo;
  }
  
  //getter of 管理ユーザマスタ
  public String getMngUserMst(){
    return this.mngUserMst;
  }
  
  //getter of 管理側アクセスログ
  public String getMngAccesslog(){
    return this.mngAccesslog;
  }
  
  //getter of 商品・在庫管理
  public String getMngCmdty(){
    return this.mngCmdty;
  }
  
  //getter of 商品・在庫管理CSV出力
  public String getMngCmdtyCsv(){
    return this.mngCmdtyCsv;
  }
  
  //geter of 分析・統計管理
  public String getMngAnalysis(){
    return this.mngAnalysis;
  }
  
  //geter of 分析・統計管理CSV出力
  public String getMngAnalysisCsv(){
    return this.mngAnalysisCsv;
  }
  
  //getter of コミュニケーション管理
  public String getMngCmn(){
    return this.mngCmn;
  }
  
  //getter of データ入出力
  public String getMngDataIo(){
    return this.mngDataIo;
  }
  
  //getter of データ入出力CSV入力
  public String getMngDataInputCsv(){
    return this.mngDataInputCsv;
  }
  
  //getter of データ入出力CSV出力
  public String getMngDataOutputCsv(){
    return this.mngDataOutputCsv;
  }
  /**
   * @return mngCmdtyLevel を戻します。
   */
  public String getMngCmdtyLevel() {
      return mngCmdtyLevel;
  }
  /**
   * @param mngCmdtyLevel mngCmdtyLevel を設定。
   */
  public void setMngCmdtyLevel(String mngCmdtyLevel) {
      if(SIUtil.isNull(mngCmdtyLevel))mngCmdtyLevel="0";
      this.mngCmdtyLevel=mngCmdtyLevel;
  }
  /**
   * @return mngDataIoExcel を戻します。
   */
  public String getMngDataIoExcel() {
      return mngDataIoExcel;
  }
  /**
   * @param mngDataIoExcel mngDataIoExcel を設定。
   */
  public void setMngDataIoExcel(String mngDataIoExcel) {
      if(SIUtil.isNull(mngDataIoExcel))mngDataIoExcel="0";
      this.mngDataIoExcel=mngDataIoExcel;
  }
  /**
   * @return mngStock を戻します。
   */
  public String getMngStock() {
      return mngStock;
  }
  /**
   * @param mngStock mngStock を設定。
   */
  public void setMngStock(String mngStock) {
      if(SIUtil.isNull(mngStock))mngStock="0";
      this.mngStock=mngStock;
  }
  
  //getter of ニュース
  public String getMngNews() {
    return mngNews;
  }
  
  //setter of ニュース
  public void setMngNews(String mngNews) {
    if (SIUtil.isNull(mngNews)) mngNews = "0";
    this.mngNews = mngNews;
  }
  
  //getter of 死活フラグ変更
  public String getMngCmdtyDisable() {
    return mngCmdtyDisable;
  }
  
  //setter of 死活フラグ変更
  public void setMngCmdtyDisable(String mngCmdtyDisable) {
    if (SIUtil.isNull(mngCmdtyDisable)) mngCmdtyDisable = "0";
    this.mngCmdtyDisable = mngCmdtyDisable;
  }
  
  //getter of 棚番CSV入出力可能
  public String getMngCmdtyStock() {
    return mngCmdtyStock;
  }
  
  //setter of 棚番CSV入出力可能
  public void setMngCmdtyStock(String mngCmdtyStock) {
    if (SIUtil.isNull(mngCmdtyStock)) mngCmdtyStock = "0";
    this.mngCmdtyStock = mngCmdtyStock;
  }
  
  //getter of 無効ポイント削除
  public String getMngCustDelPoint() {
    return mngCustDelPoint;
  }
  
  //getter of ポイント追加
  public String getMngCustAddPoint() {
    return mngCustAddPoint;
  }
  
  //getter of mngCmdtyPoint
  public String getMngCmdtyPoint() {
    return this.mngCmdtyPoint;
  }
  
  //setter of mngCmdtyPoint
  public void setMngCmdtyPoint(String mngCmdtyPoint) {
    if (SIUtil.isNull(mngCmdtyPoint)) mngCmdtyPoint = "0";
    this.mngCmdtyPoint = SIUtil.changeTo(mngCmdtyPoint.trim(), this.encode);
  }
  
  private String strLoginErrCount = null; //ログインエラー回数
  private String strLoginErrDate = null;  //ログインエラー発生日時
  
  //ログインエラー回数 Setter
  public void setLoginErrCount(String strLoginErrCount) {
    if(SIUtil.isNull(strLoginErrCount))strLoginErrCount="0";
    this.strLoginErrCount=SIUtil.changeTo(strLoginErrCount.trim(),this.encode);
  }

  //ログインエラー回数 Getter
  public String getLoginErrCount() {
    return this.strLoginErrCount;
  }

  //ログインエラー発生日時 Setter
  public void setLoginErrDate(String strLoginErrDate) {
    this.strLoginErrDate = strLoginErrDate;
  }

  //ログインエラー発生日時 Getter
  public String getLoginErrDate() {
    return this.strLoginErrDate;
  }

  //ログインエラー発生日時 Getter(日付のみ & -を/に置き換え)
  public String getLoginErrDateEdit() {
    if ( this.strLoginErrDate != null ) {
      return this.strLoginErrDate.replace('-','/').substring(0,10);
    } else {
      return new String("");
    }
  }
  
  public String getMngPurchase() {
    return mngPurchase;
  }
  
  public String getMngPurchaseExecute() {
    return mngPurchaseExecute;
  }
  
  public String getMngPurchaseLevel() {
    return mngPurchaseLevel;
  }
  
  public void setMngPurchase(String mngPurchase) {
    if (SIUtil.isNull(mngPurchase)) mngPurchase = "0";
    this.mngPurchase = mngPurchase;
  }
  
  public void setMngPurchaseExecute(String mngPurchaseExecute) {
    if (SIUtil.isNull(mngPurchaseExecute)) mngPurchaseExecute = "0";
    this.mngPurchaseExecute = mngPurchaseExecute;
  }
  
  public void setMngPurchaseLevel(String mngPurchaseLevel) {
    if (SIUtil.isNull(mngPurchaseLevel)) mngPurchaseLevel = "0";
    this.mngPurchaseLevel = mngPurchaseLevel;
  }
  
  public String getMngDataInputManager() {
    return mngDataInputManager;
  }
  
  public String getMngDataInputWarehouse() {
    return mngDataInputWarehouse;
  }
  
  public String getMngDataOutputWarehouse() {
    return mngDataOutputWarehouse;
  }
  
  public void setMngDataInputManager(String mngDataInputManager) {
    if (SIUtil.isNull(mngDataInputManager)) mngDataInputManager = "0";
    this.mngDataInputManager = mngDataInputManager;
  }
  
  public void setMngDataInputWarehouse(String mngDataInputWarehouse) {
    if (SIUtil.isNull(mngDataInputWarehouse)) mngDataInputWarehouse = "0";
    this.mngDataInputWarehouse = mngDataInputWarehouse;
  }
  
  public void setMngDataOutputWarehouse(String mngDataOutputWarehouse) {
    if (SIUtil.isNull(mngDataOutputWarehouse)) mngDataOutputWarehouse = "0";
    this.mngDataOutputWarehouse = mngDataOutputWarehouse;
  }
  
  public String getMngCmdtyJan() {
    return mngCmdtyJan;
  }
  
  public String getMngOrderCard() {
    return mngOrderCard;
  }
  
  public String getMngOrderReserve() {
    return mngOrderReserve;
  }
  
  public void setMngCmdtyJan(String mngCmdtyJan) {
    if (SIUtil.isNull(mngCmdtyJan)) mngCmdtyJan = "0";
    this.mngCmdtyJan = mngCmdtyJan;
  }
  
  public void setMngOrderCard(String mngOrderCard) {
    if (SIUtil.isNull(mngOrderCard)) mngOrderCard = "0";
    this.mngOrderCard = mngOrderCard;
  }
  
  public void setMngOrderReserve(String mngOrderReserve) {
    if (SIUtil.isNull(mngOrderReserve)) mngOrderReserve = "0";
    this.mngOrderReserve = mngOrderReserve;
  }
  
  public String getUserType() {
    return userType;
  }
  
  public void setUserType(String userType) {
    if (SIUtil.isNull(userType)) userType = "0";
    this.userType = userType;
  }
  
  public String getBranchCode() {
    return branchCode;
  }
  
  public void setBranchCode(String branchCode) {
    if (SIUtil.isNull(branchCode)) branchCode = "";
    this.branchCode = branchCode;
  }
  
  public String getStorageCode() {
    return storageCode;
  }
  
  public void setStorageCode(String storageCode) {
    if (SIUtil.isNull(storageCode)) storageCode = "";
    this.storageCode = storageCode;
  }
}
