µ¿ÀǼ­µî·Ï°ü¸®
</list03> <list04> <gridpiehc401/> </list04> <list05> <attdocu/> <attetc/> </list05> <result/> </main> <temp> <rem> <adjtcmt/> <aprvynrem/> </rem> </temp> <hidden> <gbvalue> <sumadjtamt/> </gbvalue> </hidden> </root> </instance> <submission id="TRPIF70501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list02"/> <submission id="TRPIF70502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/> <submission id="TRPIF70503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/> <submission id="TXPIF70501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list04" resultref="/root/main/result"/> </model> <script type="javascript" ev:event="xforms-ready"> <![CDATA[ // °øÅëÄÚµå 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/dateHelper.js"/> <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/> <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/> <script type="javascript"> <![CDATA[ function Node_Init() { } // °øÅëÄÚµå LoadÀÛ¾÷ function CommCode_Load() { // °ü·Ã Control ÃʱâÈ­ if(submit("TRPIF70501")) { var cnt = model.getValue("/root/main/list02/gridpiehc401/cnt"); // count = 0 : 401Å×ÀÌºí¿¡ µ¥ÀÌÅͰ¡ ¾øÀ½. // 401Á¸Àç À¯¹«¿¡ »ó°ü¾øÀÌ 301ÀÇ max(docuflag)¸¦ °¡Áö°í ¿Â´Ù. submit("TRPIF70502"); // 2010.02.05 Åë ÁÖ¼®Ã³¸® // if(cnt == '0') { // submit("TRPIF70502"); // for(var i = 1; i<grd_chkdocuadjtdetl.rows;i++){ // grd_chkdocuadjtdetl.rowStatus(i) = "1"; // ¸ðµçÇàÀÇ rowStatus¸¦ 'I'·Î º¯È¯ // grd_chkdocuadjtdetl.valueMatrix(i,39) = grd_patbaseinfo.valueMatrix(1,9); // } // } else { // if(submit("TRPIF70503")) { // for(var i = 1; i<grd_chkdocuadjtdetl.rows; i++) { // if(grd_chkdocuadjtdetl.valueMatrix(i,16) == "01") { // grd_chkdocuadjtdetl.isReadOnly(i,17) = true; // } // } // } // } fAfterSearch(); fCalcSumOfAdjtamt(); } chkbox_attdocu.disabled = true; //÷ºÎÀÚ·á ºñȰ¼º grd_chkdocuadjtdetl.colStyle(16,"data","background-color") = "#ffff00"; grd_chkdocuadjtdetl.colStyle(17,"data","background-color") = "#ffff00"; grd_chkdocuadjtdetl.colStyle(18,"data","background-color") = "#ffff00"; grd_chkdocuadjtdetl.colStyle(19,"data","background-color") = "#ffff00"; grd_chkdocuadjtdetl.colStyle(20,"data","background-color") = "#ffff00"; } // Á¶È¸ ÈÄ rowStatus ±¸ºÐ ó¸®, µ¿ÀÇ¿©ºÎ ÁÖ¼® Ȱ¼ºÈ­Ã³¸® 2010.03.30 ÇÔ¼ö·Î »°À½. function fAfterSearch() { for(var i = 1; i<grd_chkdocuadjtdetl.rows;i++){ // µ¿ÀÇ¿©ºÎ°¡ ¾øÀ» °æ¿ì insert ó¸® if ( grd_chkdocuadjtdetl.valueMatrix(i, grd_chkdocuadjtdetl.colRef("aprvyn")) == "" ) { grd_chkdocuadjtdetl.rowStatus(i) = "1"; // rowStatus¸¦ 'I'·Î º¯È¯ } else { grd_chkdocuadjtdetl.rowStatus(i) = "2"; // rowStatus¸¦ 'U'·Î º¯È¯ } grd_chkdocuadjtdetl.valueMatrix(i,39) = grd_patbaseinfo.valueMatrix(1,9); //if(grd_chkdocuadjtdetl.valueMatrix(i,16) == "01") { // grd_chkdocuadjtdetl.isReadOnly(i,17) = true; //} } } //Á¶Á¤±Ý¾× Çհ踦 ±¸ÇÑ´Ù. function fCalcSumOfAdjtamt(){ var sumAdjtamt = 0; var cnt = getNodesetCount("/root/main/list01/gridchkdocuadjtdetl/lnno"); for( var i = 1; i <= cnt; i++ ){ sumAdjtamt = parseInt(sumAdjtamt) + parseInt(model.getValue("/root/main/list01/gridchkdocuadjtdetl["+ i +"]/adjtamt")); } model.setValue("/root/hidden/gbvalue/sumadjtamt", Math.ceil(sumAdjtamt/10)*10 ); // ¿ø´ÜÀ§ Àý»ó output1.refresh(); } ]]> </script> </xhtml:head> <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; "> <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:724px; "> <col type="checkbox"/> <line id="line66" class="line_1" style="x1:0px; y1:30px; x2:1194px; y2:30px; "/> <line id="line1" class="line_1" style="x1:0px; y1:109px; x2:1194px; y2:109px; "/> <caption id="caption1" class="tit_2" style="left:6px; top:94px; width:147px; height:14px; ">°ËÅä¼­Á¶Á¤³»¿ª</caption> <button id="button12" class="btn2_letter2" style="left:1083px; top:88px; width:42px; height:19px; "> <caption>ÀúÀå</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ var rows = grd_chkdocuadjtdetl.rows; var cnt = 0; /*for(var i=0;i<20;i++) { if(attdocu.substring(i,i+1)== "0") { if(txtbox_attetc.value== "") { alert("±âŸ ÷ºÎÀڷḦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); return false; } } }*/ for(var i = 1;i<rows;i++) { if(grd_chkdocuadjtdetl.valueMatrix(i,16) == "") { messageBox("ÁÙ¹øÈ£ "+grd_chkdocuadjtdetl.valueMatrix(i,1)+"¹øÀÇ µ¿ÀÇ¿©ºÎ¸¦","C002"); return false; } else if(grd_chkdocuadjtdetl.valueMatrix(i,16) == "01") { // continue; // 2010.02.02 ÁÖ¼®Ã³¸®. µ¿ÀDZ¸ºÐÀÌ µ¿ÀÇ À϶§´Â ÀúÀåÀÌ ¾È µÊ. } else if(ipt_rcogdocudelivedd.value == "") { alert("µ¿ÀÇÀÏÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); model.setFocus("ipt_rcogdocudelivedd"); return false; } else { if(grd_chkdocuadjtdetl.valueMatrix(i,18) == "") { messageBox("ÁÙ¹øÈ£ "+grd_chkdocuadjtdetl.valueMatrix(i,1)+"¹øÀÇ ÀÌÀÇÀÏÅõ¸¦","C001"); return false; } if(grd_chkdocuadjtdetl.valueMatrix(i,19) == "") { messageBox("ÁÙ¹øÈ£ "+grd_chkdocuadjtdetl.valueMatrix(i,1)+"¹øÀÇ ÀÌÀÇÃÑÅõ¸¦","C001"); return false; } } // µ¿ÀÇÀÏÀÚ¼ÂÆÃ grd_chkdocuadjtdetl.valueMatrix(i, grd_chkdocuadjtdetl.colRef("rcogdocudelivedd")) = ipt_rcogdocudelivedd.value; //µ¿ÀÇÀÏÀÚ if(grd_chkdocuadjtdetl.rowStatus(i) == "1" || grd_chkdocuadjtdetl.rowStatus(i) == "2" || grd_chkdocuadjtdetl.rowStatus(i) == "3") { cnt = cnt+1; } } if(cnt == 0) { return false; } else { model.setValue("/root/main/list04/gridpiehc401", grd_chkdocuadjtdetl.getUpdateData()); if(submit("TXPIF70501")) { txtbox_aprvyn.value= ""; txtbox_adjtcmt.value=""; txtbox_attetc.value= ""; model.resetInstanceNode("/root/main/list01/gridchkdocuadjtdetl"); submit("TRPIF70502"); fAfterSearch(); } } ]]> </script> </button> <caption id="caption2" class="tit_2" style="left:6px; top:10px; width:147px; height:14px; ">ȯÀڱ⺻Á¤º¸</caption> <caption id="caption3" class="tit_2" style="left:6px; top:610px; width:152px; height:13px; ">°ËÅä¼­¼ö½Å¼­ Á¶Á¤ÁÖ¼®</caption> <line id="line2" class="line_1" style="x1:0px; y1:625px; x2:350px; y2:625px; "/> <caption id="caption4" class="tit_2" style="left:361px; top:610px; width:152px; height:14px; ">µ¿ÀǼ­ Á¶Á¤ÁÖ¼®</caption> <line id="line3" class="line_1" style="x1:355px; y1:625px; x2:705px; y2:625px; "/> <select id="chkbox_attdocu" ref="/root/main/list05/attdocu" overflow="visible" appearance="full" cols="2" rows="5" style="left:709px; top:630px; 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[ if(chkbox_attdocu.value != "0") { txtbox_attetc.value = ""; txtbox_attetc.disabled = true; } ]]> </script> <script type="javascript" ev:event="onclick"> <![CDATA[ var row = grd_chkdocuadjtdetl.row; if(row > 0) { var attdocu = chkbox_attdocu.value; var row_cnt = grd_chkdocuadjtdetl.row; if(grd_chkdocuadjtdetl.rowStatus(row_cnt) == "0") { grd_chkdocuadjtdetl.rowStatus(row_cnt) = "2"; } model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/attdocu",attdocu); if(attdocu.substring(attdocu.length-1,attdocu.length)== "0") { alert("±âŸ ÷ºÎÀڷḦ ¼ö±âÀÔ·ÂÇØ ÁÖ¼¼¿ä"); txtbox_attetc.disabled = false; } } else { messageBox("¼±ÅÃµÈ Row°¡","I004"); chkbox_attdocu.value = ""; return false; } ]]> </script> </select> <caption id="caption5" class="tit_2" style="left:715px; top:610px; width:152px; height:13px; ">÷ºÎÀÚ·á</caption> <line id="line4" class="line_1" style="x1:709px; y1:625px; x2:899px; y2:625px; "/> <datagrid id="grd_patbaseinfo" nodeset="/root/main/list01/gridpatbaseinfo" class="datagrid" caption="¼Õº¸»ç^û±¸³â¿ù^û±¸Â÷¼ö^³»¿øÀ¯Çü^µî·Ï¹øÈ£^¼öÁøÀÚ¸í^Áø·á°ú^ÀÔ¿øÀÏ^Åð¿øÀÏ^»ç°íÁ¢¼ö¹øÈ£^°ËÅä¼­Á¢¼öÀÏÀÚ^µ¿ÀÇÀÏÀÚ" colsep="^" colwidth="115, 80, 80, 63, 115, 115, 115, 83, 93, 115, 100, 100" dataheight="25" defaultrows="10" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="35" rowsep="|" style="left:0px; top:35px; width:1194px; height:48px; "> <col ref="insucdnm" style="text-align:center; "/> <col ref="clamym" format="yyyy-mm" style="text-align:center; "/> <col ref="clamdg" style="text-align:center; "/> <col ref="ioflag" style="text-align:center; "/> <col ref="pid" style="text-align:center; "/> <col ref="patnm" style="text-align:center; "/> <col ref="orddeptcd" 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="acdacptno" style="text-align:center; "/> <col ref="chkdocunotidd" format="yyyy-mm-dd" style="text-align:center; "/> <col ref="rcogdocudelivedd" format="yyyy-mm-dd" style="text-align:center; "/> </datagrid> <datagrid id="grd_chkdocuadjtdetl" nodeset="/root/main/list01/gridchkdocuadjtdetl" class="datagrid2" caption="ÁÙ¹øÈ£^Ç׸ñ^±×·ìÄÚµå^¼ö°¡ÄÚµå^EDIÄÚµå^󹿏íĪ^±¸ºÐ^󹿴ܰ¡^û±¸ ÀÏÅõ^û±¸ ÃÑÅõ^Á¶Á¤ »çÀ¯^Á¶Á¤ ÀÏÅõ^Á¶Á¤ ÃÑÅõ^Á¶Á¤¾×^°ËÅä¼ö½Å¼­ Á¶Á¤ÁÖ¼®^µ¿ÀÇ¿©ºÎ^µ¿ÀǼ­ Á¶Á¤ÁÖ¼®^ÀÌÀÇ ÀÏÅõ^ÀÌÀÇ ÃÑÅõ^ÀÌÀǽÅû¾×^µ¿ÀÇ ÀÏÅõ^µ¿ÀÇ ÃÑÅõ^µ¿ÀǾ×^û±¸¹øÈ£^¸íÀÏ·Ã^±â°üÄÚµå^Á¢¼ö¹øÈ£^»ç°íÁ¢¼ö¹øÈ£^û±¸¿ù^û±¸Â÷¼ö^µî·Ï¹øÈ£^¼öÁøÀÚ¸í^Áø·á±â°£^EDI´Ü°¡^¼­½Ä±¸ºÐ^û±¸¾×^÷ºÎ¼­·ù^÷ºÎ±âŸ^µ¿ÀÇ¿©ºÎÁÖ¼®HIDN^caption1^caption2^caption3^caption4^µ¿ÀÇÀÏÀÚ" colsep="^" colwidth="46, 35, 80, 80, 75, 120, 36, 67, 38, 38, 42, 38, 39, 67, 84, 64, 70, 42, 42, 81, 42, 42, 84, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="1" ellipsis="true" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:0px; top:114px; width:1194px; height:485px; "> <col ref="lnno" style="left:20px; top:32px; width:54px; height:23px; text-align:center; "/> <col ref="item" style="text-align:center; "/> <col ref="grupcalcscorcd" style="text-align:left; "/> <col ref="snglcalcscorcd" style="text-align:left; "/> <col ref="edicd" style="text-align:left; "/> <col ref="hngnm"/> <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="unitcost" format="#,###" style="text-align:right; "/> <col ref="clamdayqty" style="text-align:center; "/> <col ref="clamtotqty" style="text-align:center; "/> <col ref="adjtcd" style="text-align:center; "/> <col ref="adjtdayqty" style="text-align:center; "/> <col ref="adjttotqty" style="text-align:center; "/> <col ref="adjtamt" format="#,###" style="text-align:right; "/> <col ref="adjtcmt"/> <col ref="aprvyn" type="combo" style="left:967px; top:32px; width:100px; height:23px; text-align:center; "> <choices> <item> <label>µ¿ÀÇ</label> <value>01</value> </item> <item> <label>ÀϺÎÀÎÁ¤</label> <value>02</value> </item> <item> <label>ÀÌÀǽÅû</label> <value>03</value> </item> </choices> </col> <script type="javascript" ev:event="xforms-select"> <![CDATA[ var row_cnt = grd_chkdocuadjtdetl.row; model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvynrem",""); //model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvynremhidn",""); // µ¿ÀÇ¿©ºÎ - 01 : µ¿ÀÇ if(model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvyn") == "01") { //txtbox_aprvyn.disabled = true; chkbox_attdocu.disabled = true; // ÷ºÎ¼­·ù ¼±Åà ºñȰ¼ºÈ­ model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvynrem", ""); //grd_chkdocuadjtdetl.isReadOnly(row_cnt,17) = true; model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/obtappdayqty", 0); model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/obtapptotqty", 0); model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/obtappamt", 0); model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvdayqty", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/adjtdayqty")); model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvtotqty", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/adjttotqty")); model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvamt", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/adjtamt")); //model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvynremhidn", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvyn")); // µ¿ÀÇ¿©ºÎÄÚµå HIDDEN } else { //txtbox_aprvyn.disabled = false; //grd_chkdocuadjtdetl.valueMatrix(row_cnt,17) = ""; chkbox_attdocu.disabled = false; // ÷ºÎ¼­·ù ¼±Åà Ȱ¼ºÈ­ //grd_chkdocuadjtdetl.isReadOnly(row_cnt,17) = false; model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/obtappdayqty", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/adjtdayqty")); model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/obtapptotqty", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/adjttotqty")); model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/obtappamt", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/adjtamt")); model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvdayqty", "0"); model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvtotqty", "0"); model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvamt", "0"); var aprvyn = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvyn"); // µ¿ÀÇ¿©ºÎÄÚµå //model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvynremhidn",aprvyn); // µ¿ÀÇ¿©ºÎÁÖ¼®hidden°ª¿¡ µ¿ÀÇ¿©ºÎÄڵ尪 ¼¼ÆÃ } // ÀϺÎÀÎÁ¤ ¼±Åýà µ¿ÀÇ ÀÏÅõ,ÃÑÅõ, µ¿ÀÇ¾× È°¼ºÈ­ 2010.03.30 if ( grd_chkdocuadjtdetl.valueMatrix(row_cnt, grd_chkdocuadjtdetl.colRef("aprvyn")) == "02" ) { grd_chkdocuadjtdetl.isReadOnly(row_cnt, grd_chkdocuadjtdetl.colRef("aprvdayqty")) = false; grd_chkdocuadjtdetl.isReadOnly(row_cnt, grd_chkdocuadjtdetl.colRef("aprvtotqty")) = false; grd_chkdocuadjtdetl.isReadOnly(row_cnt, grd_chkdocuadjtdetl.colRef("aprvamt")) = false; } else { grd_chkdocuadjtdetl.isReadOnly(row_cnt, grd_chkdocuadjtdetl.colRef("aprvdayqty")) = true; grd_chkdocuadjtdetl.isReadOnly(row_cnt, grd_chkdocuadjtdetl.colRef("aprvtotqty")) = true; grd_chkdocuadjtdetl.isReadOnly(row_cnt, grd_chkdocuadjtdetl.colRef("aprvamt")) = true; } model.refresh(); ]]> </script> <col ref="aprvynrem" type="inputbutton"/> <script type="javascript" ev:event="onbuttonclick"> <![CDATA[ var opn_row = grd_chkdocuadjtdetl.row; var aprvyn = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+opn_row+"]/aprvyn"); var aprvynrem = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+opn_row+"]/aprvynrem"); //var aprvynremhidn = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+opn_row+"]/aprvynremhidn"); model.setValue("/root/main/list03/opn_row_cnt", opn_row); model.setValue("/root/main/list03/aprvyn", aprvyn); model.setValue("/root/main/list03/aprvynrem", aprvynrem); //model.setValue("/root/main/list03/aprvynremhidn", aprvynremhidn); window.load("SPPIF70500_µ¿ÀÇ¿©ºÎÁÖ¼®.xrw", "modal", "pop", "left:300; top:200; width:420; height:170;", "/root/main/list03", "/root/main/list01"); ]]> </script> <col ref="obtappdayqty" type="input" style="text-align:center; "/> <col ref="obtapptotqty" type="input" style="text-align:center; "/> <col ref="obtappamt" type="input" format="#,###" style="text-align:right; "/> <col ref="aprvdayqty" type="input" style="text-align:center; "/> <col ref="aprvtotqty" type="input" style="text-align:center; "/> <col ref="aprvamt" 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="acdacptno" visibility="hidden"/> <col ref="clamym" visibility="hidden"/> <col ref="clamdg" visibility="hidden"/> <col ref="pid" visibility="hidden"/> <col ref="patnm" visibility="hidden"/> <col ref="ordterm" visibility="hidden"/> <col ref="ediunitcost" visibility="hidden"/> <col ref="docuflag" visibility="hidden"/> <col ref="clamamt" visibility="hidden"/> <col ref="attdocu" visibility="hidden"/> <col ref="attetc" visibility="hidden"/> <col ref="aprvynremhidn" visibility="hidden"/> <col ref="orddeptcd" visibility="hidden"/> <col ref="orddrid" visibility="hidden"/> <col ref="diagcd" visibility="hidden"/> <col ref="insuno" visibility="hidden"/> <col ref="rcogdocudelivedd" visibility="hidden"/> <script type="javascript" ev:event="onrowchanged"> <![CDATA[ model.resetInstanceNode("/root/temp/rem"); var row_cnt = grd_chkdocuadjtdetl.row; if(row_cnt >= 1) { model.setValue("/root/main/list05/attdocu", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/attdocu")); model.setValue("/root/main/list05/attetc", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/attetc")); model.setValue("/root/temp/rem/adjtcmt", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/adjtcmt")); model.setValue("/root/temp/rem/aprvynrem", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvynrem")); if(model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvyn") == "01" || model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvyn") == "") { chkbox_attdocu.disabled = true; } else { chkbox_attdocu.disabled = false; } } else { chkbox_attdocu.disabled = true; return false; } model.refresh(); ]]> </script> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ var row_cnt = grd_chkdocuadjtdetl.row; var unitcost = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/unitcost"); //󹿴ܰ¡ var obtappdayqty = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/obtappdayqty"); // ÀÌÀÇÀÏÅõ var obtapptotqty = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/obtapptotqty"); // ÀÌÀÇÃÑÅõ // µ¿ÀÇ¾× ÀÚµ¿ °è»ê Ãß°¡ 2010.03.30 var aprvdayqty = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvdayqty"); // µ¿ÀÇÀÏÅõ var aprvtotqty = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvtotqty"); // µ¿ÀÇÃÑÅõ var aprvamt = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvamt"); // µ¿ÀÇ¾× var matractflag = model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/matractflag"); // Àç·áÇàÀ§±¸ºÐ var corpactaddrate = Number(model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/corpactaddrate")); //Á¾º°°¡»ê·ü // ÀÌÀǽÅû ÀÏÅõ, ÃÑÅõ ¼öÁ¤½Ã ÀÌÀǽÅû±Ý¾× ÀÚµ¿°è»ê if ( grd_chkdocuadjtdetl.col == grd_chkdocuadjtdetl.colRef("obtappdayqty") || grd_chkdocuadjtdetl.col == grd_chkdocuadjtdetl.colRef("obtapptotqty")) { if( matractflag == '2' ){ // Àç·áÇàÀ§ - 2: °¡»êÀÖ´Â ÇàÀ§ 2010.03.22 grd_chkdocuadjtdetl.valueMatrix(row_cnt, grd_chkdocuadjtdetl.colRef("obtappamt")) = Math.round( (unitcost * obtappdayqty * obtapptotqty) * (1 + (corpactaddrate/100))); //ÀÌ½Å¾× }else{ grd_chkdocuadjtdetl.valueMatrix(row_cnt, grd_chkdocuadjtdetl.colRef("obtappamt")) = Math.round(unitcost * obtappdayqty * obtapptotqty); // ÀÌ½Å¾× } } // µ¿ÀÇ ÀÏÅõ, ÃÑÅõ ¼öÁ¤½Ã µ¿ÀÇ±Ý¾× ÀÚµ¿°è»ê if ( grd_chkdocuadjtdetl.col == grd_chkdocuadjtdetl.colRef("aprvdayqty") || grd_chkdocuadjtdetl.col == grd_chkdocuadjtdetl.colRef("aprvtotqty")) { if( matractflag == '2' ){ // Àç·áÇàÀ§ - 2: °¡»êÀÖ´Â ÇàÀ§ 2010.03.22 grd_chkdocuadjtdetl.valueMatrix(row_cnt, grd_chkdocuadjtdetl.colRef("aprvamt")) = Math.round( (unitcost * aprvdayqty * aprvtotqty) * (1 + (corpactaddrate/100))); //µ¿ÀÇ¾× }else{ grd_chkdocuadjtdetl.valueMatrix(row_cnt, grd_chkdocuadjtdetl.colRef("aprvamt")) = Math.round(unitcost * aprvdayqty * aprvtotqty); //µ¿ÀÇ¾× } } txtbox_aprvyn.value= model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row_cnt+"]/aprvynrem"); model.refresh(); ]]> </script> </datagrid> <textarea id="txtbox_aprvyn" ref="/root/temp/rem/aprvynrem" disabled="true" style="left:355px; top:630px; width:350px; height:86px; "/> <textarea id="txtbox_adjtcmt" ref="/root/temp/rem/adjtcmt" disabled="true" style="left:0px; top:630px; width:350px; height:86px; "/> <caption id="caption6" class="tit_2" style="left:909px; top:610px; width:284px; height:13px; ">±âŸ ÷ºÎÀÚ·á TEXT</caption> <line id="line5" class="line_1" style="x1:903px; y1:625px; x2:1193px; y2:625px; "/> <textarea id="txtbox_attetc" ref="/root/main/list05/attetc" disabled="false" style="left:903px; top:630px; width:290px; height:86px; "> <script type="javascript" ev:event="DOMFocusOut"> <![CDATA[ var row = grd_chkdocuadjtdetl.row; if(row > 0) { var attetc = txtbox_attetc.value; if(grd_chkdocuadjtdetl.rowStatus(row) == "0") { grd_chkdocuadjtdetl.rowStatus(row) = "2"; } model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row+"]/attetc",attetc); } else { messageBox("¼±ÅÃµÈ Row°¡","I004"); chkbox_attdocu.value = ""; return false; } ]]> </script> </textarea> <button id="button7" class="btn2_letter4" style="left:1128px; top:88px; 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_chkdocuadjtdetl.saveExcel(fileName, "SheetName", true, true, "", "", ""); } ]]> </script> </button> <caption id="caption7" style="left:685px; top:90px; width:100px; height:20px; font-weight:bold; ">Á¶Á¤±Ý¾× ÇÕ°è :</caption> <caption id="caption8" style="left:890px; top:90px; width:20px; height:20px; font-weight:bold; ">¿ø</caption> <output id="output1" ref="/root/hidden/gbvalue/sumadjtamt" format="(-)#,###" style="left:785px; top:90px; width:100px; height:19px; font-weight:bold; text-align:right; "/> <input id="ipt_rcogdocudelivedd" ref="/root/main/list01/gridchkdocuadjtdetl/rcogdocudelivedd" class="input_default" inputtype="date" maxlength="8" format="yyyy-mm-dd" style="left:197px; top:87px; width:90px; height:19px; text-align:center; "/> <caption id="caption38" class="cell_1" style="left:123px; top:85px; width:72px; height:23px; text-align:center; vertical-align:middle; ">µ¿ÀÇÀÏÀÚ</caption> </group> <group id="group2" scroll="auto" style="left:0px; top:729px; width:1195px; height:27px; "> <line id="line33" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/> </group> </xhtml:body> </xhtml:html>