Untitled
unknown
java
2 years ago
4.0 kB
8
Indexable
//==========================================================================
// ASSECO CE a.s. (c) 2023
//==========================================================================
usecases SKEVENTAUDIT@103.510
{
import FSCVAPP@1.1001;
import FSCVENV@1.1001;
import COOSYSTEM@1.1;
import SKELASTIC@103.510;
// header for WidgetSearch widget
override GetHeader {
variant WidgetSearch {
impl = expression {
string nametitle = coouser.FSCVPORT@1.1001:GetUserDisplayName();
string roottitle = #StrWidgetSearch.GetAttributeString(cootx, #string, cooenv.usrenvlang);
header = [roottitle, nametitle];
}
}
}
menu usecase LogSearchMain on container {
symbol = COODESK@1.1:SymbolFind;
variant Object {
impl = application {
object sys_object;
expression {
sys_object->SKEVENTAUDIT@103.510: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 = COODESK@1.1:SymbolCancel;
caption = COOELAK@1.1001:CancelStr;
FSCVAPP@1.1001:ignorevalues = true;
}
branch search leave default {
symbol = COODESK@1.1: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 = COODESK@1.1:SymbolCancel;
caption = COOELAK@1.1001:CancelStr;
FSCVAPP@1.1001:ignorevalues = true;
expression{
sys_object.AttrAggrResultLines = null;
sys_object.AttrStrSearchText = null;
}
}
branch zmenitHladanie leave{
caption = strZmenitHladanie;
FSCVAPP@1.1001:ignorevalues = true;
expression{
sys_object.AttrAggrResultLines = null;
coort.Trace("###### Zmenenie hladania ######");
->DialogSearchInput;
}
}
branch noveHladanie leave{
caption = strNoveHladanie;
FSCVAPP@1.1001:ignorevalues = true;
expression{
sys_object.AttrStrSearchText = null;
sys_object.AttrAggrResultLines = null;
->DialogSearchInput;
}
}
branch prevziatVsetko leave{
caption = strPrevziatVsetko;
FSCVAPP@1.1001:ignorevalues = true;
expression{
cooobj.SKELASTIC@103.510:ActAddSelectedObject(this, myparent, myview, false);
sys_object.AttrStrSearchText = null;
sys_object.AttrAggrResultLines = null;
}
}
}
}
}
}
}
Editor is loading...
Leave a Comment