private void FixupPROVEEDOR(PROVEEDOR previousValue) { if (previousValue != null && previousValue.PROVEEDOR_CUENTA.Contains(this)) { previousValue.PROVEEDOR_CUENTA.Remove(this); } if (PROVEEDOR != null) { if (!PROVEEDOR.PROVEEDOR_CUENTA.Contains(this)) { PROVEEDOR.PROVEEDOR_CUENTA.Add(this); } if (UNID_PROVEEDOR != PROVEEDOR.UNID_PROVEEDOR) { UNID_PROVEEDOR = PROVEEDOR.UNID_PROVEEDOR; } } }
private void FixupPROVEEDOR2(PROVEEDOR previousValue) { if (previousValue != null && previousValue.MOVIMENTOes2.Contains(this)) { previousValue.MOVIMENTOes2.Remove(this); } if (PROVEEDOR2 != null) { if (!PROVEEDOR2.MOVIMENTOes2.Contains(this)) { PROVEEDOR2.MOVIMENTOes2.Add(this); } if (UNID_PROVEEDOR_DESTINO != PROVEEDOR2.UNID_PROVEEDOR) { UNID_PROVEEDOR_DESTINO = PROVEEDOR2.UNID_PROVEEDOR; } } else if (!_settingFK) { UNID_PROVEEDOR_DESTINO = null; } }
private void FixupPROVEEDOR1(PROVEEDOR previousValue) { if (previousValue != null && previousValue.MOVIMENTOes1.Contains(this)) { previousValue.MOVIMENTOes1.Remove(this); } if (PROVEEDOR1 != null) { if (!PROVEEDOR1.MOVIMENTOes1.Contains(this)) { PROVEEDOR1.MOVIMENTOes1.Add(this); } if (UNID_PROVEEDOR != PROVEEDOR1.UNID_PROVEEDOR) { UNID_PROVEEDOR = PROVEEDOR1.UNID_PROVEEDOR; } } else if (!_settingFK) { UNID_PROVEEDOR = null; } }
private void FixupPROVEEDOR(PROVEEDOR previousValue) { if (previousValue != null && previousValue.MOVIMENTOes.Contains(this)) { previousValue.MOVIMENTOes.Remove(this); } if (PROVEEDOR != null) { if (!PROVEEDOR.MOVIMENTOes.Contains(this)) { PROVEEDOR.MOVIMENTOes.Add(this); } if (UNID_PROVEEDOR_PROCEDENCIA != PROVEEDOR.UNID_PROVEEDOR) { UNID_PROVEEDOR_PROCEDENCIA = PROVEEDOR.UNID_PROVEEDOR; } } else if (!_settingFK) { UNID_PROVEEDOR_PROCEDENCIA = null; } }
private void FixupPROVEEDOR(PROVEEDOR previousValue) { if (previousValue != null && previousValue.FACTURAs.Contains(this)) { previousValue.FACTURAs.Remove(this); } if (PROVEEDOR != null) { if (!PROVEEDOR.FACTURAs.Contains(this)) { PROVEEDOR.FACTURAs.Add(this); } if (UNID_PROVEEDOR != PROVEEDOR.UNID_PROVEEDOR) { UNID_PROVEEDOR = PROVEEDOR.UNID_PROVEEDOR; } } else if (!_settingFK) { UNID_PROVEEDOR = null; } }