วันศุกร์ที่ 27 เมษายน พ.ศ. 2555

Filter Date Range in Report


Class declaration
public class ReportRun extends ObjectRun
{
TransDate    fromDate;
TransDate    toDate;
dialogField  dialogFromDate;
dialogField  dialogToDate;
}


fatch
public boolean fetch()
{
;
while select sharecapital where (sharecapital.DateofAdmn >= fromDate && sharecapital.DateofAdmn <= toDate)
return true;
}

dialog
public Object dialog(Object _dialog)
{
    DialogRunbase dialog = _dialog;
    ;
    dialog.addGroup("@SYS40");
    dialogFromDate  = dialog.addFieldValue(typeid(TransDate), fromDate, "@SYS939", "@SYS26930");
    dialogToDate    = dialog.addFieldValue(typeid(TransDate), toDate, "@SYS15867", "@SYS26929");
    return dialog;
}


getfromdialog
public boolean getFromDialog()
{
    ;
    fromDate  = dialogFromDate.value();
    toDate    = dialogToDate.value();
    return true;
}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น