diff --git a/Aucma.Core.ProductOffLine/ViewModels/IndexPageViewModel.cs b/Aucma.Core.ProductOffLine/ViewModels/IndexPageViewModel.cs index 9adf1940..15cc4167 100644 --- a/Aucma.Core.ProductOffLine/ViewModels/IndexPageViewModel.cs +++ b/Aucma.Core.ProductOffLine/ViewModels/IndexPageViewModel.cs @@ -206,7 +206,7 @@ namespace Aucma.Core.ProductOffLine.ViewModels /// 扫码器方向,1左边分A库,2右边分B库 private void ReceiveCode(string code,int direction) { - //1.扫描的SN条码去条码系统查询 + //1.扫描的SN条码去条码系统查询GET_BARCODE_DATA string result = "Y@1104@16160030000000910780@000010034895@@ @000000@000000009000000807@BCD-160C,家电下乡@@BCD-160C@皓月白-家电下乡@161601300@160@1-00版@家电下乡产品@默认@2010-09-01"; //2.查询到的数据分割处理,结果中用"@"号分隔,刷新页面显示并存到scada数据库(表待建) @@ -214,21 +214,30 @@ namespace Aucma.Core.ProductOffLine.ViewModels // 输出结果 foreach (string item in resultArray) { - Thread.Sleep(2000); + MessageBox.Show(item); } - //3.调条码系统保存接口入库 + //3.调条码系统保存接口入库SaveBarcodeInfo //4.更新mes数据库完成数量和时间(BASE_ORDERINFO,PRODUCT_PLANINFO) //5.分垛A,B库逻辑(先左边读到的条码分A库,右边读到的B库==>预留分库逻辑) //6.下发plc信号 - + sendPlc(); } + + /// + /// plc信号下发 + /// + private void sendPlc() + { + + } + // 测试连接 void test() {