/** * ÆÄ ÀÏ ¸í : SPADT61300.js * ¼³ ¸í : (ÆË¾÷)¿ø³»¶óº§Ãâ·Â Javascriot * ¼³ °è ÀÚ : °øµÎ°æ * ÀÛ ¼º ÀÚ : °øµÎ°æ * ¼öÁ¤ÀÌ·Â : 2007.09.20 / ÃÖÃÊÀÛ¼º / °øµÎ°æ */ var sSndMsg = ""; //¶óº§Ãâ·Â³»¿ë var iPoint = 0; //¶óº§Ãâ·Ârow var iCnt = 0; //¶óº§Ãâ·Â¸Å¼ö var iImageCnt = 0; //¶óº§±×·¡ÇÈÆùÆ®¼ö var ordflag = ""; var iTotalPageNum = 0; var mPoint = 0; //var iPageCnt = 1; //ÆäÀÌÁö¹øÈ£ Á¶È¸ var iPageCnt = 0; var iPageCntO = 1; //¿Ü·¡ Å«¶óº§Ãâ·Â¾ç½Ä »ç¿ë var nextPage = false; var vCnt = 0; /** * ÃʱâÈ­ */ function fInit() { var sParam = model.getAttribute("params"); model.makeValue("/root/send/prcpinfo/drugdd", astfMatrixData(sParam, 1, 0)); model.makeValue("/root/send/prcpinfo/drugno", astfMatrixData(sParam, 1, 1)); model.makeValue("/root/send/prcpinfo/ioflag", astfMatrixData(sParam, 1, 2)); model.makeValue("/root/send/prcpinfo/lblflag", astfMatrixData(sParam, 1, 3)); model.makeValue("/root/send/prcpinfo/liquidflag", astfMatrixData(sParam, 1, 4)); model.makeValue("/root/send/prcpinfo/reprintyn", astfMatrixData(sParam, 1, 5)); model.makeValue("/root/send/prcpinfo/autoinprntyn", astfMatrixData(sParam, 1, 6)); model.makeValue("/root/send/prcpinfo/lbl5", astfMatrixData(sParam, 1, 7)); // 2010.03.18 pymi model.makeValue("/root/send/prcpinfo/atclblyn", astfMatrixData(sParam, 1, 8)); // 2010-12-13 À̼±°æ model.makeValue("/root/send/prcpinfo/lblkindflag", astfMatrixData(sParam, 1, 9)); // 2010-12-31 À̼±°æ model.makeValue("/root/send/prcpinfo/noname", astfMatrixData(sParam, 1, 10)); // 2011.03.22 pymi model.makeValue("/root/send/prcpinfo/prntflag", "O"); var dutplceinstcd = getUserInfo("dutplceinstcd"); submit("TRADT61301"); if(model.getValue("/root/main/lbllist/lbllist["+1+"]/drugkindnm") != ""){ if(model.getValue("/root/send/prcpinfo/liquidflag") == "Y"){ fLiquidLBLPrint(); } else { if (model.getValue("/root/send/prcpinfo/lblkindflag") == "S") { fLBLPrint_knu("S"); } else { ///2015³â 3¿ù11ÀÏ ±èÄ¡±¹ ¿Ü·¡ ÁÖ»ç¾àÅ«¶óº§ Flag ¸¸µë var Vdrugkind = model.getValue("/root/main/lbllist/lbllist["+1+"]/drugkindnm") if ( Vdrugkind == "[ÁÖ»ç¾à]" && dutplceinstcd == '031' ){ fLBLPrint_knu("LJ"); } else { fLBLPrint_knu("L"); } } } } model.refresh(); window.close(); } /** * */ function fStopTimer() { window.clearinterval(gTimer); } function fSleep(numberMillis) { var now = new Date();; var exitTime = now.getTime() + numberMillis; while (true) { now = new Date(); if (now.getTime() > exitTime) return; } } /** * ¶óº§Ãâ·Â */ function fLBLPrint() { /* ¶óº§ Sorting ·ÎÁ÷ //mgt¿¡¼­ vo·Î ¸®ÅÏ ´ëºÐ·ù - ³»º¹¾à, ¿Ü¿ë¾à, ÁÖ»ç, Ç×¾ÏÁ¦, TPN, ¸¶¾à, Áߺзù - ¹æ¹ýÄÚµå ¼ÒºÐ·ù - ³»º¹¾à,¿Ü¿ë¾à(¹æ¹ýÄÚµå), ÁÖ»ç,¸¶¾à,Ç×¾ÏÁ¦(mix) web js Ãâ·Â·ÎÁ÷ 1 ¾àÁ¾·ù(³»º¹¾à/ÁÖ»ç¾à/¿Ü¿ë¾à) 1.1 ¹æ¹ýÄÚµå 1.2 󹿼ö·® */ var prcpnum = ""; var prcpCnt = 14; // 20101030_laboru_°æºÏ´ëº´¿ø_¶óº§ ÇÑ ÆäÀÌÁö¿¡ ÃÖ°í 8°³¿¡¼­ 14°³ Ãâ·ÂµÇ°Ô º¯°æ // ¶óº§³»¿ë copy //model.makeNode("/root/main/lbllist2"); //model.copyNode("/root/main/lbllist2", "/root/main/lbllist"); //iTotalPageNum = iPageCnt; //iPageCnt = 0; for(iPoint = 1; iPoint <= getNodesetCount("/root/main/lbllist/lbllist") ; iPoint++){ model.makeNode("/root/main/prnt/lbllist[" +iPageCnt+ "]"); model.copyNode("/root/main/prnt/lbllist[" +iPageCnt+ "]", "/root/main/lbllist/lbllist["+iPoint+"]"); //¹ÙÄÚµå(º¯È¯) // 20101030_laboru_°æºÏ´ëº´¿ø_atc drugkind ±¸ºÐÀÚ¿¡ ÀÇÇÑ ¹ÙÄÚµå Ãâ·Â Çü½Ä // t : "ATC" , p : »êÁ¦ ¹ÙÄÚµå, e : blank if(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/atc_drugkind") == "t" ) { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/barcode2", "ATC"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/barcode", ""); } else if(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/atc_drugkind") == "p") { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/barcode", model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/barcode")); } else { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/barcode", ""); } var sumcls = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/sumcls"); var mthdcd = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcd"); if (mthdcd == "ZZZ" || mthdcd == "A10PQ") { //±âŸ¿ë¹ýÀ̰ųª 'ÇÊ¿ä½Ã º¹¿ëÇϽʽÿÀ' ¿ë¹ýÀÎ °æ¿ìµµ ´Üµ¶¶óº§Ãâ·Â sumcls = mthdcd; } //º¹¿ë±â°£ °è»ê½Ã ¼ö³³ÀÏÀÚ¸¦ ±âÁØÀ¸·Î Çϰí Ãâ·Â rcptdd = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/rcptdd"); //20101229 À̼±°æ ¼öÁ¤ : atc±¸ºÐÀÌ »êÁ¦¾Æ´Ò¶§¸¸ ´Üµ¶¶óº§ Àû¿ë var atc_drugkind = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/atc_drugkind"); if(atc_drugkind != "p" && fChkSumcls(iPoint)){ //´Üµ¶¶óº§Ãâ·Â if(model.getValue("/root/send/prcpinfo/lblkindflag") == "L1"){//°æºÏ´ëº´¿ø Å«¶óº§(º»¿ø) fIndependPrint2(); } else { fIndependPrint(); } } else { //ÀϹݶóº§Ãâ·Â if(model.getValue("/root/send/prcpinfo/lblkindflag") == "L1"){//°æºÏ´ëº´¿ø Å«¶óº§(º»¿ø) fGnrlPrint2(); } else { fGnrlPrint(); } } } makeReportPreview(0,0,10, 10, ""); model.makeNode("/root/main/barcdprntsetup/prntsetupinfo"); model.copyNode("/root/main/barcdprntsetup/prntsetupinfo","/root/init/barcdprntsetup/prntsetupinfo"); if(model.getValue("/root/send/prcpinfo/lblkindflag") == "L1"){//°æºÏ´ëº´¿ø Å«¶óº§(º»¿ø) model.removeNodeset("/root/main/lbllist/lbllist"); model.makeNode("/root/main/lbllist"); model.copyNode("/root/main/lbllist", "/root/main/prnt"); fPrintRexbar("RFADT62303"); } else { fPrintRexbar("RFADT61300"); } } /** * */ function fIndependPrint() { //¶óº§³»¿ë var drugkindnm = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugkindnm"); var qty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqty"); var dayqty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayprcpqty"); var qtyunit = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqtyunit"); var tims = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcptims"); var dayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdayno"); //ó¹æÀϼö var mthddayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayno"); //¿ë¹ýÀϼö var packunit = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/packunit"); //¾àǰ¸¶½ºÅÍÀÇ ¼ö·®´ÜÀ§ if (drugkindnm == "[ÁÖ»ç¾à]"){ //¿ë¹ý2 model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts", model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4")); } else if (drugkindnm == "[¿Ü¿ë¾à]"){ var val = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts" , val); } else if (drugkindnm == "[³»º¹¾à]"){ var sumcls = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/sumcls"); if( sumcls == "DM" || sumcls == "DS" || sumcls == "DT" || sumcls == "DX"){ //20091110 À̼±°æ ¼öÁ¤ : ¶óº§±×·ìÀÌ ¸¶¾à(°æ±¸), ¼öÁ¦, ptp, ±âŸ¾àÀϰæ¿ì ¾àǰ¸¶½ºÅÍÀÇ ¼ö·®´ÜÀ§¸¦ Ãâ·Â var tmpqty = Math.round(qty * 10) / 10; if(packunit == "T" || packunit == "C") { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+fChkFloat(qty)+"Á¤¾¿ "+(dayno*mthddayno)+"ÀϺÐ"); } else { if(packunit == "cap" || packunit == "tab") { packunit = "¾Ë"; // 20110413_laboru_°æºÏ´ëº´¿ø_´ÜÀ§°¡ cap, tab À϶§ ¾Ë·Î ¹Ù²Ù±â } model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+fChkFloat(tmpqty)+ packunit +"¾¿ "+(dayno*mthddayno)+"ÀϺÐ"); } } else { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+fChkFloat(qty)+"Æ÷[Á¤]¾¿ "+(dayno*mthddayno)+"ÀϺÐ"); } var mth = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts", mth); } // 2010.03.18 pymi if(!fChkSumcls(iPoint) && model.getValue("/root/send/prcpinfo/lbl5") == "Y") { var val = ""; } else { // 20101027_laboru_°æºÏ´ëº´¿ø_¶óº§ Ãâ·Â¹° ó¹æÄÚµå »èÁ¦ var val = parseFloat(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/totdrugqty")) +" "+model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpnm"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/prcpcd", val); } // (e) iPageCnt++; } /* * 20101231 À̼±°æ Ãß°¡ : °æºÏ´ëº´¿ø º´µ¿¾à±¹¿¡¼­ ¿Ü·¡È¯ÀÚó¹æÀ» Å«¶óº§(º»¿ø)À¸·Î Ãâ·ÂÇÔ */ function fIndependPrint2() { //¶óº§³»¿ë var drugkindnm = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugkindnm"); var qty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqty"); var dayqty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayprcpqty"); var qtyunit = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqtyunit"); var tims = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcptims"); var dayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdayno"); //ó¹æÀϼö var mthddayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayno"); //¿ë¹ýÀϼö var packunit = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/packunit"); //¾àǰ¸¶½ºÅÍÀÇ ¼ö·®´ÜÀ§ if (drugkindnm == "[ÁÖ»ç¾à]"){ //¿ë¹ý2 model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts", model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4")); } else if (drugkindnm == "[¿Ü¿ë¾à]"){ var val = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts" , val); } else if (drugkindnm == "[³»º¹¾à]"){ var sumcls = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/sumcls"); if( sumcls == "DM" || sumcls == "DS" || sumcls == "DT" || sumcls == "DX"){ //20091110 À̼±°æ ¼öÁ¤ : ¶óº§±×·ìÀÌ ¸¶¾à(°æ±¸), ¼öÁ¦, ptp, ±âŸ¾àÀϰæ¿ì ¾àǰ¸¶½ºÅÍÀÇ ¼ö·®´ÜÀ§¸¦ Ãâ·Â var tmpqty = Math.round(qty * 10) / 10; if(packunit == "T" || packunit == "C") { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", tims+"ȸ "+ (dayno*mthddayno)+"ÀϺÐ"); } else { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", tims+"ȸ "+ (dayno*mthddayno)+"ÀϺÐ"); } } else { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", tims+"ȸ "+ (dayno*mthddayno)+"ÀϺÐ"); } var mth = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts", mth); } model.setValue("/root/main/prnt/lbllist["+iPageCnt+"]/drugno", "<" + model.getValue("/root/main/prnt/lbllist["+iPageCnt+"]/drugno") + ">"); // 2010.03.18 pymi if(!fChkSumcls(iPoint) && model.getValue("/root/send/prcpinfo/lbl5") == "Y") { var val = ""; } else { // 20101027_laboru_°æºÏ´ëº´¿ø_¶óº§ Ãâ·Â¹° ó¹æÄÚµå »èÁ¦ var val = parseFloat(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/totdrugqty")) +" "+model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpnm"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/prcpcd", val); } // (e) iPageCnt++; } /** * */ function fGnrlPrint() { var cnt = 0; var ordCnt = 0; var tmppc = ""; var sndprcpcnt = 1; //¶óº§³»¿ë var drugkindnm = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugkindnm"); var qty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqty"); var dayqty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayprcpqty"); var tims = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcptims"); var dayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdayno");//ó¹æÀϼö var mthddayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayno"); //¿ë¹ýÀϼö //¾àÄÚµå Ãâ·Â var drugkind1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugkindnm"); var dayno1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdayno"); var mthd1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd1"); var mthd2 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd2"); var mthd3 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd3"); var mthdcd = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcd"); if( drugkindnm != "[³»º¹¾à]") { if (drugkindnm == "[ÁÖ»ç¾à]"){ model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts", model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4")); } else if (drugkindnm == "[¿Ü¿ë¾à]"){ var val = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); val += "\n" + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts" , val); } for(var j = iPoint; j <= getNodesetCount("/root/main/lbllist/lbllist") ; j++){ var drugkind2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/drugkindnm"); var dayno2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpdayno"); var mthd4 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd1"); var mthd5 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd2"); var mthd6 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd3"); if((drugkind1 == drugkind2) && (dayno1 == dayno2) && (mthd1 == mthd4 && mthd2 == mthd5 && mthd3 == mthd6) && !fChkSumcls(j)){ var prcpqty = model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty")/model.getValue("/root/main/lbllist/lbllist["+j+"]/prcptims"); prcpqty = Math.ceil( prcpqty * tims*1000)/1000 ; // 2010.03.18 pymi if(!fChkSumcls(j) && model.getValue("/root/send/prcpinfo/lbl5") == "Y") { var val = ""; } else { // 20101027_laboru_°æºÏ´ëº´¿ø_¶óº§ Ãâ·Â¹° ó¹æÄÚµå »èÁ¦ var val = prcpqty +" "+model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpnm"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/sndprcp"+sndprcpcnt, tmppc); sndprcpcnt++; } cnt++; iPoint = j ; } else { iPageCnt++; iPoint = j - 1; break; } if(cnt == 12){ // 20101030_laboru_°æºÏ´ëº´¿ø_¶óº§ ÇÑ ÆäÀÌÁö¿¡ ÃÖ°í 8°³¿¡¼­ 14°³ Ãâ·ÂµÇ°Ô º¯°æ iPageCnt++; break; } } sndprcpcnt = 1; } else if (drugkindnm == "[³»º¹¾à]"){ var lbltims =0; lbl_tims = mthd2.split(","); if ( mthdcd == "ZZZ" ){ lbltims = tims; } else if ( mthd3.indexOf("Ãëħ") > -1 ) { lbltims = lbl_tims.length +1; } else if(mthd2.indexOf("¸¶´Ù") > -1){ lbltims = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcptims"); } else { lbltims = lbl_tims.length; } tims = lbltims; model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/samedrugflag", "Y"); if(lbltims == 1) { if(mthd2.indexOf("¸¶´Ù") == -1) { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", mthddayno + "ÀÏ "+lbltims+ "ȸ 1Æ÷¾¿ "+dayno+"ÀϺÐ"); } else { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", mthddayno + "ÀÏ "+tims+ "ȸ 1Æ÷¾¿ "+dayno+"ÀϺÐ"); } } else { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", mthddayno + "ÀÏ "+lbltims+ "ȸ 1Æ÷¾¿ "+dayno+"ÀϺÐ"); } model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts", model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd1") + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd2") + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd3") + "\n" + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4")); for(var j = iPoint; j <= getNodesetCount("/root/main/lbllist/lbllist") ; j++){ var drugkind2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/drugkindnm"); var dayno2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpdayno"); var mthd4 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd1"); var mthd5 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd2"); var mthd6 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd3"); if((drugkind1 == drugkind2) && (dayno1 == dayno2) && (mthd1 == mthd4 && mthd2 == mthd5 && mthd3 == mthd6) && !fChkSumcls(j)){ var lblcnts2 = model.getValue("/root/main/lbllist/lbllist["+ j +"]/lblcnts2"); var prcpqty = model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty")/model.getValue("/root/main/lbllist/lbllist["+j+"]/prcptims"); prcpqty = Math.ceil( prcpqty * tims*1000)/1000 ; if(lblcnts2.length > 0) { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/lblcnts2", model.getValue("/root/main/prnt/lbllist["+iPageCnt+"]/lblcnts2") + "\n" + lblcnts2); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/lblcnts2flag", "Y"); } if(sndprcpcnt > 12) { var prePage = iPageCnt; iPageCnt++; sndprcpcnt = 1; model.makeNode("/root/main/prnt/lbllist[" +iPageCnt+ "]"); model.copyNode("/root/main/prnt/lbllist[" +iPageCnt+ "]", "/root/main/prnt/lbllist["+prePage+"]"); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/lblcnts2flag", "N"); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp1", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp2", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp3", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp4", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp5", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp6", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp7", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp8", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp9", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp10", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp11", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp12", ""); } var val = prcpqty +" "+model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpnm"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/sndprcp"+sndprcpcnt, val); sndprcpcnt++; iPoint = j; } else { iPageCnt++; iPoint = j - 1; break; } } } } /** * 20101231 À̼±°æ Ãß°¡ : °æºÏ´ëº´¿ø º´µ¿¾à±¹¿¡¼­ ¿Ü·¡È¯ÀÚó¹æÀ» Å«¶óº§(º»¿ø)À¸·Î Ãâ·ÂÇÔ */ function fGnrlPrint2() { var cnt = 0; var ordCnt = 0; var tmppc = ""; var sndprcpcnt = 1; //¶óº§³»¿ë var drugkindnm = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugkindnm"); var qty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqty"); var dayqty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayprcpqty"); var tims = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcptims"); var dayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdayno");//ó¹æÀϼö var mthddayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayno"); //¿ë¹ýÀϼö //¾àÄÚµå Ãâ·Â var drugkind1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugkindnm"); var dayno1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdayno"); var mthd1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd1"); var mthd2 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd2"); var mthd3 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd3"); var mthdcd = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcd"); if( drugkindnm != "[³»º¹¾à]") { if (drugkindnm == "[ÁÖ»ç¾à]"){ model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts", model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4")); } else if (drugkindnm == "[¿Ü¿ë¾à]"){ var val = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); val += "\n" + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts" , val); } model.setValue("/root/main/prnt/lbllist["+iPageCnt+"]/drugno", "<" + model.getValue("/root/main/prnt/lbllist["+iPageCnt+"]/drugno") + ">"); for(var j = iPoint; j <= getNodesetCount("/root/main/lbllist/lbllist") ; j++){ var drugkind2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/drugkindnm"); var dayno2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpdayno"); var mthd4 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd1"); var mthd5 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd2"); var mthd6 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd3"); if((drugkind1 == drugkind2) && (dayno1 == dayno2) && (mthd1 == mthd4 && mthd2 == mthd5 && mthd3 == mthd6) && !fChkSumcls(j)){ var prcpqty = model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty")/model.getValue("/root/main/lbllist/lbllist["+j+"]/prcptims"); prcpqty = Math.ceil( prcpqty * tims*1000)/1000 ; // 2010.03.18 pymi if(!fChkSumcls(j) && model.getValue("/root/send/prcpinfo/lbl5") == "Y") { var val = ""; } else { // 20101027_laboru_°æºÏ´ëº´¿ø_¶óº§ Ãâ·Â¹° ó¹æÄÚµå »èÁ¦ var val = prcpqty +" "+model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpnm"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/sndprcp"+sndprcpcnt, tmppc); sndprcpcnt++; } cnt++; iPoint = j ; } else { iPageCnt++; iPoint = j - 1; break; } if(cnt == 12){ // 20101030_laboru_°æºÏ´ëº´¿ø_¶óº§ ÇÑ ÆäÀÌÁö¿¡ ÃÖ°í 8°³¿¡¼­ 14°³ Ãâ·ÂµÇ°Ô º¯°æ iPageCnt++; break; } } sndprcpcnt = 1; } else if (drugkindnm == "[³»º¹¾à]"){ var lbltims =0; lbl_tims = mthd2.split(","); if ( mthdcd == "ZZZ" ){ lbltims = tims; } else if ( mthd3.indexOf("Ãëħ") > -1 ) { lbltims = lbl_tims.length +1; } else if(mthd2.indexOf("¸¶´Ù") > -1){ lbltims = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcptims"); } else { lbltims = lbl_tims.length; } tims = lbltims; model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/samedrugflag", "Y"); if(lbltims == 1) { if(mthd2.indexOf("¸¶´Ù") == -1) { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", lbltims+ "ȸ "+dayno+"ÀϺÐ"); } else { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", tims+ "ȸ "+dayno+"ÀϺÐ"); } } else { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", lbltims+ "ȸ "+dayno+"ÀϺÐ"); } model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/mthdcnts", model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd1") + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd2") + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd3") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4")); model.setValue("/root/main/prnt/lbllist["+iPageCnt+"]/drugno", "<" + model.getValue("/root/main/prnt/lbllist["+iPageCnt+"]/drugno") + ">"); for(var j = iPoint; j <= getNodesetCount("/root/main/lbllist/lbllist") ; j++){ var drugkind2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/drugkindnm"); var dayno2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpdayno"); var mthd4 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd1"); var mthd5 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd2"); var mthd6 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd3"); if((drugkind1 == drugkind2) && (dayno1 == dayno2) && (mthd1 == mthd4 && mthd2 == mthd5 && mthd3 == mthd6) && !fChkSumcls(j)){ var lblcnts2 = model.getValue("/root/main/lbllist/lbllist["+ j +"]/lblcnts2"); var prcpqty = model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty")/model.getValue("/root/main/lbllist/lbllist["+j+"]/prcptims"); prcpqty = Math.ceil( prcpqty * tims*1000)/1000 ; if(lblcnts2.length > 0) { model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/lblcnts2", model.getValue("/root/main/prnt/lbllist["+iPageCnt+"]/lblcnts2") + "\n" + lblcnts2); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/lblcnts2flag", "Y"); } if(sndprcpcnt > 12) { var prePage = iPageCnt; iPageCnt++; sndprcpcnt = 1; model.makeNode("/root/main/prnt/lbllist[" +iPageCnt+ "]"); model.copyNode("/root/main/prnt/lbllist[" +iPageCnt+ "]", "/root/main/prnt/lbllist["+prePage+"]"); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/lblcnts2flag", "N"); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp1", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp2", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp3", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp4", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp5", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp6", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp7", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp8", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp9", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp10", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp11", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCnt+ "]/sndprcp12", ""); } var val = prcpqty +" "+model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpnm"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/sndprcp"+sndprcpcnt, val); sndprcpcnt++; iPoint = j; } else { iPageCnt++; iPoint = j - 1; break; } } } } /** * */ function fGetImage() { var pImage = ""; iImageCnt++; if(iImageCnt > 99){ pImage = "GRAPH"+iImageCnt; } else if(iImageCnt > 9){ pImage = "GRAPH0"+iImageCnt; } else { pImage = "GRAPH00"+iImageCnt; } return pImage } /** * */ function fDateFormat(sDD) { return sDD.substr(0,4)+"/"+sDD.substr(4,2)+"/"+sDD.substr(6,2); } /** * */ function fChkFloat(qty) { var fQty = parseFloat(qty); var fRst = ""; if(fQty%1 == 0){ fRst = parseInt(qty); } else { fRst = qty; } return fRst; } /** * */ function fChkSumcls(cnt) { var chk = false; var sSumcls = model.getValue("/root/main/lbllist/lbllist["+cnt+"]/sumcls"); var sSnglyn = model.getValue("/root/main/lbllist/lbllist["+cnt+"]/atcifsnglyn"); var sDrugindependpackflag = model.getValue("/root/main/lbllist/lbllist["+cnt+"]/drugindependpackflag"); var atcyn = model.getValue("/root/main/lbllist/lbllist["+cnt+"]/atcyn"); var atc_drugkind = model.getValue("/root/main/lbllist/lbllist["+cnt+"]/atc_drugkind"); var prcpnm = model.getValue("/root/main/lbllist/lbllist["+cnt+"]/prcpnm"); if(sSumcls == "DI" || sSumcls == "DS"|| sSumcls == "DX"|| sSumcls == "DT" || sSumcls == "DM" || sSumcls == "IH"|| sSumcls == "IO" || sSumcls == "DG" // 20110512_laboru_pack Ãß°¡ || sSumcls == "IS"|| sSumcls == "IX"|| sSumcls == "X" || sSumcls == "ZZZ" || sSumcls == "A10PQ" || sSumcls == "I"){ chk = true; } if ( sSumcls == "D" && sSnglyn =="Y" ) { chk = true; } if ( sDrugindependpackflag =="Y"){ chk = true; } //2013³â 8¿ù1ÀÏ ±èÄ¡±¹ ATCÀü¼Û½Ã ŰÁö ¾Ê´Â ¹Í½º ¹øÈ£ 70ÀÌÇÏ µ¥ÀÌŸ´Â ´Üµ¶ ¶óº§ Ãâ·Â µÇ°Ô if ( atcyn =="N" ){ chk = true; } // alert(" fChkSumcls : " + prcpnm +" : " + atc_drugkind +" : " + atcyn +" : " + chk ) return chk; } /** * ¹°¾à¶óº§Ãâ·Â */ function fLiquidLBLPrint() { var reprint=""; for(iPoint = 1; iPoint <= getNodesetCount("/root/main/lbllist/lbllist") ; iPoint++){ if ( model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/lblprnttims")>0 ){ reprint ="(Àç)"; } //½ÃÀÛ(X, Y) sSndMsg += astfStartFormat(0, 0); var sDD = getCurrentDate(); var sTM = getCurrentTime(); model.makeNode("/root/main/prnt/lbllist[" +iPageCnt+ "]"); model.copyNode("/root/main/prnt/lbllist[" +iPageCnt+ "]", "/root/main/lbllist/lbllist["+iPoint+"]"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/fprnttime", "Ãâ ·Â : " + fPrntTime(sDD, sTM)); model.setValue("/root/main/prnt/lbllist["+iPageCnt+"]/rcptdd", "¼ö ³³ : " + fDateFormat(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/rcptdd"), "MD")); var tpid = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/pid")+" ("+model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugno")+reprint+")" ; model.setValue("/root/main/prnt/lbllist["+iPageCnt+"]/pid" , tpid); //¶óº§³»¿ë var dayqty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayprcpqty"); var qtyunit = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqtyunit"); var tims = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcptims"); var dayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdayno"); var qty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqty"); var totqty = parseInt(dayqty)*parseInt(dayno); //1ÀÏ Xȸ Xml¾¿ XÀϺРqty = Math.round(qty*10) / 10; var mthd1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1"); var mthd2 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2"); var mthd3 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); //¿ë¹ý if ( mthd1 == "" && mthd2 == "" && mthd3 == "" ){ var tunit = "1ÀÏ "+tims+"ȸ "+qty+qtyunit+"¾¿ "+dayno+"ÀϺÐ" + "\n" + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/abbrnm"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", tunit); } else { var tunit = "1ÀÏ "+tims+"ȸ "+qty+qtyunit+"¾¿ "+dayno+"ÀϺÐ" + "\n" + mthd1 + " " + mthd2 + " " + mthd3; model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/unit", tunit); } //¾àǰÄÚµå + Ãѿ뷮 + ¾àǰ¸í var prcpnm = "[ "+model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpcd")+" ] "+ parseFloat(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/totdrugqty")) + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpnm"); model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/prcpcd", prcpnm); //º¸°ü¹æ¹ý var lblcnts1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/lblcnts1"); if ( lblcnts1 == "" ) { if(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/keepmthd") != ""){ model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/keepmthd", "< "+model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/keepmthd")+" >",""); } } else { //ÁÖÀÇ»çÇ× model.makeValue("/root/main/prnt/lbllist["+iPageCnt+"]/keepmthd", lblcnts1); } iPageCnt++; } makeReportPreview(0,0,10, 10, ""); model.makeNode("/root/main/barcdprntsetup/prntsetupinfo"); model.copyNode("/root/main/barcdprntsetup/prntsetupinfo","/root/init/barcdprntsetup/prntsetupinfo"); fPrintRexbar("RFADT61301"); } function fPrntTime(sDD, sTM) { return sDD.substr(4,2)+" / "+sDD.substr(6,2)+" "+sTM.substr(0,2)+":"+sTM.substr(2,2)+":"+sTM.substr(4,2); } /** * 20101224 À̼±°æ Ãß°¡ * °æºÏ´ëº´¿ø ¿Ü·¡ Å«¶óº§ Ãâ·Â ¾ç½Ä */ function fLBLPrint_knu(type) { /* ¶óº§ Sorting ·ÎÁ÷ < Á¤Á¦ > 1. ´Üµ¶Á¶Á¦´Â µû·Î ÇÑÀåÀ¸·Î 2. ¿ë¹ýÄÚµå 5ÀÚ¸®ÀÎ °ÍÁß 5¹øÂ° ÀÚ¸® °ª(½ÄÈÄ 10ºÐ, ½ÄÀü 10ºÐ µî..)ÀÌ °°Àº °Í³¢¸® ÇÑÀåÀ¸·Î 3. ±×¿Ü ³ª¸ÓÁö´Â ¿ë¹ýÄÚµå °°Àº °°Àº °Í³¢¸® ÇÑÀåÀ¸·Î < »êÁ¦ > 1.¿ë¹ýÄÚµå Àüü°¡ °°Àº °Í³¢¸® ÇÑÀåÀ¸·Î */ var prcpnum = ""; var prcpCnt = 14; // 20101030_laboru_°æºÏ´ëº´¿ø_¶óº§ ÇÑ ÆäÀÌÁö¿¡ ÃÖ°í 8°³¿¡¼­ 14°³ Ãâ·ÂµÇ°Ô º¯°æ var sDD = getCurrentDate(); var sTM = getCurrentTime(); for(iPoint = 1; iPoint <= getNodesetCount("/root/main/lbllist/lbllist") ; iPoint++){ var lblprntyn = model.getValue("/root/main/lbllist/lbllist["+ iPoint+"]/lblprntyn"); if(lblprntyn == "N") { model.removeNodeset("/root/main/lbllist/lbllist["+ iPoint +"]"); } else { model.makeNode("/root/main/prnt/lbllist[" +iPageCntO+ "]"); model.copyNode("/root/main/prnt/lbllist[" +iPageCntO+ "]", "/root/main/lbllist/lbllist["+iPoint+"]"); if ( model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/lblprnttims")>0 ){ model.setValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/drugno", model.getValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/drugno") + "(Àç)"); } //¹ÙÄÚµå(º¯È¯) // 20101030_laboru_°æºÏ´ëº´¿ø_atc drugkind ±¸ºÐÀÚ¿¡ ÀÇÇÑ ¹ÙÄÚµå Ãâ·Â Çü½Ä // t : "ATC" , p : »êÁ¦ ¹ÙÄÚµå, e : blank if(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/atc_drugkind") == "t" && model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/atcyn") == "Y" ) { //2013³â 8¿ù1ÀÏ ±èÄ¡±¹ model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/barcode2", "ATC"); model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/barcode", ""); } else if(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/atc_drugkind") == "p") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/barcode", model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/barcode")); } else { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/barcode", ""); } var sumcls = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/sumcls"); var mthdcd = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcd"); if (mthdcd == "ZZZ" || mthdcd == "A10PQ") { //±âŸ¿ë¹ýÀ̰ųª 'ÇÊ¿ä½Ã º¹¿ëÇϽʽÿÀ' ¿ë¹ýÀÎ °æ¿ìµµ ´Üµ¶¶óº§Ãâ·Â sumcls = mthdcd; } //º¹¿ë±â°£ °è»ê½Ã ¼ö³³ÀÏÀÚ¸¦ ±âÁØÀ¸·Î Çϰí Ãâ·Â rcptdd = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/rcptdd"); if(type == "S") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/fprnttime", "Ãâ ·Â : " + fPrntTime(sDD, sTM)); model.setValue("/root/main/prnt/lbllist["+iPageCntO+"]/prcpdd", "ó ¹æ : " + fDateFormat(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdd"), "MD")); } //º¸°ü¹æ¹ý °í°¡ Ãâ·Â var sKeepmthd = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/keepmthd"); var sExpnyn = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/expnyn"); var sExpnnm = ""; if(sExpnyn == "Y") sExpnnm = "°í°¡"; if(sKeepmthd != ""){ //sSndMsg += astfPrintOut(20, 180, 3, "<"+sKeepmthd+">",""); model.setValue("/root/main/prnt/lbllist["+iPageCntO+"]/keepmthd", "<"+sKeepmthd+">" ); } if(sExpnnm != ""){ //sSndMsg += astfPrintOut(135, 180, 3, "<"+sExpnnm+">",""); model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/expnnm", "<"+sExpnnm+">" ); } //20101229 À̼±°æ ¼öÁ¤ : atc±¸ºÐÀÌ »êÁ¦¾Æ´Ò¶§¸¸ ´Üµ¶¶óº§ Àû¿ë var atc_drugkind = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/atc_drugkind"); var sDrugKindcd = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugkindnm"); var sMixno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpmixno"); if(type == "S" && sDrugKindcd == "[ÁÖ»ç¾à]"){ if(sMixno != "-"){ fMixLBL_knu(); } else if(fChkIndependInj(iPoint)){ //alert(iPoint + "´Üµ¶ÁÖ»ç"); fIndependPrint_knu(type); } else { //alert(iPoint + "º¹ÇÕÁÖ»ç"); fInjDrugLBL_knu(); } } else if(atc_drugkind != "p" && fChkSumcls(iPoint)){ //´Üµ¶¶óº§Ãâ·Â // alert(iPoint + " Á¤Á¦ ´Üµ¶¶óº§"); fIndependPrint_knu(type); } else { //ÀϹݶóº§Ãâ·Â // alert(iPoint + " º¹ÇÕ¶óº§"); fGnrlPrint_knu(type); } } // 20110519_laboru } model.makeNode("/root/main/barcdprntsetup/prntsetupinfo"); model.copyNode("/root/main/barcdprntsetup/prntsetupinfo","/root/init/barcdprntsetup/prntsetupinfo"); if(getNodesetCount("/root/main/prnt/lbllist") > 0) { if(type == "L1") { //º»¿øÅ«¶óº§ model.removeNodeset("/root/main/lbllist"); model.makeNode("/root/main/lbllist"); model.copyNode("/root/main/lbllist", "/root/main/prnt"); makeReportPreview(0,0,10, 10, ""); fPrintRexbar("RFADT62303"); } else if(type == "L"){ //Å«¶óº§ makeReportPreview(0,0,10, 10, ""); if (model.getValue("/root/send/prcpinfo/lblkindflag") == "L2"){//°æºÏ´ëº´¿ø Å«¶óº§(º»¿ø_¿Ü·¡¾à±¹ ) ±èÄ¡±¹ 20120808 fPrintRexbar("RFADT61302"); } else { fPrintRexbar("RFADT61300") } } else if(type == "LJ"){ //ÁÖ»çÅ«¶óº§ ///2015³â 3¿ù11ÀÏ ±èÄ¡±¹ ÁÖ»çÅ«¶óº§ Flag ¸¸µë // alert("row 917 SPADT61304.js "+ model.getValue("/root/send/prcpinfo/lblkindflag") ) makeReportPreview(0,0,10, 10, ""); if (model.getValue("/root/send/prcpinfo/lblkindflag") == "L2"){//°æºÏ´ëº´¿ø Å«¶óº§(º»¿ø_¿Ü·¡¾à±¹ ) ±èÄ¡±¹ 20120808 fPrintRexbar("RFADT61302"); } else { //fPrintRexbar("RFADT61300") fPrintRexbar("RFADT61305"); } } else if(type == "S") { //ÀÛÀº¶óº§ model.removeNodeset("/root/main/lbllist"); model.makeNode("/root/main/lbllist"); model.copyNode("/root/main/lbllist", "/root/main/prnt"); makeReportPreview(0,0,10, 10, ""); fPrintRexbar("RFADT62302"); } } } /** * 20101224 À̼±°æ Ãß°¡ * ¿Ü·¡ Å«¶óº§ Ãâ·Â ¾ç½Ä(´Üµ¶) */ function fIndependPrint_knu(type) { //¶óº§³»¿ë var drugkindnm = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugkindnm"); var qty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqty"); var dayqty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayprcpqty"); var qtyunit = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqtyunit"); var tims = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcptims"); var dayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdayno"); //ó¹æÀϼö var mthddayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayno"); //¿ë¹ýÀϼö var packunit = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/packunit"); //¾àǰ¸¶½ºÅÍÀÇ ¼ö·®´ÜÀ§ //2013³â 8¿ù1ÀÏ ±èÄ¡±¹ ATCÀü¼ÛµÇÁö ¾Ê´Â Á¤Á¦¾à ó¸®À§ÇØ Ãß°¡ ~~~~ ¿©±â¿¡¼­ var atcyn = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/atcyn"); //ATC¶óº§ YN var prcpnm = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpnm"); //ó¹æ ¸íĪ var prcpmixno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpmixno"); //ºÐ¸®¹øÈ£ //2013³â 8¿ù1ÀÏ ±èÄ¡±¹ ATCÀü¼ÛµÇÁö ¾Ê´Â Á¤Á¦¾à ó¸®À§ÇØ Ãß°¡ ~~~ ±îÁö var mth = ""; //¿ë¹ý³»¿ë¼³¸í var mth_qty = ""; // ³¯¼ö ³»¿ë¼³¸í ±èÄ¡±¹ 20120808 'L2' ó¸® //°æºÏ´ëº´¿ø Å«¶óº§(º»¿ø_¿Ü·¡¾à±¹ ) ±èÄ¡±¹ 20120808 'L2' ó¸® var hostype = model.getValue("/root/send/prcpinfo/lblkindflag"); if(mthddayno == "" || mthddayno == 0) { mthddayno = 1; } //alert("type: " + type + " " + prcpnm + " " + hostype + " " + packunit + " " + drugkindnm) //alert("hostype: " + hostype ) //alert("drugkindnm : " + drugkindnm ) //alert("packunit : " + packunit ) //alert("atcyn : " + atcyn ) //alert("prcpnm : " + prcpnm ) if (drugkindnm == "[ÁÖ»ç¾à]"){ //¿ë¹ý2 model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/mthdcnts", model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4")); } else if (drugkindnm == "[¿Ü¿ë¾à]"){ var val = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/mthdcnts" , val); } else if (drugkindnm == "[³»º¹¾à]"){ var sumcls = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/sumcls"); // alert("sumcls : " + sumcls ) if( sumcls == "DM" || sumcls == "DS" || sumcls == "DT" || sumcls == "DX" || sumcls == "DG" ){ //20091110 À̼±°æ ¼öÁ¤ : ¶óº§±×·ìÀÌ ¸¶¾à(°æ±¸), ¼öÁ¦, ptp, ±âŸ¾àÀϰæ¿ì ¾àǰ¸¶½ºÅÍÀÇ ¼ö·®´ÜÀ§¸¦ Ãâ·Â 20110512_laboru_pack Ãß°¡ var tmpqty = Math.round(qty * 10) / 10; if(packunit == "T" || packunit == "C") { if(type == "L1") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", tims+"ȸ "+(dayno*mthddayno)+"ÀϺÐ"); mth = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " " +fChkFloat(qty)+"Á¤¾¿ "+ model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } else if(type == "L") { if (hostype == "L2") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+(dayno*mthddayno)+"ÀϺÐ"); mth_qty = fChkFloat(qty)+"Á¤¾¿ " ; } else { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+fChkFloat(qty)+"Á¤¾¿ "+(dayno*mthddayno)+"ÀϺÐ"); } } else if(type == "S") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+fChkFloat(qty)+"Á¤¾¿ "+(dayno*mthddayno)+"ÀϺÐ"); } } else { if(packunit == "cap" || packunit == "tab" ) { packunit = "¾Ë"; // 20110413_laboru_°æºÏ´ëº´¿ø_´ÜÀ§°¡ cap, tab À϶§ ¾Ë·Î ¹Ù²Ù±â } // alert(" prcpnm : " + packunit ) if(type == "L1") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", tims+"ȸ "+(dayno*mthddayno)+"ÀϺÐ"); mth = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " " +fChkFloat(tmpqty)+ packunit +"¾¿ "+ model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } else if(type == "L") { if (hostype == "L2") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+(dayno*mthddayno)+"ÀϺÐ"); mth_qty = fChkFloat(tmpqty)+ packunit +"¾¿ " ; } else { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+fChkFloat(tmpqty)+ packunit +"¾¿ "+(dayno*mthddayno)+"ÀϺÐ"); } } else if(type == "S") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+fChkFloat(tmpqty)+ packunit +"¾¿ "+(dayno*mthddayno)+"ÀϺÐ"); } } } else { if(type == "L1") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", tims+"ȸ "+(dayno*mthddayno)+"ÀϺÐ"); mth = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " " +fChkFloat(qty)+"Æ÷[Á¤]¾¿ "+ model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } else if(type == "L"){ if (hostype == "L2") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+(dayno*mthddayno)+"ÀϺÐ"); //2013³â 8¿ù1ÀÏ ±èÄ¡±¹ ATCÀü¼ÛµÇÁö ¾Ê´Â Á¤Á¦¾à Áß ¹Í½º ¹øÈ£ 70ÀÌÇÏ Ã³¸®À§ÇØ Ãß°¡ if (atcyn == "N" && prcpmixno <= 70 ) { mth_qty = fChkFloat(qty)+"¾Ë¾¿ " ; }else{ mth_qty = fChkFloat(qty)+"Æ÷[Á¤]¾¿ " ; } // alert(" mth_qty: " + mth_qty ); } else { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+fChkFloat(qty)+"Æ÷[Á¤]¾¿ "+(dayno*mthddayno)+"ÀϺÐ"); } } else if(type == "S"){ model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+tims+"ȸ "+fChkFloat(qty)+"Æ÷[Á¤]¾¿ "+(dayno*mthddayno)+"ÀϺÐ"); } } if(type == "L" || type == "S") { mth = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); // alert("¸¶ÀÚ¸· mth : " + mth); //if(mth.replace(/ /g,"") != "" ) { mth += "¿¡ "; }; var strchk = mth.substring(mth.length - 1, mth.length); //alert(strchk); if(strchk == "ÈÄ" || strchk == "½Ã" || strchk == "°£" || strchk == "Áß" || strchk == "ºÐ") { mth += "¿¡ "; } else { mth += " "; } /////º»¿ø ¿Ü·¡ ¾à±¹ Å«¶óº§Àº ¼ö·®À» ÈÄ¿¡ º°µµ·Î ³ªÅ¸³»±â 2012.8.29 ±èÄ¡±¹ if (hostype == "L2") { mth += mth_qty ; } // alert(" 10: " + mth); mth += model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/mthdcnts", mth); // alert("¸¶Áö¸· µÕ: " + mth); } // 2010.03.18 pymi if(!fChkSumcls(iPoint) && model.getValue("/root/send/prcpinfo/lbl5") == "Y") { var val = ""; } else { // 20101027_laboru_°æºÏ´ëº´¿ø_¶óº§ Ãâ·Â¹° ó¹æÄÚµå »èÁ¦ var val = parseFloat(model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/totdrugqty")) +" "+model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpnm"); if(sumcls == "DT" ) { //20100707_ laboru_PTP ¶óº§ Ç¥½Ã val += " (PTP)"; } model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/prcpcd", val); } // (e) iPageCntO++; } /** * 20101224 À̼±°æ Ãß°¡ * ¿Ü·¡ Å«¶óº§ Ãâ·Â ¾ç½Ä(ÀϹÝ) */ function fGnrlPrint_knu(type) { var cnt = 0; var ordCnt = 0; var tmppc = ""; var sndprcpcnt = 1; //¶óº§³»¿ë var drugkindnm = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugkindnm"); var qty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpqty"); var dayqty = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayprcpqty"); var tims = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcptims"); var dayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdayno");//ó¹æÀϼö var mthddayno = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/dayno"); //¿ë¹ýÀϼö //¾àÄÚµå Ãâ·Â var drugkind1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/drugkindnm"); var dayno1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpdayno"); var mthd1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd1"); var mthd2 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd2"); var mthd3 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthd3"); var mthdcd1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcd"); var mthdcdfive1 = mthdcd1.substring(4,5); var mthdcdthree1 = mthdcd1.substring(2,3); var cntpatt1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/cntpatt"); var mthdcntsno = iPageCntO; var mthdcnts_end = ""; //¿ë¹ý³»¿ë¼³¸í var mthdcd5nm = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcd5nm"); //¾àǰÄÚµå5¹øÂ°ÀÚ¸®¸íĪ (¿ë¹ý¼¼ºÐ·ù) var prcpmixno1 = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcpmixno"); //°æºÏ´ëº´¿ø Å«¶óº§(º»¿ø_¿Ü·¡¾à±¹ ) ±èÄ¡±¹ 20120808 'L2' ó¸® var hostype = model.getValue("/root/send/prcpinfo/lblkindflag"); if(mthddayno == "" || mthddayno == 0) { mthddayno = 1; } //alert(drugkindnm + " " + mthdcd + " " + mthdcdfive1); if( drugkindnm != "[³»º¹¾à]") { if (drugkindnm == "[ÁÖ»ç¾à]"){ model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/mthdcnts", model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4")); } else if (drugkindnm == "[¿Ü¿ë¾à]"){ var val = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); if(type == "L1") { val += model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } else { val += "\n" + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/mthdcnts" , val); } for(var j = iPoint; j <= getNodesetCount("/root/main/lbllist/lbllist") ; j++){ var drugkind2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/drugkindnm"); var dayno2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpdayno"); var mthd4 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd1"); var mthd5 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd2"); var mthd6 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd3"); //20101229 À̼±°æ ¼öÁ¤ : atc±¸ºÐÀÌ »êÁ¦¾Æ´Ò¶§¸¸ ´Üµ¶¶óº§ Àû¿ë var atc_drugkind = model.getValue("/root/main/lbllist/lbllist["+j+"]/atc_drugkind"); if((drugkind1 == drugkind2) && (dayno1 == dayno2) && (mthd1 == mthd4 && mthd2 == mthd5 && mthd3 == mthd6) && !(fChkSumcls(j) && atc_drugkind != "p") ){ var prcpqty = model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty")/model.getValue("/root/main/lbllist/lbllist["+j+"]/prcptims"); prcpqty = Math.ceil( prcpqty * tims*1000)/1000 ; // 2010.03.18 pymi if(!fChkSumcls(j) && model.getValue("/root/send/prcpinfo/lbl5") == "Y") { var val = ""; } else { // 20101027_laboru_°æºÏ´ëº´¿ø_¶óº§ Ãâ·Â¹° ó¹æÄÚµå »èÁ¦ var val = prcpqty +" "+model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpnm"); model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/sndprcp"+sndprcpcnt, tmppc); sndprcpcnt++; } cnt++; iPoint = j ; } else { iPageCntO++; iPoint = j - 1; break; } if(cnt == 12){ // 20101030_laboru_°æºÏ´ëº´¿ø_¶óº§ ÇÑ ÆäÀÌÁö¿¡ ÃÖ°í 8°³¿¡¼­ 14°³ Ãâ·ÂµÇ°Ô º¯°æ iPageCntO++; break; } } sndprcpcnt = 1; } else if (drugkindnm == "[³»º¹¾à]"){ var lbltims =0; var unit = ""; var mthdcnts = ""; //¿ë¹ý³»¿ë var mthdcnts1 = 0; //¾ÆÄ§ var mthdcnts2 = 0; //Á¡½É var mthdcnts3 = 0; //Àú³á var mthdcnts4 = 0; //ÃëħÀü var mthdcnts5 = 0; //Ư¼ö¿ë¹ý var mthdtims = 0; //¿ë¹ýȽ¼ö lbl_tims = mthd2.split(","); if ( mthdcd1 == "ZZZ" ){ lbltims = tims; } else if ( mthd3.indexOf("Ãëħ") > -1 ) { lbltims = lbl_tims.length +1; } else if(mthd2.indexOf("¸¶´Ù") > -1){ lbltims = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/prcptims"); } else { lbltims = lbl_tims.length; } tims = lbltims; model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/samedrugflag", "Y"); // alert("½ÃÀÛ"); if(lbltims == 1) { if(mthd2.indexOf("¸¶´Ù") == -1) { if(type == "L1") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthdcdthree1+ "ȸ "+dayno+"ÀϺÐ"); mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + "¿¡" + " 1Æ÷¾¿"; // 20110411_laboru_¿¡ Ãß°¡ //+ model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } else if(type == "L") { if (hostype == "L2") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+mthdcdthree1+ "ȸ "+dayno+"ÀϺÐ"); mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " 1Æ÷¾¿"; } else { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+mthdcdthree1+ "ȸ 1Æ÷¾¿ "+dayno+"ÀϺÐ"); mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); } //if(mthdcnts_end != "") { mthdcnts_end += "¿¡ ";} //mthdcnts_end +="\n" + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } else if(type == "S") { unit = mthddayno + "ÀÏ "+mthdcdthree1+ "ȸ "+dayno+"ÀϺÐ" + "\n"; mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); //+ model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } } else { if(type == "L1") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthdcdthree1+ "ȸ "+dayno+"ÀϺÐ"); mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3")+ "¿¡" + " 1Æ÷¾¿"; // 20110411_laboru_¿¡ Ãß°¡ //+ model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } else if(type == "L") { if (hostype == "L2") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+mthdcdthree1+ "ȸ "+dayno+"ÀϺÐ"); mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " 1Æ÷¾¿"; } else { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+mthdcdthree1+ "ȸ 1Æ÷¾¿ "+dayno+"ÀϺÐ"); mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); } //if(mthdcnts_end != ""){ mthdcnts_end += "¿¡";} //mthdncts_end += "\n" + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } else if(type == "S") { unit = mthddayno + "ÀÏ "+mthdcdthree1+ "ȸ "+dayno+"ÀϺÐ" + "\n"; mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); //+ model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } } } else { if(type == "L1") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthdcdthree1+ "ȸ "+dayno+"ÀϺÐ"); mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3")+ "¿¡" + " 1Æ÷¾¿"; // 20110411_laboru_¿¡ Ãß°¡ //+ model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } else if(type == "L") { if (hostype == "L2") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+mthdcdthree1+ "ȸ "+dayno+"ÀϺÐ"); mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3") + " 1Æ÷¾¿"; } else { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+mthdcdthree1+ "ȸ 1Æ÷¾¿ "+dayno+"ÀϺÐ"); mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); } //if(mthdcnts_end != "") {mthdcnts_end += "¿¡";} //mthdcnts_end += "\n" + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } else if(type == "S") { unit = mthddayno + "ÀÏ "+mthdcdthree1+ "ȸ "+dayno+"ÀϺÐ" + "\n"; mthdcnts_end = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); //+ model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4"); } } //alert("cntpatt1 " + cntpatt1); if(cntpatt1.substring(0,1) == "1" && mthdcnts1 == 0) { mthdcnts1++; mthdtims++; } if(cntpatt1.substring(1,2) == "1" && mthdcnts2 == 0) { mthdcnts2++; mthdtims++; } if(cntpatt1.substring(2,3) == "1" && mthdcnts3 == 0) { mthdcnts3++; mthdtims++; } if(cntpatt1.substring(3,4) == "1" && mthdcnts4 == 0) { mthdcnts4++; mthdtims++; } if(cntpatt1.substring(4,5) == "1") { mthdcnts5++; } if(mthdtims == 0) { mthdtims = mthdcdthree1; } for(var j = iPoint; j <= getNodesetCount("/root/main/lbllist/lbllist") ; j++){ var drugkind2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/drugkindnm"); var dayno2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpdayno"); var mthd4 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd1"); var mthd5 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd2"); var mthd6 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthd3"); //20101229 À̼±°æ ¼öÁ¤ : atc±¸ºÐÀÌ »êÁ¦¾Æ´Ò¶§¸¸ ´Üµ¶¶óº§ Àû¿ë var atc_drugkind = model.getValue("/root/main/lbllist/lbllist["+j+"]/atc_drugkind"); var mthdcd2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/mthdcd"); var mthdcdfive2 = mthdcd2.substring(4,5); var cntpatt2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/cntpatt"); var prcpmixno2 = model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpmixno"); //alert("cntpatt2 : " + cntpatt2); //20110102 À̼±°æ ¼öÁ¤ : ¶óº§Ãâ·Â½Ã ¹­¾îÁÖ´Â ±âÁØÀº ¿ë¹ýÄÚµå 5¹øÂ°ÀÚ¸®(½ÄÈÄ30ºÐÈÄ..)¿Í Àϼö //if((drugkind1 == drugkind2) && (dayno1 == dayno2) && (mthd1 == mthd4 && mthd2 == mthd5 && mthd3 == mthd6) // && !(fChkSumcls(j) && atc_drugkind != "p")){ if(atc_drugkind == "p") { if(dayno1 == dayno2 && (mthdcd1 == mthdcd2 || (mthdcdfive1 == "P" && (mthdcd2 == "A11D" || mthdcd2 == "A11DI") ) ) && prcpmixno1 == prcpmixno2) { var lblcnts2 = model.getValue("/root/main/lbllist/lbllist["+ j +"]/lblcnts2"); var totdrugqty = model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty"); var prcpqty = model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty")/model.getValue("/root/main/lbllist/lbllist["+j+"]/prcptims"); prcpqty = Math.ceil( prcpqty * tims*1000)/1000 ; //alert(model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpcd")+ " " + model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty")+ " " + model.getValue("/root/main/lbllist/lbllist["+j+"]/prcptims" + " " + prcpqty)); if(lblcnts2.length > 0) { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/lblcnts2", model.getValue("/root/main/prnt/lbllist["+iPageCntO+"]/lblcnts2") + "\n" + lblcnts2); model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/lblcnts2flag", "Y"); } //¿ë¹ýÄÚµåÀÇ ¾ÆÄ§, Á¡½É, Àú³á, ÃëħÀü Ãâ·Â if(cntpatt2.substring(0,1) == "1" && mthdcnts1 == 0) { mthdcnts1++; mthdtims++; } if(cntpatt2.substring(1,2) == "1" && mthdcnts2 == 0) { mthdcnts2++; mthdtims++; } if(cntpatt2.substring(2,3) == "1" && mthdcnts3 == 0) { mthdcnts3++; mthdtims++; } if(cntpatt2.substring(3,4) == "1" && mthdcnts4 == 0) { mthdcnts4++; mthdtims++; } if(cntpatt2.substring(4,5) == "1") { mthdcnts5++; } //¿ë¹ýÄÚµåÀÇ ÃÖ´ëȽ¼ö Ãâ·ÂÇÔ if(mthdtims == 0) { mthdtims = 1;} if(type == "L1") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthdtims+ "ȸ "+dayno2+"ÀϺÐ"); } else if(type == "L"){ if (hostype == "L2") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+mthdtims+ "ȸ "+dayno2+"ÀϺÐ"); } else { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+mthdtims+ "ȸ 1Æ÷¾¿ "+dayno2+"ÀϺÐ"); } } else if(type == "S") { unit = mthddayno + "ÀÏ "+mthdtims+ "ȸ "+dayno+"ÀϺÐ" + "\n"; } var val = totdrugqty +" "+model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpnm"); if(type == "L1" || type == "L") { if(sndprcpcnt > 12) { var prePage = iPageCntO; iPageCntO++; sndprcpcnt = 1; model.makeNode("/root/main/prnt/lbllist[" +iPageCntO+ "]"); model.copyNode("/root/main/prnt/lbllist[" +iPageCntO+ "]", "/root/main/prnt/lbllist["+prePage+"]"); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/lblcnts2flag", "N"); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp1", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp2", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp3", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp4", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp5", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp6", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp7", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp8", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp9", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp10", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp11", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp12", ""); } model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/sndprcp"+sndprcpcnt, val); } else if(type == "S") { if(sndprcpcnt > 4){ var prePage = iPageCntO; iPageCntO++; sndprcpcnt = 1; model.makeNode("/root/main/prnt/lbllist[" +iPageCntO+ "]"); model.copyNode("/root/main/prnt/lbllist[" +iPageCntO+ "]", "/root/main/prnt/lbllist["+prePage+"]"); } if(sndprcpcnt == 1) { model.setValue("/root/main/prnt/lbllist["+iPageCntO+"]/prcpnm", val); } else { model.setValue("/root/main/prnt/lbllist["+iPageCntO+"]/prcpnm", model.getValue("/root/main/prnt/lbllist["+iPageCntO+"]/prcpnm") + "\n" + val); } } sndprcpcnt++; iPoint = j; } else { iPageCntO++; iPoint = j - 1; break; } } else if((mthdcdfive1 == mthdcdfive2 && dayno1 == dayno2 && !(fChkSumcls(j) && atc_drugkind != "p") && prcpmixno1 == prcpmixno2) || (dayno1 == dayno2 && mthdcdfive1 == "P" && (mthdcd2 == "A11D" || mthdcd2 == "A11DI") && prcpmixno1 == prcpmixno2 ) ) { //20110102 À̼±°æ ¼öÁ¤ : ¶óº§Ãâ·Â½Ã ¹­¾îÁÖ´Â ±âÁØÀº ¿ë¹ýÄÚµå 5¹øÂ°ÀÚ¸®(½ÄÈÄ30ºÐÈÄ..)¿Í Àϼö //¿¹¿ÜÀûÀ¸·Î Àϼö°¡ °°°í ½ÄÈÄ30ºÐ°ú ÃëħÀü¿ë¹ýÀº °°ÀÌ ¹­¾îÁÜ var lblcnts2 = model.getValue("/root/main/lbllist/lbllist["+ j +"]/lblcnts2"); var totdrugqty = model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty"); var prcpqty = model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty")/model.getValue("/root/main/lbllist/lbllist["+j+"]/prcptims"); prcpqty = Math.ceil( prcpqty * tims*1000)/1000 ; //alert(model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpcd")+ " " + model.getValue("/root/main/lbllist/lbllist["+j+"]/totdrugqty")+ " " + model.getValue("/root/main/lbllist/lbllist["+j+"]/prcptims" + " " + prcpqty)); if(lblcnts2.length > 0) { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/lblcnts2", model.getValue("/root/main/prnt/lbllist["+iPageCntO+"]/lblcnts2") + "\n" + lblcnts2); model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/lblcnts2flag", "Y"); } //¿ë¹ýÄÚµåÀÇ ¾ÆÄ§, Á¡½É, Àú³á, ÃëħÀü Ãâ·Â if(cntpatt2.substring(0,1) == "1" && mthdcnts1 == 0) { mthdcnts1++; mthdtims++; } if(cntpatt2.substring(1,2) == "1" && mthdcnts2 == 0) { mthdcnts2++; mthdtims++; } if(cntpatt2.substring(2,3) == "1" && mthdcnts3 == 0) { mthdcnts3++; mthdtims++; } if(cntpatt2.substring(3,4) == "1" && mthdcnts4 == 0) { mthdcnts4++; mthdtims++; } //¿ë¹ýÄÚµåÀÇ ÃÖ´ëȽ¼ö Ãâ·ÂÇÔ if(mthdtims == 0) { mthdtims = 1;} if(type == "L1") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthdtims+ "ȸ "+dayno2+"ÀϺÐ"); } else if(type == "L"){ if (hostype == "L2") { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+mthdtims+ "ȸ "+dayno2+"ÀϺÐ"); } else { model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/unit", mthddayno + "ÀÏ "+mthdtims+ "ȸ 1Æ÷¾¿ "+dayno2+"ÀϺÐ"); } } else if(type == "S") { unit = mthddayno + "ÀÏ "+mthdtims+ "ȸ "+dayno+"ÀϺÐ" + "\n"; } var val = totdrugqty +" "+model.getValue("/root/main/lbllist/lbllist["+j+"]/prcpnm"); if(type == "L1" || type == "L") { if(sndprcpcnt > 12) { var prePage = iPageCntO; iPageCntO++; sndprcpcnt = 1; model.makeNode("/root/main/prnt/lbllist[" +iPageCntO+ "]"); model.copyNode("/root/main/prnt/lbllist[" +iPageCntO+ "]", "/root/main/prnt/lbllist["+prePage+"]"); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/lblcnts2flag", "N"); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp1", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp2", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp3", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp4", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp5", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp6", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp7", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp8", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp9", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp10", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp11", ""); model.makeValue("/root/main/prnt/lbllist[" +iPageCntO+ "]/sndprcp12", ""); } model.makeValue("/root/main/prnt/lbllist["+iPageCntO+"]/sndprcp"+sndprcpcnt, val); } else if(type == "S") { if(sndprcpcnt > 4){ var prePage = iPageCntO; iPageCntO++; sndprcpcnt = 1; model.makeNode("/root/main/prnt/lbllist[" +iPageCntO+ "]"); model.copyNode("/root/main/prnt/lbllist[" +iPageCntO+ "]", "/root/main/prnt/lbllist["+prePage+"]"); } if(sndprcpcnt == 1) { model.setValue("/root/main/prnt/lbllist["+iPageCntO+"]/prcpnm", val); } else { model.setValue("/root/main/prnt/lbllist["+iPageCntO+"]/prcpnm", model.getValue("/root/main/prnt/lbllist["+iPageCntO+"]/prcpnm") + "\n" + val); } } sndprcpcnt++; iPoint = j; } else { iPageCntO++; iPoint = j - 1; break; } } /* ¾ÆÄ§, Á¡½É, Àú³á, ÃëħÀü ÂïÁö ¾Ê´Â ¿¹¿Ü ¿ë¹ý 1. Ƚ¼ö ÆÐÅÏ 5¹øÂ° ÀÚ¸®°ªÀÌ 1ÀÎ °æ¿ì 2. ¿ë¹ýÄÚµå 4¹øÂ° ÀÚ¸®°ªÀÌ E (½Ã°£¸¶´Ù) ÀÎ °æ¿ì 3. ¿ë¹ýÄÚµå 4¹øÂ° ÀÚ¸®°ªÀÌ D (ÀÇ»çÁö½Ã´ë·Î) ÀÎ °æ¿ì 4. ¿ë¹ýÄÚµå 5¹øÂ° ÀÚ¸®°ªÀÌ Q (ÀÇ»çÁö½Ã´ë·Î) ÀÎ °æ¿ì */ if(mthdcnts5 > 0 || mthdcd1.substring(3,4) == "E" || (mthdcd1.substring(3,4) == "D" && mthdcnts4 < 1) || mthdcd1.substring(4,5) == "Q") { mthdcnts = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); } else { if(mthdcnts1 > 0) { mthdcnts = "¾ÆÄ§ "; } if(mthdcnts2 > 0) { mthdcnts += "Á¡½É "; } if(mthdcnts3 > 0) { mthdcnts += "Àú³á "; } if(mthdcdfive1 == "P" ) { mthdcnts += "½ÄÈÄ30ºÐ"; // 20110412_laboru_ } if(mthdcdfive1 == "I" ) { mthdcnts += "½ÄÈÄÁï½Ã"; // 20110412_laboru_ } if(mthdcdfive1 == "B" ) { mthdcnts += "½ÄÀü10ºÐ"; // 20110412_laboru_ } if(mthdcdfive1 == "A" ) { mthdcnts += "½ÄÀü30ºÐ"; // 20110412_laboru_ } if(mthdcdfive1 == "C" ) { mthdcnts += "½ÄÀü1½Ã°£"; // 20110412_laboru_ } if(mthdcdfive1 == "D" ) { mthdcnts += "½ÄÀü2½Ã°£"; // 20110412_laboru_ } if(mthdcdfive1 == "E" ) { mthdcnts += "°øº¹"; // 20110412_laboru_ } if(mthdcdfive1 == "M" ) { mthdcnts += "½Ä»çµµÁß"; // 20110412_laboru_ } if(mthdcdfive1 == "W" ) { mthdcnts += "½Ä»ç¿Í ÇÔ²²"; // 20110412_laboru_ } if(mthdcdfive1 == "T" ) { mthdcnts += "½ÄÈÄ2½Ã°£"; // 20110412_laboru_ } if(mthdcdfive1 == "F" ) { mthdcnts += "½ÄÈÄ1½Ã°£"; // 20120725_laboru_ } if(mthdcdfive1 == "H" ) { mthdcnts += "ÀϾ Á÷ÈÄ"; // 20120725_laboru_ } if(mthdcdfive1 == "Q" ) { mthdcnts += "ÀÇ»çÁö½Ã´ë·Î"; // 20120725_laboru_ } if(mthdcnts_end == "ÃëħÀü¿¡") { //mthdcnts += mthdcd5nm; } else { //mthdcnts += mthdcnts_end; } if(mthdcnts4 > 0) { if(mthdcnts != "" ) { mthdcnts += "°ú ÃëħÀü¿¡ "; } else { mthdcnts = model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts1") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts2") + " " + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts3"); } } else { mthdcnts += "¿¡ "; } } for(var p = mthdcntsno ; p <= getNodesetCount("/root/main/prnt/lbllist") ; p++){ if (hostype == "L2") { mthdcnts = mthdcnts + " 1Æ÷¾¿ " ; } model.makeValue("/root/main/prnt/lbllist["+p+"]/mthdcnts", unit + mthdcnts + model.getValue("/root/main/lbllist/lbllist["+iPoint+"]/mthdcnts4")); } } }