push_cash.php 5.2 KB

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