PPModuleProxy.cs 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. /*******************************************************************************
  2. * Copyright(c) 2019 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:PPModuleProxy.cs
  5. * 2.功能描述:生产计划代理
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 徐伟 2019/08/30 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.Collections.Generic;
  12. using System.Data;
  13. using Dongke.IBOSS.PRD.WCF.Contracts;
  14. using Dongke.IBOSS.PRD.WCF.DataModels;
  15. using Dongke.IBOSS.PRD.WCF.DataModels.ConfigModule;
  16. using Dongke.IBOSS.PRD.WCF.Proxys.ServiceProxy;
  17. namespace Dongke.IBOSS.PRD.WCF.Proxys
  18. {
  19. public class PPModuleProxy : ServiceProxyBase<IPPModule>
  20. {
  21. #region 构造
  22. private PPModuleProxy(): base("PPModuleService")
  23. {
  24. }
  25. private static PPModuleProxy _service = null;
  26. public static PPModuleProxy Service
  27. {
  28. get
  29. {
  30. if (_service == null)
  31. {
  32. return new PPModuleProxy();
  33. }
  34. return _service;
  35. }
  36. }
  37. #endregion
  38. #region 计划通用
  39. public int Seq(string seqName)
  40. {
  41. return this.Invoker.Invoke<int>(p => p.Seq(seqName));
  42. }
  43. public ServiceResultEntity PlanTypeSearch(ClientRequestEntity cre = null)
  44. {
  45. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanTypeSearch(cre));
  46. }
  47. public ServiceResultEntity PlanGoodsSearch(ClientRequestEntity cre = null)
  48. {
  49. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanGoodsSearch(cre));
  50. }
  51. #endregion
  52. #region 年计划
  53. public int PlanYearVer(int planTypeId)
  54. {
  55. return this.Invoker.Invoke<int>(p => p.PlanYearVer(planTypeId));
  56. }
  57. public int PlanYearCopy(int planId)
  58. {
  59. return this.Invoker.Invoke<int>(p => p.PlanYearCopy(planId));
  60. }
  61. public ServiceResultEntity PlanYearSearch(ClientRequestEntity cre = null)
  62. {
  63. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanYearSearch(cre));
  64. }
  65. public ServiceResultEntity PlanYearVerSearch(ClientRequestEntity cre = null)
  66. {
  67. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanYearVerSearch(cre));
  68. }
  69. public ServiceResultEntity PlanYearInsert(ClientRequestEntity cre = null)
  70. {
  71. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanYearInsert(cre));
  72. }
  73. public ServiceResultEntity PlanYearUpdate(ClientRequestEntity cre = null)
  74. {
  75. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanYearUpdate(cre));
  76. }
  77. public ServiceResultEntity PlanYearDelete(ClientRequestEntity cre = null)
  78. {
  79. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanYearDelete(cre));
  80. }
  81. public ServiceResultEntity PlanYearGoodsSearch(ClientRequestEntity cre = null)
  82. {
  83. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanYearGoodsSearch(cre));
  84. }
  85. public ServiceResultEntity PlanYearGoodsInsert(ClientRequestEntity cre = null)
  86. {
  87. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanYearGoodsInsert(cre));
  88. }
  89. public ServiceResultEntity PlanYearGoodsUpdate(ClientRequestEntity cre = null)
  90. {
  91. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanYearGoodsUpdate(cre));
  92. }
  93. public ServiceResultEntity PlanYearGoodsDelete(ClientRequestEntity cre = null)
  94. {
  95. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanYearGoodsDelete(cre));
  96. }
  97. #endregion
  98. #region 月计划
  99. public int PlanMonthVer(int planTypeId)
  100. {
  101. return this.Invoker.Invoke<int>(p => p.PlanMonthVer(planTypeId));
  102. }
  103. public int PlanMonthCopy(int planId)
  104. {
  105. return this.Invoker.Invoke<int>(p => p.PlanMonthCopy(planId));
  106. }
  107. public ServiceResultEntity PlanMonthSearch(ClientRequestEntity cre = null)
  108. {
  109. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanMonthSearch(cre));
  110. }
  111. public ServiceResultEntity PlanMonthVerSearch(ClientRequestEntity cre = null)
  112. {
  113. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanMonthVerSearch(cre));
  114. }
  115. public ServiceResultEntity PlanMonthInsert(ClientRequestEntity cre = null)
  116. {
  117. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanMonthInsert(cre));
  118. }
  119. public ServiceResultEntity PlanMonthUpdate(ClientRequestEntity cre = null)
  120. {
  121. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanMonthUpdate(cre));
  122. }
  123. public ServiceResultEntity PlanMonthDelete(ClientRequestEntity cre = null)
  124. {
  125. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanMonthDelete(cre));
  126. }
  127. public ServiceResultEntity PlanMonthGoodsSearch(ClientRequestEntity cre = null)
  128. {
  129. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanMonthGoodsSearch(cre));
  130. }
  131. public ServiceResultEntity PlanMonthGoodsInsert(ClientRequestEntity cre = null)
  132. {
  133. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanMonthGoodsInsert(cre));
  134. }
  135. public ServiceResultEntity PlanMonthGoodsUpdate(ClientRequestEntity cre = null)
  136. {
  137. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanMonthGoodsUpdate(cre));
  138. }
  139. public ServiceResultEntity PlanMonthGoodsDelete(ClientRequestEntity cre = null)
  140. {
  141. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanMonthGoodsDelete(cre));
  142. }
  143. #endregion
  144. #region 日计划
  145. public int PlanDayVer(int planTypeId)
  146. {
  147. return this.Invoker.Invoke<int>(p => p.PlanDayVer(planTypeId));
  148. }
  149. public int PlanDayCopy(int planId)
  150. {
  151. return this.Invoker.Invoke<int>(p => p.PlanDayCopy(planId));
  152. }
  153. public ServiceResultEntity PlanDaySearch(ClientRequestEntity cre = null)
  154. {
  155. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanDaySearch(cre));
  156. }
  157. public ServiceResultEntity PlanDayVerSearch(ClientRequestEntity cre = null)
  158. {
  159. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanDayVerSearch(cre));
  160. }
  161. public ServiceResultEntity PlanDayInsert(ClientRequestEntity cre = null)
  162. {
  163. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanDayInsert(cre));
  164. }
  165. public ServiceResultEntity PlanDayUpdate(ClientRequestEntity cre = null)
  166. {
  167. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanDayUpdate(cre));
  168. }
  169. public ServiceResultEntity PlanDayDelete(ClientRequestEntity cre = null)
  170. {
  171. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanDayDelete(cre));
  172. }
  173. public ServiceResultEntity PlanDayGoodsSearch(ClientRequestEntity cre = null)
  174. {
  175. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanDayGoodsSearch(cre));
  176. }
  177. public ServiceResultEntity PlanDayGoodsInsert(ClientRequestEntity cre = null)
  178. {
  179. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanDayGoodsInsert(cre));
  180. }
  181. public ServiceResultEntity PlanDayGoodsUpdate(ClientRequestEntity cre = null)
  182. {
  183. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanDayGoodsUpdate(cre));
  184. }
  185. public ServiceResultEntity PlanDayGoodsDelete(ClientRequestEntity cre = null)
  186. {
  187. return this.Invoker.Invoke<ServiceResultEntity>(p => p.PlanDayGoodsDelete(cre));
  188. }
  189. #endregion
  190. }
  191. }