SPPIE00140_미신고재료현황.xrw 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. <srchcond1>1</srchcond1>
  11. <srchcond2/>
  12. <fromdd/>
  13. <todd/>
  14. </send>
  15. <main>
  16. <list01>
  17. <gridpurcdetl>
  18. <notiyn/>
  19. <edicd/>
  20. <goodcd/>
  21. <itemnm/>
  22. <purcdmnddd/>
  23. <windd/>
  24. <winqty/>
  25. <winamt/>
  26. <oneunitcost/>
  27. <goodspec/>
  28. <winunit/>
  29. <entrregno/>
  30. <custnm/>
  31. <reptflag/>
  32. </gridpurcdetl>
  33. </list01>
  34. </main>
  35. <init/>
  36. <hidden/>
  37. </root>
  38. </instance>
  39. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  40. <submission id="TRPIE00140" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  41. </model>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. /*
  45. CommCode_Load();
  46. var vcalcscorcd = "";
  47. vcalcscorcd = opener.javascript.getParameter("calcscorcd");
  48. if(vcalcscorcd != "") {
  49. model.setValue("/root/send/srchcond1", "2");
  50. model.setValue("/root/send/srchcond2", opener.javascript.getParameter("calcscorcd"));
  51. btn_srch.dispatch("onclick");
  52. } else {
  53. model.removeNodeset("/root/main/list01/gridpurcdetl");
  54. }
  55. */
  56. ipt_fromdd.value = getCurrentDate();
  57. ipt_todd.value = getCurrentDate();
  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="신청번호^EDI코드^물품코드^물품명^규격^단위^사업자등록번호^거래처명^발주일자^발주단가^처방단가" colsep="^" colwidth="100, 90, 90, 180, 75, 75, 110, 110, 90, 90, 90" 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 ref="appno" style="text-align:center; "/>
  83. <col ref="edicd" style="text-align:center; "/>
  84. <col ref="goodcd" style="text-align:center; "/>
  85. <col ref="itemnm" style="text-align:left; "/>
  86. <col ref="spec" style="text-align:center; "/>
  87. <col ref="unit" style="text-align:center; "/>
  88. <col ref="entrregno" style="text-align:center; "/>
  89. <col ref="custnm" style="text-align:center; "/>
  90. <col ref="purcdmnddd" format="yyyy-mm-dd" style="text-align:center; "/>
  91. <col ref="oneunitcost" format="#,###" style="text-align:right; "/>
  92. <col ref="insubrpnt" format="#,###" style="text-align:right; "/>
  93. </datagrid>
  94. <caption id="caption3" visibility="visible" style="left:110px; top:13px; width:292px; height:15px; color:#ff6600; ">(최근 신고금액과 실처방금액과의 차이나는 품목조회)</caption>
  95. <button id="button7" class="btn2_letter4" style="left:716px; top:9px; width:64px; height:19px; ">
  96. <caption>액셀저장</caption>
  97. <script type="javascript" ev:event="DOMActivate">
  98. <![CDATA[
  99. if(grd_purcdetl.rows <= 1) {
  100. messageBox("저장할 데이터가","I004");
  101. return false;
  102. }
  103. var fileName = window.fileDialog("save", ",", false, "미신고재료현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  104. if (fileName != "")
  105. {
  106. grd_purcdetl.saveExcel(fileName, "SheetName", true, true, "", "", "");
  107. }
  108. ]]>
  109. </script>
  110. </button>
  111. <button id="button3" class="btn2_letter3" visibility="hidden" style="left:600px; top:9px; width:53px; height:19px; ">
  112. <caption>행추가</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. grd_purcdetl.addRow();
  116. grd_purcdetl.valueMatrix(grd_purcdetl.row,grd_purcdetl.colRef("appdd")) = getCurrentDate();
  117. ]]>
  118. </script>
  119. </button>
  120. <button id="button4" class="btn2_letter3" visibility="hidden" style="left:658px; top:9px; width:53px; height:19px; ">
  121. <caption>행삭제</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. var row = grd_purcdetl.row;
  125. grd_purcdetl.deleteRow(row);
  126. ]]>
  127. </script>
  128. </button>
  129. </group>
  130. <group id="grp_btn" scroll="auto" style="left:0px; top:560px; width:780px; height:25px; ">
  131. <button id="button1" class="btn4_letter2" style="left:720px; top:0px; width:56px; height:22px; ">
  132. <caption>닫기</caption>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. // 윈도우 닫기
  136. window.close();
  137. ]]>
  138. </script>
  139. </button>
  140. <button id="button2" class="btn4_letter2" visibility="hidden" style="left:660px; top:0px; width:56px; height:22px; ">
  141. <caption>저장</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. model.resetInstanceNode("/root/send/temp");
  145. if ( messageBox("","Q002")==6 ) {
  146. var update = getGridUpdateData(grd_purcdetl);
  147. if(update == ""){
  148. messageBox("업데이트 정보가 없습니다.", "I");
  149. return 0;
  150. } else {
  151. model.setValue("/root/send/temp", update);
  152. submit("TXPIE00120");
  153. }
  154. }
  155. //grd_picmrulelist.dispatch("onclick");
  156. var rowcnt = grd_purcdetl.rows;
  157. for(var i = 1 ; i < rowcnt ; i++) {
  158. grd_purcdetl.rowStatus(i) = 0;
  159. }
  160. model.refresh();
  161. ]]>
  162. </script>
  163. </button>
  164. </group>
  165. <group id="group2" style="left:0px; top:20px; width:780px; height:40px; ">
  166. <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; "/>
  167. <button id="btn_srch" class="btn1_letter2" navindex="4" style="left:715px; top:10px; width:56px; height:22px; ">
  168. <caption>조회</caption>
  169. <script type="javascript" ev:event="onclick">
  170. <![CDATA[
  171. if(ipt_fromdd.value == "") {
  172. messageBox("신고일자를","C001");
  173. model.setFocus("ipt_fromdd");
  174. return true;
  175. }
  176. model.removenode("/root/main/list01");
  177. model.refresh();
  178. submit("TRPIE00140");
  179. //setRowStyle( "grd_purcdetl" , "14" , "N" , "ucostequalyn" , "equal" );
  180. ]]>
  181. </script>
  182. </button>
  183. <line id="line13" class="line_4" style="x1:707px; y1:10px; x2:707px; y2:32px; "/>
  184. <input id="ipt_srchcond2" ref="/root/send/srchcond2" class="input_search" navindex="3" appearance="input" style="left:455px; top:11px; width:115px; height:19px; ">
  185. <script type="javascript" ev:event="onkeyup">
  186. <![CDATA[
  187. if(event.keyCode == "13") {
  188. setInputNodeCurText();
  189. if(ipt_srchcond2.value == "") {
  190. return false;
  191. } else if(ipt_fromdd.value == "") {
  192. messageBox("신청번호를","C001");
  193. model.setFocus("ipt_appno");
  194. return true;
  195. }
  196. model.removenode("/root/main/list01");
  197. model.refresh();
  198. submit("TRPIE00140");
  199. //setRowStyle( "grd_purcdetl" , "14" , "N" , "ucostequalyn" , "equal" );
  200. }
  201. ]]>
  202. </script>
  203. </input>
  204. <select1 id="rdo_srchcond1" ref="/root/send/srchcond1" appearance="full" cols="4" rows="1" overflow="visible" style="left:340px; top:12px; width:110px; height:20px; border-style:none; ">
  205. <choices>
  206. <item>
  207. <label>EDI</label>
  208. <value>1</value>
  209. </item>
  210. <item>
  211. <label>처방코드</label>
  212. <value>2</value>
  213. </item>
  214. </choices>
  215. <script type="javascript" ev:event="onclick">
  216. <![CDATA[
  217. model.resetInstanceNode("/root/send/srchcond2");
  218. model.setFocus("ipt_srchcond2");
  219. model.refresh();
  220. ]]>
  221. </script>
  222. </select1>
  223. <caption id="caption6" class="search_name" style="left:6px; top:11px; width:117px; height:17px; ">신고일자 :</caption>
  224. <caption id="caption1" style="left:195px; top:14px; width:15px; height:15px; ">~</caption>
  225. <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; "/>
  226. <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; ">
  227. <caption id="caption7"/>
  228. <script type="javascript" ev:event="DOMFocusOut">
  229. <![CDATA[
  230. //ipt_todd.value = ipt_fromdd.value;
  231. ]]>
  232. </script>
  233. </input>
  234. </group>
  235. </xhtml:body>
  236. </xhtml:html>