AppWindow.ReportNotification 方法 |
命名空间: XSharp.VO.SDK
1METHOD ReportNotification(oRQ) CLASS AppWindow 2 LOCAL oTB 3 LOCAL Reply 4 5 IF (oRQ:EventType == REPORTSERVERCLOSEEVENT) 6 oTB := TextBox{SELF,"You closed" + oRQ:ReportServer, "Should pending reports be attempted?"} 7 8 oTB:TYPE := BUTTONYESNO + BOXICONQUESTIONMARK 9 10 Reply := oTB:Show() 11 12 oTB:Axit() 13 14 IF (Reply == BOXREPLYNO) 15 RETURN FALSE 16 ENDIF // Reply was BOXREPLYYES 17 ENDIF 18 19 RETURN TRUE // De-queue any pending 20 // commands which can cause 21 // restart prompts