You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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