js/utils.js.details
author Iván Perdomo <ivan.perdomo@openbravo.com>
Tue, 03 Nov 2009 10:12:12 +0100
changeset 57 5befd9d63d48
parent 36 a325c22a5162
child 59 d4ae029642eb
permissions -rw-r--r--
Updated JS details files
ivan@0
     1
VAR: baseFrameServlet
ivan@0
     2
VAR: gColorSelected
ivan@0
     3
VAR: gWhiteColor
ivan@0
     4
VAR: arrGeneralChange
ivan@0
     5
VAR: dateFormat
ivan@0
     6
VAR: defaultDateFormat
ivan@57
     7
VAR: daysOfMonth
ivan@0
     8
VAR: gByDefaultAction
ivan@0
     9
VAR: gSubmitted
ivan@0
    10
VAR: keyArray
ivan@0
    11
VAR: gWaitingCallOut
ivan@0
    12
VAR: isKeyboardLocked
ivan@0
    13
VAR: isPopupLoadingWindowLoaded
ivan@0
    14
VAR: isCtrlPressed
ivan@0
    15
VAR: isAltPressed
ivan@0
    16
VAR: isTabBlocked
ivan@0
    17
VAR: pressedKeyCode
ivan@0
    18
VAR: isInputFile
ivan@0
    19
VAR: isPageLoading
ivan@0
    20
VAR: isUserChanges
ivan@0
    21
VAR: isTabClick
ivan@0
    22
VAR: isButtonClick
ivan@0
    23
VAR: calloutProcessedObj
ivan@57
    24
VAR: debugMode
ivan@57
    25
FUNCTION: isDebugEnabled [ ]
ivan@0
    26
FUNCTION: getCurrentRevision [ number ]
ivan@0
    27
FUNCTION: revisionControl [ number current ]
ivan@35
    28
FUNCTION: getObjAttribute [ obj attribute attribute_text ]
ivan@35
    29
FUNCTION: setObjAttribute [ obj attribute attribute_text ]
ivan@0
    30
FUNCTION: setFocusFirstControl [ form field found total i ]
ivan@0
    31
FUNCTION: clearForm [ form total i ]
ivan@0
    32
FUNCTION: confirmAction [ action ]
ivan@0
    33
FUNCTION: submitFormGetParams [ Command action frm params i ]
ivan@0
    34
FUNCTION: getParamsScript [ form script total i ]
ivan@0
    35
FUNCTION: submitForm [ field value form bolOneFormSubmission isCallOut frameName ]
ivan@0
    36
FUNCTION: reloadFunction [ text ]
ivan@0
    37
FUNCTION: setChangedField [ field form ]
ivan@0
    38
FUNCTION: logClick [ hiddenInput autosave ]
ivan@57
    39
FUNCTION: reloadOpener [ f buttonRefresh ]
ivan@33
    40
FUNCTION: removeOnUnload [ ]
ivan@57
    41
FUNCTION: removeOnUnloadHandler [ form f ]
ivan@16
    42
FUNCTION: checkForChanges [ f form autosave promptConfirmation hasUserChanges autoSaveFlag ]
ivan@0
    43
FUNCTION: continueUserAction [ requestURL continueAction ]
ivan@0
    44
FUNCTION: sendDirectLink [ form columnName parentKey url keyId tableId newTarget bolCheckChanges frmDebug action autosave strFunction ]
ivan@0
    45
FUNCTION: dispatchEventChange [ target ]
ivan@0
    46
FUNCTION: depurar_validate_wrapper [ action form value ]
ivan@0
    47
FUNCTION: submitCommandForm [ action bolValidation form newAction newTarget bolOneFormSubmission bolCheckChanges isCallOut controlEvt evt target strFunction ]
ivan@0
    48
FUNCTION: submitCommandFormParameter [ action field value bolValidation form formAction newTarget bolOneFormSubmission bolCheckChanges isCallOut controlEvt evt target strFunction ]
ivan@33
    49
