diff --git a/UniApiGroup/Config/UniApiConfig.cs b/UniApiGroup/Config/UniApiConfig.cs index 9c5d382..4d83a75 100644 --- a/UniApiGroup/Config/UniApiConfig.cs +++ b/UniApiGroup/Config/UniApiConfig.cs @@ -12,7 +12,7 @@ public bool Qad供应商 { get; set; } = true; public bool Qad供应商零件 { get; set; } = true; public bool Qad采购订单 { get; set; } = false; - //public bool Qad收货单 { get; set; } = true; + public bool Qad收货单 { get; set; } = false; public bool Qad采购收货单 { get; set; } = false; public bool Wms收货单 { get; set; } = true; public bool Wms退货单 { get; set; } = true; diff --git a/UniApiGroup/Controller/OdbcApiQadController.cs b/UniApiGroup/Controller/OdbcApiQadController.cs index 185e203..93aee88 100644 --- a/UniApiGroup/Controller/OdbcApiQadController.cs +++ b/UniApiGroup/Controller/OdbcApiQadController.cs @@ -103,6 +103,19 @@ namespace CK.SCP.GrupUniApi.Controller else continue; break; + case QadTableName.xxqad_prh_det: + if (GlobalVar.ApiConfig.Qadջ) + { + Console.WriteLine($" QAD ӿݣ{qadCtrl.xxqad_table}:{qadCtrl.xxqad_table_qty}"); + AddReceive(idb, wdb, qadCtrl.xxqad_seq, 0); + AddReject(idb, wdb, qadCtrl.xxqad_seq, 1); + qadCtrl.xxqad_scm = ((int)UniApiState.ɹ).ToString(); + EntitiesFactory.SaveDb(wdb); + EntitiesFactory.SaveDb(authdb); + } + else + continue; + break; case QadTableName.xxqad_pprice_det: //ɹ۸ Console.WriteLine($" QAD ӿݣ{qadCtrl.xxqad_table}:{qadCtrl.xxqad_table_qty}"); UpdatePrice(idb, wdb, qadCtrl.xxqad_seq); @@ -119,14 +132,7 @@ namespace CK.SCP.GrupUniApi.Controller EntitiesFactory.SaveDb(authdb); break; - case QadTableName.xxqad_prh_det: - Console.WriteLine($" QAD ӿݣ{qadCtrl.xxqad_table}:{qadCtrl.xxqad_table_qty}"); - AddReceive(idb, wdb, qadCtrl.xxqad_seq,0 ); - AddReject(idb, wdb, qadCtrl.xxqad_seq, 1); - qadCtrl.xxqad_scm = ((int)UniApiState.ɹ).ToString(); - EntitiesFactory.SaveDb(wdb); - EntitiesFactory.SaveDb(authdb); - break; + } //qadCtrl.xxqad_scm = ((int)UniApiState.ɹ).ToString(); //EntitiesFactory.SaveDb(wdb);