diff --git a/Robot/Robot.py b/Robot/Robot.py index e6e1c8d1..f3e24398 100644 --- a/Robot/Robot.py +++ b/Robot/Robot.py @@ -95,7 +95,7 @@ def ActivityRun(inActivitySpecificationDict): #Подключить модуль для вызова lModule=importlib.import_module(inActivitySpecificationDict["ModuleName"]) #Найти функцию - lFunction=getattr(lModule,inActivitySpecificationDict["FunctionName"]) + lFunction=getattr(lModule,inActivitySpecificationDict["ActivityName"]) #Выполнить вызов и записать результат lResponseObject["Result"]=lFunction(*lArgumentList,**lArgumentDict) except Exception as e: diff --git a/Robot/Window.py b/Robot/Window.py new file mode 100644 index 00000000..8476bba7 --- /dev/null +++ b/Robot/Window.py @@ -0,0 +1,13 @@ +import ctypes +#################################### +#Info: Window module of the Robot app (OpenRPA - Robot) +#################################### +# WIndow Module - Show information dialog messages to user by the modal windows + +################ +###DialogYesNo +################ +#return 1 - Yes; 2 - No +def DialogYesNo(inTitle,inBody): + lResult = ctypes.windll.user32.MessageBoxW(0, inBody, inTitle, 1) + return lResult \ No newline at end of file diff --git a/Studio/Web/Index.xhtml b/Studio/Web/Index.xhtml index 5494bd2b..f853d15c 100644 --- a/Studio/Web/Index.xhtml +++ b/Studio/Web/Index.xhtml @@ -12,7 +12,14 @@ var mGlobal={} $(document) .ready(function() { - + ///////////////////////////////////////////////////////////////// + ///ПАРАМЕТРЫ + ///////////////////////////////////////////////////////////////// + mGlobal.Settings={} + mGlobal.Settings.mUIOTreeHeight=450 + + + mGlobal.GUIElement={} mGlobal.GenerateUniqueID=function(inPrefix="ID") { return inPrefix+Math.round(Math.random()*1000)+"-"+Math.round(Math.random()*10000)+"-"+Math.round(Math.random()*1000) @@ -32,6 +39,20 @@ document.execCommand('copy'); document.body.removeChild(el); }; + /////////////////////////// + ///Функция нормализации текстовой строки для HTML + /////////////////////////// + mGlobal.Tools={} + mGlobal.Tools.HTMLNormalizeStr=function(inString) + { + lResult=inString; + lResult=lResult.replace(/&/g,"&"); + lResult=lResult.replace(//g,">"); + lResult=lResult.replace(/"/g,"""); + lResult=lResult.replace(/'/g,"'"); + return lResult; + } ///Функция перезапуска студии mGlobal.Actions.fRestartStudioServer= function() { @@ -137,9 +158,11 @@ } ///Функция визуализации дерева - mGlobal.ElementTree.fRender = function(inElementsTreeDataArray) + mGlobal.ElementTree.fRender = function(inElementsTreeDataArray,inBackendString="-") { - var lHTMLList='