FUNCTION: validateNumber [ strValue isFloatAllowed isNegativeAllowed isComma isNegative i decSeparator groupSeparator total ]
ivan@0
    50
FUNCTION: validateNumberField [ field isFloatAllowed isNegativeAllowed ]
ivan@0
    51
FUNCTION: getArrayValue [ data name defaultValue total i ]
ivan@0
    52
FUNCTION: addArrayValue [ data name value isUrlParameter total i ]
ivan@0
    53
FUNCTION: addUrlParameters [ data total text i ]
ivan@0
    54
FUNCTION: openPopUp [ url _name height width top left checkChanges target doSubmit closeControl parameters hasLoading adds isPopup objFrame urlLoading winPopUp ]
ivan@0
    55
FUNCTION: synchronizedSubmitCommandForm [ action bolValidation form newAction newTarget bolOneFormSubmission bolCheckChanges isCallOut controlEvt evt ]
ivan@0
    56
FUNCTION: setPopupLoadingWindowLoaded [ value ]
ivan@0
    57
FUNCTION: openNewLink [ url _name height width top left checkChanges target doSubmit closeControl parameters ]
ivan@0
    58
FUNCTION: openNewBrowser [ url _name height width top left ]
ivan@0
    59
FUNCTION: openExcel [ url _name checkChanges ]
ivan@0
    60
FUNCTION: openPDF [ url _name checkChanges ]
ivan@0
    61
FUNCTION: openPDFFiltered [ url _name checkChanges ]
ivan@0
    62
FUNCTION: openPopUpDefaultSize [ url _name height width closeControl showstatus ]
ivan@0
    63
FUNCTION: openPDFSession [ strPage strDirectPrinting strHiddenKey strHiddenValue bolCheckChanges direct ]
ivan@0
    64
FUNCTION: openSearchWindow [ url _name tabId windowName windowId checkChanges parameters ]
ivan@0
    65
FUNCTION: openHelp [ windowId url _name checkChanges height width windowType windowName parameters ]
ivan@0
    66
FUNCTION: openServletNewWindow [ Command bolValidation url _name processId checkChanges height width resizable hasStatus closeControl hasLoading parameters ]
ivan@0
    67
FUNCTION: openLink [ url _name height width ]
ivan@0
    68
FUNCTION: editHelp [ url type id value height width parameters ]
ivan@0
    69
FUNCTION: keyPress [ keyCode tecla ]
ivan@0
    70
FUNCTION: byDefaultAction [ action ]
ivan@57
    71
VAR: previousOnKeyPress
ivan@0
    72
FUNCTION: stopKeyPressEvent [ evt ]
ivan@57
    73
FUNCTION: stopKeyPressPropagation [ evt ]
ivan@0
    74
FUNCTION: startKeyPressEvent [ evt ]
ivan@0
    75
FUNCTION: keyArrayItem [ key evalfunc field auxKey propagateKey event ]
ivan@0
    76
FUNCTION: obtainKeyCode [ code ]
ivan@0
    77
FUNCTION: keyControl [ pushedKey thereIsShortcut keyCode keyTarget total i evalfuncTrl ]
ivan@0
    78
FUNCTION: putFocusOnMenu [ ]
ivan@0
    79
FUNCTION: putFocusOnWindow [ ]
ivan@0
    80
FUNCTION: enableShortcuts [ type ]
ivan@0
    81
FUNCTION: lockKeyboard [ ]
ivan@0
    82
FUNCTION: unlockKeyboard [ ]
ivan@0
    83
FUNCTION: setBrowserAutoComplete [ state i ]
ivan@0
    84
FUNCTION: isIdenticalField [ arrayName actualName ]
ivan@0
    85
FUNCTION: replaceEventString [ eventJS inputname arrayName endname ]
ivan@0
    86
FUNCTION: layer [ node text isId isAppend range domfrag ]
ivan@0
    87
FUNCTION: readLayer [ node isId ]
ivan@0
    88
