/** - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì Áø·á - XSLT ( SSMRF001200.xrw - JScript ) * Version : - Ver.1.00.01 * °³¹ßÀÚ: À̰æÈñ * ÃÖÃÊÀÛ¼ºÀÏ: - 2008/02/28 * ¼öÁ¤ÀÌ·Â: 2009-01 - fDrawHTMLImge ÇÔ¼ö ¼öÁ¤ 2008-12-29 - getNewXSLTStyleVal() ÇÔ¼ö ³»¿¡ SSL üũ·çƾ »èÁ¦ - fDrawHTMLImge() ÇÔ¼ö ³»¿¡ °¡°èµµ ½ºÅ¸ÀÏÁ¤º¸ ¼öÁ¤ 2008-12-24 - getNewXSLTStyleVal() ÇÔ¼ö ¼öÁ¤ (- ÄÁÆ®·Ñ¿¡¼­ ÆùÆ® ¼³Á¤À» °¡Á®¿Ã¶§ '#' ¹®ÀÚ Ã³¸® Ãß°¡ - Border-Width ¼Ó¼ºÀÌ µé¾î°£ °æ¿ì vertical-align ¼Ó¼º Ãß°¡.) 2008-12-22 - fDrawHTMLGrd() ÇÔ¼ö³» ±×¸®µå ŸÀÔÀÌ X, T ÀÎ °æ¿ì ºó°ø°£ ó¸® Ãß°¡ (GetDegnitemnmTrans() ÇÔ¼ö Ãß°¡) 2008-12-19 - getNewXSLTStyleVal() ÇÔ¼ö ½ÇÇà½Ã ÄÁÆ®·ÑÀÌ ±×¸®µåÀÎ °æ¿ì Style ÁÂÇ¥ÀÇ height´Â ctrlheight·Î º¯°æ - getImgXSLTStyleVal() ÇÔ¼ö »ý¼º. 2008-12 - Å×ÀÌºí¿¡ Style ÁÂÇ¥ »ðÀÔ 2008-11-28 - CAL ¾ÆÀÌÅÛ »ý¼º½Ã ÆÄ¶ó¹ÌÅÍ º¯°æ - LBL »ý¼º½Ã label.width, height ÁÂÇ¥ Á¶°Ç º¯°æ - ¹è°æ»öÀÌ ÀÖ´Â RCT »ý¼º½Ã ÁÂÇ¥ ¼öÁ¤ - È®ÀåÄÁÆ®·Ñ »ý¼º½Ã extn.border-style, width ¼Ó¼ºÀ» ±âº»À¸·Î Ãß°¡ÇÔ - getPreXSLTStyle() ÆÄ¶ó¹ÌÅÍ º¯°æ(ctrl.width °ªÀÌ ¾ø´Â °æ¿ì width:px·Î ¶³¾îÁö´Â ¹®Á¦Á¡) 2008-11-27 - AddBorderStyle() ÇÔ¼ö ¼öÁ¤. - STX ¾ÆÀÌÅÛ »ý¼º½Ã ÁÂÇ¥ ÆÄ¶ó¹ÌÅÍ ¼öÁ¤(parseInt(ctrlPosition.width) -> 0) - getXSLTStyleVal() ÇÔ¼ö¿¡ ISU ¾ÆÀÌÅÛ Ãß°¡. - LBL ¾ÆÀÌÅÛ »ý¼º½Ã Border-StyleÀ» ¾ø¾Ö°í, left, topÁÂÇ¥¸¦ ¸ðµÎ 0À¸·Î º¯°æ - ********** STX ¾ÆÀÌÅÛ »ý¼º½Ã ÆÐÅÏÀÌ ÀÖ´Â °æ¿ì format-number¸¦ »ç¿ëÇÔ. ********* ==> ´çºÐ°£ »èÁ¦ (±âÁ¸¿¡ ÀúÀåµÈ °ªÀÌ 19.6139383202.. ÀÌ°í ÆÐÅÏÀÌ '##.99' ÀÎ °æ¿ì ¼Ò¼öÁ¡ 3°ÀÚ¸®¿¡¼­ ¹Ý¿Ã¸²µÈ °ªÀÌ ³ªÅ¸³². ÀúÀåµÈ °ªÀÌ ÆÐÅÏÀÇ ÀÚ¸®¼ö¿Í µ¿ÀÏÇÑ °æ¿ì´Â ±×´ë·Î Ç¥ÇöµÊ.) 2008-11-26 - STX ¾ÆÀÌÅÛÀÇ ´ÜÀ§ Ç¥Çö½Ã À§Ä¡ ¼öÁ¤(Divű׸¦ Ãß°¡) - STX ¾ÆÀÌÅÛÀÇ È®ÀåÄÁÆ®·Ñ Ç¥Çö ½Ã ÁÂÇ¥°¡ ¸ÂÁö ¾Ê´Â ºÎºÐÀ» ¼öÁ¤ - SSLÀÇ È®ÀåÄÁÆ®·Ñ Ç¥Çö ½Ã Border-StyleÀ» sunkenÀ¸·Î ¼öÁ¤ 2008-11-24 - STX ¾ÆÀÌÅÛ¸¦ MTXó·³ µ¿ÀÏÇÏ°Ô ¸¸µë.(Divű׸¦ Ãß°¡) - STX ¾ÆÀÌÅÛ normalize-space¸¦ Ãß°¡ - LBL ¾ÆÀÌÅÛ¿¡ Divű׸¦ Ãß°¡.(¿£Å;øÀÌ ³»¿ëÀ» ÀÔ·ÂÇÑ °æ¿ì ÁٹٲÞÀÌ µÇÁö ¾Ê´Â ¹®Á¦) 2008-11-21 - ´ÜÀ§ ű׸¦ DIV => PRE·Î º¯°æ - MTX ¾ÆÀÌÅÛ »ý¼º½Ã Pre ű׿¡ BoederStyle Á¤º¸ Ãß°¡ - CMB ¾ÆÀÌÅÛ »ý¼º½Ã Pre ű׿¡ BoederStyle Á¤º¸ Ãß°¡ 2008-11-20 - MTX ¾ÆÀÌÅÛ »ý¼º½Ã Pre ű׿¡µµ ÁÂÇ¥Á¤º¸¸¦ Ãß°¡ Ãß°¡ ÇÔ¼ö(getPreXSLTStyle) 2008-11-14 - XÃà ±×¸®µåÀÇ Ä÷³¿¡ 2ÁÙÀÌ ÀÖÀ» °æ¿ì ÇÑÁÙ·Î º¸ÀÌ´ø ¹®Á¦Á¡ ¼öÁ¤ - ÀÏ¹Ý Å×À̺íÀÇ Ä÷³ÀÌ ±â·ÏµÈ ÁÙ¸¸ º¸ÀÌ´ø ¹®Á¦Á¡ ¼öÁ¤ - ÄÞº¸ÀÇ rectermnm ¿¡ normalize-space() »ç¿ë 2008-11-12 - STX/MTX ¾ÆÀÌÅÛÀÌ µðÀÚÀμӼº¿¡ border-style:solid ¼Ó¼ºÀÌ ¾ø´Â °æ¿ì ±âº»À¸·Î ³Ö¾îÁÖµµ·Ï ¼öÁ¤ Ãß°¡ ÇÔ¼ö(fCheckDefaultDegnAttr) 2008-11-12 - ¼­½Ä³»¿¡ YÃà ´©Àû ±×¸®µå°¡ ÀÖ´Â °æ¿ì °£°Ý Á¶Á¤ ·ÎÁ÷ Ãß°¡ 2008-11-10 - YÃà ´©Àû ±×¸®µå(±×¸®µåŸÀÔ:Y) ¼öÁ¤ 2008-11-08 - ±×¸®µå »ý¼º½Ã Á¤·Ä ÅÂ±× ¼öÁ¤ - XÃà ´©Àû ±×¸®µå ¼öÁ¤ 2008-11-07 - BOL ¾ÆÀÌÅÛÀÇ µðÀÚÀξÆÀÌÅÛ¸í¿¡ '&' ±âÈ£°¡ µé¾î°£ ¼­½ÄÀÇ °æ¿ì ºä¾î¿¡¼­ º¸ÀÌÁö ¾Ê´ø ¹®Á¦Á¡ ¼öÁ¤(ÇØ´ç ¼­½Ä ÀçÀúÀå ÇÊ¿ä) 2008-10-30 - ¸ðµç ±×¸®µå(Áø´Ü¸í, ÁÖÈ£¼Ò, ¼ö¼ú¸í, ±âŸ ±×¸®µå)ÀÇ °æ¿ì ±×¸®µå³»¿ë ¹ÌÀÔ·Â ½Ã Height »çÀÌÁî°¡ ¼­½ÄµðÀÚÀο¡¼­ ÁöÁ¤ÇÑ ÄÁÆ®·ÑÀÇ »çÀÌÁî¿¡ ¸ÂÃß¾î ³ª¿À´ø ¹®Á¦ ¼öÁ¤ - Áø´Ü¸í ¼öÁ¤(R/O, ÁÖÁø´Ü Á¶°Ç) 2008-10-28 - Áø´Ü¸í¿¡¼­ ÁÖÁø´ÜÀÌ Ã¼Å©µÇÁö ¾Ê´Â ºÎºÐ ¼öÁ¤ - ¼ö¼ú¸í¿¡¼­ ¼ö¼úÄڵ尡 ³ª¿À´Â ºÎºÐ »èÁ¦ - ±×¸®µå ¹× Áø´Ü¸í, ÁÖÈ£¼Ò, ¼ö¼ú¸í¿¡¼­ Ä÷³ÀÌ °¡¿îµ¥ Á¤·ÄÀÌ µÇÁö ¾Ê´ø ¹®Á¦ ¼öÁ¤ 2008-10-27 - STX ¾ÆÀÌÅÛ Ç¥Çö ½Ã µðÀÚÀξÆÀÌÅÛ¸íÀÇ ±æÀÌ¿¡ µû¶ó INPUT¾ÆÀÌÅÛÀÇ ÁÂÇ¥°¡ ¿Å°ÜÁöµµ·Ï ¼öÁ¤ - Radio ¹öư ¹Ì ÀÛ¼º½Ã Radio ¹öưÀÌ ¾Æ¿¹ º¸ÀÌÁö ¾Ê´Â Çö»ó ¼öÁ¤ 2008-10-24 - RDO È®ÀåÄÁÆ®·Ñ À§Ä¡ ¼öÁ¤ - XÃà ´©Àû ÀÔ·Âwidth ¼öÁ¤ 2008-10-23 - ÁÖÈ£¼Ò¶õ¿¡¼­ ÁÖÈ£¼Ò Äڵ尡 ³ª¿À´Â ºÎºÐ »èÁ¦ - Áø´Ü¸íÀÇ Áø´ÜÄڵ尡 ³ª¿À´Â Ä÷³ »èÁ¦ - µðÀÚÀÎ ·¹º§ÀÌ 1ÀÎ ¾ÆÀÌÅÛÀÇ °æ¿ì ±½°Ô ¼³Á¤ 2008-10-22 - CHK ¾ÆÀÌÅÛÀÇ Ã¼Å©¹Ú½º¿¡ üũÇÑ ºÎºÐÀÌ ³ªÅ¸³ªÁö ¾Ê´Â ¹®Á¦Á¡ ¼öÁ¤ - CHK ¾ÆÀÌÅÛÀÇ Ã¼Å©¹Ú½º È®Àå ÄÁÆ®·ÑÀÇ ÁÂÇ¥ ¼öÁ¤ - MSL_SSU ¾ÆÀÌÅÛÀÇ Ã¼Å©¹Ú½º È®Àå ÄÁÆ®·Ñ¿¡ °ªÀÌ ³ª¿ÀÁö ¾Ê´Â ¹®Á¦ ¼öÁ¤ 2008-10-16 - ¼± µÎ²² ¹ÌÁöÁ¤ ½Ã 1px·Î ¼³Á¤ - STXÄÁÆ®·Ñ¿¡ ´ÜÀ§°¡ ºÙÀº °æ¿ì ´ÜÀ§ ¶ç¾î¾²±â ¼öÁ¤(space 2Ä­ Àû¿ë) - À̹ÌÁö »çÀÌÁî ¼öÁ¤ - °¡°èµµ À̹ÌÁö Áö¿ø - ¼û±ä ÄÁÆ®·Ñ(Width, Height °¡ ¸ðµÎ 0 ¶Ç´Â 1ÀÎ ÄÁÆ®·Ñ)Àº ¾Èº¸ÀÌ°Ô ¼öÁ¤ - ´ÜÀ§ ÄÁÆ®·Ñ(Width, Height °¡ ¸ðµÎ 0 ¶Ç´Â 1ÀÎ ÄÁÆ®·Ñ)µµ ¾Èº¸À̵µ·Ï ¼öÁ¤ - ±×¸®µå ŸÀÔ(T)ÀÎ °æ¿ì ¼öÁ¤. 2008-10-15 - Áø´Ü¸í ¼öÁ¤(R/O, ÁÖ ¸ðµÎ üũ°¡ ¾ÈµÈ °æ¿ì ¹®Á¦Á¡ÀÌ ¹ß°ßµÇ¾î ¼öÁ¤) - ¼û±ä ÄÁÆ®·Ñ(Width, Height °¡ ¸ðµÎ 0 ÀÎ ÄÁÆ®·Ñ)Àº ¾Èº¸ÀÌ°Ô ¼öÁ¤ 2008-10-10 - rdo, sel ÄÁÆ®·Ñ¿¡ title »èÁ¦ - css ¼öÁ¤ com->emr * ±âŸ: - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì */ var sXSLTInfo = ""; var sDivHeight = 0; var sDivWidth = 0; // Match Template ¹è¿­ var g_MatchTemplate = new Array(); // ±×¸®µå Ä÷³ ±âº» width //var g_Base_GrdColWidth = 53; var g_Base_GrdColWidth = 100; var g_Base_GrdColHeight = 23; // ÀÌÀü ¾ÆÀÌÅÛ¿¡ YÃà ´©Àû ±×¸®µå ¾ÆÀÌÅÛÀÌ ÀÖÀ» °æ¿ì ctrl.top ÁÂÇ¥¿¡ Ãß°¡·Î ´õÇØÁÖ´Â °ª. var g_PrevCtrlItemHeightSum = 0; var g_PrevCtrlItemHeight = 0; var g_PrevCtrlItemTop = 0; //var g_PrevItemCnt = 0; var g_PrevItemGrdTypeY = false; var g_PreDegnitemKind = ""; /** * @desc : À§Ä¡Á¤º¸¸¦ º¯¼ö¿¡ ÀúÀå * @ * @param : * @return : * @--------------------------------------------------- */ function Position(xObj, yObj, widthObj, heightObj){ this.x = xObj; this.y = yObj; this.width = widthObj; this.height = heightObj; } /** * @desc : Empty XSLT µðÀÚÀÎ »ý¼º * @ * @param : * @return : * @--------------------------------------------------- */ function fCreateXSLTDegnBySelfInfo() { // ÃʱâÈ­ g_PrevItemGrdTypeY = false; g_PrevCtrlItemHeightSum = 0; g_PrevCtrlItemHeight = 0; g_PrevCtrlItemTop = 0; for(var tidx = 0; tidx < g_MatchTemplate.length; tidx++) { g_MatchTemplate[tidx] = ""; } var formnm = model.getValue(g_pageInfo.formmastRef + "/formnm"); //model.getValue(""); g_pageInfo = new PAGEINFO(); sXSLTInfo = "\n"; sXSLTInfo += "\n"; sXSLTInfo += "\n"; sXSLTInfo += "\n"; sXSLTInfo += "\t\n"; if(formnm != "") sXSLTInfo += "\t\t<![CDATA[" + formnm + "]]>\n"; else sXSLTInfo += "\t\tPreview\n"; sXSLTInfo += getStyleCss(); sXSLTInfo += "\t\n"; sXSLTInfo += "\t\n"; //sXSLTInfo += "\t\t
\n"; sXSLTInfo += "\t\t
\n"; var itemcnt = getNodesetCnt(model, g_pageInfo.formdegnRef); var prevrowno = 0; // var ctrlSize = new SIZE(0, 0); var ctrlPosition = new Position(0, 0, 0, 0); var prevypos = g_pageInfo.curypos; for(var i=1; i<= itemcnt; i++) { var degnitemcd = model.getValue(g_pageInfo.formdegnRef + "[" + i + "]/degnitemcd"); var degnitemno = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/degnitemno"); var supdegnitemno = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/supdegnitemno"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/degnitemkind"); var degnitemnm = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/degnitemnm"); var degnitemlevlno = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/degnitemlevlno"); var degncntrviewflag = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/degncntrviewflag"); var instcd = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/instcd"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/degnitemlevlcd"); var unitnm = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/unitnm"); var degnxval = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/degnxval"); var degnrowno = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/degnrowno"); var itemuseflag = model.getValue(g_pageInfo.formdegnRef +"[" + i + "]/itemuseflag"); var itemattrval = model.getValue(g_pageInfo.formdegnRef + "[" + i + "]/itemattrval"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + i + "]/degnattrval"); if ( getStyleValue(degnattrval, "ctrl._printable") == "false" ) continue; if(degnitemkind == "GSU" || degnitemkind == "SSU" || degnitemkind == "ISU") continue; if(degnitemkind == "FRM" && itemuseflag != "F0") continue; // degn XÁÂÇ¥°¡ ¾ø´Â °æ¿ì if(degnxval == '') degnxval = (parseInt(degnitemlevlno) - 1) * g_pageInfo.indentwidth; // µðÀÚÀξÆÀÌÅÛ ¹øÈ£°¡ ÀÌÀü°ú ´Ù¸¥ °æ¿ì if(degnrowno != prevrowno) { g_pageInfo.curxpos = g_pageInfo.leftmargin + parseInt(degnxval); g_pageInfo.rowheight = 20; } else g_pageInfo.curypos = prevypos; var sDivEndTag = null; if(degnitemkind != "LNE" && degnitemkind != "RCT" && degnitemkind != "RRT" && degnitemkind != "ELL") { //fDrawHTMLDIV(i); //sDivEndTag = "\t\t\t
\n"; } if(degnitemkind == "RCT") { fDrawHTMLObject(i); //sDivEndTag = "\t\t\t
\n"; //sDivEndTag = null; } var visible = "visible"; if(degncntrviewflag == "A" || degncntrviewflag == "L") // ÄÁÆ®·Ñ º¸±â°ªÀÌ Àüü, ¶óº§ visible = "visible"; else visible = "hidden"; // caption ó¸® if(visible == "visible" && degnitemkind != "FRM" && degnitemkind != "LBL" && degnitemkind != "LNE" && degnitemkind != "RCT" && degnitemkind != "RRT" && degnitemkind != "ELL" && degnitemkind != "BOL") ctrlPosition = fDrawHTMLCap(0, 0, i,"label"); if(degncntrviewflag == "L") { prevypos = g_pageInfo.curypos; prevrowno = degnrowno; g_pageInfo.curxpos += parseInt(g_pageInfo.offsetx) + sDivWidth; g_pageInfo.curypos += parseInt(g_pageInfo.offsety) + sDivHeight; if(sDivEndTag != null){ sXSLTInfo += sDivEndTag; } //g_PreDegnitemKind = degnitemkind; continue; } switch(degnitemkind) { case "RDO": case "CHK" : if(ctrlPosition != null) ctrlPosition = fDrawHTMLRdo(ctrlPosition.width+g_pageInfo.offsetx, 0, i); // O break; case "CMB" : if(ctrlPosition != null) ctrlPosition = fDrawHTMLCmb(parseInt(ctrlPosition.width) +g_pageInfo.offsetx, 0, i); // O break; case "MTX": if(ctrlPosition != null) ctrlPosition = fDrawHTMLMtx(parseInt(ctrlPosition.width) +g_pageInfo.offsetx, 0, i); break; case "STX" : // 2008-11-08 // ÆÄ¶ó¹ÌÅÍ º¯°æ parseInt(ctrlPosition.width) +g_pageInfo.offsetx -> parseInt(ctrlPosition.left) // Å×½ºÆ® ¼­½Ä(BPPV Ä¡·á±â·Ï, Systemic Sclerosis) if(ctrlPosition != null) ctrlPosition = fDrawHTMLStx(0, 0, 100, ctrlPosition.height, i, "ctrl"); // O //ctrlPosition = fDrawHTMLStx(parseInt(ctrlPosition.width), 0, 100, ctrlPosition.height, i, "ctrl"); // O //ctrlPosition = fDrawHTMLStx(parseInt(ctrlPosition.width) +g_pageInfo.offsetx, 0, 100, ctrlPosition.height, i, "ctrl"); // O break; case "CAL" : if(ctrlPosition != null) ctrlPosition = fDrawHTMLStx(g_pageInfo.offsetx, 0, 100, ctrlPosition.height, i, "ctrl"); //ctrlPosition = fDrawHTMLStx(parseInt(ctrlPosition.width) +g_pageInfo.offsetx, 0, 100, ctrlPosition.height, i, "ctrl"); break; case "MSK" : if(ctrlPosition != null) ctrlPosition = fDrawHTMLMsk(parseInt(ctrlPosition.width) +g_pageInfo.offsetx, 0, 100, ctrlPosition.height, i); break; case "IMG" : if(ctrlPosition != null) ctrlPosition = fDrawHTMLImge(0, 0, i); break; case "GRD" : if(ctrlPosition != null) ctrlPosition = fDrawHTMLGrd(0, ctrlPosition.height + g_pageInfo.offsety, i); break; case "LBL": if(ctrlPosition != null) ctrlPosition = fDrawHTMLCap(0, 0, i, "label"); break; case "LNE": break; case "RCT": break; case "RRT": break; case "ELL": break; case "FRM" : break; case "FDG" : if(ctrlPosition != null) ctrlPosition = fDrawHTMLImge(0, 0, i); break; case "MSL" : case "SSL" : if(ctrlPosition != null) ctrlPosition = fDrawHTMLSel(parseInt(ctrlPosition.width) +g_pageInfo.offsetx, 0, i); break; case "BOL" : if(ctrlPosition != null) ctrlPosition = fDrawHTMLBool(parseInt(ctrlPosition.width) +g_pageInfo.offsetx, 0, i); break; case "DGN" ://Áø´Ü¸í if(ctrlPosition != null) ctrlPosition = fDrawXSLTDiagName(0, ctrlPosition.height + g_pageInfo.offsety, i); break; case "OPN" ://¼ö¼ú¸í if(ctrlPosition != null) ctrlPosition = fDrawXSLTOpName(0, ctrlPosition.height + g_pageInfo.offsety, i); break; case "CCN" ://ÁÖÈ£¼Ò if(ctrlPosition != null) ctrlPosition = fDrawXSLTCCName(0, ctrlPosition.height + g_pageInfo.offsety, i); break; } /* if(sDivEndTag != null){ sXSLTInfo += sDivEndTag; } */ if(degnitemkind != "LNE" && degnitemkind != "RCT" && degnitemkind != "RRT" && degnitemkind != "ELL") { prevypos = g_pageInfo.curypos; prevrowno = degnrowno; g_pageInfo.curxpos = parseInt(g_pageInfo.offsetx) + parseInt(sDivWidth) + 80; if(g_pageInfo.rowheight < parseInt(sDivHeight)) g_pageInfo.rowheight = parseInt(sDivHeight); g_pageInfo.curypos += parseInt(g_pageInfo.offsety) + g_pageInfo.rowheight; } //g_PreDegnitemKind = degnitemkind; } sXSLTInfo += "\t\t\n"; sXSLTInfo += "\t\n"; sXSLTInfo += "\n"; sXSLTInfo += "
\n"; for(var idx = 0; idx < g_MatchTemplate.length; idx++) { sXSLTInfo += g_MatchTemplate[idx]; } sXSLTInfo += "
"; return sXSLTInfo; } /** * @desc : DIV »ý¼º * @ * @param: 1) row - ÁÙ * @return : * @--------------------------------------------------- */ function fDrawHTMLDIV(row) { var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef +"[" + row + "]/degnitemkind"); var divid = "DIV_"+ degnitemno; var ctrlPosition = new Position(g_pageInfo.curxpos, g_pageInfo.curypos, 400, g_pageInfo.ctrlheight); var sStyle = ""; sStyle = "style=\"position:absolute; left:0px; top:0px; border-style:none; \""; /* if(degnitemkind != "CHK" && degnitemkind != "RDO") sStyle = "style=\"position:absolute; left:0px; top:0px; border-style:none; \""; else sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "grp"); */ sXSLTInfo += "\t\t\t
\n"; sDivWidth = ctrlPosition.width; sDivHeight = ctrlPosition.height; } /** * @desc : ¼±, »ç°¢Çü, µÕ±Ù»ç°¢Çü, Ÿ¿ø »ý¼º * @ * @param: 1) row - ÁÙ * @return : * @Å×½ºÆ® ¼­½Ä: 2640 * @--------------------------------------------------- */ function fDrawHTMLObject(row) { var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef +"[" + row + "]/degnitemkind"); var divid = "DIV_"+ degnitemno; var ctrlid = ""; var ctrlPosition = new Position(g_pageInfo.curxpos, g_pageInfo.curypos, 400, g_pageInfo.ctrlheight); var sShapeStyle = ""; //getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl"); if(degnitemkind == "RCT") { ctrlid = "SHP_" + degnitemno; } else if(degnitemkind == "LNE") { ctrlid = "LINE" + degnitemno; } sShapeStyle = getShapeXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); var preid= "RCT_" + degnitemno; sXSLTInfo += "\t\t\t\t
\n";
	/*
	sDivWidth = ctrlPosition.width;
	sDivHeight = ctrlPosition.height;
		
	var tmpLeft = getStyleValue(degnattrval, "left", "ctrl");
	var tmpTop = getStyleValue(degnattrval, "top", "ctrl");
	var tmpWidth = getStyleValue(degnattrval, "width", "ctrl");
	var tmpHeight = getStyleValue(degnattrval, "height", "ctrl");	
		
	sDivStyle = "style=\"position:absolute; left:" + tmpLeft + "px; top:" + tmpTop + "px; width:" + tmpWidth + "px; height:"+ tmpHeight + "px; border-style:solid; border-width:1; \"";
	
	sXSLTInfo += "\t\t\t
\n"; if(isSearchString(degnattrval, "ctrl.border-style") == false) { degnattrval += "ctrl.border-style:solid;"; } if(isSearchString(degnattrval, "ctrl.border-width") == false) { degnattrval += "ctrl.border-width:1;"; } var sPreStyle = getPreXSLTStyle(null, ctrlPosition, degnattrval, "ctrl"); var preid= "RCT_" + degnitemno; sXSLTInfo += "\t\t\t\t
\n";
	*/
}

