SMADT00100_외래처방전감사.xrw 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609
  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. <masterinfo>
  11. <grid1>
  12. <drugno/>
  13. <hosinhosoutflagnm/>
  14. <pid/>
  15. <hngnm/>
  16. <prcpstatcd/>
  17. <orddd/>
  18. <rcptexecdt/>
  19. <drugchkstat/>
  20. <reteresnnm/>
  21. <drugchknm/>
  22. <drugchkdt/>
  23. <cretno/>
  24. <acptseqno/>
  25. <instcd/>
  26. <orddeptcd/>
  27. <drugdd/>
  28. <grdselrow/>
  29. <reteresn/>
  30. <hosinhosoutflag/>
  31. <rtnyn/>
  32. <prcpdd/>
  33. </grid1>
  34. </masterinfo>
  35. <detailinfo>
  36. <baseinfo>
  37. <pid/>
  38. <orddd/>
  39. <orddrnm/>
  40. <tel/>
  41. <hngnm/>
  42. <rsvdd/>
  43. <licenseno/>
  44. <diagnm/>
  45. <age/>
  46. <orddeptnm/>
  47. <hostinprcpresnm/>
  48. <instcd/>
  49. <insukind/>
  50. <detladdr/>
  51. <orddeptcd/>
  52. <rrgstno/>
  53. <sideinfo/>
  54. </baseinfo>
  55. <memoinfo>
  56. <pid/>
  57. <seqno/>
  58. <hosinhosoutflag/>
  59. <instcd/>
  60. <orddeptcd/>
  61. <orddeptnm/>
  62. <drugdd/>
  63. <drugno/>
  64. <writid2/>
  65. <writnm/>
  66. <writdt/>
  67. <memo/>
  68. <useyn/>
  69. <m/>
  70. <ioflag/>
  71. <writid/>
  72. </memoinfo>
  73. <grid2>
  74. <hosinhosoutflagnm/>
  75. <prcpcd/>
  76. <prcpnm/>
  77. <prcpvoldisp/>
  78. <prcpqtydisp/>
  79. <prcptimes/>
  80. <prcpdayno/>
  81. <ordrtnflag/>
  82. <prcpmixno/>
  83. <powdflag/>
  84. <mthdcd/>
  85. <payflagcd/>
  86. <prcpexecdeptnm/>
  87. <fstrgstdt/>
  88. <lastupdtdt/>
  89. <hosinprcpresncd/>
  90. <prcpdelivefact/>
  91. <execprcphistcdnm/>
  92. <orddd/>
  93. <prcpno/>
  94. <prcphistno/>
  95. <instcd/>
  96. <orddeptnm/>
  97. <prcpvol/>
  98. <prcpvolunitflag/>
  99. <prcpqty/>
  100. <prcpqtyunitflag/>
  101. <prcpdd/>
  102. <execprcphistcd/>
  103. <rtnprnt/>
  104. <drugstatnm/>
  105. <resncnts/>
  106. </grid2>
  107. <diaginfo>
  108. <icd10cd/>
  109. <diagengnm/>
  110. <diaghngnm/>
  111. </diaginfo>
  112. <etcinfo>
  113. <prcpno/>
  114. <sumkindflag/>
  115. <prcpnm/>
  116. </etcinfo>
  117. </detailinfo>
  118. <patinfo>
  119. <patinfolist/>
  120. </patinfo>
  121. </main>
  122. <send>
  123. <srchinfo>
  124. <srchdd/>
  125. <srchorddeptcd/>
  126. <srchhosinhosoutflag/>
  127. <srchpid/>
  128. <srchhngnm/>
  129. <srchdrugno/>
  130. <srchdrugnocheck/>
  131. <srchpidonly/>
  132. <srchdrugchkstat/>
  133. <srchddflag>O</srchddflag>
  134. <srchtodd/>
  135. </srchinfo>
  136. <memosrchinfo>
  137. <srchpid/>
  138. <srchorddeptcd/>
  139. <srchseqno/>
  140. <srchinstcd/>
  141. <srchioflag/>
  142. <srchhosinhosoutflag/>
  143. </memosrchinfo>
  144. <detailsrchinfo>
  145. <srchpid/>
  146. <srchorddd/>
  147. <srchprcpdd/>
  148. <srchcretno/>
  149. <srchacptseqno/>
  150. <srchinstcd/>
  151. <srchorddeptcd/>
  152. <srchhosinhosoutflag/>
  153. <srchdrugdd/>
  154. <srchdrugno/>
  155. <rcptyn/>
  156. </detailsrchinfo>
  157. <usersrchinfo>
  158. <srchuserid/>
  159. </usersrchinfo>
  160. <req>
  161. <data1>
  162. <pid/>
  163. <orddd/>
  164. <ioflag/>
  165. <cretno/>
  166. <hosinhosoutflag/>
  167. <instcd/>
  168. <drugchkstat/>
  169. <reteresn/>
  170. <drugchkdt/>
  171. <drugchkid/>
  172. </data1>
  173. <data2>
  174. <m/>
  175. </data2>
  176. <data3>
  177. <pid/>
  178. <orddd/>
  179. <cretno/>
  180. <valiyn/>
  181. <formcd/>
  182. </data3>
  183. </req>
  184. <srchtempinfo/>
  185. </send>
  186. <init>
  187. <baseinfo>
  188. <prcpitem/>
  189. </baseinfo>
  190. <dateinfo>
  191. </dateinfo>
  192. <orddept>
  193. <dept/>
  194. </orddept>
  195. <autoflag/>
  196. <patinfo>
  197. <pid/>
  198. <hngnm/>
  199. <srchcond/>
  200. </patinfo>
  201. </init>
  202. <hidden>
  203. <momoitem>
  204. <count/>
  205. <seqno/>
  206. </momoitem>
  207. <chkitem>
  208. <count/>
  209. </chkitem>
  210. <patinfo>
  211. <pid/>
  212. <hngnm/>
  213. </patinfo>
  214. <userinfo>
  215. <userid/>
  216. <usernm/>
  217. </userinfo>
  218. <prcpsrch>
  219. <drugno/>
  220. <drugdd/>
  221. </prcpsrch>
  222. <popup>
  223. <prcp>
  224. <item>
  225. <name>기초임상정보 성인</name>
  226. <param>0900006607</param>
  227. </item>
  228. <item>
  229. <name>기초임상정보 소아</name>
  230. <param>0900006608</param>
  231. </item>
  232. </prcp>
  233. </popup>
  234. <forminfo>
  235. <formcd/>
  236. <formrecseq/>
  237. </forminfo>
  238. </hidden>
  239. <temp>
  240. <reteresn/>
  241. <prcpdelivefact/>
  242. </temp>
  243. </root>
  244. </instance>
  245. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  246. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  247. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  248. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  249. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  250. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  251. <submission id="TRADT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchtempinfo" replace="instance" resultref="/root/main/masterinfo/grid1"/>
  252. <submission id="TRADT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/detailsrchinfo" replace="instance" resultref="/root/main/detailinfo"/>
  253. <submission id="TXADT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data2" replace="instance" resultref="/root/hidden/momoitem"/>
  254. <submission id="TXADT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data1" replace="instance" resultref="/root/hidden/chkitem"/>
  255. <submission id="TRADE00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data3" replace="instance" resultref="/root/hidden/forminfo"/>
  256. <script type="javascript">
  257. <![CDATA[
  258. function fSubmitDrugChk(drugchkstat){
  259. var reteresn = "";
  260. var selrow = grd_chklist.row;
  261. // 환자선택 필수
  262. if (model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid") == "" ) {
  263. messageBox("환자를", "C002");
  264. return;
  265. }
  266. // 수납된 처방은 검수불가
  267. //if (model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/prcpstatcd") == "Y") {
  268. // messageBox("수납된 처방은 검수처리", "E001");
  269. // return;
  270. //}
  271. // 검수보류사유
  272. if (drugchkstat == "NC") {
  273. modal("SMADT00101",0,100,160,"SMADT00101","","");
  274. reteresn = model.getValue("/root/temp/reteresn");
  275. if (reteresn == "") {
  276. messageBox("보류사유을", "C002");
  277. return;
  278. }
  279. }
  280. model.setValue("/root/send/req/data1/pid" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid"));
  281. model.setValue("/root/send/req/data1/orddd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/orddd"));
  282. model.setValue("/root/send/req/data1/ioflag" , "O");
  283. model.setValue("/root/send/req/data1/cretno" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/cretno"));
  284. model.setValue("/root/send/req/data1/hosinhosoutflag" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/hosinhosoutflag"));
  285. model.setValue("/root/send/req/data1/instcd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/instcd"));
  286. model.setValue("/root/send/req/data1/drugchkstat" , drugchkstat);
  287. model.setValue("/root/send/req/data1/reteresn" , reteresn);
  288. // 수정
  289. submit("TXADT00101");
  290. // 처리결과
  291. fViewList();
  292. if ( grd_chklist.rows >= selrow+1){
  293. grd_chklist.row = selrow+1;
  294. fViewDetlList("");
  295. }
  296. }
  297. function fViewList() {
  298. var srchpid = "";
  299. var srchpidonly = "";
  300. var srchddflag = "";
  301. srchpid = model.getValue("/root/send/srchtempinfo/srchpid");
  302. srchpidonly = model.getValue("/root/send/srchtempinfo/srchpidonly");
  303. srchddflag = model.getValue("/root/send/srchtempinfo/srchddflag");
  304. if (srchpidonly == "Y") {
  305. if (model.getValue("/root/send/srchtempinfo/srchpid") == "" ) {
  306. messageBox("등록번호를","C001");
  307. return;
  308. }
  309. } else {
  310. if (srchddflag == "") {
  311. messageBox("검색일자구분을","C001");
  312. return;
  313. }
  314. if (srchddflag == "O" && model.getValue("/root/send/srchtempinfo/srchdd") == "" ) {
  315. messageBox("적용일자를","C001");
  316. return;
  317. }
  318. if (srchddflag == "P" && model.getValue("/root/send/srchtempinfo/srchdd") == "" ) {
  319. messageBox("수납일자를","C001");
  320. return;
  321. }
  322. model.setValue("/root/send/srchtempinfo/srchpidonly","N");
  323. }
  324. // 초기화
  325. model.removeNodeset("/root/main/masterinfo/grid1");
  326. model.removeNodeset("/root/main/detailinfo/baseinfo");
  327. model.removeNodeset("/root/main/detailinfo/memoinfo");
  328. model.removeNodeset("/root/main/detailinfo/grid2");
  329. var success = submit("TRADT00101");
  330. if (success) {
  331. // 로우색상표시
  332. grd_chklist.rebuildStyle();
  333. //etRowStyle("grd_chklist" , "1" , "원내" , "hosinhosoutflagnm", "equal" );
  334. var style = new Array("#fcd2c1" , "#ffe79d" , "#f3e1bf" , "#7BE6B7" , "#b9e5fb" , "#f7a08b" , "#fec34d" , "#dec6a4" , "#c8e67b" , "#43c8f5", "#99cf16", "#e5f3c2" );
  335. // 검수보류 색표시
  336. for (var i=1; i<grd_chklist.rows; i++) {
  337. if (model.getValue("/root/main/masterinfo/grid1["+i+"]/drugchkstat") == "검수보류"){
  338. // grd_chklist.cellStyle("color", i, 6) = "#ff0000";
  339. // grd_chklist.cellStyle("font-weight", i, 6) = "bold";
  340. //2008-10-13 검수보류앞에 적용일자 삽입("color", i, 7) / 2008-10-19 검수보류앞에 수납일시 삽입("color", i, 8)
  341. grd_chklist.cellStyle("color", i, 8) = "#ff0000";
  342. grd_chklist.cellStyle("font-weight", i, 8) = "bold";
  343. }
  344. if(model.getValue("/root/main/masterinfo/grid1["+i+"]/hosinhosoutflagnm") == "원내"){
  345. grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("drugno")) = style[1];
  346. }
  347. if(model.getValue("/root/main/masterinfo/grid1["+i+"]/rtnyn") == "Y") {
  348. grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("pid")) = "#FFEB46";
  349. grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("hngnm")) = "#FFEB46";
  350. grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("prcpstatcd")) = "#FFEB46";
  351. // grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("drugchkstat")) = "#FFEB46";
  352. //2008-10-13 검수보류앞에 적용일자 삽입
  353. grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("orddd")) = "#FFEB46";
  354. //2008-10-19 검수보류앞에 수납일시 삽입
  355. grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("rcptexecdt")) = "#FFEB46";
  356. }
  357. }
  358. // 상세조회표시
  359. if (grd_chklist.rows> 0) {
  360. grd_chklist.row= 1;
  361. fViewDetlList("");
  362. }
  363. }
  364. }
  365. function fViewDetlList(flag) {
  366. var row = grd_chklist.row;
  367. if (row <= 0) return;
  368. // 수동입력일 경우는 타이머 멈춤
  369. if (flag == "manual") {
  370. model.setValue("/root/init/autoflag","");
  371. if (gTimer != null) {
  372. window.clearinterval(gTimer);
  373. gTimer = null;
  374. }
  375. }
  376. // 검색
  377. model.setValue("/root/send/detailsrchinfo/srchpid" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid"));
  378. model.setValue("/root/send/detailsrchinfo/srchorddd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/orddd"));
  379. model.setValue("/root/send/detailsrchinfo/srchprcpdd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/prcpdd"));
  380. model.setValue("/root/send/detailsrchinfo/srchcretno" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/cretno"));
  381. model.setValue("/root/send/detailsrchinfo/srchacptseqno" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/acptseqno"));
  382. model.setValue("/root/send/detailsrchinfo/srchinstcd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/instcd"));
  383. model.setValue("/root/send/detailsrchinfo/srchorddeptcd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/orddeptcd"));
  384. model.setValue("/root/send/detailsrchinfo/srchhosinhosoutflag" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/hosinhosoutflag"));
  385. model.setValue("/root/send/detailsrchinfo/srchdrugdd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugdd"));
  386. model.setValue("/root/send/detailsrchinfo/srchdrugno" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugno"));
  387. model.setValue("/root/send/detailsrchinfo/rcptyn" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/prcpstatcd"));
  388. // 초기화
  389. model.removeNodeset("/root/main/detailinfo/baseinfo");
  390. model.removeNodeset("/root/main/detailinfo/memoinfo");
  391. model.removeNodeset("/root/main/detailinfo/grid2");
  392. var success = submit("TRADT00102");
  393. grd_ordlist.rebuildStyle();
  394. var style = new Array("#fcd2c1" , "#ffe79d" , "#f3e1bf" , "#7BE6B7" , "#b9e5fb" , "#f7a08b" , "#fec34d" , "#dec6a4" , "#c8e67b" , "#43c8f5", "#99cf16", "#e5f3c2" );
  395. // 20100127_laboru
  396. if(model.getValue("/root/main/detailinfo/grid2/execprcphistcdnm") == "DC전"
  397. || model.getValue("/root/main/detailinfo/grid2/execprcphistcdnm") == "DC"
  398. || model.getValue("/root/main/detailinfo/grid2/execprcphistcdnm") == "반납") {
  399. if(model.getValue("/root/main/detailinfo/grid2/rtnprnt") == "Y") {
  400. model.setValue("/root/main/detailinfo/grid2/drugstatnm", "출력" );
  401. } else {
  402. //model.setValue("/root/main/detailinfo/grid2/drugstatnm", "미출력" );
  403. }
  404. }
  405. // 20100209_laboru
  406. var cnt = 1;
  407. while( 1 ) {
  408. if(model.getValue("/root/main/detailinfo/etcinfo["+cnt+"]/prcpno") != "") {
  409. cnt++;
  410. } else {
  411. break;
  412. }
  413. }
  414. // 용량단위,수량단위세팅 및 반환처방 색변경
  415. for (var i=1; i<grd_ordlist.rows; i++) {
  416. var prcpvol = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpvol");
  417. var prcpvol2 = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpvol2");
  418. var prcpvolunitflag = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpvolunitflag");
  419. var prcpqtyl = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpqty");
  420. var prcpqtyl2 = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpqty2");
  421. var prcpqtyunitflag = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpqtyunitflag");
  422. model.setValue("/root/main/detailinfo/grid2["+i+"]/prcpvoldisp", prcpvol+prcpvolunitflag);
  423. model.setValue("/root/main/detailinfo/grid2["+i+"]/prcpqtydisp", prcpqtyl+prcpqtyunitflag);
  424. model.setValue("/root/main/detailinfo/grid2["+i+"]/prcpvol2disp", prcpvol2+prcpvolunitflag);
  425. model.setValue("/root/main/detailinfo/grid2["+i+"]/prcpqty2disp", prcpqtyl2+prcpqtyunitflag);
  426. var execprcphistcdnm = model.getValue("/root/main/detailinfo/grid2["+i+"]/execprcphistcdnm");
  427. if( execprcphistcdnm == "DC전") {
  428. grd_ordlist.cellStyle("background-color", i, grd_ordlist.colRef("prcpcd")) = style[2];
  429. }
  430. if( execprcphistcdnm == "DC") {
  431. grd_ordlist.cellStyle("background-color", i, grd_ordlist.colRef("prcpcd")) = style[6];
  432. }
  433. if( execprcphistcdnm == "반납") {
  434. grd_ordlist.cellStyle("background-color", i, grd_ordlist.colRef("prcpcd")) = style[6];
  435. }
  436. if(model.getValue("/root/main/detailinfo/grid2["+i+"]/execprcphistcd") == "Z") { //반환후 남은 처방
  437. grd_ordlist.cellStyle("background-color", i, grd_ordlist.colRef("prcpcd")) = style[4];
  438. }
  439. if(model.getValue("/root/main/detailinfo/grid2["+i+"]/injyn") == "Y"){
  440. grd_ordlist.cellStyle("background-color", i, grd_ordlist.colRef("prcpcd")) = "#BEBEBE";
  441. }
  442. // 20100209_laboru_집계상태
  443. for(var t = 1 ; t < cnt ; t++) {
  444. if(model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpno") == model.getValue("/root/main/detailinfo/etcinfo["+t+"]/prcpno")) {
  445. model.setValue("/root/main/detailinfo/grid2["+i+"]/sumkindflag", model.getValue("/root/main/detailinfo/etcinfo["+t+"]/sumkindflag"));
  446. } else {
  447. if(model.getValue("/root/main/detailinfo/grid2["+i+"]/sumkindflag") == "") {
  448. model.setValue("/root/main/detailinfo/grid2["+i+"]/sumkindflag", "");
  449. }
  450. }
  451. }
  452. }
  453. /*
  454. grd_ordlist.rebuildStyle();
  455. setRowStyle("grd_ordlist" , "6" , "DC전" , "execprcphistcdnm", "equal" );
  456. setRowStyle("grd_ordlist" , "2" , "DC" , "execprcphistcdnm", "equal" );
  457. setRowStyle("grd_ordlist" , "2" , "반납" , "execprcphistcdnm", "equal" );
  458. */
  459. //setRowStyle("grd_ordlist" , "6" , "true" , "ordrtnflag", "equal" );
  460. //model.refresh();
  461. // 메모내용이 없으면 사번,이름,작성일시 기본세팅
  462. var pid = model.getValue("/root/main/detailinfo/memoinfo/pid");
  463. var seqno = model.getValue("/root/main/detailinfo/memoinfo/seqno");
  464. var hosinhosoutflag = model.getValue("/root/main/detailinfo/memoinfo/hosinhosoutflag");
  465. var instcd = model.getValue("/root/main/detailinfo/memoinfo/instcd");
  466. if (pid == null) pid = "";
  467. if (seqno == null) seqno = "";
  468. if (hosinhosoutflag == null) hosinhosoutflag = "";
  469. if (instcd == null) instcd = "";
  470. if (pid == "" && seqno == "" && hosinhosoutflag == "" && instcd == "") {
  471. fResetMemo();
  472. }
  473. }
  474. function fResetMemo() {
  475. model.setValue("/root/main/detailinfo/memoinfo/pid" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid"));
  476. model.setValue("/root/main/detailinfo/memoinfo/seqno" , "");
  477. model.setValue("/root/main/detailinfo/memoinfo/hosinhosoutflag" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/hosinhosoutflag"));
  478. model.setValue("/root/main/detailinfo/memoinfo/instcd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/instcd"));
  479. model.setValue("/root/main/detailinfo/memoinfo/orddeptcd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/orddeptcd"));
  480. model.setValue("/root/main/detailinfo/memoinfo/orddeptnm" , "");
  481. model.setValue("/root/main/detailinfo/memoinfo/drugdd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugdd"));
  482. model.setValue("/root/main/detailinfo/memoinfo/drugno" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugno"));
  483. model.setValue("/root/main/detailinfo/memoinfo/useyn" , "Y");
  484. model.setValue("/root/main/detailinfo/memoinfo/memo" , "");
  485. model.setValue("/root/main/detailinfo/memoinfo/writid" , getUserId());
  486. model.setValue("/root/main/detailinfo/memoinfo/writid2" , "");
  487. model.setValue("/root/main/detailinfo/memoinfo/writnm" , getUserName());
  488. model.setValue("/root/main/detailinfo/memoinfo/writdt" , getCurrentDate() + getCurrentTime());
  489. model.refresh();
  490. }
  491. function trim(data) {
  492. return data.replace(/(^\s*)|(\s*$)/g, "");
  493. }
  494. function fSubmitMemo() {
  495. var varSaveMode = ""; // i-입력, m-수정(제외)
  496. var varSaveFlag = false;
  497. var varDrugNo = 0;
  498. var varWritId = "";
  499. // 환자선택 필수
  500. if (model.getValue("/root/main/detailinfo/baseinfo/pid") == "" ) {
  501. messageBox("환자를 선택하시고", "C001");
  502. return;
  503. }
  504. // 작성자
  505. varWritId = model.getValue("/root/main/detailinfo/memoinfo/writid2");
  506. if (varWritId == "" ) {
  507. messageBox("메모작성자 이름은", "I003");
  508. // setInputNodeCurText();
  509. // model.setFocus("ipt_writeid");
  510. return;
  511. }
  512. // 메모내용필수_20100203_laboru 없앰.
  513. // if (model.getValue("/root/main/detailinfo/memoinfo/memo") == "" ) {
  514. // messageBox("메모내용은", "I003");
  515. // return;
  516. // }
  517. /* 본인이 작성하지 않은 메모수정불가
  518. if (model.getValue("/root/main/detailinfo/memoinfo/writid") != getUserId()) {
  519. messageBox("자료를 수정할", "E002");
  520. return;
  521. }
  522. */
  523. model.setValue("/root/main/detailinfo/memoinfo/pid" , model.getValue("/root/main/detailinfo/baseinfo/pid"));
  524. // model.setValue("/root/main/detailinfo/memoinfo/indd" , model.getValue("/root/main/detailinfo/baseinfo/indd"));
  525. model.setValue("/root/main/detailinfo/memoinfo/useyn" , "Y");
  526. model.setValue("/root/main/detailinfo/memoinfo/seqno" , "");
  527. // model.setValue("/root/main/detailinfo/memoinfo/memo" , "");
  528. model.setValue("/root/main/detailinfo/memoinfo/orddeptcd" , model.getValue("/root/main/detailinfo/baseinfo/orddeptcd"));
  529. // model.setValue("/root/main/detailinfo/memoinfo/writid" , getUserId());
  530. // model.setValue("/root/main/detailinfo/memoinfo/writid2" , "");
  531. // model.setValue("/root/main/detailinfo/memoinfo/writnm" , getUserName());
  532. model.setValue("/root/main/detailinfo/memoinfo/writdt" , model.getValue("/root/init/dateinfo/currentdt"));
  533. // 입원/외래 구분 로직 필요
  534. model.setValue("/root/main/detailinfo/memoinfo/ioflag" , "O");
  535. model.setValue("/root/main/detailinfo/memoinfo/writid", varWritId);
  536. // 20100204_laboru_특조실로 떨어지는 처방의 경우 약사메모 저장하면 hosinhosoutflag [G] 로 저장되는 것을 외래 원내, 원외 처방 flag 로 저장.
  537. var chrow = grd_chklist.row;
  538. var flag = "";
  539. if(model.getValue("/root/main/masterinfo/grid1[" + chrow + "]/hosinhosoutflagnm") == "원내") {
  540. flag = "I";
  541. } else if(model.getValue("/root/main/masterinfo/grid1[" + chrow + "]/hosinhosoutflagnm") == "원외") {
  542. flag = "O";
  543. }
  544. if(flag != "") model.setValue("/root/main/detailinfo/memoinfo/hosinhosoutflag", flag);
  545. // 자료수집
  546. varDrugNo = model.getValue("/root/main/detailinfo/memoinfo/drugno");
  547. if (varDrugNo == null || varDrugNo == "") {
  548. model.setValue("/root/main/detailinfo/memoinfo/drugno", 0);
  549. }
  550. model.copyNode("/root/send/req/data2", "/root/main/detailinfo/memoinfo");
  551. // 저장은 무조건 추가로 처리, 수정기능은 제외
  552. varSaveMode = "i";
  553. /*
  554. if (model.getValue("/root/main/detailinfo/memoinfo/seqno") == "") {
  555. varSaveMode = "i";
  556. } else {
  557. varSaveMode = "u";
  558. }
  559. */
  560. model.setValue("/root/send/req/data2/m", varSaveMode);
  561. // submit("TXADT10102","false");
  562. submit("TXADT00102");
  563. varSaveFlag = true;
  564. /* 저장여부확인
  565. if (varSaveMode == "i" && Number(model.getValue("/root/hidden/memoitem/seqno")) > 0) {
  566. varSaveFlag = true;
  567. model.setValue("/root/main/detailinfo/memoinfo/seqno", model.getValue("/root/hidden/memoitem/seqno"));
  568. }
  569. /* 저장은 무조건 추가로 처리, 수정기능은 제외
  570. if (varSaveMode == "u" && Number(model.getValue("/root/hidden/memoitem/count")) > 0) {
  571. varSaveFlag = true;
  572. }
  573. */
  574. // 화면정리 및 메세지처리
  575. if (varSaveFlag == true) {
  576. model.refresh();
  577. messageBox("메모저장이", "I002");
  578. }
  579. }
  580. function fOpenPopupDeptRecform(formcd){
  581. // ========================================================================================================================
  582. // JCI - 외래 환자의 키, 체중은 부서별 기록관리의 기초임상정보 서식을 로드하여 보여준다.(2010/06/28 - 안혜림 약사 요청)
  583. // formcd - 0900006609 : 기초임상정보 산부인과
  584. // formcd - 0900006607 : 기초임상정보 성인
  585. // formcd - 0900006608 : 기초임상정보 소아
  586. // ========================================================================================================================
  587. var vformrecseq = "";
  588. var selrow = grd_chklist.row;
  589. var vpid = "";
  590. var vorddd = "";
  591. var vcretno = 0;
  592. var vvaliyn = "";
  593. var vformcd = "";
  594. var patParamStr = "";
  595. var vpatnm = "";
  596. var vsexage = "";
  597. var vorddeptnm = "";
  598. var vroomcd = "";
  599. // 환자선택 필수
  600. if (model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid") == "" ) {
  601. messageBox("환자를", "C002");
  602. return;
  603. }
  604. // 1.formrecseq 를 조회한다.
  605. vpid = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid");
  606. vorddd = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/orddd");
  607. vcretno = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/cretno");
  608. vvaliyn = "Y";
  609. vformcd = formcd;
  610. vpatnm = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/hngnm");
  611. model.setValue("/root/send/req/data3/pid", vpid);
  612. model.setValue("/root/send/req/data3/orddd", vorddd);
  613. model.setValue("/root/send/req/data3/cretno", vcretno);
  614. model.setValue("/root/send/req/data3/valiyn", vvaliyn);
  615. model.setValue("/root/send/req/data3/formcd", vformcd);
  616. submit("TRADE00100");
  617. //alert(model.getValue("/root/hidden/forminfo/formcd"));
  618. //alert(model.getValue("/root/hidden/forminfo/formrecseq"));
  619. // 조회된 formrecseq 가 있을 경우만 기초임상정보를 호출한다.
  620. if (model.getValue("/root/hidden/forminfo/formrecseq") == "") {
  621. // formrecseq 가 조회되지 않았으면 메세지 알림으로 처리한다.
  622. messageBox("입력된 기초임상정보가 ", "E014");
  623. } else {
  624. // 2.조회된 formrecseq 로 기초임상정보 서식을 호출한다.
  625. patParamStr = vpid + "▦" + vpatnm + "▦" + vsexage + "▦" + vorddeptnm + "▦" + vroomcd;
  626. setParameter("disppatinfo", patParamStr);
  627. setParameter("openmode", "recform");
  628. setParameter("formrecseq", model.getValue("/root/hidden/forminfo/formrecseq")); //서식기록테이블의 formrecseq(기록순번)
  629. setParameter("btndisableyn", "Y");
  630. modal("SSMMR01100", 1, 0, 0 ,"", "", "");
  631. }
  632. }
  633. ]]>
  634. </script>
  635. <script type="javascript" ev:event="xforms-ready">
  636. <![CDATA[
  637. // 버튼권한
  638. btn_sea.disabled = !checkAuth("R") ;
  639. btn_confsave.disabled = !checkAuth("X") ;
  640. btn_rsvsave.disabled = !checkAuth("X") ;
  641. // 로긴사번,이름,현재일자셋팅
  642. submit("TRADT00103");
  643. // 진료과세팅
  644. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/init/orddept"); //부서코드 콤보조회
  645. if ( model.instances(0).selectSingleNode("/root/init/orddept/dept") != null) {
  646. astfAddCombo("/root/init/orddept","dept","deptcd,depthngnm",",전체");
  647. }
  648. model.setValue("/root/main/detailinfo/memoinfo/writid" , getUserId() );
  649. model.setValue("/root/main/detailinfo/memoinfo/writnm", getUserName() );
  650. model.setValue("/root/main/detailinfo/memoinfo/writdt" , model.getValue("/root/init/dateinfo/currentdt"));
  651. model.setValue("/root/send/srchinfo/srchdd" , getCurrentDate());
  652. model.setValue("/root/send/srchinfo/srchtodd" , getCurrentDate());
  653. //조제시참조사항
  654. zbcfGetCodeList( new Array("P0096"), new Array("/root/init/baseinfo/prcpitem") );
  655. model.refresh();
  656. //1일기준인지 1회기준인지 체크하여 컬럼을 hidden
  657. var colHidnValue = grdBaseColHidn("D");
  658. //1회 기준
  659. if( colHidnValue == "C") {
  660. grd_ordlist.colHidden(grd_ordlist.colRef("prcpvoldisp")) = true;
  661. grd_ordlist.colHidden(grd_ordlist.colRef("prcpqtydisp")) = true;
  662. } else {
  663. grd_ordlist.colHidden(grd_ordlist.colRef("prcpvol2disp")) = true;
  664. grd_ordlist.colHidden(grd_ordlist.colRef("prcpqty2disp")) = true;
  665. }
  666. ]]>
  667. </script>
  668. <submission id="TRADT00103" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/dateinfo"/>
  669. <submission id="TRZBC00101"/>
  670. <submission id="TRADT00104" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/deptinfo"/>
  671. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  672. <submission id="TRADT00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/usersrchinfo" replace="instance" resultref="/root/hidden/userinfo"/>
  673. </model>
  674. </xhtml:head>
  675. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1192;1,358;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  676. <script type="javascript" ev:event="onmenu">
  677. <![CDATA[
  678. var popupParam = event.description;
  679. fOpenPopupDeptRecform(popupParam);
  680. ]]>
  681. </script>
  682. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  683. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">외래처방전감사</caption>
  684. </group>
  685. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  686. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:709px; width:283px; height:30px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
  687. <output id="opt_diagnm" ref="/root/main/detailinfo/baseinfo/diagnm" class="output_fix" appearance="output" style="left:815px; top:67px; width:379px; height:19px; "/>
  688. <caption id="caption51" style="left:125px; top:717px; width:35px; height:14px; vertical-align:middle; ">원내</caption>
  689. <group id="group2" style="left:0px; top:10px; width:355px; height:160px; ">
  690. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:4px; width:355px; height:155px; background-color:#fffbf2; border-color:#ffd799; "/>
  691. <button id="button2" class="icon_search" style="left:176px; top:76px; width:16px; height:16px; ">
  692. <caption/>
  693. <script type="javascript" ev:event="DOMActivate">
  694. <![CDATA[
  695. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/init/patinfo", "/root/send");
  696. model.setValue("/root/send/srchinfo/srchpid" ,model.getValue("/root/init/patinfo/pid"));
  697. model.setValue("/root/send/srchinfo/srchhngnm",model.getValue("/root/init/patinfo/hngnm"));
  698. ]]>
  699. </script>
  700. </button>
  701. <caption id="caption21" class="search_name" style="left:6px; top:52px; width:86px; height:17px; ">원 내 외 :</caption>
  702. <caption id="caption1" class="search_name" style="left:6px; top:30px; width:86px; height:17px; ">진 료 과 :</caption>
  703. <caption id="caption4" class="search_name" style="left:6px; top:74px; width:86px; height:17px; ">등록번호 :</caption>
  704. <button id="btn_sea" class="btn1_letter2" style="left:287px; top:75px; width:56px; height:22px; ">
  705. <caption>조회</caption>
  706. <script id="script1" type="javascript">
  707. <![CDATA[
  708. var gTimer;
  709. ]]>
  710. </script>
  711. <script type="javascript" ev:event="DOMActivate">
  712. <![CDATA[
  713. // 검색조건 copy
  714. model.copyNode("/root/send/srchtempinfo","/root/send/srchinfo");
  715. // 조회
  716. fViewList();
  717. // 등록번호/등록번호만으로조회/이름/투약번호 reset
  718. //model.setValue("/root/send/srchinfo/srchddflag" ,"O");
  719. //model.setValue("/root/send/srchinfo/srchdd" ,getCurrentDate());
  720. //model.setValue("/root/send/srchinfo/srchorddeptcd" ,"");
  721. //model.setValue("/root/send/srchinfo/srchhosinhosoutflag" ,"");
  722. //model.setValue("/root/send/srchinfo/srchpid" ,"");
  723. //model.setValue("/root/send/srchinfo/srchhngnm" ,"");
  724. //model.setValue("/root/send/srchinfo/srchdrugno" ,"");
  725. //model.setValue("/root/send/srchinfo/srchpidonly" ,"");
  726. //model.setValue("/root/send/srchinfo/srchdrugchkstat" ,"");
  727. model.refresh();
  728. ]]>
  729. </script>
  730. </button>
  731. <select1 id="cmb_srchorddeptcd" ref="/root/send/srchinfo/srchorddeptcd" class="combo_search" appearance="minimal" style="left:95px; top:30px; width:172px; height:19px; ">
  732. <choices>
  733. <itemset nodeset="/root/init/orddept/dept">
  734. <label ref="depthngnm"/>
  735. <value ref="deptcd"/>
  736. </itemset>
  737. </choices>
  738. <script type="javascript" ev:event="onkeyup">
  739. <![CDATA[
  740. // 키엔터시 조회버튼 클릭
  741. if(event.keyCode == "13") {
  742. setInputNodeCurText();
  743. btn_sea.dispatch("DOMActivate");
  744. }
  745. ]]>
  746. </script>
  747. </select1>
  748. <input id="ipt_srchpid" ref="/root/send/srchinfo/srchpid" class="input_search" style="left:96px; top:74px; width:78px; height:19px; ">
  749. <script type="javascript" ev:event="onkeyup">
  750. <![CDATA[
  751. // 키엔터시 조회버튼 클릭
  752. if(event.keyCode == "13") {
  753. setInputNodeCurText();
  754. btn_sea.dispatch("DOMActivate");
  755. }
  756. ]]>
  757. </script>
  758. </input>
  759. <input id="ipt_srchhngnm" ref="/root/send/srchinfo/srchhngnm" class="input_search" style="left:193px; top:74px; width:75px; height:19px; ">
  760. <script type="javascript" ev:event="onkeyup">
  761. <![CDATA[
  762. // 키엔터시 조회버튼 클릭
  763. if(event.keyCode == "13") {
  764. setInputNodeCurText();
  765. btn_sea.dispatch("DOMActivate");
  766. }
  767. ]]>
  768. </script>
  769. </input>
  770. <select1 id="rdo_srchioflag" ref="/root/send/srchinfo/srchhosinhosoutflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:95px; top:51px; width:135px; height:20px; border-style:none; ">
  771. <choices>
  772. <item>
  773. <label>원내</label>
  774. <value>I</value>
  775. </item>
  776. <item>
  777. <label>원외</label>
  778. <value>O</value>
  779. </item>
  780. <item>
  781. <label>전체</label>
  782. <value/>
  783. </item>
  784. </choices>
  785. </select1>
  786. <caption id="caption27" class="search_name" style="left:6px; top:115px; width:86px; height:17px; ">투약번호 :</caption>
  787. <input id="input2" ref="/root/send/srchinfo/srchdrugno" class="input_search" maxlength="5" format="#####" style="left:95px; top:115px; width:115px; height:19px; ">
  788. <script type="javascript" ev:event="onkeyup">
  789. <![CDATA[
  790. // 키엔터시 조회버튼 클릭
  791. if(event.keyCode == "13") {
  792. setInputNodeCurText();
  793. btn_sea.dispatch("DOMActivate");
  794. }
  795. ]]>
  796. </script>
  797. </input>
  798. <select id="chk_autoflag" ref="/root/init/autoflag" overflow="visible" appearance="full" style="left:287px; top:55px; width:56px; height:15px; text-align:center; border-style:none; ">
  799. <choices>
  800. <item>
  801. <label>자동</label>
  802. <value>1</value>
  803. </item>
  804. </choices>
  805. <script type="javascript" ev:event="xforms-value-changed">
  806. <![CDATA[
  807. var autoflag = model.getValue("/root/init/autoflag");
  808. if (autoflag == "1" ) {
  809. if (gTimer == null) gTimer = window.setInterval("fViewList()",10000);
  810. } else {
  811. if (gTimer != null) {
  812. window.clearinterval(gTimer);
  813. gTimer = null;
  814. }
  815. }
  816. ]]>
  817. </script>
  818. </select>
  819. <line id="line13" class="line_4" style="x1:277px; y1:10px; x2:277px; y2:130px; border-color:#ffe4bb; border-left-style:solid; "/>
  820. <select id="chk_srchpid" ref="/root/send/srchinfo/srchpidonly" overflow="visible" appearance="full" style="left:93px; top:96px; width:160px; height:15px; border-style:none; ">
  821. <choices>
  822. <item>
  823. <label>등록번호만으로 조회</label>
  824. <value>Y</value>
  825. </item>
  826. </choices>
  827. </select>
  828. <input id="ipt_srchprcpdd" ref="/root/send/srchinfo/srchdd" class="input_s_essential" inputtype="date" style="left:175px; top:8px; width:92px; height:19px; ">
  829. <script type="javascript" ev:event="onkeyup">
  830. <![CDATA[
  831. // 키엔터시 조회버튼 클릭
  832. if(event.keyCode == "13") {
  833. setInputNodeCurText("-");
  834. btn_sea.dispatch("DOMActivate");
  835. }
  836. ]]>
  837. </script>
  838. </input>
  839. <caption id="caption22" class="search_name" style="left:6px; top:136px; width:86px; height:17px; ">검수상태 :</caption>
  840. <select1 id="radio1" ref="/root/send/srchinfo/srchdrugchkstat" class="radio_search" appearance="full" cols="4" rows="1" overflow="visible" style="left:95px; top:136px; width:250px; height:20px; border-style:none; ">
  841. <choices>
  842. <item>
  843. <label>검수대상</label>
  844. <value>O</value>
  845. </item>
  846. <item>
  847. <label>검수완료</label>
  848. <value>C</value>
  849. </item>
  850. <item>
  851. <label>검수보류</label>
  852. <value>NC</value>
  853. </item>
  854. <item>
  855. <label>전체</label>
  856. <value/>
  857. </item>
  858. </choices>
  859. </select1>
  860. <select1 id="combo1" ref="/root/send/srchinfo/srchddflag" appearance="minimal" style="left:96px; top:8px; width:78px; height:19px; ">
  861. <choices>
  862. <item>
  863. <label>적용일자</label>
  864. <value>O</value>
  865. </item>
  866. <item>
  867. <label>수납일자</label>
  868. <value>P</value>
  869. </item>
  870. </choices>
  871. </select1>
  872. <caption id="caption5" class="search_name" style="left:6px; top:10px; width:86px; height:17px; ">검색일자 :</caption>
  873. </group>
  874. <caption id="caption10" class="cell_1" style="left:732px; top:42px; width:80px; height:23px; vertical-align:middle; ">면허번호</caption>
  875. <caption id="caption11" class="cell_1" style="left:546px; top:92px; width:80px; height:23px; ">보험유형</caption>
  876. <caption id="caption23" class="cell_1" style="left:360px; top:67px; width:80px; height:23px; ">성별/나이</caption>
  877. <caption id="caption12" class="cell_1" style="left:917px; top:42px; width:80px; height:23px; ">원내사유</caption>
  878. <line id="line15" class="line_3" style="x1:360px; y1:114px; x2:1194px; y2:114px; "/>
  879. <caption id="caption24" class="cell_1" style="left:360px; top:17px; width:80px; height:23px; ">등록번호</caption>
  880. <caption id="caption13" class="cell_1" style="left:732px; top:17px; width:80px; height:23px; ">담당의</caption>
  881. <caption id="caption25" class="cell_1" style="left:360px; top:42px; width:80px; height:23px; ">환자명</caption>
  882. <caption id="caption14" class="cell_1" style="left:547px; top:17px; width:80px; height:23px; ">진료과</caption>
  883. <caption id="caption47" class="cell_2" style="left:17px; top:714px; width:70px; height:20px; ">범 례</caption>
  884. <line id="line1" class="line_2" style="x1:360px; y1:65px; x2:1194px; y2:65px; "/>
  885. <caption id="caption26" class="tit_2" style="left:360px; top:123px; width:82px; height:13px; ">약사메모</caption>
  886. <line id="line2" class="line_1" style="x1:360px; y1:10px; x2:1194px; y2:10px; "/>
  887. <caption id="caption15" class="cell_1" style="left:546px; top:67px; width:80px; height:23px; ">예약일</caption>
  888. <caption id="caption16" class="cell_1" style="left:798px; top:115px; width:35px; height:23px; ">이름</caption>
  889. <caption id="caption7" class="cell_1" style="left:680px; top:115px; width:35px; height:23px; ">사번</caption>
  890. <button id="button10" class="btn2_letter2" style="left:447px; top:117px; width:42px; height:19px; ">
  891. <caption>이력</caption>
  892. <script type="javascript" ev:event="DOMActivate">
  893. <![CDATA[
  894. if (model.getValue("/root/main/detailinfo/baseinfo/pid") == "" ) {
  895. messageBox("환자를", "C002");
  896. return;
  897. }
  898. // 약사메모이력
  899. model.setValue("/root/send/memosrchinfo/srchpid" , model.getValue("/root/main/detailinfo/baseinfo/pid"));
  900. model.setValue("/root/send/memosrchinfo/srchinstcd" , model.getValue("/root/main/detailinfo/baseinfo/instcd"));
  901. model.setValue("/root/send/memosrchinfo/srchhosinhosoutflag" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/hosinhosoutflag"));
  902. model.setValue("/root/send/memosrchinfo/srchioflag" , "O");
  903. model.setValue("/root/send/memosrchinfo/srchorddeptcd" , model.getValue("/root/main/detailinfo/baseinfo/orddeptcd"));
  904. modal("SPADB60600",0,100,150,"SPADB60600","/root/send/memosrchinfo","/root/send/srchinfo");
  905. ]]>
  906. </script>
  907. </button>
  908. <caption id="caption49" class="color_2" style="left:107px; top:716px; width:15px; height:15px; "/>
  909. <caption id="caption17" class="cell_1" style="left:917px; top:17px; width:80px; height:23px; ">연락처</caption>
  910. <caption id="caption8" class="cell_1" style="left:732px; top:67px; width:80px; height:23px; ">상병</caption>
  911. <line id="line4" class="line_2" style="x1:360px; y1:40px; x2:1194px; y2:40px; "/>
  912. <caption id="caption18" class="cell_1" style="left:360px; top:138px; width:80px; height:30px; ">메모사항</caption>
  913. <caption id="caption9" class="cell_1" style="left:546px; top:42px; width:80px; height:23px; ">진료일자</caption>
  914. <button id="btn_save" class="btn5_letter2" style="left:491px; top:117px; width:42px; height:19px; ">
  915. <caption>저장</caption>
  916. <script type="javascript" ev:event="DOMActivate">
  917. <![CDATA[
  918. fSubmitMemo();
  919. /*
  920. var varSaveMode = ""; // i-입력,m-수정
  921. var varSaveFlag = false;
  922. var varDrugNo = 0;
  923. var varWritId = "";
  924. // 환자선택 필수
  925. if (model.getValue("/root/main/detailinfo/baseinfo/pid") == "" ) {
  926. messageBox("환자를 선택하시고", "C001");
  927. return;
  928. }
  929. // 작성자
  930. varWritId = model.getValue("/root/main/detailinfo/memoinfo/writid2");
  931. if (varWritId == "" ) {
  932. messageBox("메모작성자를", "I003");
  933. return;
  934. }
  935. // 메모내용필수
  936. if (model.getValue("/root/main/detailinfo/memoinfo/memo") == "" ) {
  937. messageBox("메모내용은", "I003");
  938. return;
  939. }
  940. // 자료수집
  941. varDrugNo = model.getValue("/root/main/detailinfo/memoinfo/drugno");
  942. if ( varDrugNo == null || varDrugNo == "") {
  943. model.setValue("/root/main/detailinfo/memoinfo/drugno",0);
  944. }
  945. // 수정모드
  946. if (model.getValue("/root/main/detailinfo/memoinfo/seqno") == "") {
  947. varSaveMode = "i";
  948. } else {
  949. varSaveMode = "u";
  950. }
  951. // 본인이 작성하지 않은 메모수정불가
  952. if (varSaveMode == "u" && model.getValue("/root/main/detailinfo/memoinfo/writid") != getUserId()) {
  953. messageBox("자료를 수정할", "E002");
  954. return;
  955. }
  956. model.setValue("/root/main/detailinfo/memoinfo/writid",varWritId);
  957. model.setValue("/root/main/detailinfo/memoinfo/ioflag","O");
  958. model.copyNode("/root/send/req/data2", "/root/main/detailinfo/memoinfo");
  959. model.setValue("/root/send/req/data2/m", varSaveMode);
  960. submit("TXADT00102");
  961. // 저장여부확인
  962. if (varSaveMode == "i" && Number(model.getValue("/root/hidden/memoitem/seqno")) > 0) {
  963. varSaveFlag = true;
  964. model.setValue("/root/main/detailinfo/memoinfo/seqno", model.getValue("/root/hidden/memoitem/seqno"));
  965. }
  966. if (varSaveMode == "u" && Number(model.getValue("/root/hidden/memoitem/count")) > 0) {
  967. varSaveFlag = true;
  968. }
  969. // 화면정리 및 메세지처리
  970. if (varSaveFlag == true) {
  971. messageBox("메모저장이", "I002");
  972. }
  973. */
  974. ]]>
  975. </script>
  976. </button>
  977. <output id="opt_pid" ref="/root/main/detailinfo/baseinfo/pid" class="output_fix" appearance="output" style="left:443px; top:18px; width:97px; height:19px; "/>
  978. <output id="output1" ref="/root/main/detailinfo/baseinfo/orddd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:630px; top:42px; width:97px; height:19px; "/>
  979. <output id="opt_orddrid" ref="/root/main/detailinfo/baseinfo/orddrnm" class="output_fix" appearance="output" style="left:815px; top:18px; width:97px; height:19px; "/>
  980. <output id="opt_tel" ref="/root/main/detailinfo/baseinfo/tel" class="output_fix" appearance="output" style="left:999px; top:18px; width:195px; height:19px; "/>
  981. <output id="opt_hngnm" ref="/root/main/detailinfo/baseinfo/hngnm" class="output_fix" appearance="output" style="left:443px; top:42px; width:97px; height:19px; "/>
  982. <output id="opt_rsvdd" ref="/root/main/detailinfo/baseinfo/rsvdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:630px; top:67px; width:97px; height:19px; "/>
  983. <output id="opt_licenseno" ref="/root/main/detailinfo/baseinfo/licenseno" class="output_fix" appearance="output" style="left:815px; top:42px; width:97px; height:19px; "/>
  984. <output id="opt_age" ref="/root/main/detailinfo/baseinfo/age" class="output_fix" appearance="output" style="left:443px; top:67px; width:97px; height:19px; "/>
  985. <output id="opt_orddeptcd" ref="/root/main/detailinfo/baseinfo/orddeptnm" class="output_fix" appearance="output" style="left:630px; top:18px; width:97px; height:19px; "/>
  986. <output id="opt_hostinprcpresncd" ref="/root/main/detailinfo/baseinfo/hostinprcpresnm" class="output_fix" appearance="output" style="left:999px; top:42px; width:195px; height:19px; "/>
  987. <input id="ipt_writenm" ref="/root/main/detailinfo/memoinfo/writnm" class="output_fix" style="left:835px; top:116px; width:77px; height:19px; "/>
  988. <textarea id="tar_innrmemo" ref="/root/main/detailinfo/memoinfo/memo" style="left:443px; top:138px; width:750px; height:30px; "/>
  989. <datagrid id="grd_ordlist" nodeset="/root/main/detailinfo/grid2" caption="원내외^처방코드^처방명^1일용량^1일수량^1회용량^1회수량^횟수^일수^반환^Mix^Powder^용법^급여^처방수행부서^처방일시^최종수정일시^수납일시^원내사유^처방전달사항^처방상태^조제상태^집계^caption1^DUR모듈명^DUR 처방사유" colsep="^" colwidth="48, 95, 269, 64, 65, 65, 65, 34, 34, 36, 36, 48, 280, 32, 100, 125, 122, 100, 315, 229, 79, 79, 60, 100, 100, 300" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:360px; top:175px; width:834px; height:450px; ">
  990. <col ref="hosinhosoutflagnm" style="text-align:center; "/>
  991. <col ref="prcpcd"/>
  992. <col ref="prcpnm"/>
  993. <col ref="prcpvoldisp" style="text-align:right; "/>
  994. <col ref="prcpqtydisp" style="text-align:right; "/>
  995. <col ref="prcpvol2disp" style="text-align:right; "/>
  996. <col ref="prcpqty2disp" style="text-align:right; "/>
  997. <col ref="prcptimes" style="text-align:right; "/>
  998. <col ref="prcpdayno" style="text-align:right; "/>
  999. <col ref="ordrtnflag" type="checkbox"/>
  1000. <col ref="prcpmixno"/>
  1001. <col ref="powdflag" type="checkbox"/>
  1002. <col ref="mthdcd"/>
  1003. <col ref="payflagcd"/>
  1004. <col ref="prcpexecdeptnm"/>
  1005. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  1006. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  1007. <col ref="rcptexecdt" format="yyyy-mm-dd hh:nn:ss"/>
  1008. <col ref="hosinprcpresncd"/>
  1009. <col ref="prcpdelivefact" type="inputbutton"/>
  1010. <col ref="execprcphistcdnm"/>
  1011. <col ref="drugstatnm"/>
  1012. <col ref="sumkindflag"/>
  1013. <col ref="injyn" visibility="hidden"/>
  1014. <col ref="resnnm"/>
  1015. <col ref="resncnts"/>
  1016. <script type="javascript" ev:event="onbuttonclick">
  1017. <![CDATA[
  1018. if ( grd_ordlist.col== grd_ordlist.colRef("prcpdelivefact") ){
  1019. model.setValue("/root/temp/prcpdelivefact", model.getValue("/root/main/detailinfo/grid2["+grd_ordlist.row+"]/prcpdelivefact"));
  1020. model.refresh();
  1021. grp_prcpdelivefact.visible=true;
  1022. }
  1023. ]]>
  1024. </script>
  1025. </datagrid>
  1026. <caption id="caption3" class="cell_1" style="left:917px; top:115px; width:80px; height:23px; vertical-align:middle; ">작성일시</caption>
  1027. <input id="input1" ref="/root/main/detailinfo/memoinfo/writdt" class="output_fix" format="yyyy-mm-dd hh:ss:dd" style="left:999px; top:116px; width:195px; height:19px; "/>
  1028. <output id="output2" ref="/root/main/detailinfo/baseinfo/insukind" class="output_fix" appearance="output" style="left:630px; top:92px; width:97px; height:19px; "/>
  1029. <button id="button1" class="btn2_letter8" style="left:535px; top:117px; width:107px; height:19px; ">
  1030. <caption>약사메모 상용구</caption>
  1031. <script type="javascript" ev:event="DOMActivate">
  1032. <![CDATA[
  1033. model.setValue("/root/send/memosrchinfo/srchioflag","O");
  1034. modal("SPADB60602",0,100,160,"SPADB60602","/root/send/memosrchinfo","/root/send/srchinfo");
  1035. ]]>
  1036. </script>
  1037. </button>
  1038. <caption id="caption19" class="cell_1" style="left:360px; top:92px; width:80px; height:23px; ">주민등록번호</caption>
  1039. <output id="output3" ref="/root/main/detailinfo/baseinfo/detladdr" class="output_fix" appearance="output" style="left:815px; top:92px; width:379px; height:19px; "/>
  1040. <input id="ipt_writid" ref="/root/main/detailinfo/memoinfo/writid2" class="input_essential" autonext="false" maxlength="8" style="left:717px; top:116px; width:77px; height:19px; ">
  1041. <script type="javascript" ev:event="onkeyup">
  1042. <![CDATA[
  1043. if(event.keyCode == "13") {
  1044. setInputNodeCurText();
  1045. if(trim(model.getValue("/root/main/detailinfo/memoinfo/writid2")) != "") {
  1046. var writid = trim(model.getValue("/root/main/detailinfo/memoinfo/writid2"));
  1047. model.setValue("/root/send/usersrchinfo/srchuserid",writid);
  1048. var success = submit("TRADT00105");
  1049. if (success) {
  1050. model.setValue("/root/main/detailinfo/memoinfo/writid2", trim(model.getValue("/root/main/detailinfo/memoinfo/writid2")));
  1051. model.setValue("/root/main/detailinfo/memoinfo/writnm",model.getValue("/root/hidden/userinfo/item/usernm"));
  1052. model.refresh();
  1053. // 반환된 약사정보(이름) 체크
  1054. if(trim(model.getValue("/root/main/detailinfo/memoinfo/writnm")) != "") {
  1055. // 메모 내용 입력여부 체크
  1056. // 20100205_laboru_공백 저장 가능하게 수정.
  1057. // if (trim(model.getValue("/root/main/detailinfo/memoinfo/memo")) == "" ) {
  1058. // messageBox("메모내용은", "I003");
  1059. // model.setFocus("tar_memo");
  1060. // return;
  1061. // } else {
  1062. fSubmitMemo();
  1063. /* 메모저장여부 확인 부분
  1064. if (messageBox("메모사항을", "Q002", "") == 7) {
  1065. return;
  1066. } else {
  1067. fSubmitMemo();
  1068. return;
  1069. }
  1070. */
  1071. //}
  1072. } else {
  1073. messageBox("입력한 사번으로 이름 확인을", "E009");
  1074. return;
  1075. }
  1076. }
  1077. } else {
  1078. messageBox("약사메모 입력을 위해 사번은", "I003");
  1079. model.setValue("/root/main/detailinfo/memoinfo/writid2", trim(model.getValue("/root/main/detailinfo/memoinfo/writid2")));
  1080. return;
  1081. }
  1082. }
  1083. /* // 20100204_laboru_약사메모 사번 입력시 매 키 입력시 체크를 함으로써 느리게 되는 문제 수정
  1084. if(event.keyCode == "13") {
  1085. setInputNodeCurText();
  1086. var writid = model.getValue("/root/main/detailinfo/memoinfo/writid2");
  1087. model.setValue("/root/send/usersrchinfo/srchuserid",writid);
  1088. var success = submit("TRADT00105");
  1089. if (success) {
  1090. model.setValue("/root/main/detailinfo/memoinfo/writnm",model.getValue("/root/hidden/userinfo/item/usernm"));
  1091. model.refresh();
  1092. }
  1093. }
  1094. */
  1095. ]]>
  1096. </script>
  1097. <script type="javascript" ev:event="onkeydown">
  1098. <![CDATA[
  1099. //setInputNodeCurText();
  1100. //model.setValue("/root/main/detailinfo/memoinfo/writnm", "");
  1101. //model.refresh();
  1102. ]]>
  1103. </script>
  1104. </input>
  1105. <caption id="caption20" class="cell_1" style="left:732px; top:92px; width:80px; height:23px; ">주소</caption>
  1106. <line id="line3" class="line_2" style="x1:360px; y1:90px; x2:1194px; y2:90px; "/>
  1107. <output id="output4" ref="/root/main/detailinfo/baseinfo/rrgstno" class="output_fix" appearance="output" style="left:443px; top:92px; width:97px; height:19px; "/>
  1108. <group id="grp_prcpdelivefact" visibility="hidden" style="left:635px; top:250px; width:315px; height:155px; border-color:#000080; border-width:2; border-style:solid; ">
  1109. <button id="button20" class="btn4_letter2" visibility="visible" style="left:253px; top:128px; width:56px; height:22px; ">
  1110. <caption>닫기</caption>
  1111. <script type="javascript" ev:event="DOMActivate">
  1112. <![CDATA[
  1113. grp_prcpdelivefact.visible=false;
  1114. ]]>
  1115. </script>
  1116. </button>
  1117. <textarea id="tar_prcpdelivefact" ref="/root/temp/prcpdelivefact" class="input_default" style="left:3px; top:3px; width:305px; height:120px; "/>
  1118. </group>
  1119. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:360px; top:709px; width:832px; height:30px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
  1120. <caption id="caption2" style="left:553px; top:717px; width:35px; height:14px; vertical-align:middle; ">반환</caption>
  1121. <caption id="caption28" class="cell_2" style="left:375px; top:714px; width:70px; height:20px; ">범 례</caption>
  1122. <caption id="caption29" class="color_2" style="left:535px; top:716px; width:15px; height:15px; "/>
  1123. <caption id="caption32" style="left:475px; top:717px; width:50px; height:14px; vertical-align:middle; ">반환의뢰</caption>
  1124. <caption id="caption33" class="color_7" style="left:457px; top:716px; width:15px; height:15px; "/>
  1125. <group id="group5" style="left:0px; top:10px; width:355px; height:160px; ">
  1126. <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:4px; width:355px; height:155px; background-color:#fffbf2; border-color:#ffd799; "/>
  1127. <button id="button5" class="icon_search" style="left:176px; top:76px; width:16px; height:16px; ">
  1128. <caption/>
  1129. <script type="javascript" ev:event="DOMActivate">
  1130. <![CDATA[
  1131. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/init/patinfo", "/root/send");
  1132. model.setValue("/root/send/srchinfo/srchpid" ,model.getValue("/root/main/patinfo/patinfolist/pid"));
  1133. model.setValue("/root/send/srchinfo/srchhngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  1134. model.refresh();
  1135. ]]>
  1136. </script>
  1137. </button>
  1138. <caption id="caption30" class="search_name" style="left:6px; top:52px; width:86px; height:17px; ">원 내 외 :</caption>
  1139. <caption id="caption31" class="search_name" style="left:6px; top:30px; width:86px; height:17px; ">진 료 과 :</caption>
  1140. <caption id="caption34" class="search_name" style="left:6px; top:74px; width:86px; height:17px; ">등록번호 :</caption>
  1141. <button id="button6" class="btn1_letter2" style="left:287px; top:75px; width:56px; height:22px; ">
  1142. <caption>조회</caption>
  1143. <script id="script2" type="javascript">
  1144. <![CDATA[
  1145. var gTimer;
  1146. ]]>
  1147. </script>
  1148. <script type="javascript" ev:event="DOMActivate">
  1149. <![CDATA[
  1150. // 검색조건 copy
  1151. model.copyNode("/root/send/srchtempinfo","/root/send/srchinfo");
  1152. // 조회
  1153. fViewList();
  1154. // 등록번호/등록번호만으로조회/이름/투약번호 reset
  1155. //model.setValue("/root/send/srchinfo/srchddflag" ,"O");
  1156. //model.setValue("/root/send/srchinfo/srchdd" ,getCurrentDate());
  1157. //model.setValue("/root/send/srchinfo/srchorddeptcd" ,"");
  1158. //model.setValue("/root/send/srchinfo/srchhosinhosoutflag" ,"");
  1159. //model.setValue("/root/send/srchinfo/srchpid" ,"");
  1160. //model.setValue("/root/send/srchinfo/srchhngnm" ,"");
  1161. //model.setValue("/root/send/srchinfo/srchdrugno" ,"");
  1162. //model.setValue("/root/send/srchinfo/srchpidonly" ,"");
  1163. //model.setValue("/root/send/srchinfo/srchdrugchkstat" ,"");
  1164. model.refresh();
  1165. ]]>
  1166. </script>
  1167. </button>
  1168. <select1 id="combo2" ref="/root/send/srchinfo/srchorddeptcd" class="combo_search" appearance="minimal" style="left:95px; top:30px; width:172px; height:19px; ">
  1169. <choices>
  1170. <itemset nodeset="/root/init/orddept/dept">
  1171. <label ref="depthngnm"/>
  1172. <value ref="deptcd"/>
  1173. </itemset>
  1174. </choices>
  1175. <script type="javascript" ev:event="onkeyup">
  1176. <![CDATA[
  1177. // 키엔터시 조회버튼 클릭
  1178. if(event.keyCode == "13") {
  1179. setInputNodeCurText();
  1180. btn_sea.dispatch("DOMActivate");
  1181. }
  1182. ]]>
  1183. </script>
  1184. <script type="javascript" ev:event="xforms-value-changed">
  1185. <![CDATA[
  1186. // 검색조건 copy
  1187. model.copyNode("/root/send/srchtempinfo","/root/send/srchinfo");
  1188. // 조회
  1189. fViewList();
  1190. ]]>
  1191. </script>
  1192. </select1>
  1193. <input id="input3" ref="/root/send/srchinfo/srchpid" class="input_search" autonext="false" maxlength="10" style="left:95px; top:74px; width:78px; height:19px; ">
  1194. <script type="javascript" ev:event="onkeyup">
  1195. <![CDATA[
  1196. var srchpid = "";
  1197. srchpid = input3.currentText;
  1198. if(srchpid == "") {
  1199. model.setValue("/root/send/srchinfo/srchpid", "");
  1200. model.setValue("/root/send/srchinfo/srchhngnm", "");
  1201. model.refresh();
  1202. }
  1203. // 키엔터시 조회버튼 클릭
  1204. if(event.keyCode == "13") {
  1205. setInputNodeCurText();
  1206. btn_sea.dispatch("DOMActivate");
  1207. }
  1208. ]]>
  1209. </script>
  1210. </input>
  1211. <input id="input4" ref="/root/send/srchinfo/srchhngnm" class="input_search" editable="false" style="left:193px; top:74px; width:75px; height:19px; ">
  1212. <script type="javascript" ev:event="onkeyup">
  1213. <![CDATA[
  1214. // 키엔터시 조회버튼 클릭
  1215. if(event.keyCode == "13") {
  1216. setInputNodeCurText();
  1217. btn_sea.dispatch("DOMActivate");
  1218. }
  1219. ]]>
  1220. </script>
  1221. </input>
  1222. <select1 id="radio2" ref="/root/send/srchinfo/srchhosinhosoutflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:95px; top:51px; width:135px; height:20px; border-style:none; ">
  1223. <choices>
  1224. <item>
  1225. <label>원내</label>
  1226. <value>I</value>
  1227. </item>
  1228. <item>
  1229. <label>원외</label>
  1230. <value>O</value>
  1231. </item>
  1232. <item>
  1233. <label>전체</label>
  1234. <value/>
  1235. </item>
  1236. </choices>
  1237. <script type="javascript" ev:event="xforms-value-changed">
  1238. <![CDATA[
  1239. // 검색조건 copy
  1240. model.copyNode("/root/send/srchtempinfo","/root/send/srchinfo");
  1241. // 조회
  1242. fViewList();
  1243. ]]>
  1244. </script>
  1245. </select1>
  1246. <caption id="caption35" class="search_name" style="left:6px; top:115px; width:86px; height:17px; ">투약번호 :</caption>
  1247. <input id="input5" ref="/root/send/srchinfo/srchdrugno" class="input_search" autonext="false" maxlength="5" format="99999" style="left:95px; top:115px; width:115px; height:19px; ">
  1248. <script type="javascript" ev:event="onkeyup">
  1249. <![CDATA[
  1250. // 키엔터시 조회버튼 클릭
  1251. if(event.keyCode == "13") {
  1252. setInputNodeCurText();
  1253. btn_sea.dispatch("DOMActivate");
  1254. }
  1255. ]]>
  1256. </script>
  1257. </input>
  1258. <select id="checkbox1" ref="/root/init/autoflag" overflow="visible" appearance="full" style="left:287px; top:55px; width:56px; height:15px; text-align:center; border-style:none; ">
  1259. <choices>
  1260. <item>
  1261. <label>자동</label>
  1262. <value>1</value>
  1263. </item>
  1264. </choices>
  1265. <script type="javascript" ev:event="xforms-value-changed">
  1266. <![CDATA[
  1267. var autoflag = model.getValue("/root/init/autoflag");
  1268. if (autoflag == "1" ) {
  1269. if (gTimer == null) gTimer = window.setInterval("fViewList()",10000);
  1270. } else {
  1271. if (gTimer != null) {
  1272. window.clearinterval(gTimer);
  1273. gTimer = null;
  1274. }
  1275. }
  1276. ]]>
  1277. </script>
  1278. </select>
  1279. <line id="line5" class="line_4" style="x1:277px; y1:29px; x2:277px; y2:115px; border-color:#ffe4bb; border-left-style:solid; "/>
  1280. <select id="checkbox2" ref="/root/send/srchinfo/srchpidonly" overflow="visible" appearance="full" style="left:93px; top:96px; width:160px; height:15px; border-style:none; ">
  1281. <choices>
  1282. <item>
  1283. <label>등록번호만으로 조회</label>
  1284. <value>Y</value>
  1285. </item>
  1286. </choices>
  1287. <script type="javascript" ev:event="xforms-value-changed">
  1288. <![CDATA[
  1289. if(model.getValue("/root/send/srchinfo/srchpidonly") == "Y") {
  1290. combo3.disabled = true;
  1291. input6.disabled = true;
  1292. input7.disabled = true;
  1293. } else {
  1294. combo3.disabled = false;
  1295. input6.disabled = false;
  1296. input7.disabled = false;
  1297. }
  1298. ]]>
  1299. </script>
  1300. </select>
  1301. <input id="input6" ref="/root/send/srchinfo/srchdd" class="input_s_essential" inputtype="date" style="left:168px; top:8px; width:92px; height:19px; ">
  1302. <script type="javascript" ev:event="onkeyup">
  1303. <![CDATA[
  1304. // 키엔터시 조회버튼 클릭
  1305. if(event.keyCode == "13") {
  1306. setInputNodeCurText("-");
  1307. btn_sea.dispatch("DOMActivate");
  1308. }
  1309. ]]>
  1310. </script>
  1311. </input>
  1312. <caption id="caption36" class="search_name" style="left:6px; top:136px; width:86px; height:17px; ">검수상태 :</caption>
  1313. <select1 id="radio3" ref="/root/send/srchinfo/srchdrugchkstat" class="radio_search" appearance="full" cols="4" rows="1" overflow="visible" style="left:95px; top:136px; width:250px; height:20px; border-style:none; ">
  1314. <choices>
  1315. <item>
  1316. <label>검수대상</label>
  1317. <value>O</value>
  1318. </item>
  1319. <item>
  1320. <label>검수완료</label>
  1321. <value>C</value>
  1322. </item>
  1323. <item>
  1324. <label>검수보류</label>
  1325. <value>NC</value>
  1326. </item>
  1327. <item>
  1328. <label>전체</label>
  1329. <value/>
  1330. </item>
  1331. </choices>
  1332. <script type="javascript" ev:event="xforms-value-changed">
  1333. <![CDATA[
  1334. // 검색조건 copy
  1335. model.copyNode("/root/send/srchtempinfo","/root/send/srchinfo");
  1336. // 조회
  1337. fViewList();
  1338. ]]>
  1339. </script>
  1340. </select1>
  1341. <select1 id="combo3" ref="/root/send/srchinfo/srchddflag" appearance="minimal" style="left:95px; top:8px; width:73px; height:19px; ">
  1342. <choices>
  1343. <item>
  1344. <label>적용일자</label>
  1345. <value>O</value>
  1346. </item>
  1347. <item>
  1348. <label>수납일자</label>
  1349. <value>P</value>
  1350. </item>
  1351. </choices>
  1352. </select1>
  1353. <caption id="caption37" class="search_name" style="left:6px; top:10px; width:86px; height:17px; ">검색일자 :</caption>
  1354. <input id="input7" ref="/root/send/srchinfo/srchtodd" class="input_s_essential" inputtype="date" style="left:260px; top:8px; width:92px; height:19px; ">
  1355. <script type="javascript" ev:event="onkeyup">
  1356. <![CDATA[
  1357. // 키엔터시 조회버튼 클릭
  1358. if(event.keyCode == "13") {
  1359. setInputNodeCurText("-");
  1360. btn_sea.dispatch("DOMActivate");
  1361. }
  1362. ]]>
  1363. </script>
  1364. </input>
  1365. <select id="checkbox3" ref="/root/send/srchinfo/srchdrugnocheck" overflow="visible" appearance="full" style="left:213px; top:117px; width:107px; height:15px; border-style:none; ">
  1366. <choices>
  1367. <item>
  1368. <label>투약번호 99999</label>
  1369. <value>Y</value>
  1370. </item>
  1371. </choices>
  1372. <script type="javascript" ev:event="xforms-value-changed">
  1373. <![CDATA[
  1374. //event.pTarget.value
  1375. if (model.getValue(checkbox3.attribute("ref")) == "Y") {
  1376. model.setValue(input5.attribute("ref"), "");
  1377. input5.refresh();
  1378. } else {
  1379. }
  1380. ]]>
  1381. </script>
  1382. </select>
  1383. </group>
  1384. <caption id="caption38" style="left:615px; top:716px; width:38px; height:14px; vertical-align:middle; ">주사</caption>
  1385. <caption id="caption39" style="left:595px; top:716px; width:15px; height:15px; background-color:#BEBEBE; "/>
  1386. <button id="btn_large" class="btn2_letter4" style="left:288px; top:715px; width:64px; height:19px; ">
  1387. <caption>확대보기</caption>
  1388. <script type="javascript" ev:event="DOMActivate">
  1389. <![CDATA[
  1390. if ( grd_chklist.attribute("width") == 355){
  1391. grd_chklist.attribute("width") =510;
  1392. btn_large.attribute("text")="축소보기"
  1393. } else {
  1394. grd_chklist.attribute("width")=355;
  1395. btn_large.attribute("text")="확대보기"
  1396. }
  1397. ]]>
  1398. </script>
  1399. </button>
  1400. <textarea id="textarea1" ref="/root/main/detailinfo/baseinfo/sideinfo" class="output_fix" style="left:930px; top:627px; width:262px; height:80px; "/>
  1401. <caption id="caption40" class="cell_1" style="left:359px; top:628px; width:57px; height:80px; ">상 병 및 참조사항</caption>
  1402. <datagrid id="datagrid1" nodeset="/root/main/detailinfo/diaginfo" class="datagrid0" caption="caption1^caption2^caption3" colsep="^" colwidth="63, 229, 175" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:418px; top:628px; width:510px; height:80px; ">
  1403. <col ref="icd10cd"/>
  1404. <col ref="diagengnm"/>
  1405. <col ref="diaghngnm"/>
  1406. </datagrid>
  1407. <datagrid id="grd_chklist" nodeset="/root/main/masterinfo/grid1" caption="투약번호^원내외^등록번호^환자명^수납^적용일자^수납일시^검수상태^보류사유^검수자^검수일시^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption1^caption10^caption11^caption9" colsep="^" colwidth="55, 42, 70, 60, 31, 76, 127, 70, 100, 58, 130, 28, 30, 33, 20, 35, 26, 17, 34, -27, 23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:175px; width:355px; height:530px; text-align:center; ">
  1408. <col ref="drugno"/>
  1409. <col ref="hosinhosoutflagnm"/>
  1410. <col ref="pid"/>
  1411. <col ref="hngnm"/>
  1412. <col ref="prcpstatcd"/>
  1413. <col ref="orddd" format="yyyy-mm-dd"/>
  1414. <col ref="rcptexecdt" format="yyyy-mm-dd hh:mm:ss"/>
  1415. <col ref="drugchkstat"/>
  1416. <col ref="reteresnnm" style="text-align:left; "/>
  1417. <col ref="drugchknm"/>
  1418. <col ref="drugchkdt" format="yyyy-mm-dd hh:mm:ss"/>
  1419. <col ref="cretno" visibility="hidden"/>
  1420. <col ref="acptseqno" visibility="hidden"/>
  1421. <col ref="instcd" visibility="hidden"/>
  1422. <col ref="orddeptcd" visibility="hidden"/>
  1423. <col ref="drugdd" visibility="hidden"/>
  1424. <col ref="grdselrow" visibility="hidden"/>
  1425. <col ref="reteresn" visibility="hidden"/>
  1426. <col ref="hosinhosoutflag" visibility="hidden"/>
  1427. <col ref="rtnyn" visibility="hidden"/>
  1428. <col ref="prcpdd" visibility="hidden"/>
  1429. <script type="javascript" ev:event="onclick">
  1430. <![CDATA[
  1431. if ( ! isDataCell() ) return;
  1432. fViewDetlList("manual");
  1433. ]]>
  1434. </script>
  1435. <script type="javascript" ev:event="onaftersort">
  1436. <![CDATA[
  1437. grd_chklist.gridToInstance();
  1438. ]]>
  1439. </script>
  1440. <script type="javascript" ev:event="onmousedown">
  1441. <![CDATA[
  1442. setPopupMenu("grd_chklist", true, "/root/hidden/popup/prcp/item", "name", "param");
  1443. ]]>
  1444. </script>
  1445. <script type="javascript" ev:event="DOMFocusOut">
  1446. <![CDATA[
  1447. initPopupMenu();
  1448. ]]>
  1449. </script>
  1450. </datagrid>
  1451. </group>
  1452. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  1453. <button id="btn_confsave" class="btn4_letter4" style="left:1029px; top:5px; width:80px; height:22px; ">
  1454. <caption>검수확인</caption>
  1455. <script type="javascript" ev:event="DOMActivate">
  1456. <![CDATA[
  1457. fSubmitDrugChk("C");
  1458. ]]>
  1459. </script>
  1460. </button>
  1461. <button id="btn_rsvsave" class="btn4_letter4" style="left:1114px; top:5px; width:80px; height:22px; ">
  1462. <caption>검수보류</caption>
  1463. <script type="javascript" ev:event="DOMActivate">
  1464. <![CDATA[
  1465. fSubmitDrugChk("NC");
  1466. ]]>
  1467. </script>
  1468. </button>
  1469. <button id="button13" class="btn6_letter5" style="left:260px; top:5px; width:92px; height:22px; ">
  1470. <caption>처방전출력</caption>
  1471. <script type="javascript" ev:event="DOMActivate">
  1472. <![CDATA[
  1473. var drugno = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugno");
  1474. var drugdd = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugdd");
  1475. model.setValue("/root/hidden/prcpsrch/drugno", drugno);
  1476. model.setValue("/root/hidden/prcpsrch/drugdd", drugdd);
  1477. open("SMADT01100",0,0,10,"SMADT01100","/root/hidden/prcpsrch","/root/hidden/popupinfo");
  1478. ]]>
  1479. </script>
  1480. </button>
  1481. <button id="button23" class="btn3_letter4" style="left:5px; top:5px; width:80px; height:22px; ">
  1482. <caption>약력조회</caption>
  1483. <script type="javascript" ev:event="DOMActivate">
  1484. <![CDATA[
  1485. open("SMADB10100",0,0,0,"SMADB10100","/root/send/detailsrchinfo/srchpid","/root/temp/patinfo/pid");
  1486. ]]>
  1487. </script>
  1488. </button>
  1489. <button id="button3" class="btn3_letter4" style="left:175px; top:5px; width:80px; height:22px; ">
  1490. <caption>처방확인</caption>
  1491. <script type="javascript" ev:event="DOMActivate">
  1492. <![CDATA[
  1493. open("SMADT40100",0,0,0,"SMADT40100","","");
  1494. ]]>
  1495. </script>
  1496. </button>
  1497. <button id="button4" class="btn3_letter4" style="left:90px; top:5px; width:80px; height:22px; ">
  1498. <caption>편람조회</caption>
  1499. <script type="javascript" ev:event="DOMActivate">
  1500. <![CDATA[
  1501. open("SMADB01900",0,0,0,"SMADB01900","/root/main/detailinfo/grid2["+grd_ordlist.row+"]/prcpcd","/root/hidden/receivedata/srchdrugcd");
  1502. ]]>
  1503. </script>
  1504. </button>
  1505. </group>
  1506. </xhtml:body>
  1507. </xhtml:html>