123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402 |
- <?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>
- <otptlist>
- <grdoutchoshist/>
- </otptlist>
- <inpt>
- <inpt_pid/>
- <inpt_cretno/>
- <inpt_indd/>
- <inpt_mskind/>
- </inpt>
- </main>
- <send>
- <data1>
- <pid/>
- <mskind/>
- <indd/>
- <cretno/>
- <out_orddd/>
- <out_cretno/>
- </data1>
- <data2>
- <sess_posinstcd/>
- </data2>
- <data3>
- <s_inpt/>
- <s_flag>
- <flag/>
- </s_flag>
- </data3>
- </send>
- <hidden>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- <flag>
- <prestdd/>
- <mskindflag/>
- </flag>
- <wardcd>
- <cd/>
- <nm/>
- <of/>
- </wardcd>
- <roomcd>
- <cd/>
- <nm/>
- <wd/>
- <gr/>
- <ty/>
- </roomcd>
- </init>
- <session/>
- <temp/>
- <rsltflag>
- <rgst_cnt>
- <cvrt_cnt/>
- </rgst_cnt>
- </rsltflag>
- </hidden>
- <init>
- <P0032list>
- <P0032>
- <cdnm/>
- <cdid/>
- </P0032>
- </P0032list>
- <P0021list>
- <P0021>
- <cdnm/>
- <cdid/>
- </P0021>
- </P0021list>
- <P0006list>
- <P0006>
- <cdnm/>
- <cdid/>
- </P0006>
- </P0006list>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- zbcfGetCodeList(new Array("P0006","P0021","P0032"),new Array("/root/init/P0006list","/root/init/P0021list","/root/init/P0032list"));
- if (instance1.selectSingleNode("/root/init/P0032list") != null) {
- model.setValue("/root/init/P0032list/P0032/cdid","-");
- model.setValue("/root/init/P0032list/P0032/cdnm","-");
- }
-
- fGetUserInfosSampling();//세션정보
- grd_outchoshist.fixedcellcheckbox(0,1) = true;
-
- model.setValue("/root/send/data2/sess_posinstcd",model.getValue("/root/hidden/session/posinstcd"));
- submit("TRPMI00106");
-
- fPatOutChosList();
- //fPatTelInfoRef();
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/init"/>
- <submission id="TRPMI02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/otptlist"/>
- <submission id="TXPMI02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="root/hidden/rsltflag"/>
- </model>
- <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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript">
- <![CDATA[
- function fPatOutChosList()
- {
- //inpt생성 전환버튼누를시 기준
- model.setValue("/root/main/inpt/inpt_pid" ,model.getValue("/root/send/data1/pid"));
- model.setValue("/root/main/inpt/inpt_mskind" ,model.getValue("/root/send/data1/mskind"));
- model.setValue("/root/main/inpt/inpt_indd" ,model.getValue("/root/send/data1/indd"));
- model.setValue("/root/main/inpt/inpt_cretno" ,model.getValue("/root/send/data1/cretno"));
- if(model.getValue("/root/send/data1/out_orddd") == "") {
- model.setValue("/root/send/data1/out_orddd" ,model.getValue("/root/send/data1/indd"));
- }
-
- if(model.getValue("/root/send/data1/out_cretno") == "") {
- model.setValue("/root/send/data1/out_cretno" ,model.getValue("/root/send/data1/cretno"));
- }
- var otpt_pid = model.getValue("/root/send/data1/pid");
- if (otpt_pid != null && otpt_pid !="" && otpt_pid != " ") {
- submit("TRPMI02901");
- }
- }
-
- //세션정보
- function fGetUserInfosSampling()
- {
- var sUserInfosS = getUserInfos();
-
- sUserInfosS = sUserInfosS + "|";
-
- var UserInfosS_Array = sUserInfosS.split("|");
-
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- //var posinstcd = UserInfosS_Array[2]; //소속기관코드
- //var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posinstcd = UserInfosS_Array[6]; //근무지기관코드 2009.04.15
- var posinstnm = UserInfosS_Array[7]; //근무지기관명 2009.04.15
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
-
- model.makeNode("/root/hidden/session/" + "userid");
- model.makeNode("/root/hidden/session/" + "usernm");
- model.makeNode("/root/hidden/session/" + "posinstcd");
- model.makeNode("/root/hidden/session/" + "posinstnm");
- model.makeNode("/root/hidden/session/" + "posdeptcd");
- model.makeNode("/root/hidden/session/" + "posdeptnm")
-
- if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
- //if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "";
-
- model.setValue("/root/hidden/session/userid",userid);
- model.setValue("/root/hidden/session/usernm",usernm);
- model.setValue("/root/hidden/session/posinstcd",posinstcd);
- model.setValue("/root/hidden/session/posinstnm",posinstnm);
- model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
- model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="784" pageheight="350" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:765px; height:330px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:108px; height:13px; ">외래내원내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:765px; y2:25px; "/>
- <group id="group1" scroll="auto" style="left:0px; top:303px; width:760px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:645px; top:5px; width:56px; height:22px; ">
- <caption>전환</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var cnt = getNodesetCount("/root/main/otptlist/grdoutchoshist[cvrtflag='true']");
-
- if(cnt <1){
- messageBox("내역을 선택해주십시오!","I999");
- return;
- }
-
- model.removenode("/root/send/data3");
- model.makeNode("/root/send/data3");
- model.makeNode("/root/send/data3/s_inpt");
-
- var otptlist = instance1.selectNodes("/root/main/otptlist/grdoutchoshist[cvrtflag='true']");
- var otpt_rcvtmp = getNodeListCSV(otptlist);
-
- model.setValue("/root/hidden/temp", otpt_rcvtmp);
-
- var otpt_tmp = model.getValue("/root/hidden/temp");
-
- setCSVToNode("/root/send/data3", otpt_tmp);
-
- copyNodeType("/root/send/data3/s_inpt","/root/main/inpt","replace");
-
- model.makeValue("/root/send/data3/s_flag/flag","R");
- // 20100601 JHP 수정이력 : 보험(61,71,81), 보조(10,11,37,38,60)번에대해 덤프 막혀있지만 이건 막힘과 상관없이 진행되게 한다.
- // 입원등록의 입원전환버튼에서만 dumpflag를 만들어준다. 다른곳에서는 안만들어주므로 무조건 dump된다 .
- var dumpcnt = getNodesetCount("/root/send/data1/dumpflag");
- if(dumpcnt > 0){
- model.makeValue("/root/send/data3/s_dumpflag/dumpflag","Y");
- }
- if(submit("TXPMI02901")){
-
- // messageBox("입원 전환 완료 됐습니다.", "I999", "");
- // model.window.close();
- model.removeNodeset("/root/main/otptlist/grdoutchoshist[cvrtflag='true']");
- model.refresh();
- }
-
-
-
- // var cvrt_cnt = model.getValue("/root/hidden/rsltflag/rgst_cnt/cvrt_cnt");
- // if (cvrt_cnt != null && cvrt_cnt != " " && cvrt_cnt != "" && cvrt_cnt != "-") {
- // fPatOutChosList();
- // model.refresh();
- // }
-
-
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:704px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:760px; y2:0px; "/>
- </group>
- <datagrid id="grd_outchoshist" nodeset="/root/main/otptlist/grdoutchoshist" caption="^환자번호^환자성명^진료일자^진료시간^진료과^진료의사^선택^주/부^초/재^보험유형^보조유형^유형보조사유^진찰료^선후불^수납^caption1^caption3^caption2" colsep="^" colwidth="22, 76, 76, 80, 62, 120, 76, 52, 52, 52, 72, 72, 90, 72, 72, 72, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:30px; width:765px; height:273px; ">
- <col ref="cvrtflag" type="checkbox"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="ordtm" format="hh:nn"/>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="specordyn" type="combo">
- <choices>
- <item>
- <label>선택</label>
- <value>Y</value>
- </item>
- <item>
- <label>비선택</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="mskind" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0006list/P0006">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fsexamflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suppkind" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suppkindresn" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0032list/P0032">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="medamtestmyn" type="combo">
- <choices>
- <item>
- <label>산정</label>
- <value>Y</value>
- </item>
- <item>
- <label>미산정</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="medamtpostyn" type="combo">
- <choices>
- <item>
- <label>선불</label>
- <value>N</value>
- </item>
- <item>
- <label>후불</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="calcflag" type="combo">
- <choices>
- <item>
- <label>미수납</label>
- <value>Y</value>
- </item>
- <item>
- <label>미수납</label>
- <value>S</value>
- </item>
- <item>
- <label>수납</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="fsexammanlyn" visibility="hidden"/>
- <col ref="medamtfreeresn" visibility="hidden"/>
- <col ref="holiflag" visibility="hidden"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|