Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

343 lines
11KB

  1. <?php
  2. namespace common\components;
  3. use common\logic\Config\TaxRate\Wrapper\TaxRateContainer;
  4. use common\logic\Config\TaxRate\Wrapper\TaxRateManager;
  5. use common\logic\Distribution\Distribution\Wrapper\DistributionManager;
  6. use common\logic\Distribution\Distribution\Wrapper\DistributionContainer;
  7. use common\logic\Distribution\PointSaleDistribution\Wrapper\PointSaleDistributionContainer;
  8. use common\logic\Distribution\PointSaleDistribution\Wrapper\PointSaleDistributionManager;
  9. use common\logic\Distribution\ProductDistribution\Wrapper\ProductDistributionContainer;
  10. use common\logic\Distribution\ProductDistribution\Wrapper\ProductDistributionManager;
  11. use common\logic\Document\DeliveryNote\Wrapper\DeliveryNoteContainer;
  12. use common\logic\Document\DeliveryNote\Wrapper\DeliveryNoteManager;
  13. use common\logic\Document\Document\Wrapper\DocumentContainer;
  14. use common\logic\Document\Document\Wrapper\DocumentManager;
  15. use common\logic\Document\Invoice\Wrapper\InvoiceContainer;
  16. use common\logic\Document\Invoice\Wrapper\InvoiceManager;
  17. use common\logic\Document\Quotation\Wrapper\QuotationContainer;
  18. use common\logic\Document\Quotation\Wrapper\QuotationManager;
  19. use common\logic\Order\Order\Wrapper\OrderContainer;
  20. use common\logic\Order\Order\Wrapper\OrderManager;
  21. use common\logic\Order\ProductOrder\Wrapper\ProductOrderContainer;
  22. use common\logic\Order\ProductOrder\Wrapper\ProductOrderManager;
  23. use common\logic\PointSale\PointSale\Wrapper\PointSaleContainer;
  24. use common\logic\PointSale\PointSale\Wrapper\PointSaleManager;
  25. use common\logic\PointSale\UserPointSale\Wrapper\UserPointSaleContainer;
  26. use common\logic\PointSale\UserPointSale\Wrapper\UserPointSaleManager;
  27. use common\logic\Producer\Producer\Wrapper\ProducerContainer;
  28. use common\logic\Producer\Producer\Wrapper\ProducerManager;
  29. use common\logic\Producer\ProducerPriceRange\Wrapper\ProducerPriceRangeContainer;
  30. use common\logic\Producer\ProducerPriceRange\Wrapper\ProducerPriceRangeManager;
  31. use common\logic\Product\Product\Wrapper\ProductContainer;
  32. use common\logic\Product\Product\Wrapper\ProductManager;
  33. use common\logic\Product\ProductCategory\Wrapper\ProductCategoryContainer;
  34. use common\logic\Product\ProductCategory\Wrapper\ProductCategoryManager;
  35. use common\logic\Product\ProductPointSale\Wrapper\ProductPointSaleContainer;
  36. use common\logic\Product\ProductPointSale\Wrapper\ProductPointSaleManager;
  37. use common\logic\Product\ProductPrice\Wrapper\ProductPriceContainer;
  38. use common\logic\Product\ProductPrice\Wrapper\ProductPriceManager;
  39. use common\logic\Subscription\ProductSubscription\Wrapper\ProductSubscriptionContainer;
  40. use common\logic\Subscription\ProductSubscription\Wrapper\ProductSubscriptionManager;
  41. use common\logic\Subscription\Subscription\Wrapper\SubscriptionContainer;
  42. use common\logic\Subscription\Subscription\Wrapper\SubscriptionManager;
  43. use common\logic\Ticket\Ticket\Wrapper\TicketContainer;
  44. use common\logic\Ticket\Ticket\Wrapper\TicketManager;
  45. use common\logic\Ticket\TicketMessage\Wrapper\TicketMessageContainer;
  46. use common\logic\Ticket\TicketMessage\Wrapper\TicketMessageManager;
  47. use common\logic\Ticket\TicketUser\Wrapper\TicketUserContainer;
  48. use common\logic\Ticket\TicketUser\Wrapper\TicketUserManager;
  49. use common\logic\User\CreditHistory\Wrapper\CreditHistoryContainer;
  50. use common\logic\User\CreditHistory\Wrapper\CreditHistoryManager;
  51. use common\logic\User\User\Wrapper\UserContainer;
  52. use common\logic\User\User\Wrapper\UserManager;
  53. use common\logic\User\UserGroup\Wrapper\UserGroupContainer;
  54. use common\logic\User\UserGroup\Wrapper\UserGroupManager;
  55. use common\logic\User\UserProducer\Wrapper\UserProducerContainer;
  56. use common\logic\User\UserProducer\Wrapper\UserProducerManager;
  57. use common\logic\User\UserUserGroup\Wrapper\UserUserGroupContainer;
  58. use common\logic\User\UserUserGroup\Wrapper\UserUserGroupManager;
  59. trait BusinessLogicTrait
  60. {
  61. public function getUserProducerManager(): UserProducerManager
  62. {
  63. return UserProducerManager::getInstance();
  64. }
  65. public function getOrderManager(): OrderManager
  66. {
  67. return OrderManager::getInstance();
  68. }
  69. public function getTaxRateManager(): TaxRateManager
  70. {
  71. return TaxRateManager::getInstance();
  72. }
  73. public function getDistributionManager(): DistributionManager
  74. {
  75. return DistributionManager::getInstance();
  76. }
  77. public function getPointSaleDistributionManager(): PointSaleDistributionManager
  78. {
  79. return PointSaleDistributionManager::getInstance();
  80. }
  81. public function getProductDistributionManager(): ProductDistributionManager
  82. {
  83. return ProductDistributionManager::getInstance();
  84. }
  85. public function getDeliveryNoteManager(): DeliveryNoteManager
  86. {
  87. return DeliveryNoteManager::getInstance();
  88. }
  89. public function getDocumentManager(): DocumentManager
  90. {
  91. return DocumentManager::getInstance();
  92. }
  93. public function getInvoiceManager(): InvoiceManager
  94. {
  95. return InvoiceManager::getInstance();
  96. }
  97. public function getQuotationManager(): QuotationManager
  98. {
  99. return QuotationManager::getInstance();
  100. }
  101. public function getProductOrderManager(): ProductOrderManager
  102. {
  103. return ProductOrderManager::getInstance();
  104. }
  105. public function getPointSaleManager(): PointSaleManager
  106. {
  107. return PointSaleManager::getInstance();
  108. }
  109. public function getUserPointSaleManager(): UserPointSaleManager
  110. {
  111. return UserPointSaleManager::getInstance();
  112. }
  113. public function getProducerManager(): ProducerManager
  114. {
  115. return ProducerManager::getInstance();
  116. }
  117. public function getProducerPriceRangeManager(): ProducerPriceRangeManager
  118. {
  119. return ProducerPriceRangeManager::getInstance();
  120. }
  121. public function getProductManager(): ProductManager
  122. {
  123. return ProductManager::getInstance();
  124. }
  125. public function getProductCategoryManager(): ProductCategoryManager
  126. {
  127. return ProductCategoryManager::getInstance();
  128. }
  129. public function getProductPointSaleManager(): ProductPointSaleManager
  130. {
  131. return ProductPointSaleManager::getInstance();
  132. }
  133. public function getProductPriceManager(): ProductPriceManager
  134. {
  135. return ProductPriceManager::getInstance();
  136. }
  137. public function getProductSubscriptionManager(): ProductSubscriptionManager
  138. {
  139. return ProductSubscriptionManager::getInstance();
  140. }
  141. public function getSubscriptionManager(): SubscriptionManager
  142. {
  143. return SubscriptionManager::getInstance();
  144. }
  145. public function getCreditHistoryManager(): CreditHistoryManager
  146. {
  147. return CreditHistoryManager::getInstance();
  148. }
  149. public function getUserManager(): UserManager
  150. {
  151. return UserManager::getInstance();
  152. }
  153. public function getUserGroupManager(): UserGroupManager
  154. {
  155. return UserGroupManager::getInstance();
  156. }
  157. public function getUserUserGroupManager(): UserUserGroupManager
  158. {
  159. return UserUserGroupManager::getInstance();
  160. }
  161. public function getTicketManager(): TicketManager
  162. {
  163. return TicketManager::getInstance();
  164. }
  165. public function getTicketMessageManager(): TicketMessageManager
  166. {
  167. return TicketMessageManager::getInstance();
  168. }
  169. public function getTicketUserManager(): TicketUserManager
  170. {
  171. return TicketUserManager::getInstance();
  172. }
  173. public function getUserContainer(): UserContainer
  174. {
  175. return UserContainer::getInstance();
  176. }
  177. public function getProducerContainer(): ProducerContainer
  178. {
  179. return ProducerContainer::getInstance();
  180. }
  181. public function getProducerPriceRangeContainer(): ProducerPriceRangeContainer
  182. {
  183. return ProducerPriceRangeContainer::getInstance();
  184. }
  185. public function getUserProducerContainer(): UserProducerContainer
  186. {
  187. return UserProducerContainer::getInstance();
  188. }
  189. public function getCreditHistoryContainer(): CreditHistoryContainer
  190. {
  191. return CreditHistoryContainer::getInstance();
  192. }
  193. public function getDocumentContainer(): DocumentContainer
  194. {
  195. return DocumentContainer::getInstance();
  196. }
  197. public function getDeliveryNoteContainer(): DeliveryNoteContainer
  198. {
  199. return DeliveryNoteContainer::getInstance();
  200. }
  201. public function getInvoiceContainer(): InvoiceContainer
  202. {
  203. return InvoiceContainer::getInstance();
  204. }
  205. public function getQuotationContainer(): QuotationContainer
  206. {
  207. return QuotationContainer::getInstance();
  208. }
  209. public function getUserGroupContainer(): UserGroupContainer
  210. {
  211. return UserGroupContainer::getInstance();
  212. }
  213. public function getUserUserGroupContainer(): UserUserGroupContainer
  214. {
  215. return UserUserGroupContainer::getInstance();
  216. }
  217. public function getDistributionContainer(): DistributionContainer
  218. {
  219. return DistributionContainer::getInstance();
  220. }
  221. public function getTaxRateContainer(): TaxRateContainer
  222. {
  223. return TaxRateContainer::getInstance();
  224. }
  225. public function getOrderContainer(): OrderContainer
  226. {
  227. return OrderContainer::getInstance();
  228. }
  229. public function getUserPointSaleContainer(): UserPointSaleContainer
  230. {
  231. return UserPointSaleContainer::getInstance();
  232. }
  233. public function getPointSaleContainer(): PointSaleContainer
  234. {
  235. return PointSaleContainer::getInstance();
  236. }
  237. public function getProductOrderContainer(): ProductOrderContainer
  238. {
  239. return ProductOrderContainer::getInstance();
  240. }
  241. public function getProductContainer(): ProductContainer
  242. {
  243. return ProductContainer::getInstance();
  244. }
  245. public function getProductCategoryContainer(): ProductCategoryContainer
  246. {
  247. return ProductCategoryContainer::getInstance();
  248. }
  249. public function getProductPointSaleContainer(): ProductPointSaleContainer
  250. {
  251. return ProductPointSaleContainer::getInstance();
  252. }
  253. public function getProductPriceContainer(): ProductPriceContainer
  254. {
  255. return ProductPriceContainer::getInstance();
  256. }
  257. public function getSubscriptionContainer(): SubscriptionContainer
  258. {
  259. return SubscriptionContainer::getInstance();
  260. }
  261. public function getProductSubscriptionContainer(): ProductSubscriptionContainer
  262. {
  263. return ProductSubscriptionContainer::getInstance();
  264. }
  265. public function getPointSaleDistributionContainer(): PointSaleDistributionContainer
  266. {
  267. return PointSaleDistributionContainer::getInstance();
  268. }
  269. public function getProductDistributionContainer(): ProductDistributionContainer
  270. {
  271. return ProductDistributionContainer::getInstance();
  272. }
  273. public function getTicketContainer(): TicketContainer
  274. {
  275. return TicketContainer::getInstance();
  276. }
  277. public function getTicketMessageContainer(): TicketMessageContainer
  278. {
  279. return TicketMessageContainer::getInstance();
  280. }
  281. public function getTicketUserContainer(): TicketUserContainer
  282. {
  283. return TicketUserContainer::getInstance();
  284. }
  285. }