123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>청구이력조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <reqlist/>
- </list>
- </main>
- <send>
- <goodreq>
- <instcd/>
- <reqflag/>
- <reqmthdflag/>
- <reqdeptcd/>
- <reqdeptnm/>
- <goodcd/>
- <goodnm/>
- <reqfrdd/>
- <reqtodd/>
- <deliveprcsflag/>
- <instcdnm/>
- <emplno/>
- <emplnm/>
- </goodreq>
- </send>
- <init>
- <reqtype>
- <cdnm>전체</cdnm>
- <cdid>A</cdid>
- <cdnm>소모품청구</cdnm>
- <cdid>01</cdid>
- <cdnm>비품청구</cdnm>
- <cdid>02</cdid>
- <cdnm>장비청구</cdnm>
- <cdid>03</cdid>
- <cdnm>수리신청</cdnm>
- <cdid>04</cdid>
- <cdnm>신규재료</cdnm>
- <cdid>06</cdid>
- <cdnm>약품청구</cdnm>
- <cdid>07</cdid>
- </reqtype>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/reqlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNode("/root/main/grid");
- model.refresh();
- misfGridInit(grd_goodreq);
- misfMsterDetailSet(grd_goodreq,null, "TRRSD02601" ,"N");
- model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm"));
- model.setValue(ipt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
-
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_reqfrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_reqtodd.attribute("ref") ,curdate);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">일별 청구현황 조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:90px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15; top:9; width:89px; height:17px; ">기관코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:35px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var dPath = "/root/main/goodreqmst/";
- var pPath = "/root/send/goodreq/";
- //if(fCheckRetrieveData(false) == false) return;
- misfGridInit(grd_goodreq)
- misfMsterDetailRetrieve();
-
- for(var i = grd_goodreq.fixedRows; i < grd_goodreq.rows; i++) {
-
- var instcd = grd_goodreq.valueMatrix(i, grd_goodreq.colRef("instcd"));
- var reqdeptcd = grd_goodreq.valueMatrix(i, grd_goodreq.colRef("reqdeptcd"));
- var apr_flag = grd_goodreq.valueMatrix(i, grd_goodreq.colRef("apr_flag"));
-
- //if(fPurcAuthInfo(reqdeptcd, instcd) == "2" && stat == "01") { // 승인권한이 있고 진행상태가 신청이면 승인체크 오픈
- if(apr_flag == "Y") { // 승인가능여부
- grd_goodreq.isReadOnly(i,grd_goodreq.colRef("deptaprvyn")) = false;
- } else {
- grd_goodreq.isReadOnly(i,grd_goodreq.colRef("deptaprvyn")) = true;
- }
- }
- model.makeValue(dPath+"instcdnm" , model.getValue(pPath+"instcdnm" ));
- model.makeValue(dPath+"reqdeptnm" , model.getValue(pPath+"reqdeptnm"));
- model.makeValue(dPath+"reqfrdd" , model.getValue(pPath+"reqfrdd" ));
- model.makeValue(dPath+"reqtodd" , model.getValue(pPath+"reqtodd" ));
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:400px; top:35px; width:89px; height:17px; vertical-align:middle; ">청구부서 :</caption>
- <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; "/>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(ipt_reqdeptnm);
- ]]>
- </script>
- </input>
- <button id="btn_reqdeptcd" class="icon_search" style="left:586px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption12" class="search_name" style="left:400px; top:10px; width:89px; height:17px; vertical-align:middle; ">청구일자 :</caption>
- <input id="ipt_reqfrdd" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:488px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_reqtodd" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:605px; top:9px; width:100px; height:19px; "/>
- <caption id="caption9" style="left:591px; top:9px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <line id="line14" class="line_4" style="x1:1108px; y1:16px; x2:1108px; y2:82px; "/>
- <output id="opt_instcd" ref="/root/send/goodreq/instcd" class="output_fix" visibility="hidden" style="left:100px; top:10px; width:220px; height:19px; "/>
- <output id="opt_instcdnm" ref="/root/send/goodreq/instcdnm" class="output_fix" style="left:100px; top:10px; width:220px; height:19px; text-align:center; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:35px; width:86px; height:17px; vertical-align:middle; ">청구구분 :</caption>
- <button id="btn_helppsn" class="icon_search" style="left:585px; top:59px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
- misfOpenPopUpList("45", ipt_emplno,"","emplno,emplnm", "opt_instcd,ipt_reqdeptcd,ipt_reqdeptnm" );
- ipt_emplno.refresh();
- ipt_emplnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/goodreq/emplnm" class="output_search" editable="false" style="left:605px; top:59px; width:160px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:400px; top:60px; width:93px; height:17px; ">청 구 자 :</caption>
- <input id="ipt_emplno" ref="/root/send/goodreq/emplno" class="input_search" style="left:488px; top:59px; width:92px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_emplno.value.length == 0)
- ipt_emplnm.value = "";
- else
- misfValidationCheck("01-1", "", "emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption15" class="search_name" style="left:785px; top:11px; width:89px; height:17px; vertical-align:middle; ">진행상태 :</caption>
- <select1 id="cmb_deliveprcsflag" ref="/root/send/goodreq/deliveprcsflag" class="combo_default" appearance="minimal" style="left:870px; top:10px; width:220px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deliveprcsflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <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; "/>
- <caption id="caption13" class="search_name" visibility="hidden" style="left:782px; top:36px; width:89px; height:17px; vertical-align:middle; ">물품코드 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/reqtype">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select>
- </group>
- <caption id="caption8" class="tit_2" style="left:5px; top:106px; width:121px; height:13px; ">청구이력내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:126px; x2:1195px; y2:126px; "/>
- <button id="btn_excel" class="btn5_letter3" style="left:1138px; top:105px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "청구현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_goodreq.saveExcel(fileName, "청구현황List");
- }
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqno" style="text-align:center; "/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="reqflag" style="text-align:center; "/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqdeptnm"/>
- <col ref="reqnm"/>
- <col ref="reqstat" style="text-align:center; "/>
- <col ref="reqpsnid" style="text-align:center; "/>
- <col ref="reqpsnnm" style="text-align:center; "/>
- <col ref="reqtm" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="reqmthdflag" style="text-align:center; "/>
- <col ref="cmt"/>
- <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox" style="text-align:center; "/>
- <col ref="apr_flag" visibility="hidden"/>
- <col ref="deptaprvynnm" style="text-align:center; "/>
- <col ref="deptaprvdd" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodreq.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption10" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">청구이력조회</caption>
- </group>
- <group id="group2" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button6" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="button1" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|