CD:-
DialogField
dfFromDate;
DialogField
dfToDate;
#DEFINE.CurrentVersion(1)
#LOCALMACRO.CurrentList
fromDate,
toDate
#ENDMACRO
public container
pack()
{
return
[#CurrentVersion, #CurrentList];
}
public boolean
unpack(container _packedClass)
{
boolean ret;
Integer version = RunBase::getVersion(_packedClass);
switch
(version)
{
case
#CurrentVersion :
[version, #CurrentList] = _packedClass;
ret
= true;
break;
default
:
ret = false;
}
return ret;
}
public Object
dialog(Object _dialog)
{
DialogRunbase dialog = _dialog;
;
dfFromDate =
dialog.addFieldValue(typeid(TransDate), fromDate, "From date");
dfToDate =
dialog.addFieldValue(typeid(TransDate), toDate, "To date");
return
dialog;
}
public boolean
getFromDialog()
{
;
fromDate =
dfFromDate.value();
toDate =
dfToDate.value();
return true;
}
No comments:
Post a Comment