I've got the couple of Jiwa standard reorder methods and a couple of custom ones I've developed.
Client wants a particular one to be the default when a new purchase order is created but I can't work out which one I can denote as default.
#region "BusinessLogicPlugin"
public class BusinessLogicPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogicPlugin
{
public override object InitializeLifetimeService()
{
// returning null here will prevent the lease manager
// from deleting the Object.
return null;
}
public void Setup(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic JiwaBusinessLogic, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
if(JiwaBusinessLogic is JiwaFinancials.Jiwa.JiwaPurchaseOrders.PurchaseOrder)
{
JiwaFinancials.Jiwa.JiwaPurchaseOrders.PurchaseOrder purchaseOrder = JiwaBusinessLogic as JiwaFinancials.Jiwa.JiwaPurchaseOrders.PurchaseOrder;
purchaseOrder.CreateEnd += delegate(object sender, EventArgs e)
{
purchaseOrder.SelectedReorderMethodKey = "Replenish to Minimum"; //this should match re-order method name from the re-order method plugin
if(purchaseOrder.Client != null)
{
JiwaFinancials.Jiwa.JiwaPurchaseOrdersUI.PurchaseOrders frmPurchaseOrders = purchaseOrder.Client as JiwaFinancials.Jiwa.JiwaPurchaseOrdersUI.PurchaseOrders;
frmPurchaseOrders.ReorderMethodsUltraComboEditor.Value = purchaseOrder.ReOrderMethods["Replenish to Minimum"]; //key should match with re-order method name from the re-order method plugin
}
};
}
}
}
#endregion
Return to Technical and or Programming
Users browsing this forum: No registered users and 14 guests