模式对话框

打开一个模式对话框

function createExchangeRate(){
 var inObj = new Object();
 inObj.flag = "1";
 var url = contextPath+"/crm/specialInvoice/exchangeRateDetail.jsp";
 var retObj = showModalDialog(url, inObj, "dialogHeight: 250px; dialogWidth: 420px;scroll:no");
 if (retObj >0) {
  specialInvoiceFacade.queryExchangeRateCodeList("", queryCallback);
 }
}

 

exchangeRateDetail.jsp中

   var inParam = window.dialogArguments;
   function initPage(){
    if(inParam.flag == "2"){
     $("rateCode").value = inParam.RATE_CODE;
     $("KYAT2USD").value = inParam.KYAT2USD;
     $("KYAT2FEC").value = inParam.KYAT2FEC;
     $("USD2FEC").value = inParam.USD2FEC;
    }else{
     $("rateCode").value = "";
     $("KYAT2USD").value = "";
     $("KYAT2FEC").value = "";
     $("USD2FEC").value = "";
    }
   }

 

你可能感兴趣的:(模式对话框)