function fDrawHTMLObject_old(row)
{
	var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno");
	var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval");
	var degnitemkind = model.getValue(g_pageInfo.formdegnRef +"[" + row + "]/degnitemkind");
			
	var divid = "DIV_"+	degnitemno;	
		
	var ctrlPosition = new Position(g_pageInfo.curxpos, g_pageInfo.curypos, 400, g_pageInfo.ctrlheight);
	
	/*	
	var sDivStyle = ""; //getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl"); 
	
	sDivWidth = ctrlPosition.width;
	sDivHeight = ctrlPosition.height;
		
	var tmpLeft = getStyleValue(degnattrval, "left", "ctrl");
	var tmpTop = getStyleValue(degnattrval, "top", "ctrl");
	var tmpWidth = getStyleValue(degnattrval, "width", "ctrl");
	var tmpHeight = getStyleValue(degnattrval, "height", "ctrl");	
		
	sDivStyle = "style=\"position:absolute; left:" + tmpLeft + "px; top:" + tmpTop + "px; width:" + tmpWidth + "px; top:"+ tmpHeight + "px; border-style:solid; border-width:1; \"";
	*/
	if(isSearchString(degnattrval, "ctrl.border-style") == false)
	{
		degnattrval += "ctrl.border-style:solid;";
	}
	
	if(isSearchString(degnattrval, "ctrl.border-width") == false)
	{
		degnattrval += "ctrl.border-width:1;";
	}
	
	var sPreStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl");  //getPreXSLTStyle(ctrlPosition, degnattrval, "ctrl"); 
	/*
	var ctrlLeft = "left:" + tmpLeft + "px";
	var ctrlTop = " top:" + tmpTop + "px";
	
	sPreStyle = sPreStyle.setReplaceWord(ctrlLeft, "left:0px");
	sPreStyle = sPreStyle.setReplaceWord(ctrlTop, "top:0px");
	*/
	//position:absolute;
	//position:absolute; border-style:none;
	//sStyle = sStyle.setReplaceWord("position:absolute;", "position:absolute; border-style:none;");	
	//sXSLTInfo += "\t\t\t
\n"; /* sDivWidth = ctrlPosition.width; sDivHeight = ctrlPosition.height; var tmpWidth = getStyleValue(degnattrval, "width", "ctrl"); var tmpHeight = getStyleValue(degnattrval, "height", "ctrl"); var ctrlWidth = "width:" + tmpWidth + "px;"; var ctrlHeight = " height:" + tmpHeight + "px;"; sStyle = "style=\"position:absolute; left:0px; top:0px; " + ctrlWidth + ctrlHeight + "border-style:solid; border-width:1; \""; */ var preid= "RCT_" + degnitemno; //sStyle = AddBorderStyle(sStyle, degnattrval, "label"); sXSLTInfo += "\t\t\t\t
\n";
	
	/*
	

	
*/ } /** * @desc : Pre »ý¼º * @ * @param : * @return : * @--------------------------------------------------- */ function fDrawHTMLCap( x, y, row, ctrltype) { var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnitemnm = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemnm"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var ctrlPosition = new Position(x,y,0,sDivHeight); ctrlPosition.width += fGetLblWidth(degnitemno, degnitemnm); if(ctrlPosition.width < 120) ctrlPosition.width = 120; /* if(ctrlSize.cx < g_pageInfo.ctrlwidth) ctrlSize.cx = g_pageInfo.ctrlwidth; else ctrlSize.cx += Math.round((10 - (ctrlSize.cx % 10)) / 10) * 10; */ // µðÀÚÀÎ ·¹º§ÀÌ 1ÀÎ ¾ÆÀÌÅÛÀÇ ¼Ó¼º¿¡ Bold°¡ ºüÁ®ÀÖÀ¸¸é Ãß°¡ var degnitemlevlno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlno"); if(degnitemlevlno == "1") { if(isSearchString(degnattrval, "label.font-weight:bold") == false) { degnattrval += "label.font-weight:bold;"; } } var captionid= "LBL_" + degnitemno; var sLBLDivStyle = getNewXSLTStyleVal(captionid, ctrlPosition, degnattrval, ctrltype); // ¼û°ÜÁø ÄÁÆ®·Ñ È®ÀÎ if(isSearchString(degnattrval, "label.width") == true || isSearchString(degnattrval, "label.height") == true) { var tmpWidth = getStyleValue(degnattrval, "width", "label"); var tmpHeight = getStyleValue(degnattrval, "height", "label"); if(tmpWidth == "" && tmpHeight == "") { return ctrlPosition; } else if(tmpWidth == "") { if(parseInt(tmpHeight) < 2) return ctrlPosition; } else if(tmpHeight == "") { if(parseInt(tmpWidth) < 2) return ctrlPosition; } else if(tmpWidth != "" && tmpHeight != "") { if(parseInt(tmpWidth) < 2 || parseInt(tmpHeight) < 2) { return ctrlPosition; } } } var sLBLPreStyle = sLBLDivStyle; /* ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Border-StyleÀÌ µé¾î°£ ¹öÀü var sLBLPreStyle = sLBLDivStyle; var sLabelLeft = getStyleValue(degnattrval, "left", "label"); var sLabelTop = getStyleValue(degnattrval, "top", "label"); if(sLabelLeft != "") { var tmpLeft = "left:" + sLabelLeft + "px"; sLBLPreStyle = sLBLPreStyle.setReplaceWord(tmpLeft, "left:0px"); } if(sLabelTop != "") { var tmpTop = "top:" + sLabelTop + "px"; sLBLPreStyle = sLBLPreStyle.setReplaceWord(tmpTop, "top:0px"); } sLBLPreStyle = AddBorderStyle(sLBLPreStyle, degnattrval, "label"); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Div¿¡ Border-Style Á¤º¸¸¦ »èÁ¦ var sLabelLeft = 0; var sLabelTop = 0; /* var sLabelLeft = getStyleValue(degnattrval, "left", "label"); if(sLabelLeft == "") sLabelLeft = 0; else { sLabelLeft = parseInt(sLabelLeft); } var sLabelTop = getStyleValue(degnattrval, "top", "label"); if(sLabelTop == "") sLabelTop = 0; else { sLabelTop = parseInt(sLabelTop); } */ var sLabelWidth = getStyleValue(degnattrval, "width", "label"); if(sLabelWidth == "") sLabelWidth = fGetLblWidth(degnitemno, degnitemnm); else { sLabelWidth = parseInt(sLabelWidth); } var sLabelHeight = getStyleValue(degnattrval, "height", "label"); if(sLabelHeight == "") sLabelHeight = 20; else { sLabelHeight = parseInt(sLabelHeight); } var sLBLDivStyle = "style=\"position:absolute; left:" + sLabelLeft + "px; top:" + sLabelTop + "px; width:" + sLabelWidth + "px; height:" + sLabelHeight + "px; \""; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //var captionid= "LBL_" + degnitemno; /* if(isSearchString(degnitemnm, "\n") == true) { degnitemnm = degnitemnm.setReplaceWord("\n", "]]>
Div ű׷Πº¯°æÇÔ. sXSLTInfo += "\t\t\t\t
\n" + "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; //sXSLTInfo += "\t\t\t\t
\n"; return ctrlPosition; } /** * @desc : Radio ¹öư »ý¼º * @ * @param : * @return : *@history: 2008-10-21 Àμâ½Ã üũ¹Ú½º ¹× ¶óµð¿À¹öưÀÌ ºñȰ¼ºÈ­µÈ »óÅÂÀ̱⠶§¹®¿¡ ÀμⰡ È帴ÇÏ¿© ºñȰ¼ºÈ­¸¦ »èÁ¦ÇÔ. 2008-10-22 üũ¹Ú½ºµÈ recitem³ëµå¸¦ ã´Â Á¶°Ç º¯°æ * @--------------------------------------------------- */ function fDrawHTMLRdo( x, y, row) { var width = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "width"); if(width != "") width = parseInt(width); var height = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "height"); if(height != "") height = parseInt(height); if(width == "") width = 0; if(height == "") height = sDivHeight; var ctrlPosition = new Position(x, y, width, height); var cellspacing = 10; // °¡·Î °£°Ý ±âº»°ª var vcellspacing = 0; // ¼¼·Î °£°Ý ±âº»°ª //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Degnitemno => Degnitemlevlcd ·Î º¯°æ var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemkind"); var valgrupcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/valgrupcd"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var itemattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/itemattrval"); var ctrlid = ""; var ctrlname = ""; if(degnitemkind == "RDO") ctrlname = "type=\"radio\""; else if(degnitemkind == "CHK") ctrlname = "type=\"checkbox\""; var cnt = getNodesetCnt(model, g_pageInfo.vallistRef + "[grupcd='" + valgrupcd + "']"); var cols = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "cols"); if(cols == "") cols = cnt; // ¾ÆÀÌÅÛ °£°Ý cellspacing = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "ctrl.subcellspacing"); vcellspacing = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "ctrl.subvcellspacing"); if(cellspacing == "") cellspacing = 0; if(vcellspacing == "") vcellspacing = 0; // ¾ÆÀÌÅÛ ¶óº§ º¸À̱â/¼û±â±â ¿É¼Ç È®ÀÎ var sLabelhidden = "on"; // ±âº»°ª º¸À̱â if(isSearchString(degnattrval, "ctrl.sublabel") == true) { sLabelhidden = getStyleValue(degnattrval, "ctrl.sublabel"); } var sLabel = ""; var sValue = ""; var lineWidth = 0; var lineHeight = 0; var sComStyle = getXSLTStyleVal(ctrlPosition, degnattrval, degnitemkind); ctrlid = degnitemkind + "_" + degnitemno; var sTmpComStyle = getSelXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, degnitemkind); var sStyle = ""; var sFontStyle = ""; var sLastStyle = ""; var tmplineWidth = 0; var tmpValueWidth = 0; var strRdoStyle = new Array(2); // position var sLeft = ""; var sTop = ""; var sWidth = ""; var sHeight = ""; var sCols = false; var sRows = false; if(document.controls(ctrlid) != null) { sLeft = document.controls(ctrlid).attribute("left"); sTop = document.controls(ctrlid).attribute("top"); sWidth = document.controls(ctrlid).attribute("width"); sHeight = document.controls(ctrlid).attribute("height"); sCols = document.controls(ctrlid).attribute("cols"); sRows = document.controls(ctrlid).attribute("rows"); // FontName var fontfamilyArr = document.controls(ctrlid).attribute("font-family").split(","); if(fontfamilyArr.length > 0) { sFontStyle += getXSLTCtrlAttribute("font-family", fontfamilyArr[0]); } else sFontStyle += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); // FontSize var fontSize = document.controls(ctrlid).attribute("font-size"); if(fontSize != "") sFontStyle += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else sFontStyle += getXSLTCtrlAttribute("font-size", "9"); sFontStyle += getXSLTCtrlAttribute("font-weight", document.controls(ctrlid).attribute("font-weight")); sFontStyle += getXSLTCtrlAttribute("font-style", document.controls(ctrlid).attribute("font-style")); sFontStyle += getXSLTCtrlAttribute("text-decoration", document.controls(ctrlid).attribute("text-decoration")); var fontColor = document.controls(ctrlid).attribute("color"); if(fontColor != "") { if(fontColor.charAt(0) != "#") sFontStyle += getXSLTCtrlAttribute("color", "#" + fontColor); else sFontStyle += getXSLTCtrlAttribute("color", fontColor); } } else { sLeft = getStyleValue(degnattrval, "left", sCtrlType); sTop= getStyleValue(degnattrval, "top", sCtrlType); sWidth = getStyleValue(degnattrval, "width", sCtrlType); sHeight = getStyleValue(degnattrval, "height", sCtrlType); sFontStyle += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); var fontSize = getStyleValue(degnattrval, "font-size", sCtrlType); if(fontSize != "") sFontStyle += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else sFontStyle += getXSLTCtrlAttribute("font-size", "9"); sFontStyle += getXSLTCtrlAttribute("font-weight", getStyleValue(degnattrval, "font-weight", sCtrlType)); sFontStyle += getXSLTCtrlAttribute("font-style", getStyleValue(degnattrval, "font-style", sCtrlType)); sFontStyle += getXSLTCtrlAttribute("text-decoration", getStyleValue(degnattrval, "text-decoration", sCtrlType)); sFontStyle += getXSLTCtrlAttribute("color", getStyleValue(degnattrval, "color", sCtrlType)); } if(sLeft == "") sLeft = ctrlPosition.x; else{ sLeft = parseInt(sLeft); ctrlPosition.x = sLeft; } if(sTop=="") sTop = ctrlPosition.y; else{ sTop = parseInt(sTop); ctrlPosition.y = sTop; } for(var i =0; i< cnt; i++) { sLabel = model.instances(0).selectNodes(g_pageInfo.vallistRef +"[grupcd='" + valgrupcd + "']/valitemnm").item(i).text; sValue = model.instances(0).selectNodes(g_pageInfo.vallistRef +"[grupcd='" + valgrupcd + "']/valcd").item(i).text; ctrlid = degnitemkind + "_" + degnitemno+"_"+ i; //strRdoStyle = getSelSSUXSLTStyleVal(degnitemkind + "_" + degnitemno, ctrlPosition, degnattrval, degnitemkind); if(degnitemkind == "RDO") { sXSLTInfo += "\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\n"; } else { sXSLTInfo += "\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\n"; } //sStyle = sComStyle + "left:"+(parseInt(ctrlPosition.x)+lineWidth) +"px; top:"+ ctrlPosition.y +"px; \""; sStyle = sComStyle + "left:"+(parseInt(sLeft)+lineWidth) +"px; top:"+ sTop +"px; \""; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\n"; // RDO ¹× CHKÄÁÆ®·Ñ °£°ÝÀ» 20px ÁÜ.. //lineWidth += 20; lineHeight += 15; lineWidth += 15; //sStyle = sComStyle + "top:"+ctrlPosition.y+"px; left:"+(parseInt(ctrlPosition.x)+lineWidth)+"px;\""; sStyle = sComStyle + "left:"+ (parseInt(sLeft)+lineWidth) +"px; top:"+ sTop +"px;\""; if(sLabelhidden == "off") { sLabel = " "; } sXSLTInfo += "\t\t\t\t
\n"; var ctrlSpace = parseInt(fGetLblWidth(degnitemno, sLabel)) + parseInt(cellspacing); lineWidth += ctrlSpace; tmplineWidth = lineWidth; if((i + 1) % cols == 0) { if(ctrlPosition.width < lineWidth) ctrlPosition.width = lineWidth; lineWidth = 0; tmpValueWidth = fGetLblWidth(degnitemno, sLabel); if(vcellspacing > 0) { sTop += parseInt(vcellspacing); } } // üũ¹Ú½º ¾ÆÀÌÅÛÀÌ ÇÑÁÙÀÌ °¡µæÂ÷ ´ÙÀ½ÁÙ·Î ³Ñ±è. if(cols != cnt) { // ´ÙÀ½ÁÙ·Î ³Ñ±âµÇ ¸¶Áö¸· üũ¹Ú½º ¾ÆÀÌÅÛÀÌ È®ÀåÄÁÆ®·ÑÀ» °¡Áø°æ¿ì // È®ÀåÄÁÆ®·Ñ¸¸ ´ÙÀ½ÁÙ·Î ³Ñ¾î°¡´Â °æ¿ì¸¦ ¹æÁöÇϱâ À§ÇØ ¸¶Áö¸· üũ ¾ÆÀÌÅÛÀÎ °æ¿ì »ý·«ÇÔ. if( (i+1) < cnt && ((i+1) % cols) == 0) //ctrlPosition.y += g_pageInfo.ctrlheight; //sTop += g_pageInfo.ctrlheight; sTop += 15; // ¼¼·Î·Î ÄÁÆ®·ÑÀ» ±×¸±¶§ °£°ÝÀ» 15·Î ¼öÁ¤. // ¸¶Áö¸· üũ ¾ÆÀÌÅÛÀÇ È®Àå ÄÁÆ®·ÑÀÇ °¡·Î ÁÂÇ¥ º¸Á¤ if((i+1) == cnt && degnitemkind == "CHK") { if(((i+1) % cols) == 0) ctrlPosition.x += (fGetLblWidth(degnitemno, sLabel) + cellspacing); else ctrlPosition.x -= (fGetLblWidth(degnitemno, sLabel) + cellspacing); } } } //sLastStyle = sComStyle + "top:"+ctrlPosition.y+"px; left:"+(parseInt(ctrlPosition.x)+lineWidth)+"px;\""; // È®Àå ÄÁÆ®·Ñ ÁÂÇ¥ ó¸® if(degnitemkind == "RDO") sLastStyle = sComStyle + "top:"+ctrlPosition.y+"px; left:"+(parseInt(ctrlPosition.x)+tmplineWidth)+"px;\""; else sLastStyle = sComStyle + "top:"+ctrlPosition.y+"px; left:"+(parseInt(ctrlPosition.x)+lineWidth)+"px;\""; ctrlPosition.width += ctrlPosition.x; if(cols == "0") ctrlPosition.height = g_pageInfo.ctrlheight; else ctrlPosition.height = (Math.ceil(cnt / cols) * 15) + Math.ceil(cnt / cols) + 2; sDivWidth = ctrlPosition.x + parseInt(ctrlPosition.width); if(ctrlPosition.height > sDivHeight) sDivHeight = ctrlPosition.height; g_pageInfo.curxpos += parseInt(ctrlPosition.width) +g_pageInfo.offsetx; if(getStyleValue(itemattrval, "extn") == "visible") { var top = ctrlPosition.height - 15; if(top < 0) top = 0; //fDrawHTMLStx(parseInt(ctrlPosition.width) +g_pageInfo.offsetx, top, 100, 20, row, "extn"); var extnWidth = 0; extnWidth = getStyleValue(degnattrval, "width", "extn"); var extnHeight = 0; extnHeight = getStyleValue(degnattrval, "height", "extn"); if(lineWidth == 0) lineWidth = (tmplineWidth -tmpValueWidth); //; fDrawHTMLStx(degnitemkind == "RDO" ? (parseInt(ctrlPosition.x)+tmplineWidth) : (parseInt(ctrlPosition.x)+lineWidth), ctrlPosition.y, extnWidth != 0 ? extnWidth : 100 , extnHeight != 0 ? extnHeight : 20, row, "extn"); } return ctrlPosition; } /** * @desc : input ¹Ú½º »ý¼º * @ * @param : * @return : * @--------------------------------------------------- */ function fDrawHTMLStx(x, y, cx, cy, row, ctrltype) { var width = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "width"); if(width != "") width = parseInt(width); var height = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "height"); if(height != "") height = parseInt(height); if(width == "") width = cx; if(height == "") height = cy; if(ctrltype == null) ctrltype = "ctrl"; var ctrlPosition = new Position(x, y, width, height); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Degnitemno => Degnitemlevlcd ·Î º¯°æ var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnitemnm = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemnm"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemkind"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var unitnm = model.getValue(g_pageInfo.formdegnRef + "[degnitemlevlcd = '" + degnitemlevlcd + "']/unitnm"); // ´ÜÀ§¸í var itemattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/itemattrval"); var supdegnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/supdegnitemno"); var supdegnitemkind = model.getValue(g_pageInfo.formdegnRef + "[degnitemno = '" + supdegnitemno + "']/degnitemkind"); var suprectermcd = model.getValue(g_pageInfo.formdegnRef + "[degnitemkind='SSU' and degnitemno='" + degnitemno + "' and supdegnitemno='"+ supdegnitemno +"']/termcd"); var ctrlid = "STX_" + degnitemno; var ref = g_pageInfo.xsltRecinfoRecitemRef + "[degnitemlevlcd='" + degnitemlevlcd + "']/reccnts"; degnattrval = fCheckDefaultDegnAttr(model, degnattrval, "STX", row); var Pattern = ""; if(isSearchString(degnattrval, "ctrl.format") == true) { var roundmode = ""; var roundpos = ""; if(document.controls(ctrlid) != null) { roundmode = document.controls(ctrlid).attribute("roundmode"); roundpos = document.controls(ctrlid).attribute("roundposition"); } else { roundmode = getStyleValue(degnattrval, "roundmode", "ctrl"); roundpos = getStyleValue(degnattrval, "roundposition", "ctrl"); } if(roundmode != "" && roundpos != "") Pattern = getPatternXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, ctrltype); } if(supdegnitemkind == "SSL") { ref = g_pageInfo.xsltRecinfoRecitemRef + "[rectermcd='"+ suprectermcd +"' and degnitemno='" + supdegnitemno + "']/reccnts"; } else if(supdegnitemkind == "MSL") { var mslctrl = document.controls("SSU_" + degnitemno); var colno = mslctrl.attribute("colno"); ref = g_pageInfo.xsltRecinfoRecitemRef + "[degnitemno='" + supdegnitemno + "' and colno = '" + colno + "']/reccnts"; } else if(supdegnitemkind == "IMG") { ref = g_pageInfo.xsltRecinfoRecitemRef + "[degnitemlevlcd='" + degnitemlevlcd + "']/reccnts"; } ctrlPosition.width = g_pageInfo.ctrlwidth; //ctrlPosition.width += fGetLblWidth(degnitemno, degnitemnm); if(ctrltype == "extn") { ctrlid = "STX_" + degnitemno; // 2008-11-28 // extn.visible ÀÎ °ÍµéÀº ¾ÆÀÌÅÛ ±¸ºÐ¾øÀÌ extn.border-style°ªÀÌ ¾ø´Â°Ç ±âº»À¸·Î extn.border-style:solid ¼Ó¼ºÀ» Ãß°¡ if(isSearchString(itemattrval, "extn:visible") == true) { if(isSearchString(degnattrval, "extn.border-style") == false) { degnattrval += "extn.border-style:solid;"; } if(isSearchString(degnattrval, "extn.border-width") == false) { degnattrval += "extn.border-width:1;"; } } } //var sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, ctrltype); var sStyle = getNewXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, ctrltype); //sStyle = AddBorderStyle(sStyle, degnattrval, ctrltype); // ¼û°ÜÁø ´ÜÀ§ ÄÁÆ®·Ñ È®ÀÎ var UnitDivStyle = ""; var UnitPreStyle = ""; var unitid = "UNIT_" + degnitemno; //var sPreStyle = getPreXSLTStyle(ctrlPosition, degnattrval, ctrltype); var sPreStyle = getPreXSLTStyle(ctrlid, ctrlPosition, degnattrval, ctrltype); //sPreStyle = AddBorderStyle(sPreStyle, degnattrval, ctrltype); if(unitnm != "") { var tmpLeft = ""; var tmpTop = ""; var tmpWidth = ""; var tmpHeight = ""; if(document.controls(unitid) != null) { tmpLeft = parseInt(document.controls(unitid).attribute("left")); tmpTop = parseInt(document.controls(unitid).attribute("top")); tmpWidth = parseInt(document.controls(unitid).attribute("width")); tmpHeight = parseInt(document.controls(unitid).attribute("height")); } else { tmpLeft = parseInt(getStyleValue(degnattrval, "left", "unit")); tmpTop = parseInt(getStyleValue(degnattrval, "top", "unit")); tmpWidth = parseInt(getStyleValue(degnattrval, "width", "unit")); tmpHeight = parseInt(getStyleValue(degnattrval, "height", "unit")); } // ´ÜÀ§¸¦ ¼û±âÁö ¾Ê¾Ò´ÂÁö È®ÀÎ. //if(isSearchString(degnattrval, "unit.width") == true || isSearchString(degnattrval, "unit.height") == true) //{ if(tmpWidth < 2 || tmpHeight < 2) { unitnm = ""; } else { if(tmpWidth == "") tmpWidth = 120; if(tmpHeight == "") tmpHeight = 20; if(tmpLeft == "") tmpLeft = 0; if(tmpTop == "") tmpRight = 0; //UnitDivStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "unit"); UnitDivStyle = getNewXSLTStyleVal(unitid, ctrlPosition, degnattrval, "unit"); UnitPreStyle = "style=\"position:absolute; left:0px; top:0px; width:" + tmpWidth + "; height:" + tmpHeight + "; \""; } //} } if(degnitemkind == "CAL") // ´Þ·ÂÇü½Ä { // ¾ÆÀÌÅÛÀÌ STXÀÎ °æ¿ì Á¤ÇØÁø ÁÂÇ¥¸¦ ¹þ¾î³ª°Ô µÊ¿¡ µû¶ó Pre -> Div ű׷Πº¯°æÇÔ. sXSLTInfo += "\t\t\t\t
\n" + "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; } else { if(Pattern != "") { sXSLTInfo += "\t\t\t\t
\n" + "\t\t\t\t\t
\n";
			sXSLTInfo +="\t\t\t\t\t\n";
			sXSLTInfo +="\t\t\t\t\t\t\n";			
			//sXSLTInfo +="\t\t\t\t\t\t\t\n";				
			//sXSLTInfo +="\t\t\t\t\t\t\t\n";
			sXSLTInfo +="\t\t\t\t\t\t\t\n";
			sXSLTInfo +="\t\t\t\t\t\t\n";
			sXSLTInfo +="\t\t\t\t\t\t\n";
			sXSLTInfo +="\t\t\t\t\t\t\t\n";
			sXSLTInfo +="\t\t\t\t\t\t\n";
			sXSLTInfo +="\t\t\t\t\t\n";
			sXSLTInfo += "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; } else { sXSLTInfo += "\t\t\t\t
\n" + "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; } /* sXSLTInfo += "\t\t\t\t
\n" + "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; */ if(unitnm != "") { sXSLTInfo += "\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; } } g_pageInfo.curxpos += parseInt(ctrlPosition.x) + parseInt(ctrlPosition.width) + g_pageInfo.offsetx; return ctrlPosition; } /** * @desc : combo »ý¼º * @ * @param : * @return : * @--------------------------------------------------- */ function fDrawHTMLCmb(x, y, row) { var width = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "width"); if(width != "") width = parseInt(width); var height = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "height"); if(height != "") height = parseInt(height); if(width == "") width = 100; if(height == "") height = 20; var ctrlPosition = new Position(x, y, width, height); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Degnitemno => Degnitemlevlcd ·Î º¯°æ var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var itemattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/itemattrval"); var valgrupcd = model.getValue(g_pageInfo.formdegnRef + "[degnitemno='" + degnitemno + "']/valgrupcd"); var cnt = getNodesetCnt(model, g_pageInfo.vallistRef + "[grupcd='" + valgrupcd + "']"); var ctrlid = "CMB_" + degnitemno; var sLabel = ""; var sValue = ""; var sLblWidth = 0; var sStyle = ""; // combo ¸®½ºÆ® Áß¿¡¼­ ÃÖ´ë ±æÀÌ Ã¼Å© for(var i =0; i< cnt; i++) { sLabel = model.instances(0).selectNodes(g_pageInfo.vallistRef + "[grupcd='" + valgrupcd + "']/valitemnm").item(i).text; sLblWidth = fGetLblWidth(degnitemno, sLabel); if(ctrlPosition.width < sLblWidth) ctrlPosition.width = sLblWidth } //sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl"); //sStyle = AddBorderStyle(sStyle, degnattrval, "ctrl"); sStyle = getNewXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); sXSLTInfo +="\t\t\t\t
 \n";
	
	sXSLTInfo +="\t\t\t\t\t \n"
	//sXSLTInfo +="\t\t\t\t\t \n"
	
	sXSLTInfo +="\t\t\t\t
\n"; sDivWidth = ctrlPosition.x + parseInt(ctrlPosition.width); if(ctrlPosition.width > sDivHeight) sDivHeight = ctrlPosition.height; if(getStyleValue(itemattrval, "extn") == "visible") { ctrlPosition.x = parseInt(ctrlPosition.x) + parseInt(ctrlPosition.width) + g_pageInfo.offsetx; // Âü°í var ctrlPosition = fDrawHTMLStx(ctrlPosition.x, 0, 100, 20, row, "extn"); //var ctrlPosition = fDrawHTMLStx(parseInt(ctrlPosition.width) +g_pageInfo.offsetx, 0, 100, 20, row, "extn"); } g_pageInfo.curxpos += parseInt(ctrlPosition.width) +g_pageInfo.offsetx; return ctrlPosition; } /** * @desc : textarea »ý¼º * @ * @param : * @return : * @--------------------------------------------------- */ function fDrawHTMLMtx(x, y, row) { var width = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "width"); if(width != "") width = parseInt(width); var height = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "height"); if(height != "") height = parseInt(height); if(width == "") width = 400; if(height == "") height = 300; var ctrlPosition = new Position(x, y, width, height); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Degnitemno => Degnitemlevlcd ·Î º¯°æ var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var fstlevlitemcd = model.getValue(g_pageInfo.recItemRef + "[degnitemno='" + degnitemno + "']/fstlevlitemcd"); var comuseyn = model.getValue(g_pageInfo.formdegnRef + "[degnitemcd='" + fstlevlitemcd + "' and degnitemlevlno='1']/comuseyn"); var ctrlid = ""; ctrlid = "MTX_" + degnitemno; ctrlPosition.width = g_pageInfo.ctrlwidth; degnattrval = fCheckDefaultDegnAttr(model, degnattrval, "MTX", row); //var sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl"); //sStyle = AddBorderStyle(sStyle, degnattrval, "label"); var sStyle = getNewXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); //var sPreStyle = getPreXSLTStyle(null, ctrlPosition, degnattrval, "ctrl"); var sPreStyle = getPreXSLTStyle(ctrlid, ctrlPosition, degnattrval, "ctrl"); sPreStyle = AddBorderStyle(sPreStyle, degnattrval, "ctrl"); // ÅØ½ºÆ®°¡ MultiLineÀÎ °æ¿ì Á¤ÇØÁø ÁÂÇ¥¸¦ ¹þ¾î³ª°Ô µÊ¿¡ µû¶ó Pre -> Div ű׷Πº¯°æÇÔ. sXSLTInfo += "\t\t\t\t
\n" + "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; sDivWidth = ctrlPosition.x + parseInt(ctrlPosition.width); if(ctrlPosition.height > sDivHeight) sDivHeight = ctrlPosition.height; g_pageInfo.curxpos += parseInt(ctrlPosition.width) +g_pageInfo.offsetx; return ctrlPosition; } /** * @desc : ±âº» ¼Ó¼º Ãß°¡ ·ÎÁ÷. * @ * @param : * @return : * @history: 2008-11-13 STX, MTX¿¡ border-styleÀÌ ¾ø´Â °æ¿ì ±âº»À¸·Î ³Ö¾îÁÖµµ·Ï ¼öÁ¤ * @--------------------------------------------------- */ function fCheckDefaultDegnAttr(model, degnattrval, degnitemkind, row) { switch(degnitemkind) { case "RDO": break; case "STX": case "MTX": { if(isSearchString(degnattrval, "ctrl.border-style") == false) { degnattrval += "ctrl.border-style:solid;" } } break; } // µðÀÚÀÎ ¼Ó¼º º¯°æ model.setValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval", degnattrval, true); model.refresh(); return degnattrval; } /** * @desc : input(hidden) »ý¼º (secretÀ» preÀ¸·Î ó¸®ÇÒ °æ¿ì ÀÚ¸®¼ö¸¦ ¾î¶»°Ô ó¸®ÇÒ °ÍÀÎÁö..) * @ * @param : * @return : * @--------------------------------------------------- */ function fDrawHTMLMsk(x, y, cx, cy, row) { var width = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "width"); if(width != "") width = parseInt(width); var height = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "height"); if(height != "") height = parseInt(height); if(width == "") width = cx; if(height == "") height = cy; var ctrlPosition = new Position(x, y, width, height); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Degnitemno => Degnitemlevlcd ·Î º¯°æ var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemkind"); var ctrlid = "MSK_" + degnitemno; var ref = g_pageInfo.recItemRef + "[degnitemlevlcd='" + degnitemlevlcd + "']/reccnts"; ctrlPosition.width = g_pageInfo.ctrlwidth; var sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl"); sXSLTInfo += "\t\t\t\t
*******
\n"; sDivWidth = ctrlPosition.x + parseInt(ctrlPosition.width); if(ctrlPosition.height = sDivHeight) sDivHeight = ctrlPosition.height; g_pageInfo.curxpos += ctrlPosition.x + parseInt(ctrlPosition.width) +g_pageInfo.offsetx; return ctrlPosition; } /** * @desc : À̹ÌÁö »ý¼º * @ * @param : * @return : * @--------------------------------------------------- */ function fDrawHTMLImge(x, y, row) { var width = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "width"); if(width != "") width = parseInt(width); var height = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "height"); if(height != "") height = parseInt(height); if(width == "") width = 300; if(height == "") height = 300; var ctrlPosition = new Position(x, y, width, height); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Degnitemno => Degnitemlevlcd ·Î º¯°æ var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnitemcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemcd"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemkind"); var imgedit = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/itemattrval"), "imgedit"); var formdegnseq = model.getValue(g_pageInfo.formmastRef + "/formdegnseq"); var ctrlid = "" var ImgUrl = ""; if(degnitemkind == "IMG") { ctrlid = "IMG_" + degnitemno; if(imgedit == "Y") ImgUrl = getRecImgUrl(degnitemlevlcd); else ImgUrl = getImgUrl(degnitemcd); } else if(degnitemkind == "FDG") { ctrlid = "FDG_" + degnitemno; ImgUrl = getRecImgUrl(degnitemlevlcd); } ImgUrl = ImgUrl.setReplaceWord("&", "&"); //var sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl"); var sPosStyle = getImgXSLTStylePos(ctrlid, ctrlPosition, degnattrval, "ctrl"); // À§Ä¡ÁÂÇ¥ var sStyle = getImgXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); // Style Á¤º¸ //IMG Width, Height var ImgSize = ""; var sImgWidth = ""; var sImgHeight = ""; if(document.controls(ctrlid) != null) { sImgWidth = document.controls(ctrlid).attribute("width"); sImgHeight = document.controls(ctrlid).attribute("height"); if(document.controls(ctrlid).attribute("border-style") != "") { var BdWidth = 0; if(getStyleValue(degnattrval, "border-width", "ctrl") != "") BdWidth = getStyleValue(degnattrval, "border-width", "ctrl"); else BdWidth = 1; sImgHeight = parseInt(sImgHeight) - BdWidth; } } else { if(degnitemkind == "IMG") { sImgWidth = getStyleValue(degnattrval, "width", "ctrl"); sImgHeight = getStyleValue(degnattrval, "height", "ctrl"); } if(degnitemkind == "FDG") { sImgWidth = getStyleValue(degnattrval, "width", "label"); sImgHeight = getStyleValue(degnattrval, "height", "label"); } if(getStyleValue(degnattrval, "border-style", "ctrl") != "") { var BdWidth = 0; if(getStyleValue(degnattrval, "border-width", "ctrl") != "") BdWidth = getStyleValue(degnattrval, "border-width", "ctrl"); else BdWidth = 1; sImgHeight = parseInt(sImgHeight) - BdWidth; } } if(sImgWidth != "") ImgSize += " width=\""+sImgWidth+"\" "; if(sImgHeight != "") ImgSize += " height=\""+sImgHeight+"\""; if(degnitemkind == "IMG") { if(imgedit == "Y") { sXSLTInfo += "\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\n"; // XSLT º¯¼ö·Î »ç¿ëµÇ´Â À̹ÌÁöurl Àü´ÞÀÎÀÚ´Â ÇØ´ç ÄÁÆ®·ÑID ¾Õ¿¡ v¸¦ ºÙÀÓ sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t" + ImgUrl + "\n"; sXSLTInfo += "\t\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t" + ImgUrl + "\n"; sXSLTInfo += "\t\t\t\t\t\t
\n"; // IMG ű״ StyleÀÌ ¾È ¸ÔÈ÷¹Ç·Î Width, Height¸¦ ¸í½ÃÇØÁà¾ß ÇÔ. sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; } else { // XSLT º¯¼ö·Î »ç¿ëµÇ´Â À̹ÌÁöurl Àü´ÞÀÎÀÚ´Â ÇØ´ç ÄÁÆ®·ÑID ¾Õ¿¡ v¸¦ ºÙÀÓ sXSLTInfo += "\t\t\t\t" + ImgUrl + "\n"; sXSLTInfo += "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t
\n"; } } else if(degnitemkind == "FDG") { // XSLT º¯¼ö·Î »ç¿ëµÇ´Â À̹ÌÁöurl Àü´ÞÀÎÀÚ´Â ÇØ´ç ÄÁÆ®·ÑID ¾Õ¿¡ v¸¦ ºÙÀÓ sXSLTInfo += "\t\t\t\t" + ImgUrl + "\n"; sXSLTInfo += "\t\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t
\n"; } sDivWidth = ctrlPosition.x + parseInt(ctrlPosition.width); if(ctrlPosition.height > sDivHeight) sDivHeight = ctrlPosition.height; g_pageInfo.curxpos += parseInt(ctrlPosition.width) +g_pageInfo.offsetx; // ISU ¸¦ ±×¸®´Â ·ÎÁ÷ var elementName = ""; var ref = ""; elementName = "type=\"checkbox\""; var cellspacing = 15; var lblWidth = 0; var subcnt = getNodesetCnt(model, g_pageInfo.formdegnRef + "[degnitemkind='ISU' and supdegnitemno='" + degnitemno + "']"); var sStyle = ""; var ISUArr = new Array(2); for(var j = 0; j < subcnt; j++) { var subtermcd = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='ISU' and supdegnitemno='" + degnitemno + "']/termcd").item(j).text; var subdegnitemno = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='ISU' and supdegnitemno='" + degnitemno + "']/degnitemno").item(j).text; var subdegnitemkind = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='ISU' and supdegnitemno='" + degnitemno + "']/degnitemkind").item(j).text; var subdegnitemnm = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='ISU' and supdegnitemno='" + degnitemno + "']/degnitemnm").item(j).text; var subdegnitemlevlcd = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='ISU' and supdegnitemno='" + degnitemno + "']/degnitemlevlcd").item(j).text; var subitemattrval = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='ISU' and supdegnitemno='" + degnitemno + "']/itemattrval").item(j).text; var subdegnattrval = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='ISU' and supdegnitemno='" + degnitemno + "']/degnattrval").item(j).text; ref = g_pageInfo.xsltRecinfoRecitemRef + "[degnitemlevlcd='" + subdegnitemlevlcd + "']/rectermcd"; //var cvrtRef = ref.setReplaceWord("#colno#", j); // DIV¸¦ ±×¸°´Ù. //var divid = "DIV_" + subdegnitemno; var ISURow = row + (j+1); lblWidth = fGetLblWidth(degnitemno, subdegnitemnm); var ctrlPosition = new Position(x, y, 10 + parseInt(lblWidth), 20); var ctrlid = subdegnitemkind + "_" + subdegnitemno; //var sISUStyle = getXSLTStyleVal(ctrlPosition, subdegnattrval, "ctrl"); ISUArr = getSelSSUXSLTStyleVal(ctrlid, ctrlPosition, subdegnattrval, "ctrl"); ctrlPosition.width = lblWidth; //sXSLTInfo += "\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t \n"; //sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; //sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t
\n"; //sXSLTInfo += "\t\t\t\t
\n"; //sXSLTInfo += "\t\t\t\t
\n"; } return ctrlPosition; } /** * @desc : ±×¸®µå »ý¼º * @ * @param : * @return : * @history: 2008-10-30 À̰æÈñ - Å×À̺í ÁÂÇ¥ »ý¼º ½Ã ÄÁÆ®·ÑÀÇ Å©±â´ë·Î µÊ¿¡ µû¶ó »çÀÌÁî°¡ ÄÁÆ®·ÑÀÇ height·Î ¸ÂÃçÁö´Â °ÍÀ» Div·Î Çѹø ´õ °¨½Î´Â °ÍÀ¸·Î ¼öÁ¤ * @--------------------------------------------------- */ function fDrawHTMLGrd(x, y, row) { var width = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "width"); if(width != "") width = parseInt(width); var height = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "height"); if(height != "") height = parseInt(height); if(width == "") width = 500; if(height == "") height = 300; var ctrlPosition = new Position(x, y, width, height); var degnitemno = model.getValue(g_pageInfo.formdegnRef +"[" + row + "]/degnitemno"); var degnitemnm = model.getValue(g_pageInfo.formdegnRef +"[" + row + "]/degnitemnm"); var degnitemlevlcd = ""; if(g_pageInfo.fstLevlItemCd != "") degnitemlevlcd = g_pageInfo.fstLevlItemCd + "." + model.getValue(g_pageInfo.formdegnRef +"[" + row + "]/degnitemlevlcd"); else degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef +"[" + row + "]/degnitemlevlcd"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var gridtype = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/itemattrval"), "gridtype"); var subcnt = getNodesetCnt(model, g_pageInfo.formdegnRef + "[degnitemkind='GSU' and supdegnitemno='" + degnitemno + "']"); var degnitemlevlcdArr = getDegnitemlevlcd(gridtype, degnitemlevlcd); var degnitemcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemcd"); var ctrlid = "GRD_" + degnitemno; var grdcaption = ""; var grdcolwidth = ""; var grdcolheight = g_Base_GrdColHeight; var recItemCnt = getNodesetCnt(model, g_pageInfo.recItemRef); //var sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl"); var sStyle = getNewXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); var TdFontStyle = getTableXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); // 2008-10-30 //sXSLTInfo += "\t\t\t\t
\n"; var tmpWidth = getStyleValue(degnattrval, "ctrl.width"); var tmpHeight = getStyleValue(degnattrval, "ctrl.height"); sXSLTInfo += "\t\t\t\t
\n"; // Table ¿¡ Style Á¤º¸¸¦ Ãß°¡ sXSLTInfo += "\t\t\t\t\n"; //sXSLTInfo += "\t\t\t\t
\n"; var StyleArr = new Array(); if(gridtype == "Y" || gridtype == "G") //YÃà ´©Àû { degnitemcd = getDegnitemcd(gridtype, degnitemlevlcd); /* if(degnitemlevlcdArr[1] != null) { var tmpArray = degnitemlevlcdArr[1].split("."); var length = tmpArray.length; degnitemcd = tmpArray[length-1]; } */ var colWidths = getStyleValue(degnattrval, "colwidth", "ctrl").split("^"); var colHeights = getStyleValue(degnattrval, "rowheight", "ctrl").split("^"); var sTdStyle = ""; sXSLTInfo += "\t\t\t\t\t\n"; for(var j = 0; j < subcnt; j++) { var subdegnitemnm = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='GSU' and supdegnitemno='" + degnitemno + "']/degnitemnm").item(j).text; sTdStyle = "style=\""; if(colWidths.length == subcnt) sTdStyle += "width:"+ colWidths[j] +"px; "; else sTdStyle += "width:"+ fGetLblWidth(degnitemno, subdegnitemnm) +"px; "; if(colHeights.length == subcnt) sTdStyle += "height:"+ colHeights[j] +"px; "; else sTdStyle += "height:"+ grdcolheight +"px; "; sTdStyle = sTdStyle + TdFontStyle + "\""; StyleArr[j] = sTdStyle; sXSLTInfo += "\t\t\t\t\t\t \n"; } sXSLTInfo += "\t\t\t\t\t\n"; if(gridtype == "Y") sXSLTInfo += "\t\t\t\t\t\n"; else sXSLTInfo += "\t\t\t\t\t\n"; } else if(gridtype == "X") //XÃà ´©Àû { var sColCnt = subcnt; //10; var colwidth = g_Base_GrdColWidth; var sTdStyle = ""; var colWidths = getStyleValue(degnattrval, "colwidth", "ctrl").split("^"); var colHeights = getStyleValue(degnattrval, "rowheight", "ctrl").split("^"); if(colWidths.length == 0) { colWidths[0] = colwidth; } sTdStyle = "style=\""; sTdStyle += "width:"+ colWidths[0] +"px; "; if(colHeights.length == (subcnt + 1)) sTdStyle += "height:"+ colHeights[0] +"px; "; else sTdStyle += "height:"+ grdcolheight +"px; "; //sTdStyle += "\""; sTdStyle = sTdStyle + TdFontStyle + "\""; var Onerow = degnitemlevlcdArr[0]; // Å×À̺í Ä÷³ »ý¼º // Àüü Table »çÀÌÁî¿¡¼­ colwidth °ªÀ¸·Î TableÀ» ¿©·¯°³ »ý¼ºÇÔ. var totalwidth = getStyleValue(degnattrval, "width", "ctrl"); var cnt = (totalwidth - colwidth) / g_Base_GrdColWidth; sXSLTInfo += "\t\t\t\t\t\n"; /////////////////////////////////////////////////////////////////////////////////////////////////////// // 1. ùÁÙ - ºó Ä÷³ ¸¸µé±â // column 0 sXSLTInfo += "\t\t\t\t\t\t \n"; StyleArr[0] = sTdStyle; sTdStyle = "style=\"width:"+ g_Base_GrdColWidth +"px; " + "height:"+ grdcolheight +"px; \""; // column 1~ ¸¶Áö¸·±îÁö for(var rowidx = 1; rowidx <= cnt; rowidx++) { sXSLTInfo += "\t\t\t\t\t\t \n"; } sXSLTInfo += "\t\t\t\t\t\n"; var tmpwidth = getStyleValue(degnattrval, "width", ""); // Àüü row ¸¸Å­ ¹Ýº¹ for(var rowidx = 0; rowidx < sColCnt; rowidx++) { sXSLTInfo += "\t\t\t\t\t\n"; var nodelist = findNodeset(model, g_pageInfo.recRef + "/grid/recitem[degnitemlevlcd='" + degnitemlevlcdArr[rowidx][1] + "']"); var degnitemnm = ""; if(nodelist != null) { for(var i = 1; i < nodelist.length; i++) { var itemNode = nodelist.item(i); degnitemnm = itemNode.selectSingleNode("degnitemnm").text; if(degnitemnm != "") { if(isSearchString(degnitemnm, " ") == true) { degnitemnm = GetDegnitemnmTrans(degnitemnm); } else { degnitemnm = ""; } break; } } } // ÇÑÁÙ¾¿ columnÀ» »ý¼º for(var colidx = 0; colidx < cnt; colidx++) { if(colidx == 0) { sTdStyle = "style=\"width:"+ colWidths[0] +"px; " + "height:"+ colHeights[rowidx+1] +"px; " + TdFontStyle + " \""; //sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; } else { sTdStyle = "style=\"width:"+ g_Base_GrdColWidth +"px; " + "height:"+ colHeights[rowidx+1] +"px; " + TdFontStyle + " \""; sXSLTInfo += "\t\t\t\t\t\t\n"; } } sXSLTInfo += "\t\t\t\t\t\n"; } } else if(gridtype =="T") //Table { // itemattrval ´ÜÀÏÈ­ var subcntList = model.instances(0).selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='GSU' and supdegnitemno='" + degnitemno + "']"); for(var subidx = 0; subidx < subcntList.length; subidx++) { var subNode = subcntList.item(subidx); var subitemattrval = subNode.selectSingleNode("itemattrval").text; if(isSearchString(subitemattrval, "axtype") == true) { var subColumnType = getStyleValue(subitemattrval, "axflag"); if(subColumnType == "X") { subNode.selectSingleNode("itemattrval").text = "axflag:X;"; } else { subNode.selectSingleNode("itemattrval").text = "axflag:Y;"; } } } var subcntXrow = getNodesetCnt(model, g_pageInfo.formdegnRef + "[degnitemkind='GSU' and supdegnitemno='" + degnitemno + "' and itemattrval='axflag:X;']"); var subcntYrow = getNodesetCnt(model, g_pageInfo.formdegnRef + "[degnitemkind='GSU' and supdegnitemno='" + degnitemno + "' and itemattrval='axflag:Y;']"); var subXList = model.instances(0).selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='GSU' and supdegnitemno='" + degnitemno + "' and itemattrval='axflag:X;']"); var subYList = model.instances(0).selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='GSU' and supdegnitemno='" + degnitemno + "' and itemattrval='axflag:Y;']"); var colWidths = getStyleValue(degnattrval, "colwidth", "ctrl").split("^"); var colHeights = getStyleValue(degnattrval, "rowheight", "ctrl").split("^"); var colcaption = getStyleValue(degnattrval, "caption", "ctrl"); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 1. XÃà Ä÷³À» ¸¸µë. // ¡ØÄ÷³ StyleÀ» ¸¸µë. sTdStyle = "style=\""; if(colWidths.length > 0) sTdStyle += "width:"+ colWidths[0] +"px; "; else sTdStyle += "width:"+ colWidths[0] +"px; "; //if(colHeights.length == subcntrow) if(colHeights.length > 0) sTdStyle += "height:"+ colHeights[0] +"px; "; else sTdStyle += "height:"+ grdcolheight +"px; "; //sTdStyle += "\""; sTdStyle = sTdStyle + TdFontStyle + "\""; StyleArr[0] = sTdStyle; //sXSLTInfo += "\t\t\t\t\t\n"; // css ±×¸®µå ¹è°æ»ö Àû¿ë ½Ã sXSLTInfo += "\t\t\t\t\t\n"; if(colcaption != "") sXSLTInfo += "\t\t\t\t\t\t \n"; else sXSLTInfo += "\t\t\t\t\t\t \n"; var rowidx = 0; // Å×À̺íÀÇ Ä÷³À» ¸ÕÀú Ç¥Çö for(var j = 1; j <= subcntXrow; j++) { var label = subXList.item(j-1).selectSingleNode("degnitemnm").text; sTdStyle = "style=\""; if(colWidths[j] == "") sTdStyle += "width:"+ fGetLblWidth(degnitemno, label) +"px; "; else sTdStyle += "width:"+ colWidths[j] +"px; "; if(colHeights[j] != null) sTdStyle += "height:"+ colHeights[j] +"px; "; else sTdStyle += "height:"+ grdcolheight +"px; "; //sTdStyle += "\""; sTdStyle = sTdStyle + TdFontStyle + "\""; StyleArr[j] = sTdStyle; sXSLTInfo += "\t\t\t\t\t\t \n"; } sXSLTInfo += "\t\t\t\t\t \n"; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 2. YÃà Ä÷³À» ¸¸µë. var colidx = ""; for(var row = 0; row < subcntYrow; row++) { var Ylabel = subYList.item(row).selectSingleNode("degnitemnm").text; colidx = degnitemlevlcdArr[row]; sXSLTInfo += "\t\t\t\t\t\n"; for(var col = 0; col < colidx.length; col++) { if(col == 0) { Ylabel = GetDegnitemnmTrans(Ylabel); sXSLTInfo += "\t\t\t\t\t\t\n"; /* var temp = fGetLblWidth(degnitemno, Ylabel); if(parseInt(colWidths[0]) < parseInt(temp)) { } if(Ylabel != "") { lblWidth = fGetLblWidth(degnitemno, subdegnitemnm); if(isSearchString(Ylabel, " ") == true) { Ylabel = GetDegnitemnmTrans(Ylabel); } } sXSLTInfo += "\t\t\t\t\t\t\n"; */ //sXSLTInfo += "\t\t\t\t\t\t\n"; //sXSLTInfo += "\t\t\t\t\t\t\n"; } else { sXSLTInfo += "\t\t\t\t\t\t\n"; } } sXSLTInfo += "\t\t\t\t\t\n"; } } sXSLTInfo += "\t\t\t\t
¡Ø
" + degnitemnm + "\n"; sXSLTInfo += "\t\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t
"+Ylabel+""+Ylabel+"
\n "; sXSLTInfo += "\t\t\t\t
\n "; var Grdmode = "GRD:" + gridtype; fMakeXSLTMatchTemplate(Grdmode, degnitemlevlcdArr, degnitemcd, StyleArr); sDivWidth = ctrlPosition.x + parseInt(ctrlPosition.width); if(ctrlPosition.height > sDivHeight) sDivHeight = y + ctrlPosition.height; g_pageInfo.curxpos += parseInt(ctrlPosition.width) +g_pageInfo.offsetx; return ctrlPosition; } /** * @desc : ¸ÖƼ checkbox, radio ¹öư »ý¼º * @ * @param : * @return : *@history: 2008-10-21 Àμâ½Ã üũ¹Ú½º ¹× ¶óµð¿À¹öưÀÌ ºñȰ¼ºÈ­µÈ »óÅÂÀ̱⠶§¹®¿¡ ÀμⰡ È帴ÇÏ¿© ºñȰ¼ºÈ­¸¦ »èÁ¦ÇÔ. * @--------------------------------------------------- */ function fDrawHTMLSel(x, y, row) { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Degnitemno => Degnitemlevlcd ·Î º¯°æ var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemkind"); var elementName = ""; var ref = ""; if(degnitemkind == "MSL") // checkbox { elementName = "type=\"checkbox\""; ref = g_pageInfo.xsltRecinfoRecitemRef + "[degnitemlevlcd='" + degnitemlevlcd + "' and colno = '#colno#']/rectermcd"; } else if(degnitemkind == "SSL") //radio { elementName = "type=\"radio\""; ref = g_pageInfo.xsltRecinfoRecitemRef + "[degnitemlevlcd='" + degnitemlevlcd + "']/rectermcd"; } else return; var cellspacing = 15; var lblWidth = 0; var subcnt = getNodesetCnt(model, g_pageInfo.formdegnRef + "[degnitemkind='SSU' and supdegnitemno='" + degnitemno + "']"); var sStyle = ""; for(var j = 0; j < subcnt; j++) { var cvrtRef = ref.setReplaceWord("#colno#", j); var subtermcd = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='SSU' and supdegnitemno='" + degnitemno + "']/termcd").item(j).text; var subdegnitemno = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='SSU' and supdegnitemno='" + degnitemno + "']/degnitemno").item(j).text; var subdegnitemkind = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='SSU' and supdegnitemno='" + degnitemno + "']/degnitemkind").item(j).text; var subdegnitemnm = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='SSU' and supdegnitemno='" + degnitemno + "']/degnitemnm").item(j).text; var subitemattrval = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='SSU' and supdegnitemno='" + degnitemno + "']/itemattrval").item(j).text; var subdegnattrval = instance1.selectNodes(g_pageInfo.formdegnRef + "[degnitemkind='SSU' and supdegnitemno='" + degnitemno + "']/degnattrval").item(j).text; lblWidth = fGetLblWidth(degnitemno, subdegnitemnm); var ctrlid = subdegnitemkind + "_" + subdegnitemno; var ctrlPosition = new Position(x, y, 100, 20); /* var sComStyle = getNewXSLTStyleVal(ctrlid, ctrlPosition, subdegnattrval, degnitemkind); ctrlPosition.width = lblWidth; sStyle = sComStyle+"top:"+ctrlPosition.y+"px; left:"+ctrlPosition.x+"px;\""; */ //var sComStyle = getSelXSLTStyleVal(ctrlid, ctrlPosition, subdegnattrval, degnitemkind); var sTmpStyle = "style=\"position:absolute; "; var sStyle = ""; var ssuLeft = ""; var ssuTop = ""; var ssuWidth = ""; var ssuHeight = ""; /* var FontStyle = ""; if(document.controls(ctrlid) != null) { // FontName var fontfamilyArr = document.controls(ctrlid).attribute("font-family").split(","); if(fontfamilyArr.length > 0) { FontStyle += getXSLTCtrlAttribute("font-family", fontfamilyArr[0]); } else FontStyle += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); // FontSize var fontSize = document.controls(ctrlid).attribute("font-size"); if(fontSize != "") FontStyle += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else FontStyle += getXSLTCtrlAttribute("font-size", "9"); FontStyle += getXSLTCtrlAttribute("font-weight", document.controls(ctrlid).attribute("font-weight")); FontStyle += getXSLTCtrlAttribute("font-style", document.controls(ctrlid).attribute("font-style")); FontStyle += getXSLTCtrlAttribute("text-decoration", document.controls(ctrlid).attribute("text-decoration")); var fontColor = document.controls(ctrlid).attribute("color"); if(fontColor != "") { if(fontColor.charAt(0) != "#") FontStyle += getXSLTCtrlAttribute("color", "#" + fontColor); else FontStyle += getXSLTCtrlAttribute("color", fontColor); } } else { FontStyle += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); var fontSize = getStyleValue(degnattrval, "font-size", sCtrlType); if(fontSize != "") FontStyle += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else FontStyle += getXSLTCtrlAttribute("font-size", "9"); FontStyle += getXSLTCtrlAttribute("font-weight", getStyleValue(degnattrval, "font-weight", sCtrlType)); FontStyle += getXSLTCtrlAttribute("font-style", getStyleValue(degnattrval, "font-style", sCtrlType)); FontStyle += getXSLTCtrlAttribute("text-decoration", getStyleValue(degnattrval, "text-decoration", sCtrlType)); FontStyle += getXSLTCtrlAttribute("color", getStyleValue(degnattrval, "color", sCtrlType)); } // position if(document.controls(ctrlid) != null) { ssuLeft = document.controls(ctrlid).attribute("left"); } else ssuLeft = getStyleValue(degnattrval, "left", sCtrlType); if(ssuLeft == "") sLeft = pCtrlPosition.x; else{ ssuLeft = parseInt(ssuLeft); } if(document.controls(ctrlid) != null) { ssuTop = document.controls(ctrlid).attribute("top"); } else ssuTop= getStyleValue(degnattrval, "top", sCtrlType); if(ssuTop=="") ssuTop = pCtrlPosition.y; else{ ssuTop = parseInt(ssuTop); } if(document.controls(ctrlid) != null) { ssuWidth = document.controls(ctrlid).attribute("width"); } else ssuWidth= getStyleValue(degnattrval, "width", sCtrlType); if(ssuWidth=="") ssuWidth = pCtrlPosition.width; else{ ssuWidth = parseInt(ssuWidth); } if(document.controls(ctrlid) != null) { ssuHeight = document.controls(ctrlid).attribute("height"); } else ssuHeight= getStyleValue(degnattrval, "height", sCtrlType); if(ssuHeight=="") ssuHeight = pCtrlPosition.height; else{ ssuHeight = parseInt(ssuHeight); } sStyle = sTmpStyle + FontStyle + "left:" + ssuLeft + "px; top:" + ssuTop + "px; width:" + ssuWidth + "px; height:" + ssuHeight + "px; \""; */ var sStyleArr = new Array(2); sStyleArr = getSelSSUXSLTStyleVal(ctrlid, ctrlPosition, subdegnattrval, degnitemkind); ctrlPosition.width = lblWidth; sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t \n"; // üũ¹Ú½º ¹× ¶óµð¿À¹öư ºñȰ¼ºÈ­ »èÁ¦ //sXSLTInfo += "\t\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\t\n"; //sXSLTInfo += "\t\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\n"; ctrlPosition.x += 20; //sStyle = sComStyle+"top:"+ctrlPosition.y+"px; left:"+ctrlPosition.x+"px;\""; //sStyle = sTmpStyle + FontStyle + "left:" + (parseInt(ssuLeft)+20) + "px; top:" + ssuTop + "px; width:" + ssuWidth + "px; height:" + ssuHeight + "px; \""; //sXSLTInfo += "\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; x = parseInt(ctrlPosition.x) + parseInt(ctrlPosition.width) + cellspacing; if(getStyleValue(subitemattrval, "extn") == "visible") { ctrlPosition.x = parseInt(ctrlPosition.x) + parseInt(ctrlPosition.width) + g_pageInfo.offsetx; var ctrlPosition = fDrawHTMLStx(ctrlPosition.x, ctrlPosition.y, 100, ctrlPosition.height, row + j + 1, "extn"); x = parseInt(ctrlPosition.x) + parseInt(ctrlPosition.width) +g_pageInfo.offsetx; } } return ctrlPosition; } /** * @desc : -> ·Î º¯°æ * @ * @param : * @return : * @history : 2008-11-07 À̰æÈñ => xpath ºñ±³ Á¶°ÇÀ» ±âÁ¸ÀÇ rectermnm ¿¡¼­ rectermcd ·Î º¯°æ, disabled=true »èÁ¦ * @--------------------------------------------------- */ function fDrawHTMLBool(x, y, row) { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Degnitemno => Degnitemlevlcd ·Î º¯°æ var degnitemno = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemno"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnitemnm = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemnm"); var degnitemcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemcd"); var termcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/termcd"); var itemattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/itemattrval"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var ctrlPosition = new Position(x, y, 0, parseInt(sDivHeight)); ctrlPosition.width += fGetLblWidth(degnitemno, degnitemnm); if(ctrlPosition.width < 120) ctrlPosition.width = 120; var ctrlid = "BOL_" + degnitemno; //var sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "BOL"); //sStyle += "top:"+ctrlPosition.y+"px; left:"+ctrlPosition.x+"px; \""; var sStyle = getSelXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "BOL"); sXSLTInfo += "\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\t \n"; sXSLTInfo += "\t\t\t\t\n"; ctrlPosition.x += 20; sXSLTInfo += "\t\t\t\t
\n"; sDivWidth = ctrlPosition.x + parseInt(ctrlPosition.width); if(ctrlPosition.height > sDivHeight) sDivHeight = ctrlPosition.height; g_pageInfo.curxpos += parseInt(ctrlPosition.width) +g_pageInfo.offsetx; if(getStyleValue(itemattrval, "extn") == "visible") { var subleft = ctrlPosition.x + parseInt(ctrlPosition.width) +g_pageInfo.offsetx; var top = ctrlPosition.height - 20; if(top < 0) top = 0; fDrawHTMLStx(subleft, top, 100, 20, row, "extn"); } return ctrlPosition; } /** * @desc : ±×¸®µåÀÇ Ä÷³¸íÀ» ¹è¿­·Î ÀúÀåÇÏ¿© ¹ÝȯÇÑ´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function getDegnitemlevlcd(grdtype, degnitemlevlcd) { // degnitemlevlcd ¸¦ ÀúÀåÇØµÐ´Ù. var degnitemlevlcdArr = new Array(); // ±×¸®µå±¸Á¶ÀÌ¹Ç·Î ÇØ´ç Ä÷³ÀÇ degnitemlevelcd¸¦ ¾ò¾î¿À´Â ÀÛ¾÷ var GridNodeList = findNodeset(model, g_pageInfo.RecinfoGridRef + "[degnitemlevlcd = '" + degnitemlevlcd + "']"); if(GridNodeList.length == 0) GridNodeList = findNodeset(model, g_pageInfo.initRecinfoGridRef + "[degnitemlevlcd = '" + degnitemlevlcd + "']"); if(GridNodeList.length > 0) { if(grdtype == "Y" || grdtype == "G") //YÃà ´©Àû { var subgrdNode = GridNodeList.item(0); var recitemNodeList = subgrdNode.selectNodes("recitem"); for(var idx = 0; idx < recitemNodeList.length; idx++) { var subrecitemNode = recitemNodeList.item(idx); degnitemlevlcdArr[idx] = subrecitemNode.selectSingleNode("degnitemlevlcd").text; } } else if(grdtype == "X") //XÃà ´©Àû { for(var row = 0; row < GridNodeList.length; row++) { var subgrdNode = GridNodeList.item(row); var recitemNodeList = subgrdNode.selectNodes("recitem"); degnitemlevlcdArr[row] = new Array(recitemNodeList.length); for(var col = 0; col < recitemNodeList.length; col++) { var subrecitemNode = recitemNodeList.item(col); degnitemlevlcdArr[row][col] = subrecitemNode.selectSingleNode("degnitemlevlcd").text; } } } else if(grdtype == "T") //Å×À̺í { for(var row = 0; row < GridNodeList.length; row++) { var subgrdNode = GridNodeList.item(row); var recitemNodeList = subgrdNode.selectNodes("recitem"); degnitemlevlcdArr[row] = new Array(recitemNodeList.length-1); for(var col = 0; col < recitemNodeList.length-1; col++) { var subrecitemNode = recitemNodeList.item(col+1); degnitemlevlcdArr[row][col] = subrecitemNode.selectSingleNode("degnitemlevlcd").text; } } } else if(grdtype == "CCN" || grdtype == "DIAG" || grdtype == "OPN") { var subgrdNode = GridNodeList.item(0); var recitemNodeList = subgrdNode.selectNodes("recitem"); for(var idx = 0; idx < recitemNodeList.length; idx++) { var subrecitemNode = recitemNodeList.item(idx); degnitemlevlcdArr[idx] = subrecitemNode.selectSingleNode("degnitemlevlcd").text; } } } return degnitemlevlcdArr; } /** * @desc : ±×¸®µåÀÇ Ä÷³¸íÀ» ¹è¿­·Î ÀúÀåÇÏ¿© ¹ÝȯÇÑ´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function getDegnitemcd(grdtype, degnitemlevlcd) { // degnitemlevlcd ¸¦ ÀúÀåÇØµÐ´Ù. var degnitemcd = ""; // ±×¸®µå±¸Á¶ÀÌ¹Ç·Î ÇØ´ç Ä÷³ÀÇ degnitemlevelcd¸¦ ¾ò¾î¿À´Â ÀÛ¾÷ var GridNodeList = findNodeset(model, g_pageInfo.RecinfoGridRef + "[degnitemlevlcd = '" + degnitemlevlcd + "']"); if(GridNodeList.length == 0) GridNodeList = findNodeset(model, g_pageInfo.initRecinfoGridRef + "[degnitemlevlcd = '" + degnitemlevlcd + "']"); if(GridNodeList.length > 0) { if(grdtype == "Y" || grdtype == "G") //YÃà ´©Àû { var subgrdNode = GridNodeList.item(0); var recitemNodeList = subgrdNode.selectNodes("recitem"); for(var idx = 0; idx < recitemNodeList.length; idx++) { var subrecitemNode = recitemNodeList.item(idx); var rowno = subrecitemNode.selectSingleNode("rowno").text; var colno = subrecitemNode.selectSingleNode("colno").text; var degnitemkind = subrecitemNode.selectSingleNode("degnitemkind").text; if(rowno == 0 && colno == 0) { degnitemcd = subrecitemNode.selectSingleNode("degnitemcd").text; break; } } } else if(grdtype == "X") //XÃà ´©Àû { for(var row = 0; row < GridNodeList.length; row++) { var subgrdNode = GridNodeList.item(row); var recitemNodeList = subgrdNode.selectNodes("recitem"); degnitemlevlcdArr[row] = new Array(recitemNodeList.length); for(var col = 0; col < recitemNodeList.length; col++) { var subrecitemNode = recitemNodeList.item(col); degnitemlevlcdArr[row][col] = subrecitemNode.selectSingleNode("degnitemlevlcd").text; } } } else if(grdtype == "T") //Å×À̺í { for(var row = 0; row < GridNodeList.length; row++) { var subgrdNode = GridNodeList.item(row); var recitemNodeList = subgrdNode.selectNodes("recitem"); degnitemlevlcdArr[row] = new Array(recitemNodeList.length-1); for(var col = 0; col < recitemNodeList.length-1; col++) { var subrecitemNode = recitemNodeList.item(col+1); degnitemlevlcdArr[row][col] = subrecitemNode.selectSingleNode("degnitemlevlcd").text; } } } else if(grdtype == "CCN" || grdtype == "DIAG" || grdtype == "OPN") { var subgrdNode = GridNodeList.item(0); var recitemNodeList = subgrdNode.selectNodes("recitem"); for(var idx = 0; idx < recitemNodeList.length; idx++) { var subrecitemNode = recitemNodeList.item(idx); degnitemcd = subrecitemNode.selectSingleNode("degnitemlevlcd").text; } } } return degnitemcd; } /** * @desc : Áø´Ü¸í XSLT »ý¼º * @ * @param : * @return : * @history : 2008-07-25 ¹è°æ»öÀÌ °ËÁ¤»öÀ¸·Î µÇ¾î ÀÖ¾î ±ÛÀÚ°¡ º¸ÀÌÁö ¾Ê¾Æ »èÁ¦. 2008-10-23 Áø´Ü¸í¿¡¼­ Áø´ÜÄÚµå Ä÷³ »èÁ¦ * @--------------------------------------------------- */ function fDrawXSLTDiagName(x, y, row) { var width = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "width"); if(width != "") width = parseInt(width); var height = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "height"); if(height != "") height = parseInt(height); if(width == "") width = 500; if(height == "") height = 300; // var ctrlSize = new SIZE(width, height); var ctrlPosition = new Position(x, y, width, height); var degnitemno = model.getValue(g_pageInfo.formdegnRef +"[" + row + "]/degnitemno"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemkind"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var degnitemcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemcd"); var degnitemlevlcdArr = getDegnitemlevlcd("DIAG", degnitemlevlcd); var type = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/itemattrval"), "type"); var ctrlid = "DGN_" + degnitemno; if(type != "btn") { var grdcaption = new Array("R/O","ÁÖ","Áø´Ü¸í", "Comments"); //var grdcolwidth = new Array(30,30,360,150); var grdcolwidth = new Array(30,30,400,180); var grdcolheight = g_Base_GrdColHeight; var colWidths = getStyleValue(degnattrval, "colwidth", "ctrl").split("^"); var colHeights = getStyleValue(degnattrval, "rowheight", "ctrl").split("^"); /* var tmpHeight = getStyleValue(degnattrval, "rowheight", "ctrl"); if(tmpHeight == "") { for(var pos=0; pos < grdcaption.length; pos++) { colHeights[pos] = "23"; } } */ var sTdStyle = ""; //var sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl"); var sStyle = getNewXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); var tmpWidth = getStyleValue(degnattrval, "ctrl.width"); var tmpHeight = getStyleValue(degnattrval, "ctrl.height"); sXSLTInfo += "\t\t\t\t
\n"; //sXSLTInfo += "\t\t\t\t
\n"; // Table ¿¡ Style Á¤º¸¸¦ Ãß°¡ sXSLTInfo += "\t\t\t\t\n"; //sXSLTInfo += "\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t\n"; var StyleArr = new Array(); var TdFontStyle = getTableXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); for(var j=0; j\n"; } sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\n"; //sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; } fMakeXSLTMatchTemplate("DIAG", degnitemlevlcdArr, degnitemcd, StyleArr); sDivWidth = ctrlPosition.x + parseInt(ctrlPosition.width); if(ctrlPosition.height > sDivHeight) sDivHeight = ctrlPosition.height; g_pageInfo.curxpos += parseInt(ctrlPosition.width) +g_pageInfo.offsetx; return ctrlPosition; } /** * @group : * @ver : 2008.07.24 * @by : À̰æÈñ * @modify: * @--------------------------------------------------- * @type : function * @access : public * @desc : mode¿¡ µû¶ó match template¸¦ »ý¼ºÇÑ´Ù. * @param : mode (GRD: ±×¸®µå, DIAG: Áø´Ü¸í, CCN: ÁÖÈ£¼Ò, OPN: ¼ö¼ú¸í) * @param : degnitemlevlcdArr (degnitemlevlcdÀÇ ¹è¿­) * @return : * @--------------------------------------------------- */ function fMakeXSLTMatchTemplate(mode, degnitemlevlcdArr, degnitemcd, StyleArr) { var grdMode = mode.split(":")[0]; var grdType = mode.split(":")[1]; for(var idx = 0; idx < g_MatchTemplate.length; idx++) { var strTemplate = g_MatchTemplate[idx]; if(strTemplate == "") break; } switch(grdMode) { case "GRD": g_MatchTemplate[idx] = fMakeGridTemplate(grdType, degnitemlevlcdArr, degnitemcd, StyleArr); break; case "DIAG": g_MatchTemplate[idx] = fMakeDiagTemplate(degnitemlevlcdArr, StyleArr); break; case "CCN": g_MatchTemplate[idx] = fMakeCCNTemplate(degnitemlevlcdArr, StyleArr); break; case "OPN": g_MatchTemplate[idx] = fMakeOPNTemplate(degnitemlevlcdArr, StyleArr); break; } } function fMakeGridTemplate(gridtype, degnitemlevlcdArr, degnitemcd, StyleArr) { g_pageInfo = new PAGEINFO(); var TemplateInfo = ""; if(gridtype == "Y") //YÃà ´©Àû { TemplateInfo += "\n\n"; TemplateInfo += "\t\n"; TemplateInfo += "\t\n"; for(var idx = 1; idx < degnitemlevlcdArr.length; idx++) { TemplateInfo += "\t\t
\n"; //TemplateInfo += "\t\t
\n"; //TemplateInfo += "\t\t
\n"; } TemplateInfo += "\t\n"; TemplateInfo += "
\n"; } else if(gridtype == "G") //GÃà ´©Àû { TemplateInfo += "\n\n"; TemplateInfo += "\t\n"; TemplateInfo += "\t\n"; for(var idx = 1; idx < degnitemlevlcdArr.length; idx++) { TemplateInfo += "\t\t
\n"; //TemplateInfo += "\t\t
\n"; //TemplateInfo += "\t\t
\n"; } TemplateInfo += "\t\n"; TemplateInfo += "
\n"; } return TemplateInfo; } /** * @group : * @ver : 2008.07.24 * @by : À̰æÈñ * @modify: * @--------------------------------------------------- * @type : function * @access : public * @desc : Áø´Ü¸íÀÇ match template¸¦ »ý¼ºÇÏ¿© ¹ÝȯÇÑ´Ù. * @param : * @param : * @return : * @--------------------------------------------------- */ function fMakeDiagTemplate(degnitemlevlcdArr, StyleArr) { g_pageInfo = new PAGEINFO(); var TemplateInfo = ""; // CheckBox¿¡ Pre ÅÂ±× ¾ø´Â ¹öÀü // ù¹øÂ° loop´Â ÁÖÁø´Ü, µÎ¹øÂ° loop´Â R/O //for(var idx=0; idx < 2; idx++) //{ TemplateInfo += "\n\n"; TemplateInfo += "\t\n"; TemplateInfo += "\t\n"; // R/O TemplateInfo += "\t\t\n"; /* TemplateInfo += "\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; TemplateInfo += "\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; */ TemplateInfo += "\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; TemplateInfo += "\t\t\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; TemplateInfo += "\t\t\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; TemplateInfo += "\t\t\t\n"; TemplateInfo += "\t\t\n"; //} //else //{ // ÁÖ TemplateInfo += "\t\t\n"; /* TemplateInfo += "\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; TemplateInfo += "\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; */ TemplateInfo += "\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; TemplateInfo += "\t\t\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; TemplateInfo += "\t\t\t\t\t\n"; TemplateInfo += "\t\t\t\t\n"; TemplateInfo += "\t\t\t\n"; TemplateInfo += "\t\t\t\n"; //} // Áø´ÜÄÚµå // 2008-10-23 Áø´ÜÄÚµå »èÁ¦ //TemplateInfo += "\t\t\n"; // Áø´Ü¸í TemplateInfo += "\t\t\n"; // Comments TemplateInfo += "\t\t\n"; TemplateInfo += "\t\n"; TemplateInfo += "\n"; //} return TemplateInfo; } /** * @group : * @ver : 2008.07.24 * @by : À̰æÈñ * @modify: * @--------------------------------------------------- * @type : function * @access : public * @desc : ÁÖÈ£¼ÒÀÇ match template¸¦ »ý¼ºÇÏ¿© ¹ÝȯÇÑ´Ù. * @param : * @param : * @return : * @--------------------------------------------------- */ function fMakeCCNTemplate(degnitemlevlcdArr, StyleArr) { g_pageInfo = new PAGEINFO(); var TemplateInfo = ""; //TemplateInfo += "\n\n"; TemplateInfo += "\n\n"; TemplateInfo += "\t\n"; TemplateInfo += "\t\n"; // ºóÄ­ //TemplateInfo += "\t\t
\n";
	
	// ÁÖÈ£¼ÒÄÚµå
	//TemplateInfo += "\t\t
