SPMMO12700_일괄입력식이.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  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. <prcp>
  11. <prcplist>
  12. <status/>
  13. <prcpstatcd/>
  14. <prcpclscd/>
  15. <prcpkindcd/>
  16. <prcpcd/>
  17. <prcpnm/>
  18. <prcpvol/>
  19. <prcpvolunitnm/>
  20. <prcpqty/>
  21. <prcpqtyunitnm/>
  22. <prcptims/>
  23. <prcpdayno/>
  24. <drugmthdspccdnm/>
  25. <prcpmixno/>
  26. <payflagcd/>
  27. <prcpdelivefact/>
  28. <hosinhosoutflag/>
  29. <prcpexecdeptcd/>
  30. <prcphopedd/>
  31. <choiordflag/>
  32. <rgstdt/>
  33. <rgstridnm/>
  34. <testrsltunit/>
  35. <testrsltcnts/>
  36. <prcpgenrflag/>
  37. <prcphistcd/>
  38. <tempprcpflag/>
  39. <prcpsetcd/>
  40. <prcpvolunitflag/>
  41. <prcpqtyunitflag/>
  42. <orgprcpqty/>
  43. <drugspd/>
  44. <drugspdunitflag/>
  45. <powdflag/>
  46. <prnprcpflag/>
  47. <prepprcpflag/>
  48. <selfprcpflag/>
  49. <selfdrugflag/>
  50. <drugpackflag/>
  51. <erprcpflag/>
  52. <precureprcpflag/>
  53. <nigtprcpflag/>
  54. <portprcpflag/>
  55. <fixprcpflag/>
  56. <anamneflag/>
  57. <fastprcpflag/>
  58. <erreadflag/>
  59. <prcpdirecflag/>
  60. <tnsuseflag/>
  61. <tnsfiltflag/>
  62. <trnptbftestflag/>
  63. <offictourhealexamflag/>
  64. <stemcellflag/>
  65. <angioflagcd/>
  66. <opansflagcd/>
  67. <ansttm/>
  68. <mealcalrcnts/>
  69. <mealprotcnts/>
  70. <mealupdtflag/>
  71. <hosinprcpresncd/>
  72. <etcprcpresncd/>
  73. <drugmthdspccd/>
  74. <issdeptcd/>
  75. <prcpauthflag/>
  76. <prcpinptflag/>
  77. <prcpsignflag/>
  78. <rateprcpflag/>
  79. <prcprefseq/>
  80. <ordreqlnkno/>
  81. <testreqlnkno/>
  82. <prcplnkdd/>
  83. <prcplnkno/>
  84. <oprsrvno/>
  85. <tootfact/>
  86. <clinccmtcnts/>
  87. <prcpessninptflag/>
  88. <grupsnglflag/>
  89. <drugrateqty/>
  90. <asttestflag/>
  91. <clincstdyflag/>
  92. <prtlno/>
  93. <clincstdycd/>
  94. <optermcd/>
  95. <prcpflag/>
  96. <hscttempprcpflag/>
  97. <inclprcpcd/>
  98. <inclprcpno/>
  99. <pampkspec/>
  100. <prcppkspec/>
  101. <calcscormastspec/>
  102. <drugmastspec/>
  103. <rateprcpspec/>
  104. <matrsetprcpspec/>
  105. <suppdeptspec/>
  106. <contprcpspec/>
  107. <etclnkspec/>
  108. <srchcondcnts/>
  109. <orgprcpnm/>
  110. <chkcol/>
  111. <hsctdelivepos/>
  112. <hsctlnkno/>
  113. <etcprcpflag/>
  114. <aftcertflag/>
  115. <aftcertdrid/>
  116. <prcpvalidd/>
  117. <insukind/>
  118. <specdrid/>
  119. <anticncrprtlno/>
  120. <anticncrdayno/>
  121. <druglnkno/>
  122. <rehbprcpcurefreqflag/>
  123. <dietprcpgenrflag/>
  124. <irpayflag/>
  125. <irflag/>
  126. <procerdietflag/>
  127. <diagtestconttestintvlflag/>
  128. <drugindependpackflag/>
  129. <diagtestconttestbasetm/>
  130. <diagtestconttestorgtims/>
  131. <ermediscmngtresncd/>
  132. <rehbprcpenddd/>
  133. <matrallsizespecid/>
  134. <rehbprcpcurepartcd/>
  135. <lowdrugresncd/>
  136. <tfdtlcd/>
  137. <dnorreqlnkno/>
  138. <subcretno/>
  139. <exptmthdfact/>
  140. <lowdrugresnetcfact/>
  141. <diagtestconttestcdspec/>
  142. <drprcpetc1/>
  143. <drprcpetc2/>
  144. <drprcpetc3/>
  145. <drprcpetc4/>
  146. <drprcpetc5/>
  147. <drprcpetc6/>
  148. <drprcpetc7/>
  149. <drprcpetc8/>
  150. <drprcpetc9/>
  151. <drprcpetc10/>
  152. <tempcol1/>
  153. <tempcol2/>
  154. <tempcol3/>
  155. <tempcol4/>
  156. <tempcol5/>
  157. <tempcol6/>
  158. <tempcol7/>
  159. <tempcol8/>
  160. <tempcol9/>
  161. <tempcol10/>
  162. <tempcol11/>
  163. <tempcol12/>
  164. <tempcol13/>
  165. <tempcol14/>
  166. <tempcol15/>
  167. <tempcol16/>
  168. <tempcol17/>
  169. <tempcol18/>
  170. <tempcol19/>
  171. <tempcol20/>
  172. <tempcol21/>
  173. <tempcol22/>
  174. <tempcol23/>
  175. <tempcol24/>
  176. <tempcol25/>
  177. </prcplist>
  178. </prcp>
  179. </main>
  180. <init/>
  181. <chkflag>
  182. <drugpackflag/>
  183. <prcpdelivefact/>
  184. <anamneflag/>
  185. </chkflag>
  186. <temp>
  187. <send/>
  188. <patsupkind/>
  189. </temp>
  190. </root>
  191. </instance>
  192. <script type="javascript" ev:event="xforms-model-construct-done">
  193. <![CDATA[
  194. checkbox10.disabled = true;
  195. textarea1.disabled = true;
  196. button61.disabled = true;
  197. model.refresh();
  198. ]]>
  199. </script>
  200. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  201. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  202. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  203. </model>
  204. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  205. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  206. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  207. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  208. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  209. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  210. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  211. </xhtml:head>
  212. <xhtml:body pagewidth="430" pageheight="85" guideline="2,91;2,59;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  213. <caption id="caption22" class="cell_1" style="left:208px; top:59px; width:86px; height:21px; "/>
  214. <button id="button1" class="btn4_letter2" style="left:297px; top:60px; width:56px; height:22px; ">
  215. <caption>확인</caption>
  216. <script type="javascript" ev:event="onclick">
  217. <![CDATA[
  218. var drugpackflag_useyn = "";
  219. var drugpackflag = "";
  220. var prcpdelivefact_useyn = "";
  221. var prcpdelivefact = "";
  222. var useyn = "";
  223. var value = "";
  224. var header = "drugpackflag|anamneflag|prcpdelivefact|subcretno^";
  225. if ( model.getValue ( "/root/chkflag/drugpackflag" ) == "Y" ) {
  226. drugpackflag_useyn = "Y" + "|";
  227. drugpackflag = model.getValue ("/root/main/prcp/prcplist/drugpackflag" ) + "|";
  228. if ( isNull(model.getValue ("/root/main/prcp/prcplist/drugpackflag" ))) {
  229. drugpackflag = "N" + "|";
  230. }
  231. } else {
  232. drugpackflag_useyn = "N" + "|";
  233. drugpackflag = "" + "|";
  234. }
  235. useyn = useyn + drugpackflag_useyn;
  236. value = value + drugpackflag;
  237. if( model.getValue ( " /root/chkflag/anamneflag" ) == "Y" ) {
  238. useyn = useyn + "Y" + "|";
  239. value = value + "Y" + "|";
  240. } else {
  241. useyn = useyn + "N" + "|";
  242. value = value + "N" + "|";
  243. }
  244. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  245. prcpdelivefact_useyn = "Y" + "|";
  246. prcpdelivefact = model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ) + "|";
  247. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ))) {
  248. model.alert ( "입력된 전달사항 값이 없습니다." );
  249. return;
  250. }
  251. } else {
  252. prcpdelivefact_useyn = "N" + "|";
  253. prcpdelivefact = "" + "|";
  254. }
  255. useyn = useyn + prcpdelivefact_useyn ;
  256. value = value + prcpdelivefact;
  257. //2008. 07. 01 기왕증 입력에 따른 subcretno설정, 오지훈
  258. var subcretno_useyn = "";
  259. var subcretno = 0;
  260. if ( bool2.value == "Y") {
  261. subcretno_useyn = "Y";
  262. subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
  263. }else{
  264. subcretno_useyn = "N";
  265. }
  266. useyn = useyn + subcretno_useyn + "^";
  267. value = value + subcretno + "^";
  268. var batipt_rtn1 = header + useyn + value;
  269. opener.javascript.setParameter ( "batipt_rtn1", batipt_rtn1 );
  270. opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
  271. window.close();
  272. ]]>
  273. </script>
  274. </button>
  275. <button id="button2" class="btn4_letter2" style="left:354px; top:61px; width:56px; height:22px; ">
  276. <caption>취소</caption>
  277. <script type="javascript" ev:event="onclick">
  278. <![CDATA[
  279. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  280. window.close();
  281. ]]>
  282. </script>
  283. </button>
  284. <caption id="caption3" class="cell_1" style="left:2px; top:5px; width:100px; height:50px; "/>
  285. <select id="checkbox1" ref="/root/chkflag/drugpackflag" visibility="hidden" overflow="visible" appearance="full" style="left:7px; top:59px; width:100px; height:20px; border-style:none; ">
  286. <choices>
  287. <item>
  288. <label>보호자식</label>
  289. <value>Y</value>
  290. </item>
  291. </choices>
  292. <script type="javascript" ev:event="xforms-value-changed">
  293. <![CDATA[
  294. if ( model.getValue ( "/root/chkflag/drugpackflag" ) == "Y" ) {
  295. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
  296. checkbox10.disabled = false;
  297. model.refresh();
  298. } else {
  299. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
  300. checkbox10.disabled = true;
  301. model.refresh();
  302. }
  303. ]]>
  304. </script>
  305. </select>
  306. <line id="line15" class="line_2" style="x1:2px; y1:3px; x2:410px; y2:3px; "/>
  307. <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:5px; width:73px; height:25px; border-style:none; ">
  308. <choices>
  309. <item>
  310. <label>전달사항</label>
  311. <value>Y</value>
  312. </item>
  313. </choices>
  314. <script type="javascript" ev:event="xforms-value-changed">
  315. <![CDATA[
  316. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  317. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "bold";
  318. //textarea1.disabled = false;
  319. fPrcpModal ( "SPMMO11400", "10", "100" );
  320. button61.disabled = false;
  321. model.refresh();
  322. } else {
  323. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "normal";
  324. //textarea1.disabled = true;
  325. button61.disabled = true;
  326. model.refresh();
  327. }
  328. ]]>
  329. </script>
  330. </select>
  331. <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" disabled="true" style="left:103px; top:5px; width:307px; height:49px; "/>
  332. <line id="line7" class="line_1" style="x1:2px; y1:0px; x2:410px; y2:0px; "/>
  333. <select id="checkbox10" ref="/root/main/prcp/prcplist/drugpackflag" visibility="hidden" overflow="visible" appearance="full" style="left:105px; top:59px; width:100px; height:20px; border-style:none; ">
  334. <choices>
  335. <item>
  336. <label>보호자식</label>
  337. <value>Y</value>
  338. </item>
  339. </choices>
  340. </select>
  341. <line id="line4" class="line_3" style="x1:2px; y1:55px; x2:409px; y2:55px; "/>
  342. <button id="button61" class="icon_search" style="left:85px; top:6px; width:16px; height:16px; ">
  343. <caption/>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. fPrcpModal ( "SPMMO11400", "10", "100" );
  347. ]]>
  348. </script>
  349. </button>
  350. <bool id="bool2" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:208px; top:59px; width:25px; height:20px; ">
  351. <script type="javascript" ev:event="xforms-value-changed">
  352. <![CDATA[
  353. if(bool2.value == "Y"){
  354. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  355. var pid = opener.model.getValue("/root/paminfo/list/pid");
  356. var indd = opener.model.getValue("/root/paminfo/list/indd");
  357. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  358. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  359. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  360. if(subcretno == "0"){
  361. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  362. bool2.value = "N";
  363. }
  364. } else {
  365. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  366. bool2.value = "N";
  367. }
  368. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  369. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  370. }
  371. ]]>
  372. </script>
  373. </bool>
  374. <caption id="caption23" style="left:230px; top:59px; width:50px; height:20px; ">기왕증</caption>
  375. </xhtml:body>
  376. </xhtml:html>