SMRSO21900_거래처별사용현황(경북대).xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.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. <delivelist/>
  11. </main>
  12. <send>
  13. <search>
  14. <instcd/>
  15. <ddfrom/>
  16. <ddto/>
  17. <wareflag/>
  18. <wareflagnm/>
  19. <goodcd/>
  20. <goodnm/>
  21. <custcode/>
  22. <custnm/>
  23. <acntfrom/>
  24. <acntto/>
  25. <acntfromnm/>
  26. <acnttonm/>
  27. </search>
  28. <save/>
  29. </send>
  30. <init>
  31. <acnt/>
  32. </init>
  33. <hidden/>
  34. <temp>
  35. </temp>
  36. <popgood>
  37. <instcd/>
  38. <wareflag/>
  39. <goodcd/>
  40. <goodnm/>
  41. <returntype/>
  42. <selectyn/>
  43. </popgood>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. //화면 Control을 초기화한다
  49. makeReportPreview(0,123,1195,637);
  50. model.removenode( "/root/main/delivelist");
  51. //misfComboComCdListMulti("Z0007","cmb_instcd"); //기관코드
  52. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  53. //misfComboComCdList("030M0001",cmb_wareflag, "Y"); //창고 (Y: 전체 item 추가시)
  54. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
  55. model.setValue("/root/send/search/wareflag", ""); //창고설정. '전체'
  56. model.setValue("/root/send/search/ddfrom" , getCurrentDate() ) //기간 설정 //.substr(0,6)); //.toDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD")
  57. model.setValue("/root/send/search/ddto" , getCurrentDate() ) //기간 설정 //.substr(0,6));
  58. submit("TRRSO20602"); //계정 목록 조회
  59. model.refresh();
  60. ]]>
  61. </script>
  62. <submission id="TRRSO20602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/acnt"/>
  63. <submission id="TRRSO21901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  70. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  71. <script type="javascript">
  72. <![CDATA[
  73. ]]>
  74. </script>
  75. </xhtml:head>
  76. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  77. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  78. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">거래처별 사용현황</caption>
  79. </group>
  80. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  81. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
  82. </group>
  83. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  84. <group id="grp_search" style="left:0px; top:9px; width:1195px; height:75px; vertical-align:top; ">
  85. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
  86. <button id="btn_search" class="btn1_letter2" navindex="11" style="left:1120px; top:30px; width:56px; height:22px; ">
  87. <caption>조회</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. model.removeNodeset("/root/main/delivelist");
  91. //년월에 입력된 값이 올바르지 않으면, 년월을 선택하라고 alert함
  92. if(ipt_ddfrom.value.length < 8) {
  93. messageBox("출고일자가 올바로 선택되지 않았습니다. \n\n먼저 출고일자을 선택하십시요.", "E999", "");
  94. model.setFocus("ipt_ddfrom");
  95. return;
  96. }
  97. if(ipt_ddto.value.length < 8) {
  98. messageBox("출고일자가 올바로 선택되지 않았습니다. \n\n먼저 출고일자을 선택하십시요.", "E999", "");
  99. model.setFocus("ipt_ddto");
  100. return;
  101. }
  102. //창고명을 report 에 넘겨주기 위해 instance에 setting한다.
  103. model.setValue("/root/send/search/wareflagnm", cmb_wareflag.label);
  104. model.setValue("/root/send/search/acntfromnm", cmb_acntfrom.label);
  105. model.setValue("/root/send/search/acnttonm", cmb_acntto.label);
  106. if (submit("TRRSO21901") ){
  107. exeReportPreview("RPRSO21901", "XMLSTR");//, "/root/main/payamt");
  108. }
  109. ]]>
  110. </script>
  111. </button>
  112. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:97px; top:10px; width:136px; height:19px; ">
  113. <choices>
  114. <itemset nodeset="/root/main/init">
  115. <label ref="cnstnm"/>
  116. <value ref="cnstcd"/>
  117. </itemset>
  118. </choices>
  119. </select1>
  120. <caption id="cap_instcd" class="search_name" style="left:18px; top:10px; width:82px; height:17px; ">기관코드</caption>
  121. <input id="ipt_ddfrom" ref="/root/send/search/ddfrom" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:522px; top:10px; width:90px; height:19px; text-align:center; "/>
  122. <line id="line30" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:58px; "/>
  123. <caption id="caption2" class="search_name" style="left:261px; top:10px; width:55px; height:17px; ">창고</caption>
  124. <select1 id="cmb_wareflag" ref="/root/send/search/wareflag" class="combo_default" navindex="2" appearance="minimal" style="left:315px; top:10px; width:100px; height:19px; ">
  125. <choices>
  126. <item>
  127. <label>전체</label>
  128. <value/>
  129. </item>
  130. <item>
  131. <label>물류재료</label>
  132. <value>1</value>
  133. </item>
  134. <item>
  135. <label>진료재료</label>
  136. <value>2</value>
  137. </item>
  138. <item>
  139. <label>수술재료</label>
  140. <value>3</value>
  141. </item>
  142. <item>
  143. <label>검사재료</label>
  144. <value>4</value>
  145. </item>
  146. <item>
  147. <label>진단재료</label>
  148. <value>5</value>
  149. </item>
  150. <item>
  151. <label>장비재료</label>
  152. <value>9</value>
  153. </item>
  154. </choices>
  155. </select1>
  156. <caption id="caption9" class="search_name" style="left:442px; top:10px; width:76px; height:17px; ">출고일자</caption>
  157. <caption id="caption4" style="left:613px; top:10px; width:10px; height:20px; font-weight:bold; ">-</caption>
  158. <input id="ipt_ddto" ref="/root/send/search/ddto" navindex="4" inputtype="date" format="yyyy-mm-dd" style="left:625px; top:10px; width:90px; height:19px; text-align:center; "/>
  159. <input id="ipt_goodcd" ref="/root/send/search/goodcd" class="input_default" navindex="9" maxlength="12" style="left:521px; top:35px; width:88px; height:19px; "/>
  160. <output id="opt_goodnm" ref="/root/send/search/goodnm" class="output_fix" appearance="output" style="left:630px; top:35px; width:208px; height:19px; "/>
  161. <caption id="caption13" class="search_name" style="left:441px; top:35px; width:80px; height:17px; vertical-align:middle; ">물품코드</caption>
  162. <button id="btn_goodcdfrom" class="icon_search" navindex="10" style="left:612px; top:35px; width:16px; height:16px; ">
  163. <caption/>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. //popup 에 전달할 parameter를 setting한다.
  167. model.setValue("/root/popgood/instcd", cmb_instcd.value);
  168. model.setValue("/root/popgood/wareflag", ""); //창고별 물품인 경우에는 창고코드 넣어줌( cmb_wareflag.value )
  169. model.setValue("/root/popgood/returntype", "2"); //goodnm도 함께 return 받고자 할때, returntype을 "2" 로 설정.
  170. //selectyn(popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값) 을 초기화함
  171. model.setValue("/root/popgood/selectyn", "");
  172. //popup 프로그램 호출
  173. window.load("SPRSO20300.xrw", "modal","", "", "/root/popgood","/root/popdata");
  174. //popup에서 특정 물품코드를 선택한 경우, 해당 물품코드에 대한 상세 사항을 조회해서 그리드에 보여준다.
  175. if(model.getValue("/root/popgood/selectyn") == "Y") { //popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값
  176. ipt_goodcdfrom.value = model.getValue("/root/popgood/goodcd");
  177. opt_goodnmfrom.value = model.getValue("/root/popgood/goodnm");
  178. }
  179. ]]>
  180. </script>
  181. </button>
  182. <input id="ipt_custcode" ref="/root/send/search/custcode" class="input_default" navindex="7" maxbyte="4" style="left:97px; top:35px; width:91px; height:19px; text-align:left; ">
  183. <script type="javascript" ev:event="xforms-value-changed">
  184. <![CDATA[
  185. /*
  186. if(ipt_suplplcecd.value.length == 0)
  187. ipt_suplplcenm.value = "";
  188. else
  189. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  190. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
  191. ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
  192. model.refresh();
  193. */
  194. ]]>
  195. </script>
  196. </input>
  197. <button id="btn_custcode" class="icon_search" navindex="8" style="left:191px; top:36px; width:16px; height:16px; ">
  198. <caption/>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. rszfOpenPopUpListByWndName(ipt_custcode,"","custcode,custnm","SPRSD00220","instcd","cmb_instcd");
  202. model.refresh();
  203. ]]>
  204. </script>
  205. </button>
  206. <output id="opt_custnm" ref="/root/send/search/custnm" class="output_fix" style="left:210px; top:35px; width:205px; height:19px; text-align:left; "/>
  207. <caption id="caption3" class="search_name" style="left:18px; top:35px; width:82px; height:17px; ">거 래 처</caption>
  208. <caption id="caption20" class="search_name" style="left:741px; top:10px; width:54px; height:17px; vertical-align:middle; ">계정</caption>
  209. <caption id="caption5" style="left:940px; top:10px; width:10px; height:20px; font-weight:bold; ">-</caption>
  210. <select1 id="cmb_acntfrom" ref="/root/send/search/acntfrom" class="combo_default" navindex="5" appearance="minimal" editmode="search" showvalue="true" style="left:795px; top:10px; width:143px; height:19px; ">
  211. <choices>
  212. <itemset nodeset="/root/init/acnt/acntlist">
  213. <label ref="acntnm"/>
  214. <value ref="acntcd"/>
  215. </itemset>
  216. </choices>
  217. </select1>
  218. <select1 id="cmb_acntto" ref="/root/send/search/acntto" class="combo_default" navindex="6" appearance="minimal" editmode="search" showvalue="true" style="left:953px; top:10px; width:143px; height:19px; ">
  219. <choices>
  220. <itemset nodeset="/root/init/acnt/acntlist">
  221. <label ref="acntnm"/>
  222. <value ref="acntcd"/>
  223. </itemset>
  224. </choices>
  225. </select1>
  226. </group>
  227. <line id="line1" class="line_1" style="x1:0px; y1:105px; x2:1195px; y2:105px; "/>
  228. <caption id="caption1" class="tit_2" style="left:0px; top:90px; width:180px; height:14px; ">거래처별 사용현황</caption>
  229. </group>
  230. </xhtml:body>
  231. </xhtml:html>