SPMMO12400_일괄입력진단검사.xrw 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897
  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. <drprcpetc11/>
  178. <drprcpetc12/>
  179. <drprcpetc13/>
  180. <drprcpetc14/>
  181. <drprcpetc15/>
  182. <drprcpetc16/>
  183. <drprcpetc17/>
  184. <drprcpetc18/>
  185. <drprcpetc19/>
  186. <drprcpetc20/>
  187. <drprcpetc21/>
  188. <drprcpetc22/>
  189. <drprcpetc23/>
  190. <drprcpetc24/>
  191. <drprcpetc25/>
  192. <drprcpetc26/>
  193. <drprcpetc27/>
  194. <drprcpetc28/>
  195. <drprcpetc29/>
  196. <drprcpetc30/>
  197. </prcplist>
  198. </prcp>
  199. <cond>
  200. <rsrvflag/>
  201. </cond>
  202. </main>
  203. <init>
  204. <prcpdirecflag/>
  205. <payflagcd/>
  206. <drugspd/>
  207. <drugmthdspccdnm/>
  208. <orddept/>
  209. <userlist/>
  210. </init>
  211. <chkflag>
  212. <erprcpflag/>
  213. <prnprcpflag/>
  214. <erreadflag/>
  215. <portprcpflag/>
  216. <precureprcpflag/>
  217. <clincstdyflag/>
  218. <payflagcd/>
  219. <prcphopedd/>
  220. <clinccmtcnts/>
  221. <prcpdelivefact/>
  222. <choiordflag/>
  223. <prcpexecdeptcd/>
  224. <anamneflag/>
  225. <drprcpetc12/>
  226. </chkflag>
  227. <orddept/>
  228. <temp>
  229. <send/>
  230. <patsupkind/>
  231. </temp>
  232. </root>
  233. </instance>
  234. <script type="javascript" ev:event="xforms-model-construct-done">
  235. <![CDATA[
  236. if ( opener.javascript.getParameter ( "SPMMO12400_prcpclscd" ) == "B6") {
  237. document.title = "일괄입력[핵의학체내]";
  238. caption2.value = "핵의학체내";
  239. }
  240. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
  241. zbcfGetCodeList(new Array("M0029"), new Array("/root/init/payflagcd"));
  242. fPrcpExecDeptSrch("all");
  243. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  244. if ( prcpgenrflag == "O" ) {
  245. if ( opener.model.getValue ( "/root/usge" ) == "prcp" ) {
  246. checkbox2.disabled = true;
  247. }
  248. }
  249. button4.disabled = true;
  250. checkbox10.disabled = true;
  251. checkbox11.disabled = true;
  252. checkbox12.disabled = true;
  253. checkbox14.disabled = true;
  254. checkbox15.disabled = true;
  255. checkbox4.disabled = true;
  256. combo1.disabled = true;
  257. combo2.disabled = true;
  258. input3.disabled = true;
  259. textarea1.disabled = true;
  260. model.refresh();
  261. ]]>
  262. </script>
  263. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  264. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  265. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  266. <submission id="TRMMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/orddept"/>
  267. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  268. </model>
  269. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  270. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  271. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  272. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  273. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  274. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  275. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  276. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  277. </xhtml:head>
  278. <xhtml:body pagewidth="430" pageheight="290" guideline="2,290;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  279. <caption id="caption10" class="cell_1" style="left:2px; top:224px; width:100px; height:23px; "/>
  280. <caption id="caption22" class="cell_1" style="left:262px; top:200px; width:99px; height:21px; "/>
  281. <caption id="caption11" class="cell_1" style="left:2px; top:199px; width:100px; height:23px; "/>
  282. <caption id="caption9" class="cell_1" style="left:207px; top:172px; width:100px; height:23px; "/>
  283. <button id="button1" class="btn4_letter2" style="left:293px; top:253px; width:56px; height:22px; ">
  284. <caption>확인</caption>
  285. <script type="javascript" ev:event="onclick">
  286. <![CDATA[
  287. var erprcpflag_useyn = "";
  288. var erprcpflag = "";
  289. var prnprcpflag_useyn = "";
  290. var prnprcpflag = "";
  291. var erreadflag_useyn = "";
  292. var erreadflag = "";
  293. var clincstdyflag_useyn = "";
  294. var clincstdyflag = "";
  295. var payflagcd_useyn = "";
  296. var payflagcd = "";
  297. var prcphopedd_useyn = "";
  298. var prcphopedd = "";
  299. var precureprcpflag_useyn = "";
  300. var precureprcpflag = "";
  301. var prcpexecdeptcd_useyn = "";
  302. var prcpexecdeptcd = "";
  303. var prcpdelivefact_useyn = "";
  304. var prcpdelivefact = "";
  305. var drprcpetc12_useyn = "";
  306. var drprcpetc12 = "";
  307. var useyn = "";
  308. var value = "";
  309. var header = "erprcpflag|prnprcpflag|erreadflag|clincstdyflag|payflagcd|prcphopedd|precureprcpflag|prcpexecdeptcd|anamneflag|prcpdelivefact|drprcpetc12|subcretno^";
  310. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  311. erprcpflag_useyn = "Y" + "|";
  312. erprcpflag = model.getValue ("/root/main/prcp/prcplist/erprcpflag" ) + "|";
  313. if ( isNull(model.getValue ("/root/main/prcp/prcplist/erprcpflag" ))) {
  314. erprcpflag = "N" + "|";
  315. }
  316. } else {
  317. erprcpflag_useyn = "N" + "|";
  318. erprcpflag = "" + "|";
  319. }
  320. useyn = useyn + erprcpflag_useyn;
  321. value = value + erprcpflag;
  322. if ( model.getValue ( "/root/chkflag/prnprcpflag" ) == "Y" ) {
  323. prnprcpflag_useyn = "Y" + "|";
  324. prnprcpflag = model.getValue ("/root/main/prcp/prcplist/prnprcpflag" ) + "|";
  325. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prnprcpflag" ))) {
  326. prnprcpflag = "N" + "|";
  327. }
  328. } else {
  329. prnprcpflag_useyn = "N" + "|";
  330. prnprcpflag = "" + "|";
  331. }
  332. useyn = useyn + prnprcpflag_useyn ;
  333. value = value + prnprcpflag;
  334. if ( model.getValue ( "/root/chkflag/erreadflag" ) == "Y" ) {
  335. erreadflag_useyn = "Y" + "|";
  336. erreadflag = model.getValue ("/root/main/prcp/prcplist/erreadflag" ) + "|";
  337. if ( isNull(model.getValue ("/root/main/prcp/prcplist/erreadflag" ))) {
  338. erreadflag = "N" + "|";
  339. }
  340. } else {
  341. erreadflag_useyn = "N" + "|";
  342. erreadflag = "" + "|";
  343. }
  344. useyn = useyn + erreadflag_useyn ;
  345. value = value + erreadflag;
  346. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  347. clincstdyflag_useyn = "Y" + "|";
  348. clincstdyflag = model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ) + "|";
  349. if ( isNull(model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ))) {
  350. clincstdyflag = "N" + "|";
  351. }
  352. } else {
  353. clincstdyflag_useyn = "N" + "|";
  354. clincstdyflag = "" + "|";
  355. }
  356. useyn = useyn + clincstdyflag_useyn ;
  357. value = value + clincstdyflag;
  358. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  359. payflagcd_useyn = "Y" + "|";
  360. payflagcd = model.getValue ( "/root/main/prcp/prcplist/payflagcd" ) + "|";
  361. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/payflagcd" ))) {
  362. model.alert ( "입력된 급여구분 값이 없습니다." ) ;
  363. return;
  364. }
  365. } else {
  366. payflagcd_useyn = "N" + "|";
  367. payflagcd = "" + "|";
  368. }
  369. useyn = useyn + payflagcd_useyn ;
  370. value = value + payflagcd;
  371. if ( model.getValue ( "/root/chkflag/prcphopedd" ) == "Y" ) {
  372. prcphopedd_useyn = "Y" + "|";
  373. prcphopedd = model.getValue ("/root/main/prcp/prcplist/prcphopedd" ) + "|";
  374. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prcphopedd" ))) {
  375. model.alert ( "입력된 검사희망일이 값이 없습니다." );
  376. return;
  377. } else {
  378. if ( !isValidDateTime ( model.getValue ( "/root/main/prcp/prcplist/prcphopedd" ), "YYYYMMDD")) {
  379. model.alert ( "검사희망일이 유효한 날짜가 아닙니다." );
  380. return;
  381. }
  382. }
  383. } else {
  384. prcphopedd_useyn = "N"+ "|";
  385. prcphopedd = "" + "|";
  386. }
  387. useyn = useyn + prcphopedd_useyn;
  388. value = value + prcphopedd;
  389. if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
  390. precureprcpflag_useyn = "Y" + "|";
  391. precureprcpflag = model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ) + "|";
  392. if ( isNull(model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ))) {
  393. precureprcpflag = "N" + "|";
  394. }
  395. } else {
  396. precureprcpflag_useyn = "N" + "|";
  397. precureprcpflag = "" + "|";
  398. }
  399. useyn = useyn + precureprcpflag_useyn ;
  400. value = value + precureprcpflag;
  401. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  402. prcpexecdeptcd_useyn = "Y" + "|";
  403. prcpexecdeptcd = model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ) + "|";
  404. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ))) {
  405. model.alert ( "입력된 시행부서가 없습니다." ) ;
  406. return;
  407. }
  408. } else {
  409. prcpexecdeptcd_useyn = "N" + "|";
  410. prcpexecdeptcd = "" + "|";
  411. }
  412. useyn = useyn + prcpexecdeptcd_useyn ;
  413. value = value + prcpexecdeptcd;
  414. if( model.getValue ( " /root/chkflag/anamneflag" ) == "Y" ) {
  415. useyn = useyn + "Y" + "|";
  416. value = value + "Y" + "|";
  417. } else {
  418. useyn = useyn + "N" + "|";
  419. value = value + "N" + "|";
  420. }
  421. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  422. prcpdelivefact_useyn = "Y" + "|";
  423. prcpdelivefact = model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ) + "|";
  424. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ))) {
  425. model.alert ( "입력된 전달사항 값이 없습니다." );
  426. return;
  427. }
  428. } else {
  429. prcpdelivefact_useyn = "N" + "|";
  430. prcpdelivefact = "" + "|";
  431. }
  432. useyn = useyn + prcpdelivefact_useyn ;
  433. value = value + prcpdelivefact;
  434. if ( model.getValue ( "/root/chkflag/drprcpetc12" ) == "Y" ) {
  435. drprcpetc12_useyn = "Y" + "|";
  436. drprcpetc12 = model.getValue ("/root/main/prcp/prcplist/drprcpetc12" ) + "|";
  437. if ( isNull(model.getValue ("/root/main/prcp/prcplist/drprcpetc12" ))) {
  438. drprcpetc12 = "N" + "|";
  439. }
  440. } else {
  441. drprcpetc12_useyn = "N" + "|";
  442. drprcpetc12 = "N" + "|";
  443. }
  444. useyn = useyn + drprcpetc12_useyn ;
  445. value = value + drprcpetc12;
  446. //2008. 07. 01 기왕증 입력에 따른 subcretno설정, 오지훈
  447. var subcretno_useyn = "";
  448. var subcretno = 0;
  449. if ( bool2.value == "Y" || model.getValue("/root/chkflag/clincstdyflag") == "Y") {
  450. subcretno_useyn = "Y";
  451. subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
  452. }else{
  453. subcretno_useyn = "N";
  454. }
  455. useyn = useyn + subcretno_useyn + "^";
  456. value = value + subcretno + "^";
  457. var batipt_rtn1 = header + useyn + value;
  458. opener.javascript.setParameter ( "batipt_rtn1", batipt_rtn1 );
  459. opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
  460. window.close();
  461. ]]>
  462. </script>
  463. </button>
  464. <button id="button2" class="btn4_letter2" style="left:350px; top:253px; width:56px; height:22px; ">
  465. <caption>취소</caption>
  466. <script type="javascript" ev:event="onclick">
  467. <![CDATA[
  468. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  469. window.close();
  470. ]]>
  471. </script>
  472. </button>
  473. <caption id="caption8" class="cell_1" style="left:207px; top:224px; width:100px; height:23px; "/>
  474. <caption id="caption7" class="cell_1" style="left:207px; top:19px; width:100px; height:23px; "/>
  475. <caption id="caption6" class="cell_1" style="left:2px; top:172px; width:100px; height:23px; "/>
  476. <caption id="caption3" class="cell_1" style="left:2px; top:71px; width:100px; height:50px; "/>
  477. <caption id="caption5" class="cell_1" style="left:2px; top:146px; width:100px; height:23px; "/>
  478. <caption id="caption4" class="cell_1" style="left:2px; top:45px; width:100px; height:23px; "/>
  479. <caption id="caption1" class="cell_1" style="left:2px; top:19px; width:100px; height:23px; "/>
  480. <select id="checkbox1" ref="/root/chkflag/erprcpflag" overflow="visible" appearance="full" style="left:7px; top:23px; width:100px; height:20px; border-style:none; ">
  481. <choices>
  482. <item>
  483. <label>응급</label>
  484. <value>Y</value>
  485. </item>
  486. </choices>
  487. <script type="javascript" ev:event="xforms-value-changed">
  488. <![CDATA[
  489. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  490. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
  491. checkbox10.disabled = false;
  492. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "Y" );
  493. model.refresh();
  494. } else {
  495. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
  496. checkbox10.disabled = true;
  497. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "N" );
  498. model.refresh();
  499. }
  500. ]]>
  501. </script>
  502. </select>
  503. <select id="checkbox2" ref="/root/chkflag/prnprcpflag" overflow="visible" appearance="full" style="left:7px; top:49px; width:100px; height:20px; border-style:none; ">
  504. <choices>
  505. <item>
  506. <label>PRN</label>
  507. <value>Y</value>
  508. </item>
  509. </choices>
  510. <script type="javascript" ev:event="xforms-value-changed">
  511. <![CDATA[
  512. if ( model.getValue ( "/root/chkflag/prnprcpflag" ) == "Y" ) {
  513. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "bold";
  514. checkbox11.disabled = false;
  515. model.setValue ( "/root/main/prcp/prcplist/prnprcpflag", "Y" );
  516. model.refresh();
  517. } else {
  518. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "normal";
  519. checkbox11.disabled = true;
  520. model.setValue ( "/root/main/prcp/prcplist/prnprcpflag", "N" );
  521. model.refresh();
  522. }
  523. ]]>
  524. </script>
  525. </select>
  526. <select id="checkbox3" ref="/root/chkflag/erreadflag" overflow="visible" appearance="full" style="left:7px; top:150px; width:100px; 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/erreadflag" ) == "Y" ) {
  536. checkbox3.item(checkbox3.focusIndex).attribute("font-weight") = "bold";
  537. checkbox12.disabled = false;
  538. model.setValue ( "/root/main/prcp/prcplist/erreadflag", "Y" );
  539. model.refresh();
  540. } else {
  541. checkbox3.item(checkbox3.focusIndex).attribute("font-weight") = "normal";
  542. checkbox12.disabled = true;
  543. model.setValue ( "/root/main/prcp/prcplist/erreadflag", "N" );
  544. model.refresh();
  545. }
  546. ]]>
  547. </script>
  548. </select>
  549. <line id="line15" class="line_2" style="x1:2px; y1:43px; x2:410px; y2:43px; "/>
  550. <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:71px; width:97px; height:25px; border-style:none; ">
  551. <choices>
  552. <item>
  553. <label>전달사항</label>
  554. <value>Y</value>
  555. </item>
  556. </choices>
  557. <script type="javascript" ev:event="xforms-value-changed">
  558. <![CDATA[
  559. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  560. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "bold";
  561. textarea1.disabled = false;
  562. button4.disabled = false;
  563. model.refresh();
  564. } else {
  565. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "normal";
  566. textarea1.disabled = true;
  567. button4.disabled = true;
  568. model.refresh();
  569. }
  570. ]]>
  571. </script>
  572. </select>
  573. <select id="checkbox7" ref="/root/chkflag/clincstdyflag" overflow="visible" appearance="full" style="left:7px; top:176px; width:100px; height:20px; border-style:none; ">
  574. <choices>
  575. <item>
  576. <label>임상연구</label>
  577. <value>Y</value>
  578. </item>
  579. </choices>
  580. <script type="javascript" ev:event="xforms-value-changed">
  581. <![CDATA[
  582. if( bool2.value == "Y" ){
  583. messageBox ( "임상연구는 기왕증과 동시에 선택 할 수", "I004" );
  584. model.setValue ( "/root/chkflag/clincstdyflag" , "");
  585. model.refresh();
  586. return;
  587. }
  588. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  589. if ( fSubcretnoSet("1", null) == -1 ) {
  590. model.setValue ( "/root/chkflag/clincstdyflag" , "N");
  591. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  592. checkbox15.disabled = true;
  593. checkbox7.disabled = true;
  594. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  595. model.refresh();
  596. return;
  597. }
  598. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "bold";
  599. checkbox15.disabled = false;
  600. checkbox7.disabled = false;
  601. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "Y" );
  602. model.refresh();
  603. } else {
  604. fSubcretnoSet("1", null);
  605. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  606. checkbox15.disabled = true;
  607. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  608. model.refresh();
  609. }
  610. ]]>
  611. </script>
  612. </select>
  613. <select1 id="combo1" ref="/root/main/prcp/prcplist/payflagcd" class="combo_default" appearance="minimal" style="left:310px; top:21px; width:100px; height:19px; ">
  614. <choices>
  615. <itemset nodeset="/root/init/payflagcd/M0029">
  616. <label ref="cdnm"/>
  617. <value ref="cdid"/>
  618. </itemset>
  619. </choices>
  620. </select1>
  621. <select id="checkbox8" ref="/root/chkflag/payflagcd" overflow="visible" appearance="full" style="left:212px; top:24px; width:100px; height:20px; border-style:none; ">
  622. <choices>
  623. <item>
  624. <label>급여</label>
  625. <value>Y</value>
  626. </item>
  627. </choices>
  628. <script type="javascript" ev:event="xforms-value-changed">
  629. <![CDATA[
  630. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  631. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "bold";
  632. combo1.disabled = false;
  633. model.refresh();
  634. } else {
  635. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "normal";
  636. combo1.disabled = true;
  637. model.refresh();
  638. }
  639. ]]>
  640. </script>
  641. </select>
  642. <line id="line2" class="line_2" style="x1:2px; y1:69px; x2:410px; y2:69px; "/>
  643. <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:103px; top:71px; width:307px; height:49px; "/>
  644. <input id="input3" ref="/root/main/prcp/prcplist/prcphopedd" class="input_search" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:311px; top:226px; width:100px; height:19px; "/>
  645. <line id="line7" class="line_1" style="x1:2px; y1:14px; x2:410px; y2:14px; "/>
  646. <select id="checkbox9" ref="/root/chkflag/prcphopedd" overflow="visible" appearance="full" style="left:210px; top:226px; width:100px; height:20px; border-style:none; ">
  647. <choices>
  648. <item>
  649. <label>검사희망일</label>
  650. <value>Y</value>
  651. </item>
  652. </choices>
  653. <script type="javascript" ev:event="xforms-value-changed">
  654. <![CDATA[
  655. if ( model.getValue ( "/root/chkflag/prcphopedd" ) == "Y" ) {
  656. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "bold";
  657. input3.disabled = false;
  658. model.refresh();
  659. } else {
  660. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "normal";
  661. input3.disabled = true;
  662. model.refresh();
  663. }
  664. ]]>
  665. </script>
  666. </select>
  667. <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; ">
  668. <choices>
  669. <item>
  670. <label>응급</label>
  671. <value>Y</value>
  672. </item>
  673. </choices>
  674. </select>
  675. <select id="checkbox11" ref="/root/main/prcp/prcplist/prnprcpflag" overflow="visible" appearance="full" style="left:105px; top:49px; width:100px; height:20px; border-style:none; ">
  676. <choices>
  677. <item>
  678. <label>PRN</label>
  679. <value>Y</value>
  680. </item>
  681. </choices>
  682. </select>
  683. <select id="checkbox12" ref="/root/main/prcp/prcplist/erreadflag" overflow="visible" appearance="full" style="left:105px; top:150px; width:100px; height:20px; border-style:none; ">
  684. <choices>
  685. <item>
  686. <label>응급판독</label>
  687. <value>Y</value>
  688. </item>
  689. </choices>
  690. </select>
  691. <select id="checkbox15" ref="/root/main/prcp/prcplist/clincstdyflag" overflow="visible" appearance="full" style="left:105px; top:176px; width:100px; height:20px; border-style:none; ">
  692. <choices>
  693. <item>
  694. <label>임상연구</label>
  695. <value>Y</value>
  696. </item>
  697. </choices>
  698. </select>
  699. <line id="line4" class="line_3" style="x1:2px; y1:249px; x2:409px; y2:249px; "/>
  700. <caption id="caption18" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">공통</caption>
  701. <line id="line1" class="line_2" style="x1:2px; y1:122px; x2:410px; y2:122px; "/>
  702. <caption id="caption2" class="tit_2" style="left:5px; top:127px; width:121px; height:14px; ">진단검사</caption>
  703. <line id="line5" class="line_1" style="x1:2px; y1:141px; x2:410px; y2:141px; "/>
  704. <line id="line6" class="line_2" style="x1:2px; y1:170px; x2:410px; y2:170px; "/>
  705. <select id="checkbox14" ref="/root/main/prcp/prcplist/precureprcpflag" overflow="visible" appearance="full" style="left:311px; top:176px; width:100px; height:20px; border-style:none; ">
  706. <choices>
  707. <item>
  708. <label>선처치</label>
  709. <value>Y</value>
  710. </item>
  711. </choices>
  712. </select>
  713. <select id="checkbox6" ref="/root/chkflag/precureprcpflag" overflow="visible" appearance="full" style="left:212px; top:176px; width:100px; height:20px; border-style:none; ">
  714. <choices>
  715. <item>
  716. <label>선처치</label>
  717. <value>Y</value>
  718. </item>
  719. </choices>
  720. <script type="javascript" ev:event="xforms-value-changed">
  721. <![CDATA[
  722. if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
  723. checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "bold";
  724. checkbox14.disabled = false;
  725. model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "Y" );
  726. model.refresh();
  727. } else {
  728. checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "normal";
  729. checkbox14.disabled = true;
  730. model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "N" );
  731. model.refresh();
  732. }
  733. ]]>
  734. </script>
  735. </select>
  736. <select1 id="combo2" ref="/root/main/prcp/prcplist/prcpexecdeptcd" class="combo_default" appearance="minimal" itemcount="30" style="left:105px; top:201px; width:100px; height:19px; ">
  737. <choices>
  738. <itemset nodeset="/root/orddept/dept">
  739. <label ref="depthngnm"/>
  740. <value ref="deptcd"/>
  741. </itemset>
  742. </choices>
  743. </select1>
  744. <select id="checkbox16" ref="/root/chkflag/prcpexecdeptcd" overflow="visible" appearance="full" style="left:7px; top:202px; width:100px; height:20px; border-style:none; ">
  745. <choices>
  746. <item>
  747. <label>시행부서</label>
  748. <value>Y</value>
  749. </item>
  750. </choices>
  751. <script type="javascript" ev:event="xforms-value-changed">
  752. <![CDATA[
  753. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  754. checkbox16.item(checkbox16.focusIndex).attribute("font-weight") = "bold";
  755. combo2.disabled = false;
  756. model.refresh();
  757. } else {
  758. checkbox16.item(checkbox16.focusIndex).attribute("font-weight") = "normal";
  759. combo2.disabled = true;
  760. model.refresh();
  761. }
  762. ]]>
  763. </script>
  764. </select>
  765. <line id="line3" class="line_2" style="x1:2px; y1:197px; x2:410px; y2:197px; "/>
  766. <button id="button4" class="icon_search" style="left:76px; top:71px; width:16px; height:16px; ">
  767. <caption/>
  768. <script type="javascript" ev:event="DOMActivate">
  769. <![CDATA[
  770. setParameter ( "SPMMB02200_cond2", "3" );
  771. fPrcpModal ( "SPMMB02200", 50, 50 );
  772. model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
  773. model.refresh();
  774. ]]>
  775. </script>
  776. </button>
  777. <caption id="caption14" class="cell_1" style="left:207px; top:200px; width:53px; height:21px; "/>
  778. <caption id="caption15" style="left:230px; top:202px; width:27px; height:20px; ">예약</caption>
  779. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/rsrvflag" style="left:207px; top:200px; width:25px; height:20px; ">
  780. <script type="javascript" ev:event="xforms-value-changed">
  781. <![CDATA[
  782. if(input3.disabled == false){
  783. var rsrvflag = model.getValue("/root/main/cond/rsrvflag");
  784. if(rsrvflag == "Y"){
  785. model.setValue("/root/main/prcp/prcplist/prcphopedd", "99991231");
  786. }else if(rsrvflag == "N"){
  787. model.setValue("/root/main/prcp/prcplist/prcphopedd", "");
  788. }
  789. }else{
  790. model.setValue("/root/main/cond/rsrvflag", "N");
  791. }
  792. model.refresh();
  793. ]]>
  794. </script>
  795. </bool>
  796. <bool id="bool2" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:263px; top:201px; width:25px; height:20px; ">
  797. <script type="javascript" ev:event="xforms-value-changed">
  798. <![CDATA[
  799. if( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ){
  800. messageBox ( "기왕증은 임상연구와 동시에 선택 할 수", "I004" );
  801. bool2.value = "N";
  802. return;
  803. }
  804. if(bool2.value == "Y"){
  805. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  806. var pid = opener.model.getValue("/root/paminfo/list/pid");
  807. var indd = opener.model.getValue("/root/paminfo/list/indd");
  808. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  809. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  810. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  811. if(subcretno == "0"){
  812. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  813. bool2.value = "N";
  814. }
  815. } else {
  816. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  817. bool2.value = "N";
  818. }
  819. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  820. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  821. }
  822. ]]>
  823. </script>
  824. </bool>
  825. <caption id="caption23" style="left:285px; top:202px; width:50px; height:20px; ">기왕증</caption>
  826. <select id="checkbox4" ref="/root/main/prcp/prcplist/drprcpetc12" overflow="visible" appearance="full" style="left:105px; top:228px; width:100px; height:20px; border-style:none; ">
  827. <choices>
  828. <item>
  829. <label>F/U</label>
  830. <value>Y</value>
  831. </item>
  832. </choices>
  833. </select>
  834. <select id="checkbox13" ref="/root/chkflag/drprcpetc12" overflow="visible" appearance="full" style="left:7px; top:228px; width:100px; height:20px; border-style:none; ">
  835. <choices>
  836. <item>
  837. <label>F/U</label>
  838. <value>Y</value>
  839. </item>
  840. </choices>
  841. <script type="javascript" ev:event="xforms-value-changed">
  842. <![CDATA[
  843. if ( model.getValue ( "/root/chkflag/drprcpetc12" ) == "Y" ) {
  844. checkbox13.item(checkbox13.focusIndex).attribute("font-weight") = "bold";
  845. checkbox4.disabled = false;
  846. model.setValue ( "/root/main/prcp/prcplist/drprcpetc12", "Y" );
  847. model.setValue ( "/root/chkflag/prcphopedd", "Y" ); // 검사 희망일
  848. input3.disabled = false;
  849. model.refresh();
  850. } else {
  851. checkbox13.item(checkbox13.focusIndex).attribute("font-weight") = "normal";
  852. checkbox4.disabled = true;
  853. model.setValue ( "/root/main/prcp/prcplist/drprcpetc12", "N" );
  854. model.refresh();
  855. }
  856. ]]>
  857. </script>
  858. </select>
  859. </xhtml:body>
  860. </xhtml:html>