SMRSD07400_진료재료 취소 현황.xrw 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <returngoodlist/>
  12. <returndetaillist/>
  13. <returndaylist/>
  14. <searchinfo>
  15. <searchtime/>
  16. </searchinfo>
  17. </list>
  18. </main>
  19. <send>
  20. <searchinfo>
  21. <instcd/>
  22. <acptddfr/>
  23. <acptddto/>
  24. <sumcnt>0</sumcnt>
  25. <reqflag/>
  26. <prcpdeptcd/>
  27. <prcpdeptnm/>
  28. <goodcd/>
  29. <goodnm/>
  30. <wareflag/>
  31. <wareflagarr/>
  32. <deptflag/>
  33. <ignoreset>ignore</ignoreset>
  34. <dayflag/>
  35. </searchinfo>
  36. <save>
  37. <returnlist/>
  38. </save>
  39. </send>
  40. <init>
  41. <erprcpdeptlist>
  42. <returndeptlist>
  43. <deptcd>2280200000,2280230000,2500000000,3050135010</deptcd>
  44. <deptnm>[전체] 응급의료센터</deptnm>
  45. </returndeptlist>
  46. <returndeptlist>
  47. <deptcd>2280200000</deptcd>
  48. <deptnm>응급의료센터</deptnm>
  49. </returndeptlist>
  50. <returndeptlist>
  51. <deptcd>2280230000</deptcd>
  52. <deptnm>응급의료센터(EICU)</deptnm>
  53. </returndeptlist>
  54. <returndeptlist>
  55. <deptcd>2500000000</deptcd>
  56. <deptnm>응급의료센터(응급실)</deptnm>
  57. </returndeptlist>
  58. <returndeptlist>
  59. <deptcd>3050135010</deptcd>
  60. <deptnm>응급의료센터(응급입원실)</deptnm>
  61. </returndeptlist>
  62. </erprcpdeptlist>
  63. </init>
  64. <temp>
  65. <printnode/>
  66. <viewzeroqty/>
  67. </temp>
  68. <combo>
  69. <number>
  70. <value/>
  71. </number>
  72. <redata>
  73. <label/>
  74. <value/>
  75. </redata>
  76. </combo>
  77. <printdata>
  78. <returnempllist/>
  79. </printdata>
  80. <printsend>
  81. <nowtime/>
  82. </printsend>
  83. </root>
  84. </instance>
  85. <script type="javascript" ev:event="xforms-ready">
  86. <![CDATA[
  87. fInitialize(); // 화면 Control을 초기화한다
  88. ]]>
  89. </script>
  90. <submission id="TRRSD07401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchinfo" resultref="/root/main/list"/>
  91. <submission id="TRRSD07402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchinfo" resultref="/root/init/deptlist"/>
  92. <submission id="TXRSD07401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/returnlist" resultref="/root/temp"/>
  93. <submission id="TRRSD07403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchinfo" resultref="/root/combo"/>
  94. <submission id="TRRSD07404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchinfo" resultref="/root/printdata"/>
  95. </model>
  96. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  98. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  99. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  102. <script type="javascript">
  103. <![CDATA[
  104. function fInitialize()
  105. {
  106. if(getUserInfo("dutplceinstcd") == "032") {
  107. cap_acptddsearch.value = "집계일자 :";
  108. // btn_returngoodcase_er.visible = true;
  109. // btn_returndetailcase_er.visible = true;
  110. }
  111. //부서구분 공통코드 ID
  112. var deptflagGRID = getUserInfo("dutplceinstcd") + "R0029";
  113. var pcdgrupid_list = "C0048,R0450,030R0034," + deptflagGRID;
  114. var pcontrol_name_list = "cmb_instcd_search,chk_wareflag,grd_returngoodlist.erprcpflag,rbo_deptflag";
  115. misfComboComCdListMulti(pcdgrupid_list,pcontrol_name_list);
  116. addGridComboItem("rbo_deptflag", "전체", "", "above");
  117. misfComboCopyItemSet(rbo_deptflag, "" , grd_returngoodlist, "deptflag");
  118. misfComboCopyItemSet(rbo_deptflag, "" , grd_divgoodlist, "deptflag");
  119. model.setValue("/root/send/searchinfo/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  120. if(getUserInfo("dutplceinstcd") == "031" || getUserInfo("dutplceinstcd") == "033" ) {
  121. chk_wareflag.value = "2";
  122. }
  123. if(getUserInfo("dutplcecd") == "3080000000" || getUserInfo("dutplcecd") == "4020334000"
  124. || getUserInfo("dutplcecd") == "3360000000") { // 진료재료 파트인 경우 수작업 반납등록, 전부서 조회 가능
  125. if(submit("TRRSD07402")){
  126. if(cmb_prcpdeptcd.length != 0)
  127. addGridComboItem("cmb_prcpdeptcd", "[전체]", "", "above");
  128. }
  129. rbo_deptflag.visible = true;
  130. rbo_deptflag.disabled = false;
  131. cmb_prcpdeptcd.visible = true;
  132. cmb_prcpdeptcd.disabled = false;
  133. //btn_save.visible = true;
  134. btn_save.disabled = false;
  135. } else {
  136. rbo_deptflag.visible = false;
  137. cmb_prcpdeptcd.visible = false;
  138. //btn_save.visible = false;
  139. var chkNode = instance1.selectNodes("/root/init/erprcpdeptlist/returndeptlist[deptcd='" + getUserInfo("dutplcecd") + "']");
  140. if(getUserInfo("dutplceinstcd") == "031" && chkNode != null && chkNode.length > 0) {
  141. cmb_prcpdeptcd_sub.visible = true;
  142. cmb_prcpdeptcd_sub.select(0);
  143. } else if(getUserInfo("dutplceinstcd") == "033" && chkNode != null && chkNode.length > 0) {
  144. cmb_prcpdeptcd_sub.visible = true;
  145. cmb_prcpdeptcd_sub.select(0);
  146. } else {
  147. ipt_prcpdeptnm.visible = true;
  148. cmb_prcpdeptcd.value = getUserInfo("dutplcecd");
  149. ipt_prcpdeptnm.value = getUserInfo("dutplcenm");
  150. }
  151. grd_returngoodlist.colHidden(grd_returngoodlist.colRef("new_rtnqty")) = true;
  152. grd_returngoodlist.colHidden(grd_returngoodlist.colRef("aftqty")) = true;
  153. }
  154. //일자조회
  155. model.setValue("/root/send/searchinfo/dayflag", "day");
  156. submit("TRRSD07403");
  157. var value = model.getValue("/root/combo/number/value");
  158. model.setValue("/root/send/searchinfo/acptddfr", value);
  159. //차수조회
  160. model.setValue("/root/send/searchinfo/dayflag", "number");
  161. submit("TRRSD07403");
  162. value = model.getValue("/root/combo/number/value");
  163. for(i = 1 ; i <= value ; i++){
  164. var label = i + "차";
  165. addComboItem( "cmb_sumcnt", label, i, "above");
  166. }
  167. cmb_sumcnt.select(0);
  168. model.refresh();
  169. btn_search.dispatch("DOMActivate");
  170. }
  171. function fDetailSearchPopup(target, flag) {
  172. if(flag == "notrtn"){
  173. var objGrid = document.controls(target);
  174. var sendNode = "/root/temp/sendpopup";
  175. if(objGrid.col >= objGrid.colRef("goodcd") && objGrid.col <= objGrid.colRef("rtnqty")){
  176. model.removeNodeset("/root/temp/sendpopup");
  177. model.makeNode(sendNode);
  178. model.makeValue(sendNode + "/instcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("instcd")));
  179. model.makeValue(sendNode + "/prcpdeptcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("prcpdeptcd")));
  180. model.makeValue(sendNode + "/prcpdeptnm", objGrid.valueMatrix(objGrid.row, objGrid.colRef("prcpdeptnm")));
  181. model.makeValue(sendNode + "/goodcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("goodcd")));
  182. model.makeValue(sendNode + "/erprcpflag", objGrid.valueMatrix(objGrid.row, objGrid.colRef("erprcpflag")));
  183. model.makeValue(sendNode + "/fpopup", "1");
  184. if(target == "grd_divgoodlist") {
  185. model.setValue(sendNode + "/erprcpflag", "A");
  186. }
  187. model.makeValue(sendNode + "/acptddfr",objGrid.valueMatrix(objGrid.row, objGrid.colRef("genracptdd")));
  188. model.makeValue(sendNode + "/acptddto",objGrid.valueMatrix(objGrid.row, objGrid.colRef("lastacptdd")));
  189. model.makeValue(sendNode + "/genrsumcnt",objGrid.valueMatrix(objGrid.row, objGrid.colRef("genrsumcnt")));
  190. model.makeValue(sendNode + "/lastsumcnt",objGrid.valueMatrix(objGrid.row, objGrid.colRef("lastsumcnt")));
  191. model.makeValue(sendNode + "/sumcnt",objGrid.valueMatrix(objGrid.row, objGrid.colRef("sumcnt")));
  192. model.makeValue(sendNode + "/facptddfr",ipt_acptddfr.value);
  193. model.makeValue(sendNode + "/fsumcnt", cmb_sumcnt.value);
  194. modal("SMRSD07500", "", "", "", "popup", sendNode, "/root/temp" );
  195. }
  196. }else if(flag == "rtn"){
  197. var objGrid = document.controls(target);
  198. var sendNode = "/root/temp/sendpopup";
  199. model.removeNodeset("/root/temp/sendpopup");
  200. model.makeNode(sendNode);
  201. model.makeValue(sendNode + "/instcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("instcd")));
  202. model.makeValue(sendNode + "/prcpdeptcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("prcpdeptcd")));
  203. model.makeValue(sendNode + "/prcpdeptnm", objGrid.valueMatrix(objGrid.row, objGrid.colRef("prcpdeptnm")));
  204. model.makeValue(sendNode + "/goodcd", objGrid.valueMatrix(objGrid.row, objGrid.colRef("goodcd")));
  205. model.makeValue(sendNode + "/erprcpflag", objGrid.valueMatrix(objGrid.row, objGrid.colRef("erprcpflag")));
  206. model.makeValue(sendNode + "/fpopup", "2");
  207. model.makeValue(sendNode + "/acptddfr",ipt_acptddfr.value);
  208. model.makeValue(sendNode + "/sumcnt", cmb_sumcnt.value);
  209. modal("SMRSD07500", "", "", "", "popup", sendNode, "/root/temp" );
  210. }
  211. }
  212. ]]>
  213. </script>
  214. </xhtml:head>
  215. <xhtml:body pagewidth="1220" pageheight="800" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  216. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  217. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:15px; ">진료재료 취소 현황</caption>
  218. </group>
  219. <group id="group5" scroll="auto" style="left:0px; top:23px; width:1195px; height:759px; ">
  220. <button id="btn_returngoodcase" class="btn_sw" group="tab" selected="true" style="left:0px; top:85px; width:125px; height:22px; ">
  221. <caption>물품별 미반납 현황</caption>
  222. <toggle case="cse_returngoodcase" ev:event="onclick"/>
  223. </button>
  224. <button id="btn_divgoodcase" class="btn_sw" group="tab" style="left:125px; top:85px; width:150px; height:22px; ">
  225. <caption>분할처방 사용물품 현황</caption>
  226. <toggle case="cse_divgoodcase" ev:event="onclick"/>
  227. </button>
  228. <button id="btn_returndetailcase" class="btn_sw" visibility="hidden" group="tab" style="left:275px; top:85px; width:125px; height:22px; ">
  229. <caption>일자별 취소 현황</caption>
  230. <toggle case="cse_returndetailcase" ev:event="onclick"/>
  231. </button>
  232. <button id="btn_divgooddetailcase" class="btn_sw" visibility="hidden" group="tab" style="left:400px; top:85px; width:185px; height:22px; ">
  233. <caption>일자별 분할처방 사용물품 현황</caption>
  234. <toggle case="cse_divgooddetailcase" ev:event="onclick"/>
  235. </button>
  236. <switch id="switch1" style="left:0px; top:105px; width:1195px; height:650px; ">
  237. <case id="cse_returngoodcase" selected="true">
  238. <caption id="caption5" class="tit_2" style="left:5px; top:10px; width:575px; height:15px; ">물품별 처방집계 미반납 내역</caption>
  239. <datagrid id="grd_returngoodlist" nodeset="/root/main/list/returngoodlist[divuseyn='N' and aftqty!=0]" caption="기관코드^부서구분^부서^부서코드^정규/응급^물품코드^물품코드^최종집계^물품명^규격^미반납수량^반납수량^남은수량^분할사용여부^응급여부" colsep="^" colwidth="0, 56, 176, 0, 60, 79, 0, 85, 245, 241, 70, 70, 70, 40, 30, 100, 100" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" navindex="14" style="left:0px; top:35px; width:1190px; height:610px; font-weight:normal; text-align:center; ">
  240. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  241. <col disabled="true" ref="deptflag" type="combo" style="text-align:center; ">
  242. <choices>
  243. <itemset nodeset="/root/init/deptflag">
  244. <label ref="label"/>
  245. <value ref="value"/>
  246. </itemset>
  247. </choices>
  248. </col>
  249. <col ref="prcpdeptnm" style="text-align:left; padding-left:5; "/>
  250. <col ref="prcpdeptcd" visibility="hidden"/>
  251. <col disabled="true" ref="erprcpflag" type="combo" style="text-align:center; ">
  252. <choices>
  253. <itemset>
  254. <label/>
  255. <value/>
  256. </itemset>
  257. </choices>
  258. </col>
  259. <col ref="goodcd" style="text-align:center; "/>
  260. <col ref="allsizespecid" visibility="hidden" style="text-align:center; "/>
  261. <col ref="lastacptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  262. <col ref="goodnm" style="text-align:left; padding-left:5; "/>
  263. <col ref="goodspec" style="text-align:left; "/>
  264. <col ref="rtnqty" format="(-)#,###.#" style="text-align:right; "/>
  265. <col ref="new_rtnqty" type="output" format="(-)#,###.#" style="text-align:right; "/>
  266. <col ref="aftqty" format="(-)#,###.#" style="text-align:right; "/>
  267. <col ref="divuseyn" visibility="hidden"/>
  268. <col ref="genracptdd" visibility="hidden"/>
  269. <col ref="genrsumcnt" visibility="hidden"/>
  270. <col ref="lastsumcnt" visibility="hidden"/>
  271. <script type="javascript" ev:event="onaftersort">
  272. <![CDATA[
  273. grd_returngoodlist.gridToInstance();
  274. ]]>
  275. </script>
  276. <script type="javascript" ev:event="onrowchanged">
  277. <![CDATA[
  278. var instcd = grd_returngoodlist.valueMatrix(grd_returngoodlist.row,grd_returngoodlist.colRef("instcd"));
  279. var prcpdeptcd = grd_returngoodlist.valueMatrix(grd_returngoodlist.row,grd_returngoodlist.colRef("prcpdeptcd"));
  280. var goodcd = grd_returngoodlist.valueMatrix(grd_returngoodlist.row,grd_returngoodlist.colRef("goodcd"));
  281. var allsizespecid = grd_returngoodlist.valueMatrix(grd_returngoodlist.row,grd_returngoodlist.colRef("allsizespecid"));
  282. grd_gooddetaillist.nodeset = "root/main/list/returndetaillist[instcd='" + instcd + "' and prcpdeptcd='" + prcpdeptcd + "' and goodcd='" + goodcd + "' and allsizespecid='" +allsizespecid + "']";
  283. grd_gooddetaillist.refresh();
  284. ]]>
  285. </script>
  286. <script type="javascript" ev:event="xforms-value-changed">
  287. <![CDATA[
  288. var currentRow = grd_returngoodlist.row;
  289. var rtnqty = grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("rtnqty"));
  290. var new_rtnqty = grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("new_rtnqty"));
  291. if(parseFloat(rtnqty) - parseFloat(new_rtnqty) < 0) {
  292. alert("반납수량은 미반납수량을 초과 할 수 업습니다.");
  293. grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("new_rtnqty")) = "";
  294. grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("aftqty")) = "";
  295. grd_returngoodlist.rowStatus(currentRow) = "0";
  296. return;
  297. }
  298. if(new_rtnqty == "" || parseFloat(new_rtnqty) <= 0) {
  299. grd_returngoodlist.rowStatus(currentRow) = "0";
  300. grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("new_rtnqty")) = "";
  301. grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("aftqty")) = "";
  302. } else {
  303. grd_returngoodlist.rowStatus(currentRow) = "1";
  304. grd_returngoodlist.valueMatrix(currentRow,grd_returngoodlist.colRef("aftqty")) = parseFloat(rtnqty) - parseFloat(new_rtnqty);
  305. }
  306. grd_returngoodlist.refresh();
  307. ]]>
  308. </script>
  309. <script type="javascript" ev:event="ondblclick">
  310. <![CDATA[
  311. if(grd_returngoodlist.colRef("rtnqty") >= grd_returngoodlist.col && grd_returngoodlist.colRef("goodcd") <= grd_returngoodlist.col) {
  312. fDetailSearchPopup(event.currentTarget,"notrtn");
  313. btn_search.dispatch("DOMActivate");
  314. }else if(grd_returngoodlist.colAttribute(grd_returngoodlist.col,"ref") == "new_rtnqty"){
  315. fDetailSearchPopup(event.currentTarget,"rtn");
  316. }
  317. ]]>
  318. </script>
  319. </datagrid>
  320. <line id="line2" class="line_1" style="x1:0px; y1:29px; x2:1190px; y2:29px; "/>
  321. <button id="btn_print1" class="btn2_letter7" navindex="17" style="left:940px; top:5px; width:97px; height:19px; ">
  322. <caption>미반납집계 출력</caption>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. model.removeNodeset("/root/temp/printnode");
  326. model.makeNode("/root/temp/printnode");
  327. model.makeNode("/root/temp/printnode/list");
  328. copyNodesetType("/root/temp/printnode/list","/root/main/list/returngoodlist[divuseyn='N' and aftqty !=0]","replace");
  329. model.makeValue("/root/temp/printnode/searchtime",model.getValue("/root/main/list/searchinfo/searchtime"));
  330. if(instance1.selectNodes("/root/temp/printnode").length > 0)
  331. exeReportPreview("RPRSD07201", "XMLSTR");
  332. ]]>
  333. </script>
  334. </button>
  335. <button id="btn_excel" class="btn5_letter3" style="left:1125px; top:5px; width:53px; height:19px; ">
  336. <caption>Excel</caption>
  337. <script type="javascript" ev:event="DOMActivate">
  338. <![CDATA[
  339. var vdate = new Date();
  340. var HH = vdate.getHours();
  341. var MI = vdate.getMinutes();
  342. var SS = vdate.getSeconds();
  343. var vTime = HH +"" + MI +"" + SS;
  344. var vFileNM = "물품 처방집계 미반납 내역_"+getCurrentDate()+ vTime;
  345. var fileName = window.fileDialog("save", ",", false, vFileNM, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  346. if (fileName != "")
  347. {
  348. grd_returngoodlist.saveExcel(fileName, vFileNM, true, true, "");
  349. }
  350. ]]>
  351. </script>
  352. </button>
  353. <datagrid id="grd_gooddetaillist" nodeset="/root/temp/gooddetail/returndetaillist" visibility="hidden" caption="기관코드^부서코드^물품코드^물품코드^물품명^규격^집계일자^집계횟수^수량^누적수량" colsep="^" colwidth="15, 75, 79, 29, 200, 150, 75, 60, 60, 60" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:410px; top:425px; width:705px; height:120px; font-weight:normal; text-align:center; ">
  354. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  355. <col ref="prcpdeptcd" visibility="hidden"/>
  356. <col ref="goodcd" style="text-align:center; "/>
  357. <col ref="allsizespecid" style="text-align:center; "/>
  358. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  359. <col ref="goodspec" style="text-align:left; "/>
  360. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  361. <col ref="sumcnt" style="text-align:center; "/>
  362. <col ref="rtnqty" format="(-)#,###.#" style="text-align:right; "/>
  363. <col ref="accrue_qty" format="(-)#,###.#" style="text-align:right; "/>
  364. </datagrid>
  365. <button id="btn_save" class="btn4_letter2" disabled="true" navindex="18" visibility="hidden" style="left:800px; top:5px; width:56px; height:22px; ">
  366. <caption>저장</caption>
  367. <script type="javascript" ev:event="DOMActivate">
  368. <![CDATA[
  369. var updtdata = "";
  370. updtdata = getGridUpdateData(grd_returngoodlist);
  371. if(updtdata == ""){
  372. messageBox("저장할 데이타가 ","E014");
  373. return false;
  374. }
  375. model.setValue("/root/send/save/returnlist", updtdata);
  376. if(submit("TXRSD07401")){
  377. btn_search.dispatch("DOMActivate");
  378. }
  379. ]]>
  380. </script>
  381. </button>
  382. <button id="button6" class="btn2_letter6" navindex="16" style="left:1038px; top:5px; width:86px; height:19px; ">
  383. <caption>반납집계 출력</caption>
  384. <script type="javascript" ev:event="DOMActivate">
  385. <![CDATA[
  386. submit("TRRSD07404");
  387. model.setValue("/root/printsend/nowtime",getCurrentDateTime().substr(0,8)+getCurrentDateTime().substr(9,6));
  388. exeReportPreview("RPRSD07203", "XMLSTR","/root/printsend");
  389. ]]>
  390. </script>
  391. </button>
  392. </case>
  393. <case id="cse_returndetailcase">
  394. <caption id="cpt_dis" class="tit_2" style="left:5px; top:10px; width:570px; height:15px; ">반납물품 집계 세부내역</caption>
  395. <datagrid id="grd_returndetaillist" nodeset="/root/main/list/returndaylist[divuseyn='N']" caption="기관코드^집계일자^부서^부서코드^집계횟수^물품코드^물품코드^물품명^규격^처방수량^불출수량^취소수량^반납수량^남은수량^단위^반납등록자^분할사용여부^응급여부" colsep="^" colwidth="15, 80, 160, 100, 60, 79, 29, 200, 150, 60, 60, 60, 60, 60, 63, 80, 30, 30" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:0px; top:35px; width:1190px; height:610px; font-weight:normal; text-align:center; ">
  396. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  397. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  398. <col ref="prcpdeptnm" style="text-align:left; padding-left:5; "/>
  399. <col ref="prcpdeptcd" visibility="hidden"/>
  400. <col ref="sumcnt" style="text-align:center; "/>
  401. <col ref="goodcd" style="text-align:center; "/>
  402. <col ref="allsizespecid" style="text-align:center; "/>
  403. <col ref="goodnm" style="text-align:left; padding-left:5; "/>
  404. <col ref="goodspec" style="text-align:left; "/>
  405. <col ref="prcpqty" format="(-)#,###.#" style="text-align:right; "/>
  406. <col ref="deliveqty" format="(-)#,###.#" style="text-align:right; "/>
  407. <col ref="dcqty" format="(-)#,###.#" style="text-align:right; "/>
  408. <col ref="rtnqty" format="(-)#,###.#" style="text-align:right; "/>
  409. <col ref="accrue_qty" format="(-)#,###.#" style="text-align:right; "/>
  410. <col ref="prcpunit" visibility="hidden" style="text-align:left; padding-left:5; "/>
  411. <col ref="rtnpsnnm" style="text-align:left; padding-left:5; "/>
  412. <col ref="divuseyn" visibility="hidden"/>
  413. <col ref="erprcpflag" visibility="hidden"/>
  414. <script type="javascript" ev:event="onaftersort">
  415. <![CDATA[
  416. grd_returndetaillist.gridToInstance();
  417. ]]>
  418. </script>
  419. <script type="javascript" ev:event="ondblclick">
  420. <![CDATA[
  421. fDetailSearchPopup(event.currentTarget,"notrtn");
  422. ]]>
  423. </script>
  424. </datagrid>
  425. <line id="line1" class="line_1" style="x1:0px; y1:29px; x2:1190px; y2:29px; "/>
  426. <button id="btn_excel2" class="btn5_letter3" style="left:1125px; top:5px; width:53px; height:19px; ">
  427. <caption>Excel</caption>
  428. <script type="javascript" ev:event="DOMActivate">
  429. <![CDATA[
  430. var vdate = new Date();
  431. var HH = vdate.getHours();
  432. var MI = vdate.getMinutes();
  433. var SS = vdate.getSeconds();
  434. var vTime = HH +"" + MI +"" + SS;
  435. var vFileNM = "일자별 반납물품 집계내역_"+getCurrentDate()+ vTime;
  436. var fileName = window.fileDialog("save", ",", false, vFileNM, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  437. if (fileName != "")
  438. {
  439. grd_returndetaillist.saveExcel(fileName, vFileNM, true, true, "");
  440. }
  441. ]]>
  442. </script>
  443. </button>
  444. <button id="button5" class="btn2_letter7" navindex="15" style="left:1020px; top:5px; width:97px; height:19px; ">
  445. <caption>취소집계 출력</caption>
  446. <script type="javascript" ev:event="DOMActivate">
  447. <![CDATA[
  448. model.removeNodeset("/root/temp/printnode");
  449. model.makeNode("/root/temp/printnode");
  450. model.makeNode("/root/temp/printnode/list");
  451. copyNodesetType("/root/temp/printnode/list","/root/main/list/returndaylist[divuseyn='N']","replace");
  452. model.makeValue("/root/temp/printnode/searchtime",model.getValue("/root/main/list/searchinfo/searchtime"));
  453. var prcpdeptcd = model.getValue("/root/temp/printnode/list/prcpdeptcd");
  454. if(instance1.selectNodes("/root/temp/printnode/list[prcpdeptcd!='" + prcpdeptcd + "']").length > 0) {
  455. messageBox("시행부서를 선택하지", "E007");
  456. return;
  457. }
  458. if(instance1.selectNodes("/root/temp/printnode").length > 0)
  459. exeReportPreview("RPRSD07202", "XMLSTR");
  460. ]]>
  461. </script>
  462. </button>
  463. </case>
  464. <case id="cse_divgoodcase">
  465. <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:575px; height:15px; ">분할처방 사용물품 미불출 내역</caption>
  466. <button id="button1" class="btn5_letter3" style="left:1125px; top:5px; width:53px; height:19px; ">
  467. <caption>Excel</caption>
  468. <script type="javascript" ev:event="DOMActivate">
  469. <![CDATA[
  470. var vdate = new Date();
  471. var HH = vdate.getHours();
  472. var MI = vdate.getMinutes();
  473. var SS = vdate.getSeconds();
  474. var vTime = HH +"" + MI +"" + SS;
  475. var vFileNM = "분할처방 사용물품 미불출 내역_"+getCurrentDate()+ vTime;
  476. var fileName = window.fileDialog("save", ",", false, vFileNM, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  477. if (fileName != "")
  478. {
  479. grd_divgoodlist.saveExcel(fileName, vFileNM, true, true, "");
  480. }
  481. ]]>
  482. </script>
  483. </button>
  484. <datagrid id="grd_divgoodlist" nodeset="/root/main/list/returngoodlist[divuseyn='Y']" caption="기관코드^부서구분^부서^부서코드^물품코드^물품코드^정규/응급^최종집계^물품명^규격^미불출수량^분할사용여부" colsep="^" colwidth="15, 56, 160, 68, 79, 29, 60, 70, 364, 180, 70, 40, 0, 0, 0" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" navindex="13" style="left:0px; top:35px; width:1190px; height:610px; font-weight:normal; text-align:center; ">
  485. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  486. <col disabled="true" ref="deptflag" type="combo" style="text-align:center; ">
  487. <choices>
  488. <itemset nodeset="/root/init/deptflag">
  489. <label ref="label"/>
  490. <value ref="value"/>
  491. </itemset>
  492. </choices>
  493. </col>
  494. <col ref="prcpdeptnm" style="text-align:left; padding-left:5; "/>
  495. <col ref="prcpdeptcd" visibility="hidden"/>
  496. <col ref="goodcd" style="text-align:center; "/>
  497. <col ref="allsizespecid" style="text-align:center; "/>
  498. <col ref="erprcpflag" visibility="hidden"/>
  499. <col ref="lastacptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  500. <col ref="goodnm" style="text-align:left; padding-left:5; "/>
  501. <col ref="goodspec" style="text-align:left; "/>
  502. <col ref="rtnqty" format="(-)#,###.#" style="text-align:right; "/>
  503. <col ref="divuseyn" visibility="hidden"/>
  504. <col ref="genracptdd" visibility="hidden"/>
  505. <col ref="genrsumcnt" visibility="hidden"/>
  506. <col ref="lastsumcnt" visibility="hidden"/>
  507. <script type="javascript" ev:event="onaftersort">
  508. <![CDATA[
  509. grd_divgoodlist.gridToInstance();
  510. ]]>
  511. </script>
  512. <script type="javascript" ev:event="ondblclick">
  513. <![CDATA[
  514. fDetailSearchPopup(event.currentTarget,"notrtn");
  515. ]]>
  516. </script>
  517. </datagrid>
  518. <line id="line3" class="line_1" style="x1:0px; y1:29px; x2:1190px; y2:29px; "/>
  519. </case>
  520. <case id="cse_divgooddetailcase">
  521. <button id="button2" class="btn5_letter3" style="left:1125px; top:5px; width:53px; height:19px; ">
  522. <caption>Excel</caption>
  523. <script type="javascript" ev:event="DOMActivate">
  524. <![CDATA[
  525. var vdate = new Date();
  526. var HH = vdate.getHours();
  527. var MI = vdate.getMinutes();
  528. var SS = vdate.getSeconds();
  529. var vTime = HH +"" + MI +"" + SS;
  530. var vFileNM = "일자별 분할처방 사용물품 집계내역_"+getCurrentDate()+ vTime;
  531. var fileName = window.fileDialog("save", ",", false, vFileNM, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  532. if (fileName != "")
  533. {
  534. grd_divgooddetaillist.saveExcel(fileName, vFileNM, true, true, "");
  535. }
  536. ]]>
  537. </script>
  538. </button>
  539. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:570px; height:15px; ">분할 처방 사용물품 집계 세부내역</caption>
  540. <datagrid id="grd_divgooddetaillist" nodeset="/root/main/list/returndaylist[divuseyn='Y']" caption="기관코드^집계일자^부서^부서코드^집계횟수^물품코드^물품코드^물품명^규격^처방수량^불출수량^취소수량^미불출수량^남은수량^단위^반납등록자^분할사용여부" colsep="^" colwidth="15, 80, 160, 100, 60, 79, 29, 200, 150, 60, 60, 60, 75, 60, 63, 80, 100" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="24" rowsep="|" style="left:0px; top:35px; width:1190px; height:610px; font-weight:normal; text-align:center; ">
  541. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  542. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  543. <col ref="prcpdeptnm" style="text-align:left; padding-left:5; "/>
  544. <col ref="prcpdeptcd" visibility="hidden"/>
  545. <col ref="sumcnt" style="text-align:center; "/>
  546. <col ref="goodcd" style="text-align:center; "/>
  547. <col ref="allsizespecid" style="text-align:center; "/>
  548. <col ref="goodnm" style="text-align:left; padding-left:5; "/>
  549. <col ref="goodspec" style="text-align:left; "/>
  550. <col ref="prcpqty" format="(-)#,###.#" style="text-align:right; "/>
  551. <col ref="deliveqty" format="(-)#,###.#" style="text-align:right; "/>
  552. <col ref="dcqty" format="(-)#,###.#" style="text-align:right; "/>
  553. <col ref="rtnqty" format="(-)#,###.#" style="text-align:right; "/>
  554. <col ref="accrue_qty" format="(-)#,###.#" style="text-align:right; "/>
  555. <col ref="prcpunit" visibility="hidden" style="text-align:left; padding-left:5; "/>
  556. <col ref="rtnpsnnm" visibility="hidden" style="text-align:left; padding-left:5; "/>
  557. <col ref="divuseyn" visibility="hidden"/>
  558. <script type="javascript" ev:event="onaftersort">
  559. <![CDATA[
  560. grd_divgooddetaillist.gridToInstance();
  561. ]]>
  562. </script>
  563. <script type="javascript" ev:event="ondblclick">
  564. <![CDATA[
  565. fDetailSearchPopup(event.currentTarget,"notrtn");
  566. ]]>
  567. </script>
  568. </datagrid>
  569. <line id="line4" class="line_1" style="x1:0px; y1:29px; x2:1190px; y2:29px; "/>
  570. </case>
  571. </switch>
  572. <group id="grp_key" style="left:0px; top:0px; width:1195px; height:80px; vertical-align:top; ">
  573. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:80px; background-color:#fffbf2; border-color:#ffd799; "/>
  574. <caption id="cap_instcd_search" class="search_name" style="left:5px; top:11px; width:89px; height:17px; ">기관코드 :</caption>
  575. <button id="btn_search" class="btn1_letter2" navindex="11" style="left:1120px; top:30px; width:56px; height:22px; text-align:left; ">
  576. <caption>조회</caption>
  577. <script type="javascript" ev:event="DOMActivate">
  578. <![CDATA[
  579. if(chk_viewZeroqty.value == "true") {
  580. grd_returngoodlist.attribute("nodeset") = "/root/main/list/returngoodlist[divuseyn='N']";
  581. } else {
  582. grd_returngoodlist.attribute("nodeset") = "/root/main/list/returngoodlist[divuseyn='N' and aftqty!=0]";
  583. }
  584. grd_returngoodlist.refresh();
  585. if(submit("TRRSD07401")){
  586. model.refresh();
  587. }
  588. ]]>
  589. </script>
  590. </button>
  591. <caption id="cap_prcpdeptcd" class="search_name" style="left:325px; top:10px; width:89px; height:17px; ">시행부서 :</caption>
  592. <input id="ipt_prcpdeptcd" ref="/root/send/searchinfo/prcpdeptcd" class="input_fix" navindex="12" visibility="hidden" style="left:590px; top:10px; width:140px; height:19px; "/>
  593. <select id="chk_wareflag" ref="/root/send/searchinfo/wareflagarr" disabled="false" navindex="8" visibility="visible" overflow="visible" appearance="full" cols="3" sep="," vcellspacing="3" style="left:864px; top:11px; width:236px; height:42px; text-align:center; border-style:none; ">
  594. <choices>
  595. <itemset>
  596. <label ref="label"/>
  597. <value ref="value"/>
  598. </itemset>
  599. </choices>
  600. <script type="javascript" ev:event="xforms-value-changed">
  601. <![CDATA[
  602. var bfwareflag = model.getValue("/root/temp/bfwareflag");
  603. var dsplflag = model.getValue(chk_wareflag.attribute("ref"));
  604. if (isSearchString(bfwareflag, 'A')){
  605. model.setValue(chk_wareflag.attribute("ref"), dsplflag.replace("A", ""));
  606. }else{
  607. dsplflagArr = dsplflag.split(",");
  608. for (var i=0; i< dsplflagArr.length; i++){
  609. if (dsplflagArr[i] == "A"){
  610. model.setValue(chk_wareflag.attribute("ref"), "A");
  611. break;
  612. }
  613. }
  614. }
  615. model.makeValue("/root/temp/bfwareflag", model.getValue(chk_wareflag.attribute("ref")));
  616. chk_wareflag.refresh();
  617. ]]>
  618. </script>
  619. </select>
  620. <caption id="cap_wareflag" class="search_name" style="left:775px; top:11px; width:89px; height:17px; ">사용구분 :</caption>
  621. <input id="ipt_goodcd_search" ref="/root/send/searchinfo/goodcd" class="input_default" navindex="6" imemode="disabled" _chartype="upper" style="left:415px; top:50px; width:130px; height:19px; ">
  622. <script type="javascript" ev:event="onkeyup">
  623. <![CDATA[
  624. inputEnterKey("btn_search", "DOMActivate");
  625. ]]>
  626. </script>
  627. </input>
  628. <input id="ipt_goodnm_search" ref="/root/send/searchinfo/goodnm" class="input_default" navindex="7" style="left:640px; top:49px; width:130px; height:19px; ">
  629. <script type="javascript" ev:event="onkeyup">
  630. <![CDATA[
  631. inputEnterKey("btn_search", "DOMActivate");
  632. ]]>
  633. </script>
  634. </input>
  635. <caption id="cap_goodcd_search" class="search_name" style="left:325px; top:50px; width:89px; height:17px; ">물품코드 :</caption>
  636. <caption id="cap_goodnm_search" class="search_name" style="left:555px; top:49px; width:94px; height:17px; ">물 품 명 :</caption>
  637. <select1 id="cmb_instcd_search" ref="/root/send/searchinfo/instcd" class="combo_default" disabled="true" navindex="0" appearance="minimal" style="left:95px; top:11px; width:170px; height:19px; ">
  638. <choices>
  639. <itemset>
  640. <label/>
  641. <value/>
  642. </itemset>
  643. </choices>
  644. </select1>
  645. <line id="line15" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:73px; border-color:#ffd799; "/>
  646. <input id="ipt_acptddfr" ref="/root/send/searchinfo/acptddfr" class="input_s_essential" navindex="4" inputtype="date" style="left:95px; top:50px; width:95px; height:19px; ">
  647. <script type="javascript" ev:event="xforms-value-changed">
  648. <![CDATA[
  649. model.setValue("/root/send/searchinfo/dayflag", "number");
  650. submit("TRRSD07403");
  651. var value = model.getValue("/root/combo/number/value");
  652. for(i = 1 ; i <= value ; i++){
  653. var label = i + "차";
  654. addComboItem( "cmb_sumcnt", label, i, "above");
  655. }
  656. cmb_sumcnt.select(0);
  657. ]]>
  658. </script>
  659. </input>
  660. <caption id="cap_acptddsearch" class="search_name" style="left:5px; top:51px; width:90px; height:17px; ">취소일자 :</caption>
  661. <select1 id="cmb_prcpdeptcd" ref="/root/send/searchinfo/prcpdeptcd" class="combo_default" disabled="true" navindex="3" appearance="minimal" editmode="search" style="left:590px; top:10px; width:170px; height:19px; ">
  662. <choices>
  663. <itemset nodeset="/root/init/deptlist/returndeptlist">
  664. <label ref="deptnm"/>
  665. <value ref="deptcd"/>
  666. </itemset>
  667. </choices>
  668. </select1>
  669. <select id="chk_ignoreset" ref="/root/send/searchinfo/ignoreset" navindex="9" overflow="visible" appearance="full" style="left:865px; top:50px; width:74px; height:20px; border-style:none; ">
  670. <choices>
  671. <item>
  672. <label>Set 제외</label>
  673. <value>ignore</value>
  674. </item>
  675. </choices>
  676. </select>
  677. <input id="ipt_prcpdeptnm" ref="/root/send/searchinfo/prcpdeptnm" class="output_fix" navindex="-1" visibility="hidden" editable="false" _chartype="upper" style="left:415px; top:10px; width:170px; height:19px; "/>
  678. <select1 id="cmb_prcpdeptcd_sub" ref="/root/send/searchinfo/prcpdeptcd" class="combo_default" navindex="-1" visibility="hidden" appearance="minimal" style="left:415px; top:10px; width:170px; height:19px; ">
  679. <choices>
  680. <itemset nodeset="/root/init/erprcpdeptlist/returndeptlist">
  681. <label ref="deptnm"/>
  682. <value ref="deptcd"/>
  683. </itemset>
  684. </choices>
  685. </select1>
  686. <select1 id="rbo_deptflag" ref="/root/send/searchinfo/deptflag" class="input_default" disabled="true" navindex="2" appearance="full" cols="4" rows="1" overflow="visible" style="left:415px; top:12px; width:175px; height:16px; background-color:transparent; border-style:none; ">
  687. <choices>
  688. <itemset>
  689. <label/>
  690. <value/>
  691. </itemset>
  692. </choices>
  693. <script type="javascript" ev:event="xforms-value-changed">
  694. <![CDATA[
  695. var selectOption = "";
  696. if(rbo_deptflag.value != "") {
  697. selectOption = "[deptcd='' or deptflag='" + rbo_deptflag.value + "']";
  698. }
  699. cmb_prcpdeptcd.choices.itemset.attribute("nodeset") = "/root/init/deptlist/returndeptlist" + selectOption;
  700. cmb_prcpdeptcd.select(0);
  701. cmb_prcpdeptcd.refresh();
  702. ]]>
  703. </script>
  704. </select1>
  705. <select1 id="cmb_sumcnt" ref="/root/send/searchinfo/sumcnt" navindex="5" appearance="minimal" style="left:200px; top:50px; width:65px; height:19px; ">
  706. <choices>
  707. <itemset nodeset="/root/combo/redata">
  708. <label ref="label"/>
  709. <value ref="value"/>
  710. </itemset>
  711. </choices>
  712. <script type="javascript" ev:event="xforms-value-changed">
  713. <![CDATA[
  714. btn_search.dispatch("DOMActivate");
  715. ]]>
  716. </script>
  717. </select1>
  718. <select id="chk_viewZeroqty" ref="/root/temp/viewzeroqty" navindex="10" overflow="visible" appearance="full" style="left:945px; top:50px; width:135px; height:20px; border-style:none; ">
  719. <choices>
  720. <item>
  721. <label>반납완료 물품표시</label>
  722. <value>true</value>
  723. </item>
  724. </choices>
  725. <hint>
  726. <![CDATA[반납이 완료 된 물품을 표시합니다.]]>
  727. </hint>
  728. </select>
  729. <caption id="caption2" class="search_name" style="left:776px; top:49px; width:89px; height:17px; ">추가조건 :</caption>
  730. </group>
  731. <output id="out_searchtime" ref="/root/main/list/searchinfo/searchtime" appearance="output" style="left:1045px; top:83px; width:140px; height:19px; text-align:center; "/>
  732. </group>
  733. </xhtml:body>
  734. </xhtml:html>