SAPDataModuleProxy.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:SAPDataModuleProxy.cs
  5. * 2.功能描述:SAP数据接口
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 宋扬 2014/11/08 1.00 新建
  9. *******************************************************************************/
  10. using System.Data;
  11. using Dongke.IBOSS.PRD.WCF.DataModels;
  12. using Dongke.IBOSS.PRD.WCF.DataModels.ReportModule;
  13. using Dongke.IBOSS.PRD.WCF.Proxys.ReportModuleService;
  14. using Dongke.IBOSS.PRD.WCF.Proxys.ServiceProxy;
  15. using Dongke.IBOSS.PRD.WCF.DataModels.PMModule;
  16. using Dongke.IBOSS.PRD.WCF.Contracts;
  17. namespace Dongke.IBOSS.PRD.WCF.Proxys
  18. {
  19. /// <summary>
  20. /// SAP数据接口
  21. /// </summary>
  22. public class SAPDataModuleProxy : ServiceProxyBase<ISAPData>
  23. {
  24. #region 构造
  25. private SAPDataModuleProxy()
  26. : base("SAPDataService")
  27. {
  28. }
  29. private static SAPDataModuleProxy _service = null;
  30. public static SAPDataModuleProxy Service
  31. {
  32. get
  33. {
  34. if (_service == null)
  35. {
  36. return new SAPDataModuleProxy();
  37. }
  38. return _service;
  39. }
  40. }
  41. #endregion
  42. #region 共通调用
  43. /// <summary>
  44. /// 共通调用
  45. /// </summary>
  46. /// <param name="cre"></param>
  47. /// <returns></returns>
  48. public ServiceResultEntity DoRequest(ClientRequestEntity cre)
  49. {
  50. ServiceResultEntity result = this.Invoker.Invoke<ServiceResultEntity>(proxy => proxy.DoRequest(cre));
  51. return result;
  52. }
  53. #endregion
  54. }
  55. }