Created
February 21, 2017 20:51
-
-
Save chadsten/d20aff8c888562c157b12f61eaa7bf93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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