ºÐ½É¹×´äº¯¼­µî·Ï°ü¸® 1 1 1 <cnt401/> <clamym/> <clamdg/> <pid/> <pidsn/> <chk401/> <patnm/> </send03> </send> <main> <list01> <patbaseinfo> <gridpatbaseinfo> <insucdnm/> <clamym/> <ioflag/> <pid/> <patnm/> <orddeptnm/> <orddeptcd/> <indd/> <dschdd/> <interm/> <acdacptno/> <clamno/> <docuseqno/> <clamdg/> <pidsn/> <docuflag/> </gridpatbaseinfo> </patbaseinfo> <tdinfodetl> <tdinfo> <tdacptdd/> <tdacptno/> <perchrgnm/> <perchrgid/> <chrgjudgnm/> </tdinfo> <gridpifmtrds> <lnno/> <item/> <adjtcd/> <matractflag/> <grupcalcscorcd/> <snglcalcscorcd/> <edicd/> <hngnm/> <unitcost/> <clamdayqty/> <clamtotqty/> <adjtdayqty/> <adjttotqty/> <adjtamt/> <aprvdayqty/> <aprvtotqty/> <aprvamt/> <tddayqty/> <tdtotqty/> <trobamt/> <clamno/> <docuseqno/> <instcd/> <acptno/> <ediunitcost/> <docuflag/> <attdocu/> <attetc/> <answdocucnts/> <tdacptdd/> <tdacptno/> <chrgjudgnm/> <perchrgnm/> <perchrgid/> <insucmpymark/> <dg/> </gridpifmtrds> </tdinfodetl> </list01> <list02> <gridpifmtrds/> </list02> <list03> <attdocu/> <attetc/> <answdocucnts/> </list03> <result/> <patinfo> <patinfolist/> </patinfo> </main> <hidden> <sppmc02500> <cond> <!-- SPPMC02500_ȯÀÚÁ¶È¸ È­¸éÀ¸·Î °Ë»öÁ¶°ÇÀ» º¸³»´Â °æ·ÎÀÓ --> <srchcond/> <pid/> <hngnm/> <rrgstno1/> <rrgstno2/> </cond> </sppmc02500> <gbvalue> <sumtrobamt/> </gbvalue> </hidden> <init> <P0028list> <P0028> <cdid/> <cdnm/> </P0028> </P0028list> <P0103list> <P0103> <cdid/> <cdnm/> </P0103> </P0103list> <U0001list> <U0001> <cd/> <nm/> </U0001> </U0001list> </init> </root> </instance> <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/> <submission id="TRPIF70601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send03" resultref="/root/main/list01"/> <submission id="TRPIF70602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list01/patbaseinfo"/> <submission id="TRPIF70603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send03" resultref="/root/main/list01/tdinfodetl"/> <submission id="TXPIF70601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/main/result"/> <submission id="TRPIF70305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/> </model> <script type="javascript" ev:event="xforms-ready"> <![CDATA[ zbcfGetCodeList(new Array("P0028"), new Array( "/root/init/P0028list")); //¼Õº¸»ç ID¹× NMÀ» Á¶È¸ÇÑ´Ù. submit("TRPIF70305"); // °øÅëÄÚµå LoadÀÛ¾÷ CommCode_Load(); ]]> </script> <script type="javascript" src="../../../com/commonweb/js/common.js"/> <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/> <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/> <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/> <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/> <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/> <script type="javascript"> <![CDATA[ function Node_Init() { } // °øÅëÄÚµå LoadÀÛ¾÷ function CommCode_Load() { chkbox_attdocu.disabled = true; // ÆË¾÷¿Àǽà ÀÚµ¿Á¶È¸ if(window.parent != null) { model.setValue("/root/send/send01/pid",model.getValue("/root/send/send03/pid")); model.setValue("/root/send/send01/patnm",model.getValue("/root/send/send03/patnm")); model.setValue("/root/send/send01/insucompnm",model.getValue("/root/send/send03/insuno")); model.setValue("/root/send/send01/fromdate",model.getValue("/root/send/send03/clamym")); model.setValue("/root/send/send01/todate",model.getValue("/root/send/send03/clamym")); if ( submit("TRPIF70601") ) { fCheckPreData(); } var indd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/indd"); var dschdd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/dschdd"); var tdacptno = model.getValue("root/main/list01/tdinfodetl/tdinfo/tdacptno"); if(indd != "" & dschdd != "") { var interm = getDateInterval(indd,dschdd)+1; model.setValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/interm", interm); } // 2010.03.09 üũµÈ Çุ ÀúÀåµÇ°Ô º¯°æ // ºÐ½ÉÁ¢¼ö¹øÈ£°¡ ¾ø´Â°Í = ºÐ½Éµî·ÏµÈ µ¥ÀÌÅͰ¡ ¾ø´Ù´Â ¶æ. // if(tdacptno == "") { // for(var i=1;i<grd_pifmtrds.rows;i++) { // grd_pifmtrds.rowStatus(i) = "1"; // ÇàÀÇ ¾÷µ¥ÀÌÆ® »óŸ¦ ÀÔ·Â(1)À¸·Î ¼¼ÆÃ // } // } else { // for(var i=1;i<grd_pifmtrds.rows;i++) { // if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) == "") { // grd_pifmtrds.rowStatus(i) = "1"; // } // } // } fCalcSumOfTrobamt(); // ÷ºÎÀÚ·á ¹× ±âŸ ÷ºÎÀÚ·á Box ºñȰ¼º ¹× °ª ÃʱâÈ­ chkbox_attdocu.value= ""; txtbox_attetc.value= ""; chkbox_attdocu.disabled=true; txtbox_attetc.disabled=true; } } //Á¶Á¤±Ý¾× Çհ踦 ±¸ÇÑ´Ù. 2010.02.02 ´Ù¸¥ È­¸é¿¡¼­ ÇÔ¼ö ÂüÁ¶Çؼ­ ºÙ¿© ³ÖÀ½. function fCalcSumOfTrobamt(){ var sumTrobamt = 0; var cnt = getNodesetCount("/root/main/list01/tdinfodetl/gridpifmtrds/lnno"); // Ä«¿îÆ®¸¦ ¿Ö ÀÌ·¸°Ô »õ´ÂÁö ¸ð¸£°Ú´Ù. var tmpTrobAmt = 0; for( var i = 1; i <= cnt; i++ ){ tmpTrobAmt = model.getValue("/root/main/list01/tdinfodetl/gridpifmtrds["+ i +"]/trobamt"); if( tmpTrobAmt == "" ) { tmpTrobAmt = 0; } sumTrobamt = parseInt(sumTrobamt) + parseInt(tmpTrobAmt); } model.setValue("/root/hidden/gbvalue/sumtrobamt", sumTrobamt); otp_trobsum.refresh(); } function fCheckPreData(){ // ÃÖÃÊ Á¶È¸½Ã ÀÌ¹Ì µî·ÏµÈ °ÇÀº ¼±Åùڽº ºñȰ¼ºÈ­ // ¼±Åùڽº üũ½Ã ÀԷ»óÅ·Π¹Ù²î°í ºÐ½ÉÀÌ ÀÚµ¿ ¼ÂÆÃ µÈ´Ù. for(var i = 1; i < grd_pifmtrds.rows ; i++) { if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) != "") { grd_pifmtrds.isReadOnly(i, grd_pifmtrds.colRef("chkbox")) = true; } } grd_pifmtrds.colStyle(grd_pifmtrds.colRef("tddayqty"), "data","background-color") = "#ffff00"; grd_pifmtrds.colStyle(grd_pifmtrds.colRef("tdtotqty"), "data","background-color") = "#ffff00"; grd_pifmtrds.colStyle(grd_pifmtrds.colRef("trobamt"), "data","background-color") = "#ffff00"; } ]]> </script> </xhtml:head> <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; "> <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; "> <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:265px; height:14px; ">ºÐ½É ¹× ´äº¯¼­µî·Ï°ü¸®</caption> </group> <group id="group6" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; "> <line id="line33" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/> <caption id="caption86" class="tit_2" style="left:6px; top:85px; width:147px; height:14px; ">ȯÀڱ⺻Á¤º¸</caption> <group id="group2" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; "> <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/> <caption id="caption1" class="search_name" style="left:605px; top:9px; width:86px; height:17px; ">¼Õº¸»ç¸í :</caption> <button id="button1" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; "> <caption>Á¶È¸</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ model.removeNodeset("/root/main/list01/tdinfodetl"); if(submit("TRPIF70602")) { var rows = grd_patbaseinfo.rows; for(var i=1;i<rows;i++) { var indd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+i+"]/indd"); var dschdd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+i+"]/dschdd"); var interm = getDateInterval(indd,dschdd); model.setValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/interm", interm); } } chkbox_attdocu.value = ""; chkbox_attdocu.disabled = true; ]]> </script> </button> <line id="line1" class="line_4" style="x1:1108px; y1:8px; x2:1108px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/> <caption id="caption10" class="search_name" style="left:605px; top:33px; width:86px; height:17px; ">µî·Ï¹øÈ£ :</caption> <caption id="caption2" class="search_name" style="left:830px; top:9px; width:87px; height:17px; ">û±¸Â÷¼ö :</caption> <caption id="caption5" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">³»¿øÀ¯Çü :</caption> <caption id="caption7" class="search_name" style="left:15px; top:33px; width:112px; height:17px; ">Á¾°á±¸ºÐ :</caption> <select1 id="combo5" ref="/root/send/send01/insucompnm" class="combo_search" appearance="minimal" style="left:694px; top:8px; width:100px; height:19px; "> <choices> <itemset nodeset="/root/init/U0001list/U0001"> <label ref="nm"/> <value ref="cd"/> </itemset> </choices> </select1> <caption id="caption3" style="left:465px; top:10px; width:15px; height:20px; ">~</caption> <input id="input5" ref="/root/send/send01/clamdg" class="input_search" style="left:920px; top:8px; width:85px; height:19px; "/> <input id="ipt_fromdate" ref="/root/send/send01/fromdate" class="input_search" inputtype="date" maxlength="6" format="yyyy-mm" style="left:375px; top:9px; width:85px; height:19px; "/> <input id="ipt_todate" ref="/root/send/send01/todate" class="input_search" inputtype="date" maxlength="6" format="yyyy-mm" style="left:480px; top:9px; width:85px; height:19px; "/> <input id="ipt_pid" ref="/root/send/send01/patnm" class="input_search" inputtype="button" style="left:694px; top:32px; width:100px; height:19px; "/> <script type="javascript" ev:event="onbuttonclick"> <![CDATA[ if (ipt_pid.value) { model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // °Ë»öÁ¶°Ç : µî·Ï¹øÈ£·Î ¼³Á¤ model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid.value); } else { model.resetInstanceNode("/root/hidden/sppmc02500/cond"); } modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send"); var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid"); ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid"); ipt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm"); model.refresh(); ]]> </script> <input id="ipt_patnm" ref="/root/send/send01/pid" style="left:800px; top:32px; width:59px; height:19px; "/> <select id="chk401" ref="/root/send/send01/chk401" overflow="visible" appearance="full" style="left:918px; top:33px; width:95px; height:20px; border-style:none; "> <choices> <item> <label>µ¿ÀǼ­ ¾øÀ½</label> <value>N</value> </item> </choices> </select> </group> <select1 id="radio1" ref="/root/send/send01/ioflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:102px; top:21px; width:143px; height:16px; font-weight:bold; border-style:none; "> <choices> <item> <label>Àüü</label> <value>1</value> </item> <item> <label>ÀÔ¿ø</label> <value>2</value> </item> <item> <label>¿Ü·¡</label> <value>3</value> </item> </choices> </select1> <select1 id="radio2" ref="/root/send/send01/endyn" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:102px; top:45px; width:153px; height:15px; font-weight:bold; border-style:none; "> <choices> <item> <label>Àüü</label> <value>1</value> </item> <item> <label>¿Ï·á</label> <value>2</value> </item> <item> <label>¹Ì¿Ï·á</label> <value>3</value> </item> </choices> </select1> <caption id="caption4" class="tit_2" style="left:6px; top:310px; width:79px; height:13px; ">ºÐ½É³»¿ª</caption> <button id="button2" class="btn2_letter2" visibility="hidden" style="left:1040px; top:248px; width:42px; height:19px; "> <caption>Ãâ·Â</caption> </button> <line id="line2" class="line_1" style="x1:0px; y1:325px; x2:1194px; y2:325px; "/> <line id="line10" class="line_3" style="x1:0px; y1:298px; x2:1194px; y2:298px; "/> <caption id="caption8" class="tit_2" style="left:5px; top:254px; width:80px; height:13px; ">ºÐ½ÉÁ¤º¸</caption> <caption id="caption27" class="cell_1" style="left:0px; top:275px; width:85px; height:21px; vertical-align:middle; ">ºÐ½ÉÁ¢¼öÀÏÀÚ</caption> <caption id="caption16" class="cell_1" style="left:193px; top:275px; width:84px; height:21px; vertical-align:middle; ">ºÐ½ÉÁ¢¼ö¹øÈ£</caption> <caption id="caption9" class="cell_1" style="left:385px; top:275px; width:48px; height:21px; vertical-align:middle; ">´ã´çÀÚ</caption> <caption id="caption12" class="cell_1" style="left:541px; top:276px; width:72px; height:20px; vertical-align:middle; ">´ã´ç½É»ç¿ª</caption> <line id="line3" class="line_1" style="x1:0px; y1:269px; x2:1194px; y2:269px; "/> <caption id="caption11" class="tit_2" style="left:6px; top:635px; width:147px; height:14px; ">´äº¯¼­³»¿ë</caption> <line id="line4" class="line_1" style="x1:0px; y1:650px; x2:800px; y2:650px; "/> <caption id="caption13" class="tit_2" style="left:811px; top:635px; width:152px; height:13px; ">÷ºÎÀÚ·á</caption> <line id="line5" class="line_1" style="x1:805px; y1:650px; x2:995px; y2:650px; "/> <button id="button13" class="btn2_letter2" style="left:1084px; top:248px; width:42px; height:19px; "> <caption>ÀúÀå</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ if(ipt_tdacptdd.value == "") { messageBox("ºÐ½ÉÁ¢¼öÀÏÀÚ¸¦","C001"); model.setFocus("ipt_tdacptdd"); return false; } if(ipt_tdacptno.value == "") { messageBox("ºÐ½ÉÁ¢¼ö¹øÈ£¸¦","C001"); model.setFocus("ipt_tdacptno"); return false; } if(ipt_perchrgnm.value == "") { messageBox("´ã´çÀÚ¸¦","C001"); model.setFocus("ipt_perchrgnm"); return false; } if(ipt_chrgjudgnm.value == "") { messageBox("´ã´ç½É»ç¿ªÀ»","C001"); model.setFocus("ipt_chrgjudgnm"); return false; } for(var i=1;i<grd_pifmtrds.rows;i++) { if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("chkbox")) == "Y" && grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) == "") { var lnno = grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("lnno")); messageBox("ÁÙ¹øÈ£ "+lnno+"ÀÇ ºÐ½ÉÀÏÅõ¸¦","C001"); return false; } if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("chkbox")) == "Y" ) { grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tdacptdd")) = ipt_tdacptdd.value; grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tdacptno")) = ipt_tdacptno.value; grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("chrgjudgnm")) = ipt_chrgjudgnm.value; //grd_pifmtrds.valueMatrix(i,30) = ipt_perchrgid.value; } } model.setValue("/root/main/list02/gridpifmtrds", grd_pifmtrds.getUpdateData()); // var nodeList = instance1.selectNodes("/root/main/list01/tdinfodetl/gridpifmtrds[chkbox = 'Y']"); // alert(model.getValue("/root/main/list01/tdinfodetl/gridpifmtrds[chkbox = 'Y']")); // var rCSV = getNodeListCSV(nodeList); // // model.destroy("/root/main/list02/gridpifmtrds"); // model.makeNode("/root/main/list02/gridpifmtrds"); // // setCSVToNode("/root/main/list02/gridpifmtrds", rCSV); submit("TXPIF70601"); // Insert ¶Ç´Â Update model.resetInstanceNode("/root/main/list01"); // ÀçÁ¶È¸ if (submit("TRPIF70601") ) { fCheckPreData(); } // ÷ºÎÀÚ·á ¹× ±âŸ ÷ºÎÀÚ·á Box ºñȰ¼º ¹× °ª ÃʱâÈ­ chkbox_attdocu.value= ""; txtbox_attetc.value= ""; txtar_answdocucnts.value= ""; chkbox_attdocu.disabled=true; txtbox_attetc.disabled=true; ]]> </script> </button> <button id="btn_newreg" class="btn2_letter6" visibility="hidden" style="left:897px; top:248px; width:86px; height:19px; "> <caption>½Å±Ô»è°¨µî·Ï</caption> </button> <button id="btn_rowdel" class="btn2_letter3" visibility="hidden" style="left:985px; top:248px; width:53px; height:19px; "> <caption>Çà»èÁ¦</caption> </button> <input id="ipt_perchrgnm" ref="/root/main/list01/tdinfodetl/tdinfo/perchrgnm" class="input_search" disabled="true" style="left:437px; top:276px; width:100px; height:19px; "/> <input id="ipt_chrgjudgnm" ref="/root/main/list01/tdinfodetl/tdinfo/chrgjudgnm" class="input_s_essential" style="left:617px; top:276px; width:100px; height:19px; "/> <input id="ipt_tdacptdd" ref="/root/main/list01/tdinfodetl/tdinfo/tdacptdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:89px; top:276px; width:100px; height:19px; "/> <input id="ipt_tdacptno" ref="/root/main/list01/tdinfodetl/tdinfo/tdacptno" class="input_s_essential" style="left:281px; top:276px; width:100px; height:19px; "/> <datagrid id="grd_pifmtrds" nodeset="/root/main/list01/tdinfodetl/gridpifmtrds" class="datagrid2" caption="^ÁÙ ¹øÈ£^Ç׸ñ^Á¶Á¤ »çÀ¯^±¸ºÐ^±×·ìÄÚµå^¼ö°¡ÄÚµå^EDIÄÚµå^󹿏íĪ^´Ü°¡^û±¸ ÀÏÅõ^û±¸ ÃÑÅõ^û±¸¾×^Á¶Á¤ ÀÏÅõ^Á¶Á¤ ÃÑÅõ^Á¶Á¤ ±Ý¾×^µ¿ÀÇ ÀÏÅõ^µ¿ÀÇ ÃÑÅõ^µ¿ÀǾ×^ºÐ½É ÀÏÅõ^ºÐ½É ÃÑÅõ^ºÐÀï°¡¾×^caption1^caption2^caption3" colsep="^" colwidth="24, 32, 33, 36, 33, 78, 78, 75, 186, 57, 34, 34, 68, 34, 34, 66, 34, 34, 67, 34, 34, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="35" rowsep="|" style="left:0px; top:330px; width:1194px; height:290px; "> <col checkvalue="Y,N" ref="chkbox" type="checkbox"/> <col ref="lnno" style="text-align:center; "/> <col ref="item" style="text-align:center; "/> <col ref="adjtcd" style="text-align:center; "/> <col ref="matractflag" type="combo" style="text-align:center; "> <choices> <item> <label>Àç·á</label> <value>1</value> </item> <item> <label>ÇàÀ§</label> <value>2</value> </item> </choices> </col> <col ref="grupcalcscorcd"/> <col ref="snglcalcscorcd"/> <col ref="edicd"/> <col ref="hngnm"/> <col ref="unitcost" format="#,###" style="text-align:right; "/> <col ref="clamdayqty" style="text-align:center; "/> <col ref="clamtotqty" style="text-align:center; "/> <col ref="clamamt" format="#,###" style="text-align:right; "/> <col ref="adjtdayqty" style="text-align:center; "/> <col ref="adjttotqty" style="text-align:center; "/> <col ref="adjtamt" format="#,###" style="text-align:right; "/> <col ref="aprvdayqty" style="text-align:center; "/> <col ref="aprvtotqty" style="text-align:center; "/> <col ref="aprvamt" format="#,###" style="text-align:right; "/> <col ref="tddayqty" type="input" style="text-align:center; "/> <col ref="tdtotqty" type="input" style="text-align:center; "/> <col ref="trobamt" type="input" format="#,###" style="text-align:right; "/> <col ref="clamno" visibility="hidden"/> <col ref="docuseqno" visibility="hidden"/> <col ref="instcd" visibility="hidden"/> <col ref="acptno" visibility="hidden"/> <col ref="ediunitcost" visibility="hidden"/> <col ref="docuflag" visibility="hidden"/> <col ref="attdocu" visibility="hidden"/> <col ref="attetc" visibility="hidden"/> <col ref="answdocucnts" visibility="hidden"/> <col ref="tdacptdd" visibility="hidden"/> <col ref="tdacptno" visibility="hidden"/> <col ref="chrgjudgnm" visibility="hidden"/> <col ref="perchrgnm" visibility="hidden"/> <col ref="perchrgid" visibility="hidden"/> <col ref="insucmpymark" visibility="hidden"/> <col ref="dg" visibility="hidden"/> <script type="javascript" ev:event="onrowchanged"> <![CDATA[ // onrowchanged - ±×¸®µå ·Î¿ì¸¦ Ŭ¸¯Çϸé ÇÏ´Ü ´äº¯¼­ ³»¿ë, ÷ºÎÀÚ·á, ±âŸ ÷ºÎÀÚ·á TEXT °ªÀ» ¼ÂÆÃÇϱâ À§ÇÑ À̺¥Æ® chkbox_attdocu.disabled = false; var row_cnt = grd_pifmtrds.row; if(row_cnt <= 0) { return false; } chkbox_attdocu.value = ""; model.setValue("/root/main/list03/attdocu", grd_pifmtrds.valueMatrix(row_cnt, grd_pifmtrds.colRef("attdocu"))); model.setValue("/root/main/list03/attetc", grd_pifmtrds.valueMatrix(row_cnt, grd_pifmtrds.colRef("attetc"))); model.setValue("/root/main/list03/answdocucnts", grd_pifmtrds.valueMatrix(row_cnt, grd_pifmtrds.colRef("answdocucnts"))); var attdocu = chkbox_attdocu.value; var size = attdocu.length; var cnt = 0; for(var i=0;i<=size;i++) { var temp = attdocu.substring(i,i+1); if(temp == "0") { cnt++; } } if(cnt > 0) { txtbox_attetc.disabled = false; } else { txtbox_attetc.disabled = true; } chkbox_attdocu.refresh(); txtar_answdocucnts.refresh(); txtbox_attetc.refresh(); // model.refresh(); ]]> </script> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[// onrowchanged ¿¡¼­ À̺¥Æ®°¡ ¹ß»ý ¾È Çϱ淹 »õ·Î À̺¥Æ® Ãß°¡ if ( grd_pifmtrds.col == grd_pifmtrds.colRef("chkbox") ) { if ( grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("chkbox")) == "Y" ) { grd_pifmtrds.rowStatus(grd_pifmtrds.row) = 3; grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tddayqty")) = grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("adjtdayqty")); grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tdtotqty")) = grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("adjttotqty")); grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("trobamt")) = grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("adjtamt")); } else { grd_pifmtrds.rowStatus(grd_pifmtrds.row) = 0; grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tddayqty")) = ""; grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tdtotqty")) = ""; grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("trobamt")) = ""; } } fCalcSumOfTrobamt(); ]]> </script> <script type="javascript" ev:event="onkeyup"> <![CDATA[ // 2010.04.19 ±â´É Ãß°¡ if(event.keyCode == "13") { var cur_col = grd_pifmtrds.col; // colÀ» ¹Ì¸® ÀúÀåÇØ µÎÁö ¾ÊÀ¸¸é if¹® Ÿ°í ³»·Á°¡¸é¼­ ÇöÀç col·Î ¹Ù²¸¼­ »ß²Ù ³³´Ï´Ù. model.setFocus("body"); model.setFocus("grd_pifmtrds"); if ( cur_col == grd_pifmtrds.colRef("tddayqty") ) { grd_pifmtrds.col = grd_pifmtrds.colRef("tdtotqty"); grd_pifmtrds.dispatch("onentercell"); grd_pifmtrds.editCell(); } if ( cur_col == grd_pifmtrds.colRef("tdtotqty") ) { grd_pifmtrds.col = grd_pifmtrds.colRef("trobamt"); grd_pifmtrds.dispatch("onentercell"); grd_pifmtrds.editCell(); } } ]]> </script> </datagrid> <select1 id="rdo_termflag" ref="/root/send/send01/termflag" class="radio_search" appearance="full" cols="1" rows="3" overflow="visible" style="left:295px; top:14px; width:75px; height:48px; font-weight:bold; border-style:none; "> <choices> <item> <label>û±¸¿ù</label> <value>1</value> </item> <item> <label>Áø·á¿ù</label> <value>2</value> </item> <item> <label>ÀÔ±ÝÀÏÀÚ</label> <value>3</value> </item> </choices> <script type="javascript" ev:event="xforms-select"> <![CDATA[ if(rdo_termflag.value == "3") { ipt_fromdate.attribute("format") = "yyyy-mm-dd"; ipt_todate.attribute("format") = "yyyy-mm-dd"; ipt_todate.attribute("maxlength") = 8; model.refresh(); } if(rdo_termflag.value == "1" || rdo_termflag.value == "2") { ipt_fromdate.attribute("format") = "yyyy-mm"; ipt_todate.attribute("format") = "yyyy-mm"; ipt_todate.attribute("maxlength") = 6; model.refresh(); } ]]> </script> </select1> <datagrid id="grd_patbaseinfo" nodeset="/root/main/list01/patbaseinfo/gridpatbaseinfo" class="datagrid" caption="¼Õº¸»ç^û±¸¿ù^³»¿øÀ¯Çü^µî·Ï¹øÈ£^¼öÁøÀÚ¸í^Áø·á°ú^ÀÔ¿øÀÏ^Åð¿øÀÏ^Àç¿ø±â°£^»ç°íÁ¢¼ö¹øÈ£" colsep="^" colwidth="120, 110, 110, 110, 110, 110, 110, 110, 110, 122" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" style="left:0px; top:105px; width:1194px; height:135px; "> <col ref="insucdnm" style="text-align:center; "/> <col ref="clamym" format="yyyy-mm" style="text-align:center; "/> <col disabled="true" ref="ioflag" type="combo" style="text-align:center; "> <choices> <itemset nodeset="/root/init/P0028list/P0028"> <label ref="cdnm"/> <value ref="cdid"/> </itemset> </choices> </col> <col ref="pid" style="text-align:center; "/> <col ref="patnm" style="text-align:center; "/> <col ref="orddeptnm" style="text-align:center; "/> <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/> <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/> <col ref="interm" style="text-align:center; "/> <col ref="acdacptno" style="text-align:center; "/> <col ref="clamno" visibility="hidden"/> <col ref="docuseqno" visibility="hidden"/> <col ref="clamdg" visibility="hidden"/> <col ref="pidsn" visibility="hidden"/> <col ref="docuflag" visibility="hidden"/> <script type="javascript" ev:event="onclick"> <![CDATA[ if( grd_patbaseinfo.isCell(event.target) && grd_patbaseinfo.row >= grd_patbaseinfo.fixedRows ){ model.removenode("/root/main/list01/tdinfodetl"); var row = grd_patbaseinfo.row; if(row < 1) return false; // ȯÀڱ⺻Á¤º¸ ±×¸®µå¿¡ Á¶È¸°á°ú°¡ Çϳªµµ ¾øÀ»½Ã ¹Ù·Î ¸®ÅÏ. model.setValue("/root/send/send03/clamno", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/clamno")); model.setValue("/root/send/send03/docuseqno", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/docuseqno")); model.setValue("/root/send/send03/docuflag", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/docuflag")); model.setValue("/root/send/send03/clamym", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/clamym")); model.setValue("/root/send/send03/clamdg", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/clamdg")); model.setValue("/root/send/send03/pid", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/pid")); model.setValue("/root/send/send03/pidsn", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/pidsn")); model.setValue("/root/send/send03/chk401", model.getValue("/root/send/send01/chk401")); if ( submit("TRPIF70603") ) { fCheckPreData(); } var tdacptno = model.getValue("root/main/list01/tdinfodetl/tdinfo/tdacptno"); // 2010.03.09 üũµÈ Çุ ÀúÀåµÇ°Ô º¯°æ // ºÐ½ÉÁ¢¼ö¹øÈ£°¡ ¾ø´Â°Í = ºÐ½Éµî·ÏµÈ µ¥ÀÌÅͰ¡ ¾ø´Ù´Â ¶æ. // if(tdacptno == "") { // for(var i=1;i<grd_pifmtrds.rows;i++) { // grd_pifmtrds.rowStatus(i) = "1"; // ÇàÀÇ ¾÷µ¥ÀÌÆ® »óŸ¦ ÀÔ·Â(1)À¸·Î ¼¼ÆÃ // } // } else { // for(var i=1;i<grd_pifmtrds.rows;i++) { // if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) == "") { // grd_pifmtrds.rowStatus(i) = "1"; // } // } // } chkbox_attdocu.value = ""; chkbox_attdocu.disabled = true; } ]]> </script> </datagrid> <select id="chkbox_attdocu" ref="/root/main/list03/attdocu" overflow="visible" appearance="full" cols="2" rows="5" style="left:805px; top:655px; width:190px; height:86px; border-style:none; "> <choices> <item> <label>ÀÀ±Þ½Ç±â·ÏÁö</label> <value>1</value> </item> <item> <label>Åõ¾à±â·ÏÁö</label> <value>2</value> </item> <item> <label>°æ°ú±â·ÏÁö</label> <value>3</value> </item> <item> <label>°£È£±â·ÏÁö</label> <value>4</value> </item> <item> <label>ÀÇ»ç¸í·ÉÁö</label> <value>5</value> </item> <item> <label>°Ë»ç°á°úÁö</label> <value>6</value> </item> <item> <label>¼ö¼ú±â·ÏÁö</label> <value>7</value> </item> <item> <label>¹æ»ç¼±°á°úÁö</label> <value>8</value> </item> <item> <label>¸¶Ãë±â·ÏÁö</label> <value>9</value> </item> <item> <label>±âŸ</label> <value>0</value> </item> </choices> <!-- ÷ºÎÀÚ·á Ã¼Å©ÇØÁ¦½Ã--> <script type="javascript" ev:event="xforms-deselect"> <![CDATA[ var attdocu = chkbox_attdocu.value; var size = attdocu.length; var cnt = 0; var row = grd_pifmtrds.row; for(var i=0;i<=size;i++) { var temp = attdocu.substring(i,i+1); if(temp == "0") { cnt++; } } if(cnt > 0) { if(txtbox_attetc.value == "") { messageBox("±âŸ ÷ºÎÀڷḦ ¼ö±â","C001"); txtbox_attetc.disabled = false; model.setFocus("txtbox_attetc"); } } else { txtbox_attetc.value = ""; txtbox_attetc.disabled = false; } model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row+"]/attdocu",chkbox_attdocu.value); // ÷ºÎÀÚ·á ÀνºÅϽº¿¡ º¯°æµÈ °ª ÀúÀå model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row+"]/attetc",txtbox_attetc.value); // ÷ºÎÀÚ·á ÀνºÅϽº¿¡ º¯°æµÈ °ª ÀúÀå if(grd_pifmtrds.rowStatus(row) == "0") { grd_pifmtrds.rowStatus(row) = "2"; } ]]> </script> <!-- ÷ºÎÀÚ·á üũ½Ã--> <script type="javascript" ev:event="xforms-select"> <![CDATA[ var attdocu = chkbox_attdocu.value; var row_cnt = grd_pifmtrds.row; if(grd_pifmtrds.rowStatus(row_cnt) == "0") { grd_pifmtrds.rowStatus(row_cnt) = "2"; } model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row_cnt+"]/attdocu",attdocu); var attdocu = chkbox_attdocu.value; var size = attdocu.length; var cnt = 0; for(var i=0;i<size;i++) { var temp = attdocu.substring(i,i+1); if(temp == "0") { cnt++; } } if(cnt > 0) { if(txtbox_attetc.value == "") { messageBox("±âŸ ÷ºÎÀڷḦ ¼ö±â","C001"); txtbox_attetc.disabled = false; model.setFocus("txtbox_attetc"); } } /* if(attdocu.substring(attdocu.length-1,attdocu.length)== "0") { if(txtbox_attetc.value == "") { messageBox("±âŸ ÷ºÎÀڷḦ ¼ö±â","C001"); txtbox_attetc.disabled = false; model.setFocus("txtbox_attetc"); } } */ ]]> </script> </select> <textarea id="txtbox_attetc" ref="/root/main/list03/attetc" disabled="true" style="left:1000px; top:655px; width:193px; height:86px; "> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ var row_cnt = grd_pifmtrds.row; model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row_cnt+"]/attetc",txtbox_attetc.value); ]]> </script> </textarea> <caption id="caption14" class="tit_2" style="left:1004px; top:635px; width:147px; height:13px; ">±âŸ ÷ºÎÀÚ·á TEXT</caption> <line id="line6" class="line_1" style="x1:1000px; y1:650px; x2:1193px; y2:650px; "/> <textarea id="txtar_answdocucnts" ref="/root/main/list03/answdocucnts" style="left:0px; top:655px; width:800px; height:86px; "> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ var row = grd_pifmtrds.row; if(row > 0) { if(grd_pifmtrds.rowStatus(row) == "0") { grd_pifmtrds.rowStatus(row) = "2"; } model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row+"]/answdocucnts",txtar_answdocucnts.value); } ]]> </script> </textarea> <button id="button3" class="btn2_letter4" style="left:1128px; top:248px; width:64px; height:19px; "> <caption>¿¢¼¿ÀúÀå</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ var today = new Date(); var yy = today.getYear()+""; var mm = today.getMonth()+1; var dd = today.getDate(); if(mm < 10) { mm = "0"+mm; } else { mm = mm+""; } if(dd < 10) { dd = "0" + dd; } else { dd = dd + ""; } var tmp = yy+mm+dd; var fileName = window.fileDialog("save", ",", false, "ºÐ½É¹×´äº¯¼­µî·Ï°ü¸®_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*"); if (fileName != "") { grd_pifmtrds.saveExcel(fileName, "SheetName", true, true, "", "", ""); } ]]> </script> </button> <caption id="caption15" style="left:940px; top:305px; width:100px; height:20px; font-weight:bold; ">ºÐÀï°¡¾× ÇÕ°è :</caption> <caption id="caption17" style="left:1145px; top:305px; width:20px; height:20px; font-weight:bold; ">¿ø</caption> <output id="otp_trobsum" ref="/root/hidden/gbvalue/sumtrobamt" format="(-)#,###" style="left:1040px; top:305px; width:100px; height:19px; font-weight:bold; text-align:right; "/> </group> <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1194px; height:27px; "> <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/> <button id="button45" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; "> <caption>´Ý±â</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ window.close(); ]]> </script> </button> </group> </xhtml:body> </xhtml:html>