// ======================================================================== // * Title : °øÅë ÆË¾÷ js // * Comment : ¼öÁ¤½Ã ÇÊ¿ä¾ø´Â funcion ¹× ¼Ò½ºÄÚµå »èÁ¦¿ä¸Á // * Filename : CCPopup.js // * Controller : CCPopup.js // * History : // * Update : // * : // * @version : 1.0 // * @author : // ======================================================================== /*===================================================== * °øÅëÆË¾÷ È£Ãâ function * * @param * * @return retVal *=====================================================*/ function showCommonPopup(Args){ var dialogLeft = 0; var dialogTop = 0; var dialogWidth = "700"; var dialogHeight = "435"; if((Args.popWidth == null)||(Args.popWidth == "")){}else{ dialogWidth = Args.popWidth; } if((Args.popHeight == null)||(Args.popHeight == "")){}else{ dialogHeight = Args.popHeight; } retVal = parent.showModalDialog("/cc/CCCommonCodeUF.jsp?Query="+Args.strQuery+"&Column="+Args.strColID+"&ColumnName="+Args.strColNm+"&strType="+Args.strType+"&ColumnLength="+Args.strColLt+"&strSchCol="+Args.strSchCol+"&strSchColNm="+Args.strSchColNm+"&PopupTitle="+Args.strTitle, Args, "status:no;center:yes;help:no;minimize:no;maximize:no;border:thin;scroll:no;statusbar:no;dialogWidth:"+dialogWidth+"px;dialogHeight:"+dialogHeight+"px"); return retVal; } function showManagePopup(Args){ var dialogLeft = 0; var dialogTop = 0; var dialogWidth = "700"; var dialogHeight = "435"; if((Args.popWidth == null)||(Args.popWidth == "")){}else{ dialogWidth = Args.popWidth; } if((Args.popHeight == null)||(Args.popHeight == "")){}else{ dialogHeight = Args.popHeight; } retVal = parent.showModalDialog("/cc/CCManageCodeUF.jsp?Query="+Args.strQuery+"&Column="+Args.strColID+"&ColumnName="+Args.strColNm+"&strType="+Args.strType+"&ColumnLength="+Args.strColLt+"&strSchCol="+Args.strSchCol+"&strSchColNm="+Args.strSchColNm+"&PopupTitle="+Args.strTitle, Args, "status:no;center:yes;help:no;minimize:no;maximize:no;border:thin;scroll:no;statusbar:no;dialogWidth:"+dialogWidth+"px;dialogHeight:"+dialogHeight+"px"); return retVal; } function showCommonPopupold(Args){ var dialogLeft = 0; var dialogTop = 0; var dialogWidth = "400px"; var dialogHeight = "200px"; retVal = parent.showModalDialog("/cc/CCCommonCodeUF.jsp?Query="+Args.strQuery+"&Column="+Args.strColID+"&ColumnName="+Args.strColNm+"&strType="+Args.strType+"&ColumnLength="+Args.strColLt+"&strSchCol="+Args.strSchCol+"&strSchColNm="+Args.strSchColNm+"&PopupTitle="+Args.strTitle, Args, "status:no;center:yes;help:no;minimize:no;maximize:no;border:thin;scroll:no;statusbar:no;dialogWidth:700px;dialogHeight:435px"); return retVal; } /** * openModal(urlName,width, height) »õ À©µµ¿ì¸¦ ¿©´Â ÇÔ¼ö * @param urlName URL * @param width À©µµ¿ì ³ÐÀÌ * @param height À©µµ¿ì ³ôÀÌ * @histroy 2002.3.28 */ function openModal(urlName,width, height) { if (width == 990) { width = 1000; height = 610; } //ret_str = window.showModalDialog(urlName, '', 'dialogHeight:'+height+'px;dialogWidth:'+width+'px;status:no; help:no;'); parent_modalstr = window.showModelessDialog(urlName, '', 'dialogHeight:'+height+'px;dialogWidth:'+width+'px;status:no;location=no,resizable=no,scrollbars=no,copyhistory=no help:no; center:yes;'); // parent_modalstr=window.open(url,winname,"width="+width+",height="+height+",toolbar=no,resizable=no,scrollbars=1,status=yes"); if (parent_modalstr !=null) { parent_modalstr.opener=self; } parent_modalstr.focus(); return parent_modalstr; } /** * openModal(urlName,width, height) »õ À©µµ¿ì¸¦ ¿©´Â ÇÔ¼ö * @param urlName URL * @param width À©µµ¿ì ³ÐÀÌ * @param height À©µµ¿ì ³ôÀÌ * @histroy 2002.3.28 ÀÌÅÂÇö */ function openModalCalendar(urlValue) { parent_modalstr = window.showModelessDialog(urlValue,"´Þ·Ââ", "dialogWidth:250px;dialogHeight:240px"); if (parent_modalstr !=null) { parent_modalstr.opener=self; } parent_modalstr.focus(); return parent_modalstr; } /* ##################################################### ´Þ·Â ÆË¾÷ ÀÛ¼ºÀÚ : ÀÛ¼ºÀÏÀÚ : 2005.08.10 ¼öÁ¤ÀÏÀÚ : ---------------------------------------------------- @ÆÄ¶ó¸ÞŸ GauceParam : üũÇÒ ¿ÀºêÁ§Æ® ##################################################### */ function searchCalendar(pos,pos_flag){ if(eval(pos).ReadOnly == true)return; var urlValue = '/ecrm/crs/calendar.tigger?pos='+pos+'&pos_flag='+pos_flag; openModalCalendar(urlValue);//´Þ·ÂÀ» MODAL·Î OPEN } /* ##################################################### ´Þ·Â ÆË¾÷ ÀÛ¼ºÀÚ : ÀÛ¼ºÀÏÀÚ : 2005.08.10 ¼öÁ¤ÀÏÀÚ : ---------------------------------------------------- @ÆÄ¶ó¸ÞŸ GauceParam : üũÇÒ ¿ÀºêÁ§Æ® ##################################################### */ function searchCalendarGrid(ds,row,colid,pos_flag){ var urlValue = '/cc/CCCalendarUF.jsp?ds='+ds+'&row='+row+'&colid='+colid+'&pos_flag='+pos_flag; openModalCalendar(urlValue);//´Þ·ÂÀ» MODAL·Î OPEN } /* ##################################################### ¿ìÆí¹øÈ£ ÆË¾÷ ÀÛ¼ºÀÚ : ÀÛ¼ºÀÏÀÚ : 2005.11.11 ¼öÁ¤ÀÏÀÚ : ---------------------------------------------------- @ÆÄ¶ó¸ÞŸ zipcode : ¿ìÆí¹øÈ£ ÀÔ·Â Emedit¸í juso1 : ÁÖ¼Ò1 ÀÔ·Â inputbox juso2 : ÁÖ¼Ò2 ÀÔ·Â inputbox ##################################################### */ function searchZipPop(zipcode,juso1,juso2){ var popLinkUrl = '/ecrm/crs/zipUp.tigger?zipcode='+zipcode+'&juso1='+juso1+'&juso2='+juso2; window.open(popLinkUrl, '', 'height=320, width=390, location=0, menubar=0, resizable=0, scrollbars=auto, status=0, titlebar=0, toolbar=0, screeny=0, left=100, top=100'); } /* ##################################################### ¿ìÆí¹øÈ£ ÆË¾÷ ÀÛ¼ºÀÚ : ÀÛ¼ºÀÏÀÚ : 2005.11.17 ¼öÁ¤ÀÏÀÚ : ---------------------------------------------------- @ÆÄ¶ó¸ÞŸ ds : ±×¸®µå DataSet ¸í grid : ±×¸®µå¸í zipcode : ¿ìÆí¹øÈ£ ÀÔ·Â Ä®·³¸í juso1 : ÁÖ¼Ò1 ÀÔ·Â Ä®·³¸í juso2 : ÁÖ¼Ò2 ÀÔ·Â Ä®·³¸í ##################################################### */ function searchZipPopGrid(ds,grid,zipcode,juso1,juso2){ var popLinkUrl = '/cc/CCFindZipUF.jsp?zipcode='+zipcode+'&juso1='+juso1+'&juso2='+juso2+'&grid='+grid+'&ds='+ds+'&gbn=G'; window.open(popLinkUrl, '', 'height=440, width=550, location=0, menubar=0, resizable=0, scrollbars=auto, status=1, titlebar=0, toolbar=0, screeny=0, left=100, top=100'); } /* ##################################################### ÆÄÀÏ ¿­±â ÀÛ¼ºÀÚ : ÀÛ¼ºÀÏÀÚ : 2005.11.15 ¼öÁ¤ÀÏÀÚ : ---------------------------------------------------- @ÆÄ¶ó¸ÞŸ systemID : ½Ã½ºÅÛ ±¸ºÐ('PI','PL','PN' µî) seq : °¢°¢ÀÇ ½Ã½ºÅÛ±¸ºÐ¿¡¼­ »ç¿ëÇÏ´Â ¾÷·Îµå µð·ºÅ丮 Á¾·ù°¡ ¸¹À»°æ¿ì ±¸ºÐ fileName : ¾÷·Îµå ÆÄÀϸí #################################################### */ function fileOpen(systemID,fileNM,popflag){ var popLinkUrl = '/cc/CCFileOpen.jsp?systemID='+systemID+'&fileName='+fileNM; if((popflag == 'Y')||(popflag == 'C')){ window.open(popLinkUrl, '', 'height=1, width=1, left=360, top=270'); }else{ location.href = popLinkUrl; } } /** * openPop(link,popGbn,Args,hvGbn,hParam) »õ À©µµ¿ì¸¦ ¿©´Â ÇÔ¼ö * @param urlName URL * @param popGbn 'M'(showModalDialog), 'L'(showModelessDialog) * @param Args Argument ¿ÀºêÁ§Æ® * @param hvGbn h(°¡·ÎÇü),v(¼¼·ÎÇü), hParamÀÌ ÀÖÀ¸¸é width·Î ¾²ÀÓ * @param hParam height°ª * @histroy 2005.12.13 */ function openPop(urlName,popGbn,Args,hvGbn,hParam){ var wValue; var hValue; if((hParam == null)||(hParam == '')){ if(hvGbn == 'H'){ wValue = '1000px'; hValue = '700px'; }else{ wValue = '800px'; hValue = '720px'; } }else{ wValue = hvGbn+"px"; hValue = hParam+"px"; } if(popGbn == 'M'){ parent.showModalDialog(urlName, Args, "status:no;center:yes;help:no;minimize:no;maximize:no;border:thin;statusbar:no;dialogWidth:"+wValue+";dialogHeight:"+hValue); }else{ parent_modalstr = window.showModelessDialog(urlName, Args, "status:no;center:yes;help:no;minimize:no;maximize:no;border:thin;statusbar:no;dialogWidth:"+wValue+";dialogHeight:"+hValue); if (parent_modalstr !=null) { parent_modalstr.opener=self; } parent_modalstr.focus(); return parent_modalstr; } } var pgspop =null; function showProgressBox(){ var scrX = window.screen.width/2 - 50; var scrY = window.screen.height/2 - 20 ; var sFeatures = "titlebar:no;status:no;help:no;dialogWidth:210px;dialogHeight:210px;scroll:no;dialogLeft:"+scrX+";dialogTop:"+scrY; pgspop = window.showModelessDialog('/blank.html', window, sFeatures); pgspop.document.open(); pgspop.document.write("ó¸®Áß."); pgspop.document.write(""); pgspop.document.write(""); pgspop.document.write(""); pgspop.document.write("
"); pgspop.document.write(""); //pgspop.document.write(""); // pgspop.document.write(""); pgspop.document.write("
"); pgspop.document.write(""); pgspop.document.write("
"); pgspop.document.write("
"); pgspop.document.close(); } function hideProgressBox(){ if (pgspop != null){ self.focus(); pgspop.close(); } } function getCalendar(pos,pos_flag, type){ var urlValue = '/ecrm/crs/calendar.tigger?pos='+pos+'&pos_flag='+pos_flag+'&type='+type; openModalCalendar(urlValue);//´Þ·ÂÀ» MODAL·Î OPEN }