FUNCTION: getChildText [ nodo ]
ivan@0
    89
FUNCTION: getObjChild [ obj ]
ivan@0
    90
FUNCTION: fillCombo [ combo dataArray bolSelected withoutBlankOption i value total j ]
ivan@0
    91
FUNCTION: selectDefaultValueFromArray [ dataArray bolSelected value total j ]
ivan@0
    92
FUNCTION: changeOrderBy [ sourceList j text value ]
ivan@0
    93
FUNCTION: addListOrderBy [ sourceList destinationList withPrefix selectAll sourceListLength i j text value ]
ivan@0
    94
FUNCTION: addList [ sourceList destinationList selectAll sourceListLength i j text value ]
ivan@0
    95
FUNCTION: moveElementInList [ list incr i text value total ]
ivan@0
    96
FUNCTION: valorArray [ dataArray searchKey valueIndex ]
ivan@0
    97
FUNCTION: searchArray [ dataArray searchKey valueIndex total i ]
ivan@0
    98
FUNCTION: radioValue [ radio total i ]
ivan@0
    99
FUNCTION: markAll [ chk bolMark total i ]
ivan@0
   100
FUNCTION: changeComboData [ combo dataArray key withBlankOption i n total ]
ivan@0
   101
FUNCTION: clearList [ field i ]
ivan@0
   102
FUNCTION: clearSelectedElements [ field i ]
ivan@0
   103
FUNCTION: comboContains [ combo searchKey total i ]
ivan@0
   104
FUNCTION: addElementsToList [ destList arrayNewValues i total j ]
ivan@0
   105
FUNCTION: markCheckedAllElements [ field total i ]
ivan@0
   106
FUNCTION: handleFieldMaxLength [ field maxLength evt ]
ivan@0
   107
FUNCTION: selectCombo [ combo key total i ]
ivan@0
   108
FUNCTION: updateMenuIcon [ id frame frameset ]
ivan@0
   109
FUNCTION: menuShowHide [ id ]
ivan@0
   110
FUNCTION: menuShow [ id frame frameset ]
ivan@0
   111
FUNCTION: menuHide [ id frame frameset ]
ivan@0
   112
FUNCTION: menuExpand [ ]
ivan@0
   113
FUNCTION: menuCollapse [ ]
ivan@0
   114
FUNCTION: menuExpandCollapse [ menuExpandCollapse_status ]
ivan@0
   115
FUNCTION: getMenuExpandCollapse_status [ menuExpandCollapse_status ]
ivan@0
   116
FUNCTION: menuUserOptions [ ]
ivan@0
   117
FUNCTION: menuQuit [ ]
ivan@0
   118
FUNCTION: menuAlerts [ ]
ivan@0
   119
FUNCTION: isVisibleElement [ obj appWindow parentElement ]
ivan@0
   120
FUNCTION: executeWindowButton [ id focus appWindow ]
ivan@0
   121
FUNCTION: executeMenuButton [ id appWindow ]
ivan@0
   122
FUNCTION: getAppUrl [ url http nohttp urlItem appUrl i ]
ivan@0
   123
FUNCTION: progressiveHideMenu [ id topSize newSize grow frame object sizes ]
ivan@0
   124
FUNCTION: changeClass [ id class1 class2 forced element ]
ivan@0
   125
FUNCTION: changeReadOnly [ id forced element ]
ivan@0
   126
FUNCTION: getReference [ id ]
ivan@0
   127
FUNCTION: getStyle [ id ref ]
ivan@0
   128
FUNCTION: idName [ name ]
ivan@0
   129
FUNCTION: findElementPosition [ form name total i ]
ivan@0
   130
FUNCTION: deselectActual [ form field i ]
ivan@0
   131
FUNCTION: findFirstElement [ form n total i ]
ivan@0
   132
FUNCTION: findLastElement [ form n i ]
ivan@0
   133
FUNCTION: nextElement [ form field i ]
ivan@0
   134
FUNCTION: previousElement [ form field i minor ]
ivan@0
   135