\n"; /* if(StyleArr[0] == null) { TemplateInfo += "\t\t\n"; } else { TemplateInfo += "\t\t\n"; }*/ // ÁÖÈ£¼Ò¸í if(StyleArr[0] == null) { //TemplateInfo += "\t\t
\n"; TemplateInfo += "\t\t\n"; } else { TemplateInfo += "\t\t\n"; } // Comments if(StyleArr[1] == null) { //TemplateInfo += "\t\t
\n"; TemplateInfo += "\t\t\n"; } else { TemplateInfo += "\t\t\n"; } // ¹ß»ýÀÏ if(StyleArr[2] == null) { //TemplateInfo += "\t\t
\n"; TemplateInfo += "\t\t\n"; } else { TemplateInfo += "\t\t\n"; } TemplateInfo += "\t\n"; TemplateInfo += "
\n"; return TemplateInfo; } /** * @group : * @ver : 2008.07.24 * @by : À̰æÈñ * @modify: * @--------------------------------------------------- * @type : function * @access : public * @desc : ¼ö¼ú¸íÀÇ match template¸¦ »ý¼ºÇÏ¿© ¹ÝȯÇÑ´Ù. * @param : * @param : * @return : * @history : 2008-10-28 ¼ö¼úÄÚµå »èÁ¦ * @--------------------------------------------------- */ function fMakeOPNTemplate(degnitemlevlcdArr, StyleArr) { g_pageInfo = new PAGEINFO(); var TemplateInfo = ""; TemplateInfo += "\n\n"; TemplateInfo += "\t\n"; TemplateInfo += "\t\n"; // ºóÄ­ //TemplateInfo += "\t\t
\n";
	
	// ¼ö¼úÄÚµå
	//TemplateInfo += "\t\t
