<?

require_once ('DBTable.php');
require_once ('BasicEnum.php');

final class Item extends DBTable
{

	public $__TABLE = 'Item';
	public static $__COLUMNS = array(
						'id' 						=> '',
						'name' 					=> '',
						'division'			=> 0,
						'name_id'				=> 0,
						'customer_id'				=> 0,
						'customer_dvsn_id'				=> 0,
						'order_point'		=> 0,
						'safety_stock'	=> 0,
						'unit_price' 		=> 0,
						'trgt_ivnt_turnover' => 0,
						'period_from' 	=> 0,
						'period_to' 		=> 0,
						'create_dt' 		=> 0,
						'create_user_id' => 0,
						'update_dt' 		=> 0,
						'update_user_id' => 0,
						'location_fix_id' => 0,
						'location_fix_div' => 0,
						'location_last_id' => 0,
						'location_last_div' => 0,

					);

}


abstract class ItemStatus extends BasicEnum {
  const UNKNOWN = 0;
  const Store_In  = 1;
  const Store_Out = 2;
  const Cancel = 3;

}

abstract class SlipDivide extends BasicEnum {
  const UNKNOWN = 0;
  const PC_Input  = 1;
	const PC_Output = 2;
	const HT_Input = 3;
	const HT_Output = 4;
}

abstract class ActTypeIb extends BasicEnum {
	const UNKNOWN = "";
	const HT_IB = "IB";
	  const HT_IB_RC = "IB_RC";
	  const HT_IB_RP = "IB_RP";
}

abstract class ActTypeOb extends BasicEnum {
	const UNKNOWN = "";
	const HT_OB  = "OB";
	  const HT_OB_RC = "OB_RC";
	  const HT_OB_RP = "OB_RP";
}