yspay_main.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'yspay_main',
  6. # 显示给用户看的名称
  7. 'lang' => '银商主体配置',
  8. 'order' => 10,
  9. 'menu' => false,
  10. # 数据结构
  11. 'struct' => array
  12. (
  13. 'id' => array
  14. (
  15. 'type' => 'int-11',
  16. 'name' => 'ID',
  17. 'default' => '',
  18. 'desc' => '',
  19. 'match' => 'is_numeric',
  20. 'search' => 'order',
  21. 'list' => true,
  22. ),
  23. 'account_id' => array
  24. (
  25. 'type' => 'int-11',
  26. 'name' => '所属账户',
  27. 'default' => '1',
  28. 'desc' => '所属账户',
  29. 'match' => 'is_numeric',
  30. 'update' => 'hidden',
  31. 'search' => 'hidden',
  32. 'value' => Dever::input('search_option_account_id'),
  33. ),
  34. 'name' => array
  35. (
  36. 'type' => 'varchar-60',
  37. 'name' => '主体名称',
  38. 'default' => '',
  39. 'desc' => '主体名称',
  40. 'match' => 'is_string',
  41. 'update' => 'text',
  42. 'search' => 'fulltext',
  43. 'list' => true,
  44. ),
  45. 'cash_mid' => array
  46. (
  47. 'type' => 'varchar-200',
  48. 'name' => '主体商户号',
  49. 'default' => '',
  50. 'desc' => '主体商户号',
  51. 'match' => 'is_string',
  52. 'update' => 'text',
  53. 'list' => true,
  54. ),
  55. 'cash_merno' => array
  56. (
  57. 'type' => 'varchar-200',
  58. 'name' => '主体企业用户号',
  59. 'default' => '',
  60. 'desc' => '主体企业用户号',
  61. 'match' => 'option',
  62. 'update' => 'text',
  63. 'list' => true,
  64. ),
  65. 'cash_card' => array
  66. (
  67. 'type' => 'varchar-150',
  68. 'name' => '主体银行卡号',
  69. 'default' => '',
  70. 'desc' => '主体银行卡号',
  71. 'match' => 'option',
  72. 'update' => 'text',
  73. ),
  74. 'state' => array
  75. (
  76. 'type' => 'tinyint-1',
  77. 'name' => '状态',
  78. 'default' => '1',
  79. 'desc' => '请选择状态',
  80. 'match' => 'is_numeric',
  81. ),
  82. 'cdate' => array
  83. (
  84. 'type' => 'int-11',
  85. 'name' => '录入时间',
  86. 'match' => array('is_numeric', time()),
  87. 'desc' => '',
  88. # 只有insert时才生效
  89. 'insert' => true,
  90. 'search' => 'date',
  91. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  92. ),
  93. ),
  94. 'manage' => array
  95. (
  96. 'insert' => false,
  97. 'edit' => false,
  98. # 自定义快捷新增和编辑
  99. 'button' => array
  100. (
  101. '新增' => array('fast'),
  102. ),
  103. 'list_button' => array
  104. (
  105. 'edit' => array('编辑'),
  106. 'list' => array('商户列表', '"yspay_merchant&search_option_account_id={account_id}&search_option_yspay_main_id={id}&parent=account.yspay_main"'),
  107. 'list1' => array('分账日志', '"yspay_cash_log&search_option_yspay_main_id={id}&search_option_type=2&parent=account.yspay_main"'),
  108. ),
  109. ),
  110. );