I want to suppress some PO suggestions Generate PO using BPM BO.POSugg.Generate Method
However, BO.POSugg.Generate Method, the SugPoDtl row now has no data even though I have chosen the Pre method.
When PO generated from PO Suggestions, PO Suggestions will be deleted. Here I want to block PO Suggestions when marked in Checkbox02. Is there any solution to intervene when PO Suggestions generated PO?
BO.POSugg.Generate Method does not retrieve data lines when processed by the mothod
Switch to Customization of the Purchase Order Suggestion Entry screen(App.POSuggEntry.POSuggEntryForm)
usage of baseToolbarsManager
private void baseToolbarsManager_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs args)
{
if(args.Tool.Key=="GenerateTool")
{
DataView dView=grdList.DataSource as DataView;
DataTable _table=dView.ToTable();
foreach (DataRow r in _table.Rows)
{
DataRow editRow=null;
if(Convert.ToBoolean(r["Buy"])==true)
{
if (Convert.ToBoolean(r["CheckBox02"])==true && Convert.ToInt32(r["ReqNum"])>0)
{
throw new Ice.BLException("DMS-Customization: Req "+ Convert.ToInt32(r["ReqNum"]) +" PartNum: "+r["PartNum"]+" Close on SuggPO not create PO!\n Please Open Req On SuggPO!");
}
}
}
}
}
I’m not sure if there’s any other place to create a PO from a PO Sugg other than Generate from the New PO Suggestions screen.
Thank you very much! Have a good day!