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