FUNCTION: firstElement [ form field i ]
ivan@0
   136
FUNCTION: lastElement [ form field i ]
ivan@0
   137
FUNCTION: recordSelectExplicit [ name highlight obj ]
ivan@0
   138
FUNCTION: selectRadioButton [ radio Value total i ]
ivan@0
   139
FUNCTION: selectCheckbox [ obj Value ]
ivan@33
   140
FUNCTION: formElementValue [ form ElementName Value bolReadOnly onChangeFunction obj total index hasMultiSelect selectedOption i decSeparator groupSeparator groupInterval outputformat formattedValue search first end ]
ivan@33
   141
FUNCTION: getFrame [ frameName op ]
ivan@0
   142
FUNCTION: setClass [ id selectClass obj ]
ivan@0
   143
FUNCTION: getObjectClass [ id previousClass obj ]
ivan@0
   144
FUNCTION: formElementEvent [ form ElementName calloutName isReload obj bolReadOnly onchange_combo onchange_combo2 ]
ivan@0
   145
FUNCTION: fillElements [ frm name callout ]
ivan@0
   146
FUNCTION: setGWaitingCallOut [ state ]
ivan@0
   147
FUNCTION: fillElementsFromArray [ arrElements calloutName form total x n obj name callout arrDataNew i ]
ivan@0
   148
FUNCTION: inputValueForms [ name field result length fieldsCount total i ]
ivan@0
   149
FUNCTION: setFocus [ field ]
ivan@0
   150
FUNCTION: inputValue [ field total i ]
ivan@0
   151
FUNCTION: setInputValue [ field myvalue obj total i ]
ivan@0
   152
FUNCTION: displayLogicElement [ id display obj ]
ivan@0
   153
FUNCTION: readOnlyLogicElement [ id readonly onchange_combo newOnChange_combo ]
ivan@0
   154
FUNCTION: autoCompleteNumber [ obj isFloatAllowed isNegativeAllowed evt number point ]
ivan@0
   155
FUNCTION: setPageLoading [ status ]
ivan@0
   156
FUNCTION: logChanges [ field ]
ivan@0
   157
FUNCTION: changeToEditingMode [ special field elementToCheck ]
ivan@0
   158
FUNCTION: checkIE7DelSuprKeys [ ]
ivan@0
   159
FUNCTION: checkContextMenu [ elementToCheck ]
ivan@0
   160
FUNCTION: checkFieldChange [ elementToCheck beforeShortcutValue afterShortcutValue ]
ivan@0
   161
FUNCTION: windowUndo [ form ]
ivan@0
   162
FUNCTION: processingPopUp [ complementosNS4 strHeight strWidth strTop strLeft complementos winPopUp ]
ivan@0
   163
FUNCTION: round [ number X ]
ivan@0
   164
FUNCTION: ReplaceText [ text replaceWhat replaceWith i j partial ]
ivan@0
   165
FUNCTION: updateOnChange [ field lastChanged ]
ivan@0
   166
FUNCTION: xx [ ]
ivan@0
   167
FUNCTION: selected [ cal date ]
ivan@0
   168
FUNCTION: closeHandler [ cal ]
ivan@0
   169
FUNCTION: getDateFormat [ str_format format ]
ivan@0
   170
FUNCTION: showCalendar [ id value debug format showsTime showsOtherMonths el cal ]
ivan@0
   171
FUNCTION: datecmp [ date1 date2 fmt mydate1 mydate2 ]
ivan@0
   172
FUNCTION: checkFormat [ formatType ]
ivan@0
   173
FUNCTION: getSeparators [ format result pos last i ]
ivan@0
   174
FUNCTION: isInArray [ obj text total i ]
ivan@0
   175
FUNCTION: about [ complementosNS4 strHeight strWidth strTop strLeft complementos winPopUp ]
ivan@0
   176
FUNCTION: buttonEvent [ event obj ]
ivan@0
   177
