Untitled
unknown
java
2 years ago
4.0 kB
9
Indexable
//========================================================================== // ASSECO CE a.s. (c) 2023 //========================================================================== usecases [email protected] { import [email protected]; import [email protected]; import [email protected]; import [email protected]; // header for WidgetSearch widget override GetHeader { variant WidgetSearch { impl = expression { string nametitle = [email protected]:GetUserDisplayName(); string roottitle = #StrWidgetSearch.GetAttributeString(cootx, #string, cooenv.usrenvlang); header = [roottitle, nametitle]; } } } menu usecase LogSearchMain on container { symbol = [email protected]:SymbolFind; variant Object { impl = application { object sys_object; expression { sys_object->[email protected]:UCLogSearchMainApp(sys_object, sys_view); } } } } usecase UCLogSearchMainApp(optional object sys_object, optional object sys_view) { variant Object { impl = application LogSearchMainApp { string searchTextLine; string resultCount; object myview; object myparent; expression { coort.Trace("Vyhladavaci formular", this); myview = sys_view; myparent = sys_object; sys_object.ActInitSearch(); ->DialogSearchInput; } dialog DialogSearchInput { form = WidgetSearchForm; target = sys_object; branch cancel leave { symbol = [email protected]:SymbolCancel; caption = [email protected]:CancelStr; [email protected]:ignorevalues = true; } branch search leave default { symbol = [email protected]:SymbolNext; caption = strVyhladat; expression { sys_object = cooobj; coort.Trace("###### Stlacenie Search ######", this); sys_object.LogSearch(sys_object.AttrStrSearchText); ->DialogSearchResult; } } } dialog DialogSearchResult { expression { } form = PageSearchResultAggr; target = sys_object; overlaysize = OVERLAYSIZE_MAXIMUM; autoload = true; autostore = true; catcherrors = true; branch cancel leave{ symbol = [email protected]:SymbolCancel; caption = [email protected]:CancelStr; [email protected]:ignorevalues = true; expression{ sys_object.AttrAggrResultLines = null; sys_object.AttrStrSearchText = null; } } branch zmenitHladanie leave{ caption = strZmenitHladanie; [email protected]:ignorevalues = true; expression{ sys_object.AttrAggrResultLines = null; coort.Trace("###### Zmenenie hladania ######"); ->DialogSearchInput; } } branch noveHladanie leave{ caption = strNoveHladanie; [email protected]:ignorevalues = true; expression{ sys_object.AttrStrSearchText = null; sys_object.AttrAggrResultLines = null; ->DialogSearchInput; } } branch prevziatVsetko leave{ caption = strPrevziatVsetko; [email protected]:ignorevalues = true; expression{ [email protected]:ActAddSelectedObject(this, myparent, myview, false); sys_object.AttrStrSearchText = null; sys_object.AttrAggrResultLines = null; } } } } } } }
Editor is loading...
Leave a Comment