// Kingdee.K3.SCM.Purchase.Business.PlugIn.PurchaseOrderEdit
private void OnInitOptionalTargetOrgIds(ShowConvertOpFormEventArgs e)
{
List<long> settleOrgIDList = this.GetSettleOrgIDList();
e.OptionalTargetOrgIds.Add("CN_PAYAPPLY", settleOrgIDList);
List<long> list = new List<long>();
foreach (long current in settleOrgIDList)
{
object[] orgByBizRelationship = OrganizationServiceHelper.GetOrgByBizRelationship(base.Context, current, 108L, true, false);
list.AddRange((from o in orgByBizRelationship
select Convert.ToInt64(o)).ToList<long>());
}
if (list != null && list.Count > 0)
{
e.OptionalTargetOrgIds["CN_PAYAPPLY"].AddRange(list);
}
}