123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397 |
- <?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>
- <cond>
- <enddd/>
- <orddeptcd/>
- <orddrid/>
- <execflag>Y</execflag>
- <ordclsdeptflag/>
- <supdeptcd/>
- </cond>
- <prcpendlist>
- <prcpendlist>
- <chk/>
- <pid/>
- <patnm/>
- <sexage/>
- <prcpstat/>
- <prcpkindcd/>
- <prcp7clscd/>
- <prcpcd/>
- <prcpnm/>
- <prcpvol/>
- <prcpvolunit/>
- <prcpqty/>
- <prcpqtyunit/>
- <prcpdayno/>
- <calcflag/>
- <payflagcd/>
- <prcprgstdt/>
- <execdd/>
- <nextrsrvdt/>
- <endacptdt/>
- <prcpdd/>
- <prcpno/>
- <prcphistno/>
- <instcd/>
- <endid/>
- <centcd/>
- <orddeptcd/>
- <subdeptcd/>
- <subdeptnm/>
- <orddrid/>
- </prcpendlist>
- </prcpendlist>
- </main>
- <send/>
- <init>
- <orddept>
- <dept/>
- </orddept>
- <orddr>
- <orddr>
- <usernm/>
- <userid/>
- </orddr>
- <orddrlist>
- <usernm/>
- <userid/>
- </orddrlist>
- </orddr>
- <M0005list>
- <M0005>
- <cdnm>-</cdnm>
- <cdid>-</cdid>
- </M0005>
- </M0005list>
- </init>
- <hidden/>
- <temp>
- <cmbinfo>
- <comcodeinfo>
- <prcpstatcd/>
- <prcpkindcd/>
- <prcpclscd/>
- <payflagcd/>
- </comcodeinfo>
- </cmbinfo>
- <patinfo>
- </patinfo>
- </temp>
- <code/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- var seoulinstcd = ""; //20090811-kys
- var Eyedeptcd;
-
- function fSetGridData() {
- if(cmb_execflag.value == "A") { // 전체
- btn_prcpend.disabled = true;
- grd_prcpendlist.attribute("nodeset") = "/root/main/prcpendlist/prcpendlist";
-
- } else if(cmb_execflag.value == "Y") { // 마감전
- btn_prcpend.disabled = false;
- grd_prcpendlist.attribute("nodeset") = "/root/main/prcpendlist/prcpendlist[enddd='']";
- }
- else { // 마감후
- btn_prcpend.disabled = true;
- grd_prcpendlist.attribute("nodeset") = "/root/main/prcpendlist/prcpendlist[enddd!='']";
- }
- grd_prcpendlist.rebuild();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var dt = getCurrentDate();
- var instcd = getUserInfo("dutplceinstcd");
- var rslt_ref = "/root/init/orddept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
-
- grd_prcpendlist.fixedcellcheckbox(0,0) = true;
-
- if (opener.javascript.getParameter("orddd") != "") {
- model.setValue("/root/main/cond/enddd", opener.javascript.getParameter("orddd"));
-
- //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "rcptuseyn", "X", "/root/init/orddept", "depthngnm", "asc"); //부서코드 콤보조회
- //zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
- // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
- zsdfGetCareOutOrderDepartmentList(instcd, rslt_ref, dt);
-
- //cmb_orddept.value = opener.javascript.getParameter("ordsupdeptcd");
- cmb_orddept.value = opener.javascript.getParameter("orddeptcd"); //진찰료마감에서 전달하는 파라미터명으로 수정_20100211_SMY
- cmb_orddept.refresh();
-
- }else{
-
- model.setValue("/root/main/cond/enddd", getCurrentDate());
- //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "rcptuseyn", "X", "/root/init/orddept", "depthngnm", "asc"); //부서코드 콤보조회
- //zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
- // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
- zsdfGetCareOutOrderDepartmentList(instcd, rslt_ref, dt);
-
- model.setValue("/root/main/cond/orddeptcd", getUserInfo("dutplcecd"));
- cmb_orddept.select(1);
- cmb_orddept.refresh();
-
- }
- zbcfGetCodeList(new Array("M0005"), new Array("/root/init/M0005list"));
-
- fOrddridSearch(); // 진료과의 해당하는 진료의 조회
- fSetGridData(); // 구분에 따른 마감버튼 제어기능
-
- // 간호 환경설정테이블 조회-20090811-kys
- var pCode = "'077', '085'"; // 조회할 CdGrupID 코드정보
- var pDate = getCurrentDate(); //조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
-
- for(var i=1; i<=getNodesetCount("/root/code/codeinfo/codelist"); i++){
- switch (model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid")){
- case "077": // 의정부성모병원기관코드_20090606
- switch(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid")){
- case "01": // (01:서울성모,02:의정부성모,03:부천성가, 04:성빈센트)-20090811
- seoulinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- }
- case "085": // 안과(안센터)
- Eyedeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- }
- }
-
- //addComboInstance("/root/init/orddept", "deptcd^depthngnm", "ALL^전체", "dept"); //부서콤보 전체추가
- ]]>
- </script>
- <submission id="TRMNO00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcpendlist"/>
- <submission id="TXMNO00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <!--<submission id="TRMNO00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddr"/>-->
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/orddeptlist/dept"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post">`x</submission>
- <submission id="TRMNO00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddr"/>
- <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- </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="../../../emr/outcareweb/js/SMMNO00900.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/shortmsgweb/js/ZMS001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" style="left:0px; top:18px; width:1194px; height:744px; ">
- <group id="grp_sea" style="left:3px; top:1px; width:1189px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1187px; height:35px; "/>
- <caption id="cap_ward" class="search_name" style="left:187px; top:9px; width:78px; height:17px; ">진료과:</caption>
- <button id="button1" class="btn1_letter2" navindex="5" style="left:1125px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- //fSetBackColor(); //20090226추가
- ]]>
- </script>
- </button>
- <caption id="caption8" class="search_name" style="left:6px; top:9px; width:86px; height:17px; ">마감일자:</caption>
- <input id="ipt_enddd" ref="/root/main/cond/enddd" class="input_search" navindex="3" inputtype="date" style="left:88px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // fSearch();
- fOrddridSearch(); // 진료과의 해당하는 진료의 조회 20090226추가
- ]]>
- </script>
- </input>
- <line id="line13" class="line_4" style="x1:1114px; y1:6px; x2:1114px; y2:26px; "/>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:257px; top:8px; width:153px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fOrddridSearch(); // 진료과의 해당하는 진료의 조회
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_search" appearance="minimal" style="left:544px; top:8px; width:136px; 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[
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption10" class="search_name" style="left:690px; top:9px; width:56px; height:17px; ">구분:</caption>
- <select1 id="cmb_execflag" ref="/root/main/cond/execflag" class="combo_search" appearance="minimal" style="left:747px; top:8px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>마감전</label>
- <value>Y</value>
- </item>
- <item>
- <label>마감후</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSearch();
- fSetGridData(); // 구분에 따른 마감버튼 제어기능
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:477px; top:9px; width:66px; height:17px; ">진료의</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:48px; width:75px; height:13px; ">처방내역</caption>
- <button id="button8" class="btn2_letter5" style="left:990px; top:45px; width:75px; height:19px; ">
- <caption>SMS전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var Row = grd_prcpendlist.rows;
-
- var sPatnm = "";
- var sMpphontel = "";
- var expText = /^01([0|1|6|7|8|9]?)-?([0-9]{3,4})-?([0-9]{4})$/; // 핸드폰 입력 양식 체크 정규식
- var smsNode = null;
-
- model.removeNodeset("/root/hidden/smsdata");
-
- for (i=1; i<Row; i++){
- if(grd_prcpendlist.textmatrix(i,0) == "true"){
- sPatnm = model.getValue("/root/main/prcpendlist/prcpendlist["+i+"]/patnm");
- sMpphontel = model.getValue("/root/main/prcpendlist/prcpendlist["+i+"]/mpphontel");
-
-
- if (expText.test(sMpphontel) != true) {
- messageBox(sPatnm + " 환자의 핸드폰 번호가 잘못 입력 되었습니다.\n 숫자와 '-'만 가능합니다", "I");
- return;
- }
- smsNode = model.instances(0).selectNodes("/root/hidden/smsdata/recvrlist");
-
- model.makeValue("/root/hidden/smsdata/recvrlist["+ (smsNode.length + 1)+"]/chk" , "");
- model.makeValue("/root/hidden/smsdata/recvrlist["+ (smsNode.length + 1)+"]/recvrnm" , sPatnm);
- model.makeValue("/root/hidden/smsdata/recvrlist["+ (smsNode.length + 1)+"]/recvrtelno" , sMpphontel);
- }
- }
-
- model.makeValue("/root/hidden/smsdata/bizabbr", "EMR");
- model.makeValue("/root/hidden/smsdata/replytelno", "");
- model.makeValue("/root/hidden/smsdata/rsrvyn", "");
- model.makeValue("/root/hidden/smsdata/rsrvdate", "");
- model.makeValue("/root/hidden/smsdata/rsrvtime", "");
-
- zmsfOpenSMS("/root/hidden/smsdata");
- model.removeNodeset("/root/hidden/smsdata");
- ]]>
- </script>
- </button>
- <button id="btn_ordend" class="btn2_letter5" navindex="6" style="left:1070px; top:45px; width:75px; height:19px; ">
- <caption>진찰료 마감</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setParameter("orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
- setParameter("orddd", model.getValue("/root/main/cond/enddd"));
-
- modal("SMMNO02600");
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:65px; x2:1191px; y2:65px; "/>
- <datagrid id="grd_prcpendlist" nodeset="/root/main/prcpendlist/prcpendlist" allowselection="false" caption="^등록번호^성명^S/A^핸드폰^센터^진료과^하위부서^진료의^상태^구분^분류^처방코드^처방명^용량^용량^수량^수량^일수^수납^급/비^처방등록일시^처방적용일자^진료예약일시^마감일시^마감자^caption1^처방일자^처방번호^처방이력번호^기관코드" colsep="^" colwidth="28, 70, 60, 40, 100, 110, 110, 0, 100, 66, 64, 70, 81, 199, 36, 36, 40, 40, 40, 40, 40, 100, 100, 100, 100, 72, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:70px; width:1190px; height:670px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="mpphontel" style="text-align:center; "/>
- <col disabled="true" ref="centcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="subdeptnm" style="text-align:center; "/>
- <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddr/orddrlist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpstat"/>
- <col ref="prcpkindcd"/>
- <col ref="prcpclscd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpvol"/>
- <col ref="prcpvolunit"/>
- <col ref="prcpqty"/>
- <col ref="prcpqtyunit"/>
- <col ref="prcpdayno"/>
- <col ref="calcflag"/>
- <col ref="payflagcd"/>
- <col ref="prcprgstdt"/>
- <col ref="execdd" format="yyyy-mm-dd"/>
- <col ref="nextrsrvdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="endacptdt"/>
- <col ref="endid"/>
- <col ref="enddd"/>
- <col ref="prcpdd"/>
- <col ref="prcpno"/>
- <col ref="prcphistno"/>
- <col ref="instcd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcpendlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_prcpend" class="btn2_letter2" navindex="6" style="left:1148px; top:45px; width:42px; height:19px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSave();
- //cmb_orddept.dispatch("xforms-value-changed);
- fOrddridSearch(); // 진료과의 해당하는 진료의 조회
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">외래 선처치 마감</caption>
- </xhtml:body>
- </xhtml:html>
|