123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- <?php
- $aid = Dever::input('search_option_aid');
- $mid = Dever::input('search_option_mid');
- $company_id = Dever::input('search_option_company_id', 1);
- $option_type = Dever::input('type');
- if ($option_type == 1) {
- $type = function() use($company_id) {
- return Dever::load('option/lib/manage')->getQiquan($company_id, '交付');
- };
- $stype = 'jiaofu';
- } elseif ($option_type == 10) {
- $type = function() use($company_id) {
- return Dever::load('option/lib/manage')->getQiquan($company_id, '作废');
- };
- $stype = 'zuofei';
- } else {
- $type = function() use($company_id) {
- return Dever::load('option/lib/manage')->getQiquan($company_id, '发放');
- };
- $stype = 'fafang';
- }
- $status = array
- (
- 1 => '操作成功',
- 2 => '操作失败',
- );
- return array
- (
- # 表名
- 'name' => 'push_cash',
- # 显示给用户看的名称
- 'lang' => '发放资金',
- 'order' => 99,
- 'menu' => false,
- 'end' => array
- (
- 'insert' => 'option/lib/manage.cashUpdate',
- ),
- # 数据结构
- 'struct' => array
- (
-
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
- //'list' => true,
- ),
- 'aid' => array
- (
- 'type' => 'int-11',
- 'name' => '期权登录账户',
- 'default' => '-1',
- 'desc' => '期权登录账户',
- 'match' => 'is_string',
- 'update' => 'hidden',
- 'value' => $aid,
- ),
- 'mid' => array
- (
- 'type' => 'int-11',
- 'name' => '期权账户',
- 'default' => '-1',
- 'desc' => '期权账户',
- 'match' => 'is_string',
- 'update' => 'hidden',
- 'value' => $mid,
- ),
- 'type' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '操作类型',
- 'default' => '0',
- 'desc' => '操作类型',
- 'match' => 'is_numeric',
- 'option' => $type,
- 'update' => 'radio',
- ),
- 'stype' => array
- (
- 'type' => 'varchar-10',
- 'name' => '交付类型',
- 'default' => '0',
- 'desc' => '交付类型',
- 'match' => 'is_string',
- 'value' => $stype,
- 'update' => 'hidden',
- ),
- 'cash' => array
- (
- 'type' => 'decimal-11,2',
- 'name' => '操作金额-金额单位为元',
- 'default' => '',
- 'desc' => '操作金额',
- 'match' => 'is_numeric',
- 'update' => 'text',
- ),
- 'desc' => array
- (
- 'type' => 'varchar-600',
- 'name' => '备注',
- 'default' => '',
- 'desc' => '备注',
- 'match' => 'option',
- 'update' => 'textarea',
- ),
- 'admin_founder' => array
- (
- 'type' => 'int-11',
- 'name' => '插入操作人',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
- //'list' => true,
- ),
- 'admin_editor' => array
- (
- 'type' => 'int-11',
- 'name' => '更新操作人',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
- //'list' => true,
- ),
- 'status' => array
- (
- 'type' => 'int-11',
- 'name' => '发放状态',
- 'default' => '1',
- 'desc' => '发放状态',
- 'match' => 'is_numeric',
- 'update' => 'hidden',
- 'option' => $status,
- ),
- '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", {cdate})',
- 'list_order' => 2,
- ),
- ),
- 'alter' => array
- (
- 5 => array
- (
- array('update', 'cash', 'cash', 'decimal-11,2 0 操作金额'),
- ),
- 'version' => 5,
- ),
- 'manage' => array
- (
- 'insert' => false,
- 'delete' => false,
- 'edit' => false,
- 'page_list' => 'push_cash',
- 'list_button' => array
- (
-
- ),
- ),
- 'request' => array
- (
-
- ),
- );
|