FUNCTION: goToPreviousPage [ ]
ivan@0
   178
FUNCTION: resizeArea [ isOnResize mnu mleft mleftSeparator mright mtop mtopToolbar mtopTabs mbottombut mbottom body h w name mnuWidth mnuHeight mbottomButtons ]
ivan@0
   179
FUNCTION: resizeAreaHelp [ mnu mnuIndex mTopSeparator mTopNavigation body h w name mnuHeight ]
ivan@0
   180
FUNCTION: resizeAreaUserOps [ mnu mnuIndex mTopSeparator mVerSeparator mTopNavigation body h w name ]
ivan@0
   181
FUNCTION: resizeAreaInfo [ isOnResize table_header client_top client_middle client_bottom body h w name ]
ivan@0
   182
FUNCTION: resizeAreaCreateFrom [ isOnResize table_header client_messagebox client_top client_middle client_bottom body h w name client_middleWidth client_middleHeight ]
ivan@0
   183
FUNCTION: resizeAreaInstallationHistoryGrid [ isOnResize client client_top installationHistoryGrid name ]
ivan@0
   184
FUNCTION: resizePopup [ mnu table_header body h w name mnuHeight mnuWidth ]
ivan@0
   185
FUNCTION: calculateMsgBoxWidth [ client_width msgbox_table ]
ivan@0
   186
FUNCTION: changeAuditStatus [ paramXMLReq ]
ivan@0
   187
FUNCTION: changeAuditStatusRelation [ paramXMLReq ]
ivan@0
   188
FUNCTION: changeAuditIcon [ newStatus ]
ivan@0
   189
FUNCTION: changeAuditIconTitle [ paramXMLParticular XMLHttpRequestObj obj status ]
ivan@0
   190
FUNCTION: goToDivAnchor [ div elementId ]
ivan@33
   191
FUNCTION: getGlobalDecSeparator [ m ]
ivan@33
   192
FUNCTION: getGlobalGroupSeparator [ m ]
ivan@33
   193
FUNCTION: getGlobalGroupInterval [ m ]
ivan@33
   194
FUNCTION: isJavaMask [ isJavaMask ]
ivan@33
   195
FUNCTION: getDefaultMaskNumeric [ m maskNumeric_default ]
ivan@33
   196
FUNCTION: getInputNumberMask [ obj outputformat ]
ivan@33
   197
FUNCTION: formatNameToMask [ formatName maskNumeric decSeparator groupSeparator F ]
ivan@33
   198
FUNCTION: focusNumberInput [ obj maskNumeric decSeparator groupSeparator groupInterval oldCaretPosition newCaretPosition number isValid plainNumber ]
ivan@33
   199
FUNCTION: returnNewCaretPosition [ obj oldCaretPosition groupSeparator newCaretPosition i ]
ivan@33
   200
FUNCTION: returnPlainNumber [ number decSeparator groupSeparator plainNumber groupRegExp numberSign ]
ivan@33
   201
FUNCTION: returnFormattedToCalc [ number decSeparator groupSeparator calcNumber ]
ivan@33
   202
FUNCTION: returnCalcToFormatted [ number maskNumeric decSeparator groupSeparator groupInterval formattedNumber ]
ivan@33
   203
FUNCTION: returnMaskChange [ maskNumeric decSeparator_old groupSeparator_old decSeparator_new groupSeparator_new realMask i ]
ivan@33
   204
FUNCTION: blurNumberInput [ obj maskNumeric decSeparator groupSeparator groupInterval number isValid formattedNumber ]
ivan@33
   205
FUNCTION: numberInputEvent [ command obj evt ]
ivan@33
   206
FUNCTION: updateNumberMiniMB [ obj isValid miniMessageBox_invalid isRequired isMissing miniMessageBox_missing ]
ivan@33
   207
FUNCTION: returnFormattedNumber [ number maskNumeric decSeparator groupSeparator groupInterval fixRegExp maskLength decMaskPosition intMask decMask fixRegExp_1 fixRegExp_2 numberSign formattedNumber numberLength decPosition intNumber decNumber decNumber_temp i isGroup groupRegExp intNumber_temp diff groupCounter ]
ivan@33
   208
