SPMMO10400_일괄입력.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  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. <payflagcd/>
  182. </init>
  183. <chkflag>
  184. <erprcpflag/>
  185. <payflagcd/>
  186. <prcpdelivefact/>
  187. <clincstdyflag/>
  188. <anamneflag/>
  189. <prcpexecdeptcd/>
  190. </chkflag>
  191. <temp>
  192. <send/>
  193. <patsupkind/>
  194. </temp>
  195. </root>
  196. </instance>
  197. <script type="javascript" ev:event="xforms-model-construct-done">
  198. <![CDATA[
  199. zbcfGetCodeList(new Array("M0029"),new Array("/root/init/payflagcd"));
  200. fPrcpExecDeptSrch("all");
  201. checkbox4.disabled = true;
  202. checkbox15.disabled = true;
  203. combo3.disabled = true;
  204. textarea1.disabled = true;
  205. combo2.disabled = true;
  206. model.refresh();
  207. ]]>
  208. </script>
  209. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  210. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  211. <submission id="TRMMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/orddept"/>
  212. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  213. </model>
  214. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  215. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  216. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  217. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  218. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  219. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  220. </xhtml:head>
  221. <xhtml:body pagewidth="322" pageheight="210" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  222. <caption id="caption9" class="cell_1" style="left:3px; top:161px; width:100px; height:23px; "/>
  223. <caption id="caption22" class="cell_1" style="left:207px; top:58px; width:90px; height:21px; "/>
  224. <caption id="caption6" class="cell_1" style="left:3px; top:31px; width:100px; height:23px; "/>
  225. <button id="button1" class="btn4_letter2" style="left:189px; top:183px; width:56px; height:22px; ">
  226. <caption>확인</caption>
  227. <script type="javascript" ev:event="onclick">
  228. <![CDATA[
  229. var erprcpflag = "";
  230. var erprcpflag_useyn = "";
  231. var clincstdyflag = "";
  232. var clincstdyflag_useyn = "";
  233. var payflagcd = "";
  234. var payflagcd_useyn = "";
  235. var prcpexecdeptcd = "";
  236. var prcpexecdeptcd_useyn = "";
  237. var anamneflag = "";
  238. var anamneflag_useyn = ""
  239. var prcpdelivefact = "";
  240. var prcpdelivefact_useyn = ""
  241. var subcretno = 0;
  242. var subcretno_useyn = "";
  243. var header = "erprcpflag|clincstdyflag|payflagcd|prcpexecdeptcd|anamneflag|prcpdelivefact|subcretno^";
  244. var useyn = "";
  245. var value = "";
  246. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  247. if ( model.getValue ( "/root/main/prcp/prcplist/erprcpflag" ) == "Y" ) {
  248. erprcpflag_useyn = "Y" + "|";
  249. erprcpflag = "Y" + "|";
  250. } else {
  251. erprcpflag_useyn = "Y" + "|";
  252. erprcpflag = "N" + "|";
  253. }
  254. } else {
  255. erprcpflag_useyn = "N" + "|";
  256. erprcpflag = "" + "|";
  257. }
  258. useyn = useyn + erprcpflag_useyn;
  259. value = value + erprcpflag;
  260. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  261. clincstdyflag_useyn = "Y" + "|";
  262. clincstdyflag = model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ) + "|";
  263. if ( isNull(model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ))) {
  264. clincstdyflag = "N" + "|";
  265. }
  266. } else {
  267. clincstdyflag_useyn = "N" + "|";
  268. clincstdyflag = "" + "|";
  269. }
  270. useyn = useyn + clincstdyflag_useyn ;
  271. value = value + clincstdyflag;
  272. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  273. payflagcd_useyn = "Y" + "|";
  274. payflagcd = model.getValue ( "/root/main/prcp/prcplist/payflagcd" ) + "|";
  275. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/payflagcd" ))) {
  276. model.alert ( "입력된 급여구분 값이 없습니다." ) ;
  277. return;
  278. }
  279. } else {
  280. payflagcd_useyn = "N" + "|";
  281. payflagcd = "" + "|";
  282. }
  283. useyn = useyn + payflagcd_useyn ;
  284. value = value + payflagcd;
  285. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  286. prcpexecdeptcd_useyn = "Y" + "|";
  287. prcpexecdeptcd = model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ) + "|";
  288. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ))) {
  289. model.alert ( "입력된 시행부서 값이 없습니다." ) ;
  290. return;
  291. }
  292. } else {
  293. prcpexecdeptcd_useyn = "N" + "|";
  294. prcpexecdeptcd = "" + "|";
  295. }
  296. useyn = useyn + prcpexecdeptcd_useyn ;
  297. value = value + prcpexecdeptcd;
  298. if( model.getValue ( "/root/chkflag/anamneflag" ) == "Y" ) {
  299. useyn = useyn + "Y" + "|";
  300. value = value + "Y" + "|";
  301. } else {
  302. useyn = useyn + "N" + "|";
  303. value = value + "N" + "|";
  304. }
  305. useyn = useyn + anamneflag_useyn ;
  306. value = value + anamneflag;
  307. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  308. prcpdelivefact_useyn = "Y" + "|";
  309. prcpdelivefact = model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ) + "|";
  310. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ))) {
  311. model.alert ( "입력된 전달사항 값이 없습니다." );
  312. return;
  313. }
  314. } else {
  315. prcpdelivefact_useyn = "N" + "|";
  316. prcpdelivefact = "" + "|";
  317. }
  318. useyn = useyn + prcpdelivefact_useyn ;
  319. value = value + prcpdelivefact;
  320. //2008. 07. 01 기왕증 입력에 따른 subcretno설정, 오지훈
  321. if ( bool2.value == "Y" || model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  322. subcretno_useyn = "Y";
  323. subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
  324. }else{
  325. subcretno_useyn = "N";
  326. }
  327. useyn = useyn + subcretno_useyn + "^";
  328. value = value + subcretno + "^";
  329. var SPMMO10400_rtn1 = header + useyn + value;
  330. opener.javascript.setParameter ( "batipt_rtn1", SPMMO10400_rtn1 );
  331. opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
  332. model.close();
  333. ]]>
  334. </script>
  335. </button>
  336. <button id="button2" class="btn4_letter2" style="left:249px; top:183px; width:56px; height:22px; ">
  337. <caption>취소</caption>
  338. <script type="javascript" ev:event="onclick">
  339. <![CDATA[
  340. opener.javascript.setParameter ( "SPMMO10400_rtn1_useyn", "N" );
  341. model.close();
  342. ]]>
  343. </script>
  344. </button>
  345. <caption id="caption1" class="cell_1" style="left:3px; top:5px; width:100px; height:23px; "/>
  346. <select id="checkbox1" ref="/root/chkflag/erprcpflag" overflow="visible" appearance="full" style="left:8px; top:9px; width:100px; height:20px; border-style:none; ">
  347. <choices>
  348. <item>
  349. <label>응급</label>
  350. <value>Y</value>
  351. </item>
  352. </choices>
  353. <script type="javascript" ev:event="xforms-value-changed">
  354. <![CDATA[
  355. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  356. //checkbox1.item(checkbox1.focusIndex).attribute("color") = "#ff0000";
  357. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
  358. checkbox4.disabled = false;
  359. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "Y" );
  360. model.refresh();
  361. } else {
  362. //checkbox1.item(checkbox1.focusIndex).attribute("color") = "#000000";
  363. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
  364. checkbox4.disabled = true;
  365. model.refresh();
  366. }
  367. ]]>
  368. </script>
  369. </select>
  370. <caption id="caption2" class="cell_1" style="left:3px; top:56px; width:100px; height:23px; "/>
  371. <caption id="caption3" class="cell_1" style="left:3px; top:83px; width:100px; height:75px; "/>
  372. <select id="checkbox2" ref="/root/chkflag/payflagcd" overflow="visible" appearance="full" style="left:8px; top:59px; width:100px; height:20px; border-style:none; ">
  373. <choices>
  374. <item>
  375. <label>급여구분</label>
  376. <value>Y</value>
  377. </item>
  378. </choices>
  379. <script type="javascript" ev:event="xforms-value-changed">
  380. <![CDATA[
  381. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  382. //checkbox2.item(checkbox1.focusIndex).attribute("color") = "#ff0000";
  383. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "bold";
  384. combo3.disabled = false;
  385. model.refresh();
  386. } else {
  387. //checkbox2.item(checkbox1.focusIndex).attribute("color") = "#000000";
  388. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "normal";
  389. combo3.disabled = true;
  390. model.refresh();
  391. }
  392. ]]>
  393. </script>
  394. </select>
  395. <select id="checkbox3" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:8px; top:86px; width:68px; height:25px; border-style:none; ">
  396. <choices>
  397. <item>
  398. <label>전달사항</label>
  399. <value>Y</value>
  400. </item>
  401. </choices>
  402. <script type="javascript" ev:event="xforms-value-changed">
  403. <![CDATA[
  404. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  405. //checkbox3.item(checkbox1.focusIndex).attribute("color") = "#ff0000";
  406. checkbox3.item(checkbox3.focusIndex).attribute("font-weight") = "bold";
  407. textarea1.disabled = false;
  408. model.refresh();
  409. } else {
  410. //checkbox3.item(checkbox1.focusIndex).attribute("color") = "#000000";
  411. checkbox3.item(checkbox3.focusIndex).attribute("font-weight") = "normal";
  412. textarea1.disabled = true;
  413. model.refresh();
  414. }
  415. ]]>
  416. </script>
  417. </select>
  418. <select1 id="combo3" ref="/root/main/prcp/prcplist/payflagcd" class="combo_default" appearance="minimal" style="left:104px; top:59px; width:100px; height:19px; ">
  419. <choices>
  420. <itemset nodeset="/root/init/payflagcd/M0029">
  421. <label ref="cdnm"/>
  422. <value ref="cdid"/>
  423. </itemset>
  424. </choices>
  425. </select1>
  426. <select id="checkbox4" ref="/root/main/prcp/prcplist/erprcpflag" overflow="visible" appearance="full" style="left:103px; top:9px; width:100px; height:20px; border-style:none; ">
  427. <choices>
  428. <item>
  429. <label>응급</label>
  430. <value>Y</value>
  431. </item>
  432. </choices>
  433. </select>
  434. <line id="line15" class="line_2" style="x1:3px; y1:30px; x2:304px; y2:30px; "/>
  435. <line id="line1" class="line_2" style="x1:3px; y1:80px; x2:304px; y2:80px; "/>
  436. <line id="line6" class="line_3" style="x1:3px; y1:158px; x2:304px; y2:158px; "/>
  437. <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:104px; top:83px; width:200px; height:74px; "/>
  438. <line id="line7" class="line_1" style="x1:3px; y1:0px; x2:304px; y2:0px; "/>
  439. <button id="button4" class="icon_search" style="left:80px; top:87px; width:16px; height:16px; ">
  440. <caption/>
  441. <script type="javascript" ev:event="DOMActivate">
  442. <![CDATA[
  443. setParameter ( "SPMMB02200_cond2", "3" );
  444. fPrcpModal ( "SPMMB02200", 50, 50 );
  445. model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
  446. model.refresh();
  447. ]]>
  448. </script>
  449. </button>
  450. <select id="checkbox15" ref="/root/main/prcp/prcplist/clincstdyflag" overflow="visible" appearance="full" style="left:105px; top:36px; width:100px; height:20px; border-style:none; ">
  451. <choices>
  452. <item>
  453. <label>임상연구</label>
  454. <value>Y</value>
  455. </item>
  456. </choices>
  457. </select>
  458. <select id="checkbox7" ref="/root/chkflag/clincstdyflag" overflow="visible" appearance="full" style="left:8px; top:35px; width:100px; height:20px; border-style:none; ">
  459. <choices>
  460. <item>
  461. <label>임상연구</label>
  462. <value>Y</value>
  463. </item>
  464. </choices>
  465. <script type="javascript" ev:event="xforms-value-changed">
  466. <![CDATA[
  467. if( bool2.value == "Y" ){
  468. messageBox ( "임상연구는 기왕증과 동시에 선택 할 수", "I004" );
  469. model.setValue ( "/root/chkflag/clincstdyflag" , "");
  470. model.refresh();
  471. return;
  472. }
  473. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  474. if ( fSubcretnoSet("1", null) == -1 ) {
  475. model.setValue ( "/root/chkflag/clincstdyflag" , "N");
  476. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  477. checkbox15.disabled = true;
  478. checkbox7.disabled = true;
  479. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  480. model.refresh();
  481. return;
  482. }
  483. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "bold";
  484. checkbox15.disabled = false;
  485. checkbox7.disabled = false;
  486. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "Y" );
  487. } else {
  488. fSubcretnoSet("1", null);
  489. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  490. checkbox15.disabled = true;
  491. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  492. }
  493. model.refresh();
  494. ]]>
  495. </script>
  496. </select>
  497. <line id="line2" class="line_2" style="x1:3px; y1:55px; x2:304px; y2:55px; "/>
  498. <bool id="bool2" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:207px; top:59px; width:25px; height:20px; ">
  499. <script type="javascript" ev:event="xforms-value-changed">
  500. <![CDATA[
  501. if( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ){
  502. messageBox ( "기왕증은 임상연구와 동시에 선택 할 수", "I004" );
  503. bool2.value = "N";
  504. return;
  505. }
  506. if(bool2.value == "Y"){
  507. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  508. var pid = opener.model.getValue("/root/paminfo/list/pid");
  509. var indd = opener.model.getValue("/root/paminfo/list/indd");
  510. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  511. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  512. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  513. if(subcretno == "0"){
  514. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  515. bool2.value = "N";
  516. }
  517. } else {
  518. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  519. bool2.value = "N";
  520. }
  521. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  522. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  523. }
  524. ]]>
  525. </script>
  526. </bool>
  527. <caption id="caption23" style="left:229px; top:60px; width:50px; height:20px; ">기왕증</caption>
  528. <select id="checkbox9" ref="/root/chkflag/prcpexecdeptcd" overflow="visible" appearance="full" style="left:7px; top:161px; width:100px; height:20px; border-style:none; ">
  529. <choices>
  530. <item>
  531. <label>시행부서</label>
  532. <value>Y</value>
  533. </item>
  534. </choices>
  535. <script type="javascript" ev:event="xforms-value-changed">
  536. <![CDATA[
  537. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  538. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "bold";
  539. combo2.disabled = false;
  540. model.refresh();
  541. } else {
  542. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "normal";
  543. combo2.disabled = true;
  544. model.refresh();
  545. }
  546. ]]>
  547. </script>
  548. </select>
  549. <select1 id="combo2" ref="/root/main/prcp/prcplist/prcpexecdeptcd" class="combo_default" appearance="minimal" itemcount="30" style="left:105px; top:161px; width:100px; height:19px; ">
  550. <choices>
  551. <itemset nodeset="/root/orddept/dept">
  552. <label ref="depthngnm"/>
  553. <value ref="deptcd"/>
  554. </itemset>
  555. </choices>
  556. </select1>
  557. </xhtml:body>
  558. </xhtml:html>