\n"; // ¼ö¼ú¸í TemplateInfo += "\t\t
\n"; // Comments TemplateInfo += "\t\t
\n"; TemplateInfo += "\t\n"; TemplateInfo += "
\n"; return TemplateInfo; } /** * @desc : ¼ö¼ú XSLT »ý¼º * @ * @param : * @return : * @history : 2008-10-28 ¼ö¼úÄÚµå »èÁ¦ * @--------------------------------------------------- */ function fDrawXSLTOpName(x, y, row) { var width = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "width"); if(width != "") width = parseInt(width); var height = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "height"); if(height != "") height = parseInt(height); if(width == "") width = 500; if(height == "") height = 300; // var ctrlSize = new SIZE(width, height); var ctrlPosition = new Position(x, y, width, height); var degnitemno = model.getValue(g_pageInfo.formdegnRef +"[" + row + "]/degnitemno"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemkind"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var degnitemcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemcd"); var degnitemlevlcdArr = getDegnitemlevlcd("OPN", degnitemlevlcd); var ctrlid = "OPN_" + degnitemno; // 2008-10-28 ¼ö¼úÄÚµå »èÁ¦ //var grdcaption = new Array("¼ö¼úÄÚµå","¼ö¼ú¸í", "Comments"); //var grdcolwidth = new Array(85,325, 80); // 20, 85, 301, 79 //var grdcolheight = 23; // 2008-10-28 Comments »èÁ¦ var grdcaption = new Array("¼ö¼ú¸í", "Comments"); var grdcolwidth = new Array(470, 170); // 20, 85, 301, 79 //var grdcaption = new Array("¼ö¼ú¸í"); //var OPNCtrlWidth = getStyleValue(degnattrval, "width", "ctrl"); //var grdcolwidth = new Array(OPNCtrlWidth); var grdcolheight = g_Base_GrdColHeight; var colWidths = getStyleValue(degnattrval, "colwidth", "ctrl").split("^"); var colHeights = getStyleValue(degnattrval, "rowheight", "ctrl").split("^"); var sTdStyle = ""; //var sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl"); var sStyle = getNewXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); //sXSLTInfo += "\t\t\t\t
\n"; //sXSLTInfo += "\t\t\t\t
\n"; var tmpWidth = getStyleValue(degnattrval, "ctrl.width"); var tmpHeight = getStyleValue(degnattrval, "ctrl.height"); sXSLTInfo += "\t\t\t\t
\n"; // Table ¿¡ Style Á¤º¸¸¦ Ãß°¡ sXSLTInfo += "\t\t\t\t\n"; //sXSLTInfo += "\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t\n"; var StyleArr = new Array(); var TdFontStyle = getTableXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); for(var j=0; j\n"; } sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; fMakeXSLTMatchTemplate("OPN", degnitemlevlcdArr, degnitemcd, StyleArr); sDivWidth = ctrlPosition.x + parseInt(ctrlPosition.width); if(ctrlPosition.height > sDivHeight) sDivHeight = ctrlPosition.height; g_pageInfo.curxpos += parseInt(ctrlPosition.width) +g_pageInfo.offsetx; return ctrlPosition; } /** * @desc : ÁÖÈ£¼Ò XSLT »ý¼º * @ * @param : * @return : * @--------------------------------------------------- */ function fDrawXSLTCCName(x, y, row) { var width = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "width"); if(width != "") width = parseInt(width); var height = getStyleValue(model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"), "height"); if(height != "") height = parseInt(height); if(width == "") width = 500; if(height == "") height = 300; var ctrlPosition = new Position(x, y, width, height); var degnitemno = model.getValue(g_pageInfo.formdegnRef +"[" + row + "]/degnitemno"); var degnitemkind = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemkind"); var degnitemlevlcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemlevlcd"); var degnattrval = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnattrval"); var degnitemcd = model.getValue(g_pageInfo.formdegnRef + "[" + row + "]/degnitemcd"); var degnitemlevlcdArr = getDegnitemlevlcd("CCN", degnitemlevlcd); var ctrlid = "CCN_" + degnitemno; // ÁÖÈ£¼Ò »çÀÌÁî Á¶Àý //var grdcaption = new Array("ÁÖÈ£¼ÒÄÚµå","ÁÖÈ£¼Ò¸í","Comments","¹ß»ýÀÏ"); //var grdcolwidth = new Array(120,180,130,100); // ctrl.width 590 var grdcaption = new Array("ÁÖÈ£¼Ò¸í","Comments","¹ß»ýÀÏ"); var grdcolwidth = new Array(260,230,110); var grdcolheight = g_Base_GrdColHeight; var colWidths = getStyleValue(degnattrval, "colwidth", "ctrl").split("^"); var colHeights = getStyleValue(degnattrval, "rowheight", "ctrl").split("^"); var sTdStyle = ""; //var sStyle = getXSLTStyleVal(ctrlPosition, degnattrval, "ctrl"); var sStyle = getNewXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); //sXSLTInfo += "\t\t\t\t
\n"; //sXSLTInfo += "\t\t\t\t
\n"; var tmpWidth = getStyleValue(degnattrval, "ctrl.width"); var tmpHeight = getStyleValue(degnattrval, "ctrl.height"); sXSLTInfo += "\t\t\t\t
\n"; // Table ¿¡ Style Á¤º¸¸¦ Ãß°¡ sXSLTInfo += "\t\t\t\t\n"; //sXSLTInfo += "\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t\t\n"; var StyleArr = new Array(); var TdFontStyle = getTableXSLTStyleVal(ctrlid, ctrlPosition, degnattrval, "ctrl"); for(var j=0; j\n"; } sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t\t\n"; sXSLTInfo += "\t\t\t\t
\n"; sXSLTInfo += "\t\t\t\t
\n"; fMakeXSLTMatchTemplate("CCN", degnitemlevlcdArr, degnitemcd, StyleArr); sDivWidth = ctrlPosition.x + parseInt(ctrlPosition.width); if(ctrlPosition.height < sDivHeight) sDivHeight = ctrlPosition.height; g_pageInfo.curxpos += parseInt(ctrlPosition.width) +g_pageInfo.offsetx; return ctrlPosition; } /** * @desc : XSLT ½ºÅ¸ÀÏ °ªÀ» ¾ò¾î¿Â´Ù. * @ * @param : * @return : * @history : 2008-12-10 ÄÁÆ®·ÑÀÇ ÆùÆ® Á¤º¸¸¦ ¾ò¾î¿Â´Ù. * @--------------------------------------------------- */ function getTableXSLTStyleVal(ctrlid, pCtrlPosition, degnattrval, sCtrlType) { var sStyleMsg = ""; // Font Style if(document.controls(ctrlid) != null) { // FontName var fontfamilyArr = document.controls(ctrlid).attribute("font-family").split(","); if(fontfamilyArr.length > 0) { sStyleMsg += getXSLTCtrlAttribute("font-family", fontfamilyArr[0]); } else sStyleMsg += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); // FontSize var fontSize = document.controls(ctrlid).attribute("font-size"); if(fontSize != "") sStyleMsg += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else sStyleMsg += getXSLTCtrlAttribute("font-size", "9"); sStyleMsg += getXSLTCtrlAttribute("font-weight", document.controls(ctrlid).attribute("font-weight")); sStyleMsg += getXSLTCtrlAttribute("font-style", document.controls(ctrlid).attribute("font-style")); sStyleMsg += getXSLTCtrlAttribute("text-decoration", document.controls(ctrlid).attribute("text-decoration")); sStyleMsg += getXSLTCtrlAttribute("color", document.controls(ctrlid).attribute("color")); } else { var fontName = getStyleValue(degnattrval, "font-family", sCtrlType); if(fontName != "") sStyleMsg += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); else sStyleMsg += getXSLTCtrlAttribute("font-family", "µ¸¿ò"); var fontSize = getStyleValue(degnattrval, "font-size", sCtrlType); if(fontSize != "") sStyleMsg += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else sStyleMsg += getXSLTCtrlAttribute("font-size", "9"); //sStyleMsg += getXSLTCtrlAttribute("font-size", getStyleValue(degnattrval, "font-size", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("font-weight", getStyleValue(degnattrval, "font-weight", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("font-style", getStyleValue(degnattrval, "font-style", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("text-decoration", getStyleValue(degnattrval, "text-decoration", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("color", getStyleValue(degnattrval, "color", sCtrlType)); } //Text sStyleMsg += getXSLTCtrlAttribute("text-align", getStyleValue(degnattrval, "text-align", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("vertical-align", getStyleValue(degnattrval, "vertical-align", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("word-wrap", getStyleValue(degnattrval, "word-wrap", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("line-spacing", getStyleValue(degnattrval, "line-spacing", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("letter-spacing", getStyleValue(degnattrval, "letter-spacing", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("text-select", getStyleValue(degnattrval, "text-select", sCtrlType)); //Padding sStyleMsg += getXSLTCtrlAttribute("padding", getStyleValue(degnattrval, "padding", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-left", getStyleValue(degnattrval, "padding-left", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-top", getStyleValue(degnattrval, "padding-top", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-right", getStyleValue(degnattrval, "padding-right", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-bottom", getStyleValue(degnattrval, "padding-bottom", sCtrlType)); //Background sStyleMsg += getXSLTCtrlAttribute("background-color", getStyleValue(degnattrval, "background-color", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-image", getStyleValue(degnattrval, "background-image", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-repeat", getStyleValue(degnattrval, "background-repeat", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-stretch", getStyleValue(degnattrval, "background-stretch", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-position", getStyleValue(degnattrval, "background-position", sCtrlType)); //Border sStyleMsg += getXSLTCtrlAttribute("border-color", getStyleValue(degnattrval, "border-color", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("border-style", getStyleValue(degnattrval, "border-style", sCtrlType)); //Margin sStyleMsg += getXSLTCtrlAttribute("margin", getStyleValue(degnattrval, "margin", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-left", getStyleValue(degnattrval, "margin-left", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-top", getStyleValue(degnattrval, "margin-top", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-right", getStyleValue(degnattrval, "margin-right", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-bottom", getStyleValue(degnattrval, "margin-bottom", sCtrlType)); return sStyleMsg; } /** * @desc : XSLT ½ºÅ¸ÀÏ °ªÀ» ¾ò¾î¿Â´Ù.(ÆùÆ®Á¤º¸´Â ÄÁÆ®·Ñ¿¡¼­) * @ * @param : * @return : * @history : 2008-12-10 ÄÁÆ®·ÑÀÇ ÆùÆ® Á¤º¸¸¦ ¾ò¾î¿Â´Ù. * @--------------------------------------------------- */ function getNewXSLTStyleVal(ctrlid, pCtrlPosition, degnattrval, pCtrlType) { var sLeft = ""; var sTop= ""; var sWidth = ""; var sHeight = ""; var sStyleMsg = "style=\"position:absolute; "; var sCtrlType = null; if(pCtrlType != "grp") sCtrlType = pCtrlType; if(pCtrlType == "RDO" || pCtrlType == "CHK" || pCtrlType == "BOL" || pCtrlType == "MSL" || pCtrlType == "SSL") sCtrlType = "ctrl"; // position if(document.controls(ctrlid) != null) { sLeft = document.controls(ctrlid).attribute("left"); } else sLeft = getStyleValue(degnattrval, "left", sCtrlType); if(sLeft == "") sLeft = pCtrlPosition.x; else{ sLeft = parseInt(sLeft); pCtrlPosition.x = sLeft; } //if(pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL") if(pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") sStyleMsg += "left:"+sLeft+"px; "; if(document.controls(ctrlid) != null) { sTop = document.controls(ctrlid).attribute("top"); } else sTop= getStyleValue(degnattrval, "top", sCtrlType); if(sTop=="") sTop = pCtrlPosition.y; else{ sTop = parseInt(sTop); pCtrlPosition.y = sTop; } //if(pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") if(pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") sStyleMsg += "top:"+sTop+"px; "; if(document.controls(ctrlid) != null) { sWidth = document.controls(ctrlid).attribute("width"); } else sWidth = getStyleValue(degnattrval, "width", sCtrlType); if(sWidth == "") sWidth = pCtrlPosition.width; else { var strBorderStyle = ""; if(document.controls(ctrlid) != null) strBorderStyle = document.controls(ctrlid).attribute("border-style"); if(strBorderStyle != "") { sWidth = parseInt(sWidth) - 1; } else { sWidth = parseInt(sWidth); } pCtrlPosition.width = sWidth; } //if(pCtrlType != "grp" && pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") if(pCtrlType != "grp" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") sStyleMsg += "width:"+sWidth+"px; "; if(document.controls(ctrlid) != null) { sHeight = document.controls(ctrlid).attribute("height"); } else sHeight = getStyleValue(degnattrval, "height", sCtrlType); if(sHeight == "") sHeight = pCtrlPosition.height; else { var strBorderStyle = ""; if(document.controls(ctrlid) != null) strBorderStyle = document.controls(ctrlid).attribute("border-style"); if(strBorderStyle != "") { sHeight = parseInt(sHeight) - 1; } else { sHeight = parseInt(sHeight); } pCtrlPosition.height = sHeight; } //if(pCtrlType != "grp" && pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") if(pCtrlType != "grp" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") { //sStyleMsg += "height:"+sHeight+"px; "; // Å×À̺í Àüü Å©±â¸¦ ctrlheight·Î ¹ÞÀ¸¸é º¯°æÇÒ°Í. // Å×À̺í Àüü Å©±â¸¦ ctrlheight·Î ¹Þµµ·Ï ÇÏÁö ¾ÊÀº ÀÌÀü ¹öÀü¿¡ ¹Ì¸® Àû¿ëÇÒ °æ¿ì Å×À̺íÀÌ Àϱ׷¯Á® º¸ÀÓ. var tmpCtrlType =""; if(ctrlid != "") { tmpCtrlType = ctrlid.split("_")[0]; } if(tmpCtrlType == "GRD" || tmpCtrlType == "DGN" || tmpCtrlType == "OPN" || tmpCtrlType == "CCN") sStyleMsg += "ctrlheight:"+sHeight+"px; "; //sStyleMsg += "height:"+sHeight+"px; "; else sStyleMsg += "height:"+sHeight+"px; "; } // Font Style if(document.controls(ctrlid) != null) { // FontName var fontfamilyArr = document.controls(ctrlid).attribute("font-family").split(","); if(fontfamilyArr.length > 0) { sStyleMsg += getXSLTCtrlAttribute("font-family", fontfamilyArr[0]); } else sStyleMsg += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); // FontSize var fontSize = document.controls(ctrlid).attribute("font-size"); if(fontSize != "") sStyleMsg += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else sStyleMsg += getXSLTCtrlAttribute("font-size", "9"); sStyleMsg += getXSLTCtrlAttribute("font-weight", document.controls(ctrlid).attribute("font-weight")); sStyleMsg += getXSLTCtrlAttribute("font-style", document.controls(ctrlid).attribute("font-style")); sStyleMsg += getXSLTCtrlAttribute("text-decoration", document.controls(ctrlid).attribute("text-decoration")); var fontColor = document.controls(ctrlid).attribute("color"); if(fontColor != "") { if(fontColor.charAt(0) != "#") sStyleMsg += getXSLTCtrlAttribute("color", "#" + fontColor); else sStyleMsg += getXSLTCtrlAttribute("color", fontColor); } } else { sStyleMsg += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); var fontSize = getStyleValue(degnattrval, "font-size", sCtrlType); if(fontSize != "") sStyleMsg += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else sStyleMsg += getXSLTCtrlAttribute("font-size", "9"); //sStyleMsg += getXSLTCtrlAttribute("font-size", getStyleValue(degnattrval, "font-size", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("font-weight", getStyleValue(degnattrval, "font-weight", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("font-style", getStyleValue(degnattrval, "font-style", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("text-decoration", getStyleValue(degnattrval, "text-decoration", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("color", getStyleValue(degnattrval, "color", sCtrlType)); } //Text if(document.controls(ctrlid) != null) { var Halign = document.controls(ctrlid).attribute("text-align"); var Valign = document.controls(ctrlid).attribute("vertical-align"); if(Halign != "") sStyleMsg += getXSLTCtrlAttribute("text-align", Halign); else sStyleMsg += getXSLTCtrlAttribute("text-align", getStyleValue(degnattrval, "text-align", sCtrlType)); if(Valign != "") sStyleMsg += getXSLTCtrlAttribute("vertical-align", Valign); else sStyleMsg += getXSLTCtrlAttribute("vertical-align", getStyleValue(degnattrval, "vertical-align", sCtrlType)); } else { sStyleMsg += getXSLTCtrlAttribute("text-align", getStyleValue(degnattrval, "text-align", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("vertical-align", getStyleValue(degnattrval, "vertical-align", sCtrlType)); } sStyleMsg += getXSLTCtrlAttribute("word-wrap", getStyleValue(degnattrval, "word-wrap", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("line-spacing", getStyleValue(degnattrval, "line-spacing", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("letter-spacing", getStyleValue(degnattrval, "letter-spacing", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("text-select", getStyleValue(degnattrval, "text-select", sCtrlType)); //Padding sStyleMsg += getXSLTCtrlAttribute("padding", getStyleValue(degnattrval, "padding", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-left", getStyleValue(degnattrval, "padding-left", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-top", getStyleValue(degnattrval, "padding-top", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-right", getStyleValue(degnattrval, "padding-right", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-bottom", getStyleValue(degnattrval, "padding-bottom", sCtrlType)); //Background sStyleMsg += getXSLTCtrlAttribute("background-color", getStyleValue(degnattrval, "background-color", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-image", getStyleValue(degnattrval, "background-image", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-repeat", getStyleValue(degnattrval, "background-repeat", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-stretch", getStyleValue(degnattrval, "background-stretch", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-position", getStyleValue(degnattrval, "background-position", sCtrlType)); //Border var strBorderStyle = ""; if(document.controls(ctrlid) != null) strBorderStyle = document.controls(ctrlid).attribute("border-style"); if(strBorderStyle != "") { sStyleMsg += getXSLTCtrlAttribute("border-style", strBorderStyle); if(getStyleValue(degnattrval, "border-width", sCtrlType) != "") sStyleMsg += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); else sStyleMsg += getXSLTCtrlAttribute("border-width", "1"); } else { sStyleMsg += getXSLTCtrlAttribute("border-style", getStyleValue(degnattrval, "border-style", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("border-color", getStyleValue(degnattrval, "border-color", sCtrlType)); } //Margin sStyleMsg += getXSLTCtrlAttribute("margin", getStyleValue(degnattrval, "margin", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-left", getStyleValue(degnattrval, "margin-left", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-top", getStyleValue(degnattrval, "margin-top", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-right", getStyleValue(degnattrval, "margin-right", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-bottom", getStyleValue(degnattrval, "margin-bottom", sCtrlType)); //if(pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL" && pCtrlType != "IMG") if(pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "IMG") sStyleMsg += "\""; return sStyleMsg; } /** * @desc : XSLT ½ºÅ¸ÀÏ °ªÀ» ¾ò¾î¿Â´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function getXSLTStyleVal(pCtrlPosition, degnattrval, pCtrlType) { var sLeft = ""; var sTop= ""; var sWidth = ""; var sHeight = ""; var sStyleMsg = "style=\"position:absolute; "; var sCtrlType = null; if(pCtrlType != "grp") sCtrlType = pCtrlType; if(pCtrlType == "RDO" || pCtrlType == "CHK" || pCtrlType == "BOL" || pCtrlType == "MSL" || pCtrlType == "SSL") sCtrlType = "ctrl"; // position sLeft = getStyleValue(degnattrval, "left", sCtrlType); if(sLeft == "") sLeft = pCtrlPosition.x; else{ sLeft = parseInt(sLeft); pCtrlPosition.x = sLeft; } if(pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL") sStyleMsg += "left:"+sLeft+"px; "; sTop= getStyleValue(degnattrval , "top", sCtrlType); if(sTop=="") sTop = pCtrlPosition.y; else{ sTop = parseInt(sTop); pCtrlPosition.y = sTop; } if(pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL") sStyleMsg += "top:"+sTop+"px; "; sWidth = getStyleValue(degnattrval, "width", sCtrlType); if(sWidth == "") sWidth = pCtrlPosition.width; else{ sWidth = parseInt(sWidth); pCtrlPosition.width = sWidth; } if(pCtrlType != "grp" && pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL") sStyleMsg += "width:"+sWidth+"px; "; sHeight = getStyleValue(degnattrval, "height", sCtrlType); if(sHeight == "") sHeight = pCtrlPosition.height; else{ sHeight = parseInt(sHeight); pCtrlPosition.height = sHeight; } if(pCtrlType != "grp" && pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL") sStyleMsg += "height:"+sHeight+"px; "; // Font sStyleMsg += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("font-size", getStyleValue(degnattrval, "font-size", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("font-weight", getStyleValue(degnattrval, "font-weight", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("font-style", getStyleValue(degnattrval, "font-style", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("text-decoration", getStyleValue(degnattrval, "text-decoration", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("color", getStyleValue(degnattrval, "color", sCtrlType)); //Text sStyleMsg += getXSLTCtrlAttribute("text-align", getStyleValue(degnattrval, "text-align", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("vertical-align", getStyleValue(degnattrval, "vertical-align", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("word-wrap", getStyleValue(degnattrval, "word-wrap", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("line-spacing", getStyleValue(degnattrval, "line-spacing", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("letter-spacing", getStyleValue(degnattrval, "letter-spacing", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("text-select", getStyleValue(degnattrval, "text-select", sCtrlType)); //Padding sStyleMsg += getXSLTCtrlAttribute("padding", getStyleValue(degnattrval, "padding", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-left", getStyleValue(degnattrval, "padding-left", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-top", getStyleValue(degnattrval, "padding-top", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-right", getStyleValue(degnattrval, "padding-right", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-bottom", getStyleValue(degnattrval, "padding-bottom", sCtrlType)); //Background sStyleMsg += getXSLTCtrlAttribute("background-color", getStyleValue(degnattrval, "background-color", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-image", getStyleValue(degnattrval, "background-image", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-repeat", getStyleValue(degnattrval, "background-repeat", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-stretch", getStyleValue(degnattrval, "background-stretch", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-position", getStyleValue(degnattrval, "background-position", sCtrlType)); //Border sStyleMsg += getXSLTCtrlAttribute("border-color", getStyleValue(degnattrval, "border-color", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("border-style", getStyleValue(degnattrval, "border-style", sCtrlType)); //Margin sStyleMsg += getXSLTCtrlAttribute("margin", getStyleValue(degnattrval, "margin", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-left", getStyleValue(degnattrval, "margin-left", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-top", getStyleValue(degnattrval, "margin-top", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-right", getStyleValue(degnattrval, "margin-right", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-bottom", getStyleValue(degnattrval, "margin-bottom", sCtrlType)); if(pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL" && pCtrlType != "IMG") sStyleMsg += "\""; return sStyleMsg; } /** * @desc : À̹ÌÁö ÄÁÆ®·ÑÀÇ XSLT ½ºÅ¸ÀÏ °ªÀ» ¾ò¾î¿Â´Ù. * @ * @param : * @return : * @history : 2008-12-19 left, top ÁÂÇ¥´Â ctrl.left, ctrl.top ÁÂÇ¥°¡ À־ 0À¸·Î ó¸®ÇÔ. * @--------------------------------------------------- */ function getImgXSLTStylePos(ctrlid, pCtrlPosition, degnattrval, pCtrlType) { var sLeft = ""; var sTop= ""; var sWidth = ""; var sHeight = ""; var sStyleMsg = "style=\"position:absolute; "; var sCtrlType = null; if(pCtrlType != "grp") sCtrlType = pCtrlType; if(pCtrlType == "RDO" || pCtrlType == "CHK" || pCtrlType == "BOL" || pCtrlType == "MSL" || pCtrlType == "SSL") sCtrlType = "ctrl"; // position if(document.controls(ctrlid) != null) { sLeft = document.controls(ctrlid).attribute("left"); sTop = document.controls(ctrlid).attribute("top"); sWidth = document.controls(ctrlid).attribute("width"); sHeight = document.controls(ctrlid).attribute("height"); if(document.controls(ctrlid).attribute("border-style") != "") { var BdWidth = 0; if(getStyleValue(degnattrval, "border-width", sCtrlType) != "") BdWidth = getStyleValue(degnattrval, "border-width", sCtrlType); else BdWidth = 1; sHeight = parseInt(sHeight) - BdWidth; } } else { sLeft = getStyleValue(degnattrval, "left", sCtrlType); sTop= getStyleValue(degnattrval, "top", sCtrlType); sWidth = getStyleValue(degnattrval, "width", sCtrlType); sHeight = getStyleValue(degnattrval, "height", sCtrlType); if(getStyleValue(degnattrval, "border-style", sCtrlType) != "") { var BdWidth = 0; if(getStyleValue(degnattrval, "border-width", sCtrlType) != "") BdWidth = getStyleValue(degnattrval, "border-width", sCtrlType); else BdWidth = 1; sHeight = parseInt(sHeight) - BdWidth; } } if(sLeft == "") sLeft = pCtrlPosition.x; else{ sLeft = parseInt(sLeft); pCtrlPosition.x = sLeft; } if(sTop=="") sTop = pCtrlPosition.y; else{ sTop = parseInt(sTop); pCtrlPosition.y = sTop; } if(sWidth == "") sWidth = pCtrlPosition.width; else{ sWidth = parseInt(sWidth); pCtrlPosition.width = sWidth; } if(sHeight == "") sHeight = pCtrlPosition.height; else{ sHeight = parseInt(sHeight); pCtrlPosition.height = sHeight; } if(pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL") sStyleMsg += "left:"+sLeft+"px; "; if(pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL") sStyleMsg += "top:"+sTop+"px; "; if(pCtrlType != "grp" && pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL") sStyleMsg += "width:"+sWidth+"px; "; if(pCtrlType != "grp" && pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL") sStyleMsg += "height:"+sHeight+"px; "; sStyleMsg += "\""; return sStyleMsg; } /** * @desc : À̹ÌÁö ÄÁÆ®·ÑÀÇ XSLT ½ºÅ¸ÀÏ °ªÀ» ¾ò¾î¿Â´Ù. * @ * @param : * @return : * @history : 2008-12-19 left, top ÁÂÇ¥´Â ctrl.left, ctrl.top ÁÂÇ¥°¡ À־ 0À¸·Î ó¸®ÇÔ. * @--------------------------------------------------- */ function getImgXSLTStyleVal(ctrlid, pCtrlPosition, degnattrval, pCtrlType) { var sLeft = ""; var sTop= ""; var sWidth = ""; var sHeight = ""; var sStyleMsg = "style=\"position:absolute; "; var sCtrlType = null; if(pCtrlType != "grp") sCtrlType = pCtrlType; if(pCtrlType == "RDO" || pCtrlType == "CHK" || pCtrlType == "BOL" || pCtrlType == "MSL" || pCtrlType == "SSL") sCtrlType = "ctrl"; //Text sStyleMsg += getXSLTCtrlAttribute("text-align", getStyleValue(degnattrval, "text-align", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("vertical-align", getStyleValue(degnattrval, "vertical-align", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("word-wrap", getStyleValue(degnattrval, "word-wrap", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("line-spacing", getStyleValue(degnattrval, "line-spacing", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("letter-spacing", getStyleValue(degnattrval, "letter-spacing", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("text-select", getStyleValue(degnattrval, "text-select", sCtrlType)); //Padding sStyleMsg += getXSLTCtrlAttribute("padding", getStyleValue(degnattrval, "padding", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-left", getStyleValue(degnattrval, "padding-left", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-top", getStyleValue(degnattrval, "padding-top", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-right", getStyleValue(degnattrval, "padding-right", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("padding-bottom", getStyleValue(degnattrval, "padding-bottom", sCtrlType)); //Background sStyleMsg += getXSLTCtrlAttribute("background-color", getStyleValue(degnattrval, "background-color", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-image", getStyleValue(degnattrval, "background-image", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-repeat", getStyleValue(degnattrval, "background-repeat", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-stretch", getStyleValue(degnattrval, "background-stretch", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-position", getStyleValue(degnattrval, "background-position", sCtrlType)); //Border var strBorderStyle = ""; if(document.controls(ctrlid) != null) { if(document.controls(ctrlid).attribute("border-color") != "") sStyleMsg += "border-color:"+document.controls(ctrlid).attribute("border-color")+"; "; strBorderStyle = document.controls(ctrlid).attribute("border-style"); if(strBorderStyle != "") { sStyleMsg += "border-style:"+document.controls(ctrlid).attribute("border-style")+"; "; if(getStyleValue(degnattrval, "border-width", sCtrlType) != "") sStyleMsg += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); else sStyleMsg += getXSLTCtrlAttribute("border-width", "1"); } } else { sStyleMsg += getXSLTCtrlAttribute("border-style", getStyleValue(degnattrval, "border-style", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("border-color", getStyleValue(degnattrval, "border-color", sCtrlType)); } //Margin sStyleMsg += getXSLTCtrlAttribute("margin", getStyleValue(degnattrval, "margin", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-left", getStyleValue(degnattrval, "margin-left", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-top", getStyleValue(degnattrval, "margin-top", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-right", getStyleValue(degnattrval, "margin-right", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("margin-bottom", getStyleValue(degnattrval, "margin-bottom", sCtrlType)); sStyleMsg += "\""; return sStyleMsg; } /** * @desc : XSLT ½ºÅ¸ÀÏ °ªÀ» ¾ò¾î¿Â´Ù. * @ * @param : * @return : * @history : 2008-12-10 ÄÁÆ®·ÑÀÇ ÆùÆ® Á¤º¸¸¦ ¾ò¾î¿Â´Ù. * @--------------------------------------------------- */ function getPatternXSLTStyleVal(ctrlid, pCtrlPosition, degnattrval, sCtrlType) { var sStyleMsg = ""; var pattern = "#0."; var roundmode = ""; var roundposition = ""; var format = ""; if(document.controls(ctrlid) != null) { roundmode = document.controls(ctrlid).attribute("roundmode"); roundposition = document.controls(ctrlid).attribute("roundposition"); //format = document.controls(ctrlid).attribute("format").split("."); if(parseInt(roundposition) < 0) roundposition = parseInt(roundposition) * (-1); else roundposition = parseInt(roundposition); for(var idx=0; idx < roundposition; idx++) { pattern += "0"; } } return pattern ; } /** * @desc : XSLT ¼Ó¼ºÀ» ¾ò¾î¿Â´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function getXSLTCtrlAttribute(type, value){ if(value != "") return type+":"+value+"; "; return ""; } /** * @desc : StyleCss ¸¦ ¹ÝȯÇÑ´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function getStyleCss() { //var styleCss = "\n"; //var styleCss = "\t\t\n"; var styleCss = "\t\t\n"; return styleCss; } /** * @desc : ÆíÁý°¡´ÉÇÑ À̹ÌÁö URLÀ» ¹ÝȯÇÑ´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function getRecImgUrl(degnitemlevlcd) { return getActionURI("TRMRF01213") + getUserSessionString() + "&pid=&orddd=&cretno=&formrecdd=&formcd=°nitemlevlcd=" + degnitemlevlcd + "&formrechm="; //return getActionURI("TRMRF01213") + getUserSessionString() + "&formdegnseq=" + formdegnseq + "°nitemlevlcd=" + degnitemlevlcd; } /** * @desc : ÆíÁýºÒ°¡´ÉÇÑ À̹ÌÁö URLÀ» ¹ÝȯÇÑ´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function getImgUrl(imgecd) { return getActionURI("TRMRF01212") + getUserSessionString() + "&imgecd=" + imgecd; } /** * @desc : Border ¼Ó¼ºÀÌ ¾øÀ» °æ¿ì Ãß°¡ÇÑ´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function AddBorderStyle(sStyle, degnattrval, ctrlType) { var tmpDegnattrval = degnattrval; var borderStyle = getStyleValue(tmpDegnattrval, "border-style", ctrlType); if(borderStyle == "solid" || borderStyle == "dotted" || borderStyle == "dashed" || borderStyle == "outset") { var pxSize = ""; pxSize = getStyleValue(tmpDegnattrval, "border-width", ctrlType); if(pxSize == "") { pxSize = 1; // ±âº» µÎ²² var pxStyle= borderStyle + "; border-width:" + pxSize; sStyle = sStyle.setReplaceWord(borderStyle, pxStyle); } } /* else if(borderStyle == "none") { sStyle += "border-style:none; "; } */ return sStyle; } /** * @desc : Preű׿¡ Æ÷Ç﵃ style Á¤º¸¸¦ °¡Á®¿Â´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function getPreXSLTStyle(ctrlid, pCtrlPosition, degnattrval, sCtrlType) { var ctrlWidth = ""; var ctrlHeight = ""; if(document.controls(ctrlid) != null) { ctrlWidth = document.controls(ctrlid).attribute("width"); ctrlHeight = document.controls(ctrlid).attribute("height"); } else { ctrlWidth = getStyleValue(degnattrval, "width", sCtrlType); ctrlHeight = getStyleValue(degnattrval, "height", sCtrlType); } if(ctrlWidth == "") ctrlWidth = pCtrlPosition.width; else { var strBorderStyle = ""; if(document.controls(ctrlid) != null) strBorderStyle = document.controls(ctrlid).attribute("border-style"); if(strBorderStyle != "") { ctrlWidth = parseInt(ctrlWidth) - 1; } else { ctrlWidth = parseInt(ctrlWidth); } pCtrlPosition.width = ctrlWidth; } if(ctrlHeight == "") ctrlHeight = pCtrlPosition.height; else { var strBorderStyle = ""; if(document.controls(ctrlid) != null) strBorderStyle = document.controls(ctrlid).attribute("border-style"); if(strBorderStyle != "") { ctrlHeight = parseInt(ctrlHeight) - 1; } else { ctrlHeight = parseInt(ctrlHeight); } pCtrlPosition.height = ctrlHeight; } var preStyle = "style=\"position:absolute; left:0px; top:0px; width:" + parseInt(ctrlWidth) + "px; height:" + parseInt(ctrlHeight) + "px; "; // Font Style if(document.controls(ctrlid) != null) { // FontName var fontfamilyArr = document.controls(ctrlid).attribute("font-family").split(","); if(fontfamilyArr.length > 0) { preStyle += getXSLTCtrlAttribute("font-family", fontfamilyArr[0]); } else preStyle += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); // FontSize var fontSize = document.controls(ctrlid).attribute("font-size"); if(fontSize != "") preStyle += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else preStyle += getXSLTCtrlAttribute("font-size", "9"); preStyle += getXSLTCtrlAttribute("font-weight", document.controls(ctrlid).attribute("font-weight")); preStyle += getXSLTCtrlAttribute("font-style", document.controls(ctrlid).attribute("font-style")); preStyle += getXSLTCtrlAttribute("text-decoration", document.controls(ctrlid).attribute("text-decoration")); var fontColor = document.controls(ctrlid).attribute("color"); if(fontColor != "") { if(fontColor.charAt(0) != "#") preStyle += getXSLTCtrlAttribute("color", "#" + fontColor); else preStyle += getXSLTCtrlAttribute("color", fontColor); } } else { preStyle += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); var fontSize = getStyleValue(degnattrval, "font-size", sCtrlType); if(fontSize != "") preStyle += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else preStyle += getXSLTCtrlAttribute("font-size", "9"); //sStyleMsg += getXSLTCtrlAttribute("font-size", getStyleValue(degnattrval, "font-size", sCtrlType)); preStyle += getXSLTCtrlAttribute("font-weight", getStyleValue(degnattrval, "font-weight", sCtrlType)); preStyle += getXSLTCtrlAttribute("font-style", getStyleValue(degnattrval, "font-style", sCtrlType)); preStyle += getXSLTCtrlAttribute("text-decoration", getStyleValue(degnattrval, "text-decoration", sCtrlType)); preStyle += getXSLTCtrlAttribute("color", getStyleValue(degnattrval, "color", sCtrlType)); } //Text if(document.controls(ctrlid) != null) { var Halign = document.controls(ctrlid).attribute("text-align"); var Valign = document.controls(ctrlid).attribute("vertical-align"); if(Halign != "") preStyle += getXSLTCtrlAttribute("text-align", Halign); else preStyle += getXSLTCtrlAttribute("text-align", getStyleValue(degnattrval, "text-align", sCtrlType)); if(Valign != "") preStyle += getXSLTCtrlAttribute("vertical-align", Valign); else preStyle += getXSLTCtrlAttribute("vertical-align", getStyleValue(degnattrval, "vertical-align", sCtrlType)); } else { preStyle += getXSLTCtrlAttribute("text-align", getStyleValue(degnattrval, "text-align", sCtrlType)); preStyle += getXSLTCtrlAttribute("vertical-align", getStyleValue(degnattrval, "vertical-align", sCtrlType)); } preStyle += getXSLTCtrlAttribute("word-wrap", getStyleValue(degnattrval, "word-wrap", sCtrlType)); preStyle += getXSLTCtrlAttribute("line-spacing", getStyleValue(degnattrval, "line-spacing", sCtrlType)); preStyle += getXSLTCtrlAttribute("letter-spacing", getStyleValue(degnattrval, "letter-spacing", sCtrlType)); preStyle += getXSLTCtrlAttribute("text-select", getStyleValue(degnattrval, "text-select", sCtrlType)); //Padding preStyle += getXSLTCtrlAttribute("padding", getStyleValue(degnattrval, "padding", sCtrlType)); preStyle += getXSLTCtrlAttribute("padding-left", getStyleValue(degnattrval, "padding-left", sCtrlType)); preStyle += getXSLTCtrlAttribute("padding-top", getStyleValue(degnattrval, "padding-top", sCtrlType)); preStyle += getXSLTCtrlAttribute("padding-right", getStyleValue(degnattrval, "padding-right", sCtrlType)); preStyle += getXSLTCtrlAttribute("padding-bottom", getStyleValue(degnattrval, "padding-bottom", sCtrlType)); //Background preStyle += getXSLTCtrlAttribute("background-color", getStyleValue(degnattrval, "background-color", sCtrlType)); preStyle += getXSLTCtrlAttribute("background-image", getStyleValue(degnattrval, "background-image", sCtrlType)); preStyle += getXSLTCtrlAttribute("background-repeat", getStyleValue(degnattrval, "background-repeat", sCtrlType)); preStyle += getXSLTCtrlAttribute("background-stretch", getStyleValue(degnattrval, "background-stretch", sCtrlType)); preStyle += getXSLTCtrlAttribute("background-position", getStyleValue(degnattrval, "background-position", sCtrlType)); //Border var strBorderStyle = ""; if(document.controls(ctrlid) != null) strBorderStyle = document.controls(ctrlid).attribute("border-style"); if(strBorderStyle != "") { preStyle += getXSLTCtrlAttribute("border-style", strBorderStyle); if(getStyleValue(degnattrval, "border-width", sCtrlType) != "") preStyle += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); else preStyle += getXSLTCtrlAttribute("border-width", "1"); } else { preStyle += getXSLTCtrlAttribute("border-style", getStyleValue(degnattrval, "border-style", sCtrlType)); preStyle += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); preStyle += getXSLTCtrlAttribute("border-color", getStyleValue(degnattrval, "border-color", sCtrlType)); } //Margin preStyle += getXSLTCtrlAttribute("margin", getStyleValue(degnattrval, "margin", sCtrlType)); preStyle += getXSLTCtrlAttribute("margin-left", getStyleValue(degnattrval, "margin-left", sCtrlType)); preStyle += getXSLTCtrlAttribute("margin-top", getStyleValue(degnattrval, "margin-top", sCtrlType)); preStyle += getXSLTCtrlAttribute("margin-right", getStyleValue(degnattrval, "margin-right", sCtrlType)); preStyle += getXSLTCtrlAttribute("margin-bottom", getStyleValue(degnattrval, "margin-bottom", sCtrlType)); /* // Font preStyle += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); preStyle += getXSLTCtrlAttribute("font-size", getStyleValue(degnattrval, "font-size", sCtrlType)); preStyle += getXSLTCtrlAttribute("font-weight", getStyleValue(degnattrval, "font-weight", sCtrlType)); preStyle += getXSLTCtrlAttribute("font-style", getStyleValue(degnattrval, "font-style", sCtrlType)); preStyle += getXSLTCtrlAttribute("text-decoration", getStyleValue(degnattrval, "text-decoration", sCtrlType)); preStyle += getXSLTCtrlAttribute("color", getStyleValue(degnattrval, "color", sCtrlType)); //Text preStyle += getXSLTCtrlAttribute("text-align", getStyleValue(degnattrval, "text-align", sCtrlType)); preStyle += getXSLTCtrlAttribute("vertical-align", getStyleValue(degnattrval, "vertical-align", sCtrlType)); preStyle += getXSLTCtrlAttribute("word-wrap", getStyleValue(degnattrval, "word-wrap", sCtrlType)); preStyle += getXSLTCtrlAttribute("line-spacing", getStyleValue(degnattrval, "line-spacing", sCtrlType)); preStyle += getXSLTCtrlAttribute("letter-spacing", getStyleValue(degnattrval, "letter-spacing", sCtrlType)); preStyle += getXSLTCtrlAttribute("text-select", getStyleValue(degnattrval, "text-select", sCtrlType)); //Padding preStyle += getXSLTCtrlAttribute("padding", getStyleValue(degnattrval, "padding", sCtrlType)); preStyle += getXSLTCtrlAttribute("padding-left", getStyleValue(degnattrval, "padding-left", sCtrlType)); preStyle += getXSLTCtrlAttribute("padding-top", getStyleValue(degnattrval, "padding-top", sCtrlType)); preStyle += getXSLTCtrlAttribute("padding-right", getStyleValue(degnattrval, "padding-right", sCtrlType)); preStyle += getXSLTCtrlAttribute("padding-bottom", getStyleValue(degnattrval, "padding-bottom", sCtrlType)); //Background preStyle += getXSLTCtrlAttribute("background-color", getStyleValue(degnattrval, "background-color", sCtrlType)); preStyle += getXSLTCtrlAttribute("background-image", getStyleValue(degnattrval, "background-image", sCtrlType)); preStyle += getXSLTCtrlAttribute("background-repeat", getStyleValue(degnattrval, "background-repeat", sCtrlType)); preStyle += getXSLTCtrlAttribute("background-stretch", getStyleValue(degnattrval, "background-stretch", sCtrlType)); preStyle += getXSLTCtrlAttribute("background-position", getStyleValue(degnattrval, "background-position", sCtrlType)); //Border preStyle += getXSLTCtrlAttribute("border-color", getStyleValue(degnattrval, "border-color", sCtrlType)); preStyle += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); preStyle += getXSLTCtrlAttribute("border-style", getStyleValue(degnattrval, "border-style", sCtrlType)); //Margin preStyle += getXSLTCtrlAttribute("margin", getStyleValue(degnattrval, "margin", sCtrlType)); preStyle += getXSLTCtrlAttribute("margin-left", getStyleValue(degnattrval, "margin-left", sCtrlType)); preStyle += getXSLTCtrlAttribute("margin-top", getStyleValue(degnattrval, "margin-top", sCtrlType)); preStyle += getXSLTCtrlAttribute("margin-right", getStyleValue(degnattrval, "margin-right", sCtrlType)); preStyle += getXSLTCtrlAttribute("margin-bottom", getStyleValue(degnattrval, "margin-bottom", sCtrlType)); */ preStyle += " \""; return preStyle; } /** * @desc : degnitemnm ¿¡ °ø¹é󸮸¦ ÇÑ´Ù. * @ * @param : * @return : * @--------------------------------------------------- */ function GetDegnitemnmTrans(degnitemnm) { var spaceStart = false; var spaceEnd = false; var tempDegnitemnm = ""; var spaceheader = ""; var spacetext = " "; var space = ""; var strStlen = 0; var strEdlen = 0; var strtext = ""; for(var spaceidx = 0; spaceidx < degnitemnm.length; spaceidx++) { if(degnitemnm.charAt(spaceidx) == " ") { if(parseInt(degnitemnm.length) <= parseInt(spaceidx+1)) { if(spaceStart == true) { space += spacetext; // ¹®ÀÚ°¡ ºóÄ­À̰í spaceStart -> trueÀÌ¸é ºóÄ­Text¸¦ ºÙÀÓ. space += spacefooter; tempDegnitemnm += space; spaceStart = false; strStlen = strEdlen; strEdlen++; } } else { if(degnitemnm.charAt(spaceidx+1) == " ") // ¿¬¼Ó °ø¹éÀÎ °æ¿ì { if(spaceStart == false) // ¹®ÀÚ°¡ ºóÄ­À̰í spaceStart -> falseÀ̸é Çì´õ¸¦ ºÙÀÓ. { // ÅØ½ºÆ® ÀúÀåÇϱâ strEdlen = spaceidx; strtext = degnitemnm.substring(parseInt(strStlen), parseInt(strEdlen)); if(isSearchString(strtext, "\n") == true) { tempDegnitemnm += "
"; strtext = strtext.setReplaceWord("\n", ""); } tempDegnitemnm += ""; strStlen = strEdlen; space = spaceheader; spaceStart = true; } space += spacetext; // ¹®ÀÚ°¡ ºóÄ­À̰í spaceStart -> trueÀÌ¸é ºóÄ­Text¸¦ ºÙÀÓ. strEdlen++; } else { if(spaceStart == true) // ¹®ÀÚ°¡ ºóÄ­À̰í spaceStart -> trueÀÌ¸é ºóÄ­Text¸¦ ºÙÀÓ. { space += spacetext; } strEdlen++; continue; } } } else { // ¹®ÀÚ¿­ÀÌ ºóÄ­ÀÌ ¾Æ´Ï°í ÀÏ¹Ý ÅØ½ºÆ®ÀÎ °æ¿ì if(spaceStart == true) { // ºóÄ­À» 2°³ ´õ ºÙÀδÙ. space += spacetext; //space += spacetext; // Space ÅØ½ºÆ®¿¡ footer¸¦ ºÙÀ̰í Àӽà µðÀÚÀξÆÀÌÅÛ¸í¿¡ ºÙÀδÙ. space += spacefooter; tempDegnitemnm += space; spaceStart = false; strStlen = strEdlen; } continue; } } if(parseInt(strEdlen) < parseInt(degnitemnm.length)) { if(tempDegnitemnm == "") { strEdlen = 0; if(isSearchString(degnitemnm, "\n") == true) { degnitemnm = degnitemnm.setReplaceWord("\n", "]]>
"; } return tempDegnitemnm; } /** * @desc : RDO, CHKÀÇ XSLT ½ºÅ¸ÀÏ °ªÀ» ¾ò¾î¿Â´Ù.(ÆùÆ®Á¤º¸´Â ÄÁÆ®·Ñ¿¡¼­) * @ * @param : * @return : * @history : * @--------------------------------------------------- */ function getSelXSLTStyleVal(ctrlid, pCtrlPosition, degnattrval, pCtrlType) { var sLeft = ""; var sTop= ""; var sWidth = ""; var sHeight = ""; var sStyleMsg = "style=\"position:absolute; "; var sCtrlType = null; if(pCtrlType != "grp") sCtrlType = pCtrlType; if(pCtrlType == "RDO" || pCtrlType == "CHK" || pCtrlType == "BOL" || pCtrlType == "MSL" || pCtrlType == "SSL") sCtrlType = "ctrl"; // position if(document.controls(ctrlid) != null) { sLeft = document.controls(ctrlid).attribute("left") } else sLeft = getStyleValue(degnattrval, "left", sCtrlType); if(sLeft == "") sLeft = pCtrlPosition.x; else{ sLeft = parseInt(sLeft); pCtrlPosition.x = sLeft; } sStyleMsg += "left:"+sLeft+"px; "; if(document.controls(ctrlid) != null) { sTop = document.controls(ctrlid).attribute("top") } else sTop= getStyleValue(degnattrval, "top", sCtrlType); if(sTop=="") sTop = pCtrlPosition.y; else{ sTop = parseInt(sTop); pCtrlPosition.y = sTop; } sStyleMsg += "top:"+sTop+"px; "; /* if(document.controls(ctrlid) != null) { sWidth = document.controls(ctrlid).attribute("width") } else sWidth = getStyleValue(degnattrval, "width", sCtrlType); if(sWidth == "") sWidth = pCtrlPosition.width; else{ sWidth = parseInt(sWidth); pCtrlPosition.width = sWidth; } sStyleMsg += "width:"+sWidth+"px; "; if(document.controls(ctrlid) != null) { sHeight = document.controls(ctrlid).attribute("height") } else sHeight = getStyleValue(degnattrval, "height", sCtrlType); if(sHeight == "") sHeight = pCtrlPosition.height; else{ sHeight = parseInt(sHeight); pCtrlPosition.height = sHeight; } sStyleMsg += "height:"+sHeight+"px; "; */ if(pCtrlType != "grp" && pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "SSL") { // Å×À̺í Àüü Å©±â¸¦ ctrlheight·Î ¹ÞÀ¸¸é º¯°æÇÒ°Í. // Å×À̺í Àüü Å©±â¸¦ ctrlheight·Î ¹Þµµ·Ï ÇÏÁö ¾ÊÀº ÀÌÀü ¹öÀü¿¡ ¹Ì¸® Àû¿ëÇÒ °æ¿ì Å×À̺íÀÌ Àϱ׷¯Á® º¸ÀÓ. /* var tmpCtrlType =""; if(ctrlid != "") { tmpCtrlType = ctrlid.split("_")[0]; } if(tmpCtrlType == "TBL" || tmpCtrlType == "DGN" || tmpCtrlType == "OPN" || tmpCtrlType == "CCN") sStyleMsg += "ctrlheight:"+sHeight+"px; "; else sStyleMsg += "height:"+sHeight+"px; "; */ } if(document.controls(ctrlid) != null) { // FontName var fontfamilyArr = document.controls(ctrlid).attribute("font-family").split(","); if(fontfamilyArr.length > 0) { sStyleMsg += getXSLTCtrlAttribute("font-family", fontfamilyArr[0]); } else sStyleMsg += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); // FontSize var fontSize = document.controls(ctrlid).attribute("font-size"); if(fontSize != "") sStyleMsg += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else sStyleMsg += getXSLTCtrlAttribute("font-size", "9"); sStyleMsg += getXSLTCtrlAttribute("font-weight", document.controls(ctrlid).attribute("font-weight")); sStyleMsg += getXSLTCtrlAttribute("font-style", document.controls(ctrlid).attribute("font-style")); sStyleMsg += getXSLTCtrlAttribute("text-decoration", document.controls(ctrlid).attribute("text-decoration")); var fontColor = document.controls(ctrlid).attribute("color"); if(fontColor != "") { if(fontColor.charAt(0) != "#") sStyleMsg += getXSLTCtrlAttribute("color", "#" + fontColor); else sStyleMsg += getXSLTCtrlAttribute("color", fontColor); } } else { sStyleMsg += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); var fontSize = getStyleValue(degnattrval, "font-size", sCtrlType); if(fontSize != "") sStyleMsg += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else sStyleMsg += getXSLTCtrlAttribute("font-size", "9"); //sStyleMsg += getXSLTCtrlAttribute("font-size", getStyleValue(degnattrval, "font-size", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("font-weight", getStyleValue(degnattrval, "font-weight", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("font-style", getStyleValue(degnattrval, "font-style", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("text-decoration", getStyleValue(degnattrval, "text-decoration", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("color", getStyleValue(degnattrval, "color", sCtrlType)); } sStyleMsg += "\""; return sStyleMsg; } /** * @desc : SSUÀÇ XSLT ½ºÅ¸ÀÏ °ªÀ» ¾ò¾î¿Â´Ù.(ÆùÆ®Á¤º¸´Â ÄÁÆ®·Ñ¿¡¼­) * @ * @param : * @return : * @history : * @--------------------------------------------------- */ function getSelSSUXSLTStyleVal(ctrlid, pCtrlPosition, degnattrval, pCtrlType) { var strArr = new Array(2); var sLeft = ""; var sLabelLeft = ""; var sTop = ""; var sWidth = ""; var sHeight = ""; var sStyleMsg = "style=\"position:absolute; "; var sLabelStyleMsg = "style=\"position:absolute; "; var sCtrlType = null; if(pCtrlType != "grp") sCtrlType = pCtrlType; if(pCtrlType == "RDO" || pCtrlType == "CHK" || pCtrlType == "BOL" || pCtrlType == "MSL" || pCtrlType == "SSL") sCtrlType = "ctrl"; // position if(document.controls(ctrlid) != null) { sLeft = document.controls(ctrlid).attribute("left"); sTop = document.controls(ctrlid).attribute("top"); sWidth = document.controls(ctrlid).attribute("width"); sHeight = document.controls(ctrlid).attribute("height"); } else { sLeft = getStyleValue(degnattrval, "left", sCtrlType); sTop= getStyleValue(degnattrval, "top", sCtrlType); sWidth = getStyleValue(degnattrval, "width", sCtrlType); sHeight = getStyleValue(degnattrval, "height", sCtrlType); } if(sLeft == "") sLeft = pCtrlPosition.x; else{ sLeft = parseInt(sLeft); pCtrlPosition.x = sLeft; } if(sTop=="") sTop = pCtrlPosition.y; else{ sTop = parseInt(sTop); pCtrlPosition.y = sTop; } if(sWidth == "") sWidth = pCtrlPosition.width; else{ sWidth = parseInt(sWidth); pCtrlPosition.width = sWidth; } if(sHeight == "") sHeight = pCtrlPosition.height; else{ sHeight = parseInt(sHeight); pCtrlPosition.height = sHeight; } sStyleMsg += "left:"+sLeft+"px; "; sLabelStyleMsg += "left:"+(parseInt(sLeft)+15)+"px; "; sStyleMsg += "top:"+sTop+"px; "; sLabelStyleMsg += "top:"+sTop+"px; "; sStyleMsg += "width:"+sWidth+"px; "; sLabelStyleMsg += "width:"+sWidth+"px; "; sStyleMsg += "height:"+sHeight+"px; "; sLabelStyleMsg += "height:"+sHeight+"px; "; // Font if(document.controls(ctrlid) != null) { // FontName var fontfamilyArr = document.controls(ctrlid).attribute("font-family").split(","); if(fontfamilyArr.length > 0) { sLabelStyleMsg += getXSLTCtrlAttribute("font-family", fontfamilyArr[0]); } else sLabelStyleMsg += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); // FontSize var fontSize = document.controls(ctrlid).attribute("font-size"); if(fontSize != "") sLabelStyleMsg += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else sLabelStyleMsg += getXSLTCtrlAttribute("font-size", "9"); sLabelStyleMsg += getXSLTCtrlAttribute("font-weight", document.controls(ctrlid).attribute("font-weight")); sLabelStyleMsg += getXSLTCtrlAttribute("font-style", document.controls(ctrlid).attribute("font-style")); sLabelStyleMsg += getXSLTCtrlAttribute("text-decoration", document.controls(ctrlid).attribute("text-decoration")); var fontColor = document.controls(ctrlid).attribute("color"); if(fontColor != "") { if(fontColor.charAt(0) != "#") sLabelStyleMsg += getXSLTCtrlAttribute("color", "#" + fontColor); else sLabelStyleMsg += getXSLTCtrlAttribute("color", fontColor); } } else { sLabelStyleMsg += getXSLTCtrlAttribute("font-family", getStyleValue(degnattrval, "font-family", sCtrlType)); var fontSize = getStyleValue(degnattrval, "font-size", sCtrlType); if(fontSize != "") sLabelStyleMsg += getXSLTCtrlAttribute("font-size", (parseInt(fontSize) - 3)); else sLabelStyleMsg += getXSLTCtrlAttribute("font-size", "9"); sLabelStyleMsg += getXSLTCtrlAttribute("font-weight", getStyleValue(degnattrval, "font-weight", sCtrlType)); sLabelStyleMsg += getXSLTCtrlAttribute("font-style", getStyleValue(degnattrval, "font-style", sCtrlType)); sLabelStyleMsg += getXSLTCtrlAttribute("text-decoration", getStyleValue(degnattrval, "text-decoration", sCtrlType)); sLabelStyleMsg += getXSLTCtrlAttribute("color", getStyleValue(degnattrval, "color", sCtrlType)); } sStyleMsg += "\""; sLabelStyleMsg += "\""; strArr[0] = sStyleMsg; strArr[1] = sLabelStyleMsg; return strArr; } /** * @desc : XSLT ½ºÅ¸ÀÏ °ªÀ» ¾ò¾î¿Â´Ù.(ÆùÆ®Á¤º¸´Â ÄÁÆ®·Ñ¿¡¼­) * @ * @param : * @return : * @history : 2008-12-10 ÄÁÆ®·ÑÀÇ ÆùÆ® Á¤º¸¸¦ ¾ò¾î¿Â´Ù. * @--------------------------------------------------- */ function getShapeXSLTStyleVal(ctrlid, pCtrlPosition, degnattrval, pCtrlType) { var sLeft = ""; var sTop= ""; var sWidth = ""; var sHeight = ""; var sStyleMsg = "style=\"position:absolute; "; var sCtrlType = null; if(pCtrlType != "grp") sCtrlType = pCtrlType; if(pCtrlType == "RDO" || pCtrlType == "CHK" || pCtrlType == "BOL" || pCtrlType == "MSL" || pCtrlType == "SSL") sCtrlType = "ctrl"; // position if(document.controls(ctrlid) != null) { sLeft = document.controls(ctrlid).attribute("left"); } else sLeft = getStyleValue(degnattrval, "left", sCtrlType); if(sLeft == "") sLeft = pCtrlPosition.x; else{ sLeft = parseInt(sLeft); pCtrlPosition.x = sLeft; } if(pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") sStyleMsg += "left:"+sLeft+"px; "; if(document.controls(ctrlid) != null) { sTop = document.controls(ctrlid).attribute("top"); } else sTop= getStyleValue(degnattrval, "top", sCtrlType); if(sTop=="") sTop = pCtrlPosition.y; else{ sTop = parseInt(sTop); pCtrlPosition.y = sTop; } if(pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") sStyleMsg += "top:"+sTop+"px; "; if(document.controls(ctrlid) != null) { sWidth = document.controls(ctrlid).attribute("width"); } else sWidth = getStyleValue(degnattrval, "width", sCtrlType); if(sWidth == "") sWidth = pCtrlPosition.width; else{ sWidth = parseInt(sWidth) - 1; pCtrlPosition.width = sWidth; } if(pCtrlType != "grp" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") sStyleMsg += "width:"+sWidth+"px; "; if(document.controls(ctrlid) != null) { sHeight = document.controls(ctrlid).attribute("height"); } else sHeight = getStyleValue(degnattrval, "height", sCtrlType); if(sHeight == "") sHeight = pCtrlPosition.height; else{ sHeight = parseInt(sHeight) - 1; pCtrlPosition.height = sHeight; } if(pCtrlType != "grp" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL") { sStyleMsg += "height:"+sHeight+"px; "; } //Background sStyleMsg += getXSLTCtrlAttribute("background-color", getStyleValue(degnattrval, "background-color", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-image", getStyleValue(degnattrval, "background-image", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-repeat", getStyleValue(degnattrval, "background-repeat", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-stretch", getStyleValue(degnattrval, "background-stretch", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("background-position", getStyleValue(degnattrval, "background-position", sCtrlType)); //Border var strBorderStyle = ""; if(document.controls(ctrlid) != null) strBorderStyle = document.controls(ctrlid).attribute("border-style"); if(strBorderStyle != "") { sStyleMsg += getXSLTCtrlAttribute("border-style", strBorderStyle); if(getStyleValue(degnattrval, "border-width", sCtrlType) != "") sStyleMsg += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); else sStyleMsg += getXSLTCtrlAttribute("border-width", "1"); } else { sStyleMsg += getXSLTCtrlAttribute("border-style", getStyleValue(degnattrval, "border-style", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("border-width", getStyleValue(degnattrval, "border-width", sCtrlType)); sStyleMsg += getXSLTCtrlAttribute("border-color", getStyleValue(degnattrval, "border-color", sCtrlType)); } if(pCtrlType != "RDO" && pCtrlType != "CHK" && pCtrlType != "BOL" && pCtrlType != "MSL" && pCtrlType != "IMG") sStyleMsg += "\""; return sStyleMsg; }