Browse Source

qad收货单添加开关控制

master
lvzb 4 years ago
parent
commit
eb352c4c79
  1. 2
      UniApiGroup/Config/UniApiConfig.cs
  2. 22
      UniApiGroup/Controller/OdbcApiQadController.cs

2
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;

22
UniApiGroup/Controller/OdbcApiQadController.cs

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

Loading…
Cancel
Save