123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <acntnolist>
- <instcd/>
- <dutplceinst/>
- <dutdeptcd/>
- <bankcd/>
- </acntnolist>
- </main>
- <send>
- <name/>
- <emplno/>
- <preststatcd/>
- <instcd/>
- <dutplceinst/>
- <dutdeptcd/>
- <prfshipflag/>
- <anual/>
- <bankcd/>
- <acntno/>
- <acntnolist/>
- </send>
- <init>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRTH00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntnolist"/>
- <submission id="TXRTH00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acntnolist" resultref="/root/temp"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- misfGridInit(grd_acntnolist);
-
- misfMsterDetailSet(grd_acntnolist, null, "TRRTH00501", "Y");
- rthfComboComCdList('R0314', cmb_instcd);
- rthfComboComCdList('R0314', cmb_dutplceinst,'Y');
- misfGridComboComCdList("Z0007",grd_acntnolist,"instcd");
- misfGridComboComCdList("Z0007",grd_acntnolist,"dutplceinst");
- misfGridComboComCdList("R0242",grd_acntnolist,"bankcd");
- misfComboComCdList('R0151', cmb_trngflag,'Y');
- misfComboComCdList('R0242', cmb_bankcd,'Y');
- misfComboComCdList('R0146', cmb_preststatcd,'Y');
- misfComboComCdList('R0234', cmb_dutdeptcd,'Y');
- misfComboComCdList('R0281', cmb_anual,'Y');
-
- addComboItem( "cmb_instcd", "가톨릭중앙의료원", "001", "above");
- addComboItem( "cmb_instcd", "전체", "", "above");
-
- model.setValue("/root/send/preststatcd", "01");
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled =!checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
- //콤보에 공통코드 Setting
- /*
- pcdgrupid : 공통코드군
- pcontrol_name : Data를 받을 Control
- */
- function rthfComboComCdList(pcdgrupid, pcontrol_name,pall) {
- var control_id = pcontrol_name.attribute("id");
-
- var comcd_node = "/root/send/comcdref";
- var comcd_rsltnode = "/root/init/comcd";
- var comcd_itemset = "/root/init/" + control_id;
-
- model.removeNodeset(comcd_node);
- model.removeNodeset(comcd_itemset);
-
- model.makeNode(comcd_node);
- model.makeNode(comcd_node + "/cdgrupid");
- model.makeNode(comcd_node + "/cdid");
- model.makeNode(comcd_node + "/cdnm");
- model.makeNode(comcd_node + "/refcond");
-
- model.makeNode(comcd_rsltnode);
- model.makeNode(comcd_itemset);
-
- pcontrol_name.choices.itemset.attribute("nodeset") = comcd_itemset+"/comcodelist";
- pcontrol_name.choices.itemset.label.attribute("ref") = "detldesc";
- pcontrol_name.choices.itemset.value.attribute("ref") = "cdid";
- pcontrol_name.refresh();
-
- model.setValue(comcd_node + "/cdgrupid", pcdgrupid);
- model.setValue(comcd_node + "/cdid","%");
- model.setValue(comcd_node + "/cdnm","%");
-
- model.removeChild("TRRPZ00301");
- model.createChild("xforms:submission", "id:TRRPZ00301;mediatype:application/x-www-form-urlencoded; method:post; ref:" + comcd_node + "; resultref:" + comcd_rsltnode + "; ");
- submit("TRRPZ00301");
-
- if(pall != null && pall == "Y")
- {
- /*
- model.makeValue(comcd_itemset+"/comcodelist[" +1+ "]/cdnm", "전체");
- model.makeValue(comcd_itemset+"/comcodelist[" +1+ "]/cdid", "");
-
- sourcenode = document.models(0).instances(0).selectSingleNode(comcd_rsltnode);
- tarnode = document.models(0).instances(0).selectSingleNode(comcd_itemset);
-
- var sourcenodelist = sourcenode.childNodes;
- while (childNode = sourcenodelist.nextNode())tarnode.appendChild(childNode);
- */
- model.makeValue(comcd_itemset+"/comcodelist[" +1+ "]/detldesc", "전체");
- model.makeValue(comcd_itemset+"/comcodelist[" +1+ "]/cdid", "");
-
- sourcenode = document.models(0).instances(0).selectSingleNode(comcd_rsltnode);
- tarnode = document.models(0).instances(0).selectSingleNode(comcd_itemset);
-
- cnt = 1;
- var sourcenodelist = sourcenode.childNodes;
- while (childNode = sourcenodelist.nextNode())
- {
- model.makeValue(comcd_itemset+"/comcodelist[" +(cnt + 1)+ "]/detldesc", childNode.getXPathString(comcd_rsltnode + "/comcodelist[" +cnt + "]/detldesc"));
- model.makeValue(comcd_itemset+"/comcodelist[" +(cnt + 1)+ "]/cdid", childNode.getXPathString(comcd_rsltnode + "/comcodelist[" +cnt + "]/cdid"));
- cnt++;
- }
-
- }
- else model.copyNode(comcd_itemset,comcd_rsltnode);
-
- model.refresh();
-
- //if(pcontrol_name.length == 1) pcontrol_name.selectedindex= 0;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">전공의 계좌 관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <datagrid id="grd_acntnolist" nodeset="/root/main/acntnolist" caption="이 름^사원번호^소속기관^근무기관^근무부서^전공과^구 분^년 차^은행^계좌번호" colsep="^" colwidth="80, 80, 120, 120, 120, 100, 100, 100, 100, 200" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:125px; width:1195px; height:609px; ">
- <col ref="name" type="output"/>
- <col ref="emplno" type="output"/>
- <col ref="instcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="dutplceinst" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="dutdeptcd"/>
- <col ref="frmrmertnm"/>
- <col ref="prfshipflag" type="output"/>
- <col ref="anual" type="output"/>
- <col ref="bankcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="acntno" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_acntnolist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group6" style="left:0px; top:10px; width:1195px; height:89px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:89px; "/>
- <caption id="cap_name" class="search_name" style="left:15px; top:9px; width:85px; height:17px; ">이 름 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:36; width:100; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_emplno" class="search_name" style="left:250px; top:9px; width:86px; height:17px; ">사원번호 :</caption>
- <select1 id="cmb_dutplceinst" ref="/root/send/dutplceinst" class="combo_s_essential" appearance="minimal" style="left:335px; top:36px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_dutdeptcd" class="search_name" style="left:465px; top:35px; width:86px; height:17px; ">근무부서 :</caption>
- <caption id="cap_prfshipflag" class="search_name" style="left:705px; top:35px; width:85px; height:17px; ">구 분 :</caption>
- <select1 id="cmb_dutdeptcd" ref="/root/send/dutdeptcd" class="combo_s_essential" appearance="minimal" style="left:550px; top:36px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_trngflag" ref="/root/send/prfshipflag" class="combo_s_essential" appearance="minimal" style="left:790px; top:36px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_name" ref="/root/send/name" class="input_default" style="left:100px; top:10px; width:100; height:19px; "/>
- <caption id="cap_drlino" class="search_name" style="left:465px; top:9px; width:86px; height:17px; ">면허번호 :</caption>
- <caption id="preststatcd" class="search_name" style="left:705px; top:9px; width:83px; height:17px; ">현 상 태 :</caption>
- <select1 id="cmb_preststatcd" ref="/root/send/preststatcd" class="combo_s_essential" appearance="minimal" style="left:790px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_drlino" class="input_default" style="left:550px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_emplno" ref="/root/send/emplno" class="input_default" style="left:335px; top:10px; width:100px; height:19px; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:35; width:86px; height:17px; ">소속기관 :</caption>
- <caption id="cap_dutplceinst" class="search_name" style="left:250px; top:35px; width:86px; height:17px; ">근무기관 :</caption>
- <caption id="cap_anual" class="search_name" style="left:705px; top:61px; width:85px; height:17px; ">년 차 :</caption>
- <select1 id="cmb_anual" ref="/root/send/anual" class="combo_s_essential" appearance="minimal" style="left:790px; top:62px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_bankcd" class="search_name" style="left:15px; top:61px; width:86px; height:17px; ">은행코드 :</caption>
- <select1 id="cmb_bankcd" ref="/root/send/bankcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:62px; width:100; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_acntno" class="search_name" style="left:250px; top:61px; width:86px; height:17px; ">계좌번호 :</caption>
- <input id="ipt_acntno" ref="/root/send/acntno" class="input_default" style="left:335px; top:62px; width:315px; height:19px; "/>
- <line id="line14" class="line_4" style="x1:1108px; y1:9px; x2:1108px; y2:76px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1123px; top:31px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // submit("TRRTH00501");
- var updtdata = getGridUpdateData(grd_acntnolist);
-
- //기관코드 값 체크
- if ( updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- misfMsterDetailRetrieve();
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <line id="line19" class="line_1" style="x1:0px; y1:120px; x2:1195px; y2:120px; "/>
- <button id="btn_save" class="btn5_letter2" style="left:1150px; top:100px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var updtdata = getGridUpdateData(grd_acntnolist);
-
- //기관코드 값 체크
- if ( updtdata == "")
- {
- messageBox("그리드에 수정된 데이터가 ","I004");
- return;
- }
-
- misfSave("TXRTH00501");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excelsave" class="btn2_letter4" style="left:1085px; top:100px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_acntnolist.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|