SPMMO13800_일괄입력처치.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  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. <userlist/>
  187. </init>
  188. <chkflag>
  189. <erprcpflag/>
  190. <prnprcpflag/>
  191. <erreadflag/>
  192. <portprcpflag/>
  193. <precureprcpflag/>
  194. <clincstdyflag/>
  195. <payflagcd/>
  196. <prcphopedd/>
  197. <clinccmtcnts/>
  198. <prcpdelivefact/>
  199. <choiordflag/>
  200. <prcpexecdeptcd/>
  201. <anamneflag/>
  202. </chkflag>
  203. <orddept/>
  204. <temp>
  205. <send/>
  206. <patsupkind/>
  207. </temp>
  208. </root>
  209. </instance>
  210. <script type="javascript" ev:event="xforms-model-construct-done">
  211. <![CDATA[
  212. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
  213. zbcfGetCodeList(new Array("M0029"), new Array("/root/init/payflagcd"));
  214. fPrcpExecDeptSrch("all");
  215. checkbox10.disabled = true;
  216. checkbox14.disabled = true;
  217. checkbox15.disabled = true;
  218. button4.disabled = true;
  219. combo1.disabled = true;
  220. combo2.disabled = true;
  221. textarea1.disabled = true;
  222. model.refresh();
  223. ]]>
  224. </script>
  225. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  226. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  227. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  228. <submission id="TRMMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/orddept"/>
  229. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  230. </model>
  231. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  232. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  233. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  234. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  235. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  236. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  237. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  238. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  239. </xhtml:head>
  240. <xhtml:body pagewidth="430" pageheight="240" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  241. <caption id="caption22" class="cell_1" style="left:2px; top:98px; width:100px; height:21px; "/>
  242. <caption id="caption11" class="cell_1" style="left:2px; top:173px; width:100px; height:23px; "/>
  243. <caption id="caption9" class="cell_1" style="left:207px; top:146px; width:100px; height:23px; "/>
  244. <button id="button1" class="btn4_letter2" style="left:290px; top:205px; width:56px; height:22px; ">
  245. <caption>확인</caption>
  246. <script type="javascript" ev:event="onclick">
  247. <![CDATA[
  248. var erprcpflag_useyn = "";
  249. var erprcpflag = "";
  250. var prnprcpflag_useyn = "";
  251. var prnprcpflag = "";
  252. var erreadflag_useyn = "";
  253. var erreadflag = "";
  254. var clincstdyflag_useyn = "";
  255. var clincstdyflag = "";
  256. var payflagcd_useyn = "";
  257. var payflagcd = "";
  258. var prcphopedd_useyn = "";
  259. var prcphopedd = "";
  260. var precureprcpflag_useyn = "";
  261. var precureprcpflag = "";
  262. var prcpexecdeptcd_useyn = "";
  263. var prcpexecdeptcd = "";
  264. var prcpdelivefact_useyn = "";
  265. var prcpdelivefact = "";
  266. var useyn = "";
  267. var value = "";
  268. var header = "erprcpflag|prnprcpflag|erreadflag|clincstdyflag|payflagcd|prcphopedd|precureprcpflag|prcpexecdeptcd|anamneflag|prcpdelivefactt|subcretno^";
  269. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  270. erprcpflag_useyn = "Y" + "|";
  271. erprcpflag = model.getValue ("/root/main/prcp/prcplist/erprcpflag" ) + "|";
  272. if ( isNull(model.getValue ("/root/main/prcp/prcplist/erprcpflag" ))) {
  273. erprcpflag = "N" + "|";
  274. }
  275. } else {
  276. erprcpflag_useyn = "N" + "|";
  277. erprcpflag = "" + "|";
  278. }
  279. useyn = useyn + erprcpflag_useyn;
  280. value = value + erprcpflag;
  281. if ( model.getValue ( "/root/chkflag/prnprcpflag" ) == "Y" ) {
  282. prnprcpflag_useyn = "Y" + "|";
  283. prnprcpflag = model.getValue ("/root/main/prcp/prcplist/prnprcpflag" ) + "|";
  284. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prnprcpflag" ))) {
  285. prnprcpflag = "N" + "|";
  286. }
  287. } else {
  288. prnprcpflag_useyn = "N" + "|";
  289. prnprcpflag = "" + "|";
  290. }
  291. useyn = useyn + prnprcpflag_useyn ;
  292. value = value + prnprcpflag;
  293. if ( model.getValue ( "/root/chkflag/erreadflag" ) == "Y" ) {
  294. erreadflag_useyn = "Y" + "|";
  295. erreadflag = model.getValue ("/root/main/prcp/prcplist/erreadflag" ) + "|";
  296. if ( isNull(model.getValue ("/root/main/prcp/prcplist/erreadflag" ))) {
  297. erreadflag = "N" + "|";
  298. }
  299. } else {
  300. erreadflag_useyn = "N" + "|";
  301. erreadflag = "" + "|";
  302. }
  303. useyn = useyn + erreadflag_useyn ;
  304. value = value + erreadflag;
  305. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  306. clincstdyflag_useyn = "Y" + "|";
  307. clincstdyflag = model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ) + "|";
  308. if ( isNull(model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ))) {
  309. clincstdyflag = "N" + "|";
  310. }
  311. } else {
  312. clincstdyflag_useyn = "N" + "|";
  313. clincstdyflag = "" + "|";
  314. }
  315. useyn = useyn + clincstdyflag_useyn ;
  316. value = value + clincstdyflag;
  317. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  318. payflagcd_useyn = "Y" + "|";
  319. payflagcd = model.getValue ( "/root/main/prcp/prcplist/payflagcd" ) + "|";
  320. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/payflagcd" ))) {
  321. model.alert ( "입력된 급여구분 값이 없습니다." ) ;
  322. return;
  323. }
  324. } else {
  325. payflagcd_useyn = "N" + "|";
  326. payflagcd = "" + "|";
  327. }
  328. useyn = useyn + payflagcd_useyn ;
  329. value = value + payflagcd;
  330. if ( model.getValue ( "/root/chkflag/prcphopedd" ) == "Y" ) {
  331. prcphopedd_useyn = "Y" + "|";
  332. prcphopedd = model.getValue ("/root/main/prcp/prcplist/prcphopedd" ) + "|";
  333. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prcphopedd" ))) {
  334. model.alert ( "입력된 검사희망일이 값이 없습니다." );
  335. return;
  336. } else {
  337. if ( !isValidDateTime ( model.getValue ( "/root/main/prcp/prcplist/prcphopedd" ), "YYYYMMDD")) {
  338. model.alert ( "검사희망일이 유효한 날짜가 아닙니다." );
  339. return;
  340. }
  341. }
  342. } else {
  343. prcphopedd_useyn = "N"+ "|";
  344. prcphopedd = "" + "|";
  345. }
  346. useyn = useyn + prcphopedd_useyn;
  347. value = value + prcphopedd;
  348. if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
  349. precureprcpflag_useyn = "Y" + "|";
  350. precureprcpflag = model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ) + "|";
  351. if ( isNull(model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ))) {
  352. precureprcpflag = "N" + "|";
  353. }
  354. } else {
  355. precureprcpflag_useyn = "N" + "|";
  356. precureprcpflag = "" + "|";
  357. }
  358. useyn = useyn + precureprcpflag_useyn ;
  359. value = value + precureprcpflag;
  360. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  361. prcpexecdeptcd_useyn = "Y" + "|";
  362. prcpexecdeptcd = model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ) + "|";
  363. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ))) {
  364. model.alert ( "입력된 시행부서가 없습니다." ) ;
  365. return;
  366. }
  367. } else {
  368. prcpexecdeptcd_useyn = "N" + "|";
  369. prcpexecdeptcd = "" + "|";
  370. }
  371. useyn = useyn + prcpexecdeptcd_useyn ;
  372. value = value + prcpexecdeptcd;
  373. if( model.getValue ( " /root/chkflag/anamneflag" ) == "Y" ) {
  374. useyn = useyn + "Y" + "|";
  375. value = value + "Y" + "|";
  376. } else {
  377. useyn = useyn + "N" + "|";
  378. value = value + "N" + "|";
  379. }
  380. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  381. prcpdelivefact_useyn = "Y" + "^";
  382. prcpdelivefact = model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ) + "^";
  383. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ))) {
  384. model.alert ( "입력된 전달사항 값이 없습니다." );
  385. return;
  386. }
  387. } else {
  388. prcpdelivefact_useyn = "N"+ "|";
  389. prcpdelivefact = ""+ "|";
  390. }
  391. useyn = useyn + prcpdelivefact_useyn ;
  392. value = value + prcpdelivefact;
  393. //2008. 07. 01 기왕증 입력에 따른 subcretno설정, 오지훈
  394. var subcretno_useyn = "";
  395. var subcretno = 0;
  396. if ( bool2.value == "Y" || model.getValue("/root/chkflag/clincstdyflag") == "Y") {
  397. subcretno_useyn = "Y";
  398. subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
  399. }else{
  400. subcretno_useyn = "N";
  401. }
  402. useyn = useyn + subcretno_useyn + "^";
  403. value = value + subcretno + "^";
  404. var batipt_rtn1 = header + useyn + value;
  405. opener.javascript.setParameter ( "batipt_rtn1", batipt_rtn1 );
  406. opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
  407. window.close();
  408. ]]>
  409. </script>
  410. </button>
  411. <button id="button2" class="btn4_letter2" style="left:350px; top:205px; width:56px; height:22px; ">
  412. <caption>취소</caption>
  413. <script type="javascript" ev:event="onclick">
  414. <![CDATA[
  415. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  416. window.close();
  417. ]]>
  418. </script>
  419. </button>
  420. <caption id="caption7" class="cell_1" style="left:207px; top:19px; width:100px; height:23px; "/>
  421. <caption id="caption6" class="cell_1" style="left:2px; top:146px; width:100px; height:23px; "/>
  422. <caption id="caption3" class="cell_1" style="left:2px; top:46px; width:100px; height:50px; "/>
  423. <caption id="caption1" class="cell_1" style="left:2px; top:19px; width:100px; height:23px; "/>
  424. <select id="checkbox1" ref="/root/chkflag/erprcpflag" overflow="visible" appearance="full" style="left:7px; top:23px; width:100px; height:20px; border-style:none; ">
  425. <choices>
  426. <item>
  427. <label>응급</label>
  428. <value>Y</value>
  429. </item>
  430. </choices>
  431. <script type="javascript" ev:event="xforms-value-changed">
  432. <![CDATA[
  433. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  434. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
  435. checkbox10.disabled = false;
  436. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "Y" );
  437. model.refresh();
  438. } else {
  439. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
  440. checkbox10.disabled = true;
  441. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "N" );
  442. model.refresh();
  443. }
  444. ]]>
  445. </script>
  446. </select>
  447. <line id="line15" class="line_2" style="x1:2px; y1:43px; x2:410px; y2:43px; "/>
  448. <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:46px; width:68px; height:25px; border-style:none; ">
  449. <choices>
  450. <item>
  451. <label>전달사항</label>
  452. <value>Y</value>
  453. </item>
  454. </choices>
  455. <script type="javascript" ev:event="xforms-value-changed">
  456. <![CDATA[
  457. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  458. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "bold";
  459. textarea1.disabled = false;
  460. button4.disabled = false;
  461. model.refresh();
  462. } else {
  463. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "normal";
  464. textarea1.disabled = true;
  465. button4.disabled = true;
  466. model.refresh();
  467. }
  468. ]]>
  469. </script>
  470. </select>
  471. <select id="checkbox7" ref="/root/chkflag/clincstdyflag" overflow="visible" appearance="full" style="left:7px; top:150px; width:100px; height:20px; border-style:none; ">
  472. <choices>
  473. <item>
  474. <label>임상연구</label>
  475. <value>Y</value>
  476. </item>
  477. </choices>
  478. <script type="javascript" ev:event="xforms-value-changed">
  479. <![CDATA[
  480. if( bool2.value == "Y" ){
  481. messageBox ( "임상연구는 기왕증과 동시에 선택 할 수", "I004" );
  482. model.setValue ( "/root/chkflag/clincstdyflag" , "");
  483. model.refresh();
  484. return;
  485. }
  486. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  487. if ( fSubcretnoSet("1", null) == -1 ) {
  488. model.setValue ( "/root/chkflag/clincstdyflag" , "N");
  489. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  490. checkbox15.disabled = true;
  491. checkbox7.disabled = true;
  492. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  493. model.refresh();
  494. return;
  495. }
  496. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "bold";
  497. checkbox15.disabled = false;
  498. checkbox7.disabled = false;
  499. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "Y" );
  500. model.refresh();
  501. } else {
  502. fSubcretnoSet("1", null);
  503. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  504. checkbox15.disabled = true;
  505. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  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:310px; 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:212px; top:24px; width:100px; height:20px; 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:410px; y2:44px; "/>
  541. <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:103px; top:46px; width:307px; height:49px; "/>
  542. <line id="line7" class="line_1" style="x1:2px; y1:14px; x2:410px; y2:14px; "/>
  543. <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; ">
  544. <choices>
  545. <item>
  546. <label>응급</label>
  547. <value>Y</value>
  548. </item>
  549. </choices>
  550. </select>
  551. <select id="checkbox15" ref="/root/main/prcp/prcplist/clincstdyflag" overflow="visible" appearance="full" style="left:105px; top:150px; width:100px; height:20px; border-style:none; ">
  552. <choices>
  553. <item>
  554. <label>임상연구</label>
  555. <value>Y</value>
  556. </item>
  557. </choices>
  558. </select>
  559. <line id="line4" class="line_3" style="x1:2px; y1:199px; x2:409px; y2:199px; "/>
  560. <caption id="caption18" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">공통</caption>
  561. <line id="line1" class="line_2" style="x1:2px; y1:122px; x2:410px; y2:122px; "/>
  562. <caption id="caption2" class="tit_2" style="left:5px; top:127px; width:121px; height:13px; ">처치</caption>
  563. <line id="line5" class="line_1" style="x1:2px; y1:141px; x2:410px; y2:141px; "/>
  564. <select id="checkbox14" ref="/root/main/prcp/prcplist/precureprcpflag" overflow="visible" appearance="full" style="left:311px; top:150px; width:100px; height:20px; border-style:none; ">
  565. <choices>
  566. <item>
  567. <label>선처치</label>
  568. <value>Y</value>
  569. </item>
  570. </choices>
  571. </select>
  572. <select id="checkbox6" ref="/root/chkflag/precureprcpflag" overflow="visible" appearance="full" style="left:212px; top:150px; width:100px; height:20px; border-style:none; ">
  573. <choices>
  574. <item>
  575. <label>선처치</label>
  576. <value>Y</value>
  577. </item>
  578. </choices>
  579. <script type="javascript" ev:event="xforms-value-changed">
  580. <![CDATA[
  581. if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
  582. checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "bold";
  583. checkbox14.disabled = false;
  584. model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "Y" );
  585. model.refresh();
  586. } else {
  587. checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "normal";
  588. checkbox14.disabled = true;
  589. model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "N" );
  590. model.refresh();
  591. }
  592. ]]>
  593. </script>
  594. </select>
  595. <select1 id="combo2" ref="/root/main/prcp/prcplist/prcpexecdeptcd" class="combo_default" appearance="minimal" itemcount="30" style="left:105px; top:175px; width:100px; height:19px; ">
  596. <choices>
  597. <itemset nodeset="/root/orddept/dept">
  598. <label ref="depthngnm"/>
  599. <value ref="deptcd"/>
  600. </itemset>
  601. </choices>
  602. </select1>
  603. <select id="checkbox16" ref="/root/chkflag/prcpexecdeptcd" overflow="visible" appearance="full" style="left:7px; top:176px; width:100px; height:20px; border-style:none; ">
  604. <choices>
  605. <item>
  606. <label>시행부서</label>
  607. <value>Y</value>
  608. </item>
  609. </choices>
  610. <script type="javascript" ev:event="xforms-value-changed">
  611. <![CDATA[
  612. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  613. checkbox16.item(checkbox16.focusIndex).attribute("font-weight") = "bold";
  614. combo2.disabled = false;
  615. btn_srchexecdept.disabled = false;
  616. model.refresh();
  617. } else {
  618. checkbox16.item(checkbox16.focusIndex).attribute("font-weight") = "normal";
  619. combo2.disabled = true;
  620. btn_srchexecdept.disabled = true;
  621. model.refresh();
  622. }
  623. ]]>
  624. </script>
  625. </select>
  626. <line id="line3" class="line_2" style="x1:2px; y1:171px; x2:410px; y2:171px; "/>
  627. <button id="button4" class="icon_search" style="left:79px; top:48px; width:16px; height:16px; ">
  628. <caption/>
  629. <script type="javascript" ev:event="DOMActivate">
  630. <![CDATA[
  631. setParameter ( "SPMMB02200_cond2", "3" );
  632. fPrcpModal ( "SPMMB02200", 50, 50 );
  633. model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
  634. model.refresh();
  635. ]]>
  636. </script>
  637. </button>
  638. <button id="btn_srchexecdept" class="icon_search" disabled="true" style="left:84px; top:177px; width:16px; height:16px; ">
  639. <caption/>
  640. <script type="javascript" ev:event="DOMActivate">
  641. <![CDATA[
  642. modal("SPMMB02500");
  643. ]]>
  644. </script>
  645. </button>
  646. <bool id="bool2" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:2px; top:99px; width:25px; height:20px; ">
  647. <script type="javascript" ev:event="xforms-value-changed">
  648. <![CDATA[
  649. if( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ){
  650. messageBox ( "기왕증은 임상연구와 동시에 선택 할 수", "I004" );
  651. bool2.value = "N";
  652. return;
  653. }
  654. if(bool2.value == "Y"){
  655. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  656. var pid = opener.model.getValue("/root/paminfo/list/pid");
  657. var indd = opener.model.getValue("/root/paminfo/list/indd");
  658. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  659. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  660. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  661. if(subcretno == "0"){
  662. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  663. bool2.value = "N";
  664. }
  665. } else {
  666. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  667. bool2.value = "N";
  668. }
  669. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  670. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  671. }
  672. ]]>
  673. </script>
  674. </bool>
  675. <caption id="caption23" style="left:24px; top:100px; width:50px; height:20px; ">기왕증</caption>
  676. </xhtml:body>
  677. </xhtml:html>