SPMMO12500_일괄입력수혈.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <prcpdirecflag/>
  182. <payflagcd/>
  183. <drugspd/>
  184. <drugmthdspccdnm/>
  185. <orddept/>
  186. <selfdrugflag/>
  187. <tnsuseflag/>
  188. </init>
  189. <chkflag>
  190. <erprcpflag/>
  191. <prnprcpflag/>
  192. <erreadflag/>
  193. <portprcpflag/>
  194. <precureprcpflag/>
  195. <clincstdyflag/>
  196. <payflagcd/>
  197. <prcphopedd/>
  198. <clinccmtcnts/>
  199. <prcpdelivefact/>
  200. <choiordflag/>
  201. <prcpexecdeptcd/>
  202. <prcpqty/>
  203. <asttestflag/>
  204. <tnsfiltflag/>
  205. <prepprcpflag/>
  206. <tnsuseflag/>
  207. <anamneflag/>
  208. </chkflag>
  209. <orddept/>
  210. <temp>
  211. <send/>
  212. <patsupkind/>
  213. </temp>
  214. </root>
  215. </instance>
  216. <script type="javascript" ev:event="xforms-model-construct-done">
  217. <![CDATA[
  218. // zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
  219. zbcfGetCodeList(new Array("M0039","M0029", "M0044"),new Array("/root/init/tnsuseflag","/root/init/payflagcd", "/root/init/selfdrugflag"));
  220. fPrcpExecDeptSrch("all");
  221. checkbox4.disabled = true;
  222. checkbox10.disabled = true;
  223. combo1.disabled = true;
  224. combo2.disabled = true;
  225. combo3.disabled = true;
  226. input1.disabled = true;
  227. radio1.disabled = true;
  228. radio2.disabled = true;
  229. textarea1.disabled = true;
  230. button4.disabled = true;
  231. //irr 비활성화 병원별 적용(성가요청), cHc, 2009-07-21
  232. if ( opener.model.getValue("/root/initsrch/irrcheckyn/trgtcd") == "Y") {
  233. checkbox2.disabled = true;
  234. }
  235. model.refresh();
  236. ]]>
  237. </script>
  238. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  239. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  240. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  241. <submission id="TRMMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/orddept"/>
  242. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  243. </model>
  244. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  245. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  246. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  247. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  248. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  249. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  250. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  251. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  252. </xhtml:head>
  253. <xhtml:body pagewidth="430" pageheight="270" guideline="2,270;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  254. <caption id="caption22" class="cell_1" style="left:209px; top:177px; width:99px; height:21px; "/>
  255. <caption id="caption9" class="cell_1" style="left:2px; top:176px; width:100px; height:23px; "/>
  256. <caption id="caption5" class="cell_1" style="left:2px; top:148px; width:100px; height:23px; "/>
  257. <caption id="caption12" class="cell_1" style="left:2px; top:121px; width:100px; height:23px; "/>
  258. <caption id="caption11" class="cell_1" style="left:2px; top:204px; width:100px; height:23px; "/>
  259. <button id="button1" class="btn4_letter2" style="left:292px; top:235px; width:56px; height:22px; ">
  260. <caption>확인</caption>
  261. <script type="javascript" ev:event="onclick">
  262. <![CDATA[
  263. var erprcpflag_useyn = "";
  264. var erprcpflag = "";
  265. var payflagcd_useyn = "";
  266. var payflagcd = "";
  267. var prcpqty_useyn = "";
  268. var prcpqty = "";
  269. var asttestflag_useyn = "";
  270. var asttestflag = "";
  271. var selfdrugflag_useyn = "";
  272. var selfdrugflag = "";
  273. var tnsfiltflag_useyn = "";
  274. var tnsfiltflag = "";
  275. var prepprcpflag_useyn = "";
  276. var prepprcpflag = "";
  277. var tnsuseflag_useyn = "";
  278. var tnsuseflag = "";
  279. var prcphopedd_useyn = "";
  280. var prcphopedd = "";
  281. var prcpexecdeptcd_useyn = "";
  282. var prcpexecdeptcd = "";
  283. var prcpdelivefact_useyn = "";
  284. var prcpdelivefact = "";
  285. var useyn = "";
  286. var value = "";
  287. var header = "erprcpflag|payflagcd|prcpqty|asttestflag|selfdrugflag|tnsfiltflag|prepprcpflag|tnsuseflag|prcphopedd|prcpexecdeptcd|prcpdelivefact|anamneflag|subcretno^";
  288. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  289. erprcpflag_useyn = "Y" + "|";
  290. erprcpflag = model.getValue ("/root/main/prcp/prcplist/erprcpflag" ) + "|";
  291. if ( isNull(model.getValue ("/root/main/prcp/prcplist/erprcpflag" ))) {
  292. erprcpflag = "N" + "|";
  293. }
  294. } else {
  295. erprcpflag_useyn = "N" + "|";
  296. erprcpflag = "" + "|";
  297. }
  298. useyn = useyn + erprcpflag_useyn;
  299. value = value + erprcpflag;
  300. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  301. payflagcd_useyn = "Y" + "|";
  302. payflagcd = model.getValue ( "/root/main/prcp/prcplist/payflagcd" ) + "|";
  303. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/payflagcd" ))) {
  304. model.alert ( "입력된 급여구분 값이 없습니다." ) ;
  305. return;
  306. }
  307. } else {
  308. payflagcd_useyn = "N" + "|";
  309. payflagcd = "" + "|";
  310. }
  311. useyn = useyn + payflagcd_useyn ;
  312. value = value + payflagcd;
  313. var prcpqty = "";
  314. if ( model.getValue ( "/root/chkflag/prcpqty" ) == "Y" ) {
  315. prcpqty_useyn = "Y" + "|";
  316. prcpqty = model.getValue ("/root/main/prcp/prcplist/prcpqty" ) + "|";
  317. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prcpqty" ))) {
  318. model.alert ( "입력된 수량이 없습니다." );
  319. return;
  320. }
  321. } else {
  322. prcpqty_useyn = "N" + "|";
  323. prcpqty = "" + "|";
  324. }
  325. useyn = useyn + prcpqty_useyn ;
  326. value = value + prcpqty;
  327. var selfdrugflag = "";
  328. if ( model.getValue ( "/root/chkflag/asttestflag" ) == "Y" ) {
  329. asttestflag_useyn = "Y" + "|";
  330. asttestflag = "Y" + "|";
  331. selfdrugflag_useyn = "Y" + "|";
  332. selfdrugflag = model.getValue ("/root/main/prcp/prcplist/selfdrugflag" ) + "|";
  333. if ( isNull(model.getValue ("/root/main/prcp/prcplist/selfdrugflag" ))) {
  334. model.alert ( "입력된 Irr 급여구분이 없습니다." );
  335. return;
  336. }
  337. } else {
  338. asttestflag_useyn = "N" + "|";
  339. asttestflag = "" + "|";
  340. selfdrugflag_useyn = "N" + "|";
  341. selfdrugflag = "" + "|";
  342. }
  343. useyn = useyn + asttestflag_useyn + selfdrugflag_useyn ;
  344. value = value + asttestflag + selfdrugflag;
  345. if ( model.getValue ( "/root/chkflag/tnsfiltflag" ) == "Y" ) {
  346. tnsfiltflag_useyn = "Y" + "|";
  347. tnsfiltflag = model.getValue ("/root/main/prcp/prcplist/tnsfiltflag" ) + "|";
  348. if ( isNull(model.getValue ("/root/main/prcp/prcplist/tnsfiltflag" ))) {
  349. tnsfiltflag = "N" + "|";
  350. }
  351. } else {
  352. tnsfiltflag_useyn = "N" + "|";
  353. tnsfiltflag = "" + "|";
  354. }
  355. useyn = useyn + tnsfiltflag_useyn;
  356. value = value + tnsfiltflag;
  357. if ( model.getValue ( "/root/chkflag/prepprcpflag" ) == "Y" ) {
  358. prepprcpflag_useyn = "Y" + "|";
  359. prepprcpflag = "Y" + "|";
  360. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prepprcpflag" ))) {
  361. model.alert ( "입력된 Prep,T/F 구분이 없습니다." );
  362. return;
  363. }
  364. } else {
  365. prepprcpflag_useyn = "N" + "|";
  366. prepprcpflag = "" + "|";
  367. }
  368. useyn = useyn + prepprcpflag_useyn;
  369. value = value + prepprcpflag;
  370. if ( model.getValue ( "/root/chkflag/tnsuseflag" ) == "Y" ) {
  371. tnsuseflag_useyn = "Y" + "|";
  372. tnsuseflag = model.getValue ( "/root/main/prcp/prcplist/tnsuseflag" ) + "|";
  373. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/tnsuseflag" ))) {
  374. model.alert ( "입력된 사용목적이 없습니다." ) ;
  375. return;
  376. }
  377. } else {
  378. tnsuseflag_useyn = "N" + "|";
  379. tnsuseflag = "" + "|";
  380. }
  381. useyn = useyn + tnsuseflag_useyn ;
  382. value = value + tnsuseflag;
  383. if ( model.getValue ( "/root/chkflag/prcphopedd" ) == "Y" ) {
  384. prcphopedd_useyn = "Y" + "|";
  385. prcphopedd = model.getValue ("/root/main/prcp/prcplist/prcphopedd" ) + "|";
  386. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prcphopedd" ))) {
  387. model.alert ( "입력된 수혈예정일이 값이 없습니다." );
  388. return;
  389. } else {
  390. if ( !isValidDateTime ( model.getValue ( "/root/main/prcp/prcplist/prcphopedd" ), "YYYYMMDD")) {
  391. model.alert ( "수혈예정일이 유효한 날짜가 아닙니다." );
  392. return;
  393. }
  394. }
  395. } else {
  396. prcphopedd_useyn = "N"+ "|";
  397. prcphopedd = "" + "|";
  398. }
  399. useyn = useyn + prcphopedd_useyn;
  400. value = value + prcphopedd;
  401. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  402. prcpexecdeptcd_useyn = "Y" + "|";
  403. prcpexecdeptcd = model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ) + "|";
  404. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ))) {
  405. model.alert ( "입력된 시행부서가 없습니다." ) ;
  406. return;
  407. }
  408. } else {
  409. prcpexecdeptcd_useyn = "N" + "|";
  410. prcpexecdeptcd = "" + "|";
  411. }
  412. useyn = useyn + prcpexecdeptcd_useyn ;
  413. value = value + prcpexecdeptcd;
  414. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  415. prcpdelivefact_useyn = "Y" + "|";
  416. prcpdelivefact = model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ) + "|";
  417. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ))) {
  418. model.alert ( "입력된 전달사항 값이 없습니다." );
  419. return;
  420. }
  421. } else {
  422. prcpdelivefact_useyn = "N" + "|";
  423. prcpdelivefact = "" + "|";
  424. }
  425. useyn = useyn + prcpdelivefact_useyn ;
  426. value = value + prcpdelivefact;
  427. if( model.getValue ( " /root/chkflag/anamneflag" ) == "Y" ) {
  428. useyn = useyn + "Y" + "|";
  429. value = value + "Y" + "|";
  430. } else {
  431. useyn = useyn + "N" + "|";
  432. value = value + "N" + "|";
  433. }
  434. //2008. 07. 01 기왕증 입력에 따른 subcretno설정, 오지훈
  435. var subcretno_useyn = "";
  436. var subcretno = 0;
  437. if ( bool2.value == "Y") {
  438. subcretno_useyn = "Y";
  439. subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
  440. }else{
  441. subcretno_useyn = "N";
  442. }
  443. useyn = useyn + subcretno_useyn + "^";
  444. value = value + subcretno + "^";
  445. var batipt_rtn1 = header + useyn + value;
  446. opener.javascript.setParameter ( "batipt_rtn1", batipt_rtn1 );
  447. opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
  448. window.close();
  449. ]]>
  450. </script>
  451. </button>
  452. <button id="button2" class="btn4_letter2" style="left:352px; top:235px; width:56px; height:22px; ">
  453. <caption>취소</caption>
  454. <script type="javascript" ev:event="onclick">
  455. <![CDATA[
  456. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  457. window.close();
  458. ]]>
  459. </script>
  460. </button>
  461. <caption id="caption8" class="cell_1" style="left:208px; top:149px; width:100px; height:23px; "/>
  462. <caption id="caption7" class="cell_1" style="left:208px; top:19px; width:100px; height:23px; "/>
  463. <caption id="caption3" class="cell_1" style="left:2px; top:46px; width:100px; height:50px; "/>
  464. <caption id="caption1" class="cell_1" style="left:2px; top:19px; width:100px; height:23px; "/>
  465. <select id="checkbox1" ref="/root/chkflag/erprcpflag" overflow="visible" appearance="full" style="left:7px; top:23px; width:100px; height:20px; border-style:none; ">
  466. <choices>
  467. <item>
  468. <label>응급</label>
  469. <value>Y</value>
  470. </item>
  471. </choices>
  472. <script type="javascript" ev:event="xforms-value-changed">
  473. <![CDATA[
  474. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  475. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
  476. checkbox10.disabled = false;
  477. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "Y" );
  478. model.refresh();
  479. } else {
  480. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
  481. checkbox10.disabled = true;
  482. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "N" );
  483. model.refresh();
  484. }
  485. ]]>
  486. </script>
  487. </select>
  488. <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:48px; width:68px; height:25px; border-style:none; ">
  489. <choices>
  490. <item>
  491. <label>전달사항</label>
  492. <value>Y</value>
  493. </item>
  494. </choices>
  495. <script type="javascript" ev:event="xforms-value-changed">
  496. <![CDATA[
  497. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  498. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "bold";
  499. textarea1.disabled = false;
  500. button4.disabled = false;
  501. model.refresh();
  502. } else {
  503. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "normal";
  504. textarea1.disabled = true;
  505. button4.disabled = true;
  506. model.refresh();
  507. }
  508. ]]>
  509. </script>
  510. </select>
  511. <select1 id="combo1" ref="/root/main/prcp/prcplist/payflagcd" class="combo_default" appearance="minimal" style="left:311px; top:21px; width:100px; height:19px; ">
  512. <choices>
  513. <itemset nodeset="/root/init/payflagcd/M0029">
  514. <label ref="cdnm"/>
  515. <value ref="cdid"/>
  516. </itemset>
  517. </choices>
  518. </select1>
  519. <select id="checkbox8" ref="/root/chkflag/payflagcd" overflow="visible" appearance="full" style="left:213px; top:23px; width:90px; height:15px; border-style:none; ">
  520. <choices>
  521. <item>
  522. <label>급여</label>
  523. <value>Y</value>
  524. </item>
  525. </choices>
  526. <script type="javascript" ev:event="xforms-value-changed">
  527. <![CDATA[
  528. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  529. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "bold";
  530. combo1.disabled = false;
  531. model.refresh();
  532. } else {
  533. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "normal";
  534. combo1.disabled = true;
  535. model.refresh();
  536. }
  537. ]]>
  538. </script>
  539. </select>
  540. <line id="line2" class="line_2" style="x1:2px; y1:44px; x2:411px; y2:44px; "/>
  541. <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:103px; top:46px; width:307px; height:49px; "/>
  542. <input id="input3" ref="/root/main/prcp/prcplist/prcphopedd" class="input_search" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:311px; top:151px; width:100px; height:19px; "/>
  543. <line id="line7" class="line_1" style="x1:2px; y1:14px; x2:411px; y2:14px; "/>
  544. <select id="checkbox9" ref="/root/chkflag/prcphopedd" overflow="visible" appearance="full" style="left:211px; top:153px; width:90px; height:20px; border-style:none; ">
  545. <choices>
  546. <item>
  547. <label>수혈예정일</label>
  548. <value>Y</value>
  549. </item>
  550. </choices>
  551. <script type="javascript" ev:event="xforms-value-changed">
  552. <![CDATA[
  553. if ( model.getValue ( "/root/chkflag/prcphopedd" ) == "Y" ) {
  554. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "bold";
  555. input3.disabled = false;
  556. model.refresh();
  557. } else {
  558. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "normal";
  559. input3.disabled = true;
  560. model.refresh();
  561. }
  562. ]]>
  563. </script>
  564. </select>
  565. <select id="checkbox10" ref="/root/main/prcp/prcplist/erprcpflag" overflow="visible" appearance="full" style="left:105px; top:23px; width:100px; height:20px; border-style:none; ">
  566. <choices>
  567. <item>
  568. <label>응급</label>
  569. <value>Y</value>
  570. </item>
  571. </choices>
  572. </select>
  573. <line id="line4" class="line_3" style="x1:2px; y1:228px; x2:411px; y2:228px; "/>
  574. <caption id="caption18" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">공통</caption>
  575. <line id="line1" class="line_2" style="x1:2px; y1:97px; x2:411px; y2:97px; "/>
  576. <caption id="caption2" class="tit_2" style="left:5px; top:102px; width:121px; height:13px; ">수혈</caption>
  577. <line id="line5" class="line_1" style="x1:2px; y1:116px; x2:411px; y2:116px; "/>
  578. <line id="line6" class="line_2" style="x1:2px; y1:146px; x2:411px; y2:146px; "/>
  579. <select1 id="combo2" ref="/root/main/prcp/prcplist/prcpexecdeptcd" class="combo_default" appearance="minimal" itemcount="30" style="left:105px; top:206px; width:100px; height:19px; ">
  580. <choices>
  581. <itemset nodeset="/root/orddept/dept">
  582. <label ref="depthngnm"/>
  583. <value ref="deptcd"/>
  584. </itemset>
  585. </choices>
  586. </select1>
  587. <select id="checkbox16" ref="/root/chkflag/prcpexecdeptcd" overflow="visible" appearance="full" style="left:7px; top:207px; width:100px; height:20px; border-style:none; ">
  588. <choices>
  589. <item>
  590. <label>시행부서</label>
  591. <value>Y</value>
  592. </item>
  593. </choices>
  594. <script type="javascript" ev:event="xforms-value-changed">
  595. <![CDATA[
  596. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  597. checkbox16.item(checkbox16.focusIndex).attribute("font-weight") = "bold";
  598. combo2.disabled = false;
  599. model.refresh();
  600. } else {
  601. checkbox16.item(checkbox16.focusIndex).attribute("font-weight") = "normal";
  602. combo2.disabled = true;
  603. model.refresh();
  604. }
  605. ]]>
  606. </script>
  607. </select>
  608. <line id="line3" class="line_2" style="x1:2px; y1:172px; x2:410px; y2:172px; "/>
  609. <select id="checkbox21" ref="/root/chkflag/prcpqty" overflow="visible" appearance="full" style="left:7px; top:125px; width:100px; height:20px; border-style:none; ">
  610. <choices>
  611. <item>
  612. <label>수량</label>
  613. <value>Y</value>
  614. </item>
  615. </choices>
  616. <script type="javascript" ev:event="xforms-value-changed">
  617. <![CDATA[
  618. if ( model.getValue ( "/root/chkflag/prcpqty" ) == "Y" ) {
  619. checkbox21.item(0).attribute("font-weight") = "bold";
  620. input1.disabled = false;
  621. model.refresh();
  622. } else {
  623. checkbox21.item(0).attribute("font-weight") = "normal";
  624. input1.disabled = true;
  625. model.refresh();
  626. }
  627. ]]>
  628. </script>
  629. </select>
  630. <input id="input1" ref="/root/main/prcp/prcplist/prcpqty" style="left:103px; top:123px; width:100px; height:19px; "/>
  631. <caption id="caption4" class="cell_1" style="left:208px; top:121px; width:100px; height:23px; "/>
  632. <select id="checkbox2" ref="/root/chkflag/asttestflag" overflow="visible" appearance="full" style="left:211px; top:124px; width:34px; height:20px; border-style:none; ">
  633. <choices>
  634. <item>
  635. <label>Irr</label>
  636. <value>Y</value>
  637. </item>
  638. </choices>
  639. <script type="javascript" ev:event="xforms-value-changed">
  640. <![CDATA[
  641. if ( model.getValue ( "/root/chkflag/asttestflag" ) == "Y" ) {
  642. checkbox2.item(0).attribute("font-weight") = "bold";
  643. radio1.disabled = false;
  644. model.refresh();
  645. } else {
  646. checkbox2.item(0).attribute("font-weight") = "normal";
  647. radio1.disabled = true;
  648. model.refresh();
  649. }
  650. ]]>
  651. </script>
  652. </select>
  653. <select1 id="radio1" ref="/root/main/prcp/prcplist/selfdrugflag" appearance="full" cols="2" overflow="visible" style="left:311px; top:122px; width:100px; height:20px; border-style:none; ">
  654. <choices>
  655. <itemset nodeset="/root/init/selfdrugflag/M0044">
  656. <label ref="cdnm"/>
  657. <value ref="cdid"/>
  658. </itemset>
  659. </choices>
  660. </select1>
  661. <select id="checkbox3" ref="/root/chkflag/tnsfiltflag" overflow="visible" appearance="full" style="left:7px; top:152px; width:100px; height:20px; border-style:none; ">
  662. <choices>
  663. <item>
  664. <label>필터</label>
  665. <value>Y</value>
  666. </item>
  667. </choices>
  668. <script type="javascript" ev:event="xforms-value-changed">
  669. <![CDATA[
  670. if ( model.getValue ( "/root/chkflag/tnsfiltflag" ) == "Y" ) {
  671. checkbox3.item(0).attribute("font-weight") = "bold";
  672. checkbox4.disabled = false;
  673. model.refresh();
  674. } else {
  675. checkbox3.item(0).attribute("font-weight") = "normal";
  676. checkbox4.disabled = true;
  677. model.refresh();
  678. }
  679. ]]>
  680. </script>
  681. </select>
  682. <select id="checkbox4" ref="/root/main/prcp/prcplist/tnsfiltflag" overflow="visible" appearance="full" style="left:105px; top:152px; width:100px; height:20px; border-style:none; ">
  683. <choices>
  684. <item>
  685. <label>필터</label>
  686. <value>Y</value>
  687. </item>
  688. </choices>
  689. </select>
  690. <select id="checkbox6" ref="/root/chkflag/prepprcpflag" visibility="hidden" appearance="full" style="left:191px; top:97px; width:100px; height:20px; border-style:none; ">
  691. <choices>
  692. <item>
  693. <label>Prep,T/F</label>
  694. <value>Y</value>
  695. </item>
  696. </choices>
  697. <script type="javascript" ev:event="xforms-value-changed">
  698. <![CDATA[
  699. if ( model.getValue ( "/root/chkflag/prepprcpflag" ) == "Y" ) {
  700. checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "bold";
  701. radio2.disabled = false;
  702. model.refresh();
  703. } else {
  704. checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "normal";
  705. radio2.disabled = true;
  706. model.refresh();
  707. }
  708. ]]>
  709. </script>
  710. </select>
  711. <select1 id="radio2" ref="/root/main/prcp/prcplist/prepprcpflag" visibility="hidden" appearance="full" cols="2" style="left:311px; top:96px; width:100px; height:20px; border-style:none; ">
  712. <choices>
  713. <item>
  714. <label>Prep</label>
  715. <value>Y</value>
  716. </item>
  717. <item>
  718. <label>T/F</label>
  719. <value>N</value>
  720. </item>
  721. </choices>
  722. </select1>
  723. <line id="line8" class="line_2" style="x1:2px; y1:174px; x2:411px; y2:174px; "/>
  724. <select id="checkbox7" ref="/root/chkflag/tnsuseflag" overflow="visible" appearance="full" style="left:7px; top:180px; width:100px; height:20px; border-style:none; ">
  725. <choices>
  726. <item>
  727. <label>사용목적</label>
  728. <value>Y</value>
  729. </item>
  730. </choices>
  731. <script type="javascript" ev:event="xforms-value-changed">
  732. <![CDATA[
  733. if ( model.getValue ( "/root/chkflag/tnsuseflag" ) == "Y" ) {
  734. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "bold";
  735. combo3.disabled = false;
  736. model.refresh();
  737. } else {
  738. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  739. combo3.disabled = true;
  740. model.refresh();
  741. }
  742. ]]>
  743. </script>
  744. </select>
  745. <select1 id="combo3" ref="/root/main/prcp/prcplist/tnsuseflag" appearance="minimal" style="left:105px; top:178px; width:100px; height:19px; ">
  746. <choices>
  747. <itemset nodeset="/root/init/tnsuseflag/M0039">
  748. <label ref="cdnm"/>
  749. <value ref="cdid"/>
  750. </itemset>
  751. </choices>
  752. </select1>
  753. <line id="line9" class="line_2" style="x1:2px; y1:201px; x2:411px; y2:201px; "/>
  754. <button id="button4" class="icon_search" style="left:78px; top:50px; width:16px; height:16px; ">
  755. <caption/>
  756. <script type="javascript" ev:event="DOMActivate">
  757. <![CDATA[
  758. setParameter ( "SPMMB02200_cond2", "3" );
  759. fPrcpModal ( "SPMMB02200", 50, 50 );
  760. model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
  761. model.refresh();
  762. ]]>
  763. </script>
  764. </button>
  765. <bool id="bool2" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:207px; top:178px; width:25px; height:20px; ">
  766. <script type="javascript" ev:event="xforms-value-changed">
  767. <![CDATA[
  768. if(bool2.value == "Y"){
  769. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  770. var pid = opener.model.getValue("/root/paminfo/list/pid");
  771. var indd = opener.model.getValue("/root/paminfo/list/indd");
  772. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  773. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  774. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  775. if(subcretno == "0"){
  776. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  777. bool2.value = "N";
  778. }
  779. } else {
  780. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  781. bool2.value = "N";
  782. }
  783. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  784. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  785. }
  786. ]]>
  787. </script>
  788. </bool>
  789. <caption id="caption23" style="left:231px; top:179px; width:50px; height:20px; ">기왕증</caption>
  790. </xhtml:body>
  791. </xhtml:html>