123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>재물조사 계정등록관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <acntinfo>
- <acntlist/>
- </acntinfo>
- </list>
- </main>
- <target/>
- <init>
- <acnt/>
- </init>
- <send>
- <search>
- <instcd/>
- <yyyy/>
- <acntnm/>
- </search>
- </send>
- <temp/>
- <popdata>
- <instcd/>
- <yyyy/>
- </popdata>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- misfGridInit(grd_acntinfo);
- misfComboComCdList("C0048",cmb_instcd,"Y"); //기관코드
-
- //Opener로부터 받은 parameter값을 조회조건으로 setting함
- var yyyy = model.getValue("/root/popdata/yyyy");
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd"));
- if(yyyy ==""){
- model.setValue("/root/send/search/yyyy",getCurrentDate().substring(0, 4));
- }else{
- model.setValue("/root/send/search/yyyy", model.getValue("/root/popdata/yyyy"));
- }
-
- submit("TRRSO20602"); //계정 조회
-
- cmb_acntnm.select(0); //계정 from 설정
-
- btn_search.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSO20602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/acnt"/>
- <submission id="TRRFC00411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/acntinfo/acntlist"/>
- <submission id="TXRFC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="540" pageheight="480" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:510px; height:20px; ">재물조사 계정등록관리</caption>
- <button id="btn_confirm" class="btn4_letter2" style="left:460px; top:455px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( checkOpener() ) {
- opener.javascript.setParameter("para_closeyn" , "Y");
- } else {
- var rtn = messageBox("상위화면을 찾을 수", "E001");
- }
- model.close();
- ]]>
- </script>
- </button>
- <group id="grp_search" style="left:0px; top:22px; width:520px; height:78px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:520px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:456px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRFC00411");
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:96px; top:11px; width:139px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:5px; top:9px; width:86px; height:17px; vertical-align:top; ">기관코드 :</caption>
- <caption id="cap_deptcd" class="search_name" style="left:251px; top:11px; width:90px; height:17px; ">기준년도 :</caption>
- <input id="ipt_yyyy" ref="/root/send/search/yyyy" class="input_search" disabled="true" navindex="2" style="left:345px; top:10px; width:80px; height:19px; text-align:center; "/>
- <caption id="caption20" class="search_name" style="left:6px; top:45px; width:60px; height:17px; vertical-align:middle; ">계정 :</caption>
- <select1 id="cmb_acntnm" ref="/root/send/search/acntnm" class="combo_default" navindex="4" appearance="minimal" editmode="search" showvalue="true" style="left:70px; top:45px; width:255px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/acnt/acntlist">
- <label ref="acntnm"/>
- <value ref="acntcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_save" class="btn4_letter2" navindex="8" style="left:455px; top:40px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_acntinfo);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
- model.makeValue("/root/send/save/acntlist", grd_acntinfo.getUpdateData())
- if( submit("TXRFC00404") ) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption4" class="tit_2" style="left:10px; top:104px; width:131px; height:13px; ">계정 리스트</caption>
- <line id="line2" class="line_1" style="x1:1px; y1:124px; x2:519px; y2:124px; "/>
- <datagrid id="grd_acntinfo" nodeset="/root/main/list/acntinfo/acntlist" caption="계정코드^계정명^분류^년도" colsep="^" colwidth="123, 216, 113, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:1px; top:130px; width:519px; height:320px; font-weight:normal; text-align:center; ">
- <col ref="acntcd" style="text-align:center; "/>
- <col ref="acntnm" style="text-align:center; padding-left:10; "/>
- <col ref="gubun" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>의료기기</label>
- <value>1</value>
- </item>
- <item>
- <label>의료비품</label>
- <value>2</value>
- </item>
- <item>
- <label>일반비품 및 기타</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="yyyy" visibility="hidden"/>
- </datagrid>
- <button id="btn_grddel" class="btn2_letter3" navindex="10" style="left:465px; top:103px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_acntinfo, "D");
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" navindex="9" style="left:329px; top:66px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_acntinfo, "A");
-
- grd_acntinfo.valueMatrix(grd_acntinfo.row, grd_acntinfo.colRef("acntcd")) = cmb_acntnm.value;
- grd_acntinfo.valueMatrix(grd_acntinfo.row, grd_acntinfo.colRef("acntnm")) = cmb_acntnm.label;
- grd_acntinfo.valueMatrix(grd_acntinfo.row, grd_acntinfo.colRef("yyyy")) = ipt_yyyy.label;
- ]]>
- </script>
- </button>
- <button id="btn_select" class="btn4_letter2" style="left:400px; top:455px; width:56px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //선택목록이 no rows 일 때
- if(grd_acntinfo.rows == 1) {
- messageBox("등록된 계정코드가 없습니다. ", "E999", "");
- return;
- }
-
- var updtdata = getGridUpdateData(grd_acntinfo);
-
- if ( updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용은 적용되지 않습니다. 적용 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- //선택버튼을 click했는지 아닌지를 나타내는 구분값을 opener에 전달한다.
- opener.model.setValue("/root/popacnt/selectyn", "Y");
-
- opener.model.removeNodeset("/root/popacntlist/acntlist");
-
- for(var i = grd_acntinfo.fixedRows; i < grd_acntinfo.rows; i++) {
- opener.model.makeValue( "/root/popacntlist/acntlist[" + i + "]/acntcd", grd_acntinfo.valueMatrix(i, grd_acntinfo.colRef("acntlist")) );
- opener.model.makeValue( "/root/popacntlist/acntlist[" + i + "]/acntnm", grd_acntinfo.valueMatrix(i, grd_acntinfo.colRef("acntnm")) );
- opener.model.makeValue( "/root/popacntlist/acntlist[" + i + "]/yyyy", grd_acntinfo.valueMatrix(i, grd_acntinfo.colRef("yyyy")) );
- }
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|