push_cash.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?php
  2. $aid = Dever::input('search_option_aid');
  3. $mid = Dever::input('search_option_mid');
  4. $company_id = Dever::input('search_option_company_id', 1);
  5. $option_type = Dever::input('type');
  6. if ($option_type == 1) {
  7. $type = function() use($company_id) {
  8. return Dever::load('option/lib/manage')->getQiquan($company_id, '交付');
  9. };
  10. $stype = 'jiaofu';
  11. } else {
  12. $type = function() use($company_id) {
  13. return Dever::load('option/lib/manage')->getQiquan($company_id, '发放');
  14. };
  15. $stype = 'fafang';
  16. }
  17. $status = array
  18. (
  19. 1 => '操作成功',
  20. 2 => '操作失败',
  21. );
  22. return array
  23. (
  24. # 表名
  25. 'name' => 'push_cash',
  26. # 显示给用户看的名称
  27. 'lang' => '发放资金',
  28. 'order' => 99,
  29. 'menu' => false,
  30. 'end' => array
  31. (
  32. 'insert' => 'option/lib/manage.cashUpdate',
  33. ),
  34. # 数据结构
  35. 'struct' => array
  36. (
  37. 'id' => array
  38. (
  39. 'type' => 'int-11',
  40. 'name' => 'ID',
  41. 'default' => '',
  42. 'desc' => '',
  43. 'match' => 'is_numeric',
  44. 'search' => 'order',
  45. //'list' => true,
  46. ),
  47. 'aid' => array
  48. (
  49. 'type' => 'int-11',
  50. 'name' => '期权登录账户',
  51. 'default' => '-1',
  52. 'desc' => '期权登录账户',
  53. 'match' => 'is_string',
  54. 'update' => 'hidden',
  55. 'value' => $aid,
  56. ),
  57. 'mid' => array
  58. (
  59. 'type' => 'int-11',
  60. 'name' => '期权账户',
  61. 'default' => '-1',
  62. 'desc' => '期权账户',
  63. 'match' => 'is_string',
  64. 'update' => 'hidden',
  65. 'value' => $mid,
  66. ),
  67. 'type' => array
  68. (
  69. 'type' => 'tinyint-1',
  70. 'name' => '操作类型',
  71. 'default' => '0',
  72. 'desc' => '操作类型',
  73. 'match' => 'is_numeric',
  74. 'option' => $type,
  75. 'update' => 'radio',
  76. ),
  77. 'stype' => array
  78. (
  79. 'type' => 'varchar-10',
  80. 'name' => '交付类型',
  81. 'default' => '0',
  82. 'desc' => '交付类型',
  83. 'match' => 'is_string',
  84. 'value' => $stype,
  85. 'update' => 'hidden',
  86. ),
  87. 'cash' => array
  88. (
  89. 'type' => 'decimal-11,2',
  90. 'name' => '操作金额-金额单位为元',
  91. 'default' => '',
  92. 'desc' => '操作金额',
  93. 'match' => 'is_numeric',
  94. 'update' => 'text',
  95. ),
  96. 'desc' => array
  97. (
  98. 'type' => 'varchar-600',
  99. 'name' => '备注',
  100. 'default' => '',
  101. 'desc' => '备注',
  102. 'match' => 'option',
  103. 'update' => 'textarea',
  104. ),
  105. 'admin_founder' => array
  106. (
  107. 'type' => 'int-11',
  108. 'name' => '插入操作人',
  109. 'default' => '',
  110. 'desc' => '',
  111. 'match' => 'is_numeric',
  112. 'search' => 'order',
  113. //'list' => true,
  114. ),
  115. 'admin_editor' => array
  116. (
  117. 'type' => 'int-11',
  118. 'name' => '更新操作人',
  119. 'default' => '',
  120. 'desc' => '',
  121. 'match' => 'is_numeric',
  122. 'search' => 'order',
  123. //'list' => true,
  124. ),
  125. 'status' => array
  126. (
  127. 'type' => 'int-11',
  128. 'name' => '发放状态',
  129. 'default' => '1',
  130. 'desc' => '发放状态',
  131. 'match' => 'is_numeric',
  132. 'update' => 'hidden',
  133. 'option' => $status,
  134. ),
  135. 'state' => array
  136. (
  137. 'type' => 'tinyint-1',
  138. 'name' => '状态',
  139. 'default' => '1',
  140. 'desc' => '请选择状态',
  141. 'match' => 'is_numeric',
  142. ),
  143. 'cdate' => array
  144. (
  145. 'type' => 'int-11',
  146. 'name' => '交易时间',
  147. 'match' => array('is_numeric', time()),
  148. 'desc' => '',
  149. # 只有insert时才生效
  150. //'insert' => true,
  151. 'search' => 'date',
  152. 'list' => 'date("Y-m-d H:i", {cdate})',
  153. 'list_order' => 2,
  154. ),
  155. ),
  156. 'alter' => array
  157. (
  158. 5 => array
  159. (
  160. array('update', 'cash', 'cash', 'decimal-11,2 0 操作金额'),
  161. ),
  162. 'version' => 5,
  163. ),
  164. 'manage' => array
  165. (
  166. 'insert' => false,
  167. 'delete' => false,
  168. 'edit' => false,
  169. 'page_list' => 'push_cash',
  170. 'list_button' => array
  171. (
  172. ),
  173. ),
  174. 'request' => array
  175. (
  176. ),
  177. );