Skip to content

Instantly share code, notes, and snippets.

@chadsten
Created February 21, 2017 20:51
Show Gist options
  • Save chadsten/d20aff8c888562c157b12f61eaa7bf93 to your computer and use it in GitHub Desktop.
Save chadsten/d20aff8c888562c157b12f61eaa7bf93 to your computer and use it in GitHub Desktop.
Erp.Tables.PartPlant PartPlant;
foreach (var ttPart_Row in (from ttPart_Iter in ttPart select ttPart_Iter)) {
this.PublishInfoMessage("Part foreach", Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "Part", "Duplicate");
foreach (var PartPlant_Row in (from ttPartPlant_Iter in Db.PartPlant where ttPart_Row.Company == ttPartPlant_Iter.Company && ttPart_Row.PartNum == ttPartPlant_Iter.PartNum select ttPartPlant_Iter))
{
this.PublishInfoMessage("PartPlant foreach", Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "Part", "Duplicate");
if (PartPlant_Row != null)
{
this.PublishInfoMessage("Not Null!", Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "Part", "Duplicate");
PartPlant_Row.BuyToOrder = false;
PartPlant_Row.MinimumQty = '0';
PartPlant_Row.MaximumQty = '0';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment