1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198 |
- <?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>
- <gridrcptlist>
- <gridrcpt>
- <rcptitemflag/>
- <rcptdd/>
- <rcptamt/>
- <amtunit/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <boneassocd/>
- </gridrcpt>
- </gridrcptlist>
- <rcptdetl>
- <rcptdetl>
- <rcptdd/>
- <rcptamt/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <exeflag/>
- <rcptitemflag/>
- <amtunit/>
- </rcptdetl>
- <ctcharge>
- <rcptdd/>
- <rcptamt/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <exeflag/>
- <rcptitemflag/>
- <rcptitemflagseq/>
- <pid/>
- <boneassocd/>
- <rgstseq/>
- <amtunit/>
- </ctcharge>
- </rcptdetl>
- <rcptinfo>
- <rgstseq/>
- <trnptflag/>
- <boneassocd/>
- <pid/>
- </rcptinfo>
- <rgstseq>
- <rgstseq>
- <cd/>
- <nm/>
- </rgstseq>
- </rgstseq>
- <ctcharge>
- <ctcharge>
- <rcptdd/>
- <rcptamt/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <exeflag/>
- <rcptitemflagseq/>
- <pid/>
- <boneassocd/>
- </ctcharge>
- </ctcharge>
- <hsctinfo>
- <patinfolist>
- <hngnm/>
- <rrgstno1/>
- <age/>
- <sex/>
- <pid/>
- <rrgstno2/>
- </patinfolist>
- </hsctinfo>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <age/>
- <sex/>
- <pid/>
- <rrgstno2/>
- </patinfolist>
- </patinfo>
- <trnptdg/>
- <popupendflag/>
- <defaultassocd>
- <boneassocd/>
- </defaultassocd>
- </main>
- <send>
- <rcptinfo>
- <pid/>
- <trnptflag/>
- <boneassocd/>
- <rgstseq/>
- <exeflag/>
- <ctcharge/>
- <rcptlist/>
- <trnptall/>
- </rcptinfo>
- <data>
- <rcptdetl/>
- </data>
- <req>
- <pid/>
- </req>
- <lrggrupcd/>
- <hsctlrgcd/>
- </send>
- <init>
- <cmbinfo>
- <boneassocd>
- <A0164>
- <cdid/>
- <cdnm/>
- </A0164>
- <A0165>
- <cdid/>
- <cdnm/>
- </A0165>
- </boneassocd>
- <monetaryunit>
- <A0546>
- <cdid/>
- <cdnm/>
- </A0546>
- </monetaryunit>
- </cmbinfo>
- </init>
- <temp>
- <rcptbase>
- <boneassocdlist>
- <item/>
- </boneassocdlist>
- </rcptbase>
- <trnptrcpt>
- <fomalsearch>
- <rcptdetl>
- <rcptdd/>
- <rcptamt/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <exeflag/>
- <rcptitemflag/>
- <amtunit/>
- </rcptdetl>
- </fomalsearch>
- <bcolltrans>
- <rcptdetl>
- <rcptdd/>
- <rcptamt/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <exeflag/>
- <rcptitemflag/>
- <amtunit/>
- </rcptdetl>
- </bcolltrans>
- <familytalk>
- <rcptdetl>
- <rcptdd/>
- <rcptamt/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <exeflag/>
- <rcptitemflag/>
- <amtunit/>
- </rcptdetl>
- </familytalk>
- <marrow>
- <rcptdetl>
- <rcptdd/>
- <rcptamt/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <exeflag/>
- <rcptitemflag>
- </rcptitemflag>
- <amtunit/>
- </rcptdetl>
- </marrow>
- <airplane>
- <rcptdetl>
- <rcptdd/>
- <rcptamt/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <exeflag/>
- <rcptitemflag/>
- <amtunit/>
- </rcptdetl>
- </airplane>
- <transmoney>
- <rcptdetl>
- <rcptdd/>
- <rcptamt/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <exeflag/>
- <rcptitemflag/>
- <amtunit/>
- </rcptdetl>
- </transmoney>
- <repayment>
- <rcptdetl>
- <rcptdd/>
- <rcptamt/>
- <emityn/>
- <rtnyn/>
- <rtnamt/>
- <exeflag/>
- <rcptitemflag/>
- <amtunit/>
- </rcptdetl>
- </repayment>
- </trnptrcpt>
- <rcptddform>
- <fomalsearch/>
- <bcolltrans/>
- <familytalk/>
- <marrow/>
- <airplane/>
- <transmoney/>
- <repayment/>
- </rcptddform>
- <bmtpatientinfo/>
- <mdllist>
- <item>
- <hsctmdlcd/>
- <hsctmdlnm/>
- </item>
- </mdllist>
- <tempcodeinfo/>
- <tempcodeinfo2/>
- </temp>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
-
- //콤보 박스 코드 세팅(환단위 코드)
- //zbcfGetCodeList( new Array("A0546"), new Array("/root/init/cmbinfo/monetaryunit/A0546"));
-
- //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
- aboGetCodeList(new Array("A0546"), new Array("/root/init/cmbinfo/monetaryunit/A0546"));
- abofGetBmtCode("CC", "A0164", "/root/init/cmbinfo/boneassocd/A0164", "cdid", "cdnm");
- abofGetBmtCode("CC", "A0165", "/root/init/cmbinfo/boneassocd/A0165", "cdid", "cdnm");
-
- //--------------------------------환자 세팅 Strat!!----------------------------
- model.setFocus("ipt_pid");
- if ( checkOpener()) {
-
-
- var param = opener.javascript.getParameter("opener_parameter_id");
- if(param != "") // opener parameter value가 있는 경우
- {
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/main/hsctinfo/patinfolist/pid", condarray[0]);
- model.setValue("/root/main/rcptinfo/trnptflag", condarray[1]);
- model.setValue("/root/main/rcptinfo/boneassocd", condarray[2]);
-
- model.setValue("/root/send/req/pid",model.getValue( "/root/main/hsctinfo/patinfolist/pid"));
- submit("TRABO00001");
- fSetAssocd();
- return;
- }
- }
-
- // Opener에서 받은 파라미터가 없으면 Top 정보를 참조한다.
- var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
- if ( paminfo != "" ) {
- model.removeNodeset("/root/temp/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
- model.makeNode("/root/temp/paminfo");
- setCSVToNode("/root/temp/paminfo", paminfo);
- //상단 정보를 이용하여 프로그램 수행
- var pid = model.getValue("/root/temp/paminfo" + "/list/pid");
- model.setValue("/root/main/hsctinfo/patinfolist/pid", pid);
- fSetAssocd();
-
- } else {
- //세션에 저장된 PID정보를 가져옴.
- var gv_pid = getGlobalVariable("gv_pid", "A");
- if(gv_pid != "") {
- model.setValue("/root/main/hsctinfo/patinfolist/pid", gv_pid);
- fSetAssocd();
- }
- }
-
-
-
- model.setValue("/root/send/req/pid",model.getValue( "/root/main/hsctinfo/patinfolist/pid"));
- submit("TRABO00001");
- //--------------------------------환자 세팅 End!!----------------------------
-
- //넘어온 이식구분 값이 존재하지 않으면 디폴트로 UBMT
- if(model.getValue("/root/main/rcptinfo/trnptflag") == ""){
- rdo_trnptflag.select(0);
- }
-
-
- //타부서에서는 버튼 비활성화
- btn_save.disabled = !checkAuth("X");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
- <script type="javascript" src="../js/AEA0001.js"/>
- <submission id="TRABO00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/hsctinfo"/>
- <submission id="TRABO61001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rcptinfo" replace="instance" resultref="/root/main/rgstseq"/>
- <submission id="TRABO61002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rcptinfo" replace="instance" resultref="/root/main/rcptdetl"/>
- <submission id="TRABO61003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rcptinfo" replace="instance" resultref="/root/main/gridrcptlist"/>
- <submission id="TRABO61004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rcptinfo" replace="instance" resultref="/root/main/defaultassocd"/>
- <submission id="TXABO61001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rcptinfo" resultref="/root/temp/rgstseqlist"/>
- <submission id="TRABO02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/mdllist"/>
- <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
- <script type="javascript">
- <![CDATA[
- /* @group : 골수은행수납내역
- * @ver : 2008.08.05
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc : UBMT/CORD 값에 따라 협회 콤보박스의 목록을 세팅하고, 등록순번을 새로 불러온다.
- * @param :
- */
- function fSetAssocd(){
- fDeleteItem(); //각 폼의 값을 지우는 function
-
- if(model.getValue("/root/main/rcptinfo/trnptflag") == ""){
- model.setValue("/root/main/rcptinfo/trnptflag", "U");
- }
-
- //초기값 send 세팅
- model.setValue("/root/send/rcptinfo/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- model.setValue("/root/send/rcptinfo/trnptflag", model.getValue("/root/main/rcptinfo/trnptflag"));
- model.setValue("/root/send/rcptinfo/boneassocd", model.getValue("/root/main/rcptinfo/boneassocd"));
-
-
- //UBMT의 경우 (UBMT 협회코드 : A0164)
- if(model.getValue("/root/main/rcptinfo/trnptflag") == "U"){
- copyNodesetType("/root/temp/rcptbase/boneassocdlist/item", "/root/init/cmbinfo/boneassocd/A0164", "replace");
- }
- //CORD의 경우 (CORD 협회코드 : A0165)
- else{
- copyNodesetType("/root/temp/rcptbase/boneassocdlist/item", "/root/init/cmbinfo/boneassocd/A0165", "replace");
- }
-
- //환자의 수납 내역이 있을 경우 해당 협회를 디폴트로 보여준다.
- submit("TRABO61004");
- if(model.getValue("/root/main/defaultassocd/boneassocd") != ""){
- model.setValue("/root/main/rcptinfo/boneassocd", model.getValue("/root/main/defaultassocd/boneassocd"));
- model.setValue("/root/send/rcptinfo/boneassocd", model.getValue("/root/main/rcptinfo/boneassocd"));
- }
-
- // 협회코드 없으면 진행불가
- if(model.getValue("/root/send/rcptinfo/boneassocd")){
- fSetRgstSeq(); //등록순번 세팅 function
- }
-
- submit("TRABO61003"); //수납 이력 그리드 조회
- }
-
-
-
-
- /* @group : 골수은행수납내역
- * @ver : 2008.08.05
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc : 이식 차수를 신규 생성한다.
- * @param :
- */
- function fCreatRgstSeq(){
-
- if(model.getValue("/root/main/rcptinfo/boneassocd") == "") return;
-
- //등록 순번 노드의 가장 마지막 데이터(가장 큰값)을 가져와 1을 더한다.
- var NodeCount = parseInt(getNodesetCount("/root/main/rgstseq/rgstseq"));
- var i = model.getValue("/root/main/rgstseq/rgstseq[" + NodeCount + "]/cd");
- i++;
-
- // 이식차수 생성여부를 확인한다.
- if ( messageBox(opt_hngnm.value + " 환자의 " + i + "차 수납내역을 생성합니다.", "Q004") == 6 ) {
- fDeleteItem(); //각 폼의 값을 지우는 function
- model.makeValue ( "/root/main/rgstseq/rgstseq["+ i +"]/cd", i);
- model.makeValue ( "/root/main/rgstseq/rgstseq["+ i +"]/nm", i + "차");
-
- model.refresh();
- cmb_rgstseq.select(NodeCount); //신규 생성된 순번을 콤보박스가 자동 선택
- }
- }
-
- /* @group : 골수은행수납내역
- * @ver : 2008.08.05
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc : 해당 환자의 해당 협회에 대해 생성된 등록순번을 조회하여 가장 최근 순번을 자동 선택
- * @param :
- */
- function fSetRgstSeq(){
- fDeleteItem(); //각 폼의 값을 지우는 function
- submit("TRABO61001");
-
- var nodelist = root.selectNodes("root/main/rgstseq/rgstseq/cd");
- //조회 결과가 존재하면 등록순번 노드 리스트의 가장 마지막 노드를 선택(등록순번은 오름차순으로 조회됨)
- if(nodelist.length > 0){
- if(model.getValue("/root/main/rcptinfo/rgstseq") == model.getValue("root/main/rgstseq/rgstseq[" + nodelist.length +"]/cd")){
- fSetRcptData();
- }
- cmb_rgstseq.select(nodelist.length-1);
- }
- else{
- fCreatRgstSeq(); //새로운 등록순번을 생성하기 위한 function
- }
- }
-
-
-
- /* @group : 골수은행수납내역
- * @ver : 2008.08.05
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc : 조회한 데이터를 그리드에 담은 후, 알맞은 폼 위치에 세팅한다.
- * @param :
- */
- function fSetRcptData(){
- //각 폼의 값을 지운다.
- fDeleteItem();
-
- //조회 조건을 세팅
- model.setValue("/root/send/rcptinfo/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- model.setValue("/root/send/rcptinfo/trnptflag", model.getValue("/root/main/rcptinfo/trnptflag"));
- model.setValue("/root/send/rcptinfo/boneassocd", model.getValue("/root/main/rcptinfo/boneassocd"));
- model.setValue("/root/send/rcptinfo/rgstseq", model.getValue("/root/main/rcptinfo/rgstseq"));
-
- submit("TRABO61002"); //수납 내역 조회
-
-
- //-----------------------------------------------------------------------------
- //조회한 데이터의 rcptitemflag에 따라 각 항목의 노드에 세팅
- var rcptitemflag = "";
-
- for(iRow=1; iRow< grd_saved.rows; iRow++){
- rcptitemflag = model.getValue("/root/main/rcptdetl/rcptdetl[" + iRow + "]/rcptitemflag");
- if(rcptitemflag == "1"){ // rcptitemflag(수납항목)이 1이면 fomalsearch
- copyNodeListType("/root/temp/trnptrcpt/fomalsearch" , "/root/main/rcptdetl/rcptdetl[rcptitemflag='1']", "replace");
- //CSV 멀티 업데이트 시 데이터 타입의 폼이 null값이면 충돌이 일어나는 문제를 막기위해 따로 생성한 노드
- model.setValue("/root/temp/rcptddform/fomalsearch" , model.getValue("/root/temp/trnptrcpt/fomalsearch/rcptdetl/rcptdd"));
- }else if(rcptitemflag == "2"){ // rcptitemflag(수납항목)이 2이면 bcolltrans (혈액채취, 운송)
- copyNodeListType("/root/temp/trnptrcpt/bcolltrans" , "/root/main/rcptdetl/rcptdetl[rcptitemflag='2']", "replace");
- model.setValue("/root/temp/rcptddform/bcolltrans" , model.getValue("/root/temp/trnptrcpt/bcolltrans/rcptdetl/rcptdd"));
- }else if(rcptitemflag == "4"){ // rcptitemflag(수납항목)이 4이면 familytalk (가족면담비)
- copyNodeListType("/root/temp/trnptrcpt/familytalk" , "/root/main/rcptdetl/rcptdetl[rcptitemflag='4']", "replace");
- model.setValue("/root/temp/rcptddform/familytalk" , model.getValue("/root/temp/trnptrcpt/familytalk/rcptdetl/rcptdd"));
- }else if(rcptitemflag == "5"){ // rcptitemflag(수납항목)이 5이면 marrow (골수채취비용)
- copyNodeListType("/root/temp/trnptrcpt/marrow" , "/root/main/rcptdetl/rcptdetl[rcptitemflag='5']", "replace");
- model.setValue("/root/temp/rcptddform/marrow" , model.getValue("/root/temp/trnptrcpt/marrow/rcptdetl/rcptdd"));
- }else if(rcptitemflag == "6"){ // rcptitemflag(수납항목)이 6이면 airplane (항공료(입금))
- copyNodeListType("/root/temp/trnptrcpt/airplane" , "/root/main/rcptdetl/rcptdetl[rcptitemflag='6']", "replace");
- model.setValue("/root/temp/rcptddform/airplane" , model.getValue("/root/temp/trnptrcpt/airplane/rcptdetl/rcptdd"));
- }else if(rcptitemflag == "7"){ // rcptitemflag(수납항목)이 7이면 transmoney (운송료(처방))
- copyNodeListType("/root/temp/trnptrcpt/transmoney" , "/root/main/rcptdetl/rcptdetl[rcptitemflag='7']", "replace");
- model.setValue("/root/temp/rcptddform/transmoney" , model.getValue("/root/temp/trnptrcpt/transmoney/rcptdetl/rcptdd"));
- }else if(rcptitemflag == "8"){ // rcptitemflag(수납항목)이 8이면 repayment (환불요청일,금액)
- copyNodeListType("/root/temp/trnptrcpt/repayment" , "/root/main/rcptdetl/rcptdetl[rcptitemflag='8']", "replace");
- model.setValue("/root/temp/rcptddform/repayment" , model.getValue("/root/temp/trnptrcpt/repayment/rcptdetl/rcptdd"));
- }
- }
- model.refresh();
- }
-
-
-
- /* @group : 골수은행수납내역
- * @ver : 2008.08.05
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc : 각 항목의 폼 데이터와 조회된 그리드 데이터를 체크하여 INSERT, UPDATE 발생 시
- : 플래그 생성 후, 해당 노드를 "root/send/data/rcptdetl" 노드 리스트에 카피한다.
- * @param : Ref - grd_saved그리드에 조회해온 데이터의 위치
- : rowCnt - 카피한 노드를 담을 "root/send/data/rcptdetl" 노드 내의 위치
- : rcptitemflag - 항목 코드
- */
- function fCheckValue(Ref, rowCnt, rcptitemflag){
-
- var rcptdd = model.getValue("/root/temp/rcptddform/"+Ref);
- var rcptamt = model.getValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/rcptamt");
- var emityn = model.getValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/emityn");
- var rtnyn = model.getValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/rtnyn");
- var rtnamt = model.getValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/rtnamt");
- var amtunit = model.getValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/amtunit");
-
- var rcptddFind = "";
- var rcptamtFind = "";
- var emitynFind = "";
- var rtnynFind = "";
- var rtnamtFind = "";
- var amtunitFind = "";
-
-
- var findRow = grd_saved.findRow(rcptitemflag, 1, parseInt(grd_saved.colRef("rcptitemflag")), true, true);
-
- //----------------------------------------------------------------------------
- //findRow > 0 : 조회해온 내역이 있을때.. findRow의 결과 값이 해당 로우 위치
- if(findRow > 0){
-
- rcptddFind = grd_saved.findRow(rcptdd , parseInt(findRow), parseInt(grd_saved.colRef("rcptdd")), true, true);
- rcptamtFind = grd_saved.findRow(rcptamt, parseInt(findRow), parseInt(grd_saved.colRef("rcptamt")), true, true);
- emitynFind = grd_saved.findRow(emityn , parseInt(findRow), parseInt(grd_saved.colRef("emityn")), true, true);
- rtnynFind = grd_saved.findRow(rtnyn , parseInt(findRow), parseInt(grd_saved.colRef("rtnyn")), true, true);
- rtnamtFind = grd_saved.findRow(rtnamt , parseInt(findRow), parseInt(grd_saved.colRef("rtnamt")), true, true);
- amtunitFind = grd_saved.findRow(amtunit, parseInt(findRow), parseInt(grd_saved.colRef("amtunit")), true, true);
- //플래그가 d이고 폼에 값이 입력되어 있지 않은 경우, 해당 노드를 카피
- if( model.getValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/exeflag") == "d"){
- model.makeNode("/root/send/data/rcptdetl["+rowCnt+"]");
- copyNodeType("/root/send/data/rcptdetl["+rowCnt+"]", "/root/temp/trnptrcpt/" + Ref + "/rcptdetl", "replace");
- rowCnt++;
- }
-
- //수정한 내역이 하나라도 존재 한다면 상태 플래그는 업데이트 처리 후 노드 카피
- else if(rcptddFind < 0 || rcptamtFind < 0 || emitynFind < 0 || rtnynFind < 0 || rtnamtFind < 0 || amtunitFind < 0){
- if(fRcptddFormCheck(Ref) == 1){
- model.setValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/exeflag", "u");
- model.setValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/rcptdd" , model.getValue("/root/temp/rcptddform/"+Ref));
- model.makeNode("/root/send/data/rcptdetl["+rowCnt+"]");
- copyNodeType("/root/send/data/rcptdetl["+rowCnt+"]", "/root/temp/trnptrcpt/" + Ref + "/rcptdetl", "replace");
- rowCnt++;
- }
- }
- //조회해온 내역이 없으면서 폼에 값이 하나라도 입력되어 있으면 플래그는 insert 처리 후 노드 카피
- }else if(findRow < 0 ){
- if(rcptdd != "" || rcptamt != "" || emityn != "" || rtnyn != "" || rtnamt != "" || amtunit != ""){
- if(fRcptddFormCheck(Ref) == 1){
- model.setValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/exeflag", "i");
- model.setValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/rcptitemflag", rcptitemflag);
- model.setValue("/root/temp/trnptrcpt/"+Ref+"/rcptdetl/rcptdd" , model.getValue("/root/temp/rcptddform/"+Ref));
- model.makeNode("/root/send/data/rcptdetl["+rowCnt+"]/");
- copyNodeType("/root/send/data/rcptdetl["+rowCnt+"]", "/root/temp/trnptrcpt/" + Ref + "/rcptdetl", "replace");
- rowCnt++;
- }
- }
- }
- return rowCnt;
-
- }
-
-
-
- /* @group : 골수은행수납내역
- * @ver : 2008.08.05
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc : 각 항목의 폼 데이터와 조회된 그리드 데이터를 체크하여 INSERT, UPDATE 발생 시
- 플래그 생성 후, 해당 노드를 "root/send/data" 노드 리스트에 카피한다
- */
- function fSaveData(){
- var nodeName = "";
- var rowCnt = "";
- var rcptitemflag = "";
-
- //각 노드에 해당 항목의 명칭과 수납항목코드를 지정
- //nodeName : 각각 다른 명칭의 노드 위치한 폼데이터를 for문을 통해 가져오기 위해 필요
- //rcptitemflag : 각 항목의 삽입, 수정, 삭제할 때 그 항목의 코드값
- for(var iRow=1; iRow<=7 ; iRow++){
- if(iRow == 1){
- nodeName = "fomalsearch";
- rcptitemflag = "1";
- }else if(iRow == 2){
- nodeName = "bcolltrans";
- rcptitemflag = "2";
- }else if(iRow == 3){
- nodeName = "familytalk";
- rcptitemflag = "4";
- }else if(iRow == 4){
- nodeName = "marrow";
- rcptitemflag = "5";
- }else if(iRow == 5){
- nodeName = "airplane";
- rcptitemflag = "6";
- }else if(iRow == 6){
- nodeName = "transmoney";
- rcptitemflag = "7";
- }else if(iRow == 7){
- nodeName = "repayment";
- rcptitemflag = "8";
- }
-
- //---------------------------------------------------
- //인스턴스의 노드 생성해주기 위해.. 처음에는 1로 시작..
- if(iRow == 1){
- rowCnt = fCheckValue(nodeName, iRow, rcptitemflag);
- }else{
- rowCnt = fCheckValue(nodeName, rowCnt, rcptitemflag);
- }
-
- }
-
- //C/T charge 멀티 업데이트
- model.setValue("/root/send/rcptinfo/ctcharge", grd_ctcharge.getUpdateData());
- var nodeList = instance1.selectNodes("/root/send/data/rcptdetl");
-
- //rcptdetl 역시 멀티 업데이트와 같은 형식으로 세팅
- var rCSV = getNodeListCSV(nodeList);
- model.setValue("/root/send/rcptinfo/rcptlist", rCSV);
- submit("TXABO61001");
-
- //수행 후 send 노드에 담신 데이터를 리셋시킨다.
- model.resetInstanceNode("/root/send/data/rcptdetl");
- model.resetInstanceNode("/root/send/rcptinfo/rcptlist");
-
- fSetRcptData(); //데이터 재조회
- }
-
-
- /* @group : 골수은행수납내역
- * @ver : 2008.08.05
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc : 삭제 버튼을 누르면 해당 항목의 노드의 플래그를 삭제 처리 후 각 폼들의 값을 지운다.
- * @param : itemNode - 해당 항목의 노드명
- */
- function fSetRcptDel(itemNode){
- model.setValue("/root/temp/trnptrcpt/" + itemNode + "/rcptdetl/exeflag", "d");
-
- //하나의 수납항목에 속한 각각의 항목을 삭제함.
- model.setValue("/root/temp/rcptddform/" + itemNode, "");
- model.setValue("/root/temp/trnptrcpt/" + itemNode + "/rcptdetl/rcptamt", "");
- model.setValue("/root/temp/trnptrcpt/" + itemNode + "/rcptdetl/emityn", "");
- model.setValue("/root/temp/trnptrcpt/" + itemNode + "/rcptdetl/rtnyn", "");
- model.setValue("/root/temp/trnptrcpt/" + itemNode + "/rcptdetl/rtnamt", "");
- model.setValue("/root/temp/trnptrcpt/" + itemNode + "/rcptdetl/amtunit", "");
- model.refresh();
- }
-
-
-
- /* @group : 골수은행수납내역
- * @ver : 2008.08.05
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc : 순번에 대한 각 항목을 모두 reset시킨다
- */
- function fDeleteItem(){
- model.resetInstanceNode("/root/temp/trnptrcpt"); //모든 항목의 폼 데이터 리셋
- model.resetInstanceNode("/root/temp/rcptddform"); //복사한 수납일자 폼 리셋
- model.resetInstanceNode("/root/main/rcptdetl/rcptdetl");
- model.resetInstanceNode("/root/main/rcptdetl/ctcharge");
-
- }
-
-
-
- /* @group : 정보 전송 체크
- * @ver : 2008.08.12
- * @by : 김은지
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 저장 버튼 클릭시 등록번호를 기입하였는지 확인하는 function
- */
- function fRcptddFormCheck(nodeNm){
- if( model.getValue("/root/temp/rcptddform/" + nodeNm) == ""){
- messageBox("수납일자는", "I003", "");
- return 0;
- }
- return 1;
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,783;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">골수은행수납내역</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:50px; height:13px; font-family:돋움; vertical-align:middle; ">협회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:510px; y2:70px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <input id="ipt_pid" ref="/root/main/hsctinfo/patinfolist/pid" class="input_s_button" inputtype="button" maxlength="10" style="left:104px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //엔터를 치면 현재의 등록번호를 세팅하며 자동으로 조회
- if(event.keyCode == "13" ) {
- model.makeValue("/root/main/hsctinfo/patinfolist/pid", ipt_pid.currentText);
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- //협회 코드 초기화
- model.setValue("/root/main/rcptinfo/boneassocd", "");
-
- // bmtcommon.js, 환자정보를 얻는다.
- if ( abofGetBmtPatientSearch("/root/main/patinfo/patinfolist", "/root/temp/bmtpatientinfo", "P") ) {
- model.makeNode("/root/main/hsctinfo/patinfolist");
- model.copyNode("/root/main/hsctinfo/patinfolist", "/root/main/patinfo/patinfolist");
-
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <output id="opt_hngnm" ref="/root/main/hsctinfo/patinfolist/hngnm" class="output_search" style="left:293px; top:8px; width:80px; height:19px; "/>
- <output id="opt_rrgstno" ref="/root/main/hsctinfo/patinfolist/rrgstno1" class="output_search" style="left:376px; top:8px; width:110px; height:19px; "/>
- <output id="opt_sex" ref="/root/main/hsctinfo/patinfolist/age" class="output_search" style="left:489px; top:8px; width:30px; height:19px; "/>
- <output id="opt_age" ref="/root/main/hsctinfo/patinfolist/sex" class="output_search" style="left:522px; top:8px; width:30px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //환자 조회 폼의 아이디와 현재 조회된 환자의 아이디가 다르면 환자 재조회.
- if(model.getValue("/root/send/req/pid") != model.getValue("/root/main/hsctinfo/patinfolist/pid")){
- model.setValue("/root/send/req/pid" , model.getValue( "/root/main/hsctinfo/patinfolist/pid"));
- submit("TRABO00001");
- }
- fSetAssocd(); //협회코드세팅
- ]]>
- </script>
- </button>
- <select1 id="rdo_trnptflag" ref="/root/main/rcptinfo/trnptflag" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:585px; top:10px; width:130px; height:45px; border-style:none; ">
- <choices>
- <item>
- <label>UBMT</label>
- <value>U</value>
- </item>
- <item>
- <label>CORD</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //바뀐 trnptflag를 send에서 세팅하고, boneassocd의 value를 비운다.
- model.setValue("/root/send/rcptinfo/trnptflag", model.getValue("/root/main/rcptinfo/trnptflag"));
- model.setValue("/root/main/rcptinfo/boneassocd", "");
- fSetAssocd();
- ]]>
- </script>
- </select1>
- <caption id="cpt_patinfo" class="search_name" style="left:203px; top:10px; width:86px; height:17px; ">환자정보 :</caption>
- <select id="checkbox1" ref="/root/send/rcptinfo/trnptall" overflow="visible" appearance="full" style="left:740px; top:10px; width:110px; height:20px; text-align:center; border-style:none; ">
- <choices>
- <item>
- <label>전체조회</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRABO61003");
- ]]>
- </script>
- </select>
- </group>
- <input id="ipt_rcptdd1" ref="/root/temp/rcptddform/fomalsearch" class="input_default" inputtype="date" style="left:123px; top:100px; width:90px; height:19px; "/>
- <input id="ipt_recptamt1" ref="/root/temp/trnptrcpt/fomalsearch/rcptdetl/rcptamt" class="input_default" format="#,###" style="left:217px; top:100px; width:70px; height:19px; text-align:right; "/>
- <select1 id="cmb_fomalsearch" ref="/root/temp/trnptrcpt/fomalsearch/rcptdetl/amtunit" class="combo_default" appearance="minimal" style="left:291px; top:100px; width:43px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/monetaryunit/A0546/A0546">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_rcptdd2" ref="/root/temp/rcptddform/bcolltrans" class="input_default" inputtype="date" style="left:123px; top:124px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(model.getValue("/root/temp/trnptrcpt/fomalsearch/rcptdetl/amtunit") != ""){
- model.setValue("/root/temp/trnptrcpt/bcolltrans/rcptdetl/amtunit" ,model.getValue("/root/temp/trnptrcpt/fomalsearch/rcptdetl/amtunit"));
- }
- ]]>
- </script>
- </input>
- <input id="ipt_recptamt2" ref="/root/temp/trnptrcpt/bcolltrans/rcptdetl/rcptamt" class="input_default" format="#,###" style="left:217px; top:124px; width:70px; height:19px; text-align:right; "/>
- <select1 id="cmb_bcolltrans" ref="/root/temp/trnptrcpt/bcolltrans/rcptdetl/amtunit" class="combo_default" appearance="minimal" style="left:291px; top:124px; width:43px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/monetaryunit/A0546/A0546">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_recptamt3" ref="/root/temp/trnptrcpt/bcolltrans/rcptdetl/rtnamt" class="input_default" format="#,###" style="left:441px; top:124px; width:70px; height:19px; text-align:right; "/>
- <datagrid id="grd_ctcharge" nodeset="/root/main/rcptdetl/ctcharge" caption="송금일자^송금금액^단위^송금^환불^환불금액^^^^^^" colsep="^" colwidth="95, 75, 50, 40, 40, 75, 0, 0, 0, 0, 0, 0,0" dataheight="23" defaultrows="0" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:123px; top:171px; width:387px; height:112px; text-align:center; ">
- <col ref="rcptdd" type="inputdate"/>
- <col ref="rcptamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="amtunit" type="combo" itemwidth="45" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/monetaryunit/A0546/A0546">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="emityn" type="checkbox"/>
- <col type="checkbox" vvref="rtnyn"/>
- <col ref="rtnamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="rcptitemflag"/>
- <col ref="rcptitemflagseq"/>
- <col ref="pid"/>
- <col ref="boneassocd"/>
- <col ref="rgstseq"/>
- <col ref="amtunit"/>
- </datagrid>
- <input id="ipt_rcptdd4" ref="/root/temp/rcptddform/familytalk" class="input_default" inputtype="date" style="left:123px; top:287px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //이전 항목의 금액 단위가 설정되어 있으면 디폴트로 설정한다.
- if(model.getValue("/root/temp/trnptrcpt/bcolltrans/rcptdetl/amtunit") != ""){
- model.setValue("/root/temp/trnptrcpt/familytalk/rcptdetl/amtunit" ,model.getValue("/root/temp/trnptrcpt/bcolltrans/rcptdetl/amtunit"));
- }
- ]]>
- </script>
- </input>
- <input id="ipt_recptamt4" ref="/root/temp/trnptrcpt/familytalk/rcptdetl/rcptamt" class="input_default" format="#,###" style="left:217px; top:287px; width:70px; height:19px; text-align:right; "/>
- <select1 id="cmb_familytalk" ref="/root/temp/trnptrcpt/familytalk/rcptdetl/amtunit" class="combo_default" appearance="minimal" style="left:291px; top:287px; width:43px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/monetaryunit/A0546/A0546">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input18" ref="/root/temp/trnptrcpt/familytalk/rcptdetl/rtnamt" class="input_default" format="#,###" style="left:441px; top:287px; width:70px; height:19px; text-align:right; "/>
- <input id="ipt_rcptdd5" ref="/root/temp/rcptddform/marrow" class="input_default" inputtype="date" style="left:123px; top:311px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //이전 항목의 금액 단위가 설정되어 있으면 디폴트로 설정한다.
- if(model.getValue("/root/temp/trnptrcpt/familytalk/rcptdetl/amtunit") != ""){
- model.setValue("/root/temp/trnptrcpt/marrow/rcptdetl/amtunit" ,model.getValue("/root/temp/trnptrcpt/familytalk/rcptdetl/amtunit"));
- }
- ]]>
- </script>
- </input>
- <input id="ipt_recptamt5" ref="/root/temp/trnptrcpt/marrow/rcptdetl/rcptamt" class="input_default" format="#,###" style="left:217px; top:311px; width:70px; height:19px; text-align:right; "/>
- <select1 id="cmb_marrow" ref="/root/temp/trnptrcpt/marrow/rcptdetl/amtunit" class="combo_default" appearance="minimal" style="left:291px; top:311px; width:43px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/monetaryunit/A0546/A0546">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input19" ref="/root/temp/trnptrcpt/marrow/rcptdetl/rtnamt" class="input_default" format="#,###" style="left:441px; top:311px; width:70px; height:19px; text-align:right; "/>
- <input id="ipt_rcptdd6" ref="/root/temp/rcptddform/airplane" class="input_default" inputtype="date" style="left:123px; top:335px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //이전 항목의 금액 단위가 설정되어 있으면 디폴트로 설정한다.
- if(model.getValue("/root/temp/trnptrcpt/marrow/rcptdetl/amtunit") != ""){
- model.setValue("/root/temp/trnptrcpt/airplane/rcptdetl/amtunit" ,model.getValue("/root/temp/trnptrcpt/marrow/rcptdetl/amtunit"));
- }
- ]]>
- </script>
- </input>
- <input id="ipt_recptamt6" ref="/root/temp/trnptrcpt/airplane/rcptdetl/rcptamt" class="input_default" format="#,###" style="left:217px; top:335px; width:70px; height:19px; text-align:right; "/>
- <select1 id="cmb_airplane" ref="/root/temp/trnptrcpt/airplane/rcptdetl/amtunit" class="combo_default" appearance="minimal" style="left:290px; top:335px; width:43px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/monetaryunit/A0546/A0546">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input20" ref="/root/temp/trnptrcpt/airplane/rcptdetl/rtnamt" class="input_default" format="#,###" style="left:441px; top:335px; width:70px; height:19px; text-align:right; "/>
- <input id="ipt_rcptdd7" ref="/root/temp/rcptddform/transmoney" class="input_default" inputtype="date" style="left:123px; top:359px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //이전 항목의 금액 단위가 설정되어 있으면 디폴트로 설정한다.
- if(model.getValue("/root/temp/trnptrcpt/airplane/rcptdetl/amtunit") != ""){
- model.setValue("/root/temp/trnptrcpt/transmoney/rcptdetl/amtunit" ,model.getValue("/root/temp/trnptrcpt/airplane/rcptdetl/amtunit"));
- }
- ]]>
- </script>
- </input>
- <input id="ipt_recptamt7" ref="/root/temp/trnptrcpt/transmoney/rcptdetl/rcptamt" class="input_default" format="#,###" style="left:217px; top:359px; width:70px; height:19px; text-align:right; "/>
- <select1 id="cmb_transmoney" ref="/root/temp/trnptrcpt/transmoney/rcptdetl/amtunit" class="combo_default" appearance="minimal" style="left:290px; top:359px; width:43px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/monetaryunit/A0546/A0546">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input21" ref="/root/temp/trnptrcpt/transmoney/rcptdetl/rtnamt" class="input_default" format="#,###" style="left:441px; top:359px; width:70px; height:19px; text-align:right; "/>
- <input id="ipt_rcptdd8" ref="/root/temp/rcptddform/repayment" class="input_default" inputtype="date" style="left:123px; top:382px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //이전 항목의 금액 단위가 설정되어 있으면 디폴트로 설정한다.
- if(model.getValue("/root/temp/trnptrcpt/transmoney/rcptdetl/amtunit") != ""){
- model.setValue("/root/temp/trnptrcpt/repayment/rcptdetl/amtunit" ,model.getValue("/root/temp/trnptrcpt/transmoney/rcptdetl/amtunit"));
- }
- ]]>
- </script>
- </input>
- <input id="ipt_recptamt8" ref="/root/temp/trnptrcpt/repayment/rcptdetl/rcptamt" class="input_default" format="#,###" style="left:217px; top:382px; width:70px; height:19px; text-align:right; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:97px; x2:510px; y2:97px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:121px; x2:510px; y2:121px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:284px; x2:510px; y2:284px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:308px; x2:510px; y2:308px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:332px; x2:510px; y2:332px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:356px; x2:510px; y2:356px; "/>
- <caption id="caption12" class="tit_2" style="left:520px; top:55px; width:70px; height:13px; font-family:돋움; vertical-align:middle; ">수납이력</caption>
- <line id="line10" class="line_1" style="x1:515px; y1:70px; x2:1194px; y2:70px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:380px; x2:510px; y2:380px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:99px; width:120px; height:23px; vertical-align:middle; ">formal search</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:382px; width:120px; height:23px; vertical-align:middle; ">환불요청일,금액</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:123px; width:120px; height:23px; vertical-align:middle; ">혈액채취,운송</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:147px; width:120px; height:138px; vertical-align:middle; ">C/T</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:286px; width:120px; height:23px; vertical-align:middle; ">가족면담비</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:310px; width:120px; height:23px; vertical-align:middle; ">골수채취비용</caption>
- <caption id="caption16" class="cell_1" style="left:0px; top:75px; width:120px; height:23px; vertical-align:middle; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:334px; width:120px; height:23px; vertical-align:middle; ">항공료(입금)</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:358px; width:120px; height:23px; vertical-align:middle; ">운송비(처방)</caption>
- <caption id="caption13" class="cell_1" style="left:123px; top:75px; width:91px; height:23px; text-align:center; vertical-align:middle; ">수납일자</caption>
- <caption id="caption14" class="cell_1" style="left:217px; top:75px; width:72px; height:23px; text-align:center; vertical-align:middle; ">수납금액</caption>
- <caption id="caption15" class="cell_1" style="left:337px; top:75px; width:100px; height:23px; text-align:center; vertical-align:middle; ">상태</caption>
- <line id="line9" class="line_3" style="x1:0px; y1:404px; x2:510px; y2:404px; "/>
- <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fiilenm = "골수은행수납내역_(" + model.getValue("/root/send/rcptinfo/pid") + ")" + getCurrentDate();
-
- var fileName = window.fileDialog("save", ",", false, fiilenm, "xls", "Excel Files(*.xls)|*.*|All Files (*.*)|*.xls");
- if (fileName != "")
- {
- grd_rcpt.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:1085px; top:50px; width:42px; height:19px; ">
- <caption>출력</caption>
- </button>
- <caption id="caption17" class="cell_1" style="left:440px; top:75px; width:72px; height:23px; text-align:center; vertical-align:middle; ">환불금액</caption>
- <line id="line8" class="line_2" style="x1:0px; y1:145px; x2:510px; y2:145px; "/>
- <button id="btn_grddel" class="btn2_letter3" style="left:460px; top:150px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_ctcharge.deleteRow(grd_ctcharge.row);
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:403px; top:150px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_ctcharge.addRow();
- model.setValue("/root/main/rcptdetl/ctcharge[" + (grd_ctcharge.rows - 1) + "]/rcptitemflag" , "3"); //C/T의 rcptitemflag는 3
- model.makeValue("/root/main/rcptdetl/ctcharge[" + (grd_ctcharge.rows - 1) + "]/pid", model.getValue("/root/main/hsctinfo/patinfolist/pid"));
- model.makeValue("/root/main/rcptdetl/ctcharge[" + (grd_ctcharge.rows - 1) + "]/trnptflag", model.getValue("/root/main/rcptinfo/trnptflag"));
- model.makeValue("/root/main/rcptdetl/ctcharge[" + (grd_ctcharge.rows - 1) + "]/rgstseq", model.getValue("/root/main/rcptinfo/rgstseq"));
- model.makeValue("/root/main/rcptdetl/ctcharge[" + (grd_ctcharge.rows - 1) + "]/boneassocd", model.getValue("/root/main/rcptinfo/boneassocd"));
- grd_ctcharge.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_assocd" ref="/root/main/rcptinfo/boneassocd" class="combo_essential" appearance="minimal" style="left:60px; top:50px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/rcptbase/boneassocdlist/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/rcptinfo/boneassocd", model.getValue("/root/main/rcptinfo/boneassocd"));
- fSetRgstSeq(); //등록순번 세팅
- ]]>
- </script>
- </select1>
- <button id="btn_clear" class="btn4_letter3" style="left:384px; top:408px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.reset();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:454px; top:408px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/rcptinfo/boneassocd") == "") {
- messageBox("등록순번은", "I003");
- }
- else{
- fSaveData();
- submit("TRABO61003"); //수납 이력 그리드 조회
- }
- ]]>
- </script>
- </button>
- <caption id="caption9" class="tit_2" style="left:275px; top:55px; width:75px; height:13px; font-family:돋움; vertical-align:middle; ">등록순번</caption>
- <select1 id="cmb_rgstseq" ref="/root/main/rcptinfo/rgstseq" class="combo_essential" appearance="minimal" style="left:350px; top:50px; width:65px; height:19px; font-weight:bold; ">
- <choices>
- <itemset nodeset="/root/main/rgstseq/rgstseq">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/rcptinfo/rgstseq", model.getValue("/root/main/rcptinfo/rgstseq"));
- fDeleteItem();
- fSetRcptData();
- ]]>
- </script>
- </select1>
- <button id="btn_rgstseq" class="btn2_letter6" style="left:425px; top:50px; width:86px; height:19px; ">
- <caption>등록순번생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/rcptinfo/boneassocd") == ""){
- messageBox("협회를 선택하여 주십시오.", "I");
- }
- fCreatRgstSeq();
- ]]>
- </script>
- </button>
- <datagrid id="grd_saved" nodeset="/root/main/rcptdetl/rcptdetl" visibility="hidden" caption="rcptitemflag^rcptdd^rcptamt^emityn^rtnyn^rtnamt^exeflag^amtunit" colsep="^" colwidth="77, 72, 95, 40, 30, 64, 66, 30" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:450px; width:495px; height:100px; ">
- <col ref="rcptdd"/>
- <col ref="rcptamt"/>
- <col ref="emityn"/>
- <col ref="rtnyn"/>
- <col ref="rtnamt"/>
- <col ref="exeflag"/>
- <col ref="rcptitemflag"/>
- <col ref="amtunit"/>
- </datagrid>
- <button id="bnt_repayment" class="icon_eraser" style="left:97px; top:382px; width:23px; height:23px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRcptDel("repayment");
- ipt_rcptdd8.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[해당 항목의 수납내역을 삭제할 때 사용]]>
- </hint>
- </button>
- <button id="bnt_transmoney" class="icon_eraser" style="left:97px; top:357px; width:23px; height:23px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRcptDel("transmoney");
- ipt_rcptdd7.refresh();
-
- ]]>
- </script>
- <hint>
- <![CDATA[해당 항목의 수납내역을 삭제할 때 사용]]>
- </hint>
- </button>
- <button id="bnt_airplane" class="icon_eraser" style="left:97px; top:333px; width:23px; height:23px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRcptDel("airplane");
- ipt_rcptdd6.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[해당 항목의 수납내역을 삭제할 때 사용]]>
- </hint>
- </button>
- <button id="bnt_marrow" class="icon_eraser" style="left:97px; top:309px; width:23px; height:23px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRcptDel("marrow");
- ipt_rcptdd5.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[해당 항목의 수납내역을 삭제할 때 사용]]>
- </hint>
- </button>
- <button id="bnt_familytalk" class="icon_eraser" style="left:97px; top:284px; width:23px; height:23px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRcptDel("familytalk");
- ipt_rcptdd4.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[해당 항목의 수납내역을 삭제할 때 사용]]>
- </hint>
- </button>
- <button id="bnt_bcolltrans" class="icon_eraser" style="left:97px; top:124px; width:23px; height:23px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRcptDel("bcolltrans");
- ipt_rcptdd2.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[해당 항목의 수납내역을 삭제할 때 사용]]>
- </hint>
- </button>
- <button id="bnt_fomalsearch" class="icon_eraser" style="left:97px; top:100px; width:23px; height:23px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRcptDel("fomalsearch");
- ipt_rcptdd1.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[해당 항목의 수납내역을 삭제할 때 사용]]>
- </hint>
- </button>
- <bool id="bln_emityn1" checkvalue="Y,N" ref="/root/temp/trnptrcpt/fomalsearch/rcptdetl/emityn" style="left:338px; top:101px; width:18px; height:20px; border-style:none; "/>
- <caption id="caption20" style="left:355px; top:102px; width:30px; height:20px; ">송금</caption>
- <bool id="bool1" checkvalue="Y,N" ref="/root/temp/trnptrcpt/bcolltrans/rcptdetl/rtnyn" style="left:393px; top:124px; width:18px; height:20px; border-style:none; "/>
- <caption id="caption21" style="left:410px; top:124px; width:30px; height:20px; ">환불</caption>
- <bool id="bool2" checkvalue="Y,N" ref="/root/temp/trnptrcpt/marrow/rcptdetl/emityn" style="left:337px; top:310px; width:18px; height:20px; border-style:none; "/>
- <caption id="caption22" style="left:354px; top:310px; width:30px; height:20px; ">송금</caption>
- <bool id="bool3" checkvalue="Y,N" ref="/root/temp/trnptrcpt/airplane/rcptdetl/emityn" style="left:337px; top:334px; width:18px; height:20px; border-style:none; "/>
- <caption id="caption23" style="left:354px; top:334px; width:30px; height:20px; ">송금</caption>
- <bool id="bool4" checkvalue="Y,N" ref="/root/temp/trnptrcpt/transmoney/rcptdetl/emityn" style="left:337px; top:358px; width:18px; height:20px; border-style:none; "/>
- <caption id="caption24" style="left:354px; top:358px; width:30px; height:20px; ">처방</caption>
- <bool id="bool5" checkvalue="Y,N" ref="/root/temp/trnptrcpt/familytalk/rcptdetl/rtnyn" style="left:393px; top:286px; width:18px; height:20px; border-style:none; "/>
- <caption id="caption25" style="left:409px; top:286px; width:30px; height:20px; ">환불</caption>
- <bool id="bool6" checkvalue="Y,N" ref="/root/temp/trnptrcpt/marrow/rcptdetl/rtnyn" style="left:393px; top:310px; width:18px; height:20px; border-style:none; "/>
- <caption id="caption26" style="left:409px; top:310px; width:30px; height:20px; ">환불</caption>
- <bool id="bool7" checkvalue="Y,N" ref="/root/temp/trnptrcpt/airplane/rcptdetl/rtnyn" style="left:393px; top:334px; width:18px; height:20px; border-style:none; "/>
- <caption id="caption27" style="left:409px; top:334px; width:30px; height:20px; ">환불</caption>
- <bool id="bool8" checkvalue="Y,N" ref="/root/temp/trnptrcpt/repayment/rcptdetl/rtnyn" style="left:393px; top:381px; width:18px; height:20px; border-style:none; "/>
- <caption id="caption28" style="left:409px; top:381px; width:30px; height:20px; ">환불</caption>
- <datagrid id="grd_rcpt" nodeset="/root/main/gridrcptlist/gridrcpt" class="datagrid2" caption="협회^항목^수납일자^수납금액^수납금액^송금/처방^환불^환불금액^환불금액" colsep="^" colwidth="155, 144, 100, 80, 20, 40, 40, 80, 20" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:515px; top:75px; width:679px; height:665px; ">
- <col ref="boneassocd"/>
- <col ref="rcptitemflag" type="output" style="text-align:left; "/>
- <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rcptamt" type="output" format="#,###" style="text-align:right; "/>
- <col ref="amtunit"/>
- <col checkvalue="Y,N" disabled="true" ref="emityn" type="checkbox"/>
- <col checkvalue="Y,N" disabled="true" ref="rtnyn" type="checkbox"/>
- <col ref="rtnamt" format="#,###"/>
- <col ref="amtunit"/>
- </datagrid>
- <caption id="caption18" class="cell_1" style="left:292px; top:75px; width:42px; height:23px; text-align:center; vertical-align:middle; ">단위</caption>
- <select1 id="cmb_repayment" ref="/root/temp/trnptrcpt/repayment/rcptdetl/amtunit" class="combo_default" appearance="minimal" style="left:290px; top:382px; width:43px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/monetaryunit/A0546/A0546">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|