SMADC01600_약품식별회신등록.xrw 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>약품식별회신등록</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <cnst>
  12. <cnstinfo>
  13. <pid/>
  14. <rgstseqno/>
  15. <statflag/>
  16. <drugrtn/>
  17. <cnsttm/>
  18. <replestm/>
  19. <replimpsi/>
  20. <remark/>
  21. <repldd/>
  22. <writid/>
  23. <writnm/>
  24. <replid/>
  25. <replnm/>
  26. <repltm/>
  27. </cnstinfo>
  28. <cnstinfo2>
  29. <cnstseqno/>
  30. <formrecseq/>
  31. <prcphosp/>
  32. <prcphosptel/>
  33. <prcppharm/>
  34. <prcppharmtel/>
  35. <drugresn/>
  36. <drugrtn/>
  37. <cnstdd/>
  38. <cnstdeptnm/>
  39. <cnstdrnm/>
  40. <cnstdeptcd/>
  41. <cnstdrid/>
  42. </cnstinfo2>
  43. <drugidlist>
  44. <rowcnt/>
  45. <photyn/>
  46. <phot/>
  47. <hngnm/>
  48. <comcnts/>
  49. <efcysmm/>
  50. <useyn/>
  51. <useyncmt/>
  52. <homodrugflag/>
  53. <samedrug/>
  54. <estmyn/>
  55. <idseqno/>
  56. <photoid/>
  57. <orgimg/>
  58. <idcd/>
  59. </drugidlist>
  60. <patinfolist>
  61. <pid/>
  62. <hngnm/>
  63. <sna/>
  64. <cnstdeptcd/>
  65. <roomcd/>
  66. <orddd/>
  67. <rrgstno/>
  68. <title/>
  69. <rowtitle/>
  70. </patinfolist>
  71. <diaglist>
  72. <diagcd/>
  73. <diagengnm/>
  74. <diaghngnm/>
  75. </diaglist>
  76. </cnst>
  77. </main>
  78. <send>
  79. <srchinfo>
  80. <pid/>
  81. <orddd/>
  82. <cretno/>
  83. <prcpgenrflag/>
  84. <rgstseqno/>
  85. <cnstdd/>
  86. <formrecseq/>
  87. </srchinfo>
  88. <req>
  89. </req>
  90. <selfdrug>
  91. <savedata/>
  92. </selfdrug>
  93. <cnstinfo>
  94. <cnstcnts1/>
  95. <cnstcnts2/>
  96. <cnstcnts3/>
  97. <cnstcnts4/>
  98. <cnstcnts5/>
  99. <pid/>
  100. <formrecseq/>
  101. </cnstinfo>
  102. </send>
  103. <init/>
  104. <hidden>
  105. <item>
  106. <rgstseqno/>
  107. </item>
  108. <tmflag/>
  109. <repldt/>
  110. <popupmenu>
  111. <!--
  112. <menu>
  113. <label>잘라내기 Ctrl+X</label>
  114. <func>cut</func>
  115. </menu>
  116. -->
  117. <menu>
  118. <label>복사하기 Ctrl+C</label>
  119. <func>fRowCopy</func>
  120. </menu>
  121. <menu>
  122. <label>붙여넣기 Ctrl+V</label>
  123. <func>fPaste</func>
  124. </menu>
  125. <menu>
  126. <label>지우기</label>
  127. <func>fdel</func>
  128. </menu>
  129. <menu>
  130. <label/>
  131. <func/>
  132. </menu>
  133. <menu>
  134. <label>사진파일 불러오기</label>
  135. <func>floadimg</func>
  136. </menu>
  137. <!--
  138. <menu>
  139. <label>사진 붙여넣기</label>
  140. <func>fPasteimg</func>
  141. </menu>
  142. <menu>
  143. <label>사진 지우기</label>
  144. <func>fdel</func>
  145. </menu>
  146. <menu>
  147. <label/>
  148. <func/>
  149. </menu>
  150. <menu>
  151. <label>한줄삭제</label>
  152. <func>fDataGridRowDelete</func>
  153. </menu>
  154. -->
  155. </popupmenu>
  156. <cnststatinfo>
  157. <cnststat/>
  158. </cnststatinfo>
  159. <selfdrug>
  160. <selfholdflag/>
  161. <selfholdstat/>
  162. <selfholdgenrdd/>
  163. <anamneflag/>
  164. <drugspdunitflag/>
  165. <clincstdyflag/>
  166. <cvrtbfprcpgenrflag/>
  167. <trnptbftestflag/>
  168. <rgstridnm/>
  169. <etcprcpresncd/>
  170. <rgstrid/>
  171. <prcpno/>
  172. <fixprcpflag/>
  173. <prcpnm/>
  174. <choiordflag/>
  175. <optermcd/>
  176. <oprsrvno/>
  177. <prcppkspec/>
  178. <drugmthdspccd/>
  179. <wardcd/>
  180. <prcpflag/>
  181. <prcplnkdd/>
  182. <cvrtbfcretno/>
  183. <mealprotcnts/>
  184. <pampkspec/>
  185. <orgprcpnm/>
  186. <fstrgstrid/>
  187. <drugmastspec/>
  188. <prcpdayno/>
  189. <prcpessninptflag/>
  190. <cvrtbforddd/>
  191. <prcpdirecflag/>
  192. <prcpvolunitnm/>
  193. <updtrid/>
  194. <prnprcpflag/>
  195. <prcpinptflag/>
  196. <nigtprcpflag/>
  197. <rateprcpflag/>
  198. <prcpsetcd/>
  199. <prcphistcd/>
  200. <grupsnglflag/>
  201. <tnsfiltflag/>
  202. <prcpdd/>
  203. <erreadflag/>
  204. <tempprcpflag/>
  205. <ordreqlnkno/>
  206. <clincstdycd/>
  207. <drugpackflag/>
  208. <prcpkindcd/>
  209. <drugmthdspccdnm/>
  210. <cretno/>
  211. <prcprefseq/>
  212. <prcpsignflag/>
  213. <stemcellflag/>
  214. <updtdeptcd/>
  215. <prcpcd/>
  216. <hosinprcpresncd/>
  217. <prcpmixno/>
  218. <pid/>
  219. <indd/>
  220. <erprcpflag/>
  221. <prcpvol/>
  222. <asttestflag/>
  223. <prcpgenrflag/>
  224. <roomcd/>
  225. <prcpclscd/>
  226. <powdflag/>
  227. <payflagcd/>
  228. <prcpvolunitflag/>
  229. <opansflagcd/>
  230. <fstrgstdt/>
  231. <lastupdtrid/>
  232. <prcphopedd/>
  233. <prcpqtyunitnm/>
  234. <prcpqty/>
  235. <prcpexecdeptcd/>
  236. <rgstdt/>
  237. <prcpstatcd/>
  238. <suppdeptspec/>
  239. <testreqlnkno/>
  240. <portprcpflag/>
  241. <contprcpspec/>
  242. <selfdrugflag/>
  243. <prcpqtyunitflag/>
  244. <rgstdd/>
  245. <lastupdtdt/>
  246. <mealcalrcnts/>
  247. <etclnkspec/>
  248. <srchcondcnts/>
  249. <rgsttm/>
  250. <angioflagcd/>
  251. <prcptims/>
  252. <ansttm/>
  253. <rgstdeptcd/>
  254. <prtlno/>
  255. <matrsetprcpspec/>
  256. <calcscormastspec/>
  257. <fastprcpflag/>
  258. <drugrateqty/>
  259. <issdeptcd/>
  260. <updtdd/>
  261. <tempstat/>
  262. <instcd/>
  263. <selfprcpflag/>
  264. <updttm/>
  265. <precureprcpflag/>
  266. <orddd/>
  267. <hosinhosoutflag/>
  268. <prcplnkno/>
  269. <tnsuseflag/>
  270. <mealupdtflag/>
  271. <offictourhealexamflag/>
  272. <prcphistno/>
  273. <tootfact/>
  274. <rateprcpspec/>
  275. <prepprcpflag/>
  276. <prcpdelivefact/>
  277. <drugspd/>
  278. <orgprcpqty/>
  279. <prcpauthflag/>
  280. <cpno/>
  281. <anticncrprtlno/>
  282. <orddeptcd/>
  283. <orddrid/>
  284. <oldprcphistno/>
  285. <hscttempprcpflag/>
  286. <inclprcpcd/>
  287. <inclprcpno/>
  288. <calcflag/>
  289. <calcyn/>
  290. <hsctdelivepos/>
  291. <hsctlnkno/>
  292. <etcprcpflag/>
  293. <aftcertflag/>
  294. <aftcertdrid/>
  295. <prcpvalidd/>
  296. <spynpy1/>
  297. <specdrid/>
  298. <anticncrprtlno/>
  299. <anticncrdayno/>
  300. <druglnkno/>
  301. <rehbprcpcurefreqflag/>
  302. <dietprcpgenrflag/>
  303. <irpayflag/>
  304. <irflag/>
  305. <procerdietflag/>
  306. <diagtestconttestintvlflag/>
  307. <drugindependpackflag/>
  308. <diagtestconttestbasetm/>
  309. <diagtestconttestorgtims/>
  310. <ermediscmngtresncd/>
  311. <rehbprcpenddd/>
  312. <matrallsizespecid/>
  313. <rehbprcpcurepartcd/>
  314. <lowdrugresncd/>
  315. <tfdtlcd/>
  316. <dnorreqlnkno/>
  317. <subcretno/>
  318. <exptmthdfact/>
  319. <lowdrugresnetcfact/>
  320. <diagtestconttestcdspec/>
  321. <drprcpetc1/>
  322. <drprcpetc2/>
  323. <drprcpetc3/>
  324. <drprcpetc4/>
  325. <drprcpetc5/>
  326. <drprcpetc6/>
  327. <drprcpetc7/>
  328. <drprcpetc8/>
  329. <drprcpetc9/>
  330. <drprcpetc10/>
  331. <prcptempcol1/>
  332. <prcptempcol2/>
  333. <prcptempcol3/>
  334. <prcptempcol4/>
  335. <prcptempcol5/>
  336. <oldprcphistcd/>
  337. </selfdrug>
  338. </hidden>
  339. <temp>
  340. <cnstinfo/>
  341. <popupdata>
  342. <repltype/>
  343. <writid/>
  344. <writnm/>
  345. <receivedata>/root/main/cnst/cnstinfo/replid</receivedata>
  346. </popupdata>
  347. <ret/>
  348. </temp>
  349. <paminfo/>
  350. </root>
  351. </instance>
  352. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  353. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  354. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  355. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  356. <script type="javascript" src="../../../ast/pharmacyweb/js/SMADC01600.js"/>
  357. <script type="javascript">
  358. <![CDATA[ opener
  359. var pasteType = ""; // 붙여넣기 구분
  360. // 복사하기
  361. function fRowCopy(){
  362. grd_drugid.dispatch("oncopy");
  363. }
  364. // 붙여넣기
  365. function fPaste(){
  366. //pasteType="char";
  367. grd_drugid.dispatch("onpaste");
  368. }
  369. //지우기
  370. function fdel(){
  371. fgrid_clear();
  372. }
  373. // 이미지 붙여넣기 - 2차개발 예정
  374. function fPasteimg(){
  375. //pasteType="img";
  376. //grd_drugid.dispatch("onpaste");
  377. }
  378. ]]>
  379. </script>
  380. <script type="javascript" ev:event="xforms-ready">
  381. <![CDATA[
  382. //2008-12-01 버튼권한
  383. btn_save.disabled = !checkAuth("X") ; //저장
  384. btn_repl.disabled = !checkAuth("X") ; //회신
  385. btn_del.disabled = !checkAuth("X") ; //삭제
  386. btn_can.visible = false; //회신취소 20120822 김치국 회신취소를 위한 방법
  387. grd_drugid.rowHeight(0) = 40;
  388. // 진료화면에서 팝업시 cnstinfo/cnsttype의 내용은 존재하지 않음
  389. // 의뢰화면에서 팝업 로딩시 cnsttype = "ast"
  390. if(model.getValue("/root/temp/cnstinfo/cnsttype") != "ast"){
  391. var pid = model.getValue("/root/temp/cnstinfo/pid");
  392. var formrecseq = model.getValue("/root/temp/cnstinfo/formrecseq");
  393. if(isNull(formrecseq)) {
  394. model.removeNodeset("/root/main/cnst/drugidlist");
  395. model.refresh();
  396. return; // 약국메뉴에서 직접 로딩시
  397. }
  398. // consult 에서 로딩시 버튼 숨기기
  399. btn_save.visible = false;
  400. btn_repl.visible = false;
  401. btn_del.visible = false;
  402. btn_srch.visible = false;
  403. btn_grdadd.visible = false;
  404. btn_grddel.visible = false;
  405. model.refresh();
  406. model.setValue("/root/send/srchinfo/formrecseq",formrecseq);
  407. model.setValue("/root/send/srchinfo/pid",pid);
  408. // emr에서 회신내용 확인시 회신확정으로 변경 (TXADC66201)
  409. if(submit("TXADC66201")){
  410. submit("TRADC01602",false);
  411. }
  412. }
  413. var formrecseq = model.getValue("/root/temp/cnstinfo/formrecseq");
  414. var pid = model.getValue("/root/temp/cnstinfo/pid");
  415. var cretno = model.getValue("/root/temp/cnstinfo/cretno");
  416. var orddd = model.getValue("/root/temp/cnstinfo/orddd");
  417. var prcpgenrflag = model.getValue("/root/temp/cnstinfo/prcpgenrflag");
  418. var rgstseqno= model.getValue("/root/temp/cnstinfo/rgstseqno");
  419. var cnstdd= model.getValue("/root/temp/cnstinfo/cnstdd");
  420. if ( pid != "") {
  421. model.setValue("/root/send/srchinfo/formrecseq", formrecseq);
  422. model.setValue("/root/send/srchinfo/pid", pid);
  423. model.setValue("/root/send/srchinfo/cretno", cretno);
  424. model.setValue("/root/send/srchinfo/orddd", orddd);
  425. model.setValue("/root/send/srchinfo/prcpgenrflag", prcpgenrflag);
  426. model.setValue("/root/send/srchinfo/rgstseqno", rgstseqno);
  427. model.setValue("/root/send/srchinfo/cnstdd", cnstdd);
  428. model.refresh();
  429. var success = submit("TRADC01601",false);
  430. if (success == false) {
  431. model.resetInstanceNode("/root/main/cnst");
  432. model.refresh();
  433. }else{
  434. // alert("약품의뢰합니다.")
  435. var rowcnt = 0;
  436. rowcnt = rowcnt + 1 ;
  437. //회신일시 설정 (회신일자 + 회신시간)
  438. var repldd = model.getValue("/root/main/cnst/cnstinfo/repldd");
  439. var repltm = model.getValue("/root/main/cnst/cnstinfo/repltm");
  440. model.setValue("/root/hidden/repldt",repldd+repltm);
  441. if(model.getValue("/root/main/cnst/drugidlist["+1+"]/idseqno") == ""){
  442. model.removeNodeset("/root/main/cnst/drugidlist");
  443. }else{
  444. // alert(rowcnt)
  445. fImgSetting(true);
  446. }
  447. // 저장된 약반송 여부가 없으면 의뢰시 지정한 약반송 여부 표시
  448. if(model.getValue("/root/main/cnst/cnstinfo/drugrtn") == ""){
  449. model.setValue("/root/main/cnst/cnstinfo/drugrtn", model.getValue("/root/main/cnst/cnstinfo2/drugrtn"));
  450. }
  451. // 기존 작성자가 존재하지 않으면 현재 사용자의 아이디값으로 설정
  452. if(model.getValue("/root/main/cnst/cnstinfo/writnm") == ""){
  453. model.setValue("/root/main/cnst/cnstinfo/writid", getUserId());
  454. model.setValue("/root/main/cnst/cnstinfo/writnm", getUserName());
  455. }
  456. //rowcnt = rowcnt + 1 ;
  457. //model.setValue("/root/main/cnst/drugidlist["+ rowcnt+"]/rowcnt", rowcnt);
  458. }
  459. /////2012.9.11 김치국 SEQ부여하기
  460. model.refresh();
  461. for( var i = 1 ; i < grd_drugid.rows ; i++ ) {
  462. model.setValue("/root/main/cnst/drugidlist["+ i +"]/rowcnt", i);
  463. }
  464. model.refresh();
  465. if (model.getValue("/root/main/cnst/cnstinfo/statflag") == "Z"){
  466. messageBox("회신처리된 의뢰 건","I009");
  467. }
  468. fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
  469. }else{
  470. model.removeNodeset("/root/main/cnst/drugidlist");
  471. }
  472. // alert( model.getValue("/root/temp/cnstinfo/pidchkflag") ) ;
  473. // alert(getUserInfos() ) ;
  474. // alert(getUserInfo("dutunitcd") ) ;
  475. if(model.getValue("/root/temp/cnstinfo/pidchkflag") == "Y") {
  476. // 20100119_laboru_약사 이외의 사용자인 경우
  477. btn_save.disabled = true;
  478. btn_repl.disabled = true;
  479. btn_del.disabled = true;
  480. }
  481. //회신취소 20120822 김치국 회신취소를 위한 방법 약무정보파트 부서는 모두 보여줌 , 칠곡 약제부, ast아이디 보이게 수정 2014.10.6 김치국
  482. if ( getUserInfo("dutunitcd") == "3242406000" || getUserInfo("dutunitcd") == "3242800000" || getUserInfo("dutunitcd") == "1000000000" ) {
  483. btn_can.visible = true;
  484. }
  485. //model.makeNode("/root/main/cnst/drugidlist");
  486. model.refresh();
  487. // //직종이 약사인경우만
  488. // alert( sjobkindcd.substr(0,2) ) ;
  489. //
  490. // if ( sjobkindcd.substr(0,2) != "12" ) {
  491. // btn_save.disabled = true ; //저장
  492. // btn_repl.disabled = true ; //회신
  493. // btn_del.disabled = true ; //삭제
  494. // }
  495. //---------------(20091024)
  496. ]]>
  497. </script>
  498. <script type="javascript">
  499. <![CDATA[
  500. ]]>
  501. </script>
  502. <submission id="TRADC01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/cnst"/>
  503. <submission id="TXADC01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/item"/>
  504. <submission id="TXADC01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/item"/>
  505. <submission id="TRADC01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/temp"/>
  506. <submission id="TRADC62202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/hidden/cnststatinfo"/>
  507. <submission id="TXADC66201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/hidden/cnststatinfo"/>
  508. <submission id="TXADC61703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cnstinfo" replace="instance" resultref="/root/hidden/cnststatinfo"/>
  509. <submission id="TXMMO14901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/selfdrug" replace="instance" resultref="/root/temp/ret"/>
  510. </model>
  511. </xhtml:head>
  512. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  513. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  514. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:180px; height:13px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">약품 식별 회신 등록</caption>
  515. </group>
  516. <group id="group3" scroll="auto" style="left:0px; top:35px; width:1195px; height:744px; ">
  517. <line id="line10" class="line_1" style="x1:0px; y1:225px; x2:1194px; y2:225px; "/>
  518. <group id="group4" style="left:0px; top:10px; width:1195px; height:90px; ">
  519. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  520. <input id="output11" ref="/root/main/cnst/patinfolist/pid" class="input_s_essential" navindex="1" maxlength="10" appearance="input" style="left:95px; top:10px; width:100px; height:19px; text-align:center; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
  521. <script type="javascript" ev:event="onkeydown">
  522. <![CDATA[
  523. model.resetInstanceNode("/root/send/srchinfo");
  524. inputEnterKey("btn_sea","DOMActivate");
  525. ]]>
  526. </script>
  527. </input>
  528. <output id="output12" ref="/root/main/cnst/patinfolist/hngnm" class="output_search" style="left:280px; top:10px; width:100px; height:19px; text-align:center; "/>
  529. <caption id="caption34" class="search_name" style="left:200px; top:10px; width:53px; height:17px; text-align:left; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">성명</caption>
  530. <caption id="caption37" class="search_name" style="left:5px; top:10px; width:76px; height:17px; text-align:left; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호</caption>
  531. <output id="output17" ref="/root/main/cnst/patinfolist/roomcd" class="output_search" style="left:95px; top:60px; width:100px; height:19px; text-align:center; "/>
  532. <caption id="caption33" class="search_name" style="left:5px; top:35px; width:86px; height:17px; text-align:left; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">성별/나이</caption>
  533. <output id="output13" ref="/root/main/cnst/patinfolist/sna" class="output_search" style="left:95px; top:35px; width:100px; height:19px; text-align:center; "/>
  534. <output id="output14" ref="/root/main/cnst/patinfolist/cnstdeptcd" class="output_search" style="left:455px; top:10px; width:100px; height:19px; text-align:center; "/>
  535. <caption id="caption35" class="search_name" style="left:385px; top:10px; width:63px; height:17px; text-align:left; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">진료과</caption>
  536. <caption id="caption36" class="search_name" style="left:200px; top:60px; width:58px; height:17px; text-align:left; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">입원일</caption>
  537. <output id="output15" ref="/root/main/cnst/patinfolist/orddd" class="output_search" format="yyyy-mm-dd" style="left:280px; top:60px; width:100px; height:19px; text-align:center; "/>
  538. <caption id="caption31" class="search_name" style="left:5px; top:60px; width:51px; height:17px; text-align:left; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">병실</caption>
  539. <datagrid id="datagrid2" nodeset="/root/main/cnst/diaglist" backcoloralternate="#f0f0f0" caption="상병코드^영문상병명^한글상병명" colsep="^" colwidth="105, 240, 189" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:645px; top:6px; width:538px; height:74px; ">
  540. <col ref="diagcd"/>
  541. <col ref="diagengnm"/>
  542. <col ref="diaghngnm"/>
  543. </datagrid>
  544. <line id="line11" class="line_3" style="x1:644px; y1:80px; x2:1180px; y2:80px; "/>
  545. <caption id="caption56" class="search_name" style="left:565px; top:10px; width:80px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">상병정보</caption>
  546. <line id="line2" class="line_2" style="x1:5px; y1:30px; x2:194px; y2:30px; "/>
  547. <line id="line3" class="line_2" style="x1:5px; y1:55px; x2:194px; y2:55px; "/>
  548. <line id="line4" class="line_2" style="x1:5px; y1:80px; x2:194px; y2:80px; "/>
  549. <line id="line5" class="line_2" style="x1:200px; y1:30px; x2:376px; y2:30px; "/>
  550. <line id="line6" class="line_2" style="x1:385px; y1:30px; x2:555px; y2:30px; "/>
  551. <line id="line7" class="line_2" style="x1:200px; y1:80px; x2:376px; y2:80px; "/>
  552. <output id="opt_rrgstno" ref="/root/main/cnst/patinfolist/rrgstno" class="output_search" style="left:280px; top:35px; width:100px; height:19px; text-align:center; "/>
  553. <caption id="caption1" class="search_name" style="left:200px; top:35px; width:76px; height:17px; text-align:left; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">주민번호</caption>
  554. <line id="line8" class="line_2" style="x1:200px; y1:55px; x2:376px; y2:55px; "/>
  555. </group>
  556. <caption id="caption40" class="cell_1" style="left:0px; top:150px; width:79px; height:23px; vertical-align:middle; ">조제약국</caption>
  557. <input id="input10" ref="/root/main/cnst/cnstinfo2/prcphosptel" class="input_search" navindex="3" maxlength="30" style="left:240px; top:129px; width:130px; height:19px; "/>
  558. <caption id="caption42" style="left:215px; top:130px; width:25px; height:15px; vertical-align:middle; ">Tel)</caption>
  559. <button id="btn_srch" class="btn2_letter2" navindex="11" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1040px; top:203px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  560. <caption>검색</caption>
  561. <script type="javascript" ev:event="onclick">
  562. <![CDATA[
  563. fPopupDrugIDSrch();
  564. ]]>
  565. </script>
  566. </button>
  567. <caption id="caption44" class="cell_1" style="left:0px; top:175px; width:79px; height:23px; vertical-align:middle; ">약 복용이유</caption>
  568. <input id="input12" ref="/root/main/cnst/cnstinfo2/prcphosp" class="input_search" navindex="2" maxlength="10" style="left:85px; top:129px; width:130px; height:19px; vertical-align:middle; "/>
  569. <input id="input15" ref="/root/main/cnst/cnstinfo2/prcppharmtel" class="input_search" navindex="5" maxlength="30" style="left:240px; top:154px; width:130px; height:19px; "/>
  570. <caption id="caption46" style="left:215px; top:155px; width:25px; height:15px; vertical-align:middle; ">Tel)</caption>
  571. <input id="input16" ref="/root/main/cnst/cnstinfo2/prcppharm" class="input_search" navindex="4" maxlength="10" style="left:85px; top:154px; width:130px; height:19px; "/>
  572. <caption id="caption49" class="tit_2" style="left:5px; top:105px; width:144px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">의뢰정보</caption>
  573. <caption id="caption51" class="cell_1" style="left:0px; top:125px; width:79px; height:23px; vertical-align:middle; ">처방의원</caption>
  574. <caption id="caption54" class="tit_2" style="left:9px; top:209px; width:144px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">식별정보</caption>
  575. <line id="line21" class="line_1" style="x1:0px; y1:120px; x2:600px; y2:120px; "/>
  576. <line id="line22" class="line_3" style="x1:0px; y1:200px; x2:1195px; y2:200px; "/>
  577. <line id="line23" class="line_2" style="x1:0px; y1:148px; x2:601px; y2:148px; "/>
  578. <line id="line24" class="line_2" style="x1:0px; y1:173px; x2:601px; y2:173px; "/>
  579. <button id="btn_grdadd" class="btn2_letter3" navindex="12" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1085px; top:203px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  580. <caption>행추가</caption>
  581. <script type="javascript" ev:event="onclick">
  582. <![CDATA[
  583. grd_drugid.addItem();
  584. var i = grd_drugid.rows - 1;
  585. setImageRefInstance("/root/main/cnst/drugidlist["+i+"]/phot");
  586. grd_drugid.rowHeight(grd_drugid.row) = 85;
  587. /////2012.9.11 김치국 행추가시 SEQ부여하기
  588. // alert( r_cnt ) ;
  589. model.refresh();
  590. var r_cnt = grd_drugid.rows ;
  591. var k = 1;
  592. for( var j = 1 ; j < r_cnt ; j++ ) {
  593. // alert( j + " : " + grd_drugid.rowStatus(j) ) ;
  594. if(grd_drugid.rowStatus(j) != 4)
  595. model.setValue("/root/main/cnst/drugidlist["+ j +"]/rowcnt", k++);
  596. }
  597. model.refresh();
  598. ]]>
  599. </script>
  600. </button>
  601. <button id="btn_grddel" class="btn2_letter3" navindex="13" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1140px; top:203px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  602. <caption>행삭제</caption>
  603. <script type="javascript" ev:event="onclick">
  604. <![CDATA[
  605. fDataGridRowDelete();
  606. // model.removeNode("/root/main/cnst/drugidlist["+ j +"]");
  607. model.refresh();
  608. /////2012.9.11 김치국 행추가시 SEQ부여하기
  609. var r_cnt = grd_drugid.rows ;
  610. var k = 1;
  611. for( var j = 1 ; j < grd_drugid.rows ; j++ ) {
  612. // alert( j + " : " + grd_drugid.rowStatus(j) ) ;
  613. if(grd_drugid.rowStatus(j) != 4)
  614. model.setValue("/root/main/cnst/drugidlist["+ j +"]/rowcnt", k++);
  615. }
  616. model.refresh();
  617. ]]>
  618. </script>
  619. </button>
  620. <line id="line25" class="line_3" style="x1:0px; y1:740px; x2:1195px; y2:740px; "/>
  621. <caption id="caption38" class="cell_1" style="left:375px; top:125px; width:79px; height:23px; vertical-align:middle; ">의뢰일시</caption>
  622. <caption id="caption39" class="cell_1" style="left:375px; top:150px; width:79px; height:23px; vertical-align:middle; ">의뢰과</caption>
  623. <output id="output16" ref="/root/main/cnst/cnstinfo2/cnstdd" class="output_fix" format="yyyy-mm-dd" style="left:460px; top:129px; width:140px; height:19px; "/>
  624. <caption id="caption58" class="cell_1" style="left:375px; top:175px; width:79px; height:23px; vertical-align:middle; ">의뢰자</caption>
  625. <input id="input19" ref="/root/main/cnst/cnstinfo2/drugresn" class="input_search" navindex="6" maxlength="100" style="left:85px; top:179px; width:285px; height:19px; "/>
  626. <output id="output19" ref="/root/main/cnst/cnstinfo2/cnstdeptnm" class="output_fix" style="left:460px; top:154px; width:140px; height:19px; "/>
  627. <output id="output20" ref="/root/main/cnst/cnstinfo2/cnstdrnm" class="output_fix" style="left:460px; top:179px; width:140px; height:19px; "/>
  628. <line id="line20" class="line_1" style="x1:607px; y1:120px; x2:1195px; y2:120px; "/>
  629. <caption id="caption50" class="cell_1" style="left:785px; top:150px; width:90px; height:23px; vertical-align:middle; ">회신불가</caption>
  630. <caption id="caption41" class="tit_2" style="left:612px; top:105px; width:144px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">회신정보</caption>
  631. <caption id="caption53" class="cell_1" style="left:985px; top:150px; width:85px; height:23px; text-align:center; vertical-align:middle; ">작성자</caption>
  632. <caption id="caption43" class="cell_1" style="left:607px; top:150px; width:73px; height:23px; vertical-align:middle; ">회신추정</caption>
  633. <caption id="caption55" class="cell_1" style="left:985px; top:125px; width:85px; height:23px; text-align:center; vertical-align:middle; ">회신일시</caption>
  634. <caption id="caption45" class="cell_1" style="left:607px; top:175px; width:73px; height:23px; vertical-align:middle; ">전달사항</caption>
  635. <caption id="caption57" style="left:963px; top:155px; width:20px; height:15px; vertical-align:middle; ">건</caption>
  636. <output id="output18" ref="/root/hidden/repldt" class="output_fix" format="yyyy-mm-dd hh:nn" style="left:1075px; top:129px; width:120px; height:19px; "/>
  637. <line id="line17" class="line_2" style="x1:607px; y1:148px; x2:1194px; y2:148px; "/>
  638. <caption id="caption47" style="left:767px; top:155px; width:20px; height:15px; vertical-align:middle; ">건</caption>
  639. <caption id="caption25" class="cell_1" style="left:607px; top:125px; width:73px; height:23px; vertical-align:middle; ">약반송</caption>
  640. <caption id="caption59" class="cell_1" style="left:985px; top:175px; width:85px; height:23px; text-align:center; vertical-align:middle; ">회신자</caption>
  641. <caption id="caption48" class="cell_1" style="left:785px; top:125px; width:90px; height:23px; vertical-align:middle; ">소요시간</caption>
  642. <select1 id="radio2" ref="/root/main/cnst/cnstinfo/drugrtn" navindex="7" appearance="full" cols="2" rows="1" vcellspacing="4" overflow="visible" style="left:685px; top:125px; width:100px; height:20px; border-style:none; ">
  643. <choices>
  644. <item>
  645. <label>예</label>
  646. <value>1</value>
  647. </item>
  648. <item>
  649. <label>아니오</label>
  650. <value>2</value>
  651. </item>
  652. </choices>
  653. </select1>
  654. <line id="line18" class="line_2" style="x1:607px; y1:173px; x2:1194px; y2:173px; "/>
  655. <input id="input17" ref="/root/main/cnst/cnstinfo/replestm" navindex="8" maxlength="4" format="9999" style="left:685px; top:154px; width:80px; height:19px; "/>
  656. <line id="line19" class="line_2" style="x1:607px; y1:198px; x2:1195px; y2:198px; "/>
  657. <button id="btn_tm" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:940px; top:129px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  658. <caption>ON</caption>
  659. <script type="javascript" ev:event="onclick">
  660. <![CDATA[
  661. var tmflag = model.getValue("/root/hidden/tmflag");
  662. if(tmflag == 1){
  663. btn_tm.text = "ON";
  664. model.setValue("/root/hidden/tmflag","0");
  665. fStopTimer();
  666. model.refresh();
  667. }else{
  668. btn_tm.text = "OFF";
  669. model.setValue("/root/hidden/tmflag","1");
  670. model.refresh();
  671. gTimer = window.setInterval("fStartTimer()",1000);
  672. }
  673. ]]>
  674. </script>
  675. </button>
  676. <input id="input18" ref="/root/main/cnst/cnstinfo/replimpsi" navindex="9" maxlength="1" format="9" style="left:880px; top:154px; width:80px; height:19px; "/>
  677. <input id="input4" ref="/root/main/cnst/cnstinfo/remark" class="input_search" navindex="10" maxlength="66" style="left:685px; top:179px; width:295px; height:19px; "/>
  678. <input id="input5" ref="/root/main/cnst/cnstinfo/writnm" class="output_fix" style="left:1075px; top:154px; width:120px; height:19px; "/>
  679. <input id="input6" ref="/root/main/cnst/cnstinfo/replnm" class="output_fix" style="left:1075px; top:179px; width:120px; height:19px; "/>
  680. <output id="opt_cnsttm" ref="/root/main/cnst/cnstinfo/cnsttm" class="output_fix" style="left:880px; top:129px; width:58px; height:19px; "/>
  681. <datagrid id="grd_drugid" nodeset="/root/main/cnst/drugidlist" autoresize="false" backcoloralternate="#f0f0f0" caption="순번^유무^사진^상품명^성분 및 함량^효능 효과^본원&#xA;사용^본원사용비고^동종약^동효약^추정^idcd^caption1^caption2" colsep="^" colwidth="27, 34, 186, 155, 240, 165, 65, 100, 130, 130, 35, 100, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:230px; width:1194px; height:505px; font-size:11pt; ">
  682. <col ref="rowcnt" type="output"/>
  683. <col checkvalue="Y,N" ref="photyn" type="checkbox"/>
  684. <col loadtype="cdata" ref="phot" style="background-stretch:stretch; "/>
  685. <col ref="hngnm" type="input"/>
  686. <col ref="comcnts" type="input"/>
  687. <col ref="efcysmm" type="input" style="font-size:9pt; "/>
  688. <col ref="useyn" type="input" style="font-size:8pt; text-align:center; "/>
  689. <col ref="useyncmt" type="input" visibility="hidden"/>
  690. <col ref="homodrugflag" type="input"/>
  691. <col ref="samedrug" type="input" style="left:1025px; top:23px; width:130px; height:23px; "/>
  692. <col checkvalue="Y,N" ref="estmyn" type="checkbox"/>
  693. <col ref="idcd" visibility="hidden"/>
  694. <col ref="idseqno" visibility="hidden" style="left:1155px; top:23px; width:100px; height:23px; "/>
  695. <col ref="photoid" visibility="hidden"/>
  696. <col ref="orgimg" visibility="hidden"/>
  697. <col ref="drugcd" visibility="hidden"/>
  698. <script type="javascript" ev:event="onmousedown">
  699. <![CDATA[
  700. setPopupMenu("grd_drugid", false , "/root/hidden/popupmenu/menu", "label", "func");
  701. ]]>
  702. </script>
  703. <script type="javascript" ev:event="DOMFocusOut">
  704. <![CDATA[
  705. initPopupMenu();
  706. ]]>
  707. </script>
  708. <script type="javascript" ev:event="oncopy">
  709. <![CDATA[
  710. astgrid_oncopy();
  711. ]]>
  712. </script>
  713. <script type="javascript" ev:event="onpaste">
  714. <![CDATA[
  715. //if(pasteType == "char"){
  716. astgrid_onpaste();
  717. //}else {
  718. // messageBox("준비중","I009");
  719. //pasteImg(); 이미지 붙여넣기
  720. //}
  721. ]]>
  722. </script>
  723. <!-- 그리드 더블클릭시 free 모드로 전환 -->
  724. <script type="javascript" ev:event="ondblclick">
  725. <![CDATA[
  726. if(grd_drugid.col != "0" & grd_drugid.selectionMode == "list"){
  727. grd_drugid.selectionMode = "free";
  728. model.refresh();
  729. }
  730. ]]>
  731. </script>
  732. <!-- rowheader 원클릭시 list모드로 전환 // 선택된 행 선택 -->
  733. <script type="javascript" ev:event="onclick">
  734. <![CDATA[
  735. if(grd_drugid.mouseCol == "0"){
  736. grd_drugid.selectionMode = "list";
  737. var row = grd_drugid.row;
  738. grd_drugid.select(row,0) = true;
  739. model.refresh();
  740. }
  741. ]]>
  742. </script>
  743. <script type="javascript" ev:event="onkeypress">
  744. <![CDATA[
  745. // 잘라내기 기능 불안정으로 인해 막음 2008-10-01
  746. /*
  747. if(event.keyCode == 24){
  748. grd_drugid.dispatch("oncopy");
  749. fdel();
  750. }else if(event.keyCode == 4){
  751. fdel();
  752. }
  753. */
  754. ]]>
  755. </script>
  756. </datagrid>
  757. <line id="line1" class="line_2" style="x1:0px; y1:198px; x2:601px; y2:198px; "/>
  758. <img id="img_hidden" visibility="hidden" style="left:100px; top:205px; width:125px; height:15px; background-stretch:stretch; "/>
  759. <datagrid id="grd_selfdrug" nodeset="/root/hidden/selfdrug" visibility="hidden" caption="a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a^a" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:860px; top:345px; width:270px; height:90px; ">
  760. <col ref="selfholdflag"/>
  761. <col ref="selfholdstat"/>
  762. <col ref="selfholdgenrdd"/>
  763. <col ref="anamneflag"/>
  764. <col ref="drugspdunitflag"/>
  765. <col ref="clincstdyflag"/>
  766. <col ref="cvrtbfprcpgenrflag"/>
  767. <col ref="trnptbftestflag"/>
  768. <col ref="rgstridnm"/>
  769. <col ref="etcprcpresncd"/>
  770. <col ref="rgstrid"/>
  771. <col ref="prcpno"/>
  772. <col ref="fixprcpflag"/>
  773. <col ref="prcpnm"/>
  774. <col ref="choiordflag"/>
  775. <col ref="optermcd"/>
  776. <col ref="oprsrvno"/>
  777. <col ref="prcppkspec"/>
  778. <col ref="drugmthdspccd"/>
  779. <col ref="wardcd"/>
  780. <col ref="prcpflag"/>
  781. <col ref="prcplnkdd"/>
  782. <col ref="cvrtbfcretno"/>
  783. <col ref="mealprotcnts"/>
  784. <col ref="pampkspec"/>
  785. <col ref="orgprcpnm"/>
  786. <col ref="fstrgstrid"/>
  787. <col ref="drugmastspec"/>
  788. <col ref="prcpdayno"/>
  789. <col ref="prcpessninptflag"/>
  790. <col ref="cvrtbforddd"/>
  791. <col ref="prcpdirecflag"/>
  792. <col ref="prcpvolunitnm"/>
  793. <col ref="updtrid"/>
  794. <col ref="prnprcpflag"/>
  795. <col ref="prcpinptflag"/>
  796. <col ref="nigtprcpflag"/>
  797. <col ref="rateprcpflag"/>
  798. <col ref="prcpsetcd"/>
  799. <col ref="prcphistcd"/>
  800. <col ref="grupsnglflag"/>
  801. <col ref="tnsfiltflag"/>
  802. <col ref="prcpdd"/>
  803. <col ref="erreadflag"/>
  804. <col ref="tempprcpflag"/>
  805. <col ref="ordreqlnkno"/>
  806. <col ref="clincstdycd"/>
  807. <col ref="drugpackflag"/>
  808. <col ref="prcpkindcd"/>
  809. <col ref="drugmthdspccdnm"/>
  810. <col ref="cretno"/>
  811. <col ref="prcprefseq"/>
  812. <col ref="prcpsignflag"/>
  813. <col ref="stemcellflag"/>
  814. <col ref="updtdeptcd"/>
  815. <col ref="prcpcd"/>
  816. <col ref="hosinprcpresncd"/>
  817. <col ref="prcpmixno"/>
  818. <col ref="pid"/>
  819. <col ref="indd"/>
  820. <col ref="erprcpflag"/>
  821. <col ref="prcpvol"/>
  822. <col ref="asttestflag"/>
  823. <col ref="prcpgenrflag"/>
  824. <col ref="roomcd"/>
  825. <col ref="prcpclscd"/>
  826. <col ref="powdflag"/>
  827. <col ref="payflagcd"/>
  828. <col ref="prcpvolunitflag"/>
  829. <col ref="opansflagcd"/>
  830. <col ref="fstrgstdt"/>
  831. <col ref="lastupdtrid"/>
  832. <col ref="prcphopedd"/>
  833. <col ref="prcpqtyunitnm"/>
  834. <col ref="prcpqty"/>
  835. <col ref="prcpexecdeptcd"/>
  836. <col ref="rgstdt"/>
  837. <col ref="prcpstatcd"/>
  838. <col ref="suppdeptspec"/>
  839. <col ref="testreqlnkno"/>
  840. <col ref="portprcpflag"/>
  841. <col ref="contprcpspec"/>
  842. <col ref="selfdrugflag"/>
  843. <col ref="prcpqtyunitflag"/>
  844. <col ref="rgstdd"/>
  845. <col ref="lastupdtdt"/>
  846. <col ref="mealcalrcnts"/>
  847. <col ref="etclnkspec"/>
  848. <col ref="srchcondcnts"/>
  849. <col ref="rgsttm"/>
  850. <col ref="angioflagcd"/>
  851. <col ref="prcptims"/>
  852. <col ref="ansttm"/>
  853. <col ref="rgstdeptcd"/>
  854. <col ref="prtlno"/>
  855. <col ref="matrsetprcpspec"/>
  856. <col ref="calcscormastspec"/>
  857. <col ref="fastprcpflag"/>
  858. <col ref="drugrateqty"/>
  859. <col ref="issdeptcd"/>
  860. <col ref="updtdd"/>
  861. <col ref="tempstat"/>
  862. <col ref="instcd"/>
  863. <col ref="selfprcpflag"/>
  864. <col ref="updttm"/>
  865. <col ref="precureprcpflag"/>
  866. <col ref="orddd"/>
  867. <col ref="hosinhosoutflag"/>
  868. <col ref="prcplnkno"/>
  869. <col ref="tnsuseflag"/>
  870. <col ref="mealupdtflag"/>
  871. <col ref="offictourhealexamflag"/>
  872. <col ref="prcphistno"/>
  873. <col ref="tootfact"/>
  874. <col ref="rateprcpspec"/>
  875. <col ref="prepprcpflag"/>
  876. <col ref="prcpdelivefact"/>
  877. <col ref="drugspd"/>
  878. <col ref="orgprcpqty"/>
  879. <col ref="prcpauthflag"/>
  880. <col ref="cpno"/>
  881. <col ref="anticncrprtlno"/>
  882. <col ref="orddeptcd"/>
  883. <col ref="orddrid"/>
  884. <col ref="oldprcphistno"/>
  885. <col ref="hscttempprcpflag"/>
  886. <col ref="inclprcpcd"/>
  887. <col ref="inclprcpno"/>
  888. <col ref="calcflag"/>
  889. <col ref="calcyn"/>
  890. <col ref="hsctdelivepos"/>
  891. <col ref="hsctlnkno"/>
  892. <col ref="etcprcpflag"/>
  893. <col ref="aftcertflag"/>
  894. <col ref="aftcertdrid"/>
  895. <col ref="prcpvalidd"/>
  896. <col ref="spynpy1"/>
  897. <col ref="specdrid"/>
  898. <col ref="anticncrprtlno"/>
  899. <col ref="anticncrdayno"/>
  900. <col ref="druglnkno"/>
  901. <col ref="rehbprcpcurefreqflag"/>
  902. <col ref="dietprcpgenrflag"/>
  903. <col ref="irpayflag"/>
  904. <col ref="irflag"/>
  905. <col ref="procerdietflag"/>
  906. <col ref="diagtestconttestintvlflag"/>
  907. <col ref="drugindependpackflag"/>
  908. <col ref="diagtestconttestbasetm"/>
  909. <col ref="diagtestconttestorgtims"/>
  910. <col ref="ermediscmngtresncd"/>
  911. <col ref="rehbprcpenddd"/>
  912. <col ref="matrallsizespecid"/>
  913. <col ref="rehbprcpcurepartcd"/>
  914. <col ref="lowdrugresncd"/>
  915. <col ref="tfdtlcd"/>
  916. <col ref="dnorreqlnkno"/>
  917. <col ref="subcretno"/>
  918. <col ref="exptmthdfact"/>
  919. <col ref="lowdrugresnetcfact"/>
  920. <col ref="diagtestconttestcdspec"/>
  921. <col ref="drprcpetc1"/>
  922. <col ref="drprcpetc2"/>
  923. <col ref="drprcpetc3"/>
  924. <col ref="drprcpetc4"/>
  925. <col ref="drprcpetc5"/>
  926. <col ref="drprcpetc6"/>
  927. <col ref="drprcpetc7"/>
  928. <col ref="drprcpetc8"/>
  929. <col ref="drprcpetc9"/>
  930. <col ref="drprcpetc10"/>
  931. <col ref="prcptempcol1"/>
  932. <col ref="prcptempcol2"/>
  933. <col ref="prcptempcol3"/>
  934. <col ref="prcptempcol4"/>
  935. <col ref="prcptempcol5"/>
  936. <col ref="oldprcphistcd"/>
  937. </datagrid>
  938. <button id="button1" class="btn4_letter6" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:265px; top:100px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  939. <caption>의뢰정보저장</caption>
  940. <script type="javascript" ev:event="DOMActivate">
  941. <![CDATA[
  942. model.setValue("/root/send/cnstinfo/cnstcnts1", model.getValue("/root/main/cnst/cnstinfo2/prcphosp"));
  943. model.setValue("/root/send/cnstinfo/cnstcnts2", model.getValue("/root/main/cnst/cnstinfo2/prcphosptel"));
  944. model.setValue("/root/send/cnstinfo/cnstcnts3", model.getValue("/root/main/cnst/cnstinfo2/prcppharm"));
  945. model.setValue("/root/send/cnstinfo/cnstcnts4", model.getValue("/root/main/cnst/cnstinfo2/prcppharmtel"));
  946. model.setValue("/root/send/cnstinfo/cnstcnts5", model.getValue("/root/main/cnst/cnstinfo2/drugresn"));
  947. model.setValue("/root/send/cnstinfo/pid", model.getValue("/root/main/cnst/cnstinfo2/pid"));
  948. model.setValue("/root/send/cnstinfo/formrecseq", model.getValue("/root/main/cnst/cnstinfo2/formrecseq"));
  949. submit("TXADC61703",false) ;
  950. ]]>
  951. </script>
  952. </button>
  953. </group>
  954. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  955. <button id="button2" class="btn3_letter6" style="left:1px; top:5px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter6.gif; ">
  956. <caption>통합결과조회</caption>
  957. <script type="javascript" ev:event="DOMActivate">
  958. <![CDATA[
  959. open("SMAER00800 ","","","","","/root/send/srchinfo/pid","/root/send/data/singdata/srchpid");
  960. ]]>
  961. </script>
  962. </button>
  963. <button id="button3" class="btn3_letter6" style="left:107px; top:5px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter6.gif; ">
  964. <caption>통합기록조회</caption>
  965. <script type="javascript" ev:event="DOMActivate">
  966. <![CDATA[
  967. setParameter("SMMRI00400_param_pid", model.getValue("/root/send/srchinfo/pid"));
  968. open("SMMRI00400");
  969. ]]>
  970. </script>
  971. </button>
  972. <button id="button4" class="btn3_letter4" style="left:213px; top:5px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  973. <caption>약력조회</caption>
  974. <script type="javascript" ev:event="DOMActivate">
  975. <![CDATA[
  976. open("SMADB10100",0,0,0,"SMADB10100","/root/send/srchinfo/pid","/root/temp/patinfo/pid");
  977. ]]>
  978. </script>
  979. </button>
  980. <button id="button5" class="btn3_letter4" style="left:295px; top:5px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  981. <caption>약품편람</caption>
  982. <script type="javascript" ev:event="DOMActivate">
  983. <![CDATA[
  984. open("SMADB01900",0,0,0,"SMADB01900","","");
  985. ]]>
  986. </script>
  987. </button>
  988. <button id="btn_prt" class="btn6_letter2" disable.background-image="../../../com/commonweb/images/dis_btn6_letter2.gif" style="left:377px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn6_letter2.gif; ">
  989. <caption>출력</caption>
  990. <script type="javascript" ev:event="DOMActivate">
  991. <![CDATA[
  992. //****************************************************************
  993. // 주민등록번호 편집, 999999-9****** 형식..
  994. var rrgstno = model.getValue("/root/main/cnst/patinfolist/rrgstno");
  995. var tmp_rrgstno = rrgstno.substr(0,8)+"******";
  996. model.setValue("/root/main/cnst/patinfolist/rrgstno", tmp_rrgstno);
  997. model.makeNode("/root/main/cnst/drugidlist"); //환자 원무정보를 끌어올수있게 20100426 황세원
  998. //****************************************************************
  999. //****************************************************************
  1000. // 약품식별 회신서 출력
  1001. exeReportPreview("RPADC01600", "XMLSTR", "", "", "false","","","","","false");
  1002. //****************************************************************
  1003. // 주민등록번호 원상태로 돌림
  1004. model.setValue("/root/main/cnst/patinfolist/rrgstno", rrgstno);
  1005. opt_rrgstno.refresh();
  1006. ]]>
  1007. </script>
  1008. </button>
  1009. <button id="btn_repl" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1078px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1010. <caption>회신</caption>
  1011. <script type="javascript" ev:event="DOMActivate">
  1012. <![CDATA[
  1013. var sChk = "N";
  1014. if(submit("TRADC62202")){
  1015. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  1016. if(cnststat == "04"){
  1017. messageBox("[취소] 더이상 수정하실 수","I004");
  1018. }else if (cnststat == "30"){
  1019. messageBox("[회신확정] 더이상 수정하실 수","I004");
  1020. }else{
  1021. var cfm = messageBox("회신내역을","Q002");
  1022. if(cfm == 6){
  1023. //저장이 성공한 경우만 회신 처리
  1024. //if ( model.getValue("/root/hidden/item/saverslt") == 'Y' ) {
  1025. // receivedata에는 회신자id 를 입력받을 노드셋으로 설정
  1026. //========================== 회신자 확인 팝업 데이터 설정 ====================================
  1027. model.setValue("/root/temp/popupdata/repltype", "drugid");
  1028. model.setValue("/root/temp/popupdata/writid", model.getValue("/root/main/cnst/cnstinfo/writid"));
  1029. model.setValue("/root/temp/popupdata/writnm", model.getValue("/root/main/cnst/cnstinfo/writnm"));
  1030. modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
  1031. // ========================================================================================
  1032. // 팝업화면에서 전달된 회신자 아이디를 /root/main/cnst/cnstinfo/replid에 설정
  1033. // 회신상태(Z)로 설정. 회신일자,시간 설정
  1034. if(model.getValue("/root/main/cnst/cnstinfo/replid") != ""){
  1035. model.setValue("/root/main/cnst/cnstinfo/statflag", "Z"); //회신
  1036. model.makeValue("/root/main/cnst/cnstinfo/cnststat", "22"); //회신
  1037. model.setValue("/root/main/cnst/cnstinfo/repldd", getCurrentDate());
  1038. model.setValue("/root/main/cnst/cnstinfo/repltm", astgetCurrentTime());
  1039. //model.makeNode("/root/main/cnst/cnstinfo/replid");
  1040. //model.setValue("/root/main/cnst/cnstinfo/replid", getUserId());
  1041. model.removeNodeset("/root/hidden/selfdrug");
  1042. fSaveReqDrugId();
  1043. //----------------------------------------------------------------------
  1044. //자가약제 정보 전달.
  1045. for(var iNo = 1 ; iNo <= getNodesetCount("/root/hidden/selfdrug") ; iNo++) {
  1046. if(model.getValue("/root/hidden/selfdrug["+ iNo +"]/pid") != "") {
  1047. grd_selfdrug.addStatus(iNo, "insert");
  1048. sChk = "Y";
  1049. }
  1050. }
  1051. if(sChk == "Y") {
  1052. model.makeValue("/root/send/selfdrug/savedata", grd_selfdrug.getUpdateData("insert"));
  1053. submit("TXMMO14901");
  1054. }
  1055. //----------------------------------------------------------------------
  1056. }
  1057. //}
  1058. }
  1059. }
  1060. }
  1061. ]]>
  1062. </script>
  1063. </button>
  1064. <button id="btn_del" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1138px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1065. <caption>삭제</caption>
  1066. <script type="javascript" ev:event="DOMActivate">
  1067. <![CDATA[
  1068. if(submit("TRADC62202")){
  1069. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  1070. if(cnststat == "04"){
  1071. messageBox("[취소] 더이상 수정하실 수","I004");
  1072. }else if (cnststat == "30"){
  1073. messageBox("[회신확정] 더이상 수정하실 수","I004");
  1074. }else{
  1075. if(messageBox("[삭제]시 저장된 회신 내역이 모두 삭제 됩니다.\n","Q001") == 6){
  1076. model.setValue("/root/main/cnst/cnstinfo/drugrtn",""); // 약반송
  1077. model.setValue("/root/main/cnst/cnstinfo/cnsttm",""); // 소요시간
  1078. model.setValue("/root/main/cnst/cnstinfo/replestm",""); // 회신추정
  1079. model.setValue("/root/main/cnst/cnstinfo/replimpsi",""); // 회신불가
  1080. model.setValue("/root/main/cnst/cnstinfo/remark",""); // 전달사항
  1081. model.makeValue("/root/main/cnst/cnstinfo/delyn","Y"); // 전달사항
  1082. for(var i = grd_drugid.fixedRows; i < grd_drugid.rows; i++){
  1083. //grd_drugid.select(i,0) = true
  1084. grd_drugid.row = i;
  1085. fDataGridRowDelete();
  1086. }
  1087. model.refresh();
  1088. //model.makeValue("/root/main/cnst/cnstinfo/cnstseqno", model.getValue("/root/main/cnst/cnstinfo2/cnstseqno"));
  1089. //model.makeValue("/root/main/cnst/cnstinfo/formrecseq", model.getValue("/root/main/cnst/cnstinfo2/formrecseq"));
  1090. fSaveReqDrugId();
  1091. }
  1092. }
  1093. }
  1094. ]]>
  1095. </script>
  1096. </button>
  1097. <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1015px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1098. <caption>저장</caption>
  1099. <script type="javascript" ev:event="DOMActivate">
  1100. <![CDATA[
  1101. model.setValue("/root/main/cnst/cnstinfo/statflag", "D"); //저장
  1102. model.makeValue("/root/main/cnst/cnstinfo/cnststat", "21"); //회신임시
  1103. model.setValue("/root/main/cnst/cnstinfo/writid", getUserId());
  1104. if(submit("TRADC62202",false)){
  1105. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  1106. if(cnststat == "04"){
  1107. messageBox("[취소] 더이상 수정하실 수","I004");
  1108. }else if (cnststat == "30"){
  1109. messageBox("[회신확정] 더이상 수정하실 수","I004");
  1110. }else{
  1111. fSaveReqDrugId();
  1112. }
  1113. }
  1114. ]]>
  1115. </script>
  1116. </button>
  1117. <button id="btn_sea" class="btn1_letter2" visibility="hidden" style="left:950px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  1118. <caption>조회</caption>
  1119. <script type="javascript" ev:event="DOMActivate">
  1120. <![CDATA[
  1121. fRefDrugidCnst();
  1122. ]]>
  1123. </script>
  1124. </button>
  1125. <button id="btn_can" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:860px; top:5px; width:85px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1126. <caption>회신취소</caption>
  1127. <script type="javascript" ev:event="DOMActivate">
  1128. <![CDATA[
  1129. if(messageBox("[회신을 ","Q007") == 6){
  1130. model.setValue("/root/main/cnst/cnstinfo/statflag", "D"); //저장
  1131. model.makeValue("/root/main/cnst/cnstinfo/cnststat", "12"); //의뢰로 변환
  1132. model.setValue("/root/main/cnst/cnstinfo/writid", getUserId());
  1133. if(submit("TRADC62202",false)){
  1134. fSaveReqDrugId();
  1135. }
  1136. }
  1137. ]]>
  1138. </script>
  1139. </button>
  1140. </group>
  1141. </xhtml:body>
  1142. </xhtml:html>