SPMMO12200_일괄입력주사.xrw 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559
  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. <hosinprcpresncd/>
  186. <drugspdunitflag/>
  187. <orddept/>
  188. <contprcpspec/>
  189. </init>
  190. <chkflag>
  191. <erprcpflag/>
  192. <prnprcpflag/>
  193. <erreadflag/>
  194. <portprcpflag/>
  195. <precureprcpflag/>
  196. <clincstdyflag/>
  197. <payflagcd/>
  198. <prcphopedd/>
  199. <clinccmtcnts/>
  200. <prcpdelivefact/>
  201. <prepprcpflag/>
  202. <powdflag/>
  203. <selfdrugflag/>
  204. <prcpqty/>
  205. <prcpdayno/>
  206. <asttestflag/>
  207. <prcptims/>
  208. <prcpexecdeptcd/>
  209. <drugmthdspccd/>
  210. <hosinhosoutflag/>
  211. <selfprcpflag/>
  212. <prcpmixno/>
  213. <drugspd/>
  214. <contprcpspec/>
  215. <mealcalrcnts/>
  216. <anamneflag/>
  217. </chkflag>
  218. <orddept/>
  219. <temp>
  220. <send/>
  221. <patsupkind/>
  222. </temp>
  223. </root>
  224. </instance>
  225. <script type="javascript" ev:event="xforms-model-construct-done">
  226. <![CDATA[
  227. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
  228. zbcfGetCodeList(new Array("M0029", "P0323", "M0040"), new Array("/root/init/payflagcd", "/root/init/hosinprcpresncd","/root/init/drugspdunitflag"));
  229. model.setValue ( "/root/main/prcp/prcplist/prcpclscd", opener.model.getValue ( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedrow(0) + "]/prcpclscd" ));
  230. reqHardCodeInfo("/root/main/temp/prnuseyn", "/root/main/temp/prnuseyn", "173");
  231. if (opener.javascript.getParameter("SPMMO12200_prnchk") == "SMMMB00200" && model.getValue("/root/main/temp/prnuseyn/hardcd/hardcd")=="N"){
  232. checkbox2.visible = false;
  233. checkbox11.visible = false;
  234. caption4.visible = false;
  235. }else if(model.getValue("/root/main/temp/prnuseyn/hardcd/hardcd")=="Y"){
  236. checkbox2.visible = false;
  237. checkbox11.visible = false;
  238. caption4.visible = false;
  239. }
  240. fPrcpExecDeptSrch("all");
  241. checkbox10.disabled = true;
  242. checkbox11.disabled = true;
  243. checkbox12.disabled = true;
  244. checkbox13.disabled = true;
  245. checkbox14.disabled = true;
  246. checkbox15.disabled = true;
  247. checkbox16.disabled = true;
  248. checkbox18.disabled = true;
  249. button4.disabled = true;
  250. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  251. var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd");
  252. if ( prcpgenrflag == "O" ) { //외래일때
  253. if ( opener.model.getValue ( "/root/usge" ) == "prcp" ) {
  254. checkbox2.disabled = true;
  255. }
  256. if ( hosinprcpresncd == "00" ) { //처방화면에 원내처방 사유가 없으면 원외
  257. model.setValue ( "/root/main/prcp/prcplist/hosinhosoutflag", "O" );
  258. } else { //처방화면에 원내처방 사유가 있으면 원내
  259. model.setValue ( "/root/main/prcp/prcplist/hosinhosoutflag", "I" );
  260. model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd",hosinprcpresncd );
  261. }
  262. } else {
  263. if ( prcpgenrflag == "I" ) { //입원이면 원내/원외 체크박스 disable
  264. checkbox24.disabled = true;
  265. }
  266. model.setValue ( "/root/main/prcp/prcplist/hosinhosoutflag", "I" );
  267. model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd", hosinprcpresncd );
  268. }
  269. combo1.disabled = true;
  270. combo2.disabled = true;
  271. combo3.disabled = true;
  272. combo4.disabled = true;
  273. radio2.disabled = true;
  274. input1.disabled = true;
  275. input2.disabled = true;
  276. input3.disabled = true;
  277. input5.disabled = true;
  278. radio1.disabled = true;
  279. textarea1.disabled = true;
  280. model.refresh();
  281. opener.javascript.setParameter ( "batipt_rtn1", "" );
  282. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  283. opener.javascript.setParameter ( "SPMMO12100_drugrateqty", "" );
  284. opener.javascript.setParameter ( "SPMMO12200_contprcpspec", "" );
  285. opener.javascript.setParameter ( "SPMMO12100_chgmthd", "" );
  286. ]]>
  287. </script>
  288. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  289. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  290. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  291. <submission id="TRMMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/orddept"/>
  292. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  293. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  294. </model>
  295. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  296. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  297. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  298. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  299. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  300. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  301. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  302. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  303. </xhtml:head>
  304. <xhtml:body pagewidth="430" pageheight="452" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  305. <caption id="caption22" class="cell_1" style="left:206px; top:279px; width:101px; height:23px; "/>
  306. <caption id="caption21" class="cell_1" style="left:0px; top:385px; width:101px; height:23px; "/>
  307. <output id="output1" ref="/root/main/prcp/prcplist/drugmthdspccd" visibility="hidden" style="left:310px; top:306px; width:100px; height:19px; "/>
  308. <caption id="caption16" class="cell_1" style="left:2px; top:358px; width:101px; height:23px; "/>
  309. <caption id="caption14" class="cell_1" style="left:2px; top:253px; width:100px; height:23px; "/>
  310. <caption id="caption13" class="cell_1" style="left:2px; top:279px; width:101px; height:23px; "/>
  311. <caption id="caption10" class="cell_1" style="left:2px; top:200px; width:100px; height:23px; "/>
  312. <button id="button1" class="btn4_letter2" style="left:294px; top:416px; width:56px; height:22px; ">
  313. <caption>확인</caption>
  314. <script type="javascript" ev:event="onclick">
  315. <![CDATA[
  316. var erprcpflag_useyn = "";
  317. var erprcpflag = "";
  318. var prnprcpflag_useyn = "";
  319. var prnprcpflag = "";
  320. var prepprcpflag_useyn = "";
  321. var prepprcpflag = "";
  322. var selfprcpflag_useyn = "";
  323. var selfprcpflag = "";
  324. var selfdrugflag_useyn = "";
  325. var selfdrugflag = "";
  326. var prcpqty_useyn = "";
  327. var prcpqty = "";
  328. var prcptims_useyn = "";
  329. var prcptims = "";
  330. var drugmthdspccd_useyn = "";
  331. var drugmthdspccd = "";
  332. var drugmthdspccdnm_useyn = ""
  333. var drugmthdspccdnm = "";
  334. var rateprcpflag_useyn = "";
  335. var rateprcpflag = "";
  336. var drugrateqty_useyn = "";
  337. var drugrateqty = "";
  338. var precureprcpflag_useyn = "";
  339. var precureprcpflag = "";
  340. var clincstdyflag_useyn = "";
  341. var clincstdyflag = "";
  342. var asttestflag_useyn = "";
  343. var asttestflag = "";
  344. var payflagcd_useyn = "";
  345. var payflagcd = "";
  346. var prcpexecdeptcd_useyn = "";
  347. var prcpexecdeptcd = "";
  348. var prcpdayno_useyn = "";
  349. var prcpdayno = "";
  350. var hosinhosoutflag_useyn = "";
  351. var hosinhosoutflag = "";
  352. var hosinprcpresncd_useyn = "";
  353. var hosinprcpresncd = "";
  354. var drugspd_useyn = "";
  355. var drugspd = "";
  356. var drugspdunitflag_useyn = "";
  357. var drugspdunitflag = "";
  358. var contprcpspec_useyn = "";
  359. var contprcpspec = "";
  360. var mealcalrcnts_useyn = "";
  361. var mealcalrcnts = "";
  362. var prcpdelivefact_useyn = "";
  363. var prcpdelivefact = "";
  364. var useyn = "";
  365. var value = "";
  366. var header = "erprcpflag|prnprcpflag|prepprcpflag|selfprcpflag|selfdrugflag|prcpqty|prcptims|drugmthdspccd|drugmthdspccdnm|rateprcpflag|drugrateqty|precureprcpflag|clincstdyflag|asttestflag|payflagcd|prcpexecdeptcd|prcpdayno|hosinhosoutflag|hosinprcpresncd|drugspd|drugspdunitflag|contprcpspec|mealcalrcnts|anamneflag|prcpdelivefact|subcretno^";
  367. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  368. erprcpflag_useyn = "Y" + "|";
  369. erprcpflag = model.getValue ("/root/main/prcp/prcplist/erprcpflag" ) + "|";
  370. if ( isNull(model.getValue ("/root/main/prcp/prcplist/erprcpflag" ))) {
  371. erprcpflag = "N" + "|";
  372. }
  373. } else {
  374. erprcpflag_useyn = "N" + "|";
  375. erprcpflag = "" + "|";
  376. }
  377. useyn = useyn + erprcpflag_useyn;
  378. value = value + erprcpflag;
  379. if ( model.getValue ( "/root/chkflag/prnprcpflag" ) == "Y" ) {
  380. prnprcpflag_useyn = "Y" + "|";
  381. prnprcpflag = model.getValue ("/root/main/prcp/prcplist/prnprcpflag" ) + "|";
  382. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prnprcpflag" ))) {
  383. prnprcpflag = "N" + "|";
  384. }
  385. } else {
  386. prnprcpflag_useyn = "N" + "|";
  387. prnprcpflag = "" + "|";
  388. }
  389. useyn = useyn + prnprcpflag_useyn ;
  390. value = value + prnprcpflag;
  391. if ( model.getValue ( "/root/chkflag/prepprcpflag" ) == "Y" ) {
  392. prepprcpflag_useyn = "Y" + "|";
  393. prepprcpflag = model.getValue ("/root/main/prcp/prcplist/prepprcpflag" ) + "|";
  394. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prepprcpflag" ))) {
  395. prepprcpflag = "N" + "|";
  396. }
  397. } else {
  398. prepprcpflag_useyn = "N" + "|";
  399. prepprcpflag = "" + "|";
  400. }
  401. useyn = useyn + prepprcpflag_useyn ;
  402. value = value + prepprcpflag;
  403. if ( model.getValue ( "/root/chkflag/selfprcpflag" ) == "Y" ) {
  404. selfprcpflag_useyn = "Y" + "|";
  405. selfprcpflag = model.getValue ("/root/main/prcp/prcplist/selfprcpflag" ) + "|";
  406. if ( isNull(model.getValue ("/root/main/prcp/prcplist/selfprcpflag" ))) {
  407. selfprcpflag = "N" + "|";
  408. }
  409. } else {
  410. selfprcpflag_useyn = "N" + "|";
  411. selfprcpflag = "" + "|";
  412. }
  413. useyn = useyn + selfprcpflag_useyn ;
  414. value = value + selfprcpflag;
  415. if ( model.getValue ( "/root/chkflag/selfdrugflag" ) == "Y" ) {
  416. selfdrugflag_useyn = "Y" + "|";
  417. selfdrugflag = model.getValue ("/root/main/prcp/prcplist/selfdrugflag" ) + "|";
  418. if ( isNull(model.getValue ("/root/main/prcp/prcplist/selfdrugflag" ))) {
  419. selfdrugflag = "N" + "|";
  420. }
  421. } else {
  422. selfdrugflag_useyn = "N" + "|";
  423. selfdrugflag = "" + "|";
  424. }
  425. useyn = useyn + selfdrugflag_useyn ;
  426. value = value + selfdrugflag;
  427. if ( model.getValue ( "/root/chkflag/prcpqty" ) == "Y" ) {
  428. prcpqty_useyn = "Y" + "|";
  429. prcpqty = model.getValue ("/root/main/prcp/prcplist/prcpqty" ) + "|";
  430. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prcpqty" ))) {
  431. model.alert ( "입력된 수량이 없습니다." );
  432. return;
  433. }
  434. } else {
  435. prcpqty_useyn = "N" + "|";
  436. prcpqty = "" + "|";
  437. }
  438. useyn = useyn + prcpqty_useyn ;
  439. value = value + prcpqty;
  440. if ( model.getValue ( "/root/chkflag/prcptims" ) == "Y" ) {
  441. prcptims_useyn = "Y" + "|";
  442. prcptims = model.getValue ("/root/main/prcp/prcplist/prcptims" ) + "|";
  443. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prcptims" ))) {
  444. model.alert ( "입력된 횟수가 없습니다." );
  445. return;
  446. } else {
  447. if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) != "Y" ) {
  448. opener.javascript.setParameter ( "SPMMO12100_chgmthd" , "Y" );
  449. }
  450. }
  451. } else {
  452. prcptims_useyn = "N" + "|";
  453. prcptims = "" + "|";
  454. }
  455. useyn = useyn + prcptims_useyn ;
  456. value = value + prcptims;
  457. if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
  458. drugmthdspccd_useyn = "Y" + "|";
  459. drugmthdspccdnm_useyn = "Y" + "|";
  460. drugmthdspccd = model.getValue ("/root/main/prcp/prcplist/drugmthdspccd" ) + "|";
  461. drugmthdspccdnm = model.getValue ("/root/main/prcp/prcplist/drugmthdspccdnm" ) + "|";
  462. if ( isNull(model.getValue ("/root/main/prcp/prcplist/drugmthdspccd" ))) {
  463. model.alert ( "입력된 용법이 없습니다." );
  464. return;
  465. }
  466. } else {
  467. drugmthdspccd_useyn = "N" + "|";
  468. drugmthdspccd = "" + "|";
  469. drugmthdspccdnm_useyn = "N" + "|";
  470. drugmthdspccdnm = "" + "|";
  471. }
  472. useyn = useyn + drugmthdspccd_useyn + drugmthdspccdnm_useyn ;
  473. value = value + drugmthdspccd + drugmthdspccdnm;
  474. if ( getParameter ( "SPMMO01900_rateprcpflag" ) == "Y" ) {
  475. rateprcpflag_useyn = "Y" + "|";
  476. drugrateqty_useyn = "Y" + "|";
  477. if ( model.getValue ( "/root/chkflag/prcpqty" ) != "Y" ) {
  478. model.alert ( "비율처방이 있으나 수량이 CHECK 되지 않았습니다." )
  479. return;
  480. }
  481. if ( model.getValue ( "/root/chkflag/prcptims" ) != "Y" ) {
  482. model.alert ( "비율처방이 있으나 횟수가 CHECK 되지 않았습니다." )
  483. return;
  484. }
  485. rateprcpflag = model.getValue ("/root/main/prcp/prcplist/rateprcpflag" ) + "|";
  486. drugrateqty = "" + "|";
  487. opener.javascript.setParameter ( "SPMMO12100_drugrateqty", model.getValue ("/root/main/prcp/prcplist/drugrateqty" ));
  488. } else {
  489. rateprcpflag_useyn = "N" + "|";
  490. drugrateqty_useyn = "N" + "|";
  491. rateprcpflag = "" + "|";
  492. drugrateqty = "" + "|";
  493. }
  494. useyn = useyn + rateprcpflag_useyn + drugrateqty_useyn ;
  495. value = value + rateprcpflag + drugrateqty;
  496. if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
  497. precureprcpflag_useyn = "Y" + "|";
  498. precureprcpflag = model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ) + "|";
  499. if ( isNull(model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ))) {
  500. precureprcpflag = "N" + "|";
  501. }
  502. } else {
  503. precureprcpflag_useyn = "N" + "|";
  504. precureprcpflag = "" + "|";
  505. }
  506. useyn = useyn + precureprcpflag_useyn ;
  507. value = value + precureprcpflag;
  508. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  509. clincstdyflag_useyn = "Y" + "|";
  510. clincstdyflag = model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ) + "|";
  511. if ( isNull(model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ))) {
  512. clincstdyflag = "N" + "|";
  513. }
  514. } else {
  515. clincstdyflag_useyn = "N" + "|";
  516. clincstdyflag = "" + "|";
  517. }
  518. useyn = useyn + clincstdyflag_useyn ;
  519. value = value + clincstdyflag;
  520. if ( model.getValue ( "/root/chkflag/asttestflag" ) == "Y" ) {
  521. asttestflag_useyn = "Y" + "|";
  522. asttestflag = model.getValue ("/root/main/prcp/prcplist/asttestflag" ) + "|";
  523. if ( isNull(model.getValue ("/root/main/prcp/prcplist/asttestflag" ))) {
  524. asttestflag = "N" + "|";
  525. }
  526. } else {
  527. asttestflag_useyn = "N" + "|";
  528. asttestflag = "" + "|";
  529. }
  530. useyn = useyn + asttestflag_useyn ;
  531. value = value + asttestflag;
  532. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  533. payflagcd_useyn = "Y" + "|";
  534. payflagcd = model.getValue ( "/root/main/prcp/prcplist/payflagcd" ) + "|";
  535. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/payflagcd" ))) {
  536. model.alert ( "입력된 급여구분이 없습니다." ) ;
  537. return;
  538. }
  539. } else {
  540. payflagcd_useyn = "N" + "|";
  541. payflagcd = "" + "|";
  542. }
  543. useyn = useyn + payflagcd_useyn ;
  544. value = value + payflagcd;
  545. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  546. prcpexecdeptcd_useyn = "Y" + "|";
  547. prcpexecdeptcd = model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ) + "|";
  548. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ))) {
  549. model.alert ( "입력된 시행부서가 없습니다." ) ;
  550. return;
  551. }
  552. } else {
  553. prcpexecdeptcd_useyn = "N" + "|";
  554. prcpexecdeptcd = "" + "|";
  555. }
  556. useyn = useyn + prcpexecdeptcd_useyn ;
  557. value = value + prcpexecdeptcd;
  558. if ( model.getValue ( "/root/chkflag/prcpdayno" ) == "Y" ) {
  559. prcpdayno_useyn = "Y" + "|";
  560. prcpdayno = model.getValue ( "/root/main/prcp/prcplist/prcpdayno" ) + "|";
  561. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdayno" ))) {
  562. model.alert ( "입력된 일수가 없습니다." ) ;
  563. return;
  564. }
  565. } else {
  566. prcpdayno_useyn = "N" + "|";
  567. prcpdayno = "" + "|";
  568. }
  569. useyn = useyn + prcpdayno_useyn ;
  570. value = value + prcpdayno;
  571. if ( model.getValue ( "/root/chkflag/hosinhosoutflag" ) == "Y" ) {
  572. if ( isNull(model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ))) {
  573. model.alert ( "입력된 원내/원외구분이 없습니다." );
  574. return;
  575. }
  576. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag"); //환자리스트에서 준 외래, 입원, 응급 구분
  577. var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd"); //원무에 있는 원내처방 사유 코드
  578. /*
  579. //주사 원외불가 by sonjy 2008-09-15 start
  580. if( checkOpener() ) { //&& prcpgenrflag == "O" ){
  581. if( model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) == "O" ){
  582. var sTmp = "";
  583. for ( var i=0 ; i < opener.grd_prcplist.selectedRows ; i++){
  584. sTmp = opener.model.getValue( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedRow(i) + "]/drugmastspec");
  585. if( getArrayData ( sTmp + "^", 0, 20, "^", "|" ) != "Y" && getArrayData ( sTmp + "^", 0, 11, "^", "|" ) != "O" ) {
  586. messageBox("주사처방은 원외로 처방을 낼 수 ", "I004");
  587. return ;
  588. }
  589. }
  590. model.setValue ("/root/main/prcp/prcplist/hosinprcpresncd", "00" );
  591. }
  592. else {
  593. model.setValue ("/root/main/prcp/prcplist/hosinprcpresncd" , hosinprcpresncd );
  594. }
  595. }
  596. */
  597. // 주사처방 원외 처방 가능하도록 수정 ( 2010, 12. 03 han19)
  598. // 단 마약주사 및 향정 주사는 제외
  599. if( checkOpener() && (prcpgenrflag == "O" || prcpgenrflag == "E" ) ){
  600. if( model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) == "O" ){
  601. var sTmp = "";
  602. for ( var i=0 ; i < opener.grd_prcplist.selectedRows ; i++){
  603. sTmp = opener.model.getValue( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedRow(i) + "]/drugmastspec");
  604. var prcpclscd = model.getValue ( "/root/main/prcp/prcplist/prcpclscd");
  605. if (opener.model.getValue( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedRow(i) + "]/inclprcpno") != "0" ||
  606. (prcpclscd=="A6" && getArrayData ( sTmp + "^", 0, 23, "^", "|" ) == "M" ) ||
  607. (prcpclscd=="A6" && getArrayData ( sTmp + "^", 0, 23, "^", "|" ) == "H" ) ||
  608. getArrayData ( sTmp + "^", 0, 11, "^", "|" ) == "I" ) {
  609. messageBox("마약, 주사, 약제팀의 원내지정약 및 MSET코드내 묶인 약제는 원외로 처방을 낼 수 ", "I004");
  610. return ;
  611. }
  612. }
  613. model.setValue ("/root/main/prcp/prcplist/hosinprcpresncd", "00" );
  614. }
  615. else {
  616. model.setValue ("/root/main/prcp/prcplist/hosinprcpresncd" , hosinprcpresncd );
  617. }
  618. }
  619. /*외래이고, 원무의 원내사유가 없고, 원내선택하고, 원채처방사유가 없을 경우
  620. if (( prcpgenrflag == "O" && hosinprcpresncd == "00" && model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) == "I" ) && ( model.getValue ("/root/main/prcp/prcplist/hosinprcpresncd" ) == "00" || model.getValue ("/root/main/prcp/prcplist/hosinprcpresncd" ) == "" )) {
  621. model.alert ( "원내처방 사유가 없습니다." );
  622. return;
  623. }*/
  624. // by sonjy 2008-09-15 end
  625. hosinhosoutflag_useyn = "Y" + "|";
  626. hosinprcpresncd_useyn = "Y" + "|";
  627. hosinhosoutflag = model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) + "|";
  628. hosinprcpresncd = model.getValue ("/root/main/prcp/prcplist/hosinprcpresncd" ) + "|";
  629. } else {
  630. hosinhosoutflag_useyn = "N" + "|";
  631. hosinhosoutflag = "" + "|";
  632. hosinprcpresncd_useyn = "N" + "|";
  633. hosinprcpresncd = "" + "|";
  634. }
  635. useyn = useyn + hosinhosoutflag_useyn + hosinprcpresncd_useyn;
  636. value = value + hosinhosoutflag + hosinprcpresncd;
  637. if ( model.getValue ( "/root/chkflag/drugspd" ) == "Y" ) {
  638. drugspd_useyn = "Y" + "|";
  639. drugspd = model.getValue ( "/root/main/prcp/prcplist/drugspd" ) + "|";
  640. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/drugspd" ))) {
  641. model.alert ( "입력된 투여속도가 없습니다." );
  642. return;
  643. }
  644. drugspdunitflag_useyn = "Y" + "|";
  645. drugspdunitflag = model.getValue ( "/root/main/prcp/prcplist/drugspdunitflag" ) + "|";
  646. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/drugspdunitflag" ))) {
  647. model.alert ( "입력된 투여속도 단위가 없습니다." );
  648. return;
  649. }
  650. } else {
  651. drugspd_useyn = "N" + "|";
  652. drugspd = "" + "|";
  653. drugspdunitflag_useyn = "N" + "|";
  654. drugspdunitflag = "" + "|";
  655. }
  656. useyn = useyn + drugspd_useyn + drugspdunitflag_useyn;
  657. value = value + drugspd + drugspdunitflag;
  658. if ( model.getValue ( "/root/chkflag/contprcpspec" ) == "Y" ) {
  659. contprcpspec_useyn = "Y" + "|";
  660. contprcpspec = "" + "|";
  661. opener.javascript.setParameter ( "SPMMO12200_contprcpspec", model.getValue ( "/root/main/prcp/prcplist/contprcpspec" ));
  662. if ( isNull(output3.value)) {
  663. model.alert ( "입력된 지정일이 없습니다." ) ;
  664. return;
  665. }
  666. } else {
  667. contprcpspec_useyn = "N" + "|";
  668. contprcpspec = "" + "|";
  669. }
  670. useyn = useyn + contprcpspec_useyn ;
  671. value = value + contprcpspec;
  672. if ( model.getValue ( "/root/chkflag/mealcalrcnts" ) == "Y" ) {
  673. mealcalrcnts_useyn = "Y" + "|";
  674. mealcalrcnts = model.getValue ( "/root/main/prcp/prcplist/mealcalrcnts" ) + "|";
  675. if ( isNull(radio2.value)) {
  676. model.alert ( "입력된 접종차수가 없습니다." ) ;
  677. return;
  678. }
  679. } else {
  680. mealcalrcnts_useyn = "N" + "|";
  681. mealcalrcnts = "" + "|";
  682. }
  683. useyn = useyn + mealcalrcnts_useyn ;
  684. value = value + mealcalrcnts;
  685. if( model.getValue ( "/root/chkflag/anamneflag" ) == "Y" ) {
  686. useyn = useyn + "Y" + "|";
  687. value = value + "Y" + "|";
  688. } else {
  689. useyn = useyn + "N" + "|";
  690. value = value + "N" + "|";
  691. }
  692. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  693. prcpdelivefact_useyn = "Y" + "|";
  694. prcpdelivefact = model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ) + "|";
  695. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ))) {
  696. model.alert ( "입력된 전달사항 값이 없습니다." );
  697. return;
  698. }
  699. } else {
  700. prcpdelivefact_useyn = "N" + "|";
  701. prcpdelivefact = "" + "|";
  702. }
  703. useyn = useyn + prcpdelivefact_useyn ;
  704. value = value + prcpdelivefact;
  705. //2008. 07. 01 기왕증 입력에 따른 subcretno설정, 오지훈
  706. var subcretno_useyn = "";
  707. var subcretno = 0;
  708. if ( bool1.value == "Y" || model.getValue("/root/chkflag/clincstdyflag") == "Y") {
  709. subcretno_useyn = "Y";
  710. subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
  711. }else{
  712. subcretno_useyn = "N";
  713. }
  714. useyn = useyn + subcretno_useyn + "^";
  715. value = value + subcretno + "^";
  716. var batipt_rtn1 = header + useyn + value;
  717. opener.javascript.setParameter ( "batipt_rtn1", batipt_rtn1 );
  718. opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
  719. window.close();
  720. ]]>
  721. </script>
  722. </button>
  723. <button id="button2" class="btn4_letter2" style="left:354px; top:416px; width:56px; height:22px; ">
  724. <caption>취소</caption>
  725. <script type="javascript" ev:event="onclick">
  726. <![CDATA[
  727. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  728. window.close();
  729. ]]>
  730. </script>
  731. </button>
  732. <caption id="caption8" class="cell_1" style="left:207px; top:19px; width:100px; height:23px; "/>
  733. <caption id="caption7" class="cell_1" style="left:207px; top:173px; width:100px; height:23px; "/>
  734. <caption id="caption6" class="cell_1" style="left:207px; top:147px; width:100px; height:23px; "/>
  735. <caption id="caption3" class="cell_1" style="left:2px; top:71px; width:100px; height:50px; "/>
  736. <caption id="caption2" class="cell_1" style="left:2px; top:173px; width:100px; height:23px; "/>
  737. <caption id="caption5" class="cell_1" style="left:2px; top:147px; width:100px; height:23px; "/>
  738. <caption id="caption4" class="cell_1" style="left:2px; top:45px; width:100px; height:23px; "/>
  739. <caption id="caption1" class="cell_1" style="left:2px; top:19px; width:100px; height:23px; "/>
  740. <select id="checkbox1" ref="/root/chkflag/erprcpflag" overflow="visible" appearance="full" style="left:7px; top:23px; width:100px; height:20px; border-style:none; ">
  741. <choices>
  742. <item>
  743. <label>응급</label>
  744. <value>Y</value>
  745. </item>
  746. </choices>
  747. <script type="javascript" ev:event="xforms-value-changed">
  748. <![CDATA[
  749. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  750. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
  751. checkbox10.disabled = false;
  752. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "Y" );
  753. model.refresh();
  754. } else {
  755. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
  756. checkbox10.disabled = true;
  757. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "N" );
  758. model.refresh();
  759. }
  760. ]]>
  761. </script>
  762. </select>
  763. <select id="checkbox2" ref="/root/chkflag/prnprcpflag" overflow="visible" appearance="full" style="left:7px; top:49px; width:100px; height:20px; border-style:none; ">
  764. <choices>
  765. <item>
  766. <label>PRN</label>
  767. <value>Y</value>
  768. </item>
  769. </choices>
  770. <script type="javascript" ev:event="xforms-value-changed">
  771. <![CDATA[
  772. if ( model.getValue ( "/root/chkflag/prnprcpflag" ) == "Y" ) {
  773. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "bold";
  774. checkbox11.disabled = false;
  775. model.setValue ( "/root/main/prcp/prcplist/prnprcpflag", "Y" );
  776. model.refresh();
  777. } else {
  778. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "normal";
  779. checkbox11.disabled = true;
  780. model.setValue ( "/root/main/prcp/prcplist/prnprcpflag", "N" );
  781. model.refresh();
  782. }
  783. ]]>
  784. </script>
  785. </select>
  786. <select id="checkbox3" ref="/root/chkflag/prepprcpflag" overflow="visible" appearance="full" style="left:7px; top:151px; width:100px; height:20px; border-style:none; ">
  787. <choices>
  788. <item>
  789. <label>Prep</label>
  790. <value>Y</value>
  791. </item>
  792. </choices>
  793. <script type="javascript" ev:event="xforms-value-changed">
  794. <![CDATA[
  795. if ( model.getValue ( "/root/chkflag/prepprcpflag" ) == "Y" ) {
  796. checkbox3.item(checkbox3.focusIndex).attribute("font-weight") = "bold";
  797. checkbox12.disabled = false;
  798. model.setValue ( "/root/main/prcp/prcplist/prepprcpflag", "Y" );
  799. model.refresh();
  800. } else {
  801. checkbox3.item(checkbox3.focusIndex).attribute("font-weight") = "normal";
  802. checkbox12.disabled = true;
  803. model.setValue ( "/root/main/prcp/prcplist/prepprcpflag", "N" );
  804. model.refresh();
  805. }
  806. ]]>
  807. </script>
  808. </select>
  809. <select id="checkbox4" ref="/root/chkflag/selfprcpflag" overflow="visible" appearance="full" style="left:7px; top:178px; width:100px; height:20px; border-style:none; ">
  810. <choices>
  811. <item>
  812. <label>home</label>
  813. <value>Y</value>
  814. </item>
  815. </choices>
  816. <script type="javascript" ev:event="xforms-value-changed">
  817. <![CDATA[
  818. if ( model.getValue ( "/root/chkflag/selfprcpflag" ) == "Y" ) {
  819. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "bold";
  820. checkbox13.disabled = false;
  821. model.setValue ( "/root/main/prcp/prcplist/selfprcpflag", "Y" );
  822. model.setValue ( "/root/chkflag/contprcpspec", "N" );
  823. model.setValue ( "/root/init/contprcpspec", "" );
  824. // selfprcpflag가 Y가 아니면 home에 체크할때 체크 안되도록 메시지를 띄운다. 20081006 MoonSH
  825. var selrows = opener.grd_prcplist.selectedRows ;
  826. for ( var currow=0; currow < selrows; currow++ ) {
  827. var prcpgenrflag = opener.model.getValue ( "/root/patflag/list/prcpgenrflag" ); //외래입원구분
  828. var prcpcd = opener.model.getValue("/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedrow(currow) + "]/prcpcd");
  829. var drugmastspec = opener.model.getValue ( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedrow(currow) + "]/drugmastspec");
  830. var prcpclscd = opener.model.getValue ( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedrow(currow) + "]/prcpclscd" );
  831. if ( prcpgenrflag == "O" ) {
  832. if ( prcpclscd == "A6" && getArrayData (drugmastspec, 0, 20, "^", "|" ) != "Y" ) {
  833. alert("선택된 열 중 처방 코드가 "+prcpcd+"인 경우는 home 체크가 불가합니다. ");
  834. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "normal";
  835. checkbox13.disabled = true;
  836. model.setValue("/root/chkflag/selfprcpflag", "N");
  837. model.setValue ( "/root/main/prcp/prcplist/selfprcpflag", "N" );
  838. }
  839. }
  840. }
  841. model.refresh();
  842. } else {
  843. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "normal";
  844. checkbox13.disabled = true;
  845. model.setValue ( "/root/main/prcp/prcplist/selfprcpflag", "N" );
  846. model.refresh();
  847. }
  848. ]]>
  849. </script>
  850. </select>
  851. <line id="line15" class="line_2" style="x1:2px; y1:198px; x2:410px; y2:198px; "/>
  852. <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:74px; width:68px; height:25px; border-style:none; ">
  853. <choices>
  854. <item>
  855. <label>전달사항</label>
  856. <value>Y</value>
  857. </item>
  858. </choices>
  859. <script type="javascript" ev:event="xforms-value-changed">
  860. <![CDATA[
  861. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  862. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "bold";
  863. textarea1.disabled = false;
  864. button4.disabled = false;
  865. model.refresh();
  866. } else {
  867. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "normal";
  868. textarea1.disabled = true;
  869. button4.disabled = true;
  870. model.refresh();
  871. }
  872. ]]>
  873. </script>
  874. </select>
  875. <select id="checkbox6" ref="/root/chkflag/precureprcpflag" overflow="visible" appearance="full" style="left:212px; top:151px; width:100px; height:20px; border-style:none; ">
  876. <choices>
  877. <item>
  878. <label>선처치</label>
  879. <value>Y</value>
  880. </item>
  881. </choices>
  882. <script type="javascript" ev:event="xforms-value-changed">
  883. <![CDATA[
  884. if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
  885. checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "bold";
  886. checkbox14.disabled = false;
  887. model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "Y" );
  888. model.refresh();
  889. } else {
  890. checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "normal";
  891. checkbox14.disabled = true;
  892. model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "N" );
  893. model.refresh();
  894. }
  895. ]]>
  896. </script>
  897. </select>
  898. <select id="checkbox7" ref="/root/chkflag/clincstdyflag" overflow="visible" appearance="full" style="left:212px; top:177px; width:100px; height:20px; border-style:none; ">
  899. <choices>
  900. <item>
  901. <label>임상연구</label>
  902. <value>Y</value>
  903. </item>
  904. </choices>
  905. <script type="javascript" ev:event="xforms-value-changed">
  906. <![CDATA[
  907. if( bool1.value == "Y" ){
  908. messageBox ( "임상연구는 기왕증과 동시에 선택 할 수", "I004" );
  909. model.setValue ( "/root/chkflag/clincstdyflag" , "");
  910. model.refresh();
  911. return;
  912. }
  913. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  914. if ( fSubcretnoSet("1", null) == -1 ) {
  915. model.setValue ( "/root/chkflag/clincstdyflag" , "N");
  916. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  917. checkbox15.disabled = true;
  918. checkbox7.disabled = true;
  919. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  920. model.refresh();
  921. return;
  922. }
  923. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "bold";
  924. checkbox15.disabled = false;
  925. checkbox7.disabled = false;
  926. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "Y" );
  927. model.refresh();
  928. } else {
  929. fSubcretnoSet("1", null);
  930. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  931. checkbox15.disabled = true;
  932. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  933. model.refresh();
  934. }
  935. ]]>
  936. </script>
  937. </select>
  938. <line id="line1" class="line_2" style="x1:2px; y1:69px; x2:410px; y2:69px; "/>
  939. <select1 id="combo1" ref="/root/main/prcp/prcplist/payflagcd" class="combo_default" appearance="minimal" style="left:310px; top:21px; width:100px; height:19px; ">
  940. <choices>
  941. <itemset nodeset="/root/init/payflagcd/M0029">
  942. <label ref="cdnm"/>
  943. <value ref="cdid"/>
  944. </itemset>
  945. </choices>
  946. </select1>
  947. <select id="checkbox8" ref="/root/chkflag/payflagcd" overflow="visible" appearance="full" style="left:212px; top:24px; width:100px; height:20px; border-style:none; ">
  948. <choices>
  949. <item>
  950. <label>급여</label>
  951. <value>Y</value>
  952. </item>
  953. </choices>
  954. <script type="javascript" ev:event="xforms-value-changed">
  955. <![CDATA[
  956. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  957. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "bold";
  958. combo1.disabled = false;
  959. model.refresh();
  960. } else {
  961. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "normal";
  962. combo1.disabled = true;
  963. model.refresh();
  964. }
  965. ]]>
  966. </script>
  967. </select>
  968. <line id="line2" class="line_2" style="x1:2px; y1:171px; x2:410px; y2:171px; "/>
  969. <line id="line3" class="line_2" style="x1:2px; y1:251px; x2:409px; y2:251px; "/>
  970. <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:103px; top:71px; width:307px; height:49px; "/>
  971. <line id="line6" class="line_2" style="x1:2px; y1:122px; x2:409px; y2:122px; "/>
  972. <line id="line7" class="line_1" style="x1:2px; y1:142px; x2:410px; y2:142px; "/>
  973. <caption id="caption9" class="cell_1" style="left:207px; top:200px; width:100px; height:23px; "/>
  974. <select id="checkbox9" ref="/root/chkflag/prcpexecdeptcd" overflow="visible" appearance="full" style="left:212px; top:201px; width:100px; height:20px; border-style:none; ">
  975. <choices>
  976. <item>
  977. <label>시행부서</label>
  978. <value>Y</value>
  979. </item>
  980. </choices>
  981. <script type="javascript" ev:event="xforms-value-changed">
  982. <![CDATA[
  983. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  984. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "bold";
  985. combo2.disabled = false;
  986. model.refresh();
  987. } else {
  988. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "normal";
  989. combo2.disabled = true;
  990. model.refresh();
  991. }
  992. ]]>
  993. </script>
  994. </select>
  995. <select id="checkbox10" ref="/root/main/prcp/prcplist/erprcpflag" overflow="visible" appearance="full" style="left:106px; top:23px; width:100px; height:20px; border-style:none; ">
  996. <choices>
  997. <item>
  998. <label>응급</label>
  999. <value>Y</value>
  1000. </item>
  1001. </choices>
  1002. </select>
  1003. <select id="checkbox11" ref="/root/main/prcp/prcplist/prnprcpflag" overflow="visible" appearance="full" style="left:106px; top:49px; width:100px; height:20px; border-style:none; ">
  1004. <choices>
  1005. <item>
  1006. <label>PRN</label>
  1007. <value>Y</value>
  1008. </item>
  1009. </choices>
  1010. </select>
  1011. <select id="checkbox12" ref="/root/main/prcp/prcplist/prepprcpflag" overflow="visible" appearance="full" style="left:106px; top:151px; width:100px; height:20px; border-style:none; ">
  1012. <choices>
  1013. <item>
  1014. <label>Prep</label>
  1015. <value>Y</value>
  1016. </item>
  1017. </choices>
  1018. </select>
  1019. <select id="checkbox13" ref="/root/main/prcp/prcplist/selfprcpflag" overflow="visible" appearance="full" style="left:106px; top:178px; width:100px; height:20px; border-style:none; ">
  1020. <choices>
  1021. <item>
  1022. <label>home</label>
  1023. <value>Y</value>
  1024. </item>
  1025. </choices>
  1026. </select>
  1027. <select id="checkbox14" ref="/root/main/prcp/prcplist/precureprcpflag" overflow="visible" appearance="full" style="left:311px; top:151px; width:100px; height:20px; border-style:none; ">
  1028. <choices>
  1029. <item>
  1030. <label>선처치</label>
  1031. <value>Y</value>
  1032. </item>
  1033. </choices>
  1034. </select>
  1035. <select id="checkbox15" ref="/root/main/prcp/prcplist/clincstdyflag" overflow="visible" appearance="full" style="left:311px; top:177px; width:100px; height:20px; border-style:none; ">
  1036. <choices>
  1037. <item>
  1038. <label>임상연구</label>
  1039. <value>Y</value>
  1040. </item>
  1041. </choices>
  1042. </select>
  1043. <line id="line4" class="line_3" style="x1:2px; y1:410px; x2:409px; y2:410px; "/>
  1044. <select id="checkbox16" ref="/root/main/prcp/prcplist/selfdrugflag" overflow="visible" appearance="full" style="left:106px; top:202px; width:100px; height:20px; border-style:none; ">
  1045. <choices>
  1046. <item>
  1047. <label>self</label>
  1048. <value>Y</value>
  1049. </item>
  1050. </choices>
  1051. </select>
  1052. <select id="checkbox17" ref="/root/chkflag/selfdrugflag" overflow="visible" appearance="full" style="left:7px; top:202px; width:100px; height:20px; border-style:none; ">
  1053. <choices>
  1054. <item>
  1055. <label>self</label>
  1056. <value>Y</value>
  1057. </item>
  1058. </choices>
  1059. <script type="javascript" ev:event="xforms-value-changed">
  1060. <![CDATA[
  1061. if ( model.getValue ( "/root/chkflag/selfdrugflag" ) == "Y" ) {
  1062. checkbox17.item(checkbox17.focusIndex).attribute("font-weight") = "bold";
  1063. checkbox16.disabled = false;
  1064. model.setValue ( "/root/main/prcp/prcplist/selfdrugflag", "Y" );
  1065. model.refresh();
  1066. } else {
  1067. checkbox17.item(checkbox17.focusIndex).attribute("font-weight") = "normal";
  1068. checkbox16.disabled = true;
  1069. model.setValue ( "/root/main/prcp/prcplist/selfdrugflag", "N" );
  1070. model.refresh();
  1071. }
  1072. ]]>
  1073. </script>
  1074. </select>
  1075. <caption id="caption11" class="cell_1" style="left:207px; top:226px; width:100px; height:23px; "/>
  1076. <select id="checkbox19" ref="/root/chkflag/asttestflag" overflow="visible" appearance="full" style="left:212px; top:230px; width:100px; height:20px; border-style:none; ">
  1077. <choices>
  1078. <item>
  1079. <label>AST</label>
  1080. <value>Y</value>
  1081. </item>
  1082. </choices>
  1083. <script type="javascript" ev:event="xforms-value-changed">
  1084. <![CDATA[
  1085. if ( model.getValue ( "/root/chkflag/asttestflag" ) == "Y" ) {
  1086. checkbox19.item(checkbox19.focusIndex).attribute("font-weight") = "bold";
  1087. checkbox18.disabled = false;
  1088. model.setValue ( "/root/main/prcp/prcplist/asttestflag", "Y" );
  1089. model.refresh();
  1090. } else {
  1091. checkbox19.item(checkbox19.focusIndex).attribute("font-weight") = "normal";
  1092. checkbox18.disabled = true;
  1093. model.setValue ( "/root/main/prcp/prcplist/asttestflag", "N" );
  1094. model.refresh();
  1095. }
  1096. ]]>
  1097. </script>
  1098. </select>
  1099. <line id="line5" class="line_2" style="x1:2px; y1:277px; x2:410px; y2:277px; "/>
  1100. <caption id="caption12" class="cell_1" style="left:2px; top:226px; width:100px; height:23px; "/>
  1101. <select id="checkbox21" ref="/root/chkflag/prcpqty" overflow="visible" appearance="full" style="left:7px; top:230px; width:100px; height:20px; border-style:none; ">
  1102. <choices>
  1103. <item>
  1104. <label>수량</label>
  1105. <value>Y</value>
  1106. </item>
  1107. </choices>
  1108. <script type="javascript" ev:event="xforms-value-changed">
  1109. <![CDATA[
  1110. if ( model.getValue ( "/root/chkflag/prcpqty" ) == "Y" ) {
  1111. checkbox21.item(0).attribute("font-weight") = "bold";
  1112. input1.disabled = false;
  1113. model.refresh();
  1114. } else {
  1115. checkbox21.item(0).attribute("font-weight") = "normal";
  1116. input1.disabled = true;
  1117. model.refresh();
  1118. }
  1119. ]]>
  1120. </script>
  1121. </select>
  1122. <input id="input1" ref="/root/main/prcp/prcplist/prcpqty" style="left:104px; top:228px; width:100px; height:19px; "/>
  1123. <select id="checkbox20" ref="/root/chkflag/prcpdayno" overflow="visible" appearance="full" style="left:7px; top:281px; width:73px; height:20px; border-style:none; ">
  1124. <choices>
  1125. <item>
  1126. <label>일수</label>
  1127. <value>Y</value>
  1128. </item>
  1129. </choices>
  1130. <script type="javascript" ev:event="xforms-value-changed">
  1131. <![CDATA[
  1132. if ( model.getValue ( "/root/chkflag/prcpdayno" ) == "Y" ) {
  1133. checkbox20.item(0).attribute("font-weight") = "bold";
  1134. input2.disabled = false;
  1135. model.refresh();
  1136. } else {
  1137. checkbox20.item(0).attribute("font-weight") = "normal";
  1138. input2.disabled = true;
  1139. model.refresh();
  1140. }
  1141. ]]>
  1142. </script>
  1143. </select>
  1144. <input id="input2" ref="/root/main/prcp/prcplist/prcpdayno" style="left:104px; top:280px; width:100px; height:19px; "/>
  1145. <select id="checkbox22" ref="/root/chkflag/prcptims" overflow="visible" appearance="full" style="left:7px; top:256px; width:97px; height:20px; border-style:none; ">
  1146. <choices>
  1147. <item>
  1148. <label>횟수</label>
  1149. <value>Y</value>
  1150. </item>
  1151. </choices>
  1152. <script type="javascript" ev:event="xforms-value-changed">
  1153. <![CDATA[
  1154. if ( model.getValue ( "/root/chkflag/prcptims" ) == "Y" ) {
  1155. checkbox22.item(0).attribute("font-weight") = "bold";
  1156. input3.disabled = false;
  1157. model.refresh();
  1158. } else {
  1159. checkbox22.item(0).attribute("font-weight") = "normal";
  1160. input3.disabled = true;
  1161. model.refresh();
  1162. }
  1163. ]]>
  1164. </script>
  1165. </select>
  1166. <caption id="caption15" class="cell_1" style="left:2px; top:305px; width:101px; height:23px; "/>
  1167. <select id="checkbox23" ref="/root/chkflag/drugmthdspccd" overflow="visible" appearance="full" style="left:7px; top:307px; width:73px; height:20px; border-style:none; ">
  1168. <choices>
  1169. <item>
  1170. <label>용법</label>
  1171. <value>Y</value>
  1172. </item>
  1173. </choices>
  1174. <script type="javascript" ev:event="xforms-value-changed">
  1175. <![CDATA[
  1176. if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
  1177. checkbox23.item(0).attribute("font-weight") = "bold";
  1178. fPrcpModal ("SPMMO01900", 50, 10);
  1179. if ( getParameter ( "SPMMO01900_prcptims" ) == "Y" ) {
  1180. model.setValue ( "/root/chkflag/prcptims", "Y" );
  1181. checkbox22.dispatch ( "xforms-value-changed" );
  1182. }
  1183. if ( getParameter ( "SPMMO01900_rateprcpflag" ) == "Y" ) {
  1184. model.setValue ( "/root/chkflag/prcpqty", "Y" );
  1185. checkbox21.dispatch ( "xforms-value-changed" );
  1186. }
  1187. model.refresh();
  1188. } else {
  1189. checkbox23.item(0).attribute("font-weight") = "normal";
  1190. model.refresh();
  1191. }
  1192. ]]>
  1193. </script>
  1194. </select>
  1195. <input id="input3" ref="/root/main/prcp/prcplist/prcptims" style="left:104px; top:255px; width:100px; height:19px; "/>
  1196. <line id="line11" class="line_2" style="x1:2px; y1:329px; x2:410px; y2:329px; "/>
  1197. <select1 id="combo2" ref="/root/main/prcp/prcplist/prcpexecdeptcd" class="combo_default" appearance="minimal" itemcount="30" style="left:310px; top:201px; width:100px; height:19px; ">
  1198. <choices>
  1199. <itemset nodeset="/root/orddept/dept">
  1200. <label ref="depthngnm"/>
  1201. <value ref="deptcd"/>
  1202. </itemset>
  1203. </choices>
  1204. </select1>
  1205. <output id="output2" ref="/root/main/prcp/prcplist/drugmthdspccdnm" style="left:104px; top:306px; width:305px; height:19px; border-color:#c0c0c0; border-style:solid; ">
  1206. <script type="javascript" ev:event="ondblclick">
  1207. <![CDATA[
  1208. if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
  1209. checkbox23.dispatch ( "xforms-value-changed" );
  1210. }
  1211. ]]>
  1212. </script>
  1213. </output>
  1214. <datagrid id="grd_prcplist" visibility="hidden" caption="caption3" colsep="^" colwidth="100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:418px; width:35px; height:15px; ">
  1215. <col/>
  1216. </datagrid>
  1217. <select id="checkbox24" ref="/root/chkflag/hosinhosoutflag" overflow="visible" appearance="full" style="left:7px; top:361px; width:73px; height:16px; border-style:none; ">
  1218. <choices>
  1219. <item>
  1220. <label>원내/원외</label>
  1221. <value>Y</value>
  1222. </item>
  1223. </choices>
  1224. <script type="javascript" ev:event="xforms-value-changed">
  1225. <![CDATA[
  1226. if ( model.getValue ( "/root/chkflag/hosinhosoutflag" ) == "Y" ) {
  1227. checkbox24.item(0).attribute("font-weight") = "bold";
  1228. radio1.disabled = false;
  1229. var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd");
  1230. if ( hosinprcpresncd != "00" ) {
  1231. combo3.disabled = false;
  1232. } else {
  1233. combo3.disabled = true;
  1234. }
  1235. model.refresh();
  1236. } else {
  1237. checkbox24.item(0).attribute("font-weight") = "normal";
  1238. radio1.disabled = true;
  1239. combo3.disabled = true;
  1240. model.refresh();
  1241. }
  1242. ]]>
  1243. </script>
  1244. </select>
  1245. <line id="line12" class="line_2" style="x1:2px; y1:355px; x2:410px; y2:355px; "/>
  1246. <select1 id="radio1" ref="/root/main/prcp/prcplist/hosinhosoutflag" appearance="full" cols="2" overflow="visible" style="left:105px; top:359px; width:95px; height:20px; border-style:none; ">
  1247. <choices>
  1248. <item>
  1249. <label>원내</label>
  1250. <value>I</value>
  1251. </item>
  1252. <item>
  1253. <label>원외</label>
  1254. <value>O</value>
  1255. </item>
  1256. </choices>
  1257. <script type="javascript" ev:event="xforms-select">
  1258. <![CDATA[
  1259. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag"); //환자리스트에서 준 외래, 입원, 응급 구분
  1260. var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd"); //원무에 있는 원내처방 사유 코드
  1261. if ( model.getValue ( "/root/main/prcp/prcplist/hosinhosoutflag" ) == "I" ) {
  1262. if ( hosinprcpresncd != "00" ) { //원무에 있는 원내처방 사유 코드가 있다면
  1263. model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd", hosinprcpresncd ) ;
  1264. }
  1265. combo3.disabled = false;
  1266. } else if ( model.getValue ( "/root/main/prcp/prcplist/hosinhosoutflag" ) == "O" ) { //원외를 선택하면
  1267. model.setValue("/root/main/prcp/prcplist/hosinprcpresncd","00");
  1268. combo3.disabled = true; //원내처방 사유코드를 입력할 수는 없다.
  1269. }
  1270. model.refresh();
  1271. ]]>
  1272. </script>
  1273. </select1>
  1274. <select1 id="combo3" ref="/root/main/prcp/prcplist/hosinprcpresncd" class="combo_default" visibility="hidden" appearance="minimal" style="left:199px; top:359px; width:212px; height:19px; ">
  1275. <choices>
  1276. <itemset nodeset="/root/init/hosinprcpresncd/P0323">
  1277. <label ref="cdnm"/>
  1278. <value ref="cdid"/>
  1279. </itemset>
  1280. </choices>
  1281. <script type="javascript" ev:event="xforms-value-changed">
  1282. <![CDATA[
  1283. //원내처방 사유를 선택해서 처방화면의 원내처방 사유랑 같은 것이 있으면 모두 그것으로 바꿈
  1284. //약속처방, 지시처방에서는 되면 안됨
  1285. if ( opener.model.getValue ( "/root/usge" ) == "prcp" ) {
  1286. var hosinprcpresncd = model.getValue ( "/root/main/prcp/prcplist/hosinprcpresncd" );
  1287. var openerHosinprcpresncd = opener.model.getValue ( "/root/init/hosinprcpresncd/P0034[cdid='" + hosinprcpresncd + "']/cdid" );
  1288. if ( !isNull(openerHosinprcpresncd) && hosinprcpresncd != "00") {
  1289. if ( messageBox ( "모든 약,주사 처방에 같은 원내처방 사유를", "Q009" ) == "6" ) {
  1290. opener.model.setValue ( "/root/init/hosinprcpresncd", openerHosinprcpresncd );
  1291. for ( i=1; i < opener.grd_prcplist.rows; i++ ) {
  1292. var prcpclscd = opener.model.getValue ( "/root/main/prcp/prcplist[" + i + "]/prcpclscd" );
  1293. if ( prcpclscd == "A2" || prcpclscd == "A4" || prcpclscd == "A6" ) {
  1294. opener.model.setValue( "/root/main/prcp/prcplist[" + i + "]/hosinhosoutflag", "I"); //원내처방
  1295. opener.model.setValue ( "/root/main/prcp/prcplist[" + i + "]/hosinprcpresncd", openerHosinprcpresncd );
  1296. }
  1297. }
  1298. }
  1299. opener.model.refresh();
  1300. }
  1301. }
  1302. ]]>
  1303. </script>
  1304. </select1>
  1305. <caption id="caption17" class="cell_1" style="left:2px; top:331px; width:101px; height:23px; "/>
  1306. <select id="checkbox25" ref="/root/chkflag/contprcpspec" overflow="visible" appearance="full" style="left:7px; top:334px; width:73px; height:20px; border-style:none; ">
  1307. <choices>
  1308. <item>
  1309. <label>지정일</label>
  1310. <value>Y</value>
  1311. </item>
  1312. </choices>
  1313. <script type="javascript" ev:event="xforms-value-changed">
  1314. <![CDATA[
  1315. if ( model.getValue ( "/root/chkflag/contprcpspec" ) == "Y" ) {
  1316. if ( model.getValue ( "/root/chkflag/selfprcpflag" ) == "Y" ) {
  1317. messageBox ( "자가주사는 지정일을 선택", "E001" );
  1318. model.setValue ( "/root/chkflag/contprcpspec", "N" );
  1319. model.refresh();
  1320. return;
  1321. }
  1322. checkbox25.item(checkbox25.focusIndex).attribute("font-weight") = "bold";
  1323. // grd_prcpdetl2.row = 1;
  1324. // setParameter("reqparam", getCurrentDate());
  1325. // fPrcpModal("SPMMO10600", 20, 50);
  1326. // fContPrcpDd( grd_prcpdetl2, "/root/main/prcp/prcplist" , "child" );
  1327. // fContPrcpDdInit ( grd_prcpdetl2, 0 );
  1328. fBundlePrcpDD("I");
  1329. // output3.value = grd_prcpdetl2.valueMatrix ( 1, 0 );
  1330. model.makeValue ( "/root/chkflag/prcpdayno", "Y" );
  1331. checkbox20.dispatch ( "xforms-value-changed" );
  1332. } else {
  1333. checkbox25.item(checkbox25.focusIndex).attribute("font-weight") = "normal";
  1334. }
  1335. model.refresh();
  1336. ]]>
  1337. </script>
  1338. </select>
  1339. <caption id="caption18" class="cell_1" style="left:206px; top:253px; width:100px; height:23px; "/>
  1340. <select id="checkbox26" ref="/root/chkflag/drugspd" overflow="visible" appearance="full" style="left:212px; top:257px; width:92px; height:20px; border-style:none; ">
  1341. <choices>
  1342. <item>
  1343. <label>투여속도</label>
  1344. <value>Y</value>
  1345. </item>
  1346. </choices>
  1347. <script type="javascript" ev:event="xforms-value-changed">
  1348. <![CDATA[
  1349. if ( model.getValue ( "/root/chkflag/drugspd" ) == "Y" ) {
  1350. checkbox26.item(checkbox26.focusIndex).attribute("font-weight") = "bold";
  1351. input5.disabled = false;
  1352. combo4.disabled = false;
  1353. model.refresh();
  1354. } else {
  1355. checkbox26.item(checkbox26.focusIndex).attribute("font-weight") = "normal";
  1356. input5.disabled = true;
  1357. combo4.disabled = true;
  1358. model.refresh();
  1359. }
  1360. ]]>
  1361. </script>
  1362. </select>
  1363. <input id="input5" ref="/root/main/prcp/prcplist/drugspd" imemode="disabled" format="#,###" style="left:310px; top:254px; width:40px; height:19px; "/>
  1364. <select1 id="combo4" ref="/root/main/prcp/prcplist/drugspdunitflag" class="combo_default" appearance="minimal" style="left:352px; top:254px; width:57px; height:19px; ">
  1365. <choices>
  1366. <itemset nodeset="/root/init/drugspdunitflag/M0040">
  1367. <label ref="cdnm"/>
  1368. <value ref="cdid"/>
  1369. </itemset>
  1370. </choices>
  1371. </select1>
  1372. <line id="line13" class="line_2" style="x1:2px; y1:303px; x2:410px; y2:303px; "/>
  1373. <output id="output3" ref="/root/init/contprcpspec" style="left:104px; top:333px; width:305px; height:19px; border-color:#c0c0c0; border-style:solid; ">
  1374. <script type="javascript" ev:event="ondblclick">
  1375. <![CDATA[
  1376. if ( model.getValue ( "/root/chkflag/contprcpspec" ) == "Y" ) {
  1377. setParameter("paramcalflag", "multi");
  1378. setParameter("defaultday" , getCurrentDate());
  1379. setParameter("reqparam", getCurrentDate());
  1380. // fPrcpModal("SPMMO10600", 20, 50);
  1381. fBundlePrcpDD("I");
  1382. // grd_prcpdetl2.row = 1;
  1383. // fContPrcpDd( grd_prcpdetl2, "/root/main/prcp/prcplist" , "child" );
  1384. // fContPrcpDdInit ( grd_prcpdetl2, 0 );
  1385. // model.refresh();
  1386. // output3.value = grd_prcpdetl2.valueMatrix ( 1, 0 );
  1387. }
  1388. ]]>
  1389. </script>
  1390. </output>
  1391. <datagrid id="grd_prcpdetl2" nodeset="/root/main/prcp/prcplist" visibility="hidden" caption="caption1" colsep="^" colwidth="192" mergecellsfixedrows="bycolrec" rowsep="|" style="left:38px; top:417px; width:45px; height:18px; ">
  1392. <col/>
  1393. </datagrid>
  1394. <line id="line14" class="line_1" style="x1:2px; y1:14px; x2:410px; y2:14px; "/>
  1395. <caption id="caption19" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">공통</caption>
  1396. <line id="line16" class="line_2" style="x1:2px; y1:43px; x2:410px; y2:43px; "/>
  1397. <caption id="caption20" class="tit_2" style="left:5px; top:127px; width:121px; height:14px; ">주사</caption>
  1398. <line id="line8" class="line_2" style="x1:2px; y1:224px; x2:409px; y2:224px; "/>
  1399. <select id="checkbox18" ref="/root/main/prcp/prcplist/asttestflag" overflow="visible" appearance="full" style="left:311px; top:231px; width:100px; height:20px; border-style:none; ">
  1400. <choices>
  1401. <item>
  1402. <label>AST</label>
  1403. <value>Y</value>
  1404. </item>
  1405. </choices>
  1406. </select>
  1407. <select1 id="radio2" ref="/root/main/prcp/prcplist/mealcalrcnts" appearance="full" cols="4" overflow="visible" style="left:105px; top:387px; width:160px; height:20px; border-style:none; ">
  1408. <choices>
  1409. <item>
  1410. <label>1차</label>
  1411. <value>1</value>
  1412. </item>
  1413. <item>
  1414. <label>2차</label>
  1415. <value>2</value>
  1416. </item>
  1417. <item>
  1418. <label>3차</label>
  1419. <value>3</value>
  1420. </item>
  1421. <item>
  1422. <label>추가</label>
  1423. <value>999</value>
  1424. </item>
  1425. </choices>
  1426. </select1>
  1427. <select id="checkbox27" ref="/root/chkflag/mealcalrcnts" overflow="visible" appearance="full" style="left:7px; top:389px; width:73px; height:16px; border-style:none; ">
  1428. <choices>
  1429. <item>
  1430. <label>접종차수</label>
  1431. <value>Y</value>
  1432. </item>
  1433. </choices>
  1434. <script type="javascript" ev:event="xforms-value-changed">
  1435. <![CDATA[
  1436. if ( model.getValue ( "/root/chkflag/mealcalrcnts" ) == "Y" ) {
  1437. checkbox27.item(checkbox27.focusIndex).attribute("font-weight") = "bold";
  1438. radio2.disabled = false;
  1439. model.refresh();
  1440. } else {
  1441. checkbox27.item(checkbox27.focusIndex).attribute("font-weight") = "normal";
  1442. radio2.disabled = true;
  1443. model.refresh();
  1444. }
  1445. ]]>
  1446. </script>
  1447. </select>
  1448. <line id="line9" class="line_2" style="x1:2px; y1:382px; x2:410px; y2:382px; "/>
  1449. <button id="button4" class="icon_search" style="left:79px; top:74px; width:16px; height:16px; ">
  1450. <caption/>
  1451. <script type="javascript" ev:event="DOMActivate">
  1452. <![CDATA[
  1453. setParameter ( "SPMMB02200_cond2", "3" );
  1454. fPrcpModal ( "SPMMB02200", 50, 50 );
  1455. model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
  1456. model.refresh();
  1457. ]]>
  1458. </script>
  1459. </button>
  1460. <bool id="bool1" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:207px; top:281px; width:25px; height:20px; ">
  1461. <script type="javascript" ev:event="xforms-value-changed">
  1462. <![CDATA[
  1463. if( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ){
  1464. messageBox ( "기왕증은 임상연구와 동시에 선택 할 수", "I004" );
  1465. bool1.value = "N";
  1466. return;
  1467. }
  1468. if(bool1.value == "Y"){
  1469. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  1470. var pid = opener.model.getValue("/root/paminfo/list/pid");
  1471. var indd = opener.model.getValue("/root/paminfo/list/indd");
  1472. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  1473. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  1474. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  1475. if(subcretno == "0"){
  1476. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  1477. bool1.value = "N";
  1478. }
  1479. } else {
  1480. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  1481. bool1.value = "N";
  1482. }
  1483. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  1484. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  1485. }
  1486. ]]>
  1487. </script>
  1488. </bool>
  1489. <caption id="caption23" style="left:229px; top:282px; width:50px; height:20px; ">기왕증</caption>
  1490. </xhtml:body>
  1491. </xhtml:html>