123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMMNO02100_간호Acting기준자료등록.xrw
- * 설 명 : 간호Acting기준자료등록
- * 수정이력 :
- * 기 타 :
- -->
- <?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>간호Acting 기준자료등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <actprcpinfo>
- <actprcplist>
- <check/>
- <deptcd/>
- <deptnm/>
- <prcpcd/>
- <prcpnm/>
- <applstage/>
- <fstrgstdt/>
- <baseflag/>
- <instcd/>
- <ordtype/>
- </actprcplist>
- </actprcpinfo>
- <cond>
- <deptcd/>
- <ordtype>O</ordtype>
- <prcpcd/>
- <prcpnm/>
- <baseflag/>
- </cond>
- </main>
- <send>
- <req/>
- <prcpinfo/>
- </send>
- <hidden/>
- <init>
- <deptlist/>
- </init>
- <temp>
- <prcpinfo/>
- </temp>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- var sACTPRCPLIST_PATH = "/root/main/actprcpinfo/actprcplist";
- function fInitialize()
- {
- var dt = getCurrentDate();
- var instcd = getUserInfo("dutplceinstcd");
- var rslt_ref = "/root/init/deptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- // 외래/입원선택에 따른 함수호출작업필요(외래만 일단 작업)
- //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/init/deptlist", "depthngnm", "asc"); //부서코드 콤보조회
- zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
- //addComboInstance("/root/init/deptlist", "deptcd^depthngnm", "ALL^전체", "dept"); //부서콤보 전체추가
- model.setValue("/root/main/cond/deptcd", getUserInfo("dutplcecd")); // 근무지부서코드
- //model.setValue("/root/main/cond/deptcd", "ALL"); // 부서코드
- model.setValue("/root/main/cond/baseflag", "A"); // 간호Acting
- model.removeNodeset(sACTPRCPLIST_PATH);
- model.refresh();
-
- fSrchPrcpInfo();
- }
- //처방검색 조회
- function fPrcpListSrch() {
- if ((model.getValue("/root/main/cond/prcpcd").length >= 2) ||
- (model.getValue("/root/main/cond/prcpnm").length >= 2)){
- var xpos = event.screenX-200;
- var ypos = event.screenY+60;
-
- var sParam_Data = "";
-
- sParam_Data = model.getValue("/root/main/cond/prcpcd")+"▦"
- + model.getValue("/root/main/cond/prcpnm")+"▦"
- + combo1.value+"▦"
- + combo1.label+"▦"
- + model.getValue("/root/main/cond/ordtype")+"▦"
- + model.getValue("/root/main/cond/baseflag")+"▩";
-
- setParameter("SPMNO02200_Param",sParam_Data);
-
- modal("SPMNO02200", 1, xpos, ypos); // 처방검색 조회
- var sRtnMsg = getParameter("SPMNO02200_ReturnFlag");
- if(sRtnMsg == "") return;
- fSrchPrcpInfo();
- } else {
- messageBox("검색어는 2자 이상","C001");
- model.setFocus("ipt_prcpcd");
- return;
- }
- }
- function fSrchPrcpInfo(){
- model.copyNode("/root/send/req","/root/main/cond");
- submit("TRMNO02101");
- grd_comprcplist.isReadOnly(1,2, grd_comprcplist.rows-1, grd_comprcplist.cols-1) = true;
- }
- function fDelPrcpInfo(){
- var iIdx = 0;
- if(!checkGridUpdate(grd_comprcplist)) {
- messageBox("선택 대상이 ", "I004")
- return;
- }
- var updatedata = grd_comprcplist.getUpdateData("update");
- var sRtnMsg = messageBox("간호 기준자료를 ", "Q001");
- if(sRtnMsg != 6) return;
-
- model.makeValue("/root/send/prcpinfo",updatedata);
- if(submit("TXMNO02101")){
- if(model.getValue("/root/temp/prcpinfo/prcplist/inscnt") == "0"){
- messageBox("기준자료 저장중 ", "E009")
- } else {
- fSrchPrcpInfo();
- }
- }
- }
- function checkGridUpdate(grid)
- {
- var uData = grid.getUpdateDataXml("update");
- if (uData=="") return false;
- else return true;
- }
- function fClickedGridRow() {
- var iRow = 0;
- var iCol = 0;
- iRow = grd_comprcplist.row;
- iCol = grd_comprcplist.col;
- if(iRow < 1) return;
- if(model.getValue(sACTPRCPLIST_PATH+"["+iRow+"]/check") == "true"){
- grd_comprcplist.rowStatus(iRow) = 2;
- }else{
- grd_comprcplist.removeStatus(iRow, "update");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/actprcpinfo"/>
- <submission id="TXMNO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/prcpinfo"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
- </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="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="670" pageheight="780" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:650px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:174px; height:14px; ">간호Acting 기준자료등록</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:650px; height:742px; ">
- <caption id="caption42" class="tit_2" style="left:5px; top:100px; width:105px; height:13px; ">간호Acting</caption>
- <line id="line18" class="line_1" style="x1:0px; y1:115px; x2:650px; y2:115px; "/>
- <datagrid id="grd_comprcplist" nodeset="/root/main/actprcpinfo/actprcplist" class="datagrid2" caption="선택^부서^처방코드^처방명^적용^등록일^caption2^caption3^caption4^caption1" colsep="^" colwidth="31, 95, 95, 241, 59, 124, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="10" style="left:0px; top:120px; width:650px; height:620px; ">
- <col ref="check" type="checkbox">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fClickedGridRow();
- ]]>
- </script>
- </col>
- <col ref="deptnm" style="text-align:left; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="applstage" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>재원</label>
- <value>I</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>T</value>
- </item>
- </choices>
- </col>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:mm"/>
- <col ref="baseflag"/>
- <col ref="instcd"/>
- <col ref="ordtype"/>
- <col ref="deptcd"/>
- </datagrid>
- <button id="button2" class="btn5_letter2" navindex="8" style="left:603px; top:95px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelPrcpInfo();
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:650px; height:80px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:650px; height:80px; "/>
- <line id="line13" class="line_4" style="x1:515px; y1:4px; x2:515px; y2:77px; "/>
- <caption id="caption5" class="search_name" style="left:16px; top:9px; width:90px; height:17px; ">구 분 :</caption>
- <select1 id="combo1" ref="/root/main/cond/deptcd" class="combo_search" navindex="4" appearance="minimal" style="left:215px; top:9px; width:240px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSrchPrcpInfo();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_opstatcd" ref="/root/main/cond/ordtype" navindex="5" appearance="full" cellspacing="5" cols="7" rows="1" overflow="visible" style="left:105px; top:9px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/cond/ordtype") == "O") {
- model.removeNode("/root/init/deptlist");
- model.makeNode("/root/init/deptlist");
- zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/init/deptlist", "depthngnm", "asc"); //부서코드 콤보조회
- addComboInstance("/root/init/deptlist", "deptcd^depthngnm", "ALL^전체", "dept"); //부서콤보 전체추가
- } else {
- model.removeNode("/root/init/deptlist");
- model.makeNode("/root/init/deptlist");
- zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"),"orduseyn","W","/root/init/deptlist", "depthngnm", "asc"); // 병동정보
- addComboInstance("/root/init/deptlist", "deptcd^depthngnm", "ALL^전체", "dept"); // 병동콤보 전체추가
- }
- model.setValue("/root/main/cond/deptcd", "ALL"); // 부서코드
- model.refresh();
- fSrchPrcpInfo();
- ]]>
- </script>
- </select1>
- <button id="button4" class="btn1_letter2" navindex="7" style="left:587px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:16px; top:38px; width:90px; height:17px; ">처방코드 :</caption>
- <caption id="caption2" class="search_name" style="left:16px; top:58px; width:90px; height:17px; ">처 방 명 :</caption>
- <input id="ipt_prcpcd" ref="/root/main/cond/prcpcd" class="input_default" navindex="1" imemode="alpha" maxlength="12" style="left:105px; top:37px; width:350px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keycode == "13"){
- model.setFocus("btn_srch");
- fPrcpListSrch();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_prcpnm" ref="/root/main/cond/prcpnm" class="input_default" navindex="2" imemode="alpha" maxlength="66" style="left:105px; top:57px; width:350px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keycode == "13"){
- model.setFocus("btn_srch");
- fPrcpListSrch();
- }
- ]]>
- </script>
- </input>
- <button id="btn_srch" class="btn2_letter2" navindex="3" style="left:465px; top:57px; width:42px; height:19px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrcpListSrch();
- ]]>
- </script>
- </button>
- <button id="btn_ref" class="btn1_letter2" navindex="6" style="left:527px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchPrcpInfo();
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|