ÇÁ·ÎÁ§Æ®ÁøÃ´°ü¸®(Àϰý¼öÁ¤) <item> <name>´ëºÐ·ù</name> <id>lrg</id> </item> <item> <name>Áߺзù</name> <id>mdl</id> </item> <item> <name>¼ÒºÐ·ù</name> <id>sml</id> </item> <item> <name>±¸ºÐ</name> <id>srfeflag</id> </item> <item> <name>È­¸éID</name> <id>scrnid</id> </item> <item> <name>È­¸é¸í</name> <id>scrnname</id> </item> <item> <name>Á߿䵵</name> <id>insuimp</id> </item> <item> <name>¼¼ºÎ±â´É/¿À·ù</name> <id>detailfe</id> </item> <item> <name>°³¹ßÀÚID</name> <id>dev</id> </item> <item> <name>¿¹Á¤½ÃÀÛÀÏ</name> <id>schestartdd</id> </item> <item> <name>¿¹Á¤¿Ï·áÀÏ</name> <id>schedd</id> </item> <item> <name>Ãß°¡ÀÏ</name> <id>acptdd</id> </item> <item> <name>½ÃÀÛÀÏ</name> <id>startdd</id> </item> <item> <name>Á¾·áÀÏ</name> <id>enddd</id> </item> <item> <name>ÁøÇà·ü</name> <id>prcsrate</id> </item> <item> <name>°øÁ¤´ë»ó</name> <id>prcsyn</id> </item> <item> <name>ºñ°í</name> <id>remark</id> </item> <item> <name>±â´ÉºÐÇØ1</name> <id>funt1</id> </item> <item> <name>±â´ÉºÐÇØ2</name> <id>funt2</id> </item> <item> <name>±â´ÉºÐÇØ3</name> <id>funt3</id> </item> <item> <name>¼öÁ¤Çʿ俩ºÎ</name> <id>updtneedyn</id> </item> <item> <name>°úÁ¦¸í</name> <id>subjno</id> </item> <item> <name>»ç¿ë¿©ºÎ</name> <id>useyn</id> </item> <item> <name>º¯°æ±¸ºÐ</name> <id>adchflag</id> </item> <item> <name>Àû¿ë±âÁØÀÏ</name> <id>appdd</id> </item> <item> <name>ÅëÇÕ°³¹ß</name> <id>devflag</id> </item> <item> <name>M/D</name> <id>manday</id> </item> <item> <name>³­À̵µ</name> <id>dgrdifclt</id> </item> ½ÃÀÛÀÏ startdd Á¾·áÀÏ enddd ÁøÇà·ü prcsrate ¼ÒÀ§¿øÈ¸ reprdept È­¸é°ËÁõ¿Ï·á scrnveriyn Å×½ºÆ®¿Ï·á testendyn ÀμöÀ§¿Ï·á insuendyn ºñ°í remark
<content/> </send> </root> </instance> <script type="javascript" ev:event="xforms-ready"> <![CDATA[ // var popIndex = opener.model.getValue("/root/popIndex"); // // if (popIndex == "super"){ // combo1.choices.itemset.attribute("nodeset") = "/root/init/title/item"; // var def = opener.grd_projlist.col; // // // ¿ÀÇÁ³ÊÀÇ Ä÷³ ¸®½ºÆ®¸¦ ¹Þ¾Æ ¿Í¼­(def) ÇöÀç ÆË¾÷ÀÇ ÄÞº¸ ¸®½ºÆ®¿Í ¸ÅÄ¡ ½ÃŲ´Ù. // // def °ªÀº ÄÞº¸ ¹Ú½º¿¡ select °ªÀ¸·Î ³Ñ°Ü ÁØ´Ù.(ÄÞº¸ À妽º´Â 0 ºÎÅÍ ½ÃÀÛÇÑ´Ù) // // ´ëºÐ·ù ºÎÅÍ Àϰý¼öÁ¤ÀÌ Àû¿ë µÇ¹Ç·Î ±× ÀÌÀüÀÇ Ä÷³ ¸®½ºÆ®´Â Á¦¿ÜÇØ¾ß ÇϹǷΠ5¸¦ »©´Â °ÍÀÌ´Ù. // if(def < 15) // { // def = def -5; // } // else if(def < 22) // { // def = def-7; // } // else if (def < 34) // { // def = def - 14; // } // else // { // def = def -18; // } // combo1.refresh(); // combo1.select(parseInt(def)); // } else if (popIndex == "dev"){ // combo1.choices.itemset.attribute("nodeset") = "/root/init/title2/item"; // combo1.refresh(); // combo1.select(0); // } else if (popIndex == "insu"){ // combo1.choices.itemset.attribute("nodeset") = "/root/init/title3/item"; // combo1.refresh(); // combo1.select(0); // } else { // alert("error"); // } // ÆË¾÷ Å×½ºÆ®¿ë // var popIndex = "super"; // var def = "appdd"; var popIndex = opener.model.getValue("/root/popIndex"); var def = opener.grd_projlist.colAttribute(opener.grd_projlist.col,"ref"); if(def == "schestartdd" || def == "schedd" || def == "acptdd" || def == "startdd" || def == "enddd" || def == "appdd") { input1.attribute("format") = "yyyy-mm-dd"; input1.attribute("mask") = "include"; } input1.refresh(); if (popIndex == "super"){ combo1.choices.itemset.attribute("nodeset") = "/root/init/title/item"; model.setValue("/root/send/title",def); combo1.refresh(); } else if (popIndex == "dev"){ combo1.choices.itemset.attribute("nodeset") = "/root/init/title2/item"; model.setValue("/root/send/title",def); combo1.refresh(); } else if (popIndex == "insu"){ combo1.choices.itemset.attribute("nodeset") = "/root/init/title3/item"; model.setValue("/root/send/title",def); combo1.refresh(); } else { alert("error"); } // ÆË¾÷ Å×½ºÆ®¿ë µ¥ÀÌÅÍ ¼ÂÆÃÇϱâ~ // col element ¾ò¾î ¿À±â // grd_projlist.colAttribute(grd_projlist.col,"ref") // grd_projlist.colAttribute(grd_projlist.col,"type") // // var def = "sml"; // combo1.choices.itemset.attribute("nodeset") = "/root/init/title/item"; // model.setValue("/root/send/title",def); // combo1.refresh(); ]]> </script> </model> <script type="javascript" src="../../commonweb/js/common.js"/> <script type="javascript"> <![CDATA[ function fSetContent(){ var content = model.getValue("/root/send/content"); var title = model.getValue("/root/send/title"); for(var i=0; i<opener.grd_projlist.selectedRows; i++) { opener.model.setValue("/root/main/projlist/list/proj[" + (opener.grd_projlist.selectedRow(i) - opener.grd_projlist.fixedRows + 1) + "]/"+title, content); } window.close(); } ]]> </script> <script type="javascript" src="../../commonweb/js/common.js"/> </xhtml:head> <xhtml:body pagewidth="680" pageheight="200"> <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">ÇÁ·ÎÁ§Æ®ÁøÃ´°ü¸®(Àϰý¼öÁ¤)</caption> <group id="group1" style="left:0px; top:55px; width:675px; height:50px; vertical-align:top; "> <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:675px; height:40px; "/> <caption id="caption2" class="search_name" style="left:6px; top:8px; width:61px; height:17px; ">Ç׸ñ</caption> <caption id="caption3" class="search_name" style="left:201px; top:8px; width:66px; height:17px; ">³»¿ë</caption> <select1 id="combo1" ref="/root/send/title" class="combo_search" appearance="minimal" style="left:65px; top:10px; width:115px; height:19px; "> <choices> <itemset nodeset="/root/init/title/item"> <label ref="name"/> <value ref="id"/> </itemset> </choices> <script type="javascript" ev:event="xforms-select"> <![CDATA[ // ³¯Â¥ Çü½ÄÀÇ µ¥ÀÌÅÍ ¼öÁ¤½Ã ³¯Â¥ Æ÷¸ËÀ» ÁöÁ¤ÇØ ÁØ´Ù. cur_col = combo1.value; if(cur_col == "schestartdd" || cur_col == "schedd" || cur_col == "acptdd" || cur_col == "startdd" || cur_col == "enddd" || cur_col == "appdd") { input1.attribute("format") = "yyyy-mm-dd"; input1.attribute("mask") = "include"; } input1.refresh(); ]]> </script> </select1> <input id="input1" ref="/root/send/content" style="left:255px; top:10px; width:390px; height:19px; "> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ input1.value = input1.value.toUpperCase(); cur_col = combo1.value; if(cur_col == "scrnveriyn" | cur_col == "insuendyn") // È­¸é°ËÁõ¿Ï·á¿©ºÎ,ÀμöÀ§ ¿Ï·á ¿©ºÎ { if(model.getValue("/root/send/content") == "Y" | model.getValue("/root/send/content") == "N" | model.getValue("/root/send/content") == "") { } else { alert("À߸øµÈ °ªÀ» ÀÔ·ÂÇϼ̽À´Ï´Ù."); input1.value = ""; } } else if(cur_col == "testendyn") // Å×½ºÆ®¿Ï·á¿©ºÎ { if(model.getValue("/root/send/content") == "Y" | model.getValue("/root/send/content") == "N" | model.getValue("/root/send/content") == "R" | model.getValue("/root/send/content") == "") { } else { alert("À߸øµÈ °ªÀ» ÀÔ·ÂÇϼ̽À´Ï´Ù."); input1.value = ""; } } else if(cur_col == "acptdd" || cur_col == "enddd") // Ãß°¡ÀÏ,Á¾·áÀÏ { nday = new Date() // ¿À´ÃÀÇ ³¯Â¥¿Í ½Ã°£À» ±¸ÇÔ t_year = nday.getYear(); t_mon = nday.getMonth()+1; // 0ºÎÅÍ ½ÃÀÛÇØ¼­ 1¿ùÀÌ´Ù. t_day = nday.getDate(); // ³¯Â¥ Æ÷¸Ë ¸ÂÃß±â if(t_mon < 10) t_mon = "0" + t_mon; if(t_day < 10) t_day = "0" + t_day; if(model.getValue("/root/send/content") > t_year + "-" + t_mon + "-" + t_day) { // XPath ¸¦ ÀÌ¿ëÇØ¼­ °ªÀ» ¾ò¾î¿Í¼­ ±×¶§ ±×¶§ ´Ù¸£°Ô »Ñ·Á ÁØ´Ù. alert(model.getValue("/root/init/title/item[id = /root/send/title]/name") + "Àº ÇöÀ糯¥ º¸´Ù Ŭ ¼ö ¾ø½À´Ï´Ù."); input1.value = ""; } } else if(cur_col == "appdd") // Àû¿ë ±âÁØÀÏ { if(model.getValue("/root/send/content") == "2008-10-01" || model.getValue("/root/send/content") == "2009-01-01" || model.getValue("/root/send/content") == "2009-03-01" || model.getValue("/root/send/content") == "2009-03-23"|| model.getValue("/root/send/content") == "2009-05-01") { } else { alert("Àû¿ë ±âÁØÀÏÀº 2008-10-01, 2009-01-01, 2009-03-01, 2008-03-23, 2009-05-01 Áß ÇϳªÀÔ´Ï´Ù."); input1.value = ""; } } ]]> </script> <script type="javascript" ev:event="onkeypress"> <![CDATA[ if (event.keycode == 13) { input1.value = input1.currentText; fSetContent(); } ]]> </script> </input> </group> <button id="button1" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:610px; top:35px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; "> <caption>Àϰý¼öÁ¤</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ fSetContent(); ]]> </script> </button> </xhtml:body> </xhtml:html>