123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- <?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>
- <endResn>
- <P0432>
- <cdnm/>
- <cdid/>
- </P0432>
- </endResn>
- <cond>
- <cond>
- <hngnm/>
- <rgstno/>
- </cond>
- </cond>
- <otptkey>
- <otptkey>
- <pid/>
- <orddd/>
- <cretno/>
- <acptseqno/>
- </otptkey>
- </otptkey>
- <prcdcnt>
- <prcdcnt>
- <cnt/>
- </prcdcnt>
- </prcdcnt>
- </main>
- <send/>
- <init>
- <orddept>
- <orddept>
- <deptcd/>
- <deptnm/>
- </orddept>
- </orddept>
- <orddr>
- <orddr>
- <usernm/>
- <userid/>
- </orddr>
- </orddr>
- <orddd>
- <orddd>
- <orddd/>
- <ordddview/>
- </orddd>
- </orddd>
- </init>
- <cond>
- <pid/>
- <hngnm/>
- <rgstno/>
- <orddeptcd/>
- <orddrid/>
- <orddd/>
- <cnclresn/>
- <etc/>
- </cond>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // model.setValue("/root/main/cond/orddd", getCurrentDate());
- // zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "rcptuseyn", "X", "/root/init/orddept", "depthngnm", "asc"); //부서코드 콤보조회
-
- //model.refresh();
- //fSearch();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fSearch(){
- if(event.keyCode == 13){
- model.setFocus("output1");
- if(model.getValue("/root/cond/pid") == "" ){
- messageBox("등록번호를","C001");
- model.setFocus("ipt_pid");
- return;
- }
- model.removeNodeset("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
- if(submit("TRMNO02701")){
- model.setValue("/root/cond/hngnm",model.getValue("/root/main/cond/cond/hngnm"));
- model.setValue("/root/cond/rgstno",model.getValue("/root/main/cond/cond/rgstno"));
- if(model.getValue("/root/cond/hngnm") == "" ){
- messageBox("입력한 등록번호에 해당하는 환자가","I004");
- model.reset();
- model.setFocus("ipt_pid");
- return;
- }else{
- model.removeNodeset("/root/main/endResn/P0432");
- zbcfGetCodeList(new Array("P0432"), new Array("/root/main/endResn"));
-
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/init/orddept");
- model.makeNode("/root/send");
- model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
- submit("TRMNO02702");
- cmb_orddept.select(0);
- model.setFocus("output3");
- }
-
- }
- model.refresh();
- }
- }
- ]]>
- </script>
- <submission id="TRMNO02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond"/>
- <submission id="TRMNO02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddept"/>
- <submission id="TRMNO02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddr"/>
- <submission id="TRMNO02704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddd"/>
- <submission id="TRMNO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/otptkey"/>
- <submission id="TRMNO02706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcdcnt"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXMNO02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="240" pageheight="420" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" style="left:0px; top:18px; width:223px; height:361px; ">
- <datagrid id="grd_endResn" nodeset="/root/main/endResn/P0432" allowselection="false" caption="마감취소사유^cdid" colsep="^" colwidth="198, 0" defaultrows="1" mergecellsfixedrows="bycolrec" rowsep="|" navindex="5" style="left:0px; top:161px; width:221px; height:130px; ">
- <col ref="cdnm"/>
- <col ref="cdid"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_endResn.rows < 2){
- return;
- }else{
- model.setValue("/root/cond/cnclresn",model.getValue("/root/main/endResn/P0432["+grd_endResn.row+"]/cdid"));
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="combo1" ref="/root/cond/orddrid" class="combo_search" navindex="3" appearance="minimal" style="left:105px; top:110px; width:114px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddr/orddr">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/init/orddd");
- model.makeNode("/root/send");
- model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
- model.makeValue("/root/send/orddeptcd" ,model.getValue("/root/cond/orddeptcd"));
- model.makeValue("/root/send/orddrid" ,model.getValue("/root/cond/orddrid"));
- submit("TRMNO02704");
- combo2.select(0);
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddept" ref="/root/cond/orddeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:105px; top:85px; width:114px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/orddept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/init/orddr");
- model.makeNode("/root/send");
- model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
- model.makeValue("/root/send/orddeptcd" ,model.getValue("/root/cond/orddeptcd"));
- submit("TRMNO02703");
- combo1.select(0);
- ]]>
- </script>
- </select1>
- <caption id="caption52" class="cell_1" style="left:0px; top:6px; width:104px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/cond/pid" class="input_default" navindex="1" maxlength="10" style="left:105px; top:8px; width:114px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </input>
- <line id="line5" class="line_1" style="x1:0px; y1:1px; x2:219px; y2:1px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:31px; width:104px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
- <output id="output1" ref="/root/cond/hngnm" class="output_fix" maxlength="10" style="left:105px; top:33px; width:114px; height:19px; "/>
- <line id="line36" class="line_2" style="x1:0px; y1:29px; x2:220px; y2:29px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:56px; width:104px; height:23px; text-align:center; vertical-align:middle; ">주민등록번호</caption>
- <line id="line1" class="line_2" style="x1:0px; y1:54px; x2:220px; y2:54px; "/>
- <output id="output2" ref="/root/cond/rgstno" class="output_fix" maxlength="10" style="left:105px; top:58px; width:114px; height:19px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:80px; x2:220px; y2:80px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:82px; width:104px; height:23px; text-align:center; vertical-align:middle; ">진료과</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:107px; width:104px; height:23px; text-align:center; vertical-align:middle; ">진료의</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:105px; x2:220px; y2:105px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:132px; width:104px; height:23px; text-align:center; vertical-align:middle; ">진료일자</caption>
- <line id="line6" class="line_2" style="x1:0px; y1:130px; x2:220px; y2:130px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:156px; x2:221px; y2:156px; "/>
- <caption id="caption8" class="tit_2" style="left:0px; top:295px; width:95px; height:13px; ">기타사유</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:312px; x2:221px; y2:312px; "/>
- <input id="output3" ref="/root/cond/etc" class="input_default" navindex="6" maxlength="10" style="left:0px; top:317px; width:221px; height:19px; "/>
- <button id="button5" class="btn5_letter2" navindex="7" style="left:178px; top:338px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("마감취소를","Q002") != 6) return;
-
- if( (model.getValue("/root/cond/pid") == "" ) ||
- (model.getValue("/root/cond/orddeptcd") == "" ) ||
- (model.getValue("/root/cond/orddrid") == "" ) ||
- (model.getValue("/root/cond/orddd") == "" )
- ){
- messageBox("등록번호, 진료과, 진료의, 접수일자는 ","I003");
- model.setFocus("ipt_pid");
- return;
- }
- if(model.getValue("/root/cond/cnclresn") == ""){
- messageBox("마감취소사유를","C002");
- model.setFocus("grd_endResn");
- return;
- }
-
- if(model.getValue("/root/cond/cnclresn") == "99") {
- if(model.getValue("/root/cond/etc") == ""){
- messageBox("기타사유를","C001");
- model.setFocus("output3");
- return;
- }
- }
-
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/otptkey");
- model.makeNode("/root/send");
- model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
- model.makeValue("/root/send/orddeptcd" ,model.getValue("/root/cond/orddeptcd"));
- model.makeValue("/root/send/orddrid" ,model.getValue("/root/cond/orddrid"));
- model.makeValue("/root/send/orddd" ,model.getValue("/root/cond/orddd"));
-
- if(submit("TRMNO02705")){
- if( getNodesetCount("/root/main/otptkey/otptkey") > 0 ){
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/prcdcnt");
- model.makeNode("/root/send");
- model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
- model.makeValue("/root/send/orddd" ,model.getValue("/root/cond/orddd"));
- model.makeValue("/root/send/cretno" ,model.getValue("/root/main/otptkey/otptkey/cretno"));
- if(submit("TRMNO02706")){
- if( model.getValue("/root/main/prcdcnt/prcdcnt/cnt") > 0 ){
- if( "6" != messageBox("취소되지 않은 처방이 존재합니다. 마감취소 하시겠습니까?", "Q999")) {
- model.setFocus("ipt_pid");
- return;
- }
-
- }
- model.removeNodeset("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/pid" ,model.getValue("/root/cond/pid"));
- model.makeValue("/root/send/orddd" ,model.getValue("/root/cond/orddd"));
- model.makeValue("/root/send/cretno" ,model.getValue("/root/main/otptkey/otptkey/cretno"));
- model.makeValue("/root/send/acptseqno" ,model.getValue("/root/main/otptkey/otptkey/acptseqno"));
- model.makeValue("/root/send/cnclresn" ,model.getValue("/root/cond/cnclresn"));
-
- if(model.getValue("/root/cond/cnclresn") == "99") {
- model.makeValue("/root/send/etc" ,model.getValue("/root/cond/etc"));
- }else{
- model.makeValue("/root/send/etc",model.getValue("/root/main/endResn/P0432["+grd_endResn.row+"]/cdnm"));
- }
-
- submit("TXMNO02701");
-
- if(messageBox("마감취소작업이 정상적으로 처리되었습니다. \n"+
- "외래접수에 대한 수정작업 후 반드시 재마감을 하십시오. \n\n"+
- "다른환자의 마감취소를","Q003") != 6) {
- model.close();
- return;
- }else{
- model.reset();
- model.setFocus("ipt_pid");
- }
- }
- }else{
- messageBox("환자등록번호, 진료과, 진료의, 접수일자에 대한 마감내역이","I004");
- model.setFocus("ipt_pid");
- return;
- }
- } // if end
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">외래 진찰료 마감 취소</caption>
- <select1 id="combo2" ref="/root/cond/orddd" class="combo_search" navindex="4" appearance="minimal" style="left:105px; top:152px; width:114px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddd/orddd">
- <label ref="ordddview"/>
- <value ref="orddd"/>
- </itemset>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|