Example 1:
private void dfsCWarehouse_WindowActions(object sender, WindowActionsEventArgs e)
{
#region Actions
switch (e.ActionType)
{
case Ifs.Fnd.ApplicationForms.Const.PM_DataItemZoom:
dfsCWarehouse_ONPM_DataItemZoom(sender, e);
break;
}
#endregion
}
private void dfsCWarehouse_ONPM_DataItemZoom(object sender, WindowActionsEventArgs e)
{
#region Local Variables
SalArray<SalString> sItemNames = new SalArray<SalString>();
SalArray<SalWindowHandle> hWndItems = new SalArray<SalWindowHandle>();
#endregion
#region Actions
e.Handled = true;
if (Sys.wParam == Ifs.Fnd.ApplicationForms.Const.METHOD_Inquire)
{
if (dfsContract.Text == "")
{
e.Return = Sal.SendClassMessage(Ifs.Fnd.ApplicationForms.Const.PM_DataItemZoom, Sys.wParam, Sys.lParam);
}
else
{
e.Return = true;
}
}
else if (Sys.wParam == Ifs.Fnd.ApplicationForms.Const.METHOD_Execute)
{
sItemNames[0] = "CONTRACT";
hWndItems[0] = this.dfsContract;
Ifs.Fnd.ApplicationForms.Var.DataTransfer.Init("CONTRACT", this, sItemNames, hWndItems);
Ifs.Fnd.ApplicationForms.Var.DataTransfer.TypeSet("ZOOM");
Ifs.Fnd.ApplicationForms.Var.DataTransfer.i_sDestination = "WAREHOUSE";
SessionNavigate(Pal.GetActiveInstanceName("tbwWarehouses"));
e.Return = true;
}
#endregion
}
Example 2:
private void tableWindow_colsBucketId_WindowActions(object sender, WindowActionsEventArgs e)
{
#region Actions
switch (e.ActionType)
{
case Ifs.Fnd.ApplicationForms.Const.PM_DataItemZoom:
this.tableWindow_colsBucketId_OnPM_DataItemZoom(sender, e);
break;
}
#endregion
}
private void tableWindow_colsBucketId_OnPM_DataItemZoom(object sender, WindowActionsEventArgs e)
{
#region Local Variables
SalArray<SalString> sItemNames = new SalArray<SalString>();
SalArray<SalWindowHandle> hWndItems = new SalArray<SalWindowHandle>();
#endregion
#region Actions
e.Handled = true;
if (Sys.wParam == Ifs.Fnd.ApplicationForms.Const.METHOD_Execute)
{
sItemNames[0] = "BUCKET_ID";
hWndItems[0] = this.colsBucketId;
Ifs.Fnd.ApplicationForms.Var.DataTransfer.Init(Pal.GetActiveInstanceName("tbwCCustPurchOrdBucket"), this, sItemNames, hWndItems);
SessionNavigate(Pal.GetActiveInstanceName("tbwCCustPurchOrdBucket"));
e.Return = true;
}
else
{
e.Return = true;
}
#endregion
}
Comments