SMRSD02500_청구이력조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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. <list>
  11. <reqlist/>
  12. </list>
  13. </main>
  14. <send>
  15. <goodreq>
  16. <instcd/>
  17. <reqflag/>
  18. <reqmthdflag/>
  19. <reqdeptcd/>
  20. <reqdeptnm/>
  21. <goodcd/>
  22. <goodnm/>
  23. <reqfrdd/>
  24. <reqtodd/>
  25. <deliveprcsflag/>
  26. <instcdnm/>
  27. <emplno/>
  28. <emplnm/>
  29. </goodreq>
  30. </send>
  31. <init>
  32. <reqtype>
  33. <cdnm>전체</cdnm>
  34. <cdid>A</cdid>
  35. <cdnm>소모품청구</cdnm>
  36. <cdid>01</cdid>
  37. <cdnm>비품청구</cdnm>
  38. <cdid>02</cdid>
  39. <cdnm>장비청구</cdnm>
  40. <cdid>03</cdid>
  41. <cdnm>수리신청</cdnm>
  42. <cdid>04</cdid>
  43. <cdnm>신규재료</cdnm>
  44. <cdid>06</cdid>
  45. <cdnm>약품청구</cdnm>
  46. <cdid>07</cdid>
  47. </reqtype>
  48. </init>
  49. </root>
  50. </instance>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. fInitialize();
  54. ]]>
  55. </script>
  56. <submission id="TRRSD02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/reqlist"/>
  57. </model>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript">
  65. <![CDATA[
  66. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  67. function fInitialize() {
  68. model.removeNode("/root/main/grid");
  69. model.refresh();
  70. misfGridInit(grd_goodreq);
  71. misfMsterDetailSet(grd_goodreq,null, "TRRSD02601" ,"N");
  72. model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  73. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm"));
  74. model.setValue(ipt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  75. model.setValue(ipt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  76. var curdate = getCurrentDate();
  77. var cvtdate = curdate.toDate("YYYYMMDD");
  78. model.setValue(ipt_reqfrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  79. model.setValue(ipt_reqtodd.attribute("ref") ,curdate);
  80. model.refresh();
  81. }
  82. ]]>
  83. </script>
  84. </xhtml:head>
  85. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  86. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  87. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">일별 청구현황 조회</caption>
  88. </group>
  89. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  90. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:90px; vertical-align:top; ">
  91. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  92. <caption id="caption2" class="search_name" style="left:15; top:9; width:89px; height:17px; ">기관코드 :</caption>
  93. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:35px; width:56px; height:22px; ">
  94. <caption>조회</caption>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. var dPath = "/root/main/goodreqmst/";
  98. var pPath = "/root/send/goodreq/";
  99. //if(fCheckRetrieveData(false) == false) return;
  100. misfGridInit(grd_goodreq)
  101. misfMsterDetailRetrieve();
  102. for(var i = grd_goodreq.fixedRows; i < grd_goodreq.rows; i++) {
  103. var instcd = grd_goodreq.valueMatrix(i, grd_goodreq.colRef("instcd"));
  104. var reqdeptcd = grd_goodreq.valueMatrix(i, grd_goodreq.colRef("reqdeptcd"));
  105. var apr_flag = grd_goodreq.valueMatrix(i, grd_goodreq.colRef("apr_flag"));
  106. //if(fPurcAuthInfo(reqdeptcd, instcd) == "2" && stat == "01") { // 승인권한이 있고 진행상태가 신청이면 승인체크 오픈
  107. if(apr_flag == "Y") { // 승인가능여부
  108. grd_goodreq.isReadOnly(i,grd_goodreq.colRef("deptaprvyn")) = false;
  109. } else {
  110. grd_goodreq.isReadOnly(i,grd_goodreq.colRef("deptaprvyn")) = true;
  111. }
  112. }
  113. model.makeValue(dPath+"instcdnm" , model.getValue(pPath+"instcdnm" ));
  114. model.makeValue(dPath+"reqdeptnm" , model.getValue(pPath+"reqdeptnm"));
  115. model.makeValue(dPath+"reqfrdd" , model.getValue(pPath+"reqfrdd" ));
  116. model.makeValue(dPath+"reqtodd" , model.getValue(pPath+"reqtodd" ));
  117. ]]>
  118. </script>
  119. </button>
  120. <caption id="caption7" class="search_name" style="left:400px; top:35px; width:89px; height:17px; vertical-align:middle; ">청구부서 :</caption>
  121. <input id="ipt_reqdeptnm" ref="/root/send/goodreq/reqdeptnm" class="output_search" editable="false" appearance="input" style="left:605px; top:34px; width:159px; height:19px; "/>
  122. <input id="ipt_reqdeptcd" ref="/root/send/goodreq/reqdeptcd" class="input_search" maxlength="10" appearance="input" style="left:488px; top:34px; width:92px; height:19px; ">
  123. <script type="javascript" ev:event="xforms-value-changed">
  124. <![CDATA[
  125. misfSearchDept(ipt_reqdeptnm);
  126. ]]>
  127. </script>
  128. </input>
  129. <button id="btn_reqdeptcd" class="icon_search" style="left:586px; top:36px; width:16px; height:16px; ">
  130. <caption/>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. var recv_list = "reqdeptcd,reqdeptnm";
  134. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
  135. model.refresh();
  136. ]]>
  137. </script>
  138. </button>
  139. <caption id="caption12" class="search_name" style="left:400px; top:10px; width:89px; height:17px; vertical-align:middle; ">청구일자 :</caption>
  140. <input id="ipt_reqfrdd" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:488px; top:9px; width:100px; height:19px; "/>
  141. <input id="ipt_reqtodd" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:605px; top:9px; width:100px; height:19px; "/>
  142. <caption id="caption9" style="left:591px; top:9px; width:15px; height:20px; font-weight:bold; ">~</caption>
  143. <line id="line14" class="line_4" style="x1:1108px; y1:16px; x2:1108px; y2:82px; "/>
  144. <output id="opt_instcd" ref="/root/send/goodreq/instcd" class="output_fix" visibility="hidden" style="left:100px; top:10px; width:220px; height:19px; "/>
  145. <output id="opt_instcdnm" ref="/root/send/goodreq/instcdnm" class="output_fix" style="left:100px; top:10px; width:220px; height:19px; text-align:center; "/>
  146. <caption id="caption3" class="search_name" style="left:15px; top:35px; width:86px; height:17px; vertical-align:middle; ">청구구분 :</caption>
  147. <button id="btn_helppsn" class="icon_search" style="left:585px; top:59px; width:16px; height:16px; ">
  148. <caption/>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. //rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
  152. misfOpenPopUpList("45", ipt_emplno,"","emplno,emplnm", "opt_instcd,ipt_reqdeptcd,ipt_reqdeptnm" );
  153. ipt_emplno.refresh();
  154. ipt_emplnm.refresh();
  155. ]]>
  156. </script>
  157. </button>
  158. <input id="ipt_emplnm" ref="/root/send/goodreq/emplnm" class="output_search" editable="false" style="left:605px; top:59px; width:160px; height:19px; "/>
  159. <caption id="caption5" class="search_name" style="left:400px; top:60px; width:93px; height:17px; ">청 구 자 :</caption>
  160. <input id="ipt_emplno" ref="/root/send/goodreq/emplno" class="input_search" style="left:488px; top:59px; width:92px; height:19px; ">
  161. <script type="javascript" ev:event="onkeypress">
  162. <![CDATA[
  163. inputEnterKey("btn_search", "DOMActivate");
  164. ]]>
  165. </script>
  166. <script type="javascript" ev:event="xforms-value-changed">
  167. <![CDATA[
  168. if(ipt_emplno.value.length == 0)
  169. ipt_emplnm.value = "";
  170. else
  171. misfValidationCheck("01-1", "", "emplno,emplnm");
  172. model.refresh();
  173. ]]>
  174. </script>
  175. </input>
  176. <caption id="caption15" class="search_name" style="left:785px; top:11px; width:89px; height:17px; vertical-align:middle; ">진행상태 :</caption>
  177. <select1 id="cmb_deliveprcsflag" ref="/root/send/goodreq/deliveprcsflag" class="combo_default" appearance="minimal" style="left:870px; top:10px; width:220px; height:19px; ">
  178. <choices>
  179. <itemset nodeset="/root/init/deliveprcsflag">
  180. <label ref="cdnm"/>
  181. <value ref="cdid"/>
  182. </itemset>
  183. </choices>
  184. </select1>
  185. <input id="ipt_goodcd" ref="/root/send/goodreq/goodcd" class="input_fix" visibility="hidden" maxlength="10" appearance="input" style="left:870px; top:35px; width:85px; height:19px; "/>
  186. <caption id="caption13" class="search_name" visibility="hidden" style="left:782px; top:36px; width:89px; height:17px; vertical-align:middle; ">물품코드 :</caption>
  187. <select id="chk_reqflag" ref="/root/send/goodreq/reqflag" overflow="visible" appearance="full" cols="3" style="left:100px; top:35px; width:230px; height:45px; border-style:none; ">
  188. <choices>
  189. <itemset nodeset="/root/init/reqtype">
  190. <label ref="cdnm"/>
  191. <value ref="cdid"/>
  192. </itemset>
  193. </choices>
  194. </select>
  195. </group>
  196. <caption id="caption8" class="tit_2" style="left:5px; top:106px; width:121px; height:13px; ">청구이력내역</caption>
  197. <line id="line1" class="line_1" style="x1:0px; y1:126px; x2:1195px; y2:126px; "/>
  198. <button id="btn_excel" class="btn5_letter3" style="left:1138px; top:105px; width:53px; height:19px; ">
  199. <caption>Excel</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. var fileName = window.fileDialog("save", ",", false, "청구현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  203. if (fileName != "")
  204. {
  205. grd_goodreq.saveExcel(fileName, "청구현황List");
  206. }
  207. ]]>
  208. </script>
  209. </button>
  210. <datagrid id="grd_goodreq" nodeset="/root/main/list/reqlist" caption="기관코드^청구일자/번호^청구일자/번호^청구Seqno^청구구분^청구부서^청구부서^청구명^진행상태^청구자^청구자^청구시간^청구방법^비고^승인^승인수정여부^부서승인내역^부서승인내역" colsep="^" colwidth="55, 72, 40, 65, 70, 75, 100, 240, 70, 50, 63, 120, 70, 100, 30, 41, 55, 80" dataheight="25" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:130px; width:1195px; height:610px; ">
  211. <col ref="instcd" visibility="hidden"/>
  212. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  213. <col ref="reqno" style="text-align:center; "/>
  214. <col ref="reqseqno" visibility="hidden"/>
  215. <col ref="reqflag" style="text-align:center; "/>
  216. <col ref="reqdeptcd" visibility="hidden"/>
  217. <col ref="reqdeptnm"/>
  218. <col ref="reqnm"/>
  219. <col ref="reqstat" style="text-align:center; "/>
  220. <col ref="reqpsnid" style="text-align:center; "/>
  221. <col ref="reqpsnnm" style="text-align:center; "/>
  222. <col ref="reqtm" format="yyyy-mm-dd hh:nn:ss"/>
  223. <col ref="reqmthdflag" style="text-align:center; "/>
  224. <col ref="cmt"/>
  225. <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox" style="text-align:center; "/>
  226. <col ref="apr_flag" visibility="hidden"/>
  227. <col ref="deptaprvynnm" style="text-align:center; "/>
  228. <col ref="deptaprvdd" style="text-align:center; "/>
  229. <script type="javascript" ev:event="onaftersort">
  230. <![CDATA[
  231. grd_goodreq.gridToInstance();
  232. ]]>
  233. </script>
  234. </datagrid>
  235. </group>
  236. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  237. <caption id="caption10" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">청구이력조회</caption>
  238. </group>
  239. <group id="group2" style="left:0px; top:12; width:1195px; height:27px; ">
  240. <button id="button6" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  241. <caption>초기화</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. fInitialize();
  245. ]]>
  246. </script>
  247. </button>
  248. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  249. <button id="button1" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  250. <caption>저장</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. fSave();
  254. ]]>
  255. </script>
  256. </button>
  257. </group>
  258. </xhtml:body>
  259. </xhtml:html>