#
#= warehouses_customersコントローラー
# Authors:: Sumiyo Yamamoto
# Copyright:: Copyright (C) OrbusNeich Medical K.K.  2010.
#--
# date        name                   note
# 2010.11.5   Sumiyo Yamamoto        新規作成
#-------------------------------------------------------------------------------
#++
class WarehousesCustomersController < Comm::BaseController::General
  #== コンストラクタ
  #-----------------------------------------------------------------#++
  def initialize
    @mcls = WarehousesCustomer
  end
  
  def find_all
    ss = WarehousesCustomerSearch.new
    return ss.search(FLAG_ON, @mcls, @join_mcls, params)
  end
  
  class WarehousesCustomerSearch < Comm::Tool::SqlSearch
    def get_columns_and_tables(tab, join_lists, params, str_vals)
      str_cols, str_tab, str_vals = super
      if params[:ext_index_list]==STR_TRUE
        str_cols = params[:cols]
      end
      return str_cols, str_tab, str_vals
    end
  end
end
