SMRSD02300_처방전달 물품 응급 불출 등록.xrw 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>처방전달 물품 응급 불출</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <searchgood>
  12. <searchgoodlist/>
  13. </searchgood>
  14. </list>
  15. <PrcpGoodTrees>
  16. <TreeList/>
  17. </PrcpGoodTrees>
  18. </main>
  19. <send>
  20. <SearchTree>
  21. <instcd/>
  22. <instcdnm/>
  23. <prcpdd/>
  24. <prcpdd2/>
  25. <sumflag/>
  26. <ioflag/>
  27. <prcpdeptcd/>
  28. <prcpdeptnm/>
  29. <querycls>0</querycls>
  30. <pid/>
  31. <patnm/>
  32. <reqflag/>
  33. <goodcd/>
  34. <purcflag/>
  35. <homematrflag/>
  36. <prntyn/>
  37. <deliveyn/>
  38. <prcpinptflag/>
  39. <erprcpflag>Y</erprcpflag>
  40. <prcpcd/>
  41. <prcpnm/>
  42. </SearchTree>
  43. <searchgood>
  44. <instcd/>
  45. <prcpdd/>
  46. <prcpdd2/>
  47. <sumflag/>
  48. <reqflag/>
  49. <reqdeptcd/>
  50. <reqprid/>
  51. <prcpdeptcd/>
  52. <goodcd/>
  53. <ioflag/>
  54. <deptgr/>
  55. <pid/>
  56. <patnm/>
  57. <purcflag/>
  58. <homematrflag/>
  59. <prodcmpynm/>
  60. <suplplcecdnm/>
  61. <suppcustnm/>
  62. <prntyn/>
  63. <deliveyn/>
  64. <prcpinptflag/>
  65. <erprcpflag/>
  66. </searchgood>
  67. </send>
  68. <init>
  69. <prntyn>
  70. <label>전체</label>
  71. <value/>
  72. <label>출력</label>
  73. <value>Y</value>
  74. <label>미출력</label>
  75. <value>N</value>
  76. </prntyn>
  77. <deliveprcsflag>
  78. <label>전체</label>
  79. <value/>
  80. <label>미불출</label>
  81. <value>N</value>
  82. <label>불출</label>
  83. <value>Y</value>
  84. </deliveprcsflag>
  85. <sumflag>
  86. <label>전체</label>
  87. <value/>
  88. <label>집계</label>
  89. <value>Y</value>
  90. <label>미집계</label>
  91. <value>N</value>
  92. </sumflag>
  93. <ioflag>
  94. <label>전체</label>
  95. <value/>
  96. <label>입원</label>
  97. <value>I</value>
  98. <label>외래</label>
  99. <value>O</value>
  100. <label>건진</label>
  101. <value>S</value>
  102. <label>응급</label>
  103. <value>E</value>
  104. </ioflag>
  105. <goodreqcnt/>
  106. <searchgoodcnt/>
  107. </init>
  108. <temp>
  109. <allchk/>
  110. <alarmsec/>
  111. <demonresult/>
  112. <alarmcount/>
  113. <alarmfile/>
  114. </temp>
  115. <hidden/>
  116. </root>
  117. </instance>
  118. <script type="javascript" ev:event="xforms-ready">
  119. <![CDATA[
  120. misfComboComCdList("R0111", cmb_purcflag, "Y"); //구매구분
  121. rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"%","B");
  122. fInit(); // 화면 Control을 초기화한다
  123. cmb_reqflag.select(0); //청구구분
  124. vProgramCls = "SMRSD02300";
  125. gTimerID = window.setInterval( "fCheckTimer()", 1000 );
  126. if(getCookie("alarmTimer") != null) {
  127. cmb_alarmsec.value = getCookie("alarmTimer");
  128. alarmTimer = getCookie("alarmTimer");
  129. } else {
  130. cmb_alarmsec.select(0);
  131. }
  132. model.setValue("/root/temp/alarmfile", alarmFile);
  133. opt_alarmfile.refresh();
  134. fSearchNewErprcp();
  135. ]]>
  136. </script>
  137. <submission id="TRRSD02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchgood" resultref="/root/main/list/searchgood"/>
  138. <submission id="TRRSD02205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/SearchTree" resultref="/root/main/PrcpGoodTrees"/>
  139. <!--물품규격내역를 저장하는 submmit-->
  140. <submission id="TXRSD02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/rsihopmabefore" add="bottom" resultref="/root/temp"/>
  141. <submission id="TXRSD02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/prntinfo" resultref="/root/temp/saveprint"/>
  142. </model>
  143. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  144. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  145. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  146. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  147. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  148. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  149. <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
  150. <script type="javascript" src="../../../mis/reqweb/js/SMRSD02200.js"/>
  151. <script type="javascript">
  152. <![CDATA[
  153. var alarmTimer = -1;
  154. var alarmFile = "c:\\ALARM.wav";
  155. function fCheckTimer() {
  156. model.setValue(opt_alarmcount.attribute("ref"),alarmTimer);
  157. opt_alarmcount.refresh();
  158. if(alarmTimer != -1) {
  159. alarmTimer -= 1;
  160. if(alarmTimer < 0) {
  161. fSearchNewErprcp();
  162. alarmTimer = model.getValue("/root/temp/alarmsec");
  163. }
  164. }
  165. }
  166. function fSearchNewErprcp() {
  167. asyncSend("TRRSD02211", "/root/send/SearchTree", "/root/hidden/checkercpdelivery", "responseHandlerTRRSD02211");
  168. }
  169. function playsound(){
  170. sound1.url = alarmFile;
  171. }
  172. function responseHandlerTRRSD02211(submitUUID, response, responseType) {
  173. // 서버에서 전달된 결과를 instance에 맵핑
  174. //defualtResponseHandler(submitUUID, response, responseType);
  175. var ercpcount = model.getValue("/root/hidden/checkercpdelivery/ercpcount");
  176. model.setValue("/root/temp/demonresult",ercpcount + "건의 미불출 응급처방이 있습니다.");
  177. opt_alarm.refresh();
  178. btn_newercp.text = "응급처방(" + ercpcount + ")";
  179. btn_newercp.refresh();
  180. if(ercpcount > 0) playsound();
  181. }
  182. function setCookie(strName, strValue, intDate)
  183. {
  184. var strExpires = "";
  185. if(intDate!=null && !isNaN(intDate))
  186. {
  187. var dtmToday = new Date();
  188. dtmToday.setDate(dtmToday.getDate() + parseInt(intDate));
  189. strExpires = "; expires=" + dtmToday.toGMTString();
  190. }
  191. document.cookie = strName + "=" + escape(strValue) + strExpires + "; ";
  192. }
  193. function getCookie(strName)
  194. {
  195. var arrCookie = document.cookie.split("; ");
  196. var arrCrumb;
  197. for (var i=0;i<arrCookie.length;i++)
  198. {
  199. arrCrumb = arrCookie[i].split("=");
  200. if (strName==arrCrumb[0].replace(/^\s+/, ""))
  201. return unescape(arrCrumb[1]);
  202. }
  203. return null;
  204. }
  205. ]]>
  206. </script>
  207. </xhtml:head>
  208. <xhtml:body pagewidth="1205" pageheight="800" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  209. <group id="group1" style="left:0px; top:0px; width:1185px; height:13px; ">
  210. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">처방전달 물품 응급 불출</caption>
  211. </group>
  212. <group id="group5" scroll="auto" style="left:0px; top:23px; width:1186px; height:759px; ">
  213. <group id="grp_detail" style="left:5px; top:218px; width:340px; height:537px; vertical-align:top; ">
  214. <button id="btn_searchTree" class="btn2_letter7" navindex="18" visibility="visible" style="left:0px; top:41px; width:97px; height:19px; text-align:center; ">
  215. <caption>트 리 재 구 성</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. fDataSearchTree();
  219. model.makeValue("/root/prcpprntinfo/usernm" ,getUserInfo("usernm"));
  220. model.makeValue("/root/prcpprntinfo/erprcpflag", model.getValue("/root/send/SearchTree/erprcpflag"));
  221. model.refresh();
  222. ]]>
  223. </script>
  224. </button>
  225. <select1 id="rdo_viewcls" ref="/root/send/SearchTree/querycls" navindex="17" appearance="full" cols="4" overflow="visible" style="left:100px; top:43px; width:235px; height:15px; border-style:none; ">
  226. <choices>
  227. <item>
  228. <label>전체</label>
  229. <value>0</value>
  230. </item>
  231. <item>
  232. <label>시행부서</label>
  233. <value>2</value>
  234. </item>
  235. <item>
  236. <label>처방부서</label>
  237. <value>1</value>
  238. </item>
  239. <item>
  240. <label>불출</label>
  241. <value>3</value>
  242. </item>
  243. </choices>
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. fDataSearchTree();
  247. ]]>
  248. </script>
  249. </select1>
  250. <treeview id="trv_setcode" ref="/root/main/PrcpGoodTrees/TreeList" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:0px; top:65px; width:338px; height:470px; ">
  251. <itemset nodeset="/root/main/PrcpGoodTrees/TreeList">
  252. <label ref="dispnm"/>
  253. <value ref="pcode"/>
  254. <depth ref="depth"/>
  255. </itemset>
  256. <script type="javascript" ev:event="xforms-value-changed">
  257. <![CDATA[
  258. // model.setValue("/root/send/searchgood/homematrflag", "Y"); // 귀가유치물품flag
  259. fDataSearchDetail(trv_setcode.focusIndex, "D");
  260. ]]>
  261. </script>
  262. </treeview>
  263. </group>
  264. <group id="grp_main" style="left:350px; top:8px; width:835px; height:747px; ">
  265. <datagrid id="grd_excelgood" nodeset="/root/main/list/searchgood/searchgoodlist" visibility="hidden" caption="시행일자^처방일자^물품코드^물품코드^물품명^규격^모델^총수량^선불출^단위^등록번호^환자명^입외^병동^병실^처방부서^시행부서^수량^횟수^일수^집계^집계일자^구매구분^제조원^거래처" colsep="^" colwidth="66, 69, 70, 27, 183, 80, 80, 50, 50, 70, 55, 56, 36, 55, 40, 72, 76, 0, 0, 0, 40, 68, 82, 82, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:100px; width:835px; height:315px; ">
  266. <col ref="rgstdd" format="yyyy-mm-dd"/>
  267. <col ref="prcpdd" format="yyyy-mm-dd"/>
  268. <col ref="goodcd"/>
  269. <col ref="allsizespecid"/>
  270. <col ref="goodnm"/>
  271. <col ref="goodspec"/>
  272. <col ref="goodmodel"/>
  273. <col ref="totqty" format="#,###.#" style="text-align:right; "/>
  274. <col ref="beforqty" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  275. <col ref="setunit" style="text-align:center; "/>
  276. <col ref="pid2"/>
  277. <col ref="patnm2"/>
  278. <col disabled="true" ref="ioflag">
  279. <choices>
  280. <item>
  281. <label/>
  282. <value/>
  283. </item>
  284. </choices>
  285. </col>
  286. <col ref="wardnm"/>
  287. <col ref="room"/>
  288. <col ref="orddeptcdnm"/>
  289. <col ref="prcpdeptcdnm"/>
  290. <col ref="goodqty" format="#,###.#" style="text-align:right; "/>
  291. <col ref="times" format="#,###" style="text-align:right; "/>
  292. <col ref="dayno" format="#,###" style="text-align:right; "/>
  293. <col ref="sumflagnm" style="text-align:center; "/>
  294. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:right; "/>
  295. <col ref="purcflagnm"/>
  296. <col ref="prodcmpynm"/>
  297. <col ref="suplplcecdnm"/>
  298. <col ref="fstrgstrid" visibility="hidden"/>
  299. <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd"/>
  300. <col ref="ward" visibility="hidden"/>
  301. <col ref="orddeptcd" visibility="hidden"/>
  302. <col ref="prcpdeptcd" visibility="hidden"/>
  303. <col ref="sumflag" visibility="hidden"/>
  304. <col ref="purcflag" visibility="hidden"/>
  305. <col ref="prodcmpycd" visibility="hidden"/>
  306. <col ref="suplplcecd" visibility="hidden"/>
  307. <script type="javascript" ev:event="onaftersort">
  308. <![CDATA[
  309. grd_searchgood.gridToInstance();
  310. ]]>
  311. </script>
  312. </datagrid>
  313. <datagrid id="grd_searchgood" nodeset="/root/main/list/searchgood/searchgoodlist" caption="^처방일자^등록번호^환자명^물품코드^물품코드^물품명^규격^총수량^불출^집계^출력^대차^시행일자^처방코드^처방명^모델^구매구분^단위^귀가수량^입외^병동^병실^처방부서^시행부서^수량^횟수^일수^집계일자^집계일자^불출자^불출일시^caption1^caption2" colsep="^" colwidth="24, 69, 60, 60, 70, 25, 165, 71, 45, 45, 40, 40, 40, 66, 80, 149, 70, 58, 46, 57, 60, 43, 70, 76, 76, 0, 0, 35, 70, 25, 60, 120, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40" dataheight="25" ellipsis="true" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:35px; width:833px; height:710px; ">
  314. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  315. <col ref="prcpdd" format="yyyy-mm-dd"/>
  316. <col ref="pid"/>
  317. <col ref="patnm"/>
  318. <col ref="goodcd"/>
  319. <col ref="allsizespecid" visibility="hidden"/>
  320. <col ref="goodnm"/>
  321. <col ref="goodspec"/>
  322. <col ref="totqty" format="#,###.#" style="text-align:right; "/>
  323. <col ref="beforqty" type="input" format="(-)#,###.#" style="text-align:right; "/>
  324. <col ref="sumflagnm" visibility="hidden" style="text-align:center; "/>
  325. <col ref="prntynnm" style="text-align:center; "/>
  326. <col ref="autdeliveyn" style="text-align:center; "/>
  327. <col ref="rgstdd" format="yyyy-mm-dd"/>
  328. <col ref="prcpcd"/>
  329. <col ref="prcpnm"/>
  330. <col ref="goodmodel"/>
  331. <col ref="purcflagnm" style="text-align:center; "/>
  332. <col ref="setunit" style="text-align:center; "/>
  333. <col ref="homematrqty" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  334. <col disabled="true" ref="ioflag">
  335. <choices>
  336. <item>
  337. <label/>
  338. <value/>
  339. </item>
  340. </choices>
  341. </col>
  342. <col ref="wardnm"/>
  343. <col ref="room"/>
  344. <col ref="orddeptcdnm"/>
  345. <col ref="prcpdeptcdnm"/>
  346. <col ref="goodqty" format="#,###.#" style="text-align:right; "/>
  347. <col ref="times" format="#,###" style="text-align:right; "/>
  348. <col ref="dayno" format="#,###" style="text-align:right; "/>
  349. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  350. <col ref="sumcnt" style="text-align:center; "/>
  351. <col ref="lastupdtrid" style="text-align:center; "/>
  352. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  353. <col ref="ward" visibility="hidden"/>
  354. <col ref="orddeptcd" visibility="hidden"/>
  355. <col ref="prcpdeptcd" visibility="hidden"/>
  356. <col ref="sumflag" visibility="hidden"/>
  357. <col ref="instcd" visibility="hidden"/>
  358. <col ref="genrdd" visibility="hidden"/>
  359. <col ref="genrno" visibility="hidden"/>
  360. <col ref="genrseq" visibility="hidden"/>
  361. <col ref="beforqtyold" visibility="hidden"/>
  362. <col ref="homematrflag" visibility="hidden"/>
  363. <col ref="centcd" visibility="hidden"/>
  364. <col ref="subdeptcd" visibility="hidden"/>
  365. <col ref="centcdnm" visibility="hidden"/>
  366. <col ref="subdeptcdnm" visibility="hidden"/>
  367. <col ref="prntyn" visibility="hidden" style="left:3017px; top:23px; width:100px; height:23px; "/>
  368. <col ref="prtndt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  369. <script type="javascript" ev:event="onaftersort">
  370. <![CDATA[
  371. grd_searchgood.gridToInstance();
  372. ]]>
  373. </script>
  374. <script type="javascript" ev:event="xforms-value-changed">
  375. <![CDATA[
  376. fBeforQtyOnChange(grd_searchgood.row, 1);
  377. ]]>
  378. </script>
  379. <script type="javascript" ev:event="onendedit">
  380. <![CDATA[
  381. if(grd_searchgood.row < grd_searchgood.rows - grd_searchgood.fixedRows){
  382. grd_searchgood.row = grd_searchgood.row + 1;
  383. grd_searchgood.select(grd_searchgood.row, grd_searchgood.colRef("beforqty")) = true;
  384. }
  385. ]]>
  386. </script>
  387. <script type="javascript" ev:event="xforms-select">
  388. <![CDATA[
  389. if (grd_searchgood.col == grd_searchgood.colRef("chk")){
  390. var totqty = model.getValue(grd_searchgood.nodeset + "[" + grd_searchgood.row + "]/totqty");
  391. model.setValue(grd_searchgood.nodeset + "[" + grd_searchgood.row + "]/beforqty", totqty);
  392. model.refreshpart(grd_searchgood.nodeset + "[" + grd_searchgood.row + "]/beforqty");
  393. }
  394. ]]>
  395. </script>
  396. <script type="javascript" ev:event="xforms-deselect">
  397. <![CDATA[
  398. if (grd_searchgood.col == grd_searchgood.colRef("chk")){
  399. model.setValue(grd_searchgood.nodeset + "[" + grd_searchgood.row + "]/beforqty", 0);
  400. model.refreshpart(grd_searchgood.nodeset + "[" + grd_searchgood.row + "]/beforqty");
  401. }
  402. ]]>
  403. </script>
  404. </datagrid>
  405. <button id="btn_excel2" class="btn5_letter3" style="left:600px; top:5px; width:53px; height:19px; ">
  406. <caption>Excel</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. var vdate = new Date();
  410. var HH = vdate.getHours();
  411. var MI = vdate.getMinutes();
  412. var SS = vdate.getSeconds();
  413. var vTime = HH +"" + MI +"" + SS;
  414. var vFileNM = "처방전달물품내역_"+getCurrentDate()+ vTime;
  415. var fileName = window.fileDialog("save", ",", false, vFileNM, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  416. if (fileName != "")
  417. {
  418. grd_excelgood.saveExcel(fileName, vFileNM, true, true, "");
  419. }
  420. ]]>
  421. </script>
  422. </button>
  423. <line id="lin_main" class="line_1" style="x1:0px; y1:30px; x2:834px; y2:30px; "/>
  424. <button id="button57" class="icon_pre_month" visibility="hidden" style="left:0px; top:11px; width:16px; height:16px; ">
  425. <caption/>
  426. <script type="javascript" ev:event="DOMActivate">
  427. <![CDATA[
  428. fDataPartToggle("1");
  429. ]]>
  430. </script>
  431. </button>
  432. <button id="button58" class="icon_next_month" visibility="hidden" style="left:20px; top:11px; width:16px; height:16px; ">
  433. <caption/>
  434. <script type="javascript" ev:event="DOMActivate">
  435. <![CDATA[
  436. fDataPartToggle("0");
  437. ]]>
  438. </script>
  439. </button>
  440. <caption id="cpt_disp" class="tit_2" style="left:5px; top:13px; width:575px; height:13px; ">처방전달물품내역</caption>
  441. <caption id="caption5" visibility="hidden" style="left:555px; top:10px; width:50px; height:15px; ">All Size</caption>
  442. <caption id="caption9" class="color_6" visibility="hidden" style="left:537px; top:9px; width:15px; height:15px; background-color:#FFFF00; "/>
  443. <button id="btn_save" class="btn4_letter2" disabled="false" style="left:542px; top:4px; width:56px; height:22px; ">
  444. <caption>저장</caption>
  445. <script type="javascript" ev:event="DOMActivate">
  446. <![CDATA[
  447. fBeforQtyDataSave(); // Data를 저장한다.
  448. fSearchNewErprcp();
  449. ]]>
  450. </script>
  451. </button>
  452. <button id="btn_wardprint" class="btn2_letter6" style="left:655px; top:5px; width:86px; height:19px; ">
  453. <caption>환자별 출력</caption>
  454. <script type="javascript" ev:event="DOMActivate">
  455. <![CDATA[
  456. if(getGridUpdateData(grd_searchgood) != "") {
  457. if(messageBox("변경 된 내용을 ","Q002") == "6"){
  458. fBeforQtyDataSave();
  459. } else {
  460. return;
  461. }
  462. }
  463. model.removeNodeset("/root/prtinfo/gooddetlist");
  464. model.makeNode("/root/prtinfo/gooddetlist");
  465. if(instance1.selectNodes("/root/main/list/searchgood/searchgoodlist[beforqty != '0']").length < 1){
  466. messageBox("출력할 내용이","I004");
  467. return;
  468. }
  469. // copyNodesetType("/root/prtinfo/gooddetlist","/root/main/list/searchgood/searchgoodlist[beforqty != '0' and sumflag == 'N']","replace");
  470. copyNodesetType("/root/prtinfo/gooddetlist","/root/main/list/searchgood/searchgoodlist[beforqty != '0']","replace");
  471. exeReportPreview("RPRSD02203", "XMLSTR");
  472. // fBeforQtyDataSave(); // Data를 저장한다.
  473. fPrntDataSave();
  474. ]]>
  475. </script>
  476. <hint>
  477. <![CDATA[선불출 내용 변경시 저장 하신 후 선불출서를 출력해 주세요]]>
  478. </hint>
  479. </button>
  480. <bool id="chk_allchk" checkvalue="Y,N" ref="/root/temp/allchk" style="left:23px; top:38px; width:20px; height:20px; ">
  481. <script type="javascript" ev:event="xforms-value-changed">
  482. <![CDATA[
  483. var allchk = model.getValue("/root/temp/allchk");
  484. if(allchk=="Y"){
  485. for(var i=grd_searchgood.fixedRows; i < grd_searchgood.rows;i++){
  486. grd_searchgood.valueMatrix(i, grd_searchgood.colRef("chk")) = 'Y';
  487. grd_searchgood.valueMatrix(i , grd_searchgood.colRef("beforqty")) = grd_searchgood.valueMatrix(i , grd_searchgood.colRef("totqty"));
  488. }
  489. }else{
  490. for(var i=grd_searchgood.fixedRows; i < grd_searchgood.rows;i++){
  491. grd_searchgood.valueMatrix(i, grd_searchgood.colRef("chk")) = 'N';
  492. grd_searchgood.valueMatrix(i , grd_searchgood.colRef("beforqty")) = "0";
  493. }
  494. }
  495. grd_searchgood.refresh();
  496. ]]>
  497. </script>
  498. </bool>
  499. <button id="button3" class="btn2_letter4" navindex="20" style="left:360px; top:5px; width:64px; height:19px; ">
  500. <caption>알람설정</caption>
  501. <script type="javascript" ev:event="DOMActivate">
  502. <![CDATA[
  503. group2.visible = true;
  504. ]]>
  505. </script>
  506. </button>
  507. <button id="btn_newercp" class="btn2_letter6" navindex="22" style="left:425px; top:5px; width:86px; height:19px; ">
  508. <caption>응급처방(0)</caption>
  509. <script type="javascript" ev:event="DOMActivate">
  510. <![CDATA[
  511. model.setValue(ipt_prcpdeptcd.attribute("ref"),"");
  512. model.setValue(ipt_prcpdeptnm.attribute("ref"),"");
  513. model.setValue(ipt_pid.attribute("ref"),"");
  514. model.setValue(ipt_patnm.attribute("ref"),"");
  515. model.setValue(ipt_goodcd.attribute("ref"),"");
  516. model.setValue(cmb_purcflag.attribute("ref"),"");
  517. model.setValue(rdo_prntyn.attribute("ref"),"");
  518. model.setValue(rdo_deliveyn.attribute("ref"),"N");
  519. model.setValue(chk_prcpinptflag.attribute("ref"),"ignore");
  520. model.setValue(rdo_viewcls.attribute("ref"),"0");
  521. grp_key.refresh();
  522. btn_searchTree.dispatch("DOMActivate");
  523. ]]>
  524. </script>
  525. </button>
  526. <button id="btn_goodprint" class="btn2_letter6" style="left:743px; top:5px; width:86px; height:19px; ">
  527. <caption>물품별 출력</caption>
  528. <script type="javascript" ev:event="DOMActivate">
  529. <![CDATA[
  530. if(getGridUpdateData(grd_searchgood) != "") {
  531. if(messageBox("변경 된 내용을 ","Q002") == "6"){
  532. fBeforQtyDataSave();
  533. } else {
  534. return;
  535. }
  536. }
  537. model.removeNodeset("/root/prtinfo/groupgoodlist");
  538. model.makeNode("/root/prtinfo/groupgoodlist");
  539. if(instance1.selectNodes("/root/main/list/searchgood/groupgoodlist").length < 1){
  540. messageBox("출력할 내용이","I004");
  541. return;
  542. } else {
  543. if(instance1.selectNodes("/root/main/list/searchgood/groupgoodlist[prntkey = null]").length > 0) {
  544. copyNodesetType("/root/prtinfo/groupgoodlist","/root/main/list/searchgood/groupgoodlist[prntkey = null]","replace");
  545. exeReportPreview("RPRSD02204", "XMLSTR");
  546. fPrntDataSave();
  547. return;
  548. }
  549. if(instance1.selectNodes("/root/main/list/searchgood/prntlist").length > 1){
  550. rdo_prntlist.refresh();
  551. model.removenode("/root/temp/prntkey");
  552. model.makeNode("/root/temp/prntkey");
  553. rdo_prntlist.select(0);
  554. group5.disabled = true;
  555. group3.visible = true;
  556. return;
  557. } else {
  558. copyNodesetType("/root/prtinfo/groupgoodlist","/root/main/list/searchgood/groupgoodlist","replace");
  559. exeReportPreview("RPRSD02204", "XMLSTR");
  560. }
  561. }
  562. ]]>
  563. </script>
  564. <hint>
  565. <![CDATA[선불출 내용 변경시 저장 하신 후 선불출서를 출력해 주세요]]>
  566. </hint>
  567. </button>
  568. </group>
  569. <group id="grp_key" style="left:5px; top:8px; width:340px; height:247px; vertical-align:top; ">
  570. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:340px; height:245px; background-color:#fffbf2; border-color:#ffd799; "/>
  571. <caption id="caption10" class="search_name" style="left:6px; top:5px; width:89px; height:17px; ">기관코드 :</caption>
  572. <output id="opt_instcd" ref="/root/send/SearchTree/instcd" class="output_fix" visibility="hidden" style="left:225px; top:5px; width:20px; height:19px; "/>
  573. <input id="ipt_prcpdd2" ref="/root/send/SearchTree/prcpdd2" class="input_s_essential" navindex="3" inputtype="date" style="left:221px; top:53px; width:99px; height:19px; ">
  574. <script type="javascript" ev:event="xforms-value-changed">
  575. <![CDATA[
  576. // fDataSearchTree();
  577. ]]>
  578. </script>
  579. </input>
  580. <input id="ipt_prcpdd" ref="/root/send/SearchTree/prcpdd" class="input_s_essential" navindex="2" inputtype="date" style="left:95px; top:53px; width:99px; height:19px; ">
  581. <script type="javascript" ev:event="xforms-value-changed">
  582. <![CDATA[
  583. // fDataSearchTree();
  584. ]]>
  585. </script>
  586. </input>
  587. <caption id="caption12" style="left:201px; top:53px; width:15px; height:20px; font-weight:bold; ">~</caption>
  588. <caption id="caption3" class="search_name" style="left:6px; top:53px; width:89px; height:17px; ">시행일자 :</caption>
  589. <select1 id="rdo_sumflag" ref="/root/send/SearchTree/sumflag" visibility="hidden" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:20px; top:180px; width:50px; height:17px; background-color:transparent; border-style:none; ">
  590. <choices>
  591. <itemset nodeset="/root/init/sumflag">
  592. <label ref="label"/>
  593. <value ref="value"/>
  594. </itemset>
  595. </choices>
  596. </select1>
  597. <select1 id="radio1" ref="/root/send/SearchTree/ioflag" visibility="hidden" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:95px; top:77px; width:240px; height:20px; border-style:none; ">
  598. <choices>
  599. <itemset nodeset="/root/init/ioflag">
  600. <label ref="label"/>
  601. <value ref="value"/>
  602. </itemset>
  603. </choices>
  604. <script type="javascript" ev:event="xforms-value-changed">
  605. <![CDATA[
  606. // fDataSearchTree();
  607. ]]>
  608. </script>
  609. </select1>
  610. <caption id="caption8" class="search_name" visibility="hidden" style="left:6px; top:77px; width:89px; height:17px; ">환자구분 :</caption>
  611. <button id="btn_search" class="btn1_letter2" navindex="19" visibility="hidden" style="left:260px; top:5px; width:56px; height:22px; text-align:left; ">
  612. <caption>조회</caption>
  613. <script type="javascript" ev:event="DOMActivate">
  614. <![CDATA[
  615. // if(fCheckRetrieveData() == false)return;
  616. misfGridInit(grd_searchgood);
  617. misfGridInit(grd_orderlist);
  618. misfMsterDetailRetrieve();
  619. fAfterRetrieve();
  620. misfSetReadOnlyCol(grd_searchgood, "sumflag", true);
  621. ]]>
  622. </script>
  623. </button>
  624. <button id="button1" class="icon_search" navindex="5" style="left:173px; top:77px; width:16px; height:16px; ">
  625. <caption/>
  626. <script type="javascript" ev:event="DOMActivate">
  627. <![CDATA[
  628. var recv_list = "prcpdeptcd,prcpdeptnm";
  629. misfOpenPopUpList("02", ipt_prcpdeptcd,"", recv_list) ;
  630. model.refresh();
  631. fDataSearchTree();
  632. // btn_search.dispatch("DOMActivate");
  633. ]]>
  634. </script>
  635. </button>
  636. <caption id="caption2" class="search_name" style="left:6px; top:77px; width:93px; height:17px; ">시행부서 :</caption>
  637. <input id="ipt_prcpdeptnm" ref="/root/send/SearchTree/prcpdeptnm" class="output_fix" navindex="6" editable="false" appearance="input" style="left:190px; top:77px; width:145px; height:19px; "/>
  638. <input id="ipt_prcpdeptcd" ref="/root/send/SearchTree/prcpdeptcd" class="input_fix" navindex="4" style="left:95px; top:77px; width:75px; height:19px; ">
  639. <script type="javascript" ev:event="xforms-value-changed">
  640. <![CDATA[
  641. misfSearchDept(ipt_prcpdeptnm);
  642. ]]>
  643. </script>
  644. </input>
  645. <output id="opt_instcdnm" ref="/root/send/SearchTree/instcdnm" class="output_fix" style="left:95px; top:5px; width:125px; height:19px; text-align:center; "/>
  646. <caption id="caption1" class="search_name" style="left:6px; top:101px; width:93px; height:17px; ">등록번호 :</caption>
  647. <caption id="caption4" class="search_name" style="left:170px; top:101px; width:93px; height:17px; ">환자명 :</caption>
  648. <input id="ipt_pid" ref="/root/send/SearchTree/pid" class="input_fix" navindex="7" style="left:95px; top:101px; width:75px; height:19px; ">
  649. <script type="javascript" ev:event="onkeyup">
  650. <![CDATA[
  651. inputEnterKey("btn_searchTree", "DOMActivate");
  652. ]]>
  653. </script>
  654. </input>
  655. <input id="ipt_patnm" ref="/root/send/SearchTree/patnm" class="input_fix" navindex="8" style="left:245px; top:101px; width:90px; height:19px; ">
  656. <script type="javascript" ev:event="onkeyup">
  657. <![CDATA[
  658. inputEnterKey("btn_searchTree", "DOMActivate");
  659. ]]>
  660. </script>
  661. </input>
  662. <caption id="caption20" class="search_name" style="left:6px; top:29px; width:86px; height:17px; vertical-align:middle; ">청구구분 :</caption>
  663. <select1 id="cmb_reqflag" ref="/root/send/SearchTree/reqflag" class="combo_default" navindex="1" appearance="minimal" style="left:95px; top:29px; width:125px; height:19px; ">
  664. <choices>
  665. <itemset nodeset="/root/init/reqflag/reqflaglist">
  666. <label ref="reqflagnm"/>
  667. <value ref="reqflag"/>
  668. </itemset>
  669. </choices>
  670. <script type="javascript" ev:event="xforms-value-changed">
  671. <![CDATA[
  672. // fDataSearchTree();
  673. //btn_search.dispatch("DOMActivate");
  674. ]]>
  675. </script>
  676. </select1>
  677. <caption id="caption11" class="search_name" style="left:170px; top:125px; width:93px; height:17px; ">구매구분 :</caption>
  678. <select1 id="cmb_purcflag" ref="/root/send/SearchTree/purcflag" class="combo_default" navindex="10" appearance="minimal" style="left:260px; top:125px; width:75px; height:19px; ">
  679. <choices>
  680. <itemset nodeset="/root/init/purcflag">
  681. <label ref="cdnm"/>
  682. <value ref="cdid"/>
  683. </itemset>
  684. </choices>
  685. <script type="javascript" ev:event="xforms-value-changed">
  686. <![CDATA[
  687. // fDataSearchTree();
  688. ]]>
  689. </script>
  690. </select1>
  691. <caption id="caption13" class="search_name" style="left:6px; top:125px; width:93px; height:17px; ">물품코드 :</caption>
  692. <input id="ipt_goodcd" ref="/root/send/SearchTree/goodcd" class="input_fix" navindex="9" imemode="disabled" _chartype="upper" style="left:95px; top:125px; width:75px; height:19px; ">
  693. <script type="javascript" ev:event="onkeyup">
  694. <![CDATA[
  695. inputEnterKey("btn_searchTree", "DOMActivate");
  696. ]]>
  697. </script>
  698. </input>
  699. <select1 id="rdo_prntyn" ref="/root/send/SearchTree/prntyn" navindex="13" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:95px; top:173px; width:170px; height:17px; background-color:transparent; border-style:none; ">
  700. <choices>
  701. <itemset nodeset="/root/init/prntyn">
  702. <label ref="label"/>
  703. <value ref="value"/>
  704. </itemset>
  705. </choices>
  706. <script type="javascript" ev:event="xforms-value-changed">
  707. <![CDATA[
  708. // fDataSearchTree();
  709. ]]>
  710. </script>
  711. </select1>
  712. <caption id="caption14" class="search_name" style="left:6px; top:173px; width:89px; height:17px; ">출력여부 :</caption>
  713. <caption id="caption7" class="search_name" style="left:6px; top:197px; width:89px; height:17px; ">불출여부 :</caption>
  714. <select1 id="rdo_deliveyn" ref="/root/send/SearchTree/deliveyn" navindex="14" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:95px; top:197px; width:170px; height:17px; background-color:transparent; border-style:none; ">
  715. <choices>
  716. <itemset nodeset="/root/init/deliveprcsflag">
  717. <label ref="label"/>
  718. <value ref="value"/>
  719. </itemset>
  720. </choices>
  721. <script type="javascript" ev:event="xforms-value-changed">
  722. <![CDATA[
  723. // fDataSearchTree();
  724. ]]>
  725. </script>
  726. </select1>
  727. <select id="chk_prcpinptflag" ref="/root/send/SearchTree/prcpinptflag" navindex="16" overflow="visible" appearance="full" style="left:265px; top:221px; width:70px; height:20px; border-style:none; ">
  728. <choices>
  729. <item>
  730. <label>CCD 제외</label>
  731. <value>ignore</value>
  732. </item>
  733. </choices>
  734. </select>
  735. <caption id="caption15" class="search_name" style="left:6px; top:221px; width:89px; height:17px; ">처방구분 :</caption>
  736. <select1 id="rdo_erprcpflag" ref="/root/send/SearchTree/erprcpflag" navindex="15" appearance="full" cellspacing="2" cols="2" overflow="visible" style="left:95px; top:221px; width:125px; height:20px; border-style:none; ">
  737. <choices>
  738. <itemset>
  739. <label ref="label"/>
  740. <value ref="value"/>
  741. </itemset>
  742. </choices>
  743. </select1>
  744. <input id="ipt_prcpnm" ref="/root/send/SearchTree/prcpnm" class="input_fix" navindex="12" autonext="false" maxlength="12" style="left:245px; top:149px; width:90px; height:19px; ">
  745. <script type="javascript" ev:event="onkeyup">
  746. <![CDATA[
  747. inputEnterKey("btn_searchTree", "DOMActivate");
  748. ]]>
  749. </script>
  750. </input>
  751. <input id="ipt_prcpcd" ref="/root/send/SearchTree/prcpcd" class="input_fix" navindex="11" autonext="false" imemode="disabled" maxlength="12" _chartype="upper" style="left:95px; top:149px; width:75px; height:19px; ">
  752. <script type="javascript" ev:event="onkeyup">
  753. <![CDATA[
  754. inputEnterKey("btn_searchTree", "DOMActivate");
  755. ]]>
  756. </script>
  757. </input>
  758. <caption id="caption45" class="search_name" style="left:170px; top:149px; width:89px; height:17px; ">처방명 :</caption>
  759. <caption id="caption46" class="search_name" style="left:6px; top:149px; width:96px; height:17px; ">처방코드 :</caption>
  760. </group>
  761. </group>
  762. <group id="group2" visibility="hidden" style="left:645px; top:60px; width:245px; height:140px; ">
  763. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:245px; height:140px; "/>
  764. <object id="sound1" clsid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" style="left:10px; top:10px; width:225px; height:45px; font-size:45; "/>
  765. <select1 id="cmb_alarmsec" ref="/root/temp/alarmsec" appearance="minimal" style="left:10px; top:110px; width:65px; height:19px; ">
  766. <choices>
  767. <item select="true">
  768. <label>끄기</label>
  769. <value>-1</value>
  770. </item>
  771. <item>
  772. <label>5초</label>
  773. <value>5</value>
  774. </item>
  775. <item>
  776. <label>30초</label>
  777. <value>30</value>
  778. </item>
  779. <item>
  780. <label>1분</label>
  781. <value>60</value>
  782. </item>
  783. <item>
  784. <label>5분</label>
  785. <value>300</value>
  786. </item>
  787. </choices>
  788. <script type="javascript" ev:event="xforms-value-changed">
  789. <![CDATA[
  790. alarmTimer = cmb_alarmsec.value;
  791. setCookie("alarmTimer",cmb_alarmsec.value,30);
  792. ]]>
  793. </script>
  794. </select1>
  795. <button id="btn_demon" class="btn1_letter2" style="left:120px; top:109px; width:56px; height:22px; ">
  796. <caption>실행</caption>
  797. <script type="javascript" ev:event="DOMActivate">
  798. <![CDATA[
  799. fSearchNewErprcp();
  800. ]]>
  801. </script>
  802. </button>
  803. <output id="opt_alarm" ref="/root/temp/demonresult" class="output_fix" style="left:40px; top:85px; width:195px; height:19px; "/>
  804. <button id="button2" class="btn1_letter2" style="left:180px; top:109px; width:56px; height:22px; ">
  805. <caption>닫기</caption>
  806. <script type="javascript" ev:event="DOMActivate">
  807. <![CDATA[
  808. group2.visible = false;
  809. ]]>
  810. </script>
  811. </button>
  812. <output id="opt_alarmcount" ref="/root/temp/alarmcount" class="output_fix" style="left:80px; top:110px; width:35px; height:19px; text-align:center; "/>
  813. <button id="btn_addfile" class="btn2_letter4" disabled="true" navindex="21" style="left:170px; top:60px; width:64px; height:19px; ">
  814. <caption>알람파일</caption>
  815. <script type="javascript" ev:event="DOMActivate">
  816. <![CDATA[
  817. var files = window.fileDialog("open", "|", false,"","","Wave Files (*.wav)|*.wav");
  818. if ( files.length <= 0 ) return;
  819. model.setValue("/root/temp/alarmfile", files);
  820. alarmFile = files;
  821. sound1.url = files;
  822. opt_alarmfile.refresh();
  823. // model.setValue(ipt_uploadfile.attribute("ref") , files); //전체파일경로와이름을 셋팅
  824. // var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
  825. // model.setValue(ipt_attfilenm.attribute("ref") , filename);
  826. ]]>
  827. </script>
  828. </button>
  829. <input id="opt_alarmfile" ref="/root/temp/alarmfile" class="output_fix" disabled="true" style="left:10px; top:60px; width:155px; height:19px; "/>
  830. <caption id="caption16" style="left:10px; top:82px; width:35px; height:25px; ">결과</caption>
  831. </group>
  832. <group id="group3" visibility="hidden" style="left:650px; top:285px; width:250px; height:145px; ">
  833. <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:250px; height:145px; border-color:#ff9900; border-width:2px; "/>
  834. <select1 id="rdo_prntlist" ref="/root/temp/prntkey" scroll="vertical" appearance="full" cols="1" vcellspacing="5" overflow="visible" style="left:5px; top:5px; width:175px; height:135px; border-style:none; ">
  835. <choices>
  836. <itemset nodeset="/root/main/list/searchgood/prntlist">
  837. <label ref="prntkey"/>
  838. <value ref="prntkey"/>
  839. </itemset>
  840. </choices>
  841. </select1>
  842. <button id="button4" class="btn4_letter2" style="left:185px; top:45px; width:56px; height:22px; ">
  843. <caption>출력</caption>
  844. <script type="javascript" ev:event="DOMActivate">
  845. <![CDATA[
  846. model.removeNodeset("/root/prtinfo/groupgoodlist");
  847. model.makeNode("/root/prtinfo/groupgoodlist");
  848. rdo_prntlist.refresh();
  849. group5.disabled = true;
  850. group3.visible = true;
  851. copyNodesetType("/root/prtinfo/groupgoodlist","/root/main/list/searchgood/groupgoodlist[prntkey = '" + model.getValue("/root/temp/prntkey") + "']","replace"); // 전체 선불출 노드
  852. exeReportPreview("RPRSD02204", "XMLSTR");
  853. ]]>
  854. </script>
  855. </button>
  856. <button id="button5" class="btn4_letter2" style="left:185px; top:75px; width:56px; height:22px; ">
  857. <caption>닫기</caption>
  858. <script type="javascript" ev:event="DOMActivate">
  859. <![CDATA[
  860. group5.disabled = false;
  861. group3.visible = false;
  862. ]]>
  863. </script>
  864. </button>
  865. </group>
  866. </xhtml:body>
  867. </xhtml:html>