FUNCTION: checkNumber [ number maskNumeric decSeparator groupSeparator groupInterval bolNegative bolDecimal checkPattern checkRegExp ]
ivan@33
   209
FUNCTION: roundNumber [ num dec result ]
ivan@33
   210
FUNCTION: formattedNumberOp [ number1 operator number2 result_maskNumeric decSeparator groupSeparator groupInterval result ]
ivan@33
   211
FUNCTION: reverseString [ text reverseText i ]
ivan@33
   212
FUNCTION: CaretPosition [ start end ]
ivan@33
   213
FUNCTION: getCaretPosition [ oField oCaretPos oSel selectionLength ]
ivan@33
   214
FUNCTION: setSelectionRange [ obj selectionStart selectionEnd range ]
ivan@33
   215
FUNCTION: setCaretToEnd [ obj ]
ivan@33
   216
FUNCTION: setCaretToBegin [ obj ]
ivan@33
   217
FUNCTION: setCaretToPos [ obj pos ]
ivan@33
   218
FUNCTION: manageDecPoint [ obj decSeparator evt caretPosition keyCode ]
ivan@33
   219
FUNCTION: replaceAt [ string what ini end temp newString ]
ivan@0
   220
VAR: arrTeclas
ivan@0
   221
FUNCTION: Teclas [ tecla evento campo teclaAuxiliar ]
ivan@0
   222
FUNCTION: controlTecla [ CodigoTecla tecla target total i eventoTrl ]
ivan@0
   223
VAR: gAUXILIAR
ivan@0
   224
FUNCTION: limpiar [ form ]
ivan@0
   225
FUNCTION: esNumero [ strValue isFloatAllowed isNegativeAllowed ]
ivan@0
   226
FUNCTION: campoNumerico [ field isFloatAllowed isNegativeAllowed ]
ivan@0
   227
FUNCTION: abrirNuevoBrowser [ url _name height width top left ]
ivan@0
   228
FUNCTION: abrirExcel [ url _name checkChanges ]
ivan@0
   229
FUNCTION: abrirPDF [ url _name checkChanges ]
ivan@0
   230
FUNCTION: abrirPDFFiltered [ url _name checkChanges ]
ivan@0
   231
FUNCTION: abrirPopUp [ url _name height width closeControl showstatus ]
ivan@0
   232
FUNCTION: abrirPDFSession [ strPage strDirectPrinting strHiddenKey strHiddenValue bolCheckChanges ]
ivan@0
   233
FUNCTION: abrirBusqueda [ url _name tabId windowName windowId checkChanges ]
ivan@0
   234
FUNCTION: auto_complete_number [ obj isFloatAllowed isNegativeAllowed evt ]
ivan@0
   235
FUNCTION: auto_complete_date [ field fmt ]
ivan@0
   236
FUNCTION: auto_complete_time [ field fmt ]
ivan@0
   237
FUNCTION: rellenarComboHijo [ combo arrayDatos padre bolSelected sinBlanco i value total j ]
ivan@0
   238
FUNCTION: rellenarCombo [ combo dataArray bolSelected withoutBlankOption ]
ivan@0
   239
FUNCTION: marcarTodos [ chk bolMark ]
ivan@0
   240
FUNCTION: cambiarListaCombo [ combo dataArray key withBlankOption ]
ivan@0
   241
FUNCTION: limpiarLista [ field ]
ivan@0
   242
FUNCTION: eliminarElementosList [ field ]
ivan@0
   243
FUNCTION: generarArrayChecks [ frm check text resultado n texto valor i ]
ivan@0
   244
FUNCTION: seleccionarListCompleto [ field ]
ivan@0
   245
FUNCTION: seleccionarListCompleto [ field ]
ivan@0
   246
FUNCTION: menuContextual [ evt boton ]