SMRSE00300_미반납조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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>CSR 미반납 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <goodirrtninfo>
  11. <goodirrtnlist>
  12. <csrreqdeptcd/>
  13. <reqdeptnm/>
  14. <deptnm/>
  15. <goodcd/>
  16. <goodnm/>
  17. <goodspec/>
  18. <goodmodel/>
  19. <dlvlendqty/>
  20. <safestocqty/>
  21. <reqdd/>
  22. <reqpridflag/>
  23. <reqdt/>
  24. <reqnm/>
  25. <dlvdt/>
  26. <dlvnm/>
  27. </goodirrtnlist>
  28. </goodirrtninfo>
  29. </main>
  30. <send>
  31. <reqdata/>
  32. </send>
  33. <cond>
  34. <instcd/>
  35. <csrreqdeptcd/>
  36. <deptcd/>
  37. </cond>
  38. <temp>
  39. <csrreqdeptlist/>
  40. </temp>
  41. <hidden>
  42. <csrdeptlist/>
  43. </hidden>
  44. <init>
  45. <csrreqdeptlist/>
  46. </init>
  47. </root>
  48. </instance>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  53. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  54. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  55. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. fInitialize();
  59. ]]>
  60. </script>
  61. <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/csrreqdeptlist"/>
  62. <submission id="TRRSS01212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/csrdeptlist"/>
  63. <submission id="TRRSE00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/goodirrtninfo"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. function fInitialize()
  68. {
  69. /*
  70. var oprnerId = opener.window.javascript.getScreenID();
  71. if(oprnerId =="SMRSS00101"){
  72. var getDeptcd = opener.javascript.getParameter("deptcd");
  73. var getDeptnm = opener.javascript.getParameter("deptnm");
  74. if((getDeptcd !="")||(getDeptnm !="")){
  75. model.setValue("/root/send/deptcd",getDeptcd);
  76. model.setValue("/root/send/deptnm",getDeptnm);
  77. }
  78. }*/
  79. //기관코드, 물품구분 공통 코드를 가져온다.
  80. misfComboComCdListMulti("Z0007", "cmb_instcd");
  81. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  82. model.makeValue("/root/send/reqdata/instcd", cmb_instcd.value);
  83. model.makeValue("/root/send/reqdata/useyn", "Y");
  84. submit("TRRSS01211");
  85. addComboItem("cmb_csrreqdeptcd", "전체", "", "above");
  86. copyNodesetType("/root/init/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
  87. model.removeNodeset("/root/send/reqdata");
  88. model.removeNodeset(grd_goodirrtnlist.nodeset);
  89. model.refresh();
  90. fIrRtnSearch();
  91. }
  92. function fIrRtnSearch() {
  93. model.makeValue("/root/cond/srchflag", "irrtn");
  94. if(submit("TRRSE00301")){
  95. grd_goodirrtnlist.rebuildStyle();
  96. grd_goodirrtnlist.colStyle(grd_goodirrtnlist.colRef("dlvlendqty"), "data", "background-color") = "#dddddd";
  97. }
  98. }
  99. ]]>
  100. </script>
  101. </xhtml:head>
  102. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  103. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  104. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:178px; height:14px; ">CSR 미반납 물품정보 조회</caption>
  105. </group>
  106. <group id="grp_biz" scroll="auto" style="left:0px; top:23px; width:1195px; height:725px; ">
  107. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:55px; vertical-align:top; ">
  108. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  109. <caption id="caption2" class="search_name" style="left:15px; top:19px; width:89px; height:17px; ">기관코드 :</caption>
  110. <select1 id="cmb_instcd" ref="/root/cond/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:105px; top:19px; width:120px; height:19px; text-align:center; ">
  111. <choices>
  112. <itemset>
  113. <label/>
  114. <value/>
  115. </itemset>
  116. </choices>
  117. </select1>
  118. <line id="line3" class="line_4" style="x1:1050px; y1:14px; x2:1050px; y2:40px; border-color:#ffe4bb; border-left-style:solid; "/>
  119. <button id="btn_search" class="btn1_letter2" style="left:1060px; top:18px; width:56px; height:22px; ">
  120. <caption>조회</caption>
  121. <script type="javascript" ev:event="DOMActivate">
  122. <![CDATA[
  123. fIrRtnSearch();
  124. ]]>
  125. </script>
  126. </button>
  127. <caption id="caption5" class="search_name" visibility="hidden" style="left:680px; top:10px; width:91px; height:17px; ">조회일자 :</caption>
  128. <input id="ipt_reqfrdd" ref="/root/send/srchfromdd" class="input_s_essential" visibility="hidden" inputtype="date" style="left:770px; top:10px; width:100px; height:19px; text-align:center; "/>
  129. <caption id="caption11" class="search_no_b" visibility="hidden" style="left:880px; top:10px; width:12px; height:17px; ">~</caption>
  130. <input id="input3" ref="/root/send/srchtodd" class="input_s_essential" visibility="hidden" inputtype="date" style="left:775px; top:30px; width:100px; height:19px; text-align:center; "/>
  131. <select1 id="cmb_deptcd" ref="/root/cond/deptcd" class="combo_s_essential" appearance="minimal" style="left:554px; top:19px; width:111px; height:19px; text-align:center; ">
  132. <choices>
  133. <itemset nodeset="/root/hidden/csrdeptlist">
  134. <label ref="deptnm"/>
  135. <value ref="deptcd"/>
  136. </itemset>
  137. </choices>
  138. <script type="javascript" ev:event="xforms-value-changed">
  139. <![CDATA[
  140. fIrRtnSearch();
  141. ]]>
  142. </script>
  143. </select1>
  144. <caption id="caption9" class="search_name" style="left:465px; top:19px; width:89px; height:17px; ">청구부서:</caption>
  145. <caption id="cap_csrreqdeptcd" class="search_name" style="left:240px; top:19px; width:89px; height:17px; ">부서구분 :</caption>
  146. <select1 id="cmb_csrreqdeptcd" ref="/root/cond/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:334px; top:19px; width:111px; height:19px; text-align:center; ">
  147. <choices>
  148. <itemset nodeset="/root/temp/csrreqdeptlist">
  149. <label ref="csrreqdeptnm"/>
  150. <value ref="csrreqdeptcd"/>
  151. </itemset>
  152. </choices>
  153. <script type="javascript" ev:event="xforms-value-changed">
  154. <![CDATA[
  155. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
  156. model.makeValue("/root/send/reqdata/useyn","Y");
  157. submit("TRRSS01212");
  158. cmb_deptcd.refresh();
  159. if(getNodesetCnt(model,"/root/hidden/csrdeptlist") == 1 ){
  160. model.setValue("/root/cond/deptcd",model.getValue("/root/hidden/csrdeptlist/deptcd[1]"));
  161. }else{
  162. addComboItem( "cmb_deptcd", "전체", "", "above");
  163. model.setValue("/root/cond/deptcd",model.getValue("/root/hidden/csrdeptlist/deptcd[1]"));
  164. }
  165. fIrRtnSearch();
  166. ]]>
  167. </script>
  168. </select1>
  169. <button id="button1" class="btn1_letter2" style="left:1118px; top:18px; width:56px; height:22px; ">
  170. <caption>엑셀</caption>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. var fileName = window.fileDialog("save", ",", false, "미반납조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  174. if (fileName != "")
  175. {
  176. grd_goodirrtnlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  177. }
  178. ]]>
  179. </script>
  180. </button>
  181. </group>
  182. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1193px; y2:95px; "/>
  183. <caption id="caption4" class="tit_2" style="left:0px; top:79px; width:171px; height:14px; ">CSR 미반납 물품정보</caption>
  184. <datagrid id="grd_goodirrtnlist" nodeset="/root/main/goodirrtninfo/goodirrtnlist" class="datagrid2" caption="부서구분^청구부서^물품코드^물품명^규격^모델^대여&#xA;수량^청구일^청구&#xA;차수^청구일시^청구자^불출일시^불출자^불출자" colsep="^" colwidth="76, 110, 89, 230, 71, 72, 45, 93, 42, 100, 64, 109, 68" dataheight="11" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:100px; width:1193px; height:620px; ">
  185. <col disabled="true" ref="csrreqdeptcd" type="combo" style="text-align:center; ">
  186. <choices>
  187. <itemset nodeset="/root/init/csrreqdeptlist">
  188. <label ref="csrreqdeptnm"/>
  189. <value ref="csrreqdeptcd"/>
  190. </itemset>
  191. </choices>
  192. </col>
  193. <col ref="reqdeptnm" type="output" style="text-align:center; "/>
  194. <col ref="goodcd" style="text-align:center; "/>
  195. <col ref="goodnm"/>
  196. <col ref="goodspec" style="text-align:right; "/>
  197. <col ref="goodmodel" type="output"/>
  198. <col ref="dlvlendqty" type="output" style="text-align:right; "/>
  199. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  200. <col disabled="true" ref="reqpridflag" type="combo" style="text-align:center; ">
  201. <choices>
  202. <item>
  203. <label>1차</label>
  204. <value>1</value>
  205. </item>
  206. <item>
  207. <label>2차</label>
  208. <value>2</value>
  209. </item>
  210. <item>
  211. <label>3차</label>
  212. <value>3</value>
  213. </item>
  214. <item>
  215. <label>4차</label>
  216. <value>4</value>
  217. </item>
  218. <item>
  219. <label>5차</label>
  220. <value>5</value>
  221. </item>
  222. <item>
  223. <label>응급</label>
  224. <value>-</value>
  225. </item>
  226. </choices>
  227. </col>
  228. <col ref="reqdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  229. <col ref="reqnm" style="text-align:center; "/>
  230. <col ref="dlvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  231. <col ref="dlvnm" style="text-align:center; "/>
  232. <script type="javascript" ev:event="onaftersort">
  233. <![CDATA[
  234. grd_goodirrtnlist.gridToInstance();
  235. ]]>
  236. </script>
  237. </datagrid>
  238. </group>
  239. </xhtml:body>
  240. </xhtml:html>