SMPIE00900_인상약신고관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. <send>
  10. <fromdd/>
  11. <todd/>
  12. <calcscorcd/>
  13. <edicd/>
  14. <srchcond1>C</srchcond1>
  15. <srchcond2>I</srchcond2>
  16. <inptcont/>
  17. </send>
  18. <main>
  19. <druglist>
  20. <list01>
  21. <gridlist01>
  22. <chk/>
  23. <edicd/>
  24. <goodcd/>
  25. <goodnm/>
  26. <spec/>
  27. <unit/>
  28. <pre_windd/>
  29. <pre_winqty/>
  30. <pre_winunitcost/>
  31. <pre_winamt/>
  32. <chg_windd/>
  33. <chg_winqty/>
  34. <chg_winunitcost/>
  35. <chg_winamt/>
  36. <makecmpynm/>
  37. </gridlist01>
  38. </list01>
  39. </druglist>
  40. <papercont>
  41. <list02>
  42. <gridlist02>
  43. <fromdd/>
  44. <todd/>
  45. <edicd/>
  46. <hngnm/>
  47. <packunit/>
  48. <packvol/>
  49. <cntsunit/>
  50. <purcamt/>
  51. </gridlist02>
  52. </list02>
  53. <list03>
  54. <gridlist03>
  55. <stkdd/>
  56. <unitcost/>
  57. <inqty/>
  58. <outqty/>
  59. <sumqty/>
  60. </gridlist03>
  61. </list03>
  62. <list04>
  63. <gridlist04>
  64. <prcpdd/>
  65. <unitcost/>
  66. <ioflag/>
  67. <pid/>
  68. <useqty/>
  69. <restqty/>
  70. </gridlist04>
  71. </list04>
  72. </papercont>
  73. </main>
  74. </root>
  75. </instance>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  81. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  82. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  83. <script type="javascript" ev:event="xforms-ready">
  84. <![CDATA[
  85. ipt_fromdd.value = getCurrentDate().substr(0,6)+"01";
  86. ipt_todd.value = getCurrentDate();
  87. ]]>
  88. </script>
  89. <submission id="TRPIE00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  90. <submission id="TRPIE00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/papercont"/>
  91. </model>
  92. </xhtml:head>
  93. <xhtml:body>
  94. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">인상약 신고 관리</caption>
  95. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:741px; ">
  96. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  97. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  98. <button id="btn_select" class="btn1_letter2" style="left:1068px; top:6px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  99. <caption>조회</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. model.removeNodeset("/root/main/druglist/list01");
  103. model.removeNodeset("/root/main/papercont/list02");
  104. model.removeNodeset("/root/main/papercont/list03");
  105. model.removeNodeset("/root/main/papercont/list04");
  106. if (model.getValue("/root/send/srchcond1") == "C") {
  107. model.setValue("/root/send/calcscorcd", model.getValue("/root/send/inptcont"));
  108. } else {
  109. model.setValue("/root/send/edicd", model.getValue("/root/send/inptcont"));
  110. }
  111. submit("TRPIE00901");
  112. ]]>
  113. </script>
  114. </button>
  115. <line id="line13" class="line_4" style="x1:1058px; y1:6px; x2:1058px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  116. <caption id="caption41" class="search_name" style="left:19px; top:9px; width:112px; height:17px; ">구입일자 :</caption>
  117. <caption id="caption11" style="left:204px; top:12px; width:15px; height:15px; ">~</caption>
  118. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:220px; top:8px; width:90px; height:19px; "/>
  119. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:110px; top:8px; width:90px; height:19px; ">
  120. <caption id="caption7"/>
  121. <script type="javascript" ev:event="DOMFocusOut">
  122. <![CDATA[
  123. //model.setValue("/root/send/todd",model.getValue("/root/send/fromdd"));
  124. //model.refreshpart("/root/send/todd");
  125. ]]>
  126. </script>
  127. </input>
  128. <button id="button11" class="btn1_letter2" style="left:1126px; top:6px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  129. <caption>출력</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. model.removenode("/root/hidden/list02");
  133. model.removenode("/root/hidden/list03");
  134. model.removenode("/root/hidden/list04");
  135. model.makeNode("/root/hidden/list02");
  136. model.makeNode("/root/hidden/list03");
  137. model.makeNode("/root/hidden/list04");
  138. model.copyNode("/root/hidden/list02", "/root/main/papercont/list02");
  139. model.copyNode("/root/hidden/list03", "/root/main/papercont/list03");
  140. model.copyNode("/root/hidden/list04", "/root/main/papercont/list04");
  141. exeReportPreview("RPPIE00910", "XMLSTR", "","", "false","","","","","false"); ;
  142. ]]>
  143. </script>
  144. </button>
  145. <select1 id="radio1" ref="/root/send/srchcond2" overflow="visible" appearance="full" cellspacing="5" cols="2" style="left:828px; top:9px; width:195px; height:15px; border-style:none; ">
  146. <choices>
  147. <item>
  148. <label>전체조회</label>
  149. <value>A</value>
  150. </item>
  151. <item>
  152. <label>인상약만 조회</label>
  153. <value>I</value>
  154. </item>
  155. </choices>
  156. </select1>
  157. <input id="ipt_srchcond2" ref="/root/send/inptcont" class="input_search" appearance="input" style="left:552px; top:8px; width:130px; height:19px; "/>
  158. <select1 id="rdo_srchcond1" ref="/root/send/srchcond1" overflow="visible" appearance="full" cols="4" rows="1" style="left:462px; top:9px; width:85px; height:20px; border-style:none; ">
  159. <choices>
  160. <item>
  161. <label>수가</label>
  162. <value>C</value>
  163. </item>
  164. <item>
  165. <label>EDI</label>
  166. <value>E</value>
  167. </item>
  168. </choices>
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. model.setFocus("ipt_srchcond2");
  172. ]]>
  173. </script>
  174. </select1>
  175. <caption id="caption4" class="search_name" style="left:738px; top:9px; width:112px; height:17px; ">조회조건 :</caption>
  176. <caption id="caption5" class="search_name" style="left:373px; top:9px; width:112px; height:17px; ">코드조회 :</caption>
  177. </group>
  178. <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:165px; height:14px; ">인상약 내역</caption>
  179. <line id="line1" class="line_1" style="x1:0px; y1:76px; x2:1195px; y2:75px; "/>
  180. <caption id="caption57" class="tit_2" style="left:5px; top:278px; width:162px; height:13px; ">조회코드 변경 상세내역</caption>
  181. <line id="line24" class="line_1" style="x1:0px; y1:296px; x2:667px; y2:296px; "/>
  182. <line id="line7" class="line_1" style="left:670px; x1:670px; y1:296px; x2:1194px; y2:296px; "/>
  183. <caption id="caption2" class="tit_2" style="left:670px; top:278px; width:167px; height:13px; ">일자별 상세 사용현황</caption>
  184. <line id="line2" class="line_1" style="x1:0px; y1:498px; x2:667px; y2:498px; "/>
  185. <caption id="caption3" class="tit_2" style="left:5px; top:480px; width:162px; height:13px; ">약제창고 입출 상세내역</caption>
  186. <datagrid id="grid01" nodeset="/root/main/druglist/list01/gridlist01" caption="^EDI코드^품목코드^품목명^규격^단위^최종구입내역^최종구입내역^최종구입내역^최종구입내역^조회기간 중 최초구입내역^조회기간 중 최초구입내역^조회기간 중 최초구입내역^조회기간 중 최초구입내역^제조회사|^EDI코드^품목코드^품목명^규격^단위^구입일자^구입수량^구입단가^구입금액^구입일자^구입수량^구입단가^구입금액^제조회사" colsep="^" colwidth="25, 80, 90, 160, 45, 45, 85, 55, 70, 80, 85, 55, 70, 80, 100" dataheight="25" defaultrows="2" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:79px; width:1195px; height:190px; ">
  187. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  188. <col ref="edicd" style="text-align:center; "/>
  189. <col ref="goodcd" style="text-align:center; "/>
  190. <col ref="goodnm" style="text-align:left; "/>
  191. <col ref="spec" style="text-align:center; "/>
  192. <col ref="unit" style="text-align:center; "/>
  193. <col ref="pre_windd" format="yyyy-mm-dd" style="text-align:center; "/>
  194. <col ref="pre_winqty" format="#,###" style="text-align:right; "/>
  195. <col ref="pre_winunitcost" format="#,###" style="text-align:right; "/>
  196. <col ref="pre_winamt" format="#,###" style="text-align:right; "/>
  197. <col ref="chg_windd" format="yyyy-mm-dd" style="text-align:center; "/>
  198. <col ref="chg_winqty" format="#,###" style="text-align:right; "/>
  199. <col ref="chg_winunitcost" format="#,###" style="text-align:right; "/>
  200. <col ref="chg_winamt" format="#,###" style="text-align:right; "/>
  201. <col ref="makecmpynm"/>
  202. <script type="javascript" ev:event="ondblclick">
  203. <![CDATA[
  204. var goodcd = grid01.valueMatrix(grid01.row, grid01.colRef("goodcd"));
  205. model.setValue("/root/send/calcscorcd", goodcd);
  206. submit("TRPIE00902");
  207. ]]>
  208. </script>
  209. </datagrid>
  210. <datagrid id="grid02" nodeset="/root/main/papercont/list02/gridlist02" class="datagrid2" caption="적용일자^종료일자^청구코드^약제명칭^포장단위^환산수량^규격^입고단가" colsep="^" colwidth="90, 90, 80, 120, 60, 60, 60, 86" dataheight="25" defaultrows="2" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:301px; width:667px; height:169px; ">
  211. <![CDATA[/>]]>
  212. <col ref="fromdd" format="yyyy-mm-dd" _chartype="upper" style="text-align:center; "/>
  213. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  214. <col ref="edicd" style="text-align:center; "/>
  215. <col ref="hngnm" style="text-align:left; "/>
  216. <col ref="packunit" style="text-align:center; "/>
  217. <col ref="packvol" style="text-align:center; "/>
  218. <col ref="cntsunit" style="text-align:center; "/>
  219. <col ref="purcamt" format="#,###" style="text-align:right; "/>
  220. </datagrid>
  221. <datagrid id="grid03" nodeset="/root/main/papercont/list03/gridlist03" class="datagrid2" caption="입출일자^단가^입고수량^출고수량^당일합산" colsep="^" colwidth="90, 90, 80, 80, 80" dataheight="25" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:503px; width:667px; height:233px; ">
  222. <![CDATA[/>]]>
  223. <col ref="stkdd" type="input" format="yyyy-mm-dd" _chartype="upper" style="text-align:center; "/>
  224. <col ref="unitcost" type="input" format="#,###" style="text-align:right; "/>
  225. <col ref="inqty" type="input" format="#,###" style="text-align:right; "/>
  226. <col ref="outqty" type="input" format="#,###" style="text-align:right; "/>
  227. <col ref="sumqty" type="input" format="(-)#,###" style="text-align:right; "/>
  228. </datagrid>
  229. <datagrid id="grid04" nodeset="/root/main/papercont/list04/gridlist04" class="datagrid2" caption="처방일자^단가^구분^환자번호^수량^사용후잔량" colsep="^" colwidth="100, 80, 60, 90, 70, 70" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:670px; top:301px; width:525px; height:435px; ">
  230. <col ref="prcpdd" type="input" format="yyyy-mm-dd" _chartype="upper" style="text-align:center; "/>
  231. <col ref="unitcost" type="input" format="#,###" style="text-align:right; "/>
  232. <col ref="ioflag" type="input" style="text-align:center; "/>
  233. <col ref="pid" type="input" style="text-align:center; "/>
  234. <col ref="useqty" type="input" format="#,###" style="text-align:right; "/>
  235. <col ref="restqty" type="input" format="(-)#,###" style="text-align:right; "/>
  236. </datagrid>
  237. <button id="btn_delrow" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1138px; top:275px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  238. <caption>행삭제</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. for(var i = (grid04.selectedRows-1); i >= 0; i--)
  242. {
  243. var row = grid04.selectedRow(i);
  244. model.destroy("/root/main/papercont/list04/gridlist04["+row+"]");
  245. }
  246. grid04.rebuild();
  247. ]]>
  248. </script>
  249. </button>
  250. <button id="btn_addrow" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1084px; top:275px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  251. <caption>행추가</caption>
  252. <script type="javascript" ev:event="onclick">
  253. <![CDATA[
  254. var rowcnt = model.getValue("/root/main/papercont/list04/gridlist04");
  255. if(eval(rowcnt) + 1 == "999") {
  256. messageBox("더이상 행추가를 하실수","I004");
  257. return false;
  258. } else {
  259. grid04.addRow();
  260. model.refresh();
  261. }
  262. ]]>
  263. </script>
  264. </button>
  265. <button id="button1" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:610px; top:477px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  266. <caption>행삭제</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. for(var i = (grid03.selectedRows-1); i >= 0; i--)
  270. {
  271. var row = grid03.selectedRow(i);
  272. model.destroy("/root/main/papercont/list03/gridlist03["+row+"]");
  273. }
  274. grid03.rebuild();
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="button2" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:556px; top:477px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  279. <caption>행추가</caption>
  280. <script type="javascript" ev:event="onclick">
  281. <![CDATA[
  282. var rowcnt = model.getValue("/root/main/papercont/list03/gridlist03");
  283. if(eval(rowcnt) + 1 == "999") {
  284. messageBox("더이상 행추가를 하실수","I004");
  285. return false;
  286. } else {
  287. grid03.addRow();
  288. model.refresh();
  289. }
  290. ]]>
  291. </script>
  292. </button>
  293. </group>
  294. </xhtml:body>
  295. </xhtml:html>