目的:V20304D1 –執行成功後,顯示執行完成訊息, 按[確定]後,才重新顯示資料
– mysucessalert(Tmp_str,func);
– mysucessalert(Tmp_str,func);
處理說明: 1> mysuccessalert(Tmp_Str, function () {
Ext.getCmp("btn_Show").fireHandler();
})
Ext.Ajax.request({
method: 'POST',
params: np,
async: false, //將非同步功能關閉
url: '../../api/V20304D1API/sendmail6',
success: function (response, opts) {
Tmp_Str = "已Email 通知相關品保人員<br>"
+"執行品保工時維護( V2030A) !!";
mysuccessalert(Tmp_Str, function () {
Ext.getCmp("btn_Show").fireHandler();
})
//var id = confirm(Tmp_Str);
//if (id) {
// Ext.getCmp("btn_Show").fireHandler();
//}
//關閉視窗
Ext.getCmp("sub_ShowEmail_OkBtn").up("window").close();
Ext.getCmp("sub_ShowEmail_OkBtn").up("window").destroy();
},
failure: function (response, opts) {
mywarnalert('Email 通知相關人員失敗, 請檢查:' + response.status);
}
}); // end of Ext.Ajax.Request for Email