SPPIE00120_발주내역조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <srchcond1>1</srchcond1>
  13. <srchcond2/>
  14. <exceptfromdd/>
  15. <temp/>
  16. <srchcond3/>
  17. </send>
  18. <main>
  19. <list01>
  20. <gridpurcdetl>
  21. <notiyn/>
  22. <edicd/>
  23. <goodcd/>
  24. <itemnm/>
  25. <purcdmnddd/>
  26. <windd/>
  27. <winqty/>
  28. <winamt/>
  29. <oneunitcost/>
  30. <goodspec/>
  31. <winunit/>
  32. <entrregno/>
  33. <custnm/>
  34. <reptflag/>
  35. </gridpurcdetl>
  36. </list01>
  37. </main>
  38. <init/>
  39. <hidden/>
  40. </root>
  41. </instance>
  42. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  43. <submission id="TRPIE00120" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  44. <submission id="TXPIE00120" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/temp" resultref="/root/hidden"/>
  45. </model>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. CommCode_Load();
  49. var vcalcscorcd = "";
  50. vcalcscorcd = opener.javascript.getParameter("calcscorcd");
  51. if(vcalcscorcd != "") {
  52. model.setValue("/root/send/srchcond1", "2");
  53. model.setValue("/root/send/srchcond2", opener.javascript.getParameter("calcscorcd"));
  54. btn_srch.dispatch("onclick");
  55. } else {
  56. model.removeNodeset("/root/main/list01/gridpurcdetl");
  57. }
  58. model.refresh();
  59. ]]>
  60. </script>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  65. <script type="javascript">
  66. <![CDATA[
  67. // 공통코드 Load작업
  68. function CommCode_Load() {
  69. // submit("TRPIE00120");
  70. }
  71. ]]>
  72. </script>
  73. </xhtml:head>
  74. <xhtml:body pagewidth="800" pageheight="600" tracing-position="center" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  75. <group id="group1" style="left:0px; top:0px; width:325px; height:13px; ">
  76. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:325px; height:14px; ">발주내역조회</caption>
  77. </group>
  78. <group id="group3" scroll="auto" style="left:0px; top:68px; width:780px; height:487px; ">
  79. <line id="line1" class="line_1" style="x1:0px; y1:30px; x2:780px; y2:30px; "/>
  80. <caption id="caption2" class="tit_2" style="left:5px; top:13px; width:121px; height:14px; ">발주내역</caption>
  81. <datagrid id="grd_purcdetl" nodeset="/root/main/list01/gridpurcdetl" class="datagrid2" caption="신고&#xA;여부^EDI코드^물품코드^물품명^구매일자^발주일자^발주량^발주금액^단가^전 발주량^전 발주금액^전 단가^수정일시^수가보험가^규격^단위^사업자등록번호^거래처명^신고서구분^^생성^등록번호^청구일자^입원일자^적용일자^환자유형^조합기호^장애수첩^접수번호^심사차수^일련번호^처리구분^총진료비(청구)^본인부담(청구)^청구금액^비고^생성여부" colsep="^" colwidth="38, 80, 100, 149, 80, 80, 85, 85, 80, 85, 85, 80, 120, 80, 100, 76, 96, 106, 75, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:34px; width:780px; height:451px; ">
  82. <col checkvalue="Y,N" ref="notiyn" type="checkbox"/>
  83. <col ref="edicd" type="input" style="text-align:center; "/>
  84. <col ref="goodcd" type="inputbutton" style="text-align:center; "/>
  85. <col ref="itemnm" type="input"/>
  86. <col ref="purcdmnddd" type="input" format="yyyy-mm-dd"/>
  87. <col ref="windd" type="input" format="yyyy-mm-dd"/>
  88. <col ref="winqty" type="input"/>
  89. <col ref="winamt" type="output" format="#,###"/>
  90. <col ref="oneunitcost" savetype="digit" type="input" format="(-)#,###"/>
  91. <col ref="bfwinqty" type="output"/>
  92. <col ref="bfwinamt" type="output" format="#,###"/>
  93. <col ref="bfoneunitcost" savetype="digit" type="output" format="(-)#,###"/>
  94. <col ref="systemdt" type="output" format="yyyy-mm-dd hh:nn:ss"/>
  95. <col ref="insurbpnt" savetype="auto" type="input" format="(-)#,###"/>
  96. <col ref="goodspec" type="input"/>
  97. <col ref="winunit" type="input"/>
  98. <col ref="entrregno" type="input"/>
  99. <col ref="custnm" type="input" style="text-align:center; "/>
  100. <col ref="reptflag" type="input"/>
  101. <col ref="appdd" visibility="hidden"/>
  102. <col ref="appseqno" visibility="hidden"/>
  103. <col ref="ucostequalyn" visibility="hidden"/>
  104. <script type="javascript" ev:event="onbuttonclick">
  105. <![CDATA[
  106. if(grd_purcdetl.col == grd_purcdetl.colRef("goodcd")) {
  107. var rowno = grd_purcdetl.row;
  108. //setParameter("openflag", "hngnm");
  109. modal("../../../pam/calcscormngtweb/xrw/SMPIC00200_수가조회", "", "200", "200" ,"SMPIC00200_수가조회", "", "");
  110. grd_purcdetl.valueMatrix(rowno, grd_purcdetl.colRef("goodcd")) = model.getValue("/root/temp/picmmech/picmmech_calcscorcd");
  111. grd_purcdetl.valueMatrix(rowno, grd_purcdetl.colRef("itemnm")) = model.getValue("/root/temp/picmmech/picmmech_hngnm");
  112. grd_purcdetl.valueMatrix(rowno, grd_purcdetl.colRef("edicd")) = model.getValue("/root/temp/picmmech/picmmech_insuedicd");
  113. model.refresh();
  114. }
  115. ]]>
  116. </script>
  117. <script type="javascript" ev:event="xforms-value-changed">
  118. <![CDATA[
  119. var winqty = grd_purcdetl.valueMatrix(grd_purcdetl.row, grd_purcdetl.colRef("winqty"));
  120. var oneunitcost = grd_purcdetl.valueMatrix(grd_purcdetl.row, grd_purcdetl.colRef("oneunitcost"));
  121. if(grd_purcdetl.col == grd_purcdetl.colRef("winqty")) {
  122. var amt = winqty * oneunitcost;
  123. grd_purcdetl.valueMatrix(grd_purcdetl.row, grd_purcdetl.colRef("winamt")) = amt;
  124. } else if (grd_purcdetl.col == grd_purcdetl.colRef("oneunitcost")) {
  125. var amt = winqty * oneunitcost;
  126. grd_purcdetl.valueMatrix(grd_purcdetl.row, grd_purcdetl.colRef("winamt")) = amt;
  127. }
  128. ]]>
  129. </script>
  130. </datagrid>
  131. <caption id="caption3" style="left:75px; top:13px; width:160px; height:15px; color:#ff6600; ">(실제 발주한 내역 조회결과)</caption>
  132. <button id="button7" class="btn2_letter4" style="left:716px; top:9px; width:64px; height:19px; ">
  133. <caption>액셀저장</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. if(grd_purcdetl.rows <= 1) {
  137. messageBox("저장할 데이터가","I004");
  138. return false;
  139. }
  140. var fileName = window.fileDialog("save", ",", false, "발주내역조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  141. if (fileName != "")
  142. {
  143. grd_purcdetl.saveExcel(fileName, "SheetName", true, true, "", "", "");
  144. }
  145. ]]>
  146. </script>
  147. </button>
  148. <button id="button3" class="btn2_letter3" visibility="visible" style="left:600px; top:9px; width:53px; height:19px; ">
  149. <caption>행추가</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. grd_purcdetl.addRow();
  153. grd_purcdetl.valueMatrix(grd_purcdetl.row,grd_purcdetl.colRef("appdd")) = getCurrentDate();
  154. ]]>
  155. </script>
  156. </button>
  157. <button id="button4" class="btn2_letter3" visibility="visible" style="left:658px; top:9px; width:53px; height:19px; ">
  158. <caption>행삭제</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. var row = grd_purcdetl.row;
  162. grd_purcdetl.deleteRow(row);
  163. ]]>
  164. </script>
  165. </button>
  166. </group>
  167. <group id="grp_btn" scroll="auto" style="left:0px; top:560px; width:780px; height:25px; ">
  168. <button id="button1" class="btn4_letter2" style="left:720px; top:0px; width:56px; height:22px; ">
  169. <caption>닫기</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. // 윈도우 닫기
  173. window.close();
  174. ]]>
  175. </script>
  176. </button>
  177. <button id="button2" class="btn4_letter2" style="left:660px; top:0px; width:56px; height:22px; ">
  178. <caption>저장</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. model.resetInstanceNode("/root/send/temp");
  182. if ( messageBox("","Q002")==6 ) {
  183. var update = getGridUpdateData(grd_purcdetl);
  184. if(update == ""){
  185. messageBox("업데이트 정보가 없습니다.", "I");
  186. return 0;
  187. } else {
  188. model.setValue("/root/send/temp", update);
  189. submit("TXPIE00120");
  190. }
  191. }
  192. //grd_picmrulelist.dispatch("onclick");
  193. var rowcnt = grd_purcdetl.rows;
  194. for(var i = 1 ; i < rowcnt ; i++) {
  195. grd_purcdetl.rowStatus(i) = 0;
  196. }
  197. model.refresh();
  198. ]]>
  199. </script>
  200. </button>
  201. <caption id="caption4" style="left:20px; top:5px; width:345px; height:15px; font-weight:bold; color:#ff0000; ">EDI 코드 '-'는 심평원 치료재료 구입 통보대상이 아님</caption>
  202. </group>
  203. <group id="group2" style="left:0px; top:20px; width:780px; height:40px; ">
  204. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:780px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  205. <button id="btn_srch" class="btn1_letter2" navindex="4" style="left:715px; top:10px; width:56px; height:22px; ">
  206. <caption>조회</caption>
  207. <script type="javascript" ev:event="onclick">
  208. <![CDATA[
  209. if(ipt_fromdd.value == "" & ipt_srchcond2.value == "") {
  210. messageBox("발주일자 또는 EDI코드나 처방코드를","C001");
  211. model.setFocus("ipt_fromdd");
  212. return true;
  213. }
  214. model.removenode("/root/main/list01");
  215. model.refresh();
  216. submit("TRPIE00120");
  217. setRowStyle( "grd_purcdetl" , "14" , "N" , "ucostequalyn" , "equal" );
  218. ]]>
  219. </script>
  220. </button>
  221. <line id="line13" class="line_4" style="x1:707px; y1:10px; x2:707px; y2:32px; "/>
  222. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" navindex="2" inputtype="date" maxlength="8" format="yyyy-mm-dd" appearance="input" style="left:211px; top:11px; width:95px; height:19px; "/>
  223. <input id="ipt_srchcond2" ref="/root/send/srchcond2" class="input_search" navindex="3" appearance="input" style="left:435px; top:11px; width:95px; height:19px; ">
  224. <script type="javascript" ev:event="onkeyup">
  225. <![CDATA[
  226. if(event.keyCode == "13") {
  227. setInputNodeCurText();
  228. if(ipt_srchcond2.value == "") {
  229. return false;
  230. }
  231. model.removenode("/root/main/list01");
  232. model.refresh();
  233. submit("TRPIE00120");
  234. setRowStyle( "grd_purcdetl" , "14" , "N" , "ucostequalyn" , "equal" );
  235. }
  236. ]]>
  237. </script>
  238. </input>
  239. <select1 id="rdo_srchcond1" ref="/root/send/srchcond1" appearance="full" cols="4" rows="1" overflow="visible" style="left:320px; top:12px; width:110px; height:20px; border-style:none; ">
  240. <choices>
  241. <item>
  242. <label>EDI</label>
  243. <value>1</value>
  244. </item>
  245. <item>
  246. <label>처방코드</label>
  247. <value>2</value>
  248. </item>
  249. </choices>
  250. <script type="javascript" ev:event="onclick">
  251. <![CDATA[
  252. model.resetInstanceNode("/root/send/srchcond2");
  253. model.setFocus("ipt_srchcond2");
  254. model.refresh();
  255. ]]>
  256. </script>
  257. </select1>
  258. <caption id="caption1" style="left:195px; top:14px; width:15px; height:15px; ">~</caption>
  259. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" navindex="1" autonext="true" inputtype="date" maxlength="8" format="yyyy-mm-dd" appearance="input" style="left:96px; top:11px; width:95px; height:19px; ">
  260. <caption id="caption7"/>
  261. <script type="javascript" ev:event="DOMFocusOut">
  262. <![CDATA[
  263. ipt_todd.value = ipt_fromdd.value;
  264. ]]>
  265. </script>
  266. </input>
  267. <caption id="caption6" class="search_name" style="left:6px; top:11px; width:89px; height:17px; ">발주일자 :</caption>
  268. <select id="checkbox1" ref="/root/send/srchcond3" visibility="visible" overflow="visible" appearance="full" style="left:545px; top:13px; width:140px; height:17px; border-style:none; ">
  269. <choices>
  270. <item>
  271. <label>단가차이 품목만 조회</label>
  272. <value>Y</value>
  273. </item>
  274. </choices>
  275. </select>
  276. </group>
  277. </xhtml:body>
  278. </xhtml:html>