123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <condition>
- <notecd/>
- <notecdnm/>
- <frdt/>
- <todt/>
- <instcd/>
- <mngitem/>
- <todaydt/>
- </condition>
- <list>
- <itemlist/>
- <hospislist/>
- </list>
- <list2>
- <detailist/>
- </list2>
- </main>
- <send>
- <prntlist/>
- <prntlist2/>
- </send>
- <init>
- <sumamt/>
- <settyamt/>
- <settnamt/>
- </init>
- <temp>
- <prntlist/>
- <prntlist2/>
- </temp>
- <source>
- <slipinfo/>
- </source>
- </root>
- </instance>
- <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[
- fOpenForm();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- //========================================================================================
- //화면 로드시 초기화 함수
- //========================================================================================
- function fOpenForm() {
- model.removenode("/root/main/notelist");
-
- var sToday = getCurrentDate().toString();
- var sFrday = sToday.substring(0,4) + "0101";
- var sTodayDate = getCurrentDate().toString();
-
-
- model.setValue("/root/main/condition/todt",sToday);
- model.setValue("/root/main/condition/frdt",sFrday);
- model.setValue("/root/main/condition/todaydt" ,sTodayDate);
- var instcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/main/condition/instcd",instcd);
-
- model.refresh();
- }
-
- //========================================================================================
- // 금일날짜와 만기일자 계산해서 처리 부분 매핑
- //========================================================================================
- function fGetTret(){
-
- }
-
- //========================================================================================
- //기재사항코드 조회
- //========================================================================================
- function fGetNoteList() {
- model.resetInstanceNode("/root/main/list/itemlist");
- model.resetInstanceNode("/root/main/list2/detailist");
- model.removenode("/root/main/list/itemlist");//조회시 기존 데이터 삭제
- model.removenode("/root/main/list2/detailist");//조회시 기존 데이터 삭제
- model.copyNode("/root/send", "/root/main/condition");
-
- model.refresh();
-
- //if(model.getValue("/root/main/condition/notecd")!="510") {
- submit("TRRAS00180");
- submit("TRRAS00200");
-
- // fGetSett();
- //}else{
-
- //}
- }
-
- //========================================================================================
- //처리결과 조회
- //========================================================================================
- function fGetSett(){
- // if(model.getValue("/root/main/list/detailist/dramt") == model.getValue("/root/main/list/detailist/cramt")){
- if((model.getValue(grd_notedetllist.nodeset + "[" + grd_notedetllist.row+ "]/dramt")) == (model.getValue(grd_notedetllist.nodeset + "[" + grd_notedetllist.row+ "]/cramt"))) {
- alert("1");
- model.setValue("/root/main/list/detailist/settyn" , "결재");
- }else{
- alert("2");
- model.setValue("/root/main/list/detailist/settyn" , "미결");
- }
-
- //var srcNodeList = model.instances(0).selectNodes("/root/main/list/detailist[activityname='PCI']" );
- }
- model.refresh();
- //========================================================================================
- //관리항목 상세정보 조회(그리드용)
- //========================================================================================
- function fGetMngItemInfo(pRow)
- {
-
- if ( pRow > 0 )
- {
- model.resetInstanceNode("/root/send");
-
- var strItem ;
- strItem = grd_notelist.valueMatrix(grd_notelist.row, grd_notelist.colRef("mngitem"));
- model.setValue("/root/main/condition/mngitem",strItem);
-
- model.resetInstanceNode("/root/main/list2/detailist");
- model.removenode("/root/main/list2/detailist");//조회시 기존 데이터 삭제
- model.copyNode("/root/send", "/root/main/condition");
- model.refresh();
- submit("TRRAS00190");
- }
- }
-
- function settamt() {
- if(model.getValue("/root/init/settamt")=="결재"){
-
- }
- }
- //========================================================================================
- //엑셀입력(excel file을 그리드에 입력)
- //========================================================================================
- function fInputExcel(pGrid) {
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(fileName != "") {
- pGrid.loadExcel(fileName, 1, true);
- pGrid.deleteRow(1);
-
- for(i = 1; i < pGrid.rows; i++) {
- pGrid.rowStatus(i) = 1;
- }
- pGrid.refresh();
- }
- }
- ]]>
- </script>
- <submission id="TRRAS00180" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist"/>
- <submission id="TRRAS00190" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detailist"/>
- <submission id="TRRAS00200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detailist"/>
- <bind id="ipt_sumamt1" ref="/root/init/sumamt" calculate="sum(/root/main/list2/detailist/cramt)"/>
- <bind id="ipt_settyamt1" ref="/root/init/settyamt" calculate="sum(/root/main/list2/detailist/settyamt)"/>
- <bind id="ipt_settnamt1" ref="/root/init/settnamt" calculate="sum(/root/main/list2/detailist/settnamt)"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" 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:20px; width:1195px; height:680px; ">
- <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:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:125px; height:17px; ">관리항목코드 :</caption>
- <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1120px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.refresh();
- fGetNoteList();
- ]]>
- </script>
- </button>
- <input id="ipt_notecd" ref="/root/main/condition/notecd" class="input_s_essential" navindex="6" style="left:135px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_notecdnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfNoteValidCheck("notecd,notecdnm")
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm" ref="/root/main/condition/notecdnm" class="input_s_essential" navindex="6" style="left:241px; top:8px; width:230px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfNoteValidCheck("notecd,notecdnm")
- ]]>
- </script>
- </input>
- <button id="btn_help" class="icon_search" style="left:221px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfOpenPopUpList("06", ipt_notecd, "", "notecd,notecdnm");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:505px; top:8px; width:89px; height:17px; ">기 간 :</caption>
- <caption id="caption2" style="left:699px; top:8px; width:15px; height:20px; ">~</caption>
- <input id="input2" ref="/root/main/condition/frdt" class="input_s_essential" inputtype="date" style="left:595px; top:8px; width:100px; height:19px; "/>
- <input id="input3" ref="/root/main/condition/todt" class="input_s_essential" inputtype="date" style="left:712px; top:8px; width:100px; height:19px; "/>
- <input id="input1" ref="/root/main/condition/todaydt" class="input_s_essential" visibility="hidden" inputtype="date" style="left:890px; top:10px; width:100px; height:19px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:1041px; top:7px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPRAT01400", "XMLSTR", "");
-
- ]]>
- </script>
- </button>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1193px; y2:70px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">관리항목</caption>
- <button id="btn_excadd" class="btn2_letter4" style="left:1129px; top:50px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInputExcel(grd_notelist);
- ]]>
- </script>
- </button>
- <datagrid id="grd_notelist" nodeset="/root/main/list/itemlist" caption="기관코드^코드^관리항목" colsep="^" colwidth="0, 0, 200" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:75px; width:225px; height:600px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="notecd" visibility="hidden"/>
- <col ref="mngitem" maxlength="3" style="text-align:left; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_notelist.row;
- fGetMngItemInfo(cur_row);
- grd_notelist.dispatch("onmouseup");
- model.refresh();
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_notedetllist" nodeset="/root/main/list2/detailist" caption="전표번호^계정명^귀속부서^차변금액^거래처코드^전표일자^전표번호^거래처명^차변금액^금액^어음번호^지급은행^발행일^만기일자^처리^결제금액^미결재금액" colsep="^" colwidth="0, 0, 0, 0, 74, 50, 60, 142, 0, 103, 97, 216, 72, 72, 45, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:230px; top:74px; width:965px; height:571px; text-align:center; ">
- <col ref="slipno" type="input" visibility="hidden" maxlength="3" style="text-align:left; "/>
- <col ref="acntnm" type="input" visibility="hidden" maxlength="3" style="text-align:left; "/>
- <col ref="costcntrdeptnm" type="input" visibility="hidden" maxlength="3" style="text-align:left; "/>
- <col ref="dramt" type="input" visibility="hidden" format="#,###" maxlength="3" savetype="digit" style="text-align:right; "/>
- <col ref="custcd" style="text-align:center; "/>
- <col ref="unsldd" visibility="hidden" style="text-align:center; "/>
- <col ref="unslno" style="text-align:center; "/>
- <col ref="custnm" style="text-align:center; "/>
- <col ref="dramt" type="input" format="#,###" maxlength="3" savetype="digit" style="text-align:right; "/>
- <col ref="cramt" format="#,###" maxlength="3" savetype="digit" style="text-align:right; "/>
- <col ref="note1" style="text-align:center; "/>
- <col ref="note3" style="left:727px; top:23px; width:170px; height:23px; text-align:center; "/>
- <col ref="note4" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="note5" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="settyn"/>
- <col ref="settyamt"/>
- <col ref="settnamt"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTret();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //if (ipt_detailist.row > 0 && ipt_detailist.valueMatrix(ipt_detailist.row, ipt_detailist.colRef("gubn")) == "0")
- //{
- model.makeValue("/root/source/slipinfo/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/source/slipinfo/slipdt", model.getValue(grd_notedetllist.nodeset + "[" + grd_notedetllist.row + "]/unsldd"));
- model.makeValue("/root/source/slipinfo/slipno", model.getValue(grd_notedetllist.nodeset + "[" + grd_notedetllist.row + "]/unslno").substr(0, 4));
- model.refresh();
- modal("SMRAD00100","","","","","/root/source", "/root/target" );
- //}
- ]]>
- </script>
- </datagrid>
- <upload id="upload1" style="left:735px; top:415px; width:100px; height:20px; "/>
- <button id="button1" class="btn2_letter4" style="left:1062px; top:50px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //radfSaveExcel(grd_notedetllist);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_notedetllist.saveExcel(fileName,"SheetName:sheet1");
- ]]>
- </script>
- </button>
- <caption id="caption3" class="cell_1" style="left:230px; top:650px; width:90px; height:23px; text-align:center; vertical-align:middle; ">총 액</caption>
- <caption id="caption5" class="cell_1" style="left:492px; top:650px; width:90px; height:23px; text-align:center; vertical-align:middle; ">결재금액</caption>
- <caption id="caption8" class="cell_1" style="left:754px; top:650px; width:90px; height:23px; text-align:center; vertical-align:middle; ">미결재금액</caption>
- <input id="ipt_sumamt" ref="/root/init/sumamt" format="#,###" style="left:322px; top:652px; width:165px; height:19px; text-align:right; "/>
- <input id="ipt_settyamt" ref="/root/init/settyamt" format="#,###" style="left:584px; top:652px; width:165px; height:19px; text-align:right; "/>
- <input id="ipt_settnamt" ref="/root/init/settnamt" format="#,###" style="left:846px; top:652px; width:165px; height:19px; text-align:right; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|