SPMMO13600_일괄입력재료.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  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. <prcpdirecflag/>
  182. <payflagcd/>
  183. <drugspd/>
  184. <drugmthdspccdnm/>
  185. <opansflagcd/>
  186. <angioflagcd/>
  187. <orddept/>
  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. <nigtprcpflag/>
  201. <choiordflag/>
  202. <opansflagcd/>
  203. <angioflagcd/>
  204. <prcpexecdeptcd/>
  205. <drugmthdspccd/>
  206. <anamneflag/>
  207. </chkflag>
  208. <orddept/>
  209. <temp>
  210. <send/>
  211. <patsupkind/>
  212. </temp>
  213. </root>
  214. </instance>
  215. <script type="javascript" ev:event="xforms-model-construct-done">
  216. <![CDATA[
  217. // zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
  218. zbcfGetCodeList(new Array("M0029"),new Array("/root/init/payflagcd"));
  219. fPrcpExecDeptSrch("all");
  220. checkbox10.disabled = true;
  221. checkbox15.disabled = true;
  222. combo1.disabled = true;
  223. // combo2.disabled = true;
  224. combo3.disabled = true;
  225. button4.disabled = true;
  226. textarea1.disabled = true;
  227. model.refresh();
  228. ]]>
  229. </script>
  230. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  231. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  232. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  233. <submission id="TRMMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/orddept"/>
  234. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  235. </model>
  236. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  237. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  238. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  239. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  240. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  241. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  242. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  243. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  244. </xhtml:head>
  245. <xhtml:body pagewidth="430" pageheight="230" guideline="2,210;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  246. <caption id="caption22" class="cell_1" style="left:2px; top:44px; width:100px; height:21px; "/>
  247. <caption id="caption13" class="cell_1" style="left:2px; top:142px; width:100px; height:23px; "/>
  248. <caption id="caption2" class="cell_1" style="left:207px; top:142px; width:100px; height:23px; "/>
  249. <button id="button1" class="btn4_letter2" style="left:294px; top:171px; width:56px; height:22px; ">
  250. <caption>확인</caption>
  251. <script type="javascript" ev:event="onclick">
  252. <![CDATA[
  253. var erprcpflag_useyn = "";
  254. var erprcpflag = "";
  255. var nigtprcpflag_useyn = "";
  256. var nigtprcpflag = "";
  257. var opansflagcd_useyn = "";
  258. var opansflagcd = "";
  259. var tempcol1_useyn = "";
  260. var tempcol1 = "";
  261. var payflagcd_useyn = "";
  262. var payflagcd = "";
  263. var clincstdyflag_useyn = "";
  264. var clincstdyflag = "";
  265. var prcpexecdeptcd_useyn = "";
  266. var prcpexecdeptcd = "";
  267. var prcpdelivefact_useyn = "";
  268. var prcpdelivefact = "";
  269. var useyn = "";
  270. var value = "";
  271. var header = "erprcpflag|nigtprcpflag|angioflagcd|payflagcd|clincstdyflag|prcpexecdeptcd|anamneflag|prcpdelivefactt|subcretno^";
  272. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  273. erprcpflag_useyn = "Y" + "|";
  274. erprcpflag = model.getValue ("/root/main/prcp/prcplist/erprcpflag" ) + "|";
  275. if ( isNull(model.getValue ("/root/main/prcp/prcplist/erprcpflag" ))) {
  276. erprcpflag = "N" + "|";
  277. }
  278. } else {
  279. erprcpflag_useyn = "N" + "|";
  280. erprcpflag = "" + "|";
  281. }
  282. useyn = useyn + erprcpflag_useyn;
  283. value = value + erprcpflag;
  284. if ( model.getValue ( "/root/chkflag/nigtprcpflag" ) == "Y" ) {
  285. nigtprcpflag_useyn = "Y" + "|";
  286. nigtprcpflag = model.getValue ("/root/main/prcp/prcplist/nigtprcpflag" ) + "|";
  287. if ( isNull(model.getValue ("/root/main/prcp/prcplist/nigtprcpflag" ))) {
  288. nigtprcpflag = "N" + "|";
  289. }
  290. } else {
  291. nigtprcpflag_useyn = "N" + "|";
  292. nigtprcpflag = "" + "|";
  293. }
  294. useyn = useyn + nigtprcpflag_useyn ;
  295. value = value + nigtprcpflag;
  296. if ( model.getValue ( "/root/chkflag/angioflagcd" ) == "Y" ) {
  297. angioflagcd_useyn = "Y" + "|";
  298. tempcol1_useyn = "Y" + "|";
  299. angioflagcd = model.getValue ( "/root/main/prcp/prcplist/angioflagcd" ) + "|";
  300. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/angioflagcd" ))) {
  301. model.alert ( "입력된 Angio구분 값이 없습니다." ) ;
  302. return;
  303. } else {
  304. //tempcol1 = combo2.label + "|";
  305. }
  306. } else {
  307. angioflagcd_useyn = "N" + "|";
  308. angioflagcd = "" + "|";
  309. tempcol1_useyn = "N" + "|";
  310. tempcol1 = "" + "|";
  311. }
  312. useyn = useyn + angioflagcd_useyn ;
  313. value = value + angioflagcd;
  314. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  315. payflagcd_useyn = "Y" + "|";
  316. payflagcd = model.getValue ( "/root/main/prcp/prcplist/payflagcd" ) + "|";
  317. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/payflagcd" ))) {
  318. model.alert ( "입력된 급여구분 값이 없습니다." ) ;
  319. return;
  320. }
  321. } else {
  322. payflagcd_useyn = "N" + "|";
  323. payflagcd = "" + "|";
  324. }
  325. useyn = useyn + payflagcd_useyn ;
  326. value = value + payflagcd;
  327. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  328. clincstdyflag_useyn = "Y" + "|";
  329. clincstdyflag = model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ) + "|";
  330. if ( isNull(model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ))) {
  331. clincstdyflag = "N" + "|";
  332. }
  333. } else {
  334. clincstdyflag_useyn = "N" + "|";
  335. clincstdyflag = "" + "|";
  336. }
  337. useyn = useyn + clincstdyflag_useyn ;
  338. value = value + clincstdyflag;
  339. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  340. prcpexecdeptcd_useyn = "Y" + "|";
  341. prcpexecdeptcd = model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ) + "|";
  342. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ))) {
  343. model.alert ( "입력된 시행부서가 없습니다." ) ;
  344. return;
  345. }
  346. } else {
  347. prcpexecdeptcd_useyn = "N" + "|";
  348. prcpexecdeptcd = "" + "|";
  349. }
  350. useyn = useyn + prcpexecdeptcd_useyn ;
  351. value = value + prcpexecdeptcd;
  352. if( model.getValue ( " /root/chkflag/anamneflag" ) == "Y" ) {
  353. useyn = useyn + "Y" + "|";
  354. value = value + "Y" + "|";
  355. } else {
  356. useyn = useyn + "N" + "|";
  357. value = value + "N" + "|";
  358. }
  359. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  360. prcpdelivefact_useyn = "Y" + "|";
  361. prcpdelivefact = model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ) + "|";
  362. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ))) {
  363. model.alert ( "입력된 전달사항 값이 없습니다." );
  364. return;
  365. }
  366. } else {
  367. prcpdelivefact_useyn = "N" + "|";
  368. prcpdelivefact = "" + "|";
  369. }
  370. useyn = useyn + prcpdelivefact_useyn ;
  371. value = value + prcpdelivefact;
  372. //2008. 07. 01 기왕증 입력에 따른 subcretno설정, 오지훈
  373. var subcretno_useyn = "";
  374. var subcretno = 0;
  375. if ( bool2.value == "Y" || model.getValue("/root/chkflag/clincstdyflag") == "Y") {
  376. subcretno_useyn = "Y";
  377. subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
  378. }else{
  379. subcretno_useyn = "N";
  380. }
  381. useyn = useyn + subcretno_useyn + "^";
  382. value = value + subcretno + "^";
  383. var batipt_rtn1 = header + useyn + value;
  384. opener.javascript.setParameter ( "batipt_rtn1", batipt_rtn1 );
  385. opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
  386. window.close();
  387. ]]>
  388. </script>
  389. </button>
  390. <button id="button2" class="btn4_letter2" style="left:354px; top:171px; width:56px; height:22px; ">
  391. <caption>취소</caption>
  392. <script type="javascript" ev:event="onclick">
  393. <![CDATA[
  394. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  395. window.close();
  396. ]]>
  397. </script>
  398. </button>
  399. <caption id="caption7" class="cell_1" style="left:207px; top:19px; width:100px; height:23px; "/>
  400. <caption id="caption3" class="cell_1" style="left:2px; top:68px; width:100px; height:50px; "/>
  401. <caption id="caption1" class="cell_1" style="left:2px; top:19px; width:100px; height:23px; "/>
  402. <select id="checkbox1" ref="/root/chkflag/erprcpflag" overflow="visible" appearance="full" style="left:7px; top:23px; width:100px; height:20px; border-style:none; ">
  403. <choices>
  404. <item>
  405. <label>응급</label>
  406. <value>Y</value>
  407. </item>
  408. </choices>
  409. <script type="javascript" ev:event="xforms-value-changed">
  410. <![CDATA[
  411. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  412. if(getUserInfo("dutplceinstcd") == "031") { // 본원 재료 처방 응급 불가 하도록 수정. 공급실 채선자 요청 2012.05.08 엄영만
  413. messageBox ( "재료처방은 응급을 선택 할 수 없습니다.\n\n응급분출이 필요할 경우 처방 입력 후\n진료재료파트에 선불출을 요청 하십시오.", "I999" );
  414. model.setValue ( "/root/chkflag/erprcpflag" , "");
  415. model.refresh();
  416. return;
  417. }
  418. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
  419. checkbox10.disabled = false;
  420. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "Y" );
  421. model.refresh();
  422. } else {
  423. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
  424. checkbox10.disabled = true;
  425. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "N" );
  426. model.refresh();
  427. }
  428. ]]>
  429. </script>
  430. </select>
  431. <line id="line15" class="line_2" style="x1:2px; y1:66px; x2:410px; y2:66px; "/>
  432. <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:71px; width:68px; height:25px; border-style:none; ">
  433. <choices>
  434. <item>
  435. <label>전달사항</label>
  436. <value>Y</value>
  437. </item>
  438. </choices>
  439. <script type="javascript" ev:event="xforms-value-changed">
  440. <![CDATA[
  441. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  442. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "bold";
  443. textarea1.disabled = false;
  444. button4.disabled = false;
  445. model.refresh();
  446. } else {
  447. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "normal";
  448. textarea1.disabled = true;
  449. button4.disabled = true;
  450. model.refresh();
  451. }
  452. ]]>
  453. </script>
  454. </select>
  455. <select1 id="combo1" ref="/root/main/prcp/prcplist/payflagcd" class="combo_default" appearance="minimal" style="left:310px; top:21px; width:100px; height:19px; ">
  456. <choices>
  457. <itemset nodeset="/root/init/payflagcd/M0029">
  458. <label ref="cdnm"/>
  459. <value ref="cdid"/>
  460. </itemset>
  461. </choices>
  462. </select1>
  463. <select id="checkbox8" ref="/root/chkflag/payflagcd" overflow="visible" appearance="full" style="left:212px; top:23px; width:100px; height:20px; border-style:none; ">
  464. <choices>
  465. <item>
  466. <label>급여</label>
  467. <value>Y</value>
  468. </item>
  469. </choices>
  470. <script type="javascript" ev:event="xforms-value-changed">
  471. <![CDATA[
  472. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  473. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "bold";
  474. combo1.disabled = false;
  475. model.refresh();
  476. } else {
  477. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "normal";
  478. combo1.disabled = true;
  479. model.refresh();
  480. }
  481. ]]>
  482. </script>
  483. </select>
  484. <line id="line2" class="line_2" style="x1:2px; y1:118px; x2:410px; y2:118px; "/>
  485. <line id="line3" class="line_2" style="x1:2px; y1:66px; x2:409px; y2:66px; "/>
  486. <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:103px; top:68px; width:307px; height:49px; "/>
  487. <line id="line7" class="line_1" style="x1:2px; y1:14px; x2:410px; y2:14px; "/>
  488. <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; ">
  489. <choices>
  490. <item>
  491. <label>응급</label>
  492. <value>Y</value>
  493. </item>
  494. </choices>
  495. </select>
  496. <line id="line4" class="line_3" style="x1:2px; y1:167px; x2:409px; y2:167px; "/>
  497. <caption id="caption18" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">공통</caption>
  498. <caption id="caption8" class="tit_2" style="left:5px; top:123px; width:121px; height:13px; ">재료</caption>
  499. <line id="line5" class="line_1" style="x1:2px; y1:137px; x2:410px; y2:137px; "/>
  500. <select id="checkbox15" ref="/root/main/prcp/prcplist/clincstdyflag" overflow="visible" appearance="full" style="left:309px; top:145px; width:100px; height:20px; border-style:none; ">
  501. <choices>
  502. <item>
  503. <label>임상연구</label>
  504. <value>Y</value>
  505. </item>
  506. </choices>
  507. </select>
  508. <select id="checkbox4" ref="/root/chkflag/clincstdyflag" overflow="visible" appearance="full" style="left:212px; top:146px; width:100px; height:20px; border-style:none; ">
  509. <choices>
  510. <item>
  511. <label>임상연구</label>
  512. <value>Y</value>
  513. </item>
  514. </choices>
  515. <script type="javascript" ev:event="xforms-value-changed">
  516. <![CDATA[
  517. if( bool2.value == "Y" ){
  518. messageBox ( "임상연구는 기왕증과 동시에 선택 할 수", "I004" );
  519. model.setValue ( "/root/chkflag/clincstdyflag" , "");
  520. model.refresh();
  521. return;
  522. }
  523. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  524. if ( fSubcretnoSet("1", null) == -1 ) {
  525. model.setValue ( "/root/chkflag/clincstdyflag" , "N");
  526. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "normal";
  527. checkbox15.disabled = true;
  528. checkbox4.disabled = true;
  529. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  530. model.refresh();
  531. return;
  532. }
  533. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "bold";
  534. checkbox15.disabled = false;
  535. checkbox4.disabled = false;
  536. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "Y" );
  537. model.refresh();
  538. } else {
  539. fSubcretnoSet("1", null);
  540. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "normal";
  541. checkbox15.disabled = true;
  542. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  543. model.refresh();
  544. }
  545. ]]>
  546. </script>
  547. </select>
  548. <select1 id="combo3" ref="/root/main/prcp/prcplist/prcpexecdeptcd" class="combo_default" appearance="minimal" itemcount="30" style="left:105px; top:144px; width:100px; height:19px; ">
  549. <choices>
  550. <itemset nodeset="/root/orddept/dept">
  551. <label ref="depthngnm"/>
  552. <value ref="deptcd"/>
  553. </itemset>
  554. </choices>
  555. </select1>
  556. <select id="checkbox18" ref="/root/chkflag/prcpexecdeptcd" overflow="visible" appearance="full" style="left:7px; top:145px; width:100px; height:20px; border-style:none; ">
  557. <choices>
  558. <item>
  559. <label>시행부서</label>
  560. <value>Y</value>
  561. </item>
  562. </choices>
  563. <script type="javascript" ev:event="xforms-value-changed">
  564. <![CDATA[
  565. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  566. checkbox18.item(checkbox18.focusIndex).attribute("font-weight") = "bold";
  567. combo3.disabled = false;
  568. model.refresh();
  569. } else {
  570. checkbox18.item(checkbox18.focusIndex).attribute("font-weight") = "normal";
  571. combo3.disabled = true;
  572. model.refresh();
  573. }
  574. ]]>
  575. </script>
  576. </select>
  577. <button id="button4" class="icon_search" style="left:80px; top:71px; width:16px; height:16px; ">
  578. <caption/>
  579. <script type="javascript" ev:event="DOMActivate">
  580. <![CDATA[
  581. setParameter ( "SPMMB02200_cond2", "3" );
  582. fPrcpModal ( "SPMMB02200", 50, 50 );
  583. model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
  584. model.refresh();
  585. ]]>
  586. </script>
  587. </button>
  588. <button id="btn_srchexecdept" class="icon_search" style="left:84px; top:144px; width:16px; height:16px; ">
  589. <caption/>
  590. <script type="javascript" ev:event="DOMActivate">
  591. <![CDATA[
  592. modal("SPMMB02500");
  593. ]]>
  594. </script>
  595. </button>
  596. <bool id="bool2" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:3px; top:45px; width:25px; height:20px; ">
  597. <script type="javascript" ev:event="xforms-value-changed">
  598. <![CDATA[
  599. if( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ){
  600. messageBox ( "기왕증은 임상연구와 동시에 선택 할 수", "I004" );
  601. bool2.value = "N";
  602. return;
  603. }
  604. if(bool2.value == "Y"){
  605. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  606. var pid = opener.model.getValue("/root/paminfo/list/pid");
  607. var indd = opener.model.getValue("/root/paminfo/list/indd");
  608. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  609. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  610. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  611. if(subcretno == "0"){
  612. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  613. bool2.value = "N";
  614. }
  615. } else {
  616. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  617. bool2.value = "N";
  618. }
  619. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  620. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  621. }
  622. ]]>
  623. </script>
  624. </bool>
  625. <caption id="caption23" style="left:25px; top:46px; width:50px; height:20px; ">기왕증</caption>
  626. </xhtml:body>
  627. </xhtml:html>