123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>현금출납장</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <acntinoutlist/>
- </list>
- </main>
- <send>
- <retrparam>
- <instcd/>
- <frdate/>
- <todate/>
- <frcadldt/>
- <framt/>
- <toamt/>
- <cashflag/>
- </retrparam>
- <date/>
- <prntparam>
- <instnm/>
- <fromdd/>
- <todd/>
- </prntparam>
- </send>
- <init/>
- <temp/>
- <hidden/>
- </root>
- </instance>
- <submission id="TRRAD00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/list"/>
- </model>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fResetForm();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fResetForm()
- {
- model.removeNodeset("/root/main/list/acntinoutlist");
-
- if(getUserInfo("dutplceinstcd") == '103')
- {
- rdo_cashflag.value = 'cashacntcd';
- }
- else
- {
- rdo_cashflag.value = 'cashcd';
- }
- rdo_cashflag.refresh();
-
- misfMsterDetailSet(grd_acntinoutlist, null, "TRRAD00901", "N");
- // 기관코드 콤보박스 세팅
- misfComboComCdList("Z0007", cmb_instcd, "N");
- // 회계년도 및 시작, 종료일자 조회 및 세팅
- model.setValue("/root/send/date", getCurrentDate());
- racfGetCadlYmd("/root/send/date", "/root/temp");
- model.setValue("/root/send/retrparam/frcadldt", model.getValue("/root/temp/fromdd"));
- // 해당 근무 기관 세팅
- model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
- // 현재일자 세팅
- model.setValue("/root/send/retrparam/frdate", getCurrentDate());
- model.setValue("/root/send/retrparam/todate", getCurrentDate());
-
- radfCheckInstSearchAuth(getUserInfo("dutplceinstcd"), cmb_instcd);
- model.refresh();
- }
-
- function fRetrieve()
- {
- misfMsterDetailRetrieve();
- }
-
- function fSetCadlDt()
- {
- model.setValue("/root/send/date", ipt_frdate.value);
- racfGetCadlYmd("/root/send/date", "/root/temp");
- model.setValue("/root/send/retrparam/frcadldt", model.getValue("/root/temp/fromdd"));
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">현금출납장</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="caption1" class="search_name" style="left:255px; top:9px; width:86px; height:17px; ">기 간 :</caption>
- <caption id="caption3" style="left:436px; top:10px; width:15px; height:20px; ">~</caption>
- <line id="line30" class="line_4" style="x1:1109px; y1:3px; x2:1109px; y2:31px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/retrparam/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:110px; top:8px; width:130px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_frdate" ref="/root/send/retrparam/frdate" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:345px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fSetCadlDt();
-
- ]]>
- </script>
- </input>
- <input id="ipt_todate" ref="/root/send/retrparam/todate" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:447px; top:8px; width:90px; height:19px; "/>
- <output id="opt_cadldt" ref="/root/send/retrparam/frcadldt" visibility="hidden" style="left:1100px; top:10px; width:25px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:550px; top:9px; width:85px; height:17px; ">금 액 :</caption>
- <caption id="caption8" style="left:724px; top:10px; width:15px; height:20px; ">~</caption>
- <input id="ipt_framt" ref="/root/send/retrparam/framt" class="input_essential" navindex="6" format="(-)#,###" style="left:634px; top:8px; width:90px; height:19px; text-align:right; "/>
- <input id="ipt_toamt" ref="/root/send/retrparam/toamt" class="input_essential" navindex="6" format="(-)#,###" style="left:734px; top:8px; width:90px; height:19px; text-align:right; "/>
- <select1 id="rdo_cashflag" ref="/root/send/retrparam/cashflag" class="radio_search" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:920px; top:10px; width:211px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>현 금</label>
- <value>cashcd</value>
- </item>
- <item>
- <label>현금성등가물</label>
- <value>cashacntcd</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" visibility="hidden" style="left:846px; top:10px; width:91px; height:17px; ">구분 :</caption>
- </group>
- <case id="case2" selected="true">
- <caption id="caption2" style="left:130px; top:95px; width:100px; height:20px; vertical-align:middle; ">caption2</caption>
- </case>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:80px; width:131px; height:13px; ">전체</caption>
- <datagrid id="grd_acntinoutlist" nodeset="/root/main/list/acntinoutlist" caption="날짜^적요^거래처^입금^출금^잔액^전표일자^전표번호" colsep="^" colwidth="100, 416, 190, 150, 150, 150, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:75px; width:1195px; height:663px; ">
- <col ref="apsldt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="kije00"/>
- <col ref="custnm"/>
- <col ref="dramnt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="cramnt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="janamtsum" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="unsldd"/>
- <col ref="unslno"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_acntinoutlist.row > 0) {
- model.makeValue("/root/source/slipinfo/instcd", cmb_instcd.value);
- model.makeValue("/root/source/slipinfo/slipdt", model.getValue("/root/main/list/acntinoutlist[" + grd_acntinoutlist.row + "]/unsldd"));
- model.makeValue("/root/source/slipinfo/slipno", model.getValue("/root/main/list/acntinoutlist[" + grd_acntinoutlist.row + "]/unslno").substr(0, 4));
-
- model.refresh();
- modal("SMRAD00100","","","","","/root/source", "/root/target" );
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1129px; top:49px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //misfSaveExcel(grd_acntinoutlist);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_acntinoutlist.saveExcel(fileName,"SheetName:sheet1");
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" 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="button8" class="btn6_letter2" visibility="visible" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_acntinoutlist.rows == grd_acntinoutlist.fixedRows)
- {
- messageBox("출력할 내용이" ,"I004");
- return false;
- }
-
- model.setValue("/root/send/prntparam/instnm", cmb_instcd.label);
- model.setValue("/root/send/prntparam/fromdd", model.getValue(ipt_frdate.attribute("ref")));
- model.setValue("/root/send/prntparam/todd", model.getValue(ipt_todate.attribute("ref")));
-
- exeReportPreview("RPRAD00901", "XMLSTR", "/root/send/prntparam");
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|