| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- /*******************************************************************************
- * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
- * 类的信息:
- * 1.程序名称:SAPDataModuleProxy.cs
- * 2.功能描述:SAP数据接口
- * 编辑履历:
- * 作者 日期 版本 修改内容
- * 宋扬 2014/11/08 1.00 新建
- *******************************************************************************/
- using System.Data;
- using Dongke.IBOSS.PRD.WCF.DataModels;
- using Dongke.IBOSS.PRD.WCF.DataModels.ReportModule;
- using Dongke.IBOSS.PRD.WCF.Proxys.ReportModuleService;
- using Dongke.IBOSS.PRD.WCF.Proxys.ServiceProxy;
- using Dongke.IBOSS.PRD.WCF.DataModels.PMModule;
- using Dongke.IBOSS.PRD.WCF.Contracts;
- namespace Dongke.IBOSS.PRD.WCF.Proxys
- {
- /// <summary>
- /// SAP数据接口
- /// </summary>
- public class SAPDataModuleProxy : ServiceProxyBase<ISAPData>
- {
- #region 构造
- private SAPDataModuleProxy()
- : base("SAPDataService")
- {
- }
- private static SAPDataModuleProxy _service = null;
- public static SAPDataModuleProxy Service
- {
- get
- {
- if (_service == null)
- {
- return new SAPDataModuleProxy();
- }
- return _service;
- }
- }
- #endregion
- #region 共通调用
- /// <summary>
- /// 共通调用
- /// </summary>
- /// <param name="cre"></param>
- /// <returns></returns>
- public ServiceResultEntity DoRequest(ClientRequestEntity cre)
- {
- ServiceResultEntity result = this.Invoker.Invoke<ServiceResultEntity>(proxy => proxy.DoRequest(cre));
- return result;
- }
- #endregion
- }
- }
|