SMMNP02000_일단위 물품 불출.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>일단위 물품 불출</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <oproomlist>
  11. <oproomcd/>
  12. <oproomnm/>
  13. </oproomlist>
  14. <goodflaglist>
  15. <goodflagcd/>
  16. <goodflagnm/>
  17. </goodflaglist>
  18. </init>
  19. <main>
  20. <cond>
  21. <oproomcd/>
  22. <goodcd/>
  23. <goodnm/>
  24. <allsizespecid/>
  25. <refdeptflag>O</refdeptflag>
  26. <cureflag/>
  27. <oprosette/>
  28. <opfromdd/>
  29. <optodd/>
  30. <tabflag>CCR</tabflag>
  31. <subflag>M</subflag>
  32. <erprcpflag>Y</erprcpflag>
  33. <usernm/>
  34. </cond>
  35. <deliveLists>
  36. <delivelist>
  37. <chkflag/>
  38. <oproomnm/>
  39. <goodcd/>
  40. <allsizespecid/>
  41. <goodnm/>
  42. <goodspec/>
  43. <goodmodel/>
  44. <prodcmpynm/>
  45. <prcpunit/>
  46. <prcpqty/>
  47. <deliveqty/>
  48. <undeliveqty/>
  49. <delivetm/>
  50. <delivenm/>
  51. <oproomcd/>
  52. <deliveid/>
  53. <seqno/>
  54. <sumfromdd/>
  55. <sumtodd/>
  56. <delivedd/>
  57. </delivelist>
  58. <prcplist>
  59. <chkflag/>
  60. <oproomnm/>
  61. <goodcd/>
  62. <allsizespecid/>
  63. <goodnm/>
  64. <goodspec/>
  65. <goodmodel/>
  66. <prodcmpynm/>
  67. <prcpunit/>
  68. <prcpqty/>
  69. <deliveqty/>
  70. <undeliveqty/>
  71. <cmt/>
  72. <oproomcd/>
  73. <bfdeliveqty/>
  74. </prcplist>
  75. </deliveLists>
  76. </main>
  77. <send>
  78. </send>
  79. <hidden>
  80. <deliveLists>
  81. <delivelist>
  82. <chkflag/>
  83. <oproomnm/>
  84. <goodcd/>
  85. <allsizespecid/>
  86. <goodnm/>
  87. <goodspec/>
  88. <goodmodel/>
  89. <prodcmpynm/>
  90. <prcpunit/>
  91. <prcpqty/>
  92. <deliveqty/>
  93. <undeliveqty/>
  94. <delivetm/>
  95. <delivenm/>
  96. <oproomcd/>
  97. <deliveid/>
  98. <seqno/>
  99. <sumfromdd/>
  100. <sumtodd/>
  101. <delivedd/>
  102. </delivelist>
  103. </deliveLists>
  104. </hidden>
  105. <viewctrl>
  106. <viewctrllist/>
  107. </viewctrl>
  108. <temp>
  109. <chkcncl/>
  110. <openflag>STOC</openflag>
  111. <logginlevel>
  112. <usrlevel/>
  113. </logginlevel>
  114. </temp>
  115. </root>
  116. </instance>
  117. <submission id="TRMNP03004" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/rosettelist"/>
  118. <submission id="TRMNP03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/oproomlist"/>
  119. <submission id="TRMNP02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/deliveLists"/>
  120. <submission id="TXMNP02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/deliveLists"/>
  121. <submission id="TXMNP02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
  122. <submission id="TRMNP00323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/viewctrl/viewctrllist"/>
  123. <submission id="TRMNP05001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/oproomlist"/>
  124. <submission id="TRMNP02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/deliveLists"/>
  125. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/barcdprntsetup"/>
  126. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/codeinfo"/>
  127. </model>
  128. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  132. <script type="javascript" src="../../../emr/opanstweb/js/SMMNP02000.js"/>
  133. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  134. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  135. <script type="javascript" src="../../../lis/commonweb/js/LAZ001.js"/>
  136. <script type="javascript" ev:event="xforms-ready">
  137. <![CDATA[
  138. fInit();
  139. ]]>
  140. </script>
  141. </xhtml:head>
  142. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  143. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  144. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">일단위 물품 불출</caption>
  145. </group>
  146. <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:1195px; height:762px; ">
  147. <line id="line2" class="line_1" style="x1:0px; y1:90px; x2:1195px; y2:90px; "/>
  148. <line id="line1" class="line_1" style="x1:0px; y1:124px; x2:1194px; y2:124px; "/>
  149. <group id="grp_sea" style="left:0px; top:0px; width:1194px; height:60px; vertical-align:top; ">
  150. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  151. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  152. <caption>조회</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. fSearch();
  156. ]]>
  157. </script>
  158. </button>
  159. <line id="line13" class="line_4" style="x1:1113px; y1:7px; x2:1113px; y2:51px; "/>
  160. <caption id="caption4" class="search_name" style="left:5px; top:35px; width:68px; height:17px; ">수술방:</caption>
  161. <select1 id="cmb_oproomcd" ref="/root/main/cond/oproomcd" class="combo_search" appearance="minimal" style="left:148px; top:35px; width:145px; height:19px; ">
  162. <choices>
  163. <itemset nodeset="/root/init/oproomlist">
  164. <label ref="oproomnm"/>
  165. <value ref="oproomcd"/>
  166. </itemset>
  167. </choices>
  168. </select1>
  169. <caption id="caption29" class="search_name" style="left:310px; top:35px; width:85px; height:17px; ">물품코드:</caption>
  170. <input id="ipt_goodcd" ref="/root/main/cond/goodcd" class="input_search" style="left:395px; top:35px; width:110px; height:19px; ">
  171. <script type="javascript" ev:event="onkeyup">
  172. <![CDATA[
  173. inputEnterKey("btn_search", "DOMActivate");
  174. ]]>
  175. </script>
  176. </input>
  177. <button id="btn_goodsearch" class="icon_search" style="left:515px; top:36px; width:16px; height:16px; ">
  178. <caption/>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. var refflag = model.getValue("/root/temp/refflag");
  182. if( refflag == "1" ) { /*물품명으로 검색*/
  183. setParameter("refnm", model.getValue("/root/main/cond/goodnm"));
  184. setParameter("refflag", "1");
  185. }else if( refflag == "2" ) { /*물품코드으로 검색*/
  186. setParameter("refnm", model.getValue("/root/main/cond/goodcd"));
  187. setParameter("refflag", "2");
  188. }
  189. setParameter("tabflag", "CCR");
  190. setParameter("goodflag", model.getValue("/root/main/cond/goodflag"));
  191. setParameter("menuparam", "S");
  192. setParameter("cartgubn", model.getValue("/root/main/cond/deptflag"));
  193. modal("SMMNP04460" ,"", "100", "100", "SMMNP04460", "", "");
  194. var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
  195. if( getData == "") {
  196. return;
  197. }else {
  198. var getDataTemp1 = getData.split("▩");
  199. var getDataTemp2 = getDataTemp1[0].split("|");
  200. model.setValue("/root/main/cond/goodcd", getDataTemp2[0]);
  201. model.setValue("/root/main/cond/goodnm", getDataTemp2[1]);
  202. model.setValue("/root/main/cond/allsizespecid", getDataTemp2[2]);
  203. //model.setValue("/root/main/cond/goodflag", getDataTemp2[3]);
  204. model.refresh();
  205. }
  206. ]]>
  207. </script>
  208. </button>
  209. <input id="ipt_goodnm" ref="/root/main/cond/goodnm" class="input_search" style="left:535px; top:35px; width:500px; height:19px; ">
  210. <script type="javascript" ev:event="onkeyup">
  211. <![CDATA[
  212. inputEnterKey("btn_search", "DOMActivate");
  213. ]]>
  214. </script>
  215. </input>
  216. <caption id="caption5" class="search_name" style="left:435px; top:10px; width:60px; height:17px; ">부서:</caption>
  217. <caption id="caption9" class="search_name" style="left:600px; top:10px; width:90px; height:17px; ">처방구분:</caption>
  218. <select1 id="combo1" ref="/root/main/cond/cureflag" class="combo_search" appearance="minimal" style="left:690px; top:10px; width:120px; height:19px; ">
  219. <choices>
  220. <item>
  221. <label>전체</label>
  222. <value/>
  223. </item>
  224. <item>
  225. <label>Suture</label>
  226. <value>1</value>
  227. </item>
  228. <item>
  229. <label>Supplies</label>
  230. <value>2</value>
  231. </item>
  232. <item>
  233. <label>Drug</label>
  234. <value>3</value>
  235. </item>
  236. <item>
  237. <label>Instrument</label>
  238. <value>4</value>
  239. </item>
  240. <item>
  241. <label>처치,행위</label>
  242. <value>5</value>
  243. </item>
  244. <item>
  245. <label>린넨/소모품</label>
  246. <value>6</value>
  247. </item>
  248. <item>
  249. <label>Sheet</label>
  250. <value>7</value>
  251. </item>
  252. <item>
  253. <label>Glove</label>
  254. <value>8</value>
  255. </item>
  256. <item>
  257. <label>일반물품</label>
  258. <value>9</value>
  259. </item>
  260. <item>
  261. <label>린넨</label>
  262. <value>10</value>
  263. </item>
  264. <item>
  265. <label>공용</label>
  266. <value>11</value>
  267. </item>
  268. </choices>
  269. </select1>
  270. <select1 id="combo2" ref="/root/main/cond/refdeptflag" class="combo_search" appearance="minimal" style="left:500px; top:10px; width:85px; height:19px; ">
  271. <choices>
  272. <item>
  273. <label>전체</label>
  274. <value/>
  275. </item>
  276. <item>
  277. <label>수술</label>
  278. <value>O</value>
  279. </item>
  280. <item>
  281. <label>마취</label>
  282. <value>A</value>
  283. </item>
  284. <item>
  285. <label>회복</label>
  286. <value>R</value>
  287. </item>
  288. <item>
  289. <label>안과</label>
  290. <value>E</value>
  291. </item>
  292. </choices>
  293. </select1>
  294. <button id="button2" class="btn2_letter3" style="left:1125px; top:35px; width:53px; height:19px; ">
  295. <caption>초기화</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. model.setValue("/root/main/cond/goodcd", "");
  299. model.setValue("/root/main/cond/goodnm", "");
  300. model.setValue("/root/main/cond/allsizespecid", "");
  301. model.setValue("/root/main/cond/variable", "");
  302. model.refresh();
  303. ]]>
  304. </script>
  305. </button>
  306. <select1 id="cmb_rosette" ref="/root/main/cond/oprosette" class="combo_search" appearance="minimal" style="left:87px; top:35px; width:58px; height:19px; ">
  307. <choices>
  308. <itemset nodeset="/root/init/rosettelist">
  309. <label ref="rosettenm"/>
  310. <value ref="rosettecd"/>
  311. </itemset>
  312. </choices>
  313. <script type="javascript" ev:event="xforms-value-changed">
  314. <![CDATA[
  315. model.removenode("/root/send");
  316. model.makeNode("/root/send");
  317. model.makeValue("/root/send/opcnfmdd" ,getCurrentDate().substr(0, 8) );
  318. model.makeValue("/root/send/rosette" ,model.getValue("/root/main/cond/oprosette"));
  319. if(submit("TRMNP03002")){ // 수술실코드 가져오기
  320. addComboItem("cmb_oproomcd","전체","","above");
  321. }
  322. ]]>
  323. </script>
  324. </select1>
  325. <caption id="caption2" class="search_name" style="left:5px; top:8px; width:81px; height:17px; ">수술일자:</caption>
  326. <input id="ipt_reqfromdd" ref="/root/main/cond/opfromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:87px; top:8px; width:90px; height:19px; "/>
  327. <input id="ipt_reqtodd" ref="/root/main/cond/optodd" class="input_s_essential" navindex="2" inputtype="date" style="left:193px; top:8px; width:90px; height:19px; "/>
  328. <caption id="caption11" class="search_n_b" style="left:180px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  329. <caption id="caption1" class="search_name" style="left:820px; top:10px; width:90px; height:17px; ">응급구분:</caption>
  330. <select1 id="radio1" ref="/root/main/cond/erprcpflag" appearance="full" cols="2" overflow="visible" style="left:910px; top:10px; width:125px; height:20px; border-style:none; ">
  331. <choices>
  332. <item>
  333. <label>응급만</label>
  334. <value>Y</value>
  335. </item>
  336. <item>
  337. <label>응급제외</label>
  338. <value>N</value>
  339. </item>
  340. </choices>
  341. <script type="javascript" ev:event="xforms-value-changed">
  342. <![CDATA[
  343. if (radio1.value == "Y") {
  344. // button7.visible = true;
  345. button8.visible = true;
  346. } else if (radio1.value == "N") {
  347. // button7.visible = false;
  348. button8.visible = false;
  349. }
  350. ]]>
  351. </script>
  352. </select1>
  353. <button id="button17" class="btn2_letter2" style="left:380px; top:7px; width:42px; height:19px; ">
  354. <caption>내일</caption>
  355. <script type="javascript" ev:event="DOMActivate">
  356. <![CDATA[
  357. var sChkdd = getCurrentDate();
  358. var sCalcdd = fCalcdate(1, sChkdd);
  359. model.setValue("/root/main/cond/opfromdd", sCalcdd);
  360. model.setValue("/root/main/cond/optodd", sCalcdd);
  361. ipt_reqfromdd.refresh();
  362. ipt_reqtodd.refresh();
  363. ]]>
  364. </script>
  365. </button>
  366. <button id="button18" class="btn2_letter2" style="left:335px; top:7px; width:42px; height:19px; ">
  367. <caption>오늘</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. var sChkdd = getCurrentDate();
  371. model.setValue("/root/main/cond/opfromdd", sChkdd);
  372. model.setValue("/root/main/cond/optodd", sChkdd);
  373. ipt_reqfromdd.refresh();
  374. ipt_reqtodd.refresh();
  375. ]]>
  376. </script>
  377. </button>
  378. <button id="button25" class="btn2_letter2" style="left:290px; top:7px; width:42px; height:19px; ">
  379. <caption>어제</caption>
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. var sChkdd = getCurrentDate();
  383. var sCalcdd = fCalcdate(-1, sChkdd);
  384. model.setValue("/root/main/cond/opfromdd", sCalcdd);
  385. model.setValue("/root/main/cond/optodd", sCalcdd);
  386. ipt_reqfromdd.refresh();
  387. ipt_reqtodd.refresh();
  388. ]]>
  389. </script>
  390. </button>
  391. </group>
  392. <datagrid id="grd_prcplist" nodeset="/root/main/deliveLists/prcplist" class="datagrid2" backcoloralternate="transparent" caption="^수술&#xA;방^등록번호^환자명^물품코드^SUB^물품명^규격^모델^처방&#xA;수량^불출&#xA;수량^미불출^제조원^단위^비고^cartgubn^prcpdd^deptengabbr^sexage^prcpernm^barcdno^수술방코드^이전불출수량" colsep="^" colwidth="35, 40, 65, 65, 80, 40, 280, 125, 120, 50, 50, 50, 100, 68, 100, 100, 100, 100, 100, 100, 100, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:95px; width:1195px; height:335px; ">
  393. <col ref="chkflag" type="checkbox" style="text-align:center; "/>
  394. <col ref="oproomnm" style="text-align:center; "/>
  395. <col ref="pid" visibility="hidden" style="text-align:center; "/>
  396. <col ref="hngnm" visibility="hidden" style="text-align:center; "/>
  397. <col ref="goodcd" style="text-align:center; "/>
  398. <col ref="allsizespecid" style="text-align:center; "/>
  399. <col ref="goodnm" style="text-align:left; "/>
  400. <col ref="goodspec" style="text-align:left; "/>
  401. <col ref="goodmodel" style="text-align:left; "/>
  402. <col ref="prcpqty" style="text-align:right; "/>
  403. <col ref="deliveqty" type="input" style="text-align:right; "/>
  404. <col ref="undeliveqty" style="text-align:right; "/>
  405. <col ref="prodcmpynm" style="text-align:left; "/>
  406. <col ref="prcpunit" type="output" style="text-align:center; "/>
  407. <col ref="cmt" type="input" style="text-align:left; "/>
  408. <col ref="cartgubn" visibility="hidden"/>
  409. <col ref="prcpdd" visibility="hidden"/>
  410. <col ref="deptengabbr" visibility="hidden"/>
  411. <col ref="sexage" visibility="hidden"/>
  412. <col ref="prcpernm" visibility="hidden"/>
  413. <col ref="barcdno"/>
  414. <col ref="oproomcd" style="text-align:left; "/>
  415. <col ref="bfdeliveqty" style="text-align:left; "/>
  416. <script type="javascript" ev:event="onendedit">
  417. <![CDATA[
  418. var iRow = -1;
  419. var iCol = -1;
  420. var deliveqty = 0;
  421. var prcpqty = 0;
  422. var bfdeliveqty = 0;
  423. iRow = grd_prcplist.row;
  424. iCol = grd_prcplist.col;
  425. if (grd_prcplist.rows <= 1 || iCol != 11){
  426. return;
  427. }
  428. //if( event.keyCode == 13 ) {
  429. if( model.getValue("/root/main/deliveLists/prcplist[" + iRow + "]/deliveqty") > "0"||model.getValue("/root/main/deliveLists/prcplist[" + iRow + "]/deliveqty") > "0.0" ) {
  430. model.setValue("/root/main/deliveLists/prcplist[" + iRow + "]/chkflag", "true");
  431. deliveqty = model.getValue("/root/main/deliveLists/prcplist[" + iRow + "]/deliveqty");
  432. prcpqty = model.getValue("/root/main/deliveLists/prcplist[" + iRow + "]/prcpqty");
  433. bfdeliveqty = model.getValue("/root/main/deliveLists/prcplist[" + iRow + "]/bfdeliveqty");
  434. model.setValue("/root/main/deliveLists/prcplist[" + iRow + "]/undeliveqty", (parseInt(prcpqty) - (parseInt(deliveqty)+parseInt(bfdeliveqty))));
  435. //grd_prcplist.row = iRow + 1;
  436. //grd_prcplist.editCell();
  437. }
  438. //}
  439. //model.refresh();
  440. ]]>
  441. </script>
  442. <script type="javascript" ev:event="onaftersort">
  443. <![CDATA[
  444. grd_prcplist.gridToInstance();
  445. ]]>
  446. </script>
  447. </datagrid>
  448. <button id="btn_saveexcel" class="btn2_letter3" style="left:1072px; top:70px; width:53px; height:19px; ">
  449. <caption>Excel</caption>
  450. <script type="javascript" ev:event="DOMActivate">
  451. <![CDATA[
  452. var opfromdd = model.getValue("/root/main/cond/opfromdd");
  453. var optodd = model.getValue("/root/main/cond/optodd");
  454. var fileName = window.fileDialog("save", ",", false, "일단위 물품 불출 처방집계("+opfromdd+"~"+optodd+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  455. if (fileName != "")
  456. {
  457. grd_prcplist.saveExcel(fileName, "SheetName");
  458. }
  459. ]]>
  460. </script>
  461. </button>
  462. <button id="btn_cnfm" class="btn5_letter4" style="left:1128px; top:70px; width:64px; height:19px; ">
  463. <caption>불출확정</caption>
  464. <script type="javascript" ev:event="DOMActivate">
  465. <![CDATA[
  466. fCnfmSave();
  467. ]]>
  468. </script>
  469. </button>
  470. <button id="button1" class="btn2_letter5" style="left:874px; top:70px; width:75px; height:19px; ">
  471. <caption>미불출조회</caption>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. modal("SMMNP02100");
  475. ]]>
  476. </script>
  477. </button>
  478. <button id="button3" class="btn2_letter8" style="left:763px; top:70px; width:108px; height:19px; ">
  479. <caption>수술/마취처방집계</caption>
  480. <script type="javascript" ev:event="DOMActivate">
  481. <![CDATA[
  482. /*setParameter("opfromdd", model.getValue("/root/main/cond/opfromdd"));
  483. setParameter("optodd", model.getValue("/root/main/cond/optodd"));
  484. setParameter("oproomcd", model.getValue("/root/main/cond/oproomcd"));
  485. setParameter("deptflag", model.getValue("/root/main/cond/refdeptflag"));
  486. setParameter("cureflag", model.getValue("/root/main/cond/cureflag"));
  487. setParameter("goodcd", model.getValue("/root/main/cond/goodcd"));
  488. setParameter("allsizespecid", model.getValue("/root/main/cond/allsizespecid"));
  489. setParameter("goodnm", model.getValue("/root/main/cond/goodnm"));*/
  490. modal("SMMNP04000");
  491. ]]>
  492. </script>
  493. </button>
  494. <caption id="caption17" class="tit_2" style="left:0px; top:75px; width:105px; height:13px; vertical-align:middle; ">처방집계</caption>
  495. <caption id="caption3" class="tit_2" style="left:0px; top:440px; width:90px; height:13px; vertical-align:middle; ">불출내역</caption>
  496. <datagrid id="grd_delivelist" nodeset="/root/main/deliveLists/delivelist" class="datagrid2" backcoloralternate="transparent" caption="^수술&#xA;방^등록번호^환자명^물품코드^SUB^물품명^규격^불출/반환&#xA;수량^미불출^불출자^취소여부^비고^순번^집계시작일자^집계종료일자^불출자아이디^불출일시^확인자^확인자^확인&#xA;수량^모델^불출일자^제조원^단위^cartgubn^oproomcd^prcpqty^ordseq^oprsrvno^erprcpflag^prcpdd^perfdeptnm^perfdrnm" colsep="^" colwidth="35, 40, 65, 64, 80, 35, 230, 115, 70, 0, 70, 100, 0, 0, 0, 0, 0, 100, 0, 67, 51, 100, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:460px; width:1195px; height:300px; ">
  497. <col ref="chkflag" type="checkbox" style="text-align:center; "/>
  498. <col ref="oproomnm" style="text-align:center; "/>
  499. <col ref="pid" visibility="hidden" style="text-align:center; "/>
  500. <col ref="hngnm" visibility="hidden" style="text-align:center; "/>
  501. <col ref="goodcd" style="text-align:center; "/>
  502. <col ref="allsizespecid" style="text-align:center; "/>
  503. <col ref="goodnm" style="text-align:left; "/>
  504. <col ref="goodspec" style="text-align:left; "/>
  505. <col ref="deliveqty" style="text-align:right; "/>
  506. <col ref="undeliveqty" style="text-align:right; "/>
  507. <col ref="delivenm" style="text-align:center; "/>
  508. <col ref="delyn" style="text-align:left; "/>
  509. <col ref="cmt" style="text-align:left; "/>
  510. <col ref="seqno" style="text-align:left; "/>
  511. <col ref="sumfromdd" style="text-align:left; "/>
  512. <col ref="sumtodd" style="text-align:left; "/>
  513. <col ref="deliveid" style="text-align:left; "/>
  514. <col ref="delivetm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  515. <col ref="cnfmid" visibility="hidden"/>
  516. <col ref="cnfmnm"/>
  517. <col ref="cnfmqty" type="input"/>
  518. <col ref="goodmodel" style="text-align:left; "/>
  519. <col ref="delivedd" visibility="hidden" format="yyyy-mm-dd" style="text-align:left; "/>
  520. <col ref="prodcmpynm" style="text-align:left; "/>
  521. <col ref="prcpunit" type="output" style="text-align:center; "/>
  522. <col ref="cartgubn" visibility="hidden"/>
  523. <col ref="oproomcd" visibility="hidden"/>
  524. <col ref="prcpqty" visibility="hidden"/>
  525. <col ref="ordseq" visibility="hidden"/>
  526. <col ref="oprsrvno" visibility="hidden"/>
  527. <col ref="erprcpflag" visibility="hidden"/>
  528. <col ref="prcpdd" visibility="hidden"/>
  529. <col ref="perfdeptnm" visibility="hidden"/>
  530. <col ref="perfdrnm" visibility="hidden"/>
  531. <script type="javascript" ev:event="onaftersort">
  532. <![CDATA[
  533. grd_delivelist.gridToInstance();
  534. ]]>
  535. </script>
  536. <script type="javascript" ev:event="xforms-value-changed">
  537. <![CDATA[
  538. // grd_delivelist.cellStyle("color", grd_delivelist.row, grd_delivelist.colRef("delyn"), grd_delivelist.row, grd_delivelist.colRef("delyn"));
  539. if(grd_delivelist.col == grd_delivelist.colRef("cnfmqty")) {
  540. grd_delivelist.valueMatrix(grd_delivelist.row, grd_delivelist.colRef("cnfmid")) = getUserInfo("userid");
  541. grd_delivelist.valueMatrix(grd_delivelist.row, grd_delivelist.colRef("cnfmnm")) = getUserInfo("usernm");
  542. }
  543. ]]>
  544. </script>
  545. <script type="javascript" ev:event="xforms-select">
  546. <![CDATA[
  547. for ( i=1; i<grd_delivelist.rows; i++) {
  548. var delyn = model.getValue("/root/main/deliveLists/delivelist[" + i + "]/delyn");
  549. if (delyn == "취소") {
  550. model.setValue("/root/main/deliveLists/delivelist[" + i + "]/chkflag", "false");
  551. }
  552. }
  553. ]]>
  554. </script>
  555. </datagrid>
  556. <line id="line3" class="line_1" style="x1:0px; y1:455px; x2:1195px; y2:455px; "/>
  557. <button id="btn_cnclcnfm" class="btn5_letter4" style="left:1128px; top:435px; width:64px; height:19px; ">
  558. <caption>확정취소</caption>
  559. <script type="javascript" ev:event="DOMActivate">
  560. <![CDATA[
  561. fCnclCnfmSave();
  562. ]]>
  563. </script>
  564. </button>
  565. <button id="button4" class="btn2_letter3" style="left:1072px; top:435px; width:53px; height:19px; ">
  566. <caption>Excel</caption>
  567. <script type="javascript" ev:event="DOMActivate">
  568. <![CDATA[
  569. var opfromdd = model.getValue("/root/main/cond/opfromdd");
  570. var optodd = model.getValue("/root/main/cond/optodd");
  571. var fileName = window.fileDialog("save", ",", false, "일단위 물품 불출 불출내역("+opfromdd+"~"+optodd+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  572. if (fileName != "")
  573. {
  574. grd_delivelist.saveExcel(fileName, "SheetName");
  575. }
  576. ]]>
  577. </script>
  578. </button>
  579. <button id="button5" class="btn2_letter2" style="left:952px; top:70px; width:42px; height:19px; ">
  580. <caption>출력</caption>
  581. <script type="javascript" ev:event="DOMActivate">
  582. <![CDATA[
  583. fCnfmSave("2");
  584. fPrntList("P");
  585. ]]>
  586. </script>
  587. </button>
  588. <button id="button6" class="btn2_letter2" style="left:1027px; top:435px; width:42px; height:19px; ">
  589. <caption>출력</caption>
  590. <script type="javascript" ev:event="DOMActivate">
  591. <![CDATA[
  592. fPrntList("D");
  593. ]]>
  594. </script>
  595. </button>
  596. <button id="button7" class="btn2_letter4" style="left:957px; top:435px; width:64px; height:19px; ">
  597. <caption>전체출력</caption>
  598. <script type="javascript" ev:event="DOMActivate">
  599. <![CDATA[
  600. fPrntList("A");
  601. ]]>
  602. </script>
  603. </button>
  604. <button id="button8" class="btn5_letter4" style="left:890px; top:435px; width:64px; height:19px; ">
  605. <caption>반납확인</caption>
  606. <script type="javascript" ev:event="DOMActivate">
  607. <![CDATA[
  608. var updtdata = getGridUpdateData(grd_delivelist);
  609. if(updtdata == null || updtdata == "") {
  610. messageBox("반납확인할 목록이 없습니다." , "E");
  611. return;
  612. } else {
  613. var nodes = instance1.selectNodes(grd_delivelist.nodeset + "[delyn='취소' and cnfmqty!='']");
  614. if(nodes.length == 0) {
  615. messageBox("반납확인할 목록이 없습니다." , "E");
  616. return;
  617. }
  618. }
  619. model.makeValue("/root/send/savedata/savelist", updtdata);
  620. submit("TXMNP02002");
  621. ]]>
  622. </script>
  623. </button>
  624. <button id="button9" class="btn2_letter5" style="left:680px; top:70px; width:75px; height:19px; ">
  625. <caption>프린터설정</caption>
  626. <script type="javascript" ev:event="DOMActivate">
  627. <![CDATA[
  628. var scrnid = "SMMNP02000";
  629. model.removeNodeset("/root/main/barcdprntsetup");
  630. fGetBarCodeInfo(scrnid); // CareCom.js
  631. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  632. if(count == 0) {
  633. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  634. }
  635. modal("SPZUR00300" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  636. ]]>
  637. </script>
  638. </button>
  639. <caption id="caption7" style="left:529px; top:71px; width:85px; height:18px; font-weight:bold; ">현재사용자 :</caption>
  640. <output id="opt_usernm" ref="/root/main/cond/usernm" class="output_defualt" style="left:605px; top:70px; width:65px; height:19px; font-weight:bold; text-align:left; "/>
  641. <button id="button10" class="btn2_letter5" style="left:996px; top:70px; width:75px; height:19px; ">
  642. <caption>바코드출력</caption>
  643. <script type="javascript" ev:event="DOMActivate">
  644. <![CDATA[
  645. var erprcpflag = model.getValue("/root/main/cond/erprcpflag");
  646. if(erprcpflag == "Y") {
  647. } else {
  648. messageBox("바코드출력은 응급물품일 경우에만 가능합니다.", "E");
  649. return;
  650. }
  651. fCnfmSave("1");
  652. ]]>
  653. </script>
  654. </button>
  655. </group>
  656. </xhtml:body>
  657. </xhtml:html>