123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>장비수리내역조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <rsihdpaplist1/>
- <rsihdpapwinlist/>
- </main>
- <send>
- <instcd/>
- <goodflag/>
- <fromdd/>
- <todd/>
- <sanctyn/>
- <windd/>
- <winno/>
- <suplplcecd/>
- <goodflag_det/>
- <winpsn/>
- <winpsnnm/>
- <subsuplplcenm/>
- <subsuplplcecd/>
- <fixtrseqmtflag/>
- <paycond/>
- <purcaprvyn/>
- <custcd/>
- <custnm/>
- <acptflag/>
- <repflag/>
- </send>
- <init>
- <purcaprvyn>
- <label>전체</label>
- <value/>
- <label>결재</label>
- <value>Y</value>
- <label>미결재</label>
- <value>N</value>
- </purcaprvyn>
- <fixtrseqmflag>
- <label>의료수선비</label>
- <value>E</value>
- <label>비품수리비</label>
- <value>G</value>
- </fixtrseqmflag>
- <calcdocukind>
- <label>세금계산서</label>
- <value>1</value>
- <label>계산서</label>
- <value>2</value>
- <label>간이영수증</label>
- <value>3</value>
- <label>검수증</label>
- <value>4</value>
- </calcdocukind>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.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" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- misfGridInit(grd_rsihdpaplist);
- // 사용자별 청구 기관 List
- rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"1","B");
- // 사용자별 물품 구분
- // rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- // addComboItem( "cmb_goodflag", "전체", "", "above");
- // misfComboComCdList("R0067", cmb_fixtrseqmtflag);
- // addComboItem("cmb_fixtrseqmtflag", "전체", "", "above");
-
- // misfComboComCdListMulti("Z0007,R0025,R0025,R0109","cmb_instcd,cmb_goodflag,grd_rsihdpaplist.goodflag,grd_rsihdpaplist.calcdocukind");
- misfComboComCdListMulti("R0109","grd_rsihdpaplist.calcdocukind");
-
- //misfComboCopyItemSet(cmb_goodflag, "", grd_rsihdpaplist, "goodflag"); // 물품구분
-
- cmb_instcd.value = getUserInfo("dutplceinstcd");
- cmb_fixtrseqmtflag.select(0);
-
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
- model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-3, "M").getDateFormat("YYYYMMDD") );
- model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
-
- misfMsterDetailSet(grd_rsihdpaplist, null, "TRRSI02703", "Y");
- //misfMsterDetailSet(grd_rsihdpapwinlist, null, "TRRSI02702", "N");
-
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRRSI02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpapwinlist"/>
- <submission id="TRRSI02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpaplist1"/>
- <submission id="TXRSI02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rsihdpaplist1" resultref="/root/temp"/>
- </model>
- </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:145px; 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:85px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:99px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:104px; top:8px; width:221px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <line id="line30" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:53px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
- //if(!isRequiredControls("ipt_fromdd"))return;
- //if(!isRequiredControls("ipt_todd"))return;
-
- submit("TRRSI02703");
- grd_rsihdpaplist.dispatch("onrowchanged");
-
- ]]>
- </script>
- </button>
- <caption id="cap_fromdd" class="search_name" style="left:15px; top:36px; width:88px; height:17px; ">계산일자 :</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:225px; top:34px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:34px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption23" style="left:209px; top:33px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- <caption id="cap_sanctyn" class="search_name" style="left:405px; top:35px; width:86px; height:17px; ">결재여부 :</caption>
- <select1 id="cmb_purcaprvyn" ref="/root/send/purcaprvyn" class="combo_search" appearance="minimal" style="left:495px; top:34px; width:141px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/purcaprvyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_winpsn" class="search_name" style="left:700px; top:10px; width:86px; height:17px; ">입 고 자 :</caption>
- <button id="btn_winpsn" class="icon_search" style="left:890px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("01", ipt_winpsn, "", "winpsn,winpsnnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_winpsn" ref="/root/send/winpsn" class="input_search" style="left:789px; top:10px; width:97px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xfroms-value-changed">
- <![CDATA[
- if(ipt_winpsn.value.length == 0)
- {
- ipt_winpsnnm.value = "";
- }else{
- misfValidationCheck("01-1", "", "winpsn,winpsnnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_winpsnnm" ref="/root/send/winpsnnm" class="input_search" appearance="output" style="left:910px; top:10px; width:125px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_winpsnnm.value.length == 0)
- {
- ipt_winpsn.value = "";
- }else {
- misfValidationCheck("01-2", "", "winpsn,winpsnnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:700px; top:35px; width:86px; height:17px; ">거 래 처 :</caption>
- <input id="ipt_custcd" ref="/root/send/custcd" class="input_search" style="left:789px; top:34px; width:97px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_custcd.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_custcd.attribute("ref"))
- ,"","custcd,custnm" ,ipt_custcd,"SPRSD00220","instcd","cmb_instcd", "Y");
-
- }else{
- ipt_custnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_custcd" class="icon_search" style="left:890px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_custcd,"","custcd,custnm","SPRSD00220","instcd","cmb_instcd", "Y");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_custnm" ref="/root/send/custnm" class="input_search" style="left:910px; top:34px; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_custnm.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_custnm.attribute("ref"))
- ,"","custcd,custnm" ,ipt_custcd,"SPRSD00220","instcd","cmb_instcd", "Y");
-
- }else{
- ipt_custcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_fixtrseqmtflag" ref="/root/send/fixtrseqmtflag" class="combo_s_essential" appearance="minimal" style="left:495px; top:8px; width:145px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/fixtrseqmflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_fixtrseqmtflag" class="search_name" style="left:405px; top:9px; width:86px; height:17px; ">자산구분 :</caption>
- <caption id="cap_paycond" class="search_name" style="left:15px; top:62px; width:88px; height:17px; ">지 불 필 :</caption>
- <select1 id="rdo_paycond" ref="/root/send/paycond" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:105px; top:62px; width:225px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>정상</label>
- <value>1</value>
- </item>
- <item>
- <label>지불 필</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:405px; top:62px; width:88px; height:17px; ">접수구분 :</caption>
- <select1 id="rdo_acptflag" ref="/root/send/acptflag" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:495px; top:62px; width:180px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>수리</label>
- <value>1</value>
- </item>
- <item>
- <label>예방</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_repflag" ref="/root/send/repflag" visibility="hidden" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:789px; top:62px; width:180px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>공사</label>
- <value>2</value>
- </item>
- <item>
- <label>구축물</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:700px; top:62px; width:88px; height:17px; ">수리구분 :</caption>
- </group>
- <caption id="cap_title" class="tit_2" style="left:5px; top:114px; width:157px; height:14px; ">장비수리내역List</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:134px; x2:1192px; y2:134px; "/>
- <datagrid id="grd_rsihdpaplist" nodeset="/root/main/rsihdpaplist1" caption="물품구분명^거래처 코드^거래처명^자산(장비)코드^비품명^모델^수리내역^사용부서명^계산서일자^수리금액^결재^결재일자^결재자^수리일자^입고일자^입고번호^계산서유형^건수^입금은행^은행계좌^전표일자^전표번호" colsep="^" colwidth="82, 80, 150, 88, 150, 90, 110, 80, 75, 70, 50, 75, 65, 75, 75, 60, 90, 76, 133, 138, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:139px; width:1190px; height:541px; ">
- <col disabled="true" ref="fixtrseqmtflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/fixtrseqmflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="custcd"/>
- <col ref="custnm"/>
- <col ref="fixasetcd"/>
- <col ref="fixasetnm"/>
- <col ref="goodmodel"/>
- <col ref="rpirspec"/>
- <col ref="mngtdeptnm"/>
- <col ref="accountdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rpiramt" format="#,###" style="text-align:right; "/>
- <col checkvalue="Y,N" ref="purcaprvyn" type="checkbox" visibility="hidden"/>
- <col ref="purcaprvdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="purcaprvpsnnm" visibility="hidden" style="text-align:center; "/>
- <col ref="rpirdd" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
- <col ref="windd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="winno" visibility="hidden" style="text-align:right; "/>
- <col disabled="true" ref="calcdocukind" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/calcdocukind">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="wincnt" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="banknm" style="text-align:center; "/>
- <col ref="aactno" style="text-align:center; "/>
- <col ref="slipdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="slipno" style="text-align:right; "/>
- <col ref="sanctpsn" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="wintaxamt" visibility="hidden"/>
- <col ref="winsupamt" visibility="hidden"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="paycond" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="purcaprvpsnid" visibility="hidden"/>
- <col ref="acptflag" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_rsihdpaplist.col == grd_rsihdpaplist.colRef("purcaprvyn"))
- {
- if(grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvyn")) == 'Y' )
- {
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvpsnid")) = getUserInfo("userid");
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvpsnnm")) = getUserInfo("usernm");
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvdd")) = getCurrentDate();
- }else
- {
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvpsnid")) = '';
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvpsnnm")) = '';
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvdd")) = '';
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- model.setValue("/root/send/windd",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("windd"))) ;
- model.setValue("/root/send/winno",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("winno"))) ;
- model.setValue("/root/send/suplplcecd",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("suplplcecd")));
-
- // model.setValue("/root/send/goodflag_det",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("goodflag")));
-
- // submit("TRRSI02702");
-
- grd_rsihdpaplist.dispatch("onmouseup");
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rsihdpaplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn5_letter3" style="left:1135px; top:114px; 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_rsihdpaplist.saveExcel(fileName, "수리내역List",true,true, "");
- }
-
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line19" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <line id="line22" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btm_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|