|
@ -1692,10 +1692,10 @@ namespace CK.SCP.Controller |
|
|
var _supplierpart = scpdb.TA_VEND_PART.SingleOrDefault(p => p.VendId == supplierpart.Supplier && p.PartCode == supplierpart.PartCode && p.VendPartCode == supplierpart.SupplierPart && p.Site == supplierpart.Domain ); |
|
|
var _supplierpart = scpdb.TA_VEND_PART.SingleOrDefault(p => p.VendId == supplierpart.Supplier && p.PartCode == supplierpart.PartCode && p.VendPartCode == supplierpart.SupplierPart && p.Site == supplierpart.Domain ); |
|
|
if (_supplierpart == null) |
|
|
if (_supplierpart == null) |
|
|
{ |
|
|
{ |
|
|
var _pack = dc.TS_PACK.SingleOrDefault(p => p.PartCode == supplierpart.PartCode && p.Site == supplierpart.Domain && p.Site == supplierpart.Site); |
|
|
// var _pack = dc.TS_PACK.SingleOrDefault(p => p.PartCode == supplierpart.PartCode && p.Site == supplierpart.Domain && p.Site == supplierpart.Site);
|
|
|
if (_pack != null) |
|
|
//if (_pack != null)
|
|
|
{ |
|
|
//{
|
|
|
} |
|
|
//}
|
|
|
_supplierpart = new TA_VEND_PART |
|
|
_supplierpart = new TA_VEND_PART |
|
|
{ |
|
|
{ |
|
|
VendId = supplierpart.Supplier.ToUpper(),//供应商编号
|
|
|
VendId = supplierpart.Supplier.ToUpper(),//供应商编号
|
|
|