SPMMP04100_Dummy스텝처방조회.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>필수처방리스트</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <steplist/>
  11. <essprcp/>
  12. <prcp/>
  13. </main>
  14. <init>
  15. <prcpstatcd/>
  16. <prcpclscd/>
  17. <prcpkindcd/>
  18. <payflagcd/>
  19. </init>
  20. <send>
  21. <reqdata>
  22. <cpgno/>
  23. <cpgappno/>
  24. <essflag>D</essflag>
  25. <appyn/>
  26. </reqdata>
  27. </send>
  28. </root>
  29. </instance>
  30. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. zbcfGetCodeList(new Array("M0011", "M0005", "M0003", "M0029"),
  34. new Array("/root/init/prcpstatcd", "/root/init/prcpclscd",
  35. "/root/init/prcpkindcd", "/root/init/payflagcd"));
  36. mmbfGetDeptCodeComboList("/root/temp/reqdata", "/root/orddept", "I");
  37. copyNodesetType("/root/main/steplist", "/root/main/steplist", "replace", model, opener.model);
  38. model.toggle("ess1mode");
  39. //조회 시작
  40. var cpgno = opener.model.getValue("/root/main/masterinfo/info/cpgno");
  41. var cpghistseq = opener.model.getValue("/root/main/masterinfo/info/cpghistseq");
  42. var cpgappno = opener.model.getValue("/root/temp1/getdata/cpgappno");
  43. model.makeValue("/root/send/reqdata/cpgno", cpgno);
  44. model.makeValue("/root/send/reqdata/cpghistseq", cpghistseq);
  45. model.makeValue("/root/send/reqdata/cpgappno", cpgappno);
  46. if( model.getValue("/root/send/reqdata/essflag") == "D" ){
  47. if(submit("TRMMP04101", true)){
  48. //if(instance1.selectNodes("/root/main/essprcpsetinfo/essprcpsetlist").length <= 0 )
  49. //messageBox("필수처방이 존재하지", "I011");
  50. }
  51. }else{
  52. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  53. var orddd = "";
  54. if(prcpgenrflag == "O"){
  55. orddd = opener.model.getValue("/root/paminfo/list/orddd");
  56. }else{
  57. orddd = opener.model.getValue("/root/paminfo/list/indd");
  58. }
  59. model.removeNodeset("/root/main/getdatalist/list");
  60. model.makeValue("/root/send/reqdata/timescond", "1");
  61. model.makeValue("/root/send/reqdata/pid", opener.model.getValue("/root/paminfo/list/pid"));
  62. model.makeValue("/root/send/reqdata/cretno", opener.model.getValue("/root/paminfo/list/cretno"));
  63. model.makeValue("/root/send/reqdata/orddd", orddd);
  64. model.makeValue("/root/send/reqdata/prcpgenrflag", prcpgenrflag);
  65. if(submit("TRMMP04102", true)){
  66. }
  67. }
  68. ]]>
  69. </script>
  70. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  71. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  72. <submission id="TRMMP02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
  73. <submission id="TRMQP01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/essprmsdata" resultref="/root/main/essprcp"/>
  74. <submission id="TRMMP04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/essprcpsetinfo"/>
  75. <!-- TRMMP04102 사용안함, TRMMP02201 재활용 -->
  76. <submission id="TRMMP04102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prcp"/>
  77. </model>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  81. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  82. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  83. </xhtml:head>
  84. <xhtml:body pagewidth="755" pageheight="485" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  85. <button id="button2" class="btn4_letter2" style="left:675px; top:458px; width:56px; height:22px; ">
  86. <caption>닫기</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. window.close();
  90. ]]>
  91. </script>
  92. </button>
  93. <switch id="switch1" style="left:0px; top:0px; width:730px; height:455px; ">
  94. <case id="ess1mode" selected="true">
  95. <caption id="caption2" class="tit_2" style="left:5px; top:170px; width:198px; height:14px; vertical-align:middle; ">필수 처방 정보</caption>
  96. <datagrid id="grd_prcplist" nodeset="/root/main/essprcp/prcplist" caption="^상태^분류^종류^처방코드^처방명^총용량^총용량^수량^수량^횟수^일수^급비^용법/검체^MIX^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자" colsep="^" colwidth="38, 55, 50, 55, 80, 240, 45, 27, 37, 27, 40, 37, 60, 153, 38, 40, 50, 100, 100, 60, 80, 80" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="1" style="left:0px; top:185px; width:725px; height:265px; ">
  97. <col disabled="true" ref="status" type="combo" visibility="hidden" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; focus-rect:visible; ">
  98. <choices>
  99. <item>
  100. <label>검색</label>
  101. <value>S</value>
  102. </item>
  103. <item>
  104. <label>신규</label>
  105. <value>I</value>
  106. </item>
  107. <item>
  108. <label>삭제</label>
  109. <value>D</value>
  110. </item>
  111. <item>
  112. <label>D/C</label>
  113. <value>C</value>
  114. </item>
  115. <item>
  116. <label>-</label>
  117. <value>-</value>
  118. </item>
  119. <item>
  120. <label>수정</label>
  121. <value>U</value>
  122. </item>
  123. </choices>
  124. </col>
  125. <col ref="prcpstatcd" type="combo" visibility="hidden" style="text-align:center; focus-rect:visible; ">
  126. <choices>
  127. <item>
  128. <label/>
  129. <value>-</value>
  130. </item>
  131. <item>
  132. <label>미발행</label>
  133. <value>N</value>
  134. </item>
  135. <item>
  136. <label>발행</label>
  137. <value>Y</value>
  138. </item>
  139. </choices>
  140. </col>
  141. <col ref="prcpclscd" type="combo" visibility="hidden" style="text-align:left; focus-rect:visible; ">
  142. <choices>
  143. <itemset nodeset="/root/init/prcpclscd/M0005">
  144. <label ref="cdnm"/>
  145. <value ref="cdid"/>
  146. </itemset>
  147. </choices>
  148. </col>
  149. <col class="gridcombo" ref="prcpkindcd" type="combo" style="text-align:center; focus-rect:visible; ">
  150. <choices>
  151. <itemset nodeset="/root/init/prcpkindcd/M0003">
  152. <label ref="cdnm"/>
  153. <value ref="cdid"/>
  154. </itemset>
  155. </choices>
  156. </col>
  157. <col ref="prcpcd" type="input" style="text-align:left; focus-rect:visible; "/>
  158. <col ref="prcpnm" type="input" style="text-align:left; focus-rect:visible; "/>
  159. <col ref="prcpvol" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
  160. <col ref="prcpvolunitnm" type="output" style="text-align:center; focus-rect:visible; "/>
  161. <col ref="prcpqty" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
  162. <col ref="prcpqtyunitnm" style="text-align:center; focus-rect:visible; "/>
  163. <col ref="prcptims" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
  164. <col ref="prcpdayno" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
  165. <col ref="payflagcd" type="combo">
  166. <choices>
  167. <itemset nodeset="/root/init/payflagcd/M0029">
  168. <label ref="cdnm"/>
  169. <value ref="cdid"/>
  170. </itemset>
  171. </choices>
  172. </col>
  173. <col ref="drugmthdspccdnm" type="output" style="focus-rect:visible; "/>
  174. <col ref="prcpmixno" type="input" style="focus-rect:visible; "/>
  175. <col ref="prcpdelivefact" style="focus-rect:visible; "/>
  176. <col disabled="true" ref="hosinhosoutflag" type="combo" style="text-align:center; focus-rect:visible; ">
  177. <choices>
  178. <item>
  179. <label>원내</label>
  180. <value>I</value>
  181. </item>
  182. <item>
  183. <label>원외</label>
  184. <value>O</value>
  185. </item>
  186. <item>
  187. <label/>
  188. <value/>
  189. </item>
  190. </choices>
  191. </col>
  192. <col class="gridcombo" disabled="true" ref="prcpexecdeptcd" type="combo" visibility="hidden" style="focus-rect:visible; ">
  193. <choices>
  194. <itemset nodeset="/root/orddept/dept">
  195. <label ref="depthngnm"/>
  196. <value ref="deptcd"/>
  197. </itemset>
  198. </choices>
  199. </col>
  200. <col ref="prcphopedd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; focus-rect:visible; "/>
  201. <col checkvalue="Y,N" ref="choiordflag" type="checkbox" style="focus-rect:visible; "/>
  202. <col ref="rgsttm" visibility="hidden" format="yyyy-mm-dd"/>
  203. <col ref="rgstridnm" visibility="hidden"/>
  204. </datagrid>
  205. <datagrid id="grd_esslist" nodeset="/root/main/essprcpsetinfo/essprcpsetlist" caption="상태^발행일^선택필수명^발행 필수 여부^시작^종료^setno^settypecd^cpgno^cpghistseq^setattrno^setattrhistno^스텝구간" colsep="^" colwidth="91, 75, 362, 100, 85, 85, 0, 0, 0, 0, 0, 0, 170" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:725px; height:130px; ">
  206. <col ref="setappyn" type="combo">
  207. <choices>
  208. <item>
  209. <label/>
  210. <value>-</value>
  211. </item>
  212. <item>
  213. <label>미발행</label>
  214. <value>N</value>
  215. </item>
  216. <item>
  217. <label>발행</label>
  218. <value>Y</value>
  219. </item>
  220. </choices>
  221. </col>
  222. <col ref="prcpdd" format="yyyy-mm-dd"/>
  223. <col ref="setnm" type="output"/>
  224. <col checkvalue="Y,N" ref="issneedyn" type="checkbox"/>
  225. <col ref="fromstepno" type="combo" visibility="hidden">
  226. <choices>
  227. <itemset nodeset="/root/main/steplist/info">
  228. <label ref="stepnm"/>
  229. <value ref="stepno"/>
  230. </itemset>
  231. </choices>
  232. </col>
  233. <col ref="tostepno" type="combo" visibility="hidden">
  234. <choices>
  235. <itemset nodeset="/root/main/steplist/info">
  236. <label ref="stepnm"/>
  237. <value ref="stepno"/>
  238. </itemset>
  239. </choices>
  240. </col>
  241. <col ref="setno"/>
  242. <col ref="settypecd"/>
  243. <col ref="cpgno"/>
  244. <col ref="cpghistseq"/>
  245. <col ref="setattrno"/>
  246. <col ref="setattrhistno"/>
  247. <col ref="steplistnm"/>
  248. <script type="javascript" ev:event="ondblclick">
  249. <![CDATA[
  250. var iRow = grd_esslist.row;
  251. if(iRow>0 && iRow <= grd_esslist.rows){
  252. model.makeNode("/root/send/essprmsdata");
  253. model.makeValue("/root/send/essprmsdata/cond1", model.getValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/setno"));
  254. model.makeValue("/root/send/essprmsdata/cond2", model.getValue("/root/main/essprcpsetinfo/essprcpsetlist["+iRow+"]/settypecd"));
  255. model.makeValue("/root/send/essprmsdata/cpyn", "N");
  256. submit("TRMQP01404");
  257. }
  258. ]]>
  259. </script>
  260. </datagrid>
  261. </case>
  262. <case id="ess2mode">
  263. <datagrid id="datagrid1" nodeset="/root/main/prcp/list" caption="스텝^^상태^발행일^분류^종류^처방코드^처방명^총용량^총용량^수량^수량^횟수^일수^급비^용법/검체^MIX^전달^원내외^시행부서^희망일자^선택진료^등록일시^등록자" colsep="^" colwidth="75, 38, 55, 75, 50, 55, 80, 240, 45, 27, 37, 27, 40, 37, 60, 153, 38, 40, 50, 100, 100, 60, 80, 80" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="1" style="left:0px; top:30px; width:725px; height:420px; ">
  264. <col disabled="true" ref="stepnm" type="output"/>
  265. <col disabled="true" ref="status" type="combo" visibility="hidden" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; focus-rect:visible; ">
  266. <choices>
  267. <item>
  268. <label>검색</label>
  269. <value>S</value>
  270. </item>
  271. <item>
  272. <label>신규</label>
  273. <value>I</value>
  274. </item>
  275. <item>
  276. <label>삭제</label>
  277. <value>D</value>
  278. </item>
  279. <item>
  280. <label>D/C</label>
  281. <value>C</value>
  282. </item>
  283. <item>
  284. <label>-</label>
  285. <value>-</value>
  286. </item>
  287. <item>
  288. <label>수정</label>
  289. <value>U</value>
  290. </item>
  291. </choices>
  292. </col>
  293. <col disabled="true" ref="prcpstatcd" type="combo" style="text-align:center; focus-rect:visible; ">
  294. <choices>
  295. <item>
  296. <label/>
  297. <value>-</value>
  298. </item>
  299. <item>
  300. <label>미발행</label>
  301. <value>N</value>
  302. </item>
  303. <item>
  304. <label>발행</label>
  305. <value>Y</value>
  306. </item>
  307. </choices>
  308. </col>
  309. <col ref="prcpdd" format="yyyy-mm-dd"/>
  310. <col disabled="true" ref="prcpclscd" type="combo" visibility="hidden" style="text-align:left; focus-rect:visible; ">
  311. <choices>
  312. <itemset nodeset="/root/init/prcpclscd/M0005">
  313. <label ref="cdnm"/>
  314. <value ref="cdid"/>
  315. </itemset>
  316. </choices>
  317. </col>
  318. <col class="gridcombo" disabled="true" ref="prcpkindcd" type="combo" style="text-align:center; focus-rect:visible; ">
  319. <choices>
  320. <itemset nodeset="/root/init/prcpkindcd/M0003">
  321. <label ref="cdnm"/>
  322. <value ref="cdid"/>
  323. </itemset>
  324. </choices>
  325. </col>
  326. <col ref="prcpcd" type="input" style="text-align:left; focus-rect:visible; "/>
  327. <col ref="prcpnm" type="input" style="text-align:left; focus-rect:visible; "/>
  328. <col ref="prcpvol" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
  329. <col ref="prcpvolunitnm" type="output" style="text-align:center; focus-rect:visible; "/>
  330. <col ref="prcpqty" type="input" format="#.#" maxlength="5.3" style="text-align:center; focus-rect:visible; "/>
  331. <col ref="prcpqtyunitnm" style="text-align:center; focus-rect:visible; "/>
  332. <col ref="prcptims" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
  333. <col ref="prcpdayno" type="input" format="#" style="text-align:center; focus-rect:visible; "/>
  334. <col ref="payflagcd" type="combo">
  335. <choices>
  336. <itemset nodeset="/root/init/payflagcd/M0029">
  337. <label ref="cdnm"/>
  338. <value ref="cdid"/>
  339. </itemset>
  340. </choices>
  341. </col>
  342. <col ref="drugmthdspccdnm" type="output" style="focus-rect:visible; "/>
  343. <col ref="prcpmixno" type="input" style="focus-rect:visible; "/>
  344. <col ref="prcpdelivefact" style="focus-rect:visible; "/>
  345. <col disabled="true" ref="hosinhosoutflag" type="combo" style="text-align:center; focus-rect:visible; ">
  346. <choices>
  347. <item>
  348. <label>원내</label>
  349. <value>I</value>
  350. </item>
  351. <item>
  352. <label>원외</label>
  353. <value>O</value>
  354. </item>
  355. <item>
  356. <label/>
  357. <value/>
  358. </item>
  359. </choices>
  360. </col>
  361. <col class="gridcombo" disabled="true" ref="prcpexecdeptcd" type="combo" visibility="hidden" style="focus-rect:visible; ">
  362. <choices>
  363. <itemset nodeset="/root/orddept/dept">
  364. <label ref="depthngnm"/>
  365. <value ref="deptcd"/>
  366. </itemset>
  367. </choices>
  368. </col>
  369. <col ref="prcphopedd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; focus-rect:visible; "/>
  370. <col checkvalue="Y,N" ref="choiordflag" type="checkbox" style="focus-rect:visible; "/>
  371. <col ref="rgsttm" visibility="hidden" format="yyyy-mm-dd"/>
  372. <col ref="rgstridnm" visibility="hidden"/>
  373. </datagrid>
  374. </case>
  375. </switch>
  376. <select1 id="radio1" ref="/root/send/reqdata/essflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:130px; top:8px; width:215px; height:20px; border-style:none; ">
  377. <choices>
  378. <item>
  379. <label>선택 필수</label>
  380. <value>D</value>
  381. </item>
  382. <item>
  383. <label>스텝 필수</label>
  384. <value>R</value>
  385. </item>
  386. </choices>
  387. <script type="javascript" ev:event="xforms-value-changed">
  388. <![CDATA[
  389. if( model.getValue("/root/send/reqdata/essflag") == "D" ){
  390. if(submit("TRMMP04101", true)){
  391. //if(instance1.selectNodes("/root/main/essprcpsetinfo/essprcpsetlist").length <= 0 )
  392. //messageBox("필수처방이 존재하지", "I011");
  393. }
  394. model.toggle("ess1mode");
  395. }else{
  396. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  397. var orddd = "";
  398. if(prcpgenrflag == "O"){
  399. orddd = opener.model.getValue("/root/paminfo/list/orddd");
  400. }else{
  401. orddd = opener.model.getValue("/root/paminfo/list/indd");
  402. }
  403. model.removeNodeset("/root/main/getdatalist/list");
  404. model.makeValue("/root/send/reqdata/timescond", "1");
  405. model.makeValue("/root/send/reqdata/pid", opener.model.getValue("/root/paminfo/list/pid"));
  406. model.makeValue("/root/send/reqdata/cretno", opener.model.getValue("/root/paminfo/list/cretno"));
  407. model.makeValue("/root/send/reqdata/orddd", orddd);
  408. model.makeValue("/root/send/reqdata/prcpgenrflag", prcpgenrflag);
  409. if(submit("TRMMP04102", true)){
  410. }
  411. model.toggle("ess2mode");
  412. }
  413. ]]>
  414. </script>
  415. </select1>
  416. <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:110px; height:14px; vertical-align:middle; ">CPG 필수 정보</caption>
  417. </xhtml:body>
  418. </xhtml:html>