From 06d6ba0da4d9036bf3eeab8a7cbef8df89565606 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 16 12月 2024 17:19:05 +0800
Subject: [PATCH] BZ01 齐包优化
---
CC/iWareCC_ASRS/WCF/CCWcfService.cs | 33 ++++++++++++++++++++++++++++++++-
1 files changed, 32 insertions(+), 1 deletions(-)
diff --git a/CC/iWareCC_ASRS/WCF/CCWcfService.cs b/CC/iWareCC_ASRS/WCF/CCWcfService.cs
index a67adc4..3bbca78 100644
--- a/CC/iWareCC_ASRS/WCF/CCWcfService.cs
+++ b/CC/iWareCC_ASRS/WCF/CCWcfService.cs
@@ -61,6 +61,37 @@
}
-
+ /// <summary>
+ /// 楠岃瘉妯″紡
+ /// </summary>
+ /// <param name="flag"></param>
+ /// <returns></returns>
+ public FunRetEntity ValidateMode(int flag)
+ {
+ try
+ {
+ var rgvLocation = StationLocationEnum.BZ39.ToString();
+ var obj = FormCC.stationView.R_StationForReadCommList.Where(x => x.StationCode == rgvLocation.ToString()).FirstOrDefault();
+ if (flag == 1)
+ {//瑕佸己鍒跺嚭搴�
+ if (obj.R_ForceOutboundMode == false)
+ {
+ return FunRetEntity.Fail("PLC涓嶆槸寮哄埗鍑哄簱妯″紡");
+ }
+ }
+ else
+ {
+ if (obj.R_OutboundMode == false)
+ {
+ return FunRetEntity.Fail("PLC涓嶆槸鍑哄簱妯″紡");
+ }
+ }
+ return FunRetEntity.Success("鎴愬姛", "");
+ }
+ catch (Exception ex)
+ {
+ return FunRetEntity.Fail("寮傚父:" + ex.Message);
+ }
+ }
}
}
--
Gitblit v1.9.3