SPMMO12100_일괄입력약.xrw 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>일괄입력[약]</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <prcp>
  11. <prcplist>
  12. <status/>
  13. <prcpstatcd/>
  14. <prcpclscd/>
  15. <prcpkindcd/>
  16. <prcpcd/>
  17. <prcpnm/>
  18. <prcpvol/>
  19. <prcpvolunitnm/>
  20. <prcpqty/>
  21. <prcpqtyunitnm/>
  22. <prcptims/>
  23. <prcpdayno/>
  24. <drugmthdspccdnm/>
  25. <prcpmixno/>
  26. <payflagcd/>
  27. <prcpdelivefact/>
  28. <hosinhosoutflag/>
  29. <prcpexecdeptcd/>
  30. <prcphopedd/>
  31. <choiordflag/>
  32. <rgstdt/>
  33. <rgstridnm/>
  34. <testrsltunit/>
  35. <testrsltcnts/>
  36. <prcpgenrflag/>
  37. <prcphistcd/>
  38. <tempprcpflag/>
  39. <prcpsetcd/>
  40. <prcpvolunitflag/>
  41. <prcpqtyunitflag/>
  42. <orgprcpqty/>
  43. <drugspd/>
  44. <drugspdunitflag/>
  45. <powdflag/>
  46. <prnprcpflag/>
  47. <prepprcpflag/>
  48. <selfprcpflag/>
  49. <selfdrugflag/>
  50. <drugpackflag/>
  51. <erprcpflag/>
  52. <precureprcpflag/>
  53. <nigtprcpflag/>
  54. <portprcpflag/>
  55. <fixprcpflag/>
  56. <anamneflag/>
  57. <fastprcpflag/>
  58. <erreadflag/>
  59. <prcpdirecflag/>
  60. <tnsuseflag/>
  61. <tnsfiltflag/>
  62. <trnptbftestflag/>
  63. <offictourhealexamflag/>
  64. <stemcellflag/>
  65. <angioflagcd/>
  66. <opansflagcd/>
  67. <ansttm/>
  68. <mealcalrcnts/>
  69. <mealprotcnts/>
  70. <mealupdtflag/>
  71. <hosinprcpresncd/>
  72. <etcprcpresncd/>
  73. <drugmthdspccd/>
  74. <issdeptcd/>
  75. <prcpauthflag/>
  76. <prcpinptflag/>
  77. <prcpsignflag/>
  78. <rateprcpflag/>
  79. <prcprefseq/>
  80. <ordreqlnkno/>
  81. <testreqlnkno/>
  82. <prcplnkdd/>
  83. <prcplnkno/>
  84. <oprsrvno/>
  85. <tootfact/>
  86. <clinccmtcnts/>
  87. <prcpessninptflag/>
  88. <grupsnglflag/>
  89. <drugrateqty/>
  90. <asttestflag/>
  91. <clincstdyflag/>
  92. <prtlno/>
  93. <clincstdycd/>
  94. <optermcd/>
  95. <prcpflag/>
  96. <hscttempprcpflag/>
  97. <inclprcpcd/>
  98. <inclprcpno/>
  99. <pampkspec/>
  100. <prcppkspec/>
  101. <calcscormastspec/>
  102. <drugmastspec/>
  103. <rateprcpspec/>
  104. <matrsetprcpspec/>
  105. <suppdeptspec/>
  106. <contprcpspec/>
  107. <etclnkspec/>
  108. <srchcondcnts/>
  109. <orgprcpnm/>
  110. <chkcol/>
  111. <hsctdelivepos/>
  112. <hsctlnkno/>
  113. <etcprcpflag/>
  114. <aftcertflag/>
  115. <aftcertdrid/>
  116. <prcpvalidd/>
  117. <insukind/>
  118. <specdrid/>
  119. <anticncrprtlno/>
  120. <anticncrdayno/>
  121. <druglnkno/>
  122. <rehbprcpcurefreqflag/>
  123. <dietprcpgenrflag/>
  124. <irpayflag/>
  125. <irflag/>
  126. <procerdietflag/>
  127. <diagtestconttestintvlflag/>
  128. <drugindependpackflag/>
  129. <diagtestconttestbasetm/>
  130. <diagtestconttestorgtims/>
  131. <ermediscmngtresncd/>
  132. <rehbprcpenddd/>
  133. <matrallsizespecid/>
  134. <rehbprcpcurepartcd/>
  135. <lowdrugresncd/>
  136. <tfdtlcd/>
  137. <dnorreqlnkno/>
  138. <subcretno/>
  139. <exptmthdfact/>
  140. <lowdrugresnetcfact/>
  141. <diagtestconttestcdspec/>
  142. <drprcpetc1/>
  143. <drprcpetc2/>
  144. <drprcpetc3/>
  145. <drprcpetc4/>
  146. <drprcpetc5/>
  147. <drprcpetc6/>
  148. <drprcpetc7/>
  149. <drprcpetc8/>
  150. <drprcpetc9/>
  151. <drprcpetc10/>
  152. <tempcol1/>
  153. <tempcol2/>
  154. <tempcol3/>
  155. <tempcol4/>
  156. <tempcol5/>
  157. <tempcol6/>
  158. <tempcol7/>
  159. <tempcol8/>
  160. <tempcol9/>
  161. <tempcol10/>
  162. <tempcol11/>
  163. <tempcol12/>
  164. <tempcol13/>
  165. <tempcol14/>
  166. <tempcol15/>
  167. <tempcol16/>
  168. <tempcol17/>
  169. <tempcol18/>
  170. <tempcol19/>
  171. <tempcol20/>
  172. <tempcol21/>
  173. <tempcol22/>
  174. <tempcol23/>
  175. <tempcol24/>
  176. <tempcol25/>
  177. </prcplist>
  178. </prcp>
  179. <temp>
  180. <prnuseyn/>
  181. </temp>
  182. </main>
  183. <init>
  184. <prcpdirecflag/>
  185. <payflagcd/>
  186. <drugspd/>
  187. <drugmthdspccdnm/>
  188. <hosinprcpresncd/>
  189. <orddept/>
  190. </init>
  191. <chkflag>
  192. <erprcpflag/>
  193. <prnprcpflag/>
  194. <erreadflag/>
  195. <portprcpflag/>
  196. <precureprcpflag/>
  197. <clincstdyflag/>
  198. <payflagcd/>
  199. <prcphopedd/>
  200. <clinccmtcnts/>
  201. <prcpdelivefact/>
  202. <prepprcpflag/>
  203. <powdflag/>
  204. <selfdrugflag/>
  205. <prcpqty/>
  206. <prcpdayno/>
  207. <asttestflag/>
  208. <prcptims/>
  209. <prcpexecdeptcd/>
  210. <drugmthdspccd/>
  211. <hosinhosoutflag/>
  212. <anamneflag/>
  213. <drugindependpackflag/>
  214. </chkflag>
  215. <send>
  216. <cond1/>
  217. <cond2/>
  218. <cond3/>
  219. </send>
  220. <tempgrid/>
  221. <orddept/>
  222. <temp>
  223. <send/>
  224. <patsupkind/>
  225. </temp>
  226. </root>
  227. </instance>
  228. <script type="javascript" ev:event="xforms-model-construct-done">
  229. <![CDATA[
  230. zbcfGetCodeList(new Array("M0029", "P0323"), new Array("/root/init/payflagcd", "/root/init/hosinprcpresncd"));
  231. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  232. var pParentNode = null;
  233. var node01 = instance1.selectSingleNode("/root/init/hosinprcpresncd/P0323[cdid='01']");
  234. if(node01 != null){
  235. pParentNode = node01.parentNode;
  236. pParentNode.removeChild(node01);
  237. }
  238. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
  239. model.setValue ( "/root/main/prcp/prcplist/prcpclscd", opener.model.getValue ( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedrow(0) + "]/prcpclscd" ));
  240. reqHardCodeInfo("/root/main/temp/prnuseyn", "/root/main/temp/prnuseyn", "173");
  241. fPrcpExecDeptSrch("all");
  242. if (opener.javascript.getParameter("SPMMO12100_prnchk") =="SMMMB00200" && model.getValue("/root/main/temp/prnuseyn/hardcd/hardcd")=="N"){
  243. checkbox2.visible = false;
  244. checkbox11.visible = false;
  245. caption4.visible = false;
  246. }else if(model.getValue("/root/main/temp/prnuseyn/hardcd/hardcd")=="Y"){
  247. checkbox2.visible = false;
  248. checkbox11.visible = false;
  249. caption4.visible = false;
  250. }
  251. checkbox10.disabled = true;
  252. checkbox11.disabled = true;
  253. checkbox12.disabled = true;
  254. checkbox13.disabled = true;
  255. checkbox14.disabled = true;
  256. checkbox15.disabled = true;
  257. checkbox16.disabled = true;
  258. checkbox18.disabled = true;
  259. var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd");
  260. if ( prcpgenrflag == "O" ) { //외래일때
  261. if ( opener.model.getValue ( "/root/usge" ) == "prcp" ) {
  262. checkbox2.disabled = true;
  263. }
  264. if ( hosinprcpresncd == "00" ) { //처방화면에 원내처방 사유가 없으면 원외
  265. model.setValue ( "/root/main/prcp/prcplist/hosinhosoutflag", "O" );
  266. model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd",hosinprcpresncd );
  267. } else { //처방화면에 원내처방 사유가 있으면 원내
  268. model.setValue ( "/root/main/prcp/prcplist/hosinhosoutflag", "I" );
  269. model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd",hosinprcpresncd );
  270. }
  271. } else {
  272. if ( prcpgenrflag == "I" ) { //입원이면 원내/원외 체크박스 disable
  273. checkbox24.disabled = true;
  274. }
  275. model.setValue ( "/root/main/prcp/prcplist/hosinhosoutflag", "I" );
  276. model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd", hosinprcpresncd );
  277. }
  278. combo1.disabled = true;
  279. combo2.disabled = true;
  280. combo3.disabled = true;
  281. input1.disabled = true;
  282. input2.disabled = true;
  283. input3.disabled = true;
  284. radio1.disabled = true;
  285. textarea1.disabled = true;
  286. button4.disabled = true;
  287. model.refresh();
  288. opener.javascript.setParameter ( "batipt_rtn1", "" );
  289. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  290. opener.javascript.setParameter ( "SPMMO12100_drugrateqty", "" );
  291. opener.javascript.setParameter ( "SPMMO12100_chgmthd", "" );
  292. ]]>
  293. </script>
  294. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  295. <submission id="TRMMO01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmedmthd"/>
  296. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  297. <submission id="TRMMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/orddept"/>
  298. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  299. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  300. </model>
  301. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  302. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  303. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  304. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  305. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  306. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  307. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  308. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  309. </xhtml:head>
  310. <xhtml:body pagewidth="430" pageheight="355" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  311. <caption id="caption16" class="cell_1" style="left:2px; top:303px; width:101px; height:23px; "/>
  312. <caption id="caption14" class="cell_1" style="left:2px; top:251px; width:100px; height:23px; "/>
  313. <caption id="caption13" class="cell_1" style="left:207px; top:225px; width:101px; height:23px; "/>
  314. <caption id="caption10" class="cell_1" style="left:2px; top:199px; width:100px; height:23px; "/>
  315. <button id="button1" class="btn4_letter2" style="left:294px; top:333px; width:56px; height:22px; ">
  316. <caption>확인</caption>
  317. <script type="javascript" ev:event="onclick">
  318. <![CDATA[
  319. var erprcpflag_useyn = "";
  320. var erprcpflag = "";
  321. var drugindependpackflag_useyn = "";
  322. var drugindependpackflag = "";
  323. var prnprcpflag_useyn = "";
  324. var prnprcpflag = "";
  325. var prepprcpflag_useyn = "";
  326. var prepprcpflag = "";
  327. var powdflag_useyn = "";
  328. var powdflag = "";
  329. var selfdrugflag_useyn = "";
  330. var selfdrugflag = "";
  331. var prcpqty_useyn = "";
  332. var prcpqty = "";
  333. var prcptims_useyn = "";
  334. var prcptims = "";
  335. var drugmthdspccd_useyn = "";
  336. var drugmthdspccd = "";
  337. var drugmthdspccdnm_useyn = ""
  338. var drugmthdspccdnm = "";
  339. var rateprcpflag_useyn = "";
  340. var rateprcpflag = "";
  341. var drugrateqty_useyn = "";
  342. var drugrateqty = "";
  343. var precureprcpflag_useyn = "";
  344. var precureprcpflag = "";
  345. var clincstdyflag_useyn = "";
  346. var clincstdyflag = "";
  347. var payflagcd_useyn = "";
  348. var payflagcd = "";
  349. var prcpexecdeptcd_useyn = "";
  350. var prcpexecdeptcd = "";
  351. var prcpdayno_useyn = "";
  352. var prcpdayno = "";
  353. var hosinhosoutflag_useyn = "";
  354. var hosinhosoutflag = "";
  355. var hosinprcpresncd_useyn = "";
  356. var hosinprcpresncd = "";
  357. var prcpdelivefact_useyn = "";
  358. var prcpdelivefact = "";
  359. var useyn = "";
  360. var value = "";
  361. var anamneflag = "";
  362. var header = "erprcpflag|drugindependpackflag|prnprcpflag|prepprcpflag|powdflag|selfdrugflag|prcpqty|prcptims|drugmthdspccd|drugmthdspccdnm|rateprcpflag|drugrateqty|precureprcpflag|clincstdyflag|payflagcd|prcpexecdeptcd|prcpdayno|hosinhosoutflag|hosinprcpresncd|anamneflag|prcpdelivefact|subcretno^";
  363. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  364. erprcpflag_useyn = "Y" + "|";
  365. erprcpflag = model.getValue ("/root/main/prcp/prcplist/erprcpflag" ) + "|";
  366. if ( isNull(model.getValue ("/root/main/prcp/prcplist/erprcpflag" ))) {
  367. erprcpflag = "N" + "|";
  368. }
  369. } else {
  370. erprcpflag_useyn = "N" + "|";
  371. erprcpflag = "" + "|";
  372. }
  373. useyn = useyn + erprcpflag_useyn;
  374. value = value + erprcpflag;
  375. if ( model.getValue ( "/root/chkflag/drugindependpackflag" ) == "Y" ) {
  376. drugindependpackflag_useyn = "Y" + "|";
  377. drugindependpackflag = model.getValue ("/root/main/prcp/prcplist/drugindependpackflag" ) + "|";
  378. if ( isNull(model.getValue ("/root/main/prcp/prcplist/drugindependpackflag" ))) {
  379. drugindependpackflag = "N" + "|";
  380. }
  381. } else {
  382. drugindependpackflag_useyn = "N" + "|";
  383. drugindependpackflag = "" + "|";
  384. }
  385. useyn = useyn + drugindependpackflag_useyn;
  386. value = value +drugindependpackflag;
  387. if ( model.getValue ( "/root/chkflag/prnprcpflag" ) == "Y" ) {
  388. prnprcpflag_useyn = "Y" + "|";
  389. prnprcpflag = model.getValue ("/root/main/prcp/prcplist/prnprcpflag" ) + "|";
  390. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prnprcpflag" ))) {
  391. prnprcpflag = "N" + "|";
  392. }
  393. } else {
  394. prnprcpflag_useyn = "N" + "|";
  395. prnprcpflag = "" + "|";
  396. }
  397. useyn = useyn + prnprcpflag_useyn ;
  398. value = value + prnprcpflag;
  399. if ( model.getValue ( "/root/chkflag/prepprcpflag" ) == "Y" ) {
  400. prepprcpflag_useyn = "Y" + "|";
  401. prepprcpflag = model.getValue ("/root/main/prcp/prcplist/prepprcpflag" ) + "|";
  402. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prepprcpflag" ))) {
  403. prepprcpflag = "N" + "|";
  404. }
  405. } else {
  406. prepprcpflag_useyn = "N" + "|";
  407. prepprcpflag = "" + "|";
  408. }
  409. useyn = useyn + prepprcpflag_useyn ;
  410. value = value + prepprcpflag;
  411. if ( model.getValue ( "/root/chkflag/powdflag" ) == "Y" ) {
  412. powdflag_useyn = "Y" + "|";
  413. powdflag = model.getValue ("/root/main/prcp/prcplist/powdflag" ) + "|";
  414. if ( isNull(model.getValue ("/root/main/prcp/prcplist/powdflag" ))) {
  415. powdflag = "N" + "|";
  416. }
  417. } else {
  418. powdflag_useyn = "N" + "|";
  419. powdflag = "" + "|";
  420. }
  421. useyn = useyn + powdflag_useyn ;
  422. value = value + powdflag;
  423. if ( model.getValue ( "/root/chkflag/selfdrugflag" ) == "Y" ) {
  424. selfdrugflag_useyn = "Y" + "|";
  425. selfdrugflag = model.getValue ("/root/main/prcp/prcplist/selfdrugflag" ) + "|";
  426. if ( isNull(model.getValue ("/root/main/prcp/prcplist/selfdrugflag" ))) {
  427. selfdrugflag = "N" + "|";
  428. }
  429. } else {
  430. selfdrugflag_useyn = "N" + "|";
  431. selfdrugflag = "" + "|";
  432. }
  433. useyn = useyn + selfdrugflag_useyn ;
  434. value = value + selfdrugflag;
  435. if ( model.getValue ( "/root/chkflag/prcpqty" ) == "Y" ) {
  436. prcpqty_useyn = "Y" + "|";
  437. prcpqty = model.getValue ("/root/main/prcp/prcplist/prcpqty" ) + "|";
  438. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prcpqty" ))) {
  439. model.alert ( "입력된 수량이 없습니다." );
  440. return;
  441. }
  442. } else {
  443. prcpqty_useyn = "N" + "|";
  444. prcpqty = "" + "|";
  445. }
  446. useyn = useyn + prcpqty_useyn ;
  447. value = value + prcpqty;
  448. if ( model.getValue ( "/root/chkflag/prcptims" ) == "Y" ) {
  449. prcptims_useyn = "Y" + "|";
  450. prcptims = model.getValue ("/root/main/prcp/prcplist/prcptims" ) + "|";
  451. if ( isNull(model.getValue ("/root/main/prcp/prcplist/prcptims" ))) {
  452. model.alert ( "입력된 횟수가 없습니다." );
  453. return;
  454. } else {
  455. if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) != "Y" ) {
  456. opener.javascript.setParameter ( "SPMMO12100_chgmthd" , "Y" );
  457. }
  458. }
  459. } else {
  460. prcptims_useyn = "N" + "|";
  461. prcptims = "" + "|";
  462. }
  463. useyn = useyn + prcptims_useyn ;
  464. value = value + prcptims;
  465. if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
  466. drugmthdspccd_useyn = "Y" + "|";
  467. drugmthdspccdnm_useyn = "Y" + "|";
  468. drugmthdspccd = model.getValue ("/root/main/prcp/prcplist/drugmthdspccd" ) + "|";
  469. drugmthdspccdnm = model.getValue ("/root/main/prcp/prcplist/drugmthdspccdnm" ) + "|";
  470. if ( isNull(model.getValue ("/root/main/prcp/prcplist/drugmthdspccd" ))) {
  471. model.alert ( "입력된 용법이 없습니다." );
  472. return;
  473. }
  474. } else {
  475. drugmthdspccd_useyn = "N" + "|";
  476. drugmthdspccd = "" + "|";
  477. drugmthdspccdnm_useyn = "N" + "|";
  478. drugmthdspccdnm = "" + "|";
  479. }
  480. useyn = useyn + drugmthdspccd_useyn + drugmthdspccdnm_useyn ;
  481. value = value + drugmthdspccd + drugmthdspccdnm;
  482. if ( getParameter ( "SPMMO01900_rateprcpflag" ) == "Y" ) {
  483. rateprcpflag_useyn = "Y" + "|";
  484. drugrateqty_useyn = "Y" + "|";
  485. if ( model.getValue ( "/root/chkflag/prcpqty" ) != "Y" ) {
  486. model.alert ( "비율처방이 있으나 수량이 CHECK 되지 않았습니다." )
  487. return;
  488. }
  489. if ( model.getValue ( "/root/chkflag/prcptims" ) != "Y" ) {
  490. model.alert ( "비율처방이 있으나 횟수가 CHECK 되지 않았습니다." )
  491. return;
  492. }
  493. rateprcpflag = model.getValue ("/root/main/prcp/prcplist/rateprcpflag" ) + "|";
  494. drugrateqty = "" + "|";
  495. opener.javascript.setParameter ( "SPMMO12100_drugrateqty", model.getValue ("/root/main/prcp/prcplist/drugrateqty" ));
  496. } else {
  497. rateprcpflag_useyn = "N" + "|";
  498. drugrateqty_useyn = "N" + "|";
  499. rateprcpflag = "" + "|";
  500. drugrateqty = "" + "|";
  501. }
  502. useyn = useyn + rateprcpflag_useyn + drugrateqty_useyn ;
  503. value = value + rateprcpflag + drugrateqty;
  504. if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
  505. precureprcpflag_useyn = "Y" + "|";
  506. precureprcpflag = model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ) + "|";
  507. if ( isNull(model.getValue ("/root/main/prcp/prcplist/precureprcpflag" ))) {
  508. precureprcpflag = "N" + "|";
  509. }
  510. } else {
  511. precureprcpflag_useyn = "N" + "|";
  512. precureprcpflag = "" + "|";
  513. }
  514. useyn = useyn + precureprcpflag_useyn ;
  515. value = value + precureprcpflag;
  516. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  517. clincstdyflag_useyn = "Y" + "|";
  518. clincstdyflag = model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ) + "|";
  519. if ( isNull(model.getValue ("/root/main/prcp/prcplist/clincstdyflag" ))) {
  520. clincstdyflag = "N" + "|";
  521. }
  522. } else {
  523. clincstdyflag_useyn = "N" + "|";
  524. clincstdyflag = "" + "|";
  525. }
  526. useyn = useyn + clincstdyflag_useyn ;
  527. value = value + clincstdyflag;
  528. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  529. payflagcd_useyn = "Y" + "|";
  530. payflagcd = model.getValue ( "/root/main/prcp/prcplist/payflagcd" ) + "|";
  531. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/payflagcd" ))) {
  532. model.alert ( "입력된 급여구분이 없습니다." ) ;
  533. return;
  534. }
  535. } else {
  536. payflagcd_useyn = "N" + "|";
  537. payflagcd = "" + "|";
  538. }
  539. useyn = useyn + payflagcd_useyn ;
  540. value = value + payflagcd;
  541. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  542. prcpexecdeptcd_useyn = "Y" + "|";
  543. prcpexecdeptcd = model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ) + "|";
  544. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpexecdeptcd" ))) {
  545. model.alert ( "입력된 시행부서가 없습니다." ) ;
  546. return;
  547. }
  548. } else {
  549. prcpexecdeptcd_useyn = "N" + "|";
  550. prcpexecdeptcd = "" + "|";
  551. }
  552. useyn = useyn + prcpexecdeptcd_useyn ;
  553. value = value + prcpexecdeptcd;
  554. if ( model.getValue ( "/root/chkflag/prcpdayno" ) == "Y" ) {
  555. prcpdayno_useyn = "Y" + "|";
  556. prcpdayno = model.getValue ( "/root/main/prcp/prcplist/prcpdayno" ) + "|";
  557. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdayno" ))) {
  558. model.alert ( "입력된 일수가 없습니다." ) ;
  559. return;
  560. }
  561. } else {
  562. prcpdayno_useyn = "N" + "|";
  563. prcpdayno = "" + "|";
  564. }
  565. useyn = useyn + prcpdayno_useyn ;
  566. value = value + prcpdayno;
  567. if ( model.getValue ( "/root/chkflag/hosinhosoutflag" ) == "Y" ) {
  568. if ( isNull(model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ))) {
  569. model.alert ( "입력된 원내/원외구분이 없습니다." );
  570. return;
  571. }
  572. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag"); //환자리스트에서 준 외래, 입원, 응급 구분
  573. var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd"); //원무에 있는 원내처방 사유 코드
  574. //마약 및 mset약제 원외불가 by sonjy 2008-09-15 start
  575. if( checkOpener() && (prcpgenrflag == "O" || prcpgenrflag == "E" ) ){
  576. if( model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) == "O" ){
  577. var sTmp = "";
  578. for ( var i=0 ; i < opener.grd_prcplist.selectedRows ; i++){
  579. sTmp = opener.model.getValue( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedRow(i) + "]/drugmastspec");
  580. var prcpclscd = model.getValue ( "/root/main/prcp/prcplist/prcpclscd");
  581. // 마약중 경구약은 원외 처방 가능하도록 수정 ( 2010, 12. 03 han19)
  582. // if( getArrayData ( sTmp + "^", 0, 23, "^", "|" ) == "M" || //마약
  583. // opener.model.getValue( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedRow(i) + "]/inclprcpno") != "0" ) {
  584. if (opener.model.getValue( "/root/main/prcp/prcplist[" + opener.grd_prcplist.selectedRow(i) + "]/inclprcpno") != "0" ||
  585. (prcpclscd=="A6" && getArrayData ( sTmp + "^", 0, 23, "^", "|" ) == "M" ) ||
  586. (prcpclscd=="A6" && getArrayData ( sTmp + "^", 0, 23, "^", "|" ) == "H" ) ||
  587. getArrayData ( sTmp + "^", 0, 11, "^", "|" ) == "I" ) {
  588. messageBox("마약, 주사, 약제팀의 원내지정약 및 MSET코드내 묶인 약제는 원외로 처방을 낼 수 ", "I004");
  589. return ;
  590. }
  591. }
  592. model.setValue ("/root/main/prcp/prcplist/hosinprcpresncd", "00" );
  593. }
  594. }
  595. //외래이고, 원무의 원내사유가 없고, 원내선택하고, 원채처방사유가 없을 경우
  596. if ( (prcpgenrflag == "O" && hosinprcpresncd == "00" && model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) == "I" )
  597. && (model.getValue ("/root/main/prcp/prcplist/hosinprcpresncd" ) == "00" || model.getValue ("/root/main/prcp/prcplist/hosinprcpresncd" ) == "" )) {
  598. model.alert ( "원내처방 사유가 없습니다." );
  599. return;
  600. }
  601. // by sonjy 2008-09-15 end
  602. hosinhosoutflag_useyn = "Y" + "|";
  603. hosinprcpresncd_useyn = "Y" + "|";
  604. hosinhosoutflag = model.getValue ("/root/main/prcp/prcplist/hosinhosoutflag" ) + "|";
  605. hosinprcpresncd = model.getValue ("/root/main/prcp/prcplist/hosinprcpresncd" ) + "|";
  606. } else {
  607. hosinhosoutflag_useyn = "N" + "|";
  608. hosinhosoutflag = "" + "|";
  609. hosinprcpresncd_useyn = "N" + "|";
  610. hosinprcpresncd = "" + "|";
  611. }
  612. useyn = useyn + hosinhosoutflag_useyn + hosinprcpresncd_useyn;
  613. value = value + hosinhosoutflag + hosinprcpresncd;
  614. if( model.getValue ( " /root/chkflag/anamneflag" ) == "Y" ) {
  615. useyn = useyn + "Y" + "|";
  616. value = value + "Y" + "|";
  617. } else {
  618. useyn = useyn + "N" + "|";
  619. value = value + "N" + "|";
  620. }
  621. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  622. prcpdelivefact_useyn = "Y" + "|";
  623. prcpdelivefact = model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ) + "|";
  624. if ( isNull(model.getValue ( "/root/main/prcp/prcplist/prcpdelivefact" ))) {
  625. model.alert ( "입력된 전달사항 값이 없습니다." );
  626. return;
  627. }
  628. } else {
  629. prcpdelivefact_useyn = "N" + "|";
  630. prcpdelivefact = "" + "|";
  631. }
  632. useyn = useyn + prcpdelivefact_useyn ;
  633. value = value + prcpdelivefact;
  634. //2008. 07. 01 기왕증 입력에 따른 subcretno설정
  635. var subcretno_useyn = "";
  636. var subcretno = 0;
  637. if ( bool1.value == "Y" || model.getValue("/root/chkflag/clincstdyflag") == "Y") {
  638. subcretno_useyn = "Y";
  639. subcretno = model.getValue("/root/main/prcp/prcplist/subcretno");
  640. }else{
  641. subcretno_useyn = "N";
  642. }
  643. useyn = useyn + subcretno_useyn + "^";
  644. value = value + subcretno + "^";
  645. var batipt_rtn1 = header + useyn + value;
  646. opener.javascript.setParameter ( "batipt_rtn1", batipt_rtn1 );
  647. opener.javascript.setParameter ( "batipt_rtn1_useyn", "Y" );
  648. window.close();
  649. ]]>
  650. </script>
  651. </button>
  652. <button id="button2" class="btn4_letter2" style="left:354px; top:333px; width:56px; height:22px; ">
  653. <caption>취소</caption>
  654. <script type="javascript" ev:event="onclick">
  655. <![CDATA[
  656. opener.javascript.setParameter ( "batipt_rtn1_useyn", "N" );
  657. window.close();
  658. ]]>
  659. </script>
  660. </button>
  661. <caption id="caption8" class="cell_1" style="left:207px; top:19px; width:100px; height:23px; "/>
  662. <caption id="caption7" class="cell_1" style="left:207px; top:173px; width:100px; height:23px; "/>
  663. <caption id="caption6" class="cell_1" style="left:207px; top:146px; width:100px; height:23px; "/>
  664. <caption id="caption3" class="cell_1" style="left:2px; top:72px; width:100px; height:50px; "/>
  665. <caption id="caption2" class="cell_1" style="left:2px; top:173px; width:100px; height:23px; "/>
  666. <caption id="caption5" class="cell_1" style="left:2px; top:146px; width:100px; height:23px; "/>
  667. <caption id="caption4" class="cell_1" style="left:207px; top:45px; width:100px; height:23px; "/>
  668. <caption id="caption1" class="cell_1" style="left:2px; top:19px; width:100px; height:23px; "/>
  669. <select id="checkbox1" ref="/root/chkflag/erprcpflag" overflow="visible" appearance="full" style="left:7px; top:23px; width:100px; height:20px; border-style:none; ">
  670. <choices>
  671. <item>
  672. <label>응급</label>
  673. <value>Y</value>
  674. </item>
  675. </choices>
  676. <script type="javascript" ev:event="xforms-value-changed">
  677. <![CDATA[
  678. if ( model.getValue ( "/root/chkflag/erprcpflag" ) == "Y" ) {
  679. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "bold";
  680. checkbox10.disabled = false;
  681. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "Y" );
  682. model.refresh();
  683. } else {
  684. checkbox1.item(checkbox1.focusIndex).attribute("font-weight") = "normal";
  685. checkbox10.disabled = true;
  686. model.setValue ( "/root/main/prcp/prcplist/erprcpflag", "N" );
  687. model.refresh();
  688. }
  689. ]]>
  690. </script>
  691. </select>
  692. <select id="checkbox2" ref="/root/chkflag/prnprcpflag" overflow="visible" appearance="full" style="left:212px; top:49px; width:100px; height:20px; border-style:none; ">
  693. <choices>
  694. <item>
  695. <label>PRN</label>
  696. <value>Y</value>
  697. </item>
  698. </choices>
  699. <script type="javascript" ev:event="xforms-value-changed">
  700. <![CDATA[
  701. if ( model.getValue ( "/root/chkflag/prnprcpflag" ) == "Y" ) {
  702. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "bold";
  703. checkbox11.disabled = false;
  704. model.setValue ( "/root/main/prcp/prcplist/prnprcpflag", "Y" );
  705. model.refresh();
  706. } else {
  707. checkbox2.item(checkbox2.focusIndex).attribute("font-weight") = "normal";
  708. checkbox11.disabled = true;
  709. model.setValue ( "/root/main/prcp/prcplist/prnprcpflag", "N" );
  710. model.refresh();
  711. }
  712. ]]>
  713. </script>
  714. </select>
  715. <select id="checkbox3" ref="/root/chkflag/prepprcpflag" overflow="visible" appearance="full" style="left:7px; top:150px; width:100px; height:20px; border-style:none; ">
  716. <choices>
  717. <item>
  718. <label>Prep</label>
  719. <value>Y</value>
  720. </item>
  721. </choices>
  722. <script type="javascript" ev:event="xforms-value-changed">
  723. <![CDATA[
  724. if ( model.getValue ( "/root/chkflag/prepprcpflag" ) == "Y" ) {
  725. checkbox3.item(checkbox3.focusIndex).attribute("font-weight") = "bold";
  726. checkbox12.disabled = false;
  727. model.setValue ( "/root/main/prcp/prcplist/prepprcpflag", "Y" );
  728. model.refresh();
  729. } else {
  730. checkbox3.item(checkbox3.focusIndex).attribute("font-weight") = "normal";
  731. checkbox12.disabled = true;
  732. model.setValue ( "/root/main/prcp/prcplist/prepprcpflag", "N" );
  733. model.refresh();
  734. }
  735. ]]>
  736. </script>
  737. </select>
  738. <select id="checkbox4" ref="/root/chkflag/powdflag" overflow="visible" appearance="full" style="left:7px; top:178px; width:100px; height:20px; border-style:none; ">
  739. <choices>
  740. <item>
  741. <label>pow</label>
  742. <value>Y</value>
  743. </item>
  744. </choices>
  745. <script type="javascript" ev:event="xforms-value-changed">
  746. <![CDATA[
  747. if ( model.getValue ( "/root/chkflag/powdflag" ) == "Y" ) {
  748. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "bold";
  749. checkbox13.disabled = false;
  750. model.setValue ( "/root/main/prcp/prcplist/powdflag", "Y" );
  751. model.refresh();
  752. } else {
  753. checkbox4.item(checkbox4.focusIndex).attribute("font-weight") = "normal";
  754. checkbox13.disabled = true;
  755. model.setValue ( "/root/main/prcp/prcplist/powdflag", "N" );
  756. model.refresh();
  757. }
  758. ]]>
  759. </script>
  760. </select>
  761. <line id="line15" class="line_2" style="x1:2px; y1:171px; x2:410px; y2:171px; "/>
  762. <select id="checkbox5" ref="/root/chkflag/prcpdelivefact" overflow="visible" appearance="full" style="left:7px; top:75px; width:68px; height:25px; border-style:none; ">
  763. <choices>
  764. <item>
  765. <label>전달사항</label>
  766. <value>Y</value>
  767. </item>
  768. </choices>
  769. <script type="javascript" ev:event="xforms-value-changed">
  770. <![CDATA[
  771. if ( model.getValue ( "/root/chkflag/prcpdelivefact" ) == "Y" ) {
  772. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "bold";
  773. textarea1.disabled = false;
  774. button4.disabled = false;
  775. model.refresh();
  776. } else {
  777. checkbox5.item(checkbox5.focusIndex).attribute("font-weight") = "normal";
  778. textarea1.disabled = true;
  779. button4.disabled = true;
  780. model.refresh();
  781. }
  782. ]]>
  783. </script>
  784. </select>
  785. <select id="checkbox6" ref="/root/chkflag/precureprcpflag" overflow="visible" appearance="full" style="left:212px; top:150px; width:100px; height:20px; border-style:none; ">
  786. <choices>
  787. <item>
  788. <label>선처치</label>
  789. <value>Y</value>
  790. </item>
  791. </choices>
  792. <script type="javascript" ev:event="xforms-value-changed">
  793. <![CDATA[
  794. if ( model.getValue ( "/root/chkflag/precureprcpflag" ) == "Y" ) {
  795. checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "bold";
  796. checkbox14.disabled = false;
  797. model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "Y" );
  798. model.refresh();
  799. } else {
  800. checkbox6.item(checkbox6.focusIndex).attribute("font-weight") = "normal";
  801. model.setValue ( "/root/main/prcp/prcplist/precureprcpflag", "N" );
  802. checkbox14.disabled = true;
  803. model.refresh();
  804. }
  805. ]]>
  806. </script>
  807. </select>
  808. <select id="checkbox7" ref="/root/chkflag/clincstdyflag" overflow="visible" appearance="full" style="left:212px; top:177px; width:100px; height:20px; border-style:none; ">
  809. <choices>
  810. <item>
  811. <label>임상연구</label>
  812. <value>Y</value>
  813. </item>
  814. </choices>
  815. <script type="javascript" ev:event="xforms-value-changed">
  816. <![CDATA[
  817. if( bool1.value == "Y" ){
  818. messageBox ( "임상연구는 기왕증과 동시에 선택 할 수", "I004" );
  819. model.setValue ( "/root/chkflag/clincstdyflag" , "");
  820. model.refresh();
  821. return;
  822. }
  823. if ( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ) {
  824. if ( fSubcretnoSet("1", null) == -1 ) {
  825. model.setValue ( "/root/chkflag/clincstdyflag" , "N");
  826. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  827. checkbox15.disabled = true;
  828. checkbox7.disabled = true;
  829. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  830. model.refresh();
  831. return;
  832. }
  833. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "bold";
  834. checkbox15.disabled = false;
  835. checkbox7.disabled = false;
  836. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "Y" );
  837. } else {
  838. fSubcretnoSet("1", null);
  839. checkbox7.item(checkbox7.focusIndex).attribute("font-weight") = "normal";
  840. checkbox15.disabled = true;
  841. model.setValue ( "/root/main/prcp/prcplist/clincstdyflag", "N" );
  842. }
  843. model.refresh();
  844. ]]>
  845. </script>
  846. </select>
  847. <line id="line1" class="line_2" style="x1:2px; y1:70px; x2:410px; y2:70px; "/>
  848. <select1 id="combo1" ref="/root/main/prcp/prcplist/payflagcd" class="combo_default" appearance="minimal" style="left:310px; top:21px; width:100px; height:19px; ">
  849. <choices>
  850. <itemset nodeset="/root/init/payflagcd/M0029">
  851. <label ref="cdnm"/>
  852. <value ref="cdid"/>
  853. </itemset>
  854. </choices>
  855. </select1>
  856. <select id="checkbox8" ref="/root/chkflag/payflagcd" overflow="visible" appearance="full" style="left:212px; top:24px; width:100px; height:20px; border-style:none; ">
  857. <choices>
  858. <item>
  859. <label>급여</label>
  860. <value>Y</value>
  861. </item>
  862. </choices>
  863. <script type="javascript" ev:event="xforms-value-changed">
  864. <![CDATA[
  865. if ( model.getValue ( "/root/chkflag/payflagcd" ) == "Y" ) {
  866. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "bold";
  867. combo1.disabled = false;
  868. model.refresh();
  869. } else {
  870. checkbox8.item(checkbox8.focusIndex).attribute("font-weight") = "normal";
  871. combo1.disabled = true;
  872. model.refresh();
  873. }
  874. ]]>
  875. </script>
  876. </select>
  877. <line id="line2" class="line_2" style="x1:2px; y1:197px; x2:410px; y2:197px; "/>
  878. <line id="line3" class="line_2" style="x1:2px; y1:223px; x2:409px; y2:223px; "/>
  879. <textarea id="textarea1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:103px; top:72px; width:307px; height:49px; "/>
  880. <line id="line7" class="line_1" style="x1:2px; y1:141px; x2:410px; y2:141px; "/>
  881. <caption id="caption9" class="cell_1" style="left:207px; top:199px; width:100px; height:23px; "/>
  882. <select id="checkbox9" ref="/root/chkflag/prcpexecdeptcd" overflow="visible" appearance="full" style="left:212px; top:201px; width:100px; height:20px; border-style:none; ">
  883. <choices>
  884. <item>
  885. <label>시행부서</label>
  886. <value>Y</value>
  887. </item>
  888. </choices>
  889. <script type="javascript" ev:event="xforms-value-changed">
  890. <![CDATA[
  891. if ( model.getValue ( "/root/chkflag/prcpexecdeptcd" ) == "Y" ) {
  892. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "bold";
  893. combo2.disabled = false;
  894. model.refresh();
  895. } else {
  896. checkbox9.item(checkbox9.focusIndex).attribute("font-weight") = "normal";
  897. combo2.disabled = true;
  898. model.refresh();
  899. }
  900. ]]>
  901. </script>
  902. </select>
  903. <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; ">
  904. <choices>
  905. <item>
  906. <label>응급</label>
  907. <value>Y</value>
  908. </item>
  909. </choices>
  910. </select>
  911. <select id="checkbox11" ref="/root/main/prcp/prcplist/prnprcpflag" overflow="visible" appearance="full" style="left:311px; top:49px; width:100px; height:20px; border-style:none; ">
  912. <choices>
  913. <item>
  914. <label>PRN</label>
  915. <value>Y</value>
  916. </item>
  917. </choices>
  918. </select>
  919. <select id="checkbox12" ref="/root/main/prcp/prcplist/prepprcpflag" overflow="visible" appearance="full" style="left:106px; top:150px; width:100px; height:20px; border-style:none; ">
  920. <choices>
  921. <item>
  922. <label>Prep</label>
  923. <value>Y</value>
  924. </item>
  925. </choices>
  926. </select>
  927. <select id="checkbox13" ref="/root/main/prcp/prcplist/powdflag" overflow="visible" appearance="full" style="left:106px; top:178px; width:100px; height:20px; border-style:none; ">
  928. <choices>
  929. <item>
  930. <label>pow</label>
  931. <value>Y</value>
  932. </item>
  933. </choices>
  934. </select>
  935. <select id="checkbox14" ref="/root/main/prcp/prcplist/precureprcpflag" overflow="visible" appearance="full" style="left:311px; top:150px; width:100px; height:20px; border-style:none; ">
  936. <choices>
  937. <item>
  938. <label>선처치</label>
  939. <value>Y</value>
  940. </item>
  941. </choices>
  942. </select>
  943. <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; ">
  944. <choices>
  945. <item>
  946. <label>임상연구</label>
  947. <value>Y</value>
  948. </item>
  949. </choices>
  950. </select>
  951. <line id="line4" class="line_3" style="x1:2px; y1:327px; x2:409px; y2:327px; "/>
  952. <select id="checkbox16" ref="/root/main/prcp/prcplist/selfdrugflag" overflow="visible" appearance="full" style="left:106px; top:203px; width:100px; height:20px; border-style:none; ">
  953. <choices>
  954. <item>
  955. <label>self</label>
  956. <value>Y</value>
  957. </item>
  958. </choices>
  959. </select>
  960. <select id="checkbox17" ref="/root/chkflag/selfdrugflag" overflow="visible" appearance="full" style="left:7px; top:203px; width:100px; height:20px; border-style:none; ">
  961. <choices>
  962. <item>
  963. <label>self</label>
  964. <value>Y</value>
  965. </item>
  966. </choices>
  967. <script type="javascript" ev:event="xforms-value-changed">
  968. <![CDATA[
  969. if ( model.getValue ( "/root/chkflag/selfdrugflag" ) == "Y" ) {
  970. checkbox17.item(checkbox17.focusIndex).attribute("font-weight") = "bold";
  971. checkbox16.disabled = false;
  972. model.setValue ( "/root/main/prcp/prcplist/selfdrugflag", "Y" );
  973. model.refresh();
  974. } else {
  975. checkbox17.item(checkbox17.focusIndex).attribute("font-weight") = "normal";
  976. checkbox16.disabled = true;
  977. model.setValue ( "/root/main/prcp/prcplist/selfdrugflag", "N" );
  978. model.refresh();
  979. }
  980. ]]>
  981. </script>
  982. </select>
  983. <line id="line5" class="line_2" style="x1:3px; y1:249px; x2:411px; y2:249px; "/>
  984. <caption id="caption12" class="cell_1" style="left:2px; top:225px; width:100px; height:23px; "/>
  985. <select id="checkbox21" ref="/root/chkflag/prcpqty" overflow="visible" appearance="full" style="left:7px; top:229px; width:100px; height:20px; border-style:none; ">
  986. <choices>
  987. <item>
  988. <label>수량</label>
  989. <value>Y</value>
  990. </item>
  991. </choices>
  992. <script type="javascript" ev:event="xforms-value-changed">
  993. <![CDATA[
  994. if ( model.getValue ( "/root/chkflag/prcpqty" ) == "Y" ) {
  995. checkbox21.item(0).attribute("font-weight") = "bold";
  996. input1.disabled = false;
  997. model.refresh();
  998. } else {
  999. checkbox21.item(0).attribute("font-weight") = "normal";
  1000. input1.disabled = true;
  1001. model.refresh();
  1002. }
  1003. ]]>
  1004. </script>
  1005. </select>
  1006. <input id="input1" ref="/root/main/prcp/prcplist/prcpqty" style="left:103px; top:227px; width:100px; height:19px; "/>
  1007. <select id="checkbox20" ref="/root/chkflag/prcpdayno" overflow="visible" appearance="full" style="left:212px; top:227px; width:73px; height:20px; border-style:none; ">
  1008. <choices>
  1009. <item>
  1010. <label>일수</label>
  1011. <value>Y</value>
  1012. </item>
  1013. </choices>
  1014. <script type="javascript" ev:event="xforms-value-changed">
  1015. <![CDATA[
  1016. if ( model.getValue ( "/root/chkflag/prcpdayno" ) == "Y" ) {
  1017. checkbox20.item(checkbox20.focusIndex).attribute("font-weight") = "bold";
  1018. input2.disabled = false;
  1019. model.refresh();
  1020. } else {
  1021. checkbox20.item(checkbox20.focusIndex).attribute("font-weight") = "normal";
  1022. input2.disabled = true;
  1023. model.refresh();
  1024. }
  1025. ]]>
  1026. </script>
  1027. </select>
  1028. <input id="input2" ref="/root/main/prcp/prcplist/prcpdayno" format="999" style="left:310px; top:227px; width:100px; height:19px; "/>
  1029. <select id="checkbox22" ref="/root/chkflag/prcptims" overflow="visible" appearance="full" style="left:7px; top:254px; width:97px; height:20px; border-style:none; ">
  1030. <choices>
  1031. <item>
  1032. <label>횟수</label>
  1033. <value>Y</value>
  1034. </item>
  1035. </choices>
  1036. <script type="javascript" ev:event="xforms-value-changed">
  1037. <![CDATA[
  1038. if ( model.getValue ( "/root/chkflag/prcptims" ) == "Y" ) {
  1039. checkbox22.item(0).attribute("font-weight") = "bold";
  1040. input3.disabled = false;
  1041. model.refresh();
  1042. } else {
  1043. checkbox22.item(0).attribute("font-weight") = "normal";
  1044. input3.disabled = true;
  1045. model.refresh();
  1046. }
  1047. ]]>
  1048. </script>
  1049. </select>
  1050. <caption id="caption15" class="cell_1" style="left:2px; top:277px; width:101px; height:23px; "/>
  1051. <select id="checkbox23" ref="/root/chkflag/drugmthdspccd" overflow="visible" appearance="full" style="left:7px; top:279px; width:73px; height:20px; border-style:none; ">
  1052. <choices>
  1053. <item>
  1054. <label>용법</label>
  1055. <value>Y</value>
  1056. </item>
  1057. </choices>
  1058. <script type="javascript" ev:event="xforms-value-changed">
  1059. <![CDATA[
  1060. if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
  1061. checkbox23.item(0).attribute("font-weight") = "bold";
  1062. fPrcpModal ("SPMMO01900", 50, 10);
  1063. if ( getParameter ( "SPMMO01900_prcptims" ) == "Y" ) {
  1064. model.setValue ( "/root/chkflag/prcptims", "Y" );
  1065. checkbox22.dispatch ( "xforms-value-changed" );
  1066. }
  1067. if ( getParameter ( "SPMMO01900_rateprcpflag" ) == "Y" ) {
  1068. model.setValue ( "/root/chkflag/prcpqty", "Y" );
  1069. checkbox21.dispatch ( "xforms-value-changed" );
  1070. }
  1071. model.refresh();
  1072. } else {
  1073. checkbox23.item(0).attribute("font-weight") = "normal";
  1074. model.refresh();
  1075. }
  1076. ]]>
  1077. </script>
  1078. </select>
  1079. <line id="line8" class="line_2" style="x1:0px; y1:275px; x2:408px; y2:275px; "/>
  1080. <input id="input3" ref="/root/main/prcp/prcplist/prcptims" format="99" style="left:103px; top:253px; width:100px; height:19px; ">
  1081. <script type="javascript" ev:event="onkeyup">
  1082. <![CDATA[
  1083. inputEnterKey ( "button3", "DOMActivate" );
  1084. ]]>
  1085. </script>
  1086. </input>
  1087. <line id="line11" class="line_2" style="x1:3px; y1:275px; x2:411px; y2:275px; "/>
  1088. <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; ">
  1089. <choices>
  1090. <itemset nodeset="/root/orddept/dept">
  1091. <label ref="depthngnm"/>
  1092. <value ref="deptcd"/>
  1093. </itemset>
  1094. </choices>
  1095. </select1>
  1096. <output id="output1" ref="/root/main/prcp/prcplist/drugmthdspccd" visibility="hidden" style="left:310px; top:278px; width:100px; height:19px; "/>
  1097. <output id="output2" ref="/root/main/prcp/prcplist/drugmthdspccdnm" style="left:104px; top:278px; width:305px; height:19px; border-color:#c0c0c0; border-style:solid; ">
  1098. <script type="javascript" ev:event="ondblclick">
  1099. <![CDATA[
  1100. if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
  1101. checkbox23.dispatch ( "xforms-value-changed" );
  1102. }
  1103. ]]>
  1104. </script>
  1105. </output>
  1106. <datagrid id="grd_prcplist" nodeset="/root/tempgrid" visibility="hidden" caption="caption3" colsep="^" colwidth="100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:330px; width:20px; height:14px; ">
  1107. <col/>
  1108. </datagrid>
  1109. <select id="checkbox24" ref="/root/chkflag/hosinhosoutflag" overflow="visible" appearance="full" style="left:7px; top:305px; width:73px; height:16px; border-style:none; ">
  1110. <choices>
  1111. <item>
  1112. <label>원내/원외</label>
  1113. <value>Y</value>
  1114. </item>
  1115. </choices>
  1116. <script type="javascript" ev:event="xforms-value-changed">
  1117. <![CDATA[
  1118. if ( model.getValue ( "/root/chkflag/hosinhosoutflag" ) == "Y" ) {
  1119. checkbox24.item(0).attribute("font-weight") = "bold";
  1120. radio1.disabled = false;
  1121. var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd");
  1122. if ( hosinprcpresncd != "00" ) {
  1123. combo3.disabled = false;
  1124. } else {
  1125. combo3.disabled = true;
  1126. }
  1127. model.refresh();
  1128. } else {
  1129. checkbox24.item(0).attribute("font-weight") = "normal";
  1130. radio1.disabled = true;
  1131. combo3.disabled = true;
  1132. model.refresh();
  1133. }
  1134. ]]>
  1135. </script>
  1136. </select>
  1137. <line id="line12" class="line_2" style="x1:2px; y1:301px; x2:410px; y2:301px; "/>
  1138. <select1 id="radio1" ref="/root/main/prcp/prcplist/hosinhosoutflag" appearance="full" cols="2" overflow="visible" style="left:105px; top:304px; width:85px; height:20px; border-style:none; ">
  1139. <choices>
  1140. <item>
  1141. <label>원내</label>
  1142. <value>I</value>
  1143. </item>
  1144. <item>
  1145. <label>원외</label>
  1146. <value>O</value>
  1147. </item>
  1148. </choices>
  1149. <script type="javascript" ev:event="xforms-select">
  1150. <![CDATA[
  1151. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag"); //환자리스트에서 준 외래, 입원, 응급 구분
  1152. var hosinprcpresncd = opener.model.getValue("/root/init/hosinprcpresncd"); //원무에 있는 원내처방 사유 코드
  1153. if ( model.getValue ( "/root/main/prcp/prcplist/hosinhosoutflag" ) == "I" ) {
  1154. if ( hosinprcpresncd != "00" ) { //원무에 있는 원내처방 사유 코드가 있다면
  1155. model.setValue ( "/root/main/prcp/prcplist/hosinprcpresncd", hosinprcpresncd ) ;
  1156. }
  1157. combo3.disabled = false;
  1158. } else if ( model.getValue ( "/root/main/prcp/prcplist/hosinhosoutflag" ) == "O" ) { //원외를 선택하면
  1159. model.setValue("/root/main/prcp/prcplist/hosinprcpresncd","00");
  1160. combo3.disabled = true; //원내처방 사유코드를 입력할 수는 없다.
  1161. }
  1162. model.refresh();
  1163. ]]>
  1164. </script>
  1165. </select1>
  1166. <select1 id="combo3" ref="/root/main/prcp/prcplist/hosinprcpresncd" class="combo_default" appearance="minimal" style="left:190px; top:304px; width:219px; height:19px; ">
  1167. <choices>
  1168. <itemset nodeset="/root/init/hosinprcpresncd/P0323">
  1169. <label ref="cdnm"/>
  1170. <value ref="cdid"/>
  1171. </itemset>
  1172. </choices>
  1173. <script type="javascript" ev:event="xforms-value-changed">
  1174. <![CDATA[
  1175. //원내처방 사유를 선택해서 처방화면의 원내처방 사유랑 같은 것이 있으면 모두 그것으로 바꿈
  1176. //약속처방, 지시처방에서는 되면 안됨
  1177. if ( opener.model.getValue ( "/root/usge" ) == "prcp" ) {
  1178. var hosinprcpresncd = model.getValue ( "/root/main/prcp/prcplist/hosinprcpresncd" );
  1179. var openerHosinprcpresncd = opener.model.getValue ( "/root/init/hosinprcpresncd/P0034[cdid='" + hosinprcpresncd + "']/cdid" );
  1180. if ( !isNull(openerHosinprcpresncd) && hosinprcpresncd != "00" ) {
  1181. if ( messageBox ( "모든 약,주사 처방에 같은 원내처방 사유를", "Q009" ) == "6" ) {
  1182. opener.model.setValue ( "/root/init/hosinprcpresncd", openerHosinprcpresncd );
  1183. for ( i=1; i < opener.grd_prcplist.rows; i++ ) {
  1184. var prcpclscd = opener.model.getValue ( "/root/main/prcp/prcplist[" + i + "]/prcpclscd" );
  1185. if ( prcpclscd == "A2" || prcpclscd == "A4" || prcpclscd == "A6" ) {
  1186. opener.model.setValue( "/root/main/prcp/prcplist[" + i + "]/hosinhosoutflag", "I"); //원내처방
  1187. opener.model.setValue ( "/root/main/prcp/prcplist[" + i + "]/hosinprcpresncd", openerHosinprcpresncd );
  1188. }
  1189. }
  1190. }
  1191. opener.model.refresh();
  1192. }
  1193. }
  1194. ]]>
  1195. </script>
  1196. </select1>
  1197. <button id="button3" visibility="hidden" style="left:20px; top:327px; width:15px; height:20px; ">
  1198. <caption>button3</caption>
  1199. <script type="javascript" ev:event="DOMActivate">
  1200. <![CDATA[
  1201. if ( model.getValue ( "/root/chkflag/drugmthdspccd" ) == "Y" ) {
  1202. grd_prcplist.row = 1;
  1203. fBaseMthd ();
  1204. model.refresh();
  1205. }
  1206. ]]>
  1207. </script>
  1208. </button>
  1209. <caption id="caption18" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">공통</caption>
  1210. <line id="line13" class="line_1" style="x1:2px; y1:14px; x2:410px; y2:14px; "/>
  1211. <line id="line14" class="line_2" style="x1:2px; y1:43px; x2:410px; y2:43px; "/>
  1212. <caption id="caption17" class="tit_2" style="left:5px; top:127px; width:121px; height:13px; ">약</caption>
  1213. <button id="button4" class="icon_search" style="left:78px; top:76px; width:16px; height:16px; ">
  1214. <caption/>
  1215. <script type="javascript" ev:event="DOMActivate">
  1216. <![CDATA[
  1217. setParameter ( "SPMMB02200_cond2", "3" );
  1218. fPrcpModal ( "SPMMB02200", 50, 50 );
  1219. model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
  1220. model.refresh();
  1221. ]]>
  1222. </script>
  1223. </button>
  1224. <caption id="caption11" class="cell_1" style="left:207px; top:251px; width:101px; height:23px; "/>
  1225. <bool id="bool1" checkvalue="Y,N" ref="/root/chkflag/anamneflag" style="left:208px; top:253px; width:25px; height:20px; ">
  1226. <script type="javascript" ev:event="xforms-value-changed">
  1227. <![CDATA[
  1228. if( model.getValue ( "/root/chkflag/clincstdyflag" ) == "Y" ){
  1229. messageBox ( "기왕증은 임상연구와 동시에 선택 할 수", "I004" );
  1230. bool1.value = "N";
  1231. return;
  1232. }
  1233. if(bool1.value == "Y"){
  1234. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  1235. var pid = opener.model.getValue("/root/paminfo/list/pid");
  1236. var indd = opener.model.getValue("/root/paminfo/list/indd");
  1237. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  1238. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  1239. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  1240. if(subcretno == "0"){
  1241. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  1242. bool1.value = "N";
  1243. }
  1244. } else {
  1245. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  1246. bool1.value = "N";
  1247. }
  1248. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  1249. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  1250. }
  1251. ]]>
  1252. </script>
  1253. </bool>
  1254. <caption id="caption19" style="left:230px; top:254px; width:50px; height:20px; ">기왕증</caption>
  1255. <caption id="caption20" class="cell_1" style="left:2px; top:45px; width:100px; height:23px; "/>
  1256. <select id="checkbox18" ref="/root/main/prcp/prcplist/drugindependpackflag" overflow="visible" appearance="full" style="left:105px; top:49px; width:100px; height:20px; border-style:none; ">
  1257. <choices>
  1258. <item>
  1259. <label>따로포장</label>
  1260. <value>Y</value>
  1261. </item>
  1262. </choices>
  1263. </select>
  1264. <select id="checkbox19" ref="/root/chkflag/drugindependpackflag" overflow="visible" appearance="full" style="left:6px; top:49px; width:100px; height:20px; border-style:none; ">
  1265. <choices>
  1266. <item>
  1267. <label>따로포장</label>
  1268. <value>Y</value>
  1269. </item>
  1270. </choices>
  1271. <script type="javascript" ev:event="xforms-value-changed">
  1272. <![CDATA[
  1273. if ( model.getValue ( "/root/chkflag/drugindependpackflag" ) == "Y" ) {
  1274. checkbox19.item(checkbox19.focusIndex).attribute("font-weight") = "bold";
  1275. checkbox18.disabled = false;
  1276. model.setValue ( "/root/main/prcp/prcplist/drugindependpackflag", "Y" );
  1277. model.refresh();
  1278. } else {
  1279. checkbox19.item(checkbox19.focusIndex).attribute("font-weight") = "normal";
  1280. checkbox18.disabled = true;
  1281. model.setValue ( "/root/main/prcp/prcplist/drugindependpackflag", "N" );
  1282. model.refresh();
  1283. }
  1284. ]]>
  1285. </script>
  1286. </select>
  1287. </xhtml:body>
  1288. </xhtml:html>