Caption using x++ :
public void init()
{
super();
TaxPeriodCtrl.dateValue(systemDateGet());
PostDateCtrl.dateValue(systemDateGet());
SourceCtrl.selection(pjcustomallnone::All);
CurrencyCtrl.text(KRE_ID_Tax_Parameters::find().ID_Tax_Currencycode);
element.requery();
element.updateAllPostCriteria();
TaxID_Form = new TaxID_Form();
if (element.args().parm() == "PPH")
{
element.design().caption("Adjustment PPH");
Identification.allowEdit(true);
VendTrans.visible(true);
CustTrans.visible(true);
KRE_ID_Tax_VAT_FakturPajakReserve.visible(true);
}
else if (element.args().parmEnum() == KRE_ID_Tax_VATSource::Outgoing)
{
if (element.args().parm() =='free')
element.design().caption("Free Tax");
else
element.design().caption("Outgoing Tax");
VendTrans.visible(false);
CustTrans.visible(true);
KRE_ID_Tax_VAT_FakturPajakReserve.visible(true);
}
else
{
element.design().caption("Incoming Tax");
Identification.allowEdit(true);
VendTrans.visible(true);
CustTrans.visible(false);
KRE_ID_Tax_VAT_FakturPajakReserve.visible(true);
}
if (element.args().menuItemType() == MenuItemType::Display && (element.args().menuItemName() == menuitemDisplayStr(KRE_ID_TaxIncomingEdit)))
{
element.design().caption("Incoming Tax");
}
else
{
if (element.args().menuItemType() == MenuItemType::Display && (element.args().menuItemName() == menuitemDisplayStr(KRE_ID_TaxoutgoingEdit)))
{
element.design().caption("Outgoing Tax");
}
else
{
if(element.args().menuItemType() == MenuItemType::Display && (element.args().menuItemName() == menuitemDisplayStr(KRE_ID_TaxPPHEdit)))
{
element.design().caption("Adjustment PPH");
Detail_M_PPN.label("PPh");
Detail_M_PPNRp.label("PPh(Rp)");
}
}
}
}
public void init()
{
super();
TaxPeriodCtrl.dateValue(systemDateGet());
PostDateCtrl.dateValue(systemDateGet());
SourceCtrl.selection(pjcustomallnone::All);
CurrencyCtrl.text(KRE_ID_Tax_Parameters::find().ID_Tax_Currencycode);
element.requery();
element.updateAllPostCriteria();
TaxID_Form = new TaxID_Form();
if (element.args().parm() == "PPH")
{
element.design().caption("Adjustment PPH");
Identification.allowEdit(true);
VendTrans.visible(true);
CustTrans.visible(true);
KRE_ID_Tax_VAT_FakturPajakReserve.visible(true);
}
else if (element.args().parmEnum() == KRE_ID_Tax_VATSource::Outgoing)
{
if (element.args().parm() =='free')
element.design().caption("Free Tax");
else
element.design().caption("Outgoing Tax");
VendTrans.visible(false);
CustTrans.visible(true);
KRE_ID_Tax_VAT_FakturPajakReserve.visible(true);
}
else
{
element.design().caption("Incoming Tax");
Identification.allowEdit(true);
VendTrans.visible(true);
CustTrans.visible(false);
KRE_ID_Tax_VAT_FakturPajakReserve.visible(true);
}
if (element.args().menuItemType() == MenuItemType::Display && (element.args().menuItemName() == menuitemDisplayStr(KRE_ID_TaxIncomingEdit)))
{
element.design().caption("Incoming Tax");
}
else
{
if (element.args().menuItemType() == MenuItemType::Display && (element.args().menuItemName() == menuitemDisplayStr(KRE_ID_TaxoutgoingEdit)))
{
element.design().caption("Outgoing Tax");
}
else
{
if(element.args().menuItemType() == MenuItemType::Display && (element.args().menuItemName() == menuitemDisplayStr(KRE_ID_TaxPPHEdit)))
{
element.design().caption("Adjustment PPH");
Detail_M_PPN.label("PPh");
Detail_M_PPNRp.label("PPh(Rp)");
}
}
}
}
0 comments:
Post a Comment