ºÎ°¡¼¼ ¸í¼¼¼­
1 <instnm/> <sumflag/> </retrparam> <reptkind>entrregno</reptkind> <yyyy/> <sortflag>entrregno</sortflag> <sumflag>Y</sumflag> </send> <init> <init_taxbillflag> <item> <label>¸ÅÀÔ</label> <value>1</value> </item> <item> <label>¸ÅÃâ</label> <value>2</value> </item> </init_taxbillflag> <init_reptkind> <item> <label>1±â¿¹Á¤</label> <value>1</value> </item> <item> <label>1±âÈ®Á¤</label> <value>2</value> </item> <item> <label>2±â¿¹Á¤</label> <value>3</value> </item> <item> <label>2±âÈ®Á¤</label> <value>4</value> </item> </init_reptkind> </init> <temp/> <hidden> <cardinalnumberinfo> <cardinalnumber/> </cardinalnumberinfo> </hidden> </root> </instance> <script type="javascript" src="../../../com/commonweb/js/common.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/tfHelper.js"/> <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/> <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/> <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/> <script type="javascript" src="../../../mis/miscommonweb/js/RAM001.js"/> <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/> <script type="javascript" ev:event="xforms-ready"> <![CDATA[ fInitialize(); ]]> </script> <script type="javascript"> <![CDATA[ function fInitialize() { model.setValue("/root/send/yyyy", getCurrentDate().substr(0, 4)); model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); model.setValue("/root/send/retrparam/instnm", getUserInfo("dutplceinstnm")); model.removenode("/root/main/list/texlist"); model.removenode("/root/main/list/addtexlist"); model.setValue("/root/send/taxbillflag", "1"); fSetReptKind(); fSetDate(); fCheckAuth(); } function fSetReptKind() { var sMonth = getCurrentDate().substr(4, 2); if(sMonth == "01" || sMonth == "02" || sMonth == "03") { model.setValue("/root/send/reptkind", "1"); } else if(sMonth == "04" || sMonth == "05" || sMonth == "06") { model.setValue("/root/send/reptkind", "2"); } else if(sMonth == "07" || sMonth == "08" || sMonth == "09") { model.setValue("/root/send/reptkind", "3"); } else if(sMonth == "10" || sMonth == "11" || sMonth == "12") { model.setValue("/root/send/reptkind", "4"); } model.refresh(); } function fSetDate() { if(model.getValue("/root/send/yyyy").length != 4) { messageBox("³âµµ°¡ À߸øµÇ¾ú½À´Ï´Ù.", "I999"); return; } var sReptKind = model.getValue("/root/send/reptkind"); if(sReptKind == "1") { model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0101"); model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "0331"); } else if(sReptKind == "2") { model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0101"); model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "0630"); } else if(sReptKind == "3") { model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0701"); model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "0930"); } else if(sReptKind == "4") { model.setValue("/root/send/frdate", model.getValue("/root/send/yyyy") + "0701"); model.setValue("/root/send/todate", model.getValue("/root/send/yyyy") + "1231"); } model.refresh(); } function fRetrieve() { submit("TRRAT01101"); grd_addtexlist.subtotalposition = "below"; grd_addtexlist.multitotals = true; grd_addtexlist.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "Àü ü ÇÕ °è", true); grd_addtexlist.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "Àü ü ÇÕ °è", true); grd_addtexlist.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "Àü ü ÇÕ °è", true); grd_addtexlist.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "Àü ü ÇÕ °è", true); grd_texlist.subtotalposition = "below"; grd_texlist.multitotals = true; grd_texlist.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "Àü ü ÇÕ °è", false); grd_texlist.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "Àü ü ÇÕ °è", false); grd_texlist.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "Àü ü ÇÕ °è", false); grd_texlist.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 1, "Àü ü ÇÕ °è", false); if(model.getValue(rdo_sumflag.attribute("ref")) == "Y") { grd_addtexlist.subtotal("sum", 3, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "ÇÕ°è", true); grd_addtexlist.subtotal("sum", 3, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "ÇÕ°è", true); grd_addtexlist.subtotal("sum", 3, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "ÇÕ°è", true); grd_addtexlist.subtotal("sum", 3, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "ÇÕ°è", true); grd_texlist.subtotal("sum", 3, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "ÇÕ°è", true); grd_texlist.subtotal("sum", 3, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "ÇÕ°è", true); grd_texlist.subtotal("sum", 3, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "ÇÕ°è", true); grd_texlist.subtotal("sum", 3, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#000000; ", 4, "ÇÕ°è", true); } grd_addtexlist.refresh(); grd_texlist.refresh(); } function fCheckAuth() { btn_search.disabled = !checkAuth("R") ; } ]]> </script> <submission id="TRRAT01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/> </model> </xhtml:head> <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; "> <group id="grp_1" style="left:0px; top:0px; width:1195px; height:13px; "> <caption id="cap_6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">ºÎ°¡¼¼ ¸í¼¼¼­</caption> <caption id="cap_4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/> </group> <group id="grp_3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; "> <switch id="swt_1" class="sw_box" style="left:0px; top:125px; width:1195px; height:614px; border-style:solid; "> <case id="case1" selected="true"> <caption id="cap_21" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">¼¼±Ý°è»ê¼­</caption> <line id="lin_3" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/> <datagrid id="grd_addtexlist" nodeset="/root/main/list/addtexlist" backcoloralternate="#ffffff" caption="»ç ¾÷ ÀÚ µî ·Ï ¹ø È£^»ó È£ (¹ý ÀÎ ¸í)^subtotal^ÀÛ ¼º ÀÏ^°Å ·¡ Ƚ ¼ö^ °ø ±Þ °¡ ¾×^¼¼ ¾×^ÇÕ °è" colwidth="180, 180, 0, 180, 80, 160, 160, 160" mergecells="byrestriccol" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:580px; "> <col ref="entrregno" format="999-99-99999" style="text-align:center; vertical-align:top; padding-top:3; "/> <col ref="custnm" style="text-align:left; vertical-align:top; padding-left:1; padding-top:3; "/> <col ref="custnm" visiblity="hidden"/> <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/> <col ref="countnum" style="text-align:center; "/> <col ref="suplamt" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/> <col ref="valaddtax" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/> <col ref="amt" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/> </datagrid> <button id="btn_5" class="btn2_letter4" style="left:1128px; top:4px; width:64px; height:19px; text-align:left; "> <caption>¿¢¼¿Ãâ·Â</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ //misfSaveExcel(grd_texlist); var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*"); grd_texlist.saveExcel(fileName,"SheetName:sheet1"); ]]> </script> </button> </case> <case id="case2"> <caption id="cap_5" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">°è »ê ¼­</caption> <datagrid id="grd_texlist" nodeset="/root/main/list/texlist" caption="»ç ¾÷ ÀÚ µî ·Ï ¹ø È£^»ó È£ (¹ý ÀÎ ¸í)^subtotal^ÀÛ ¼º ÀÏ^°Å ·¡ Ƚ ¼ö^ °ø ±Þ °¡ ¾×^¼¼ ¾×^ÇÕ °è" colwidth="200, 200, 0, 200, 100, 200, 200, 0" mergecells="byrestriccol" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:580px; "> <col ref="entrregno" format="999-99-99999" style="text-align:center; vertical-align:top; padding-top:3; "/> <col ref="custnm" style="text-align:left; vertical-align:top; padding-left:1; padding-top:3; "/> <col ref="custnm" visiblity="hidden"/> <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/> <col ref="countnum" style="text-align:center; "/> <col ref="suplamt" format="(-)#,###" style="text-align:right; padding-right:1; "/> <col ref="valaddtax" format="(-)#,###" style="text-align:right; padding-right:1; "/> <col ref="amt" format="(-)#,###" style="text-align:right; padding-right:1; "/> </datagrid> <line id="lin_1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/> <button id="btn_7" class="btn2_letter4" style="left:1128px; top:4px; width:64px; height:19px; text-align:left; "> <caption>¿¢¼¿Ãâ·Â</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ misfSaveExcel(grd_addtexlist); ]]> </script> </button> </case> </switch> <button id="btn_1" class="btn_sw" group="tab" selected="true" style="left:73px; top:104px; width:73px; height:22px; "> <caption>°è »ê ¼­</caption> <toggle case="case2" ev:event="onclick"/> </button> <button id="btn_65" class="btn_sw" group="tab" selected="true" style="left:0px; top:104px; width:73px; height:22px; "> <caption>¼¼±Ý°è»ê¼­</caption> <toggle case="case1" ev:event="onclick"/> </button> <group id="group4" style="left:0px; top:10px; width:1195px; height:90px; vertical-align:top; "> <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/> <caption id="caption9" class="search_name" style="left:295px; top:9px; width:106px; height:17px; ">½Å°í À¯Çü :</caption> <caption id="caption2" class="search_name" style="left:10px; top:9px; width:101px; height:17px; ">³â µµ :</caption> <caption id="caption8" style="left:938px; top:11px; width:15px; height:20px; ">~</caption> <caption id="caption10" class="search_name" style="left:750px; top:10px; width:86px; height:17px; ">ÀÛ¼ºÀÏÀÚ :</caption> <caption id="caption1" class="search_name" style="left:295px; top:36px; width:99px; height:17px; ">»ç¾÷ÀÚ¹øÈ£ :</caption> <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1120px; top:31px; width:56px; height:22px; text-align:left; "> <caption>Á¶È¸</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ fRetrieve(); //alert(model.getValue("/root/send/entrregno")); ]]> </script> </button> <line id="line10" class="line_4" style="x1:1107px; y1:5px; x2:1107px; y2:86px; "/> <caption id="caption5" class="search_name" style="left:10px; top:36px; width:109px; height:17px; ">°è»ê¼­±¸ºÐ :</caption> <select1 id="rdo_reptkind" ref="/root/send/reptkind" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:400px; top:10px; width:320px; height:20px; vertical-align:middle; border-style:none; "> <choices> <itemset nodeset="/root/init/init_reptkind/item"> <label ref="label"/> <value ref="value"/> </itemset> </choices> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ fSetDate(); fRetrieve(); ]]> </script> </select1> <input id="ipt_frdate" ref="/root/send/frdate" class="input_s_essential" editable="false" inputtype="date" style="left:840px; top:9px; width:95px; height:19px; "> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ ]]> </script> </input> <input id="ipt_todate" ref="/root/send/todate" class="input_s_essential" editable="false" inputtype="date" style="left:952px; top:9px; width:95px; height:19px; "/> <select1 id="rdo_billflag" ref="/root/send/taxbillflag" class="radio_search" navindex="4" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:115px; top:36px; width:165px; height:20px; vertical-align:middle; border-style:none; "> <choices> <itemset nodeset="/root/init/init_taxbillflag/item"> <label ref="label"/> <value ref="value"/> </itemset> </choices> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ fRetrieve(); ]]> </script> </select1> <button id="btn_entregnohelp" class="icon_search" style="left:504px; top:36px; width:16px; height:16px; "> <caption/> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ misfOpenPopUpList("14", ipt_regno, "", "entrregno,custnm"); model.refresh(); ]]> </script> </button> <input id="ipt_regno" ref="/root/send/entrregno" navindex="5" format="999-99-99999" style="left:400px; top:36px; width:100px; height:19px; text-align:center; "> <script type="javascript" ev:event="onkeypress"> <![CDATA[ if(event.keyCode == 13) { racfCustValidCheck("entrregno,custnm", "code"); } ]]> </script> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ racfCustValidCheck("entrregno,custnm", "code"); ]]> </script> </input> <input id="ipt_regnm" ref="/root/send/custnm" navindex="6" imemode="hangul" style="left:524px; top:36px; width:160px; height:19px; "> <script type="javascript" ev:event="onkeypress"> <![CDATA[ if(event.keyCode == 13) { racfCustValidCheck("entrregno,custnm", "name"); } ]]> </script> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ racfCustValidCheck("entrregno,custnm", "name"); ]]> </script> </input> <input id="ipt_yyyy" ref="/root/send/yyyy" class="input_s_essential" navindex="1" maxlength="4" style="left:115px; top:9px; width:135px; height:19px; text-align:center; "/> <select1 id="radio1" ref="/root/send/sortflag" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:840px; top:36px; width:265px; height:20px; vertical-align:middle; border-style:none; "> <choices> <item> <label>»ç¾÷ÀÚµî·Ï¹øÈ£</label> <value>entrregno</value> </item> <item> <label>»óÈ£</label> <value>custnm</value> </item> <item> <label>ÀÛ¼ºÀÏ</label> <value>genrdd</value> </item> </choices> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ fSetDate(); fRetrieve(); ]]> </script> </select1> <caption id="caption3" class="search_name" style="left:750px; top:36px; width:106px; height:17px; ">Á¤·Ä±âÁØ :</caption> <caption id="caption4" class="search_name" style="left:750px; top:61px; width:106px; height:17px; ">ÇÕ°èÃâ·Â :</caption> <select1 id="rdo_sumflag" ref="/root/send/sumflag" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="2" style="left:840px; top:61px; width:265px; height:20px; vertical-align:middle; border-style:none; "> <choices> <item> <label>ÇÕ°è Ãâ·Â</label> <value>Y</value> </item> <item> <label>ÇÕ°è Ãâ·Â ¾ÈÇÔ</label> <value>N</value> </item> </choices> </select1> </group> </group> <group id="grp_4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; "> <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/> <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; "> <caption>Ãâ·Â</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ //fRetrieve(); model.setValue("/root/send/reptkind",rdo_reptkind.label); model.setValue("/root/send/retrparam/frdate",model.getValue("/root/send/frdate").substr(0,4) + "-" + model.getValue("/root/send/frdate").substr(4,2) + "-" + model.getValue("/root/send/frdate").substr(6,2)); model.setValue("/root/send/retrparam/todate",model.getValue("/root/send/todate").substr(0,4) + "-" + model.getValue("/root/send/todate").substr(4,2) + "-" + model.getValue("/root/send/todate").substr(6,2)); model.setValue("/root/send/retrparam/sumflag", model.getValue(rdo_sumflag.attribute("ref"))); if(swt_1.selectedIndex == 0)//¼¼±Ý°è»ê¼­ { //alert(instance1.selectNodes("/root/main/list/addtexlist").length); if(grd_addtexlist.rows == grd_addtexlist.fixedRows) { messageBox("Ãâ·ÂÇÒ ³»¿ëÀÌ" ,"I004"); return; } if(rdo_billflag.value == '2')//¸ÅÃâóº° { model.setValue("/root/send/retrparam/title", " ¸ÅÃâóº° ¼¼±Ý°è»ê¼­ ¸í¼¼¼­ "); } else//¸ÅÀÔóº° { model.setValue("/root/send/retrparam/title", " ¸ÅÀÔóº° ¼¼±Ý°è»ê¼­ ¸í¼¼¼­ "); } exeReportPreview("RPRAT01101", "XMLSTR", "/root/send/retrparam"); } else//°è»ê¼­ { if(grd_texlist.rows == grd_texlist.fixedRows) { messageBox("Ãâ·ÂÇÒ ³»¿ëÀÌ" ,"I004"); return; } if(rdo_billflag.value == '2')//¸ÅÃâóº° { model.setValue("/root/send/retrparam/title", " ¸ÅÃâóº° °è»ê¼­ ¸í¼¼¼­ "); } else//¸ÅÀÔóº° { model.setValue("/root/send/retrparam/title", " ¸ÅÀÔóº° °è»ê¼­ ¸í¼¼¼­ "); } exeReportPreview("RPRAT01102", "XMLSTR", "/root/send/retrparam"); } ]]> </script> </button> </group> </xhtml:body> </xhtml:html>