123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPP00800_처방변경이력.xfm
- * 설 명 : 처방변경이력
- * 설 계 자 : 설계자가 별도로 존재시 작성
- * 작 성 자 : 유동철(ACK)
- * 작 성 일 : 2007.02.22
- * 수정이력 : 최종작성일 기준으로 변경사항 이력관리
- * 기 타 : 주석문에 반영되어야 할 사항 표기
- -->
- <?xml-stylesheet ype="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>
- <prcpupdthist>
- <prcpupdthistlist>
- <instcd/>
- <ptno/>
- <dispptno/>
- <prcpdd/>
- <acptdd/>
- <pid/>
- <patnm/>
- <bfprcpcd/>
- <bfprcpnm/>
- <afprcpcd/>
- <afprcpnm/>
- <bfspccd/>
- <bfspcnm/>
- <afspccd/>
- <afspcnm/>
- <updtdd/>
- <updttm/>
- <updtnm/>
- </prcpupdthistlist>
- </prcpupdthist>
- </main>
- <send>
- <data1/>
- <data2/>
- </send>
- <init>
- <ptnocode/>
- <fromyear/>
- <fromptno/>
- <toyear/>
- <toptno/>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <ptnocd>
- <ptnocdlist>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- </ptnocdlist>
- </ptnocd>
- <seaval/>
- <seamthd/>
- <seaddkind/>
- <fromdd/>
- <todd/>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
- <submission id="TRLPP00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcpupdthist/prcpupdthistlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/datehelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript">
- <![CDATA[
- /* @group : 처방변경이력
- * @ver : 2007.02.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화 Function
- */
- function fExeInitialize() {
- var sCurDate = "";
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/prcpupdthist/prcpupdthistlist");
-
- //-----------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00102", false);
- submit("TRLPZ00109");
-
- //------------------------------------------------------------
- sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
-
- //-----------------------------------------
- model.setValue("/root/init/seaval", ""); // 검색값 초기화
- model.setValue("/root/init/seamthd", "0"); // 검색방법(0:등록번호,1:환자성명,2:처방코드(변경전),3:검체코드(변경전) 초기화
- model.setValue("/root/init/seaddkind", "1"); // 검색일자종류(0:처방일자, 1:접수일자)
- model.setValue("/root/init/fromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.setValue("/root/init/todd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.makeValue("/root/init/ptnocode", "-");
- model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
- model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
- model.makeValue("/root/init/fromptno", "");
- model.makeValue("/root/init/toptno", "");
-
- //-------------
- model.refresh();
- }
-
- /* @group : 처방변경이력
- * @ver : 2007.10.11 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 자료 Excel로 저장 처리 function
- */
- function fExeSaveToExcel() {
- grd_prcpupdthist.saveExcel("C:\\SMLPP00800_처방변경이력.xls", "처방변경이력", false, false);
- messageBox("C:\\SMLPP00800_처방변경이력.xls 파일생성이 ", "I002");
- }
-
- /* @group : 처방변경이력
- * @ver : 2007.10.11 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 처방변경이력 조회 처리 function
- */
- function fGetPrcpUpdtList() {
- var sTemp = "";
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/prcpupdthist/prcpupdthistlist");
-
-
- //--------------------------------------------
- sTemp = model.getValue("/root/init/ptnocode");
-
- //----------------------------------
- if (sTemp.replace("-", "") != "") {
-
- //------------------------------------------------
- if (model.getValue("/root/init/fromyear") == "") {
- model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
- } else {
- sTemp = model.getValue("/root/init/fromyear");
- model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
- }
-
- //----------------------------------------------
- if (model.getValue("/root/init/toyear") == "") {
- model.makeValue("/root/init/toyear", sToDD.substr(2,2));
- } else {
- sTemp = model.getValue("/root/init/toyear");
- model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
- }
-
- //------------------------------------------------
- if (model.getValue("/root/init/fromptno") == "") {
- model.makeValue("/root/init/fromptno", "000000");
- } else {
- sTemp = model.getValue("/root/init/fromptno");
- model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
- }
-
- //----------------------------------------------
- if (model.getValue("/root/init/toptno") == "") {
- model.makeValue("/root/init/toptno", "999999");
- } else {
- sTemp = model.getValue("/root/init/toptno");
- model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
- }
- }
-
- //--------------------------------------------
- sTemp = model.getValue("/root/init/ptnocode");
-
- //---------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/refval", model.getValue("/root/init/seaval"));
- model.makeValue("/root/send/refmthd", model.getValue("/root/init/seamthd"));
- model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
- model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
- model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
- model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
- model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
- model.makeValue("/root/send/refddkind", model.getValue("/root/init/seaddkind"));
- model.makeValue("/root/send/fromdd", model.getValue("/root/init/fromdd"));
- model.makeValue("/root/send/todd", model.getValue("/root/init/todd"));
- submit("TRLPP00801");
- }
-
- /* @group : 처방변경이력
- * @ver : 2008.06.02 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검색값 Enter 처리 function
- */
- function fExeSeaValOnKeyPress() {
-
- if (event.keyCode == 13) {
- model.makeValue("/root/init/seaval", ipt_barcdno.currentText);
- ipt_barcdno.refresh();
-
- //-----------------
- fGetPrcpUpdtList();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1211;2,784;">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">처방변경이력</caption>
- </group>
- <group id="grp_biz" style="left:0px; top:40; width:1195; height:744px; ">
- <caption id="caption6" class="tit_2" style="left:5px; top:55px; width:370px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">처방리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194; y2:70px; "/>
- <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_barcdno" ref="/root/init/seaval" class="input_search" navindex="1" style="left:101px; top:8px; width:99px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeSeaValOnKeyPress();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" autoresize="true" style="left:17px; top:9px; width:78px; height:17px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">검색값 :</caption>
- <caption id="caption4" class="search_no_b" style="left:985px; top:8px; width:21px; height:17px; font-family:굴림체; font-size:10pt; text-align:center; vertical-align:middle; ">~</caption>
- <caption id="caption5" class="search_name" autoresize="true" style="left:799px; top:9px; width:97px; height:17px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">수정일자 :</caption>
- <input id="input3" ref="/root/init/todd" class="input_search" navindex="10" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:1010px; top:8px; width:84px; height:19px; "/>
- <input id="ipt_ddfrom" ref="/root/init/fromdd" class="input_search" navindex="9" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:897px; top:8px; width:84px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:335px; top:9px; width:110px; height:17px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">병리번호 :</caption>
- <select1 id="cmb_trsmdeptcd" ref="/root/init/seamthd" class="combo_search" navindex="2" appearance="minimal" style="left:203px; top:8px; width:97px; height:19px; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>0</value>
- </item>
- <item>
- <label>처방코드(전)</label>
- <value>1</value>
- </item>
- <item>
- <label>검체코드(전)</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="3" appearance="minimal" editmode="search" style="left:432px; top:8px; width:156px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ptnocd/ptnocdlist">
- <label ref="ptnonm"/>
- <value ref="ptnocd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="5" maxlength="6" style="left:621px; top:8px; width:50px; height:19px; "/>
- <caption id="caption7" class="search_no_b" style="left:674px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="input1" ref="/root/init/toptno" class="text_center" navindex="7" maxlength="6" style="left:719px; top:8px; width:50px; height:19px; "/>
- <input id="input2" ref="/root/init/toyear" class="text_center" navindex="6" maxlength="2" style="left:689px; top:8px; width:27px; height:19px; "/>
- <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="4" maxlength="2" style="left:591px; top:8px; width:27px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="11" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPrcpUpdtList();
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_prcpupdthist" nodeset="/root/main/prcpupdthist/prcpupdthistlist" class="datagrid2" autoresize="true" caption="기관코드^병리번호^병리번호^처방일자^접수일자^등록번호^환자성명^변경전
처방코드^변경전
처방명^변경후
처방코드^변경후
처방명^변경전
검체코드^변경전
검체명^변경후
검체코드^변경후
검체명^변경일자^변경시간^변경자" colsep="^" colwidth="0, 0, 90, 70, 70, 70, 80, 60, 94, 60, 94, 60, 90, 60, 90, 70, 60, 70" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="13" style="left:0px; top:75px; width:1194; height:653; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col ref="prcpdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col class="text_center" ref="pid"/>
- <col class="text_center" ref="patnm"/>
- <col ref="bfprcpcd"/>
- <col ref="bfprcpnm"/>
- <col ref="afprcpcd"/>
- <col ref="afprcpnm"/>
- <col class="text_center" ref="bfspccd"/>
- <col ref="bfspcnm"/>
- <col class="text_center" ref="afspccd"/>
- <col ref="afspcnm"/>
- <col ref="updtdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col ref="updttm" format="hh:nn:ss" mask="exclude" showmask="true"/>
- <col ref="updtnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcpupdthist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line9" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="btn_excel" class="btn6_letter5" navindex="13" style="left:5px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSaveToExcel();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|