Close Form using x++ :
public void close()
{
FormRun
_FormRun;
super();
_FormRun
= element.args().caller();
if (_FormRun)
_FormRun.dataSource().research();
}
void clicked()
{
//super();
if(BOX::yesNo(strFmt("Are
you sure to create PO %1 ?", PurchTable.BITLocalPO),
DialogButton::No,"Create Purchase Order")
== DialogButton::Yes)
{
element.closeOk();
}
else
{
element.close();
super();
}
}
void
clicked()
{
super();
if (box::yesNo("Anda yakin untuk Batal
?", dialogButton::No, "Pembatalan") == dialogButton::Yes)
{
element.Batal();
}
}
if(exist)
{
if(BOX::yesNo("Create item PR to
PO?", DialogButton::No,"Create item PR")== DialogButton::Yes)
{
this.createItemPO();
}
}
0 comments:
Post a Comment