/** * @(#) PAM.js *???? * - 2007. 4. 19 / ???? / ??? */ //var pamResultRef = "/root/hidden/tmp"; function makePamResultRef(){ model.makeNode(pamResultRef); } function removePamResultRef(){ model.removeNode(pamResultRef); } function pamGetDeptCDDrIDList(result_ref){ //makePamResultRef(); submit("TRPAM00101"); //getParameterPath(), zbcResultRef);); if( result_ref == "" || result_ref == null ){ model.makeNode("root/hidden/tmp/orddeptcd"); model.makeNode("root/hidden/tmp/orddrid"); model.removeNodeset("root/init/orddeptcd"); model.removeNodeset("root/init/orddrid"); model.makeNode("root/init/orddeptcd"); model.makeNode("root/init/orddrid"); model.copyNode("root/init/orddeptcd", "root/hidden/tmp/orddeptcd"); model.copyNode("root/init/orddrid", "root/hidden/tmp/orddrid"); model.removeNodeset("root/hidden/tmp/orddeptcd"); model.removeNodeset("root/hidden/tmp/orddrid"); }else{ model.makeNode("root/hidden/tmp/orddeptcd"); model.makeNode("root/hidden/tmp/orddrid"); model.copyNode(result_ref, "root/hidden/tmp"); model.removeNodeset("root/hidden/tmp/orddeptcd"); model.removeNodeset("root/hidden/tmp/orddrid"); } //model.refresh(); } //??? ??? ???? ??? ????. //??? TRUE && ??? FALSE function pamCompareNodes(originalNode, copyNode){ var ins = document.models( 0 ).instances( 0 ); // 1. ?????? ???? ?? var original = ins.selectSingleNode(originalNode).xml; var copy = ins.selectSingleNode(copyNode).xml; //??? ???? ??? ????? ??? ?? ?? FALSE? ????. if(original == null || copy == null){ return false; }else if (original == copy){ return true; }else{ return false; } } /** * @desc : ÁֹιøÈ£ ¾ÕÀÚ¸® üũ *
 *           1. ÁֹιøÈ£ ¾ÕÀÚ¸® ±æÀÌ Ã¼Å©
 *           2. ¼ýÀÚÇüÅ üũ
 * 
* @param : vRrgstno1 - ÁֹιøÈ£ ¾ÕÀÚ¸®, ctrlNm - ÁֹιøÈ£ ¾ÕÀÚ¸® ÄÁÆ®·ÑÀ̸§ * @return : true/false * @--------------------------------------------------- */ function fRrgstNo1Veri(vRrgstno1, ctrlNm){ if (vRrgstno1 != null && vRrgstno1 != "" && vRrgstno1 != " " && vRrgstno1 != "-") { if (vRrgstno1.length != 6) { messageBox("ÁֹιøÈ£1Àº 6ÀÚ¸®¿©¾ß ÇÕ´Ï´Ù!","E999",""); model.setFocus(ctrlNm); model.refresh(); return false; } if (vRrgstno1.isNumber() != true) { messageBox("ÁֹιøÈ£1Àº ¼ýÀÚÇüÅ·ΠÀԷµǾî¾ß ÇÕ´Ï´Ù!","E999",""); model.setFocus(ctrlNm); model.refresh(); return false; } } else { messageBox("ÁֹιøÈ£1Àº 6ÀÚ¸®¿©¾ß ÇÕ´Ï´Ù!","E999",""); model.setFocus(ctrlNm); model.refresh(); return false; } } /** * @desc : ÁֹιøÈ£ µÞÀÚ¸® üũ *
 *           1. ÁֹιøÈ£ ¾ÕÀÚ¸® ±æÀÌ
 *           2. ÁֹιøÈ£ µÞÀÚ¸® ±æÀÌ
 *           3. ÁֹιøÈ£ ¾ÕÀÚ¸® ³¯Â¥Çü½Ä üũ 
 *           4. »ý³â¿ùÀÏ ±¸Çϱâ 
 *           5. ¼ºº° ±¸Çϱâ
 *           6. ³ªÀÌ ±¸Çϱâ
 * 
* @param : vRrgstno1 - ÁֹιøÈ£ ¾ÕÀÚ¸®, vRrgstno2 - ÁֹιøÈ£ µÞÀÚ¸®, ctrlNm1- ÁֹιøÈ£ ¾ÕÀÚ¸® ÄÁÆ®·ÑÀ̸§, ctrlNm2- ÁֹιøÈ£ µÞÀÚ¸® ÄÁÆ®·ÑÀ̸§ * @return : true/false , »ý³â¿ùÀÏ(8ÀÚ¸®), ¼ºº°, ³ªÀÌ * @--------------------------------------------------- */ function fRrgstNo2Veri(vRrgstno1, vRrgstno2, ctrlNm1, ctrlNm2, rBrthdd, rSex, rAge){ if (vRrgstno1.length != 6) { messageBox("ȯÀÚÁֹιøÈ£1Àº 6ÀÚ¸®ÀÔ´Ï´Ù!","E999",""); model.setFocus(ctrlNm1); return false; } if (vRrgstno2.length != 7) { messageBox("ȯÀÚÁֹιøÈ£2Àº 7ÀÚ¸®ÀÔ´Ï´Ù!","E999",""); model.setFocus(ctrlNm2); return false; } var gubn = vRrgstno2.substr(0,1); switch(gubn){ case '1' : case '2' : case '5' : case '6' : vBrthdd = '19'.concat(vRrgstno1); break; case '3' : case '4' : case '7' : case '8' : vBrthdd = '20'.concat(vRrgstno1); break; case '9' : case '0' : vBrthdd = '18'.concat(vRrgstno1); break; default : vBrthdd = '19'.concat(vRrgstno1); break; } if (isValidDateTime(vBrthdd, "YYYYMMDD") == false) { messageBox("ÁֹιøÈ£ ¾Õ6ÀÚ¸® Çü½Ä¿À·ùÀÔ´Ï´Ù. ¿Ã¹Ù¸¥ ÀÏÀÚÇüÅ·ΠÀÔ·ÂÇϽʽÿä!","E999",""); model.refresh(); model.setFocus(ctrlNm1); return false; } //¼ºº° rSex = getGender(vRrgstno2); //³ªÀÌ rAge = getFullAge(vBrthdd); rBrthdd = vBrthdd; var ptbs_rrgstno = vRrgstno1.concat(vRrgstno2); if (isResidentNo(ptbs_rrgstno) == false) { messageBox("À¯È¿ÇÏÁö ¾ÊÀº ÁֹιøÈ£ÀÔ´Ï´Ù!","E999",""); return false; } }