|
|
@ -103,30 +103,36 @@ namespace CK.SCP.GrupUniApi.Controller |
|
|
|
else |
|
|
|
continue; |
|
|
|
break; |
|
|
|
case QadTableName.xxqad_pprice_det: //采购价格
|
|
|
|
case QadTableName.xxqad_prh_det: |
|
|
|
if (GlobalVar.ApiConfig.Qad收货单) |
|
|
|
{ |
|
|
|
Console.WriteLine($"发现 QAD 接口数据:{qadCtrl.xxqad_table}:{qadCtrl.xxqad_table_qty}"); |
|
|
|
UpdatePrice(idb, wdb, qadCtrl.xxqad_seq); |
|
|
|
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_ppod_det: //采购价格
|
|
|
|
case QadTableName.xxqad_pprice_det: //采购价格
|
|
|
|
Console.WriteLine($"发现 QAD 接口数据:{qadCtrl.xxqad_table}:{qadCtrl.xxqad_table_qty}"); |
|
|
|
UpdatePPod(idb, wdb, qadCtrl.xxqad_seq); |
|
|
|
UpdatePrice(idb, wdb, qadCtrl.xxqad_seq); |
|
|
|
qadCtrl.xxqad_scm = ((int)UniApiState.成功).ToString(); |
|
|
|
EntitiesFactory.SaveDb(wdb); |
|
|
|
EntitiesFactory.SaveDb(authdb); |
|
|
|
|
|
|
|
break; |
|
|
|
case QadTableName.xxqad_prh_det: |
|
|
|
case QadTableName.xxqad_ppod_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); |
|
|
|
UpdatePPod(idb, wdb, qadCtrl.xxqad_seq); |
|
|
|
qadCtrl.xxqad_scm = ((int)UniApiState.成功).ToString(); |
|
|
|
EntitiesFactory.SaveDb(wdb); |
|
|
|
EntitiesFactory.SaveDb(authdb); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
//qadCtrl.xxqad_scm = ((int)UniApiState.成功).ToString();
|
|
|
|
//EntitiesFactory.SaveDb(wdb);
|
|
|
|