<?php
$status = array
(
    1 => array('name' => '申请中', 'style' => 'font-weight:bold;color:blue'),
    2 => array('name' => '受理成功', 'style' => 'font-weight:bold;color:green'),
    3 => array('name' => '受理失败', 'style' => 'font-weight:bold;color:#CD3700'),
);

$type = array
(
	1 => '划付',
	2 => '分账',
);

$auto = array
(
	1 => '自动',
	2 => '手动',
);
return array
(
    # 表名
    'name' => 'yspay_cash_tixian',
    # 显示给用户看的名称
    'lang' => '银联资金提现',
    'order' => -200,
    'menu' => false,
    'start' => array
    (
    	'insert' => 'pay/yspay/cash.tixian', 
    	'update' => 'pay/yspay/cash.tixian',
    ),
    # 数据结构
    'struct' => array
    (
    
        'id'        => array
        (
            'type'      => 'int-11',
            'name'      => 'ID',
            'default'   => '',
            'desc'      => '',
            'match'     => 'is_numeric',
            'search'    => 'order',
            'update'    => 'hidden',
            //'list'        => true,
        ),

        'merchant_id'      => array
        (
            'type'      => 'int-11',
            'name'      => '商户id',
            'default'   => '',
            'desc'      => '商户id',
            'match'     => 'option',
            'update'    => 'hidden',
            'value'     => Dever::input('search_option_merchant_id'),
        ),

        'cash'      => array
        (
            'type'      => 'varchar-100',
            'name'      => '提现金额',
            'default'   => '',
            'desc'      => '提现金额',
            'match'     => 'is_string',
            'update'    => 'text',
        ),

        'state'     => array
        (
            'type'      => 'tinyint-1',
            'name'      => '状态',
            'default'   => '1',
            'desc'      => '请选择状态',
            'match'     => 'is_numeric',
        ),
        
        'cdate'     => array
        (
            'type'      => 'int-11',
            'name'      => '创建时间',
            'match'     => array('is_numeric', time()),
            'desc'      => '',
            # 只有insert时才生效
            //'insert'    => true,
            //'search'    => 'date',
            //'list'      => 'date("Y-m-d H:i:s", {cdate})',
        ),
    ),

    'manage' => array
    (
        'edit' => false,
        'insert' => false,
        'delete' => false,
    ),

    'request' => array
    (
        
    ),
);
