SPMMO12800_일괄입력마취.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  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. <userlist/>
  187. <nigtprcpflag/>
  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. <ansttm/>
  204. <anamneflag/>
  205. </chkflag>
  206. <ansttm>
  207. <anstfromdd/>
  208. <ansttodd/>
  209. <anstfromh/>
  210. <anstfromm/>
  211. <ansttoh/>
  212. <ansttom/>
  213. </ansttm>
  214. <temp>
  215. <send/>
  216. <patsupkind/>
  217. </temp>
  218. </root>
  219. </instance>
  220. <script type="javascript" ev:event="xforms-model-construct-done">
  221. <![CDATA[
  222. zbcfGetCodeList(new Array("M0029", "M0008", "M0639"), new Array("/root/init/payflagcd", "/root/init/opansflagcd", "/root/init/nigtprcpflag"));
  223. input1.value = getCurrentDate();
  224. input2.value = "00"
  225. input3.value = "00"
  226. input4.value = getCurrentDate();
  227. input5.value = "00"
  228. input6.value = "00"
  229. input1.disabled = true;
  230. input2.disabled = true;
  231. input3.disabled = true;
  232. input4.disabled = true;
  233. input5.disabled = true;
  234. input6.disabled = true;
  235. button4.disabled = true;
  236. checkbox10.disabled = true;
  237. //checkbox12.disabled = true;
  238. combo1.disabled = true;
  239. combo2.disabled = true;
  240. combo4.disabled = true;
  241. //input1.disabled = true;
  242. //input2.disabled = true;
  243. textarea1.disabled = true;
  244. model.refresh();
  245. ]]>
  246. </script>
  247. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  248. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  249. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  250. </model>
  251. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  252. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  253. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  254. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  255. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  256. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  257. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  258. <script type="javascript">
  259. <![CDATA[
  260. var setAnst = "";
  261. var setclinccmtcnts = "";
  262. function fSetAnsttm () {
  263. var fromdd = model.getValue ( "/root/ansttm/anstfromdd" );
  264. var todd = model.getValue ( "/root/ansttm/ansttodd" );
  265. if ( eval(fromdd) > eval(todd) ) {
  266. model.alert ( "시작일이 종료일 보다 클수 없습니다." );
  267. return;
  268. }
  269. var fromh = model.getValue ( "/root/ansttm/anstfromh" );
  270. var formm = model.getValue ( "/root/ansttm/anstfromm" );
  271. var tomh = model.getValue ( "/root/ansttm/ansttoh" );
  272. var totim = model.getValue ( "/root/ansttm/ansttom" );
  273. if ( eval(fromh) >= 24 ) {
  274. model.alert ( "시작시간이 잘못 입력되었습니다." );
  275. return;
  276. }
  277. if ( eval(formm) >= 60 ) {
  278. model.alert ( "시작분이 잘못 입력되었습니다." );
  279. return;
  280. }
  281. if ( eval(tomh) >= 24 ) {
  282. model.alert ( "종료시간이 잘못 입력되었습니다." );
  283. return;
  284. }
  285. if ( eval(totim) >= 60 ) {
  286. model.alert ( "종료분이 잘못 입력되었습니다." );
  287. return;
  288. }
  289. tomh = eval(model.getValue ( "/root/ansttm/ansttoh" )) + getDateInterval ( fromdd, todd ) * 24;
  290. var fromtotm = eval ( fromh ) * 60 + eval ( formm );
  291. var tototm = eval( tomh ) * 60 + eval ( totim );
  292. var ansttmh = parseInt(( tototm - fromtotm ) / 60);
  293. var ansttmm = ( tototm - fromtotm ) % 60;
  294. ansttmh = ansttmh.toString().getLeftPad ( 2, "0" );
  295. ansttmm = ansttmm.toString().getLeftPad ( 2, "0" );
  296. setAnst = ansttmh + ansttmm;
  297. var fromipt = model.getValue ( "/root/ansttm/anstfromdd" ) + model.getValue ( "/root/ansttm/anstfromh" ).getLeftPad ( 2, "0" ) + model.getValue ( "/root/ansttm/anstfromm" ).getLeftPad ( 2, "0" );
  298. var toipt = model.getValue ( "/root/ansttm/ansttodd" )+ model.getValue ( "/root/ansttm/ansttoh" ).getLeftPad ( 2, "0" ) + model.getValue ( "/root/ansttm/ansttom" ).getLeftPad ( 2, "0" );
  299. setclinccmtcnts = fromipt + "I" + toipt;
  300. if ( setAnst == "0000" || eval(setAnst) < 0 ) {
  301. messageBox ( "마취시간 입력이 잘못되었습니다.", "E" );
  302. return false;
  303. }
  304. return true;
  305. }
  306. ]]>
  307. </script>
  308. </xhtml:head>
  309. <xhtml:body pagewidth="430" pageheight="240" guideline="2,240;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  310. <caption id="caption22" class="cell_1" style="left:210px; top:173px; width:99px; height:21px; "/>
  311. <button id="button1" class="btn4_letter2" style="left:294px; top:204px; width:56px; height:22px; ">
  312. <caption>확인</caption>
  313. <script type="javascript" ev:event="onclick">
  314. <![CDATA[
  315. var erprcpflag_useyn = "";
  316. var erprcpflag = "";
  317. var nigtprcpflag_useyn = "";
  318. var nigtprcpflag = "";
  319. var opansflagcd_useyn = "";
  320. var opansflagcd = "";
  321. var tempcol1_useyn = "";
  322. var tempcol1 = "";
  323. var payflagcd_useyn = "";
  324. var payflagcd = "";
  325. var ansttm_useyn = "";
  326. var ansttm = "";
  327. var clinccmtcnts_useyn = "";
  328. var clinccmtcnts = "";
  329. var prcpdelivefact_useyn = "";
  330. var prcpdelivefact = "";
  331. var useyn = "";
  332. var value = "";
  333. //tempcol1 수술에는 있지만 마취는 뺐다.
  334. var header = "erprcpflag|nigtprcpflag|opansflagcd|payflagcd|ansttm|clinccmtcnts|anamneflag|prcpdelivefact|subcretno^";
  335. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  336. erprcpflag_useyn = "Y" + "|";
  337. erprcpflag = model.getValue ("/root/main/prcp/prcplist/erprcpflag" ) + "|";
  338. if ( isNull(model.getValue ("/root/main/prcp/prcplist/erprcpflag" ))) {
  339. erprcpflag = "N" + "|";
  340. }
  341. } else {
  342. erprcpflag_useyn = "N" + "|";
  343. erprcpflag = "" + "|";
  344. }
  345. useyn = useyn + erprcpflag_useyn;
  346. value = value + erprcpflag;
  347. if ( model.getValue ( "/root/chkflag/nigtprcpflag" ) == "Y" ) {
  348. nigtprcpflag_useyn = "Y" + "|";
  349. nigtprcpflag = model.getValue ("/root/main/prcp/prcplist/nigtprcpflag" ) + "|";
  350. if ( isNull(model.getValue ("/root/main/prcp/prcplist/nigtprcpflag" ))) {
  351. nigtprcpflag = "N" + "|";
  352. }
  353. } else {
  354. nigtprcpflag_useyn = "N" + "|";
  355. nigtprcpflag = "" + "|";
  356. }
  357. useyn = useyn + nigtprcpflag_useyn ;
  358. value = value + nigtprcpflag;
  359. if ( model.getValue ( "/root/chkflag/opansflagcd" ) == "Y" ) {
  360. opansflagcd_useyn = "Y" + "|";
  361. tempcol1_useyn = "Y" + "|";
  362. opansflagcd = model.getValue ( "/root/main/prcp/prcplist/opansflagcd" ) + "|";
  363. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/opansflagcd" ))) {
  364. model.alert ( "입력된 마취유형 값이 없습니다." ) ;
  365. return;
  366. } else {
  367. tempcol1 = combo2.label + "|";
  368. }
  369. } else {
  370. opansflagcd_useyn = "N" + "|";
  371. opansflagcd = "" + "|";
  372. tempcol1_useyn = "N" + "|";
  373. tempcol1 = "" + "|";
  374. }
  375. useyn = useyn + opansflagcd_useyn ;
  376. value = value + opansflagcd;
  377. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  378. payflagcd_useyn = "Y" + "|";
  379. payflagcd = model.getValue ( "/root/main/prcp/prcplist/payflagcd" ) + "|";
  380. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/payflagcd" ))) {
  381. model.alert ( "입력된 급여구분 값이 없습니다." ) ;
  382. return;
  383. }
  384. } else {
  385. payflagcd_useyn = "N" + "|";
  386. payflagcd = "" + "|";
  387. }
  388. useyn = useyn + payflagcd_useyn ;
  389. value = value + payflagcd;
  390. if ( model.getValue ( "/root/chkflag/ansttm" ) == "Y" ) {
  391. ansttm_useyn = "Y" + "|";
  392. clinccmtcnts_useyn = "Y" + "|";
  393. if ( !fSetAnsttm()) {
  394. return;
  395. }
  396. ansttm = setAnst + "|";
  397. clinccmtcnts = setclinccmtcnts + "|";
  398. } else {
  399. ansttm_useyn = "N"+ "|";
  400. ansttm = "" + "|";
  401. clinccmtcnts = "" + "|";
  402. }
  403. useyn = useyn + ansttm_useyn;
  404. value = value + ansttm;
  405. useyn = useyn + clinccmtcnts_useyn;
  406. value = value + clinccmtcnts;
  407. if( model.getValue ( " /root/chkflag/anamneflag" ) == "Y" ) {
  408. useyn = useyn + "Y" + "|";
  409. value = value + "Y" + "|";
  410. } else {
  411. useyn = useyn + "N" + "|";
  412. value = value + "N" + "|";
  413. }
  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. //2008. 07. 01 기왕증 입력에 따른 subcretno설정, 오지훈
  428. var subcretno_useyn = "";
  429. var subcretno = 0;
  430. if ( bool2.value == "Y") {
  431. subcretno_useyn = "Y";
  432. subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
  433. }else{
  434. subcretno_useyn = "N";
  435. }
  436. useyn = useyn + subcretno_useyn + "^";
  437. value = value + subcretno + "^";
  438. var batipt_rtn1 = header + useyn + value;
  439. opener.javascript.setParameter ( "batipt_rtn1", batipt_rtn1 );
  440. opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
  441. window.close();
  442. ]]>
  443. </script>
  444. </button>
  445. <button id="button2" class="btn4_letter2" style="left:354px; top:204px; width:56px; height:22px; ">
  446. <caption>취소</caption>
  447. <script type="javascript" ev:event="onclick">
  448. <![CDATA[
  449. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  450. window.close();
  451. ]]>
  452. </script>
  453. </button>
  454. <caption id="caption7" class="cell_1" style="left:207px; top:19px; width:100px; height:23px; "/>
  455. <caption id="caption6" class="cell_1" style="left:2px; top:173px; width:100px; height:23px; "/>
  456. <caption id="caption3" class="cell_1" style="left:2px; top:46px; width:100px; height:50px; "/>
  457. <caption id="caption4" class="cell_1" style="left:2px; top:120px; width:100px; height:23px; "/>
  458. <caption id="caption1" class="cell_1" style="left:2px; top:19px; width:100px; height:23px; "/>
  459. <select id="checkbox1" ref="/root/chkflag/erprcpflag" overflow="visible" appearance="full" style="left:7px; top:23px; width:100px; height:20px; border-style:none; ">
  460. <choices>
  461. <item>
  462. <label>응급</label>
  463. <value>Y</value>
  464. </item>
  465. </choices>
  466. <script type="javascript" ev:event="xforms-value-changed">
  467. <![CDATA[
  468. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  469. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
  470. checkbox10.disabled = false;
  471. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "Y" );
  472. model.refresh();
  473. } else {
  474. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
  475. checkbox10.disabled = true;
  476. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "N" );
  477. model.refresh();
  478. }
  479. ]]>
  480. </script>
  481. </select>
  482. <select id="checkbox2" ref="/root/chkflag/nigtprcpflag" overflow="visible" appearance="full" style="left:7px; top:124px; width:100px; height:20px; border-style:none; ">
  483. <choices>
  484. <item>
  485. <label>야간/심야</label>
  486. <value>Y</value>
  487. </item>
  488. </choices>
  489. <script type="javascript" ev:event="xforms-value-changed">
  490. <![CDATA[
  491. if ( model.getValue ( "/root/chkflag/nigtprcpflag" ) == "Y" ) {
  492. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "bold";
  493. combo4.disabled = false;
  494. model.refresh();
  495. } else {
  496. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "normal";
  497. combo4.disabled = true;
  498. model.refresh();
  499. }
  500. ]]>
  501. </script>
  502. </select>
  503. <line id="line15" class="line_2" style="x1:2px; y1:44px; x2:410px; y2:44px; "/>
  504. <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:49px; width:68px; height:25px; border-style:none; ">
  505. <choices>
  506. <item>
  507. <label>전달사항</label>
  508. <value>Y</value>
  509. </item>
  510. </choices>
  511. <script type="javascript" ev:event="xforms-value-changed">
  512. <![CDATA[
  513. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  514. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "bold";
  515. textarea1.disabled = false;
  516. button4.disabled = false;
  517. } else {
  518. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "normal";
  519. textarea1.disabled = true;
  520. button4.disabled = true;
  521. }
  522. model.refresh();
  523. ]]>
  524. </script>
  525. </select>
  526. <select id="checkbox7" ref="/root/chkflag/opansflagcd" overflow="visible" appearance="full" style="left:7px; top:177px; width:95px; height:20px; border-style:none; ">
  527. <choices>
  528. <item>
  529. <label>마취구분</label>
  530. <value>Y</value>
  531. </item>
  532. </choices>
  533. <script type="javascript" ev:event="xforms-value-changed">
  534. <![CDATA[
  535. if ( model.getValue ( "/root/chkflag/opansflagcd" ) == "Y" ) {
  536. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "bold";
  537. combo2.disabled = false;
  538. model.refresh();
  539. } else {
  540. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  541. combo2.disabled = true;
  542. model.refresh();
  543. }
  544. ]]>
  545. </script>
  546. </select>
  547. <select1 id="combo1" ref="/root/main/prcp/prcplist/payflagcd" class="combo_default" appearance="minimal" style="left:310px; top:21px; width:100px; height:19px; ">
  548. <choices>
  549. <itemset nodeset="/root/init/payflagcd/M0029">
  550. <label ref="cdnm"/>
  551. <value ref="cdid"/>
  552. </itemset>
  553. </choices>
  554. </select1>
  555. <select id="checkbox8" ref="/root/chkflag/payflagcd" overflow="visible" appearance="full" style="left:212px; top:23px; width:95px; height:20px; border-style:none; ">
  556. <choices>
  557. <item>
  558. <label>급여</label>
  559. <value>Y</value>
  560. </item>
  561. </choices>
  562. <script type="javascript" ev:event="xforms-value-changed">
  563. <![CDATA[
  564. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  565. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "bold";
  566. combo1.disabled = false;
  567. model.refresh();
  568. } else {
  569. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "normal";
  570. combo1.disabled = true;
  571. model.refresh();
  572. }
  573. ]]>
  574. </script>
  575. </select>
  576. <line id="line3" class="line_2" style="x1:2px; y1:44px; x2:409px; y2:44px; "/>
  577. <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:103px; top:46px; width:307px; height:49px; "/>
  578. <line id="line7" class="line_1" style="x1:2px; y1:14px; x2:410px; y2:14px; "/>
  579. <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; ">
  580. <choices>
  581. <item>
  582. <label>응급</label>
  583. <value>Y</value>
  584. </item>
  585. </choices>
  586. </select>
  587. <select1 id="combo4" ref="/root/main/prcp/prcplist/nigtprcpflag" class="combo_default" appearance="minimal" style="left:105px; top:124px; width:100px; height:19px; ">
  588. <choices>
  589. <itemset nodeset="/root/init/nigtprcpflag/M0639">
  590. <label ref="cdnm"/>
  591. <value ref="cdid"/>
  592. </itemset>
  593. </choices>
  594. </select1>
  595. <line id="line4" class="line_3" style="x1:2px; y1:198px; x2:409px; y2:198px; "/>
  596. <select1 id="combo2" ref="/root/main/prcp/prcplist/opansflagcd" class="combo_default" appearance="minimal" style="left:104px; top:175px; width:100px; height:19px; ">
  597. <choices>
  598. <itemset nodeset="/root/init/opansflagcd/M0008">
  599. <label ref="cdnm"/>
  600. <value ref="cdid"/>
  601. </itemset>
  602. </choices>
  603. </select1>
  604. <caption id="caption2" class="cell_1" style="left:2px; top:145px; width:100px; height:23px; "/>
  605. <select id="checkbox4" ref="/root/chkflag/ansttm" overflow="visible" appearance="full" style="left:7px; top:150px; width:90px; height:20px; border-style:none; ">
  606. <choices>
  607. <item>
  608. <label>마취시간</label>
  609. <value>Y</value>
  610. </item>
  611. </choices>
  612. <script type="javascript" ev:event="xforms-value-changed">
  613. <![CDATA[
  614. if ( model.getValue ( "/root/chkflag/ansttm" ) == "Y" ) {
  615. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "bold";
  616. input1.disabled = false;
  617. input2.disabled = false;
  618. input3.disabled = false;
  619. input4.disabled = false;
  620. input5.disabled = false;
  621. input6.disabled = false;
  622. } else {
  623. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "normal";
  624. input1.disabled = true;
  625. input2.disabled = true;
  626. input3.disabled = true;
  627. input4.disabled = true;
  628. input5.disabled = true;
  629. input6.disabled = true;
  630. }
  631. model.refresh();
  632. ]]>
  633. </script>
  634. </select>
  635. <caption id="caption18" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">공통</caption>
  636. <line id="line1" class="line_2" style="x1:2px; y1:97px; x2:410px; y2:97px; "/>
  637. <caption id="caption8" class="tit_2" style="left:5px; top:101px; width:121px; height:13px; ">마취</caption>
  638. <line id="line5" class="line_1" style="x1:2px; y1:115px; x2:410px; y2:115px; "/>
  639. <line id="line6" class="line_2" style="x1:2px; y1:171px; x2:410px; y2:171px; "/>
  640. <input id="input1" ref="/root/ansttm/anstfromdd" inputtype="date" format="yyyy-mm-dd" style="left:104px; top:149px; width:86px; height:19px; "/>
  641. <input id="input2" ref="/root/ansttm/anstfromh" imemode="disabled" maxlength="2" format="#" style="left:191px; top:149px; width:25px; height:19px; "/>
  642. <input id="input3" ref="/root/ansttm/anstfromm" imemode="disabled" maxlength="2" format="#" style="left:217px; top:149px; width:25px; height:19px; "/>
  643. <input id="input4" ref="/root/ansttm/ansttodd" inputtype="date" format="yyyy-mm-dd" style="left:271px; top:148px; width:86px; height:19px; "/>
  644. <input id="input5" ref="/root/ansttm/ansttoh" imemode="disabled" maxlength="2" format="#" style="left:358px; top:148px; width:25px; height:19px; "/>
  645. <input id="input6" ref="/root/ansttm/ansttom" imemode="disabled" maxlength="2" format="#" style="left:384px; top:148px; width:25px; height:19px; "/>
  646. <caption id="caption9" style="left:251px; top:150px; width:15px; height:20px; ">~</caption>
  647. <button id="button4" class="icon_search" style="left:78px; top:51px; width:16px; height:16px; ">
  648. <caption/>
  649. <script type="javascript" ev:event="DOMActivate">
  650. <![CDATA[
  651. setParameter ( "SPMMB02200_cond2", "3" );
  652. fPrcpModal ( "SPMMB02200", 50, 50 );
  653. model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
  654. model.refresh();
  655. ]]>
  656. </script>
  657. </button>
  658. <bool id="bool2" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:210px; top:174px; width:25px; height:20px; ">
  659. <script type="javascript" ev:event="xforms-value-changed">
  660. <![CDATA[
  661. if(bool2.value == "Y"){
  662. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  663. var pid = opener.model.getValue("/root/paminfo/list/pid");
  664. var indd = opener.model.getValue("/root/paminfo/list/indd");
  665. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  666. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  667. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  668. if(subcretno == "0"){
  669. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  670. bool2.value = "N";
  671. }
  672. } else {
  673. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  674. bool2.value = "N";
  675. }
  676. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  677. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  678. }
  679. ]]>
  680. </script>
  681. </bool>
  682. <caption id="caption23" style="left:232px; top:175px; width:50px; height:20px; ">기왕증</caption>
  683. </xhtml:body>
  684. </xhtml:html>