rice-middleware/web/src/main/webapp/kr/scripts/core.js
// should be in rice for direct inquiry 
should be in rice for direct inquiry
should be in rice for direct inquiry
function inquiryPop(boClassName, inquiryParameters){
  parameterPairs = inquiryParameters.split(",");
  queryString="businessObjectClassName="+boClassName+"&methodToCall=start"
  for (i in parameterPairs) {
    parameters = parameterPairs[i].split(":");
  	if (document.forms[0].elements[parameters[0]].value=="") 
  	{
  		alert("Please enter a value in the appropriate field.");
		return false;
  	} else {
    	queryString=queryString+"&"+parameters[1]+"="+document.forms[0].elements[parameters[0]].value;
  	}
  }
  url=window.location.href
  pathname=window.location.pathname
  idx1=url.indexOf(pathname);
  idx2=url.indexOf("/",idx1+1);
  baseUrl=url.substr(0,idx2)
  if (baseUrl.length > 3 && baseUrl.substr(baseUrl.length - 3)=="/kr") {
    window.open(baseUrl+"/directInquiry.do?"+queryString, "_blank", "width=640, height=600, scrollbars=yes");
  }
  else {
    window.open(baseUrl+"/kr/directInquiry.do?"+queryString, "_blank", "width=640, height=600, scrollbars=yes");
  }
}
function inquiryPop ( boClassName , inquiryParameters ) { parameterPairs = inquiryParameters . split ( "," ) ; queryString = "businessObjectClassName=" + boClassName + "&methodToCall=start" for ( i in parameterPairs ) { parameters = parameterPairs [ i ] . split ( ":" ) ; if ( document . forms [ 0 ] . elements [ parameters [ 0 ] ] . value == "" ) { alert ( "Please enter a value in the appropriate field." ) ; return false ; } else { queryString = queryString + "&" + parameters [ 1 ] + "=" + document . forms [ 0 ] . elements [ parameters [ 0 ] ] . value ; } } url = window . location . href pathname = window . location . pathname idx1 = url . indexOf ( pathname ) ; idx2 = url . indexOf ( "/" , idx1 + 1 ) ; baseUrl = url . substr ( 0 , idx2 ) if ( baseUrl . length > 3 && baseUrl . substr ( baseUrl . length - 3 ) == "/kr" ) { window . open ( baseUrl + "/directInquiry.do?" + queryString , "_blank" , "width=640, height=600, scrollbars=yes" ) ; } else { window . open ( baseUrl + "/kr/directInquiry.do?" + queryString , "_blank" , "width=640, height=600, scrollbars=yes" ) ; } }
should be in rice for direct inquiry
should be in rice for direct inquiry
//queryString=queryString+"&"+parameters[1]+"=directInquiryParameterNotSpecified";