SPMMO13500_일괄입력치과.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  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. <subcretno/>
  119. <specdrid/>
  120. <anticncrprtlno/>
  121. <anticncrdayno/>
  122. <druglnkno/>
  123. <drprcpetc1/>
  124. <drprcpetc2/>
  125. <drprcpetc3/>
  126. <drprcpetc4/>
  127. <drprcpetc5/>
  128. <drprcpetc6/>
  129. <drprcpetc7/>
  130. <drprcpetc8/>
  131. <drprcpetc9/>
  132. <drprcpetc10/>
  133. <tempcol1/>
  134. <tempcol2/>
  135. <tempcol3/>
  136. <tempcol4/>
  137. <tempcol5/>
  138. <tempcol6/>
  139. <tempcol7/>
  140. <tempcol8/>
  141. <tempcol9/>
  142. <tempcol10/>
  143. <tempcol11/>
  144. <tempcol12/>
  145. <tempcol13/>
  146. <tempcol14/>
  147. <tempcol15/>
  148. <tempcol16/>
  149. <tempcol17/>
  150. <tempcol18/>
  151. <tempcol19/>
  152. <tempcol20/>
  153. <tempcol21/>
  154. <tempcol22/>
  155. <tempcol23/>
  156. <tempcol24/>
  157. <tempcol25/>
  158. </prcplist>
  159. </prcp>
  160. </main>
  161. <init>
  162. <prcpdirecflag/>
  163. <payflagcd/>
  164. <drugspd/>
  165. <drugmthdspccdnm/>
  166. <opansflagcd/>
  167. <orddept/>
  168. <nigtprcpflag/>
  169. </init>
  170. <chkflag>
  171. <erprcpflag/>
  172. <prnprcpflag/>
  173. <erreadflag/>
  174. <portprcpflag/>
  175. <precureprcpflag/>
  176. <clincstdyflag/>
  177. <payflagcd/>
  178. <prcphopedd/>
  179. <clinccmtcnts/>
  180. <prcpdelivefact/>
  181. <nigtprcpflag/>
  182. <choiordflag/>
  183. <opansflagcd/>
  184. <prcpexecdeptcd/>
  185. <tootfact/>
  186. <anamneflag/>
  187. </chkflag>
  188. <orddept/>
  189. <temp>
  190. <send/>
  191. <patsupkind/>
  192. </temp>
  193. </root>
  194. </instance>
  195. <script type="javascript" ev:event="xforms-model-construct-done">
  196. <![CDATA[
  197. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
  198. zbcfGetCodeList(new Array("M0029", "M0007", "M0639"), new Array("/root/init/payflagcd", "/root/init/opansflagcd", "/root/init/nigtprcpflag"));
  199. fPrcpExecDeptSrch("all");
  200. checkbox10.disabled = true;
  201. checkbox3.disabled = true;
  202. checkbox15.disabled = true;
  203. button4.disabled = true;
  204. combo1.disabled = true;
  205. combo2.disabled = true;
  206. combo3.disabled = true;
  207. combo4.disabled = true;
  208. textarea1.disabled = true;
  209. model.refresh();
  210. ]]>
  211. </script>
  212. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  213. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  214. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  215. <submission id="TRMMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/orddept"/>
  216. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  217. </model>
  218. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  219. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  220. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  221. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  222. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  223. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  224. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  225. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  226. <script type="javascript">
  227. <![CDATA[
  228. function fTootFact () {
  229. //처방 치식 setting 시작
  230. var prcpNm = "";
  231. var tootFact = "";
  232. var sPrcpStr = "prcpcd▦tootfact▦rtntootfact▦rowcnt▩";
  233. prcpNm = model.getValue( "/root/main/prcp/prcplist/prcpcd") + "▦▦";
  234. tootFact = model.getValue( "/root/main/prcp/prcplist/tootfact") + "▦1▩";
  235. sPrcpStr = sPrcpStr + prcpNm + tootFact;
  236. setParameter("param_prcplist", sPrcpStr);
  237. var sDiagStr = "diagcd▦tootfact▦rtntootfact▦rowcnt▩";
  238. setParameter( "param_diaglist", sDiagStr );
  239. setParameter( "SPMMO10500_open", "Y" );
  240. modal ( "SPMMO10500" );
  241. clearParameter( "SPMMO10500_open" );
  242. if ( getParameter("rtn_useyn") == "Y" ) {
  243. var prow = 0;
  244. var ptootfact = "";
  245. var drow = 0;
  246. var dtootfact = "";
  247. var prcplen = getParameter("rtn_prcptootfact").split("▩").length;
  248. for ( var i=1; i < prcplen-1; i++ ) {
  249. prow = getArrayData ( getParameter("rtn_prcptootfact"), i, 3, "▩", "▦" ); //치식이 입력될 row
  250. ptootfact = getArrayData (getParameter("rtn_prcptootfact"), i, 2, "▩", "▦" )//치식
  251. model.setValue ( "/root/main/prcp/prcplist/tootfact", ptootfact);
  252. }
  253. model.refresh();
  254. }
  255. }
  256. ]]>
  257. </script>
  258. </xhtml:head>
  259. <xhtml:body pagewidth="426" pageheight="260" guideline="2,254;1,410;1,426;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  260. <caption id="caption10" class="cell_1" style="left:207px; top:172px; width:100px; height:23px; "/>
  261. <caption id="caption5" class="cell_1" style="left:2px; top:172px; width:100px; height:23px; "/>
  262. <caption id="caption22" class="cell_1" style="left:2px; top:199px; width:100px; height:21px; "/>
  263. <caption id="caption9" class="cell_1" style="left:2px; top:146px; width:100px; height:23px; "/>
  264. <caption id="caption8" class="cell_1" style="left:207px; top:197px; width:100px; height:23px; "/>
  265. <button id="button1" class="btn4_letter2" style="left:294px; top:229px; width:56px; height:22px; ">
  266. <caption>확인</caption>
  267. <script type="javascript" ev:event="onclick">
  268. <![CDATA[
  269. var erprcpflag_useyn = "";
  270. var erprcpflag = "";
  271. var nigtprcpflag_useyn = "";
  272. var nigtprcpflag = "";
  273. var opansflagcd_useyn = "";
  274. var opansflagcd = "";
  275. var tempcol1_useyn = "";
  276. var tempcol1 = "";
  277. var payflagcd_useyn = "";
  278. var payflagcd = "";
  279. var clincstdyflag_useyn = "";
  280. var clincstdyflag = "";
  281. var precureprcpflag_useyn = "";
  282. var precureprcpflag = "";
  283. var prcpexecdeptcd_useyn = "";
  284. var prcpexecdeptcd = "";
  285. var prcpdelivefact_useyn = "";
  286. var prcpdelivefact = "";
  287. var tootfact_useyn = "";
  288. var tootfact = "";
  289. var useyn = "";
  290. var value = "";
  291. var header = "erprcpflag|nigtprcpflag|opansflagcd|tempcol1|payflagcd|clincstdyflag|precureprcpflag|prcpexecdeptcd|tootfact|anamneflag|prcpdelivefact|subcretno^";
  292. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  293. erprcpflag_useyn = "Y" + "|";
  294. erprcpflag = model.getValue ("/root/main/prcp/prcplist/erprcpflag" ) + "|";
  295. if ( isNull(model.getValue ("/root/main/prcp/prcplist/erprcpflag" ))) {
  296. erprcpflag = "N" + "|";
  297. }
  298. } else {
  299. erprcpflag_useyn = "N" + "|";
  300. erprcpflag = "" + "|";
  301. }
  302. useyn = useyn + erprcpflag_useyn;
  303. value = value + erprcpflag;
  304. if ( model.getValue ( "/root/chkflag/nigtprcpflag" ) == "Y" ) {
  305. nigtprcpflag_useyn = "Y" + "|";
  306. nigtprcpflag = model.getValue ("/root/main/prcp/prcplist/nigtprcpflag" ) + "|";
  307. if ( isNull(model.getValue ("/root/main/prcp/prcplist/nigtprcpflag" ))) {
  308. nigtprcpflag = "N" + "|";
  309. }
  310. } else {
  311. nigtprcpflag_useyn = "N" + "|";
  312. nigtprcpflag = "" + "|";
  313. }
  314. useyn = useyn + nigtprcpflag_useyn ;
  315. value = value + nigtprcpflag;
  316. if ( model.getValue ( "/root/chkflag/opansflagcd" ) == "Y" ) {
  317. opansflagcd_useyn = "Y" + "|";
  318. tempcol1_useyn = "Y" + "|";
  319. opansflagcd = model.getValue ( "/root/main/prcp/prcplist/opansflagcd" ) + "|";
  320. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/opansflagcd" ))) {
  321. model.alert ( "입력된 수술유형 값이 없습니다." ) ;
  322. return;
  323. } else {
  324. tempcol1 = combo2.label + "|";
  325. }
  326. } else {
  327. opansflagcd_useyn = "N" + "|";
  328. opansflagcd = "" + "|";
  329. tempcol1_useyn = "N" + "|";
  330. tempcol1 = "" + "|";
  331. }
  332. useyn = useyn + opansflagcd_useyn + tempcol1_useyn ;
  333. value = value + opansflagcd + tempcol1;
  334. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  335. payflagcd_useyn = "Y" + "|";
  336. payflagcd = model.getValue ( "/root/main/prcp/prcplist/payflagcd" ) + "|";
  337. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/payflagcd" ))) {
  338. model.alert ( "입력된 급여구분 값이 없습니다." ) ;
  339. return;
  340. }
  341. } else {
  342. payflagcd_useyn = "N" + "|";
  343. payflagcd = "" + "|";
  344. }
  345. useyn = useyn + payflagcd_useyn ;
  346. value = value + payflagcd;
  347. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  348. clincstdyflag_useyn = "Y" + "|";
  349. clincstdyflag = model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ) + "|";
  350. if ( isNull(model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ))) {
  351. clincstdyflag = "N" + "|";
  352. }
  353. } else {
  354. clincstdyflag_useyn = "N" + "|";
  355. clincstdyflag = "" + "|";
  356. }
  357. useyn = useyn + clincstdyflag_useyn ;
  358. value = value + clincstdyflag;
  359. if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
  360. precureprcpflag_useyn = "Y" + "|";
  361. precureprcpflag = model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ) + "|";
  362. if ( isNull(model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ))) {
  363. precureprcpflag = "N" + "|";
  364. }
  365. } else {
  366. precureprcpflag_useyn = "N" + "|";
  367. precureprcpflag = "" + "|";
  368. }
  369. useyn = useyn + precureprcpflag_useyn ;
  370. value = value + precureprcpflag;
  371. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  372. prcpexecdeptcd_useyn = "Y" + "|";
  373. prcpexecdeptcd = model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ) + "|";
  374. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ))) {
  375. model.alert ( "입력된 시행부서가 없습니다." ) ;
  376. return;
  377. }
  378. } else {
  379. prcpexecdeptcd_useyn = "N" + "|";
  380. prcpexecdeptcd = "" + "|";
  381. }
  382. useyn = useyn + prcpexecdeptcd_useyn ;
  383. value = value + prcpexecdeptcd;
  384. if ( model.getValue ( "/root/chkflag/tootfact" ) == "Y" ) {
  385. tootfact_useyn = "Y" + "|";
  386. tootfact = model.getValue ( "/root/main/prcp/prcplist/tootfact" ) + "|";
  387. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/tootfact" ))) {
  388. model.alert ( "입력된 치식이 없습니다." ) ;
  389. return;
  390. }
  391. } else {
  392. tootfact_useyn = "N" + "|";
  393. tootfact = "" + "|";
  394. }
  395. useyn = useyn + tootfact_useyn ;
  396. value = value + tootfact;
  397. if( model.getValue ( " /root/chkflag/anamneflag" ) == "Y" ) {
  398. useyn = useyn + "Y" + "|";
  399. value = value + "Y" + "|";
  400. } else {
  401. useyn = useyn + "N" + "|";
  402. value = value + "N" + "|";
  403. }
  404. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  405. prcpdelivefact_useyn = "Y" + "|";
  406. prcpdelivefact = model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ) + "|";
  407. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ))) {
  408. model.alert ( "입력된 전달사항 값이 없습니다." );
  409. return;
  410. }
  411. } else {
  412. prcpdelivefact_useyn = "N" + "|";
  413. prcpdelivefact = "" + "|";
  414. }
  415. useyn = useyn + prcpdelivefact_useyn ;
  416. value = value + prcpdelivefact;
  417. //2008. 07. 01 기왕증 입력에 따른 subcretno설정, 오지훈
  418. var subcretno_useyn = "";
  419. var subcretno = 0;
  420. if ( bool2.value == "Y") {
  421. subcretno_useyn = "Y";
  422. subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
  423. }else{
  424. subcretno_useyn = "N";
  425. }
  426. useyn = useyn + subcretno_useyn + "^";
  427. value = value + subcretno + "^";
  428. var batipt_rtn1 = header + useyn + value;
  429. opener.javascript.setParameter ( "batipt_rtn1", batipt_rtn1 );
  430. opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
  431. window.close();
  432. ]]>
  433. </script>
  434. </button>
  435. <button id="button2" class="btn4_letter2" style="left:354px; top:229px; width:56px; height:22px; ">
  436. <caption>취소</caption>
  437. <script type="javascript" ev:event="onclick">
  438. <![CDATA[
  439. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  440. window.close();
  441. ]]>
  442. </script>
  443. </button>
  444. <caption id="caption7" class="cell_1" style="left:207px; top:19px; width:100px; height:23px; "/>
  445. <caption id="caption6" class="cell_1" style="left:207px; top:120px; width:100px; height:23px; "/>
  446. <caption id="caption3" class="cell_1" style="left:2px; top:45px; width:100px; height:50px; "/>
  447. <caption id="caption4" class="cell_1" style="left:2px; top:120px; width:100px; height:23px; "/>
  448. <caption id="caption1" class="cell_1" style="left:2px; top:19px; width:100px; height:23px; "/>
  449. <select id="checkbox1" ref="/root/chkflag/erprcpflag" overflow="visible" appearance="full" style="left:7px; top:23px; width:100px; height:20px; border-style:none; ">
  450. <choices>
  451. <item>
  452. <label>응급</label>
  453. <value>Y</value>
  454. </item>
  455. </choices>
  456. <script type="javascript" ev:event="xforms-value-changed">
  457. <![CDATA[
  458. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  459. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
  460. checkbox10.disabled = false;
  461. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "Y" );
  462. model.refresh();
  463. } else {
  464. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
  465. checkbox10.disabled = true;
  466. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "N" );
  467. model.refresh();
  468. }
  469. ]]>
  470. </script>
  471. </select>
  472. <select id="checkbox2" ref="/root/chkflag/nigtprcpflag" overflow="visible" appearance="full" style="left:7px; top:124px; width:100px; height:20px; border-style:none; ">
  473. <choices>
  474. <item>
  475. <label>야간/심야</label>
  476. <value>Y</value>
  477. </item>
  478. </choices>
  479. <script type="javascript" ev:event="xforms-value-changed">
  480. <![CDATA[
  481. if ( model.getValue ( "/root/chkflag/nigtprcpflag" ) == "Y" ) {
  482. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "bold";
  483. combo4.disabled = false;
  484. model.refresh();
  485. } else {
  486. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "normal";
  487. combo1.disabled = true;
  488. model.refresh();
  489. }
  490. ]]>
  491. </script>
  492. </select>
  493. <line id="line15" class="line_2" style="x1:2px; y1:43px; x2:410px; y2:43px; "/>
  494. <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:48px; width:68px; height:25px; border-style:none; ">
  495. <choices>
  496. <item>
  497. <label>전달사항</label>
  498. <value>Y</value>
  499. </item>
  500. </choices>
  501. <script type="javascript" ev:event="xforms-value-changed">
  502. <![CDATA[
  503. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  504. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "bold";
  505. textarea1.disabled = false;
  506. button4.disabled = false;
  507. model.refresh();
  508. } else {
  509. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "normal";
  510. textarea1.disabled = true;
  511. button4.disabled = true;
  512. model.refresh();
  513. }
  514. ]]>
  515. </script>
  516. </select>
  517. <select id="checkbox7" ref="/root/chkflag/opansflagcd" overflow="visible" appearance="full" style="left:212px; top:124px; width:100px; height:20px; border-style:none; ">
  518. <choices>
  519. <item>
  520. <label>수술유형</label>
  521. <value>Y</value>
  522. </item>
  523. </choices>
  524. <script type="javascript" ev:event="xforms-value-changed">
  525. <![CDATA[
  526. if ( model.getValue ( "/root/chkflag/opansflagcd" ) == "Y" ) {
  527. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "bold";
  528. combo2.disabled = false;
  529. model.refresh();
  530. } else {
  531. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  532. combo2.disabled = true;
  533. model.refresh();
  534. }
  535. ]]>
  536. </script>
  537. </select>
  538. <select1 id="combo1" ref="/root/main/prcp/prcplist/payflagcd" class="combo_default" appearance="minimal" style="left:310px; top:21px; width:100px; height:19px; ">
  539. <choices>
  540. <itemset nodeset="/root/init/payflagcd/M0029">
  541. <label ref="cdnm"/>
  542. <value ref="cdid"/>
  543. </itemset>
  544. </choices>
  545. </select1>
  546. <select id="checkbox8" ref="/root/chkflag/payflagcd" overflow="visible" appearance="full" style="left:212px; top:24px; width:100px; height:20px; border-style:none; ">
  547. <choices>
  548. <item>
  549. <label>급여</label>
  550. <value>Y</value>
  551. </item>
  552. </choices>
  553. <script type="javascript" ev:event="xforms-value-changed">
  554. <![CDATA[
  555. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  556. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "bold";
  557. combo1.disabled = false;
  558. model.refresh();
  559. } else {
  560. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "normal";
  561. combo1.disabled = true;
  562. model.refresh();
  563. }
  564. ]]>
  565. </script>
  566. </select>
  567. <line id="line3" class="line_2" style="x1:2px; y1:43px; x2:409px; y2:43px; "/>
  568. <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:103px; top:45px; width:307px; height:49px; "/>
  569. <line id="line7" class="line_1" style="x1:2px; y1:14px; x2:410px; y2:14px; "/>
  570. <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; ">
  571. <choices>
  572. <item>
  573. <label>응급</label>
  574. <value>Y</value>
  575. </item>
  576. </choices>
  577. </select>
  578. <select1 id="combo4" ref="/root/main/prcp/prcplist/nigtprcpflag" class="combo_default" appearance="minimal" style="left:105px; top:124px; width:100px; height:19px; ">
  579. <choices>
  580. <itemset nodeset="/root/init/nigtprcpflag/M0639">
  581. <label ref="cdnm"/>
  582. <value ref="cdid"/>
  583. </itemset>
  584. </choices>
  585. </select1>
  586. <line id="line4" class="line_3" style="x1:2px; y1:222px; x2:409px; y2:222px; "/>
  587. <select1 id="combo2" ref="/root/main/prcp/prcplist/opansflagcd" class="combo_default" appearance="minimal" style="left:309px; top:122px; width:100px; height:19px; ">
  588. <choices>
  589. <itemset nodeset="/root/init/opansflagcd/M0007">
  590. <label ref="cdnm"/>
  591. <value ref="cdid"/>
  592. </itemset>
  593. </choices>
  594. </select1>
  595. <line id="line1" class="line_2" style="x1:2px; y1:96px; x2:409px; y2:96px; "/>
  596. <caption id="caption18" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">공통</caption>
  597. <line id="line5" class="line_1" style="x1:2px; y1:115px; x2:410px; y2:115px; "/>
  598. <caption id="caption2" class="tit_2" style="left:5px; top:101px; width:121px; height:14px; ">치과</caption>
  599. <select id="checkbox16" ref="/root/chkflag/prcpexecdeptcd" overflow="visible" appearance="full" style="left:212px; top:200px; width:100px; height:20px; border-style:none; ">
  600. <choices>
  601. <item>
  602. <label>시행부서</label>
  603. <value>Y</value>
  604. </item>
  605. </choices>
  606. <script type="javascript" ev:event="xforms-value-changed">
  607. <![CDATA[
  608. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  609. checkbox16.item(checkbox16.focusIndex).attribute("font-weight") = "bold";
  610. combo3.disabled = false;
  611. btn_srchexecdept.disabled = false;
  612. model.refresh();
  613. } else {
  614. checkbox16.item(checkbox16.focusIndex).attribute("font-weight") = "normal";
  615. combo3.disabled = true;
  616. btn_srchexecdept.disabled = true;
  617. model.refresh();
  618. }
  619. ]]>
  620. </script>
  621. </select>
  622. <select1 id="combo3" ref="/root/main/prcp/prcplist/prcpexecdeptcd" class="combo_default" appearance="minimal" itemcount="30" style="left:310px; top:199px; width:100px; height:19px; ">
  623. <choices>
  624. <itemset nodeset="/root/orddept/dept">
  625. <label ref="depthngnm"/>
  626. <value ref="deptcd"/>
  627. </itemset>
  628. </choices>
  629. </select1>
  630. <select id="checkbox4" ref="/root/chkflag/tootfact" overflow="visible" appearance="full" style="left:7px; top:150px; width:100px; height:20px; border-style:none; ">
  631. <choices>
  632. <item>
  633. <label>치식</label>
  634. <value>Y</value>
  635. </item>
  636. </choices>
  637. <script type="javascript" ev:event="xforms-value-changed">
  638. <![CDATA[
  639. if ( model.getValue ( "/root/chkflag/tootfact" ) == "Y" ) {
  640. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "bold";
  641. fTootFact ();
  642. model.refresh();
  643. } else {
  644. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "normal";
  645. model.setValue ( "/root/main/prcp/prcplist/tootfact", "" );
  646. model.refresh();
  647. }
  648. ]]>
  649. </script>
  650. </select>
  651. <output id="output1" ref="/root/main/prcp/prcplist/tootfact" style="left:105px; top:148px; width:305px; height:19px; border-color:#c0c0c0; border-style:solid; ">
  652. <script type="javascript" ev:event="ondblclick">
  653. <![CDATA[
  654. if ( model.getValue ( "/root/chkflag/tootfact" ) == "Y" ) {
  655. fTootFact ();
  656. }
  657. ]]>
  658. </script>
  659. </output>
  660. <button id="button4" class="icon_search" style="left:79px; top:48px; width:16px; height:16px; ">
  661. <caption/>
  662. <script type="javascript" ev:event="DOMActivate">
  663. <![CDATA[
  664. setParameter ( "SPMMB02200_cond2", "3" );
  665. fPrcpModal ( "SPMMB02200", 50, 50 );
  666. model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
  667. model.refresh();
  668. ]]>
  669. </script>
  670. </button>
  671. <button id="btn_srchexecdept" class="icon_search" disabled="true" style="left:289px; top:200px; width:16px; height:16px; ">
  672. <caption/>
  673. <script type="javascript" ev:event="DOMActivate">
  674. <![CDATA[
  675. modal("SPMMB02500");
  676. ]]>
  677. </script>
  678. </button>
  679. <bool id="bool2" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:2px; top:200px; width:25px; height:20px; ">
  680. <script type="javascript" ev:event="xforms-value-changed">
  681. <![CDATA[
  682. if( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ){
  683. messageBox ( "기왕증은 임상연구와 동시에 선택 할 수", "I004" );
  684. bool2.value = "N";
  685. return;
  686. }
  687. if(bool2.value == "Y"){
  688. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  689. var pid = opener.model.getValue("/root/paminfo/list/pid");
  690. var indd = opener.model.getValue("/root/paminfo/list/indd");
  691. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  692. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  693. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  694. if(subcretno == "0"){
  695. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  696. bool2.value = "N";
  697. }
  698. } else {
  699. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  700. bool2.value = "N";
  701. }
  702. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  703. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  704. }
  705. ]]>
  706. </script>
  707. </bool>
  708. <caption id="caption23" style="left:24px; top:201px; width:50px; height:20px; ">기왕증</caption>
  709. <select id="checkbox3" ref="/root/main/prcp/prcplist/precureprcpflag" overflow="visible" appearance="full" style="left:310px; top:177px; width:100px; height:20px; border-style:none; ">
  710. <choices>
  711. <item>
  712. <label>선처치</label>
  713. <value>Y</value>
  714. </item>
  715. </choices>
  716. </select>
  717. <select id="checkbox15" ref="/root/main/prcp/prcplist/clincstdyflag" overflow="visible" appearance="full" style="left:104px; top:177px; width:100px; height:20px; border-style:none; ">
  718. <choices>
  719. <item>
  720. <label>임상연구</label>
  721. <value>Y</value>
  722. </item>
  723. </choices>
  724. </select>
  725. <select id="checkbox9" ref="/root/chkflag/precureprcpflag" overflow="visible" appearance="full" style="left:212px; top:176px; width:100px; height:20px; border-style:none; ">
  726. <choices>
  727. <item>
  728. <label>선처치</label>
  729. <value>Y</value>
  730. </item>
  731. </choices>
  732. <script type="javascript" ev:event="xforms-value-changed">
  733. <![CDATA[
  734. if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
  735. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "bold";
  736. checkbox3.disabled = false;
  737. model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "Y" );
  738. model.refresh();
  739. } else {
  740. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "normal";
  741. checkbox3.disabled = true;
  742. model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "N" );
  743. model.refresh();
  744. }
  745. ]]>
  746. </script>
  747. </select>
  748. <line id="line2" class="line_2" style="x1:2px; y1:169px; x2:410px; y2:169px; "/>
  749. <select id="checkbox12" ref="/root/chkflag/clincstdyflag" overflow="visible" appearance="full" style="left:7px; top:177px; width:100px; height:20px; border-style:none; ">
  750. <choices>
  751. <item>
  752. <label>임상연구</label>
  753. <value>Y</value>
  754. </item>
  755. </choices>
  756. <script type="javascript" ev:event="xforms-value-changed">
  757. <![CDATA[
  758. if( bool2.value == "Y" ){
  759. messageBox ( "임상연구는 기왕증과 동시에 선택 할 수", "I004" );
  760. model.setValue ( "/root/chkflag/clincstdyflag" , "");
  761. model.refresh();
  762. return;
  763. }
  764. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  765. if ( fSubcretnoSet("1", null) == -1 ) {
  766. model.setValue ( "/root/chkflag/clincstdyflag" , "N");
  767. checkbox12.item(checkbox12.focusIndex).attribute("font-weight") = "normal";
  768. checkbox15.disabled = true;
  769. checkbox12.disabled = true;
  770. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  771. model.refresh();
  772. return;
  773. }
  774. checkbox12.item(checkbox12.focusIndex).attribute("font-weight") = "bold";
  775. checkbox15.disabled = false;
  776. checkbox12.disabled = false;
  777. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "Y" );
  778. model.refresh();
  779. } else {
  780. fSubcretnoSet("1", null);
  781. checkbox12.item(checkbox12.focusIndex).attribute("font-weight") = "normal";
  782. checkbox15.disabled = true;
  783. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  784. model.refresh();
  785. }
  786. ]]>
  787. </script>
  788. </select>
  789. <line id="line6" class="line_2" style="x1:2px; y1:169px; x2:409px; y2:169px; "/>
  790. <line id="line8" class="line_2" style="x1:2px; y1:199px; x2:410px; y2:199px; "/>
  791. </xhtml:body>
  792. </xhtml:html>