</send> <main> <list01> <gridpatbaseinfo> <insucdnm/> <clamym/> <ioflag/> <pid/> <patnm/> <orddeptcd/> <indd/> <dschdd/> <acdacptno/> <chkdocunotidd/> </gridpatbaseinfo> <gridchkdocuadjtdetl> <rowchkbox/> <lnno/> <item/> <grupcalcscorcd/> <snglcalcscorcd/> <edicd/> <hngnm/> <matractflag/> <unitcost/> <clamdayqty/> <clamtotqty/> <adjtcd/> <adjtdayqty/> <adjttotqty/> <adjtamt/> <obtappdayqty/> <obtapptotqty/> <obtappamt/> <aprvdayqty/> <aprvtotqty/> <aprvamt/> <clamno/> <docuseqno/> <instcd/> <acptno/> <acdacptno/> <clamym/> <clamdg/> <pid/> <patnm/> <ordterm/> <ediunitcost/> <rcogunitcost/> <rcogpossamt/> <docuflag/> <clamamt/> <chkdocunotidd/> <savedocuflag/> <adjtcmt/> <acptdd/> <insuno/> <insunm/> <certno/> </gridchkdocuadjtdetl> </list01> <list02> <gridchkdocuadjtdetl/> </list02> <result/> </main> <init> <P0028list> <P0028> <cdid/> <cdnm/> </P0028> </P0028list> <P0277list> <P0277> <cdid/> <cdnm/> </P0277> </P0277list> </init> <temp> <rem> <adjtcmt/> </rem> </temp> <hidden> <gbvalue> <sumadjtamt/> </gbvalue> </hidden> </root> </instance> <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/> <submission id="TRPIF70411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/> <submission id="TXPIF70411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" 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/basiccodeweb/js/ZBC001.js"/> <script type="javascript"> <![CDATA[ function Node_Init() { } // °øÅëÄÚµå LoadÀÛ¾÷ function CommCode_Load() { // °ü·Ã Control ÃʱâÈ­ zbcfGetCodeList(new Array("P0028", "P0277"), new Array( "/root/init/P0028list", "/root/init/P0277list")); document.title= model.getValue("/root/send/title"); if(submit("TRPIF70411")) { var docuflag = ""; var savedocuflag = ""; docuflag = model.getValue("/root/send/docuflag"); savedocuflag = model.getValue("/root/send/savedocuflag"); if((docuflag == "1" & savedocuflag == "2") || (docuflag == "2" & savedocuflag == "3") || (docuflag == "3" & savedocuflag == "4")) { ipt_chkdocuacptdd.value= ""; } var row_cnt = grd_chkdocuadjtdetl.rows; for(var i=1;i<row_cnt;i++) { if((docuflag == "1" & savedocuflag == "2") || (docuflag == "2" & savedocuflag == "3") || (docuflag == "3" & savedocuflag == "4")) { grd_chkdocuadjtdetl.rowStatus(i) = "1"; } } fCalcSumOfAdjtamt(); } grd_chkdocuadjtdetl.colStyle(12,"data","background-color") = "#ffff00"; grd_chkdocuadjtdetl.colStyle(13,"data","background-color") = "#ffff00"; grd_chkdocuadjtdetl.colStyle(14,"data","background-color") = "#ffff00"; grd_chkdocuadjtdetl.colStyle(15,"data","background-color") = "#ffff00"; } //Á¶Á¤±Ý¾× Çհ踦 ±¸ÇÑ´Ù. 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", sumAdjtamt); output1.refresh(); } ]]> </script> </xhtml:head> <xhtml:body guideline="1,1192;" 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:744px; "> <col type="checkbox"/> <line id="line66" class="line_1" style="x1:0px; y1:30px; x2:1192px; y2:30px; "/> <line id="line1" class="line_1" style="x1:0px; y1:147px; x2:1194px; y2:147px; "/> <caption id="caption1" class="tit_2" style="left:6px; top:132px; width:147px; height:13px; ">°ËÅä¼­Á¶Á¤³»¿ª</caption> <button id="button9" class="btn2_letter4" style="left:1057px; top:125px; width:64px; height:19px; "> <caption>Ãâ ·Â</caption> </button> <button id="button12" class="btn2_letter4" style="left:989px; top:125px; width:64px; height:19px; "> <caption>Àú Àå</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ var row_cnt = grd_chkdocuadjtdetl.rows; var count = 0; var savedocuflag = model.getValue("/root/send/savedocuflag"); for(var i=1;i<=row_cnt;i++) { //alert(grd_chkdocuadjtdetl.rowStatus(i)); if(grd_chkdocuadjtdetl.rowStatus(i)== "1" || grd_chkdocuadjtdetl.rowStatus(i)== "3" || grd_chkdocuadjtdetl.rowStatus(i)== "2") { count += 1; var ins01 = grd_chkdocuadjtdetl.valueMatrix(i,12); //Á¶Á¤»çÀ¯ var ins02 = grd_chkdocuadjtdetl.valueMatrix(i,13); //Á¶Á¤ÀÏÅõ var ins03 = grd_chkdocuadjtdetl.valueMatrix(i,14); //Á¶Á¤ÃÑÅõ var ins04 = grd_chkdocuadjtdetl.valueMatrix(i,15); //Á¶Á¤±Ý¾× var ins05 = ipt_chkdocuacptdd.value; //°ËÅä¼­Á¢¼öÀÏÀÚ var unitcost = grd_chkdocuadjtdetl.valueMatrix(i,9); //󹿴ܰ¡ var lnno = grd_chkdocuadjtdetl.valueMatrix(i,2); //ÁÙ¹øÈ£ if(ins01 == "" & ins02 == "" & ins03 == "") { continue; } if(ins01 == "") { alert("Á¶Á¤»çÀ¯¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); model.setFocus("grd_chkdocuadjtdetl.valueMatrix()"); return false; } if(ins02 == "") { alert("Á¶Á¤ÀÏÅõ¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); return false; } if(ins03 == "") { alert("Á¶Á¤ÃÑÅõ¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); return false; } if(ins05 == "") { alert("°ËÅä¼­Á¢¼öÀÏÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); model.setFocus("ipt_chkdocuacptdd"); return false; } else { grd_chkdocuadjtdetl.valueMatrix(i, grd_chkdocuadjtdetl.colRef("chkdocunotidd")) = ins05; //°ËÅä¼­Á¢¼öÀÏÀÚ ±×¸®µå¿¡ ¼¼ÆÃ } if(ins02 > ins03) { alert("ÁÙ¹øÈ£ " + lnno + "ÀÇ Á¶Á¤ÀÏÅõ°ªÀº Á¶Á¤ÃÑÅõ°ªº¸´Ù Ŭ¼ö ¾ø½À´Ï´Ù."); return false; } // grd_chkdocuadjtdetl.valueMatrix(i,15) = unitcost * ins03; // ¼öÁ¤°¡´ÉÇÏ°Ô ÇØ ³õ°í ¿Ö ´Ù½Ã ¹Ú¾Æ¹ö¸®´Â °¡???? 2010.02.03 ÁÖ¼®Ã³¸® model.setValue("/root/main/list01/gridchkdocuadjtdetl["+i+"]/savedocuflag",savedocuflag); } } if(count >0 ) { model.setValue("/root/main/list02/gridchkdocuadjtdetl", grd_chkdocuadjtdetl.getUpdateData()); if(submit("TXPIF70411")) { model.resetInstanceNode("/root/main/list01"); model.resetInstanceNode("/root/main/list02"); model.resetInstanceNode("/root/temp/rem"); submit("TRPIF70411"); fCalcSumOfAdjtamt(); } } ]]> </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:629px; width:152px; height:13px; ">°ËÅä¼­¼ö½Å¼­ Á¶Á¤ÁÖ¼®</caption> <line id="line2" class="line_1" style="x1:0px; y1:644px; x2:800px; y2:644px; "/> <textarea id="txt_adjtcmt" ref="/root/temp/rem/adjtcmt" style="left:0px; top:649px; width:800px; height:92px; "> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ var row = grd_chkdocuadjtdetl.row; model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row+"]/adjtcmt", txt_adjtcmt.value); if(grd_chkdocuadjtdetl.rowStatus(row) != 1 || grd_chkdocuadjtdetl.rowStatus(row) != 3) { grd_chkdocuadjtdetl.rowStatus(row) = 2; } ]]> </script> </textarea> <select id="checkbox1" visibility="hidden" overflow="visible" appearance="full" cols="2" rows="5" style="left:805px; top:649px; width:190px; height:86px; border-style:none; "> <choices> <item> <label>ÀÀ±Þ½Ç±â·ÏÁö</label> <value>1</value> </item> <item> <label>Åõ¾à±â·ÏÁö</label> <value/> </item> <item> <label>°æ°ú±â·ÏÁö</label> <value/> </item> <item> <label>°£È£±â·ÏÁö</label> <value/> </item> <item> <label>ÀÇ»ç¸í·ÉÁö</label> <value/> </item> <item> <label>°Ë»ç°á°úÁö</label> <value/> </item> <item> <label>¼ö¼ú±â·ÏÁö</label> <value/> </item> <item> <label>¹æ»ç¼±°á°úÁö</label> <value/> </item> <item> <label>¸¶Ãë±â·ÏÁö</label> <value/> </item> <item> <label>±âŸ</label> <value/> </item> </choices> </select> <caption id="caption5" class="tit_2" visibility="hidden" style="left:811px; top:629px; width:152px; height:13px; ">÷ºÎÀÚ·á</caption> <line id="line4" class="line_1" visibility="hidden" style="x1:805px; y1:644px; x2:995px; y2:644px; "/> <button id="button1" class="btn2_letter2" visibility="hidden" style="left:714px; top:623px; width:42px; height:19px; "> <caption>Ãâ·Â</caption> </button> <button id="button2" class="btn2_letter2" visibility="hidden" style="left:759px; top:623px; width:42px; height:19px; "> <caption>ÀúÀå</caption> </button> <button id="button3" class="btn2_letter6" visibility="hidden" style="left:625px; top:623px; width:86px; height:19px; "> <caption>½É»çÈ­¸éº¸±â</caption> </button> <button id="button4" class="btn2_letter6" style="left:899px; top:125px; width:86px; height:19px; "> <caption>½Å±Ô»è°¨µî·Ï</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ window.load("SPPIF70400_°ËÅä¼­µî·Ï°ü¸®.xrw", "modal", "pop", "width:1140; height:640;", "/root/send", "/root/send"); ]]> </script> </button> <button id="button5" class="btn2_letter3" visibility="hidden" style="left:835px; top:125px; width:53px; height:19px; "> <caption>Çà»èÁ¦</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ var rows = grd_chkdocuadjtdetl.rows-1; var cnt = 0; var row = grd_chkdocuadjtdetl.row; var cnt = 0; for( var i = rows; i > 0;i--) { var rowchkbox = grd_chkdocuadjtdetl.valueMatrix(i,1); if(rowchkbox == "true") { ++cnt; grd_chkdocuadjtdetl.deleteRow(i, false); } } if(cnt == 0) { grd_chkdocuadjtdetl.deleteRow(row, false); } grd_chkdocuadjtdetl.refresh(); /* for(var j=0;j<row.length;j++) { grd_chkdocuadjtdetl.deleteRow(i); }*/ //model.refresh(); ]]> </script> </button> <line id="line9" class="line_3" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/> <line id="line11" class="line_3" style="x1:0px; y1:119px; x2:1194px; y2:119px; "/> <caption id="caption38" class="cell_1" style="left:0px; top:96px; width:100px; height:23px; text-align:left; vertical-align:middle; ">°ËÅä¼­Á¢¼öÀÏÀÚ</caption> <datagrid id="grd_chkdocuadjtdetl" nodeset="/root/main/list01/gridchkdocuadjtdetl" class="datagrid2" caption="¼±ÅÃ^ÁÙ¹øÈ£^Ç׸ñ^±×·ìÄÚµå^¼ö°¡ÄÚµå^EDIÄÚµå^󹿏íĪ^I/II±¸ºÐ^󹿴ܰ¡^û±¸ ÀÏÅõ^û±¸ ÃÑÅõ^Á¶Á¤ »çÀ¯^Á¶Á¤ ÀÏÅõ^Á¶Á¤ ÃÑÅõ^Á¶Á¤¾×^ÀÌÀÇ ÀÏÅõ^ÀÌÀÇ ÃÑÅõ^ÀÌÀǽÅû¾×^µ¿ÀÇ ÀÏÅõ^µ¿ÀÇ ÃÑÅõ^µ¿ÀǾ×^û±¸¹øÈ£^¸íÀÏ·Ã^±â°üÄÚµå^Á¢¼ö¹øÈ£^»ç°íÁ¢¼ö¹øÈ£^û±¸¿ù^û±¸Â÷¼ö^µî·Ï¹øÈ£^¼öÁøÀÚ¸í^Áø·á±â°£^EDI´Ü°¡^ÀÎÁ¤´Ü°¡^ÀÎÁ¤°¡´É¾×^¼­½Ä±¸ºÐ^û±¸¾×^°ËÅä¼­Å뺸ÀÏÀÚ^SaveDocuFlag^Á¶Á¤ÁÖ¼®^Á¢¼öÀÏÀÚ^º¸Çè»çÄÚµå^º¸Çè»ç¸í^¿ä¾ç±â°üÄÚµå" colsep="^" colwidth="38, 54, 45, 80, 80, 75, 167, 56, 67, 42, 42, 35, 42, 42, 67, 42, 42, 81, 42, 42, 84, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 174, 100, 100, 100, 100" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="35" rowsep="|" style="left:0px; top:152px; width:1194px; height:463px; "> <col ref="rowchkbox" type="checkbox" visibility="hidden"> <script type="javascript" ev:event="xforms-select"> <![CDATA[ grd_chkdocuadjtdetl.rowStatus(grd_chkdocuadjtdetl.row) = 4; ]]> </script> <script type="javascript" ev:event="xforms-deselect"> <![CDATA[ grd_chkdocuadjtdetl.rowStatus(grd_chkdocuadjtdetl.row) = 0; return false; ]]> </script> </col> <col ref="lnno" style="text-align:center; "/> <col ref="item" style="text-align:center; "/> <col ref="grupcalcscorcd" style="text-align:center; "/> <col ref="snglcalcscorcd" style="text-align:center; "/> <col ref="edicd" style="text-align:center; "/> <col ref="hngnm"/> <col ref="matractflag" type="combo" visibility="hidden" 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:right; "/> <col ref="clamtotqty" style="text-align:center; "/> <col imemode="alpha" ref="adjtcd" type="input" maxlength="2" style="text-align:center; "/> <!-- <col ref="adjtcd" type="combo" maxlength="2" style="text-align:left; "> <choices> <itemset nodeset="/root/init/P0277list/P0277"> <label ref="cdnm"/> <value ref="cdid"/> </itemset> </choices> </col> --> <col ref="adjtdayqty" type="input" style="text-align:center; "/> <col ref="adjttotqty" type="input" style="text-align:center; "/> <col ref="adjtamt" type="input" format="#,###" style="text-align:right; "/> <col ref="obtappdayqty" style="text-align:center; "/> <col ref="obtapptotqty" style="text-align:center; "/> <col ref="obtappamt" 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="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="rcogunitcost" visibility="hidden"/> <col ref="rcogpossamt" visibility="hidden"/> <col ref="docuflag" visibility="hidden"/> <col ref="clamamt" visibility="hidden"/> <col ref="chkdocunotidd" visibility="hidden"/> <col ref="savedocuflag" visibility="hidden"/> <col ref="adjtcmt"/> <col ref="acptdd" visibility="hidden"/> <col ref="insuno" visibility="hidden"/> <col ref="insunm" visibility="hidden"/> <col ref="certno" visibility="hidden"/> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ fCalcSumOfAdjtamt(); ]]> </script> <script type="javascript" ev:event="onclick"> <![CDATA[ var row = grd_chkdocuadjtdetl.row; model.setValue("/root/temp/rem/adjtcmt", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row+"]/adjtcmt")); model.refreshpart("/root/temp/rem/adjtcmt"); ]]> </script> </datagrid> <input id="ipt_chkdocuacptdd" ref="/root/main/list01/gridchkdocuadjtdetl/chkdocunotidd" class="input_default" inputtype="date" maxlength="8" format="yyyy-mm-dd" style="left:102px; top:98px; width:90px; height:19px; text-align:center; "/> <datagrid id="grd_patbaseinfo" nodeset="/root/main/list01/gridpatbaseinfo" class="datagrid" caption="¼Õº¸»ç^û±¸¿ù^³»¿øÀ¯Çü^µî·Ï¹øÈ£^¼öÁøÀÚ¸í^Áø·á°ú^ÀÔ¿øÀÏ^Åð¿øÀÏ^»ç°íÁ¢¼ö¹øÈ£^°ËÅä¼­Á¢¼öÀÏÀÚ" colsep="^" colwidth="120, 120, 120, 120, 120, 120, 120, 120, 120, 120" dataheight="25" defaultrows="10" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="35" rowsep="|" style="left:0px; top:35px; width:1194px; height:49px; "> <col ref="insucdnm" style="text-align:center; "/> <col ref="clamym" format="yyyy-mm" style="text-align:center; "/> <col disabled="true" 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; "/> </datagrid> <button id="button7" class="btn2_letter4" style="left:1126px; top:126px; 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, model.getValue("/root/send/title")+"_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*"); if (fileName != "") { grd_chkdocuadjtdetl.saveExcel(fileName, "SheetName", true, true, "", "", ""); } ]]> </script> </button> <caption id="caption4" style="left:968px; top:615px; width:100px; height:20px; font-weight:bold; ">Á¶Á¤±Ý¾× ÇÕ°è :</caption> <caption id="caption6" style="left:1173px; top:615px; width:20px; height:20px; font-weight:bold; ">¿ø</caption> <output id="output1" ref="/root/hidden/gbvalue/sumadjtamt" style="left:1068px; top:615px; width:100px; height:19px; font-weight:bold; "/> </group> <group id="group2" scroll="auto" style="left:0px; top:744px; width:1195px; height:27px; "> <button id="button41" class="btn4_letter2" visibility="hidden" style="left:1138px; top:5px; width:56px; height:22px; "> <caption>»èÁ¦</caption> </button> <button id="button42" class="btn4_letter2" visibility="hidden" style="left:1080px; top:5px; width:56px; height:22px; "> <caption>ÀúÀå</caption> </button> <line id="line33" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/> </group> </xhtml:body> </xhtml:html>