2024年10月31日 星期四

V20304A – [工時提列]鈕 – 關閉子視窗, win1.close(); win1.destroy(); - window

 目的:V20304A – [工時提列]鈕 – 關閉子視窗, win1.close(); win1.destroy(); - window

處理說明: 1>關閉子視窗:
                       win1.close();
                       win1.destroy();
                         --> 兩行均需寫,
                                不然下次執行,子畫面會亂掉


1>*.js
          var Tmp_url = "../../api/V20304AAPI/UPDATE_AMM_AR_TLSAR";
            //取得挑選資料的 dt2JSON 字串 
            //getUrlStr : 必需傳回字串( dt.JSON字串) , 非 ds
            var rtn_Str = getUrlStr(Tmp_url, np, "工時提列");
            console.log("rtn_Str:", rtn_Str);
            if (checkRtnOK(rtn_Str)) {
                mysuccessalert(rtn_Str);                
                console.log("win1.closeAction:", win1.closeAction);
                win1.close();
                win1.destroy();   //必需寫 destroy() , 不然畫面會亂掉
            }
            else
                mywarnalert(rtn_Str);

沒有留言:

張貼留言