PublicModuleProxy.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:PublicModuleProxy.cs
  5. * 2.功能描述:公开查询服务代理
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 陈晓野 2015/11/03 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.Data;
  12. using Dongke.IBOSS.PRD.WCF.DataModels;
  13. using Dongke.IBOSS.PRD.WCF.Proxys.PublicModuleService;
  14. using Dongke.IBOSS.PRD.WCF.Proxys.ServiceProxy;
  15. namespace Dongke.IBOSS.PRD.WCF.Proxys
  16. {
  17. /// <summary>
  18. /// 生产管理服务代理
  19. /// </summary>
  20. public class PublicModuleProxy : ServiceProxyBase<IPublicModule>
  21. {
  22. #region 构造
  23. private PublicModuleProxy()
  24. : base("PublicModuleService")
  25. {
  26. }
  27. private static PublicModuleProxy _service = null;
  28. public static PublicModuleProxy Service
  29. {
  30. get
  31. {
  32. if (_service == null)
  33. {
  34. return new PublicModuleProxy();
  35. }
  36. return _service;
  37. }
  38. }
  39. #endregion
  40. /// <summary>
  41. /// 检验客户端是否需要更新
  42. /// </summary>
  43. /// <param name="version"></param>
  44. /// <returns></returns>
  45. public NeedUpgradeResultEntity IsNeedUpgrade(string version)
  46. {
  47. NeedUpgradeResultEntity result = this.Invoker.Invoke<NeedUpgradeResultEntity>(
  48. proxy => proxy.IsNeedUpgrade(version));
  49. return result;
  50. }
  51. /// <summary>
  52. /// 取得FP00002画面(工号产量质量)的查询数据
  53. /// </summary>
  54. /// <param name="usercode">工号</param>
  55. /// <returns>查询结果</returns>
  56. public ServiceResultEntity GetFP00002Data(int accountID, string usercode, DateTime date)
  57. {
  58. ServiceResultEntity result = this.Invoker.Invoke<ServiceResultEntity>(
  59. proxy => proxy.GetFP00002Data(accountID, usercode, date));
  60. return result;
  61. }
  62. public ServiceResultEntity GetRptProcedureModule(int accountID)
  63. {
  64. ServiceResultEntity result = this.Invoker.Invoke<ServiceResultEntity>(
  65. proxy => proxy.GetRptProcedureModule(accountID));
  66. return result;
  67. }
  68. public ServiceResultEntity GetRptSourceProcedureModule(int accountid, int? RptProcedureID)
  69. {
  70. ServiceResultEntity result = this.Invoker.Invoke<ServiceResultEntity>(
  71. proxy => proxy.GetRptSourceProcedureModule(accountid, RptProcedureID));
  72. return result;
  73. }
  74. }
  75. }