shmt_js_support.js

来自「proe5.0野火版下载(中文版免费下载)」· JavaScript 代码 · 共 126 行

JS
126
字号
/*---------------------------------------------------------------------------*\||  Module Details:||  Name:    shmt_js_support.js||  Purpose: handles the filter functionality of shmt reports||  History:||  Date      Release Name  Ver.  Comments|  --------- ------- ----- ----- ----------------------------------------------|  08-Aug-04 K-03-08 Moti   $$1   Created.|  28-Jan-09 L-03-25 Moti   $$2   Changed isShowSuggestedCB for radio||  INSERT COMMENT ABOVE THIS LINE|\*---------------------------------------------------------------------------*//*--------------------------------------------------------------------------*\| Function: isShowNon90CB| Purpose:  show lines according to values in the non 90 column| Input:    table_id   - table unique name|           row        - row index|           data1      - first user data|           data2      - second user data| Output:   | Return:   1 - show row , hide row\*--------------------------------------------------------------------------*/function isShowNon90CB ( table_id , row , data1 , data2 ){    var result = 1;    var checked = document.getElementById("bend_als_info_chkbox").checked    if ( checked == true )    {        var value = getTableCellInfo ( table_id , "non_90" , row )        result = ( value == 1 ) ? 1 : 0    }    return result      }/*--------------------------------------------------------------------------*\| Function: isShowSuggestedCB| Purpose:  show lines according to values in the suggested column| Input:    table_id   - table unique name|           row        - row index|           data1      - first user data|           data2      - second user data| Output:   | Return:   1 - show row , hide row\*--------------------------------------------------------------------------*/function isShowSuggestedCB ( table_id , row , data1 , data2 ){    var result = 1;    // need to find out which of the radio is checked    var all_checked = document.getElementById("radii_info_all_chkbox").checked    var sugg_checked = document.getElementById("radii_info_sugg_chkbox").checked    var non_sugg_checked = document.getElementById("radii_info_non_sugg_chkbox").checked    if ( all_checked == true )    {      result = 1 ;    }    else if ( sugg_checked == true )    {        var value = getTableCellInfo ( table_id , "Suggested" , row )        result = ( value == 1 ) ? 1 : 0    }    else if ( non_sugg_checked == true )    {        var value = getTableCellInfo ( table_id , "Suggested" , row )        result = ( value != 1 ) ? 1 : 0    }    return result      }/*--------------------------------------------------------------------------*\| Function: isShowUsedCB| Purpose:  show lines according to values in the used column| Input:    table_id   - table unique name|           row        - row index|           data1      - first user data|           data2      - second user data| Output:   | Return:   1 - show row , hide row\*--------------------------------------------------------------------------*/function isShowUsedCB ( table_id , row , data1 , data2 ){    var result = 1;    var checked = document.getElementById("associated_tables_info_chkbox").checked    if ( checked == true )    {        var value = getTableCellInfo ( table_id , "Used" , row )        result = ( value == 1 ) ? 1 : 0    }    return result      }/*--------------------------------------------------------------------------*\| Function: apply_filter_chkbox| Purpose:  checkbox was clicked , apply the filter| Input:    table_id - table unique name| Output:   | Return:   \*--------------------------------------------------------------------------*/function apply_filter_chkbox ( table_id ){    redrawOneTable ( table_id )}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?