|
|
@ -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);
|
|
|
|