123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCRB00200_예약Remark검색.xrw
- * Summary : 외래간호에서 관리되는 Remark 검색
- * Programmer : 엄윤호
- * Date Written : 2007.09.11
- * History : 2007.09.11
- * Remark :
- -->
- <?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>예약 Remark 검색</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <remarklist/>
- </main>
- <send>
- <srch>
- <orddept/>
- <srchterm/>
- </srch>
- </send>
- <init>
- <basecdlist>
- <orddeptlist>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </orddeptlist>
- </basecdlist>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D"; // 외래진료과
- var rslt_ref = "/root/init/basecdlist/orddeptlist";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
-
- // 부모창의 파라미터 처리
- var search_term = opener.window.javascript.getParameter("search_term");
- var receive_remarkcd_path = opener.window.javascript.getParameter("receive_remarkcd_path");
- var receive_remarknm_path = opener.window.javascript.getParameter("receive_remarknm_path");
-
- if (search_term != "") {
- model.setValue("/root/send/srch/srchterm", search_term);
- submit("TRCRB00201");
- }
-
- fCheckAuth();
- model.removeNodeset("/root/main/remarklist");
- model.refresh();
- ]]>
- </script>
- <submission id="TRCRB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/remarklist"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- //===========================//
- // 문자열 앞뒤 공백 없애기 //
- // ==========================//
- function trimStringUtil(pm_sStr){
- return pm_sStr.replace(/^\s+|\s+$/g, '');
- }
-
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("r")) {
- btn_search.disabled=true;
- }
- //if (!checkAuth("x")) {
- //}
- //if (!checkAuth("p")) {
- //}
- }
-
- function fSetOpenerData() {
- // 부모창에 값을 넘겨주고 창을 닫는다.
- var receive_remarkcd_path = opener.window.javascript.getParameter("receive_remarkcd_path");
- var receive_remarknm_path = opener.window.javascript.getParameter("receive_remarknm_path");
- var receive_rgdeptcd_path = opener.window.javascript.getParameter("receive_rgdeptcd_path");
-
- var grid = grd_remarklist;
- var remarkTemp = grid.valueMatrix(grid.row, grid.colRef("typenm"));
- var remark = trimStringUtil(remarkTemp);
-
- var rgdeptcd = grid.valueMatrix(grid.row, grid.colRef("orddeptcd"));
-
-
- if (receive_remarkcd_path != "") opener.model.setValue(receive_remarkcd_path, remark);
- if (receive_remarknm_path != "") opener.model.setValue(receive_remarknm_path, remark);
- if (receive_rgdeptcd_path != "") opener.model.setValue(receive_rgdeptcd_path, rgdeptcd);
- opener.model.refresh();
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="506" pageheight="335" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" scroll="auto" style="left:0px; top:0px; width:490px; height:305px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:489px; height:35px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">검색조건 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/srch/orddept" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_term" ref="/root/send/srch/srchterm" class="input_s_essential" style="left:241px; top:8px; width:145px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <line id="line1" class="line_4" style="x1:403px; y1:7px; x2:403px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:418px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // // 필수항목 체크
- // if (model.getValue("/root/send/srch/srchterm") == "") {
- // messageBox("검색어를","C002");
- // model.setFocus("ipt_term");
- // } else {
- submit("TRCRB00201");
- // }
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:5px; top:40px; width:165px; height:13px; vertical-align:middle; ">예약 Remark 조회</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:55px; x2:489px; y2:55px; "/>
- <datagrid id="grd_remarklist" nodeset="/root/main/remarklist" allowselection="false" caption="진료과^예약 Remark" colwidth="150, 300, 0" extendlastcol="scroll" rowheader="select" style="left:0px; top:60px; width:489px; height:243px; ">
- <col ref="orddeptnm"/>
- <col ref="typenm"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var grid = grd_remarklist;
- if (grid.row > 0 && grid.isCell(event.target)) {
- fSetOpenerData();
- } else {
- messageBox("예약 Remark를","C002");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:305px; width:489px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:373px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grid = grd_remarklist;
- if (grid.row > 0) {
- fSetOpenerData();
- } else {
- messageBox("예약 Remark를","C002");
- }
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:432px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|