zoukankan      html  css  js  c++  java
  • Aras前端的一些知识

    top.aras包含了aras前端大部分的API

    /*
    * uiShowItem
    * 打开物体视窗
    * parameters:
    * 1) itemTypeName - may be empty string if item is in client cache
    * 2) itemID       - obligatory
    * 3) viewMode     - 'tab view' or 'openFile'
    *                    if not specified aras.getVariable('viewMode') is used
    * 4) isTearOff    - true or false, if not specified aras.getVariable('TearOff') is used
    */
    //ex. 
    top.aras.uiShowItem("work order","ddddddddddddddddd");
    /*刷新物件視窗
    * uiReShowItem
    *
    * parameters:
    * 1) oldItemId- old id of item to be shown
    * 2) itemId   - id of item to be shown //usually itemId==oldItemId
    * 2) editMode - 'view' or 'edit'
    * 3) viewMode - 'tab view', ' or 'openFile'
    * 4) isTearOff- true or false.
    */
    Aras.prototype.uiReShowItem = function (oldItemId, itemId, editMode, viewMode)
    
    //ex.
    top.aras.uiReShowItem("xxxxxxxxxxxxx","xxxxxxxxxxxxx","view","tab view");
    /*
    * AlertError 錯誤訊息
    * params:  errorMessage = client-facing error message
    *      technicalErrorMessage = the technical error message
    *      stackTrace = the stack trace
    *      ardwin = the window to use
    *
    */
    Aras.prototype.AlertError = function Aras_AlertError(errorMessage, technicalErrorMessage, stackTrace, argwin) 
    
    //ex.
    top.aras.AlertError("錯誤訊息");
    
    //成功訊息
    Aras.prototype.AlertSuccess = function Aras_AlertSuccess(msg, argwin) {
        this.AlertInternal(msg, 'success', argwin, new AlertInternalCustomizationBase());
    };
    
    //ex.
    top.aras.AlertSuccess("成功訊息");
    /*回應對話視窗
    Displays a confirmation dialog box which contains a message and OK and Cancel buttons.
    Parameters:
    message - string. Message to display in a dialog.
    win - parent window for the dialog.
    
    Returns:
    true  - if a user clicked the OK button.
    false - if a user clicked Cancel button.
    */
    Aras.prototype.confirm = function Aras_confirm(message, ownerWindow)
    
    //ex. 
    var result=top.aras.confirm("choose");
    
    
    Aras.prototype.prompt = function Aras_prompt(msg, defValue, argwin)
    
    //ex.
    top.aras.prompt("test","test");

    尋找相關的API可以利用除錯器尋找 include.aspx,這邊會載入各種的Script~

  • 相关阅读:
    git命令记录
    JS实现iframe自适应高度
    js生成某个范围内的随机数
    jquery实现按钮翻转动画
    删除ELK的索引
    ELK故障处理,不知道成功否
    软件开发的SOLID原则
    阿里云的远程桌面问题
    Zabbix增加邮箱后Server宕处理
    201811招投标培训要点
  • 原文地址:https://www.cnblogs.com/OraCursor/p/8716821.html
Copyright © 2011-2022 走看看