SMLPP00800_처방변경이력.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPP00800_처방변경이력.xfm
  4. * 설 명 : 처방변경이력
  5. * 설 계 자 : 설계자가 별도로 존재시 작성
  6. * 작 성 자 : 유동철(ACK)
  7. * 작 성 일 : 2007.02.22
  8. * 수정이력 : 최종작성일 기준으로 변경사항 이력관리
  9. * 기 타 : 주석문에 반영되어야 할 사항 표기
  10. -->
  11. <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>처방변경이력</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <prcpupdthist>
  20. <prcpupdthistlist>
  21. <instcd/>
  22. <ptno/>
  23. <dispptno/>
  24. <prcpdd/>
  25. <acptdd/>
  26. <pid/>
  27. <patnm/>
  28. <bfprcpcd/>
  29. <bfprcpnm/>
  30. <afprcpcd/>
  31. <afprcpnm/>
  32. <bfspccd/>
  33. <bfspcnm/>
  34. <afspccd/>
  35. <afspcnm/>
  36. <updtdd/>
  37. <updttm/>
  38. <updtnm/>
  39. </prcpupdthistlist>
  40. </prcpupdthist>
  41. </main>
  42. <send>
  43. <data1/>
  44. <data2/>
  45. </send>
  46. <init>
  47. <ptnocode/>
  48. <fromyear/>
  49. <fromptno/>
  50. <toyear/>
  51. <toptno/>
  52. <sysdt>
  53. <sysdtinfo>
  54. <sysdd/>
  55. <systm/>
  56. </sysdtinfo>
  57. </sysdt>
  58. <ptnocd>
  59. <ptnocdlist>
  60. <instcd/>
  61. <ptnocd/>
  62. <ptnonm/>
  63. </ptnocdlist>
  64. </ptnocd>
  65. <seaval/>
  66. <seamthd/>
  67. <seaddkind/>
  68. <fromdd/>
  69. <todd/>
  70. </init>
  71. <hidden/>
  72. </root>
  73. </instance>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. fExeInitialize();
  77. ]]>
  78. </script>
  79. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  80. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  81. <submission id="TRLPP00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcpupdthist/prcpupdthistlist"/>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/datehelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  87. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  88. <script type="javascript">
  89. <![CDATA[
  90. /* @group : 처방변경이력
  91. * @ver : 2007.02.22 (CMCDEV-0001)
  92. * @by : 유동철(ACK)
  93. * @-----------------------------------
  94. * @type : function
  95. * @access : public
  96. * @desc : 초기화 Function
  97. */
  98. function fExeInitialize() {
  99. var sCurDate = "";
  100. //--------------------------------
  101. model.removeNodeset("/root/send");
  102. model.removeNodeset("/root/main/prcpupdthist/prcpupdthistlist");
  103. //-----------------------------------------------------------------
  104. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  105. submit("TRLPZ00102", false);
  106. submit("TRLPZ00109");
  107. //------------------------------------------------------------
  108. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  109. //-----------------------------------------
  110. model.setValue("/root/init/seaval", ""); // 검색값 초기화
  111. model.setValue("/root/init/seamthd", "0"); // 검색방법(0:등록번호,1:환자성명,2:처방코드(변경전),3:검체코드(변경전) 초기화
  112. model.setValue("/root/init/seaddkind", "1"); // 검색일자종류(0:처방일자, 1:접수일자)
  113. model.setValue("/root/init/fromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  114. model.setValue("/root/init/todd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  115. model.makeValue("/root/init/ptnocode", "-");
  116. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  117. model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
  118. model.makeValue("/root/init/fromptno", "");
  119. model.makeValue("/root/init/toptno", "");
  120. //-------------
  121. model.refresh();
  122. }
  123. /* @group : 처방변경이력
  124. * @ver : 2007.10.11 (CMCDEV-0001)
  125. * @by : 유동철(ACK)
  126. * @-----------------------------------
  127. * @type : function
  128. * @access : public
  129. * @desc : 그리드 자료 Excel로 저장 처리 function
  130. */
  131. function fExeSaveToExcel() {
  132. grd_prcpupdthist.saveExcel("C:\\SMLPP00800_처방변경이력.xls", "처방변경이력", false, false);
  133. messageBox("C:\\SMLPP00800_처방변경이력.xls 파일생성이 ", "I002");
  134. }
  135. /* @group : 처방변경이력
  136. * @ver : 2007.10.11 (CMCDEV-0001)
  137. * @by : 유동철(ACK)
  138. * @-----------------------------------
  139. * @type : function
  140. * @access : public
  141. * @desc : 처방변경이력 조회 처리 function
  142. */
  143. function fGetPrcpUpdtList() {
  144. var sTemp = "";
  145. //--------------------------------
  146. model.removeNodeset("/root/send");
  147. model.removeNodeset("/root/main/prcpupdthist/prcpupdthistlist");
  148. //--------------------------------------------
  149. sTemp = model.getValue("/root/init/ptnocode");
  150. //----------------------------------
  151. if (sTemp.replace("-", "") != "") {
  152. //------------------------------------------------
  153. if (model.getValue("/root/init/fromyear") == "") {
  154. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  155. } else {
  156. sTemp = model.getValue("/root/init/fromyear");
  157. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  158. }
  159. //----------------------------------------------
  160. if (model.getValue("/root/init/toyear") == "") {
  161. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  162. } else {
  163. sTemp = model.getValue("/root/init/toyear");
  164. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  165. }
  166. //------------------------------------------------
  167. if (model.getValue("/root/init/fromptno") == "") {
  168. model.makeValue("/root/init/fromptno", "000000");
  169. } else {
  170. sTemp = model.getValue("/root/init/fromptno");
  171. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  172. }
  173. //----------------------------------------------
  174. if (model.getValue("/root/init/toptno") == "") {
  175. model.makeValue("/root/init/toptno", "999999");
  176. } else {
  177. sTemp = model.getValue("/root/init/toptno");
  178. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  179. }
  180. }
  181. //--------------------------------------------
  182. sTemp = model.getValue("/root/init/ptnocode");
  183. //---------------------------------------------------------------------
  184. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  185. model.makeValue("/root/send/refval", model.getValue("/root/init/seaval"));
  186. model.makeValue("/root/send/refmthd", model.getValue("/root/init/seamthd"));
  187. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  188. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  189. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  190. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  191. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  192. model.makeValue("/root/send/refddkind", model.getValue("/root/init/seaddkind"));
  193. model.makeValue("/root/send/fromdd", model.getValue("/root/init/fromdd"));
  194. model.makeValue("/root/send/todd", model.getValue("/root/init/todd"));
  195. submit("TRLPP00801");
  196. }
  197. /* @group : 처방변경이력
  198. * @ver : 2008.06.02 (CMCDEV-0001)
  199. * @by : 유동철(ACK)
  200. * @-----------------------------------
  201. * @type : function
  202. * @access : public
  203. * @desc : 검색값 Enter 처리 function
  204. */
  205. function fExeSeaValOnKeyPress() {
  206. if (event.keyCode == 13) {
  207. model.makeValue("/root/init/seaval", ipt_barcdno.currentText);
  208. ipt_barcdno.refresh();
  209. //-----------------
  210. fGetPrcpUpdtList();
  211. }
  212. }
  213. ]]>
  214. </script>
  215. </xhtml:head>
  216. <xhtml:body guideline="1,1211;2,784;">
  217. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  218. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">처방변경이력</caption>
  219. </group>
  220. <group id="grp_biz" style="left:0px; top:40; width:1195; height:744px; ">
  221. <caption id="caption6" class="tit_2" style="left:5px; top:55px; width:370px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">처방리스트</caption>
  222. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194; y2:70px; "/>
  223. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  224. <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; "/>
  225. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  226. <input id="ipt_barcdno" ref="/root/init/seaval" class="input_search" navindex="1" style="left:101px; top:8px; width:99px; height:19px; ">
  227. <script type="javascript" ev:event="onkeypress">
  228. <![CDATA[
  229. fExeSeaValOnKeyPress();
  230. ]]>
  231. </script>
  232. </input>
  233. <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>
  234. <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>
  235. <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>
  236. <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; "/>
  237. <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; "/>
  238. <caption id="caption3" class="search_name" style="left:335px; top:9px; width:110px; height:17px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">병리번호 :</caption>
  239. <select1 id="cmb_trsmdeptcd" ref="/root/init/seamthd" class="combo_search" navindex="2" appearance="minimal" style="left:203px; top:8px; width:97px; height:19px; ">
  240. <choices>
  241. <item>
  242. <label>등록번호</label>
  243. <value>0</value>
  244. </item>
  245. <item>
  246. <label>처방코드(전)</label>
  247. <value>1</value>
  248. </item>
  249. <item>
  250. <label>검체코드(전)</label>
  251. <value>2</value>
  252. </item>
  253. </choices>
  254. </select1>
  255. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="3" appearance="minimal" editmode="search" style="left:432px; top:8px; width:156px; height:19px; ">
  256. <choices>
  257. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  258. <label ref="ptnonm"/>
  259. <value ref="ptnocd"/>
  260. </itemset>
  261. </choices>
  262. </select1>
  263. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="5" maxlength="6" style="left:621px; top:8px; width:50px; height:19px; "/>
  264. <caption id="caption7" class="search_no_b" style="left:674px; top:8px; width:12px; height:17px; ">~</caption>
  265. <input id="input1" ref="/root/init/toptno" class="text_center" navindex="7" maxlength="6" style="left:719px; top:8px; width:50px; height:19px; "/>
  266. <input id="input2" ref="/root/init/toyear" class="text_center" navindex="6" maxlength="2" style="left:689px; top:8px; width:27px; height:19px; "/>
  267. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="4" maxlength="2" style="left:591px; top:8px; width:27px; height:19px; "/>
  268. <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; ">
  269. <caption>조회</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. fGetPrcpUpdtList();
  273. ]]>
  274. </script>
  275. </button>
  276. </group>
  277. <datagrid id="grd_prcpupdthist" nodeset="/root/main/prcpupdthist/prcpupdthistlist" class="datagrid2" autoresize="true" caption="기관코드^병리번호^병리번호^처방일자^접수일자^등록번호^환자성명^변경전&#xA;처방코드^변경전&#xA;처방명^변경후&#xA;처방코드^변경후&#xA;처방명^변경전&#xA;검체코드^변경전&#xA;검체명^변경후&#xA;검체코드^변경후&#xA;검체명^변경일자^변경시간^변경자" 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; ">
  278. <col ref="instcd"/>
  279. <col ref="ptno"/>
  280. <col class="text_center" ref="dispptno"/>
  281. <col ref="prcpdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  282. <col ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  283. <col class="text_center" ref="pid"/>
  284. <col class="text_center" ref="patnm"/>
  285. <col ref="bfprcpcd"/>
  286. <col ref="bfprcpnm"/>
  287. <col ref="afprcpcd"/>
  288. <col ref="afprcpnm"/>
  289. <col class="text_center" ref="bfspccd"/>
  290. <col ref="bfspcnm"/>
  291. <col class="text_center" ref="afspccd"/>
  292. <col ref="afspcnm"/>
  293. <col ref="updtdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  294. <col ref="updttm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  295. <col ref="updtnm"/>
  296. <script type="javascript" ev:event="onaftersort">
  297. <![CDATA[
  298. grd_prcpupdthist.gridToInstance();
  299. ]]>
  300. </script>
  301. </datagrid>
  302. </group>
  303. <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  304. <line id="line9" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  305. <button id="btn_excel" class="btn6_letter5" navindex="13" style="left:5px; top:3px; width:92px; height:22px; ">
  306. <caption>EXCEL저장</caption>
  307. <script type="javascript" ev:event="DOMActivate">
  308. <![CDATA[
  309. fExeSaveToExcel();
  310. ]]>
  311. </script>
  312. </button>
  313. </group>
  314. </xhtml:body>
  315. </xhtml:html>