123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <rfehemhtlist/>
- <rfemdamklist/>
- <rfehdabplist/>
- <com_rfehemhtlist/>
- </main>
- <send>
- <instcd/>
- <fixtrseqmtflag/>
- <acptdd/>
- <acptdd2/>
- <chrgpsnid/>
- <chrgpsnnm/>
- <purctrsmyn/>
- <purcagreyn/>
- <grid>
- <rfehemhtlist/>
- <rfemdamklist/>
- <rfehdabplist/>
- </grid>
- <prvnchkfrdd/>
- <prvnchktodd/>
- <accountddyn/>
- <sendprint>
- <instcd/>
- <chrgpsnid/>
- <reqdd/>
- <reqdd2/>
- <reqno/>
- <reqno2/>
- <reqdeptcd/>
- </sendprint>
- </send>
- <init>
- <useyn>
- <label>내부</label>
- <value>1</value>
- <label>외부</label>
- <value>2</value>
- </useyn>
- <fixtrseqmflag>
- <label>의료장비</label>
- <value>E</value>
- <label>의료비품</label>
- <value>K</value>
- </fixtrseqmflag>
- <purcagreyn>
- <label>결재</label>
- <value>Y</value>
- <label>미결재</label>
- <value>N</value>
- </purcagreyn>
- <grdsanctyn>
- <label>결재</label>
- <value>Y</value>
- <label>미결재</label>
- <value>N</value>
- <label>반송</label>
- <value>R</value>
- </grdsanctyn>
- <purctrsmyn>
- <label>구매전송</label>
- <value>Y</value>
- <label>내부결제</label>
- <value>C</value>
- <label>미결제</label>
- <value>N</value>
- <label>회송</label>
- <value>R</value>
- </purctrsmyn>
- <paycond/>
- </init>
- <hidden/>
- <temp/>
- <print/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- misfMsterDetailSet(grd_rfehemhtlist, null, "TRRFR01001", "Y");
- misfMsterDetailSet(grd_rfemdamklist, null, "TRRFE00602", "Y");
- misfMsterDetailSet(grd_rfehdabplist, null, "TRRFE00603", "Y");
- fInitialize();
- // 공통코드 설정
- misfComboComCdListMulti("Z0007,R0055,R0286,R0288,R0289,R0290,R0032,R0287",
- "cmb_instcd,grd_rfehemhtlist.workstat,grd_rfehemhtlist.rpirflag1,grd_rfehdabplist.paytype,grd_rfehdabplist.kind,grd_rfehdabplist.costflag,grd_rfehdabplist.acsrsunit,rdo_acptflag");
- addComboItem("rdo_purcagreyn", "전체", "", "above");
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRRFE00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfehemhtlist" resultref="/root/main/rfemdamklist"/>
- <submission id="TRRFE00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfemdamklist" resultref="/root/main/rfehdabplist"/>
- <submission id="TRRFR01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rfehemhtlist"/>
- <submission id="TXRFR01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfehemhtlist" resultref="/root/temp"/>
- <submission id="TXRFR01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfehdabplist" resultref="/root/temp"/>
- <submission id="TRRFE00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendprint" resultref="/root/print/PrintRfehemht"/>
- </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[
- function fInitialize()
- {
- //조회 컴포넌트 초기화.
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
-
- // 그리드 초기화
- misfGridInit(grd_rfehemhtlist);
- misfGridInit(grd_rfemdamklist);
- misfGridInit(grd_rfehdabplist);
-
- // 사용자 기관코드 설정.
- cmb_instcd.value = getUserInfo("dutplceinstcd");
-
- //결재전송 인것만 조회하기위한 값 설정.
- model.setValue("/root/send/purctrsmyn", "Y");
-
- // 현재 날짜 기본 입력(6개월 간격 설정)
- var acptdate = getCurrentDate().toDate("YYYYMMDD");
- model.setValue(ipt_acptdd.attribute("ref"), acptdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
- model.setValue(ipt_acptdd2.attribute("ref"), getCurrentDate());
-
- // 자산구분및 수리/예방여부 기본 설정.
- cmb_fixtrseqmtflag.select(0);
-
- model.refresh();
- }
- //만약 계산서일자가 등록돼있는거에 대해서는 회송여부는 비활성화 시킴 (2009.01.28 L.J.I)
- function fpurctrsmynDisabled(pDisable)
- {
- for(var i = grd_rfehemhtlist.fixedRows; i < grd_rfehemhtlist.rows; i++) {
- if(grd_rfehemhtlist.valueMatrix(i, grd_rfehemhtlist.colRef("accountdd")) != "")
- {
- grd_rfehemhtlist.cellAttribute("disabled", i, grd_rfehemhtlist.colRef("purctrsmyn")) = "true";
- }
- else
- {
- grd_rfehemhtlist.cellAttribute("disabled", i, grd_rfehemhtlist.colRef("purctrsmyn")) = "false";
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,502;" 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:207px; height:14px; ">구매팀 수리결재</caption>
- </group>
- <group id="group4" style="left:0px; top:13; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" visibility="visible" style="left:0px; top:3; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/print/PrintRfehemht");
- model.resetInstanceNode("/root/send/sendprint");
-
- model.setValue("/root/send/sendprint/instcd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd")) );
- model.setValue("/root/send/sendprint/chrgpsnid", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgpsnid")) );
- model.setValue("/root/send/sendprint/reqdd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd")) );
- model.setValue("/root/send/sendprint/reqdd2", model.getValue("/root/send/sendprint/reqdd"));
- model.setValue("/root/send/sendprint/reqno", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno")) );
- model.setValue("/root/send/sendprint/reqno2", model.getValue("/root/send/sendprint/reqno"));
- model.setValue("/root/send/sendprint/reqdeptcd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdeptcd")) );
-
-
- submit("TRRFE00701");
- exeReportPreview("RPRFE00703", "XMLSTR");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- if(!checkKeyColumn("grd_rfehdabplist")) return;
- if(!checkKeyColumn("grd_rfemdamklist")) return;
-
-
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpiramt" ))= model.getValue("/root/main/com_rfehemhtlist/rpiramt" );
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("custcd" ))= model.getValue("/root/main/com_rfehemhtlist/custcd" );
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptflag" ))= model.getValue("/root/main/com_rfehemhtlist/acptflag" );
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("accountdd" ))= model.getValue("/root/main/com_rfehemhtlist/accountdd" );
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("accountcmt" ))= model.getValue("/root/main/com_rfehemhtlist/accountcmt" );
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("estimateamt" ))= model.getValue("/root/main/com_rfehemhtlist/rfehdabptotal" );
- model.setValue("/root/send/grid/rfehdabplist" ,grd_rfehdabplist.getUpdateData());
- model.setValue("/root/send/grid/rfehemhtlist" ,grd_rfehemhtlist.getUpdateData());
- model.setValue("/root/send/grid/rfemdamklist" ,grd_rfemdamklist.getUpdateData());
-
-
- misfGridRowStatusChange(grd_rfehemhtlist,"/root/main/rfehemhtlist","/root/main/com_rfehemhtlist/");
-
-
- //var updtdata = grd_rfehemhtlist.getUpdateData();
- grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row) = "2";
- grd_rfemdamklist.rowStatus(grd_rfemdamklist.row) = "2";
-
-
- if (getGridUpdateData(grd_rfehemhtlist) == "")
- {
- messageBox("변경된 데이터가", "I004");
- return;
- }
-
- misfSave("TXRFR01001");
-
- // var updtdata = grd_rfehdabplist.getUpdateData();
- // misfSave("TXRFR01002");
-
-
- //if (model.getValue(gvErrorMsgPath + "/type") != "error") btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getGridUpdateData(grd_rfehemhtlist) != "")
- {
- if(messageBox("변경된 데이터가 있습니다. \n초기화 작업을", "Q003") == 7)
- return;
- }
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line15" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:740; ">
- <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">기관코드:</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- if(!isRequiredControls("cmb_instcd")) return;
- if(!isRequiredControls("cmb_fixtrseqmtflag")) return;
- if(!isRequiredControls("ipt_acptdd")) return;
- if(!isRequiredControls("ipt_acptdd2")) return;
-
-
- if(getGridUpdateData(grd_rfehemhtlist) != "")
- {
- if(messageBox("변경된 데이터가 있습니다. \n조회작업을", "Q003") == 7)
- return;
- }
- //그리드 초기화.
- misfGridInit(grd_rfemdamklist);
- misfGridInit(grd_rfehdabplist);
-
- // 컴포넌트 초기화.
- model.resetInstanceNode("/root/main/com_rfehemhtlist");
- model.resetInstanceNode("/root/send/grid/rfehemhtlist");
- model.resetInstanceNode("/root/main/com_rfemdamklist");
-
- //수리 테이블 조회
- submit("TRRFR01001");
-
- if(grd_rfehemhtlist.rows > grd_rfehemhtlist.fixedRows)
- {
- // 기본 Select 설정.
- grd_rfehemhtlist.row = grd_rfehemhtlist.fixedRows;
- grd_rfehemhtlist.select(grd_rfehemhtlist.fixedRows, grd_rfehemhtlist.colRef("fixasetnm")) = true;
-
- grd_rfehemhtlist.dispatch("onrowchanged");
- }
-
- fpurctrsmynDisabled();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:99px; top:8px; width:246px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <line id="line13" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_acptdd" class="search_name" style="left:769px; top:9px; width:101px; height:17px; ">수리일자 :</caption>
- <select1 id="cmb_fixtrseqmtflag" ref="/root/send/fixtrseqmtflag" class="combo_s_essential" appearance="minimal" style="left:555px; 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:466px; top:8px; width:86px; height:17px; ">자산구분 :</caption>
- <input id="ipt_acptdd2" ref="/root/send/acptdd2" class="input_s_essential" inputtype="date" style="left:997px; top:9px; width:111px; height:19px; text-align:center; "/>
- <input id="ipt_acptdd" ref="/root/send/acptdd" class="input_s_essential" inputtype="date" style="left:871px; top:9px; width:107px; height:19px; text-align:center; "/>
- <caption id="cap_chrgpsnid" class="search_name" style="left:15px; top:35px; width:83px; height:17px; ">담 당 자 :</caption>
- <button id="btn_chrgpsnid" class="icon_search" style="left:200px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfOpenPopUpList("01", ipt_chrgpsnid, "", "chrgpsnid,chrgpsnnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_chrgpsnid" ref="/root/send/chrgpsnid" class="input_search" style="left:99px; top:35px; width:97px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xfroms-value-changed">
- <![CDATA[
- if(ipt_chrgpsnid.value.length == 0)
- {
- ipt_chrgpsnnm.value = "";
- }else{
- misfValidationCheck("01-1", "", "chrgpsnid,chrgpsnnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_chrgpsnnm" ref="/root/send/chrgpsnnm" class="input_search" appearance="output" style="left:220px; top:35px; width:125px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_chrgpsnnm.value.length == 0)
- {
- ipt_chrgpsnid.value = "";
- }else {
- misfValidationCheck("01-2", "", "chrgpsnid,chrgpsnnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_purcaprvyn" class="search_name" style="left:466px; top:35px; width:86px; height:17px; ">결재여부 :</caption>
- <select1 id="rdo_purcagreyn" ref="/root/send/purcagreyn" class="radio_search" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:555px; top:35px; width:205px; height:20px; text-align:center; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/purcagreyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" style="left:982px; top:10px; width:15px; height:20px; ">~</caption>
- <input id="ipt_purctrsmyn" ref="/root/send/purctrsmyn" class="input_search" visibility="hidden" style="left:355px; top:10px; width:65px; height:19px; "/>
- <select1 id="rdo_accountddyn" ref="/root/send/accountddyn" class="radio_search" appearance="full" cellspacing="40" cols="2" overflow="visible" style="left:875px; top:36px; width:230px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>유</label>
- <value>Y</value>
- </item>
- <item>
- <label>무</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_accountddyn" class="search_name" style="left:769px; top:35px; width:99px; height:17px; ">계산서일자 :</caption>
- </group>
- <switch id="swt_choice" style="left:1px; top:70px; width:1190px; height:660px; ">
- <case id="RFEH" style="left:0px; top:0px; width:1193px; height:658px; ">
- <caption id="cap_estimateamt" class="cell_1" style="left:243px; top:324px; width:80px; height:23px; vertical-align:middle; ">외주견적금액</caption>
- <input id="ipt_estimateamt" ref="/root/main/com_rfehemhtlist/estimateamt" class="output_fix" disabled="true" format="#,###" style="left:325px; top:326px; width:159px; height:19px; text-align:right; "/>
- <datagrid id="grd_rfehemhtlist" nodeset="/root/main/rfehemhtlist" allowselection="false" caption="결재여부^회송여부^의뢰일자^의뢰일자^의뢰부서^자산구분^자산코드^자산명^모델^S/N^사용부서명^거래처명^계산서일^견적금액^확정금액^접수일자^완료일자^담당자^접수구분^수리상태^고장유형^결재승인^구매전송^결재COMMENTS^구매팀승인일자^구매팀승인자^구매팀승인자^청구구분^청구부서^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1" colsep="^" colwidth="56, 59, 82, 34, 69, 78, 85, 182, 78, 80, 89, 103, 78, 78, 83, 156, 100, 70, 81, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="11" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:25px; width:1187px; height:275px; ">
- <col checkvalue="Y,N" ref="purcagreyn" type="checkbox"/>
- <col checkvalue="R,Y" ref="purctrsmyn" type="checkbox" visibility="visible"/>
- <col disabled="true" ref="reqdd" format="yyyy-mm-dd" _key="true"/>
- <col disabled="true" ref="reqno" _key="true"/>
- <col ref="depthngnm"/>
- <col disabled="true" ref="fixtrseqmtflag" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/fixtrseqmflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fixasetcd"/>
- <col disabled="true" ref="fixasetnm"/>
- <col disabled="true" ref="goodmodel"/>
- <col disabled="true" ref="mngtno"/>
- <col disabled="true" ref="mngtdeptnm"/>
- <col disabled="true" ref="custnm"/>
- <col disabled="true" ref="accountdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="estimateamt" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="rpiramt" visibility="visible" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="acptdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="rpirenddd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="chrgpsnnm" style="text-align:center; "/>
- <col disabled="true" ref="workstat" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="rpirflag1" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="useyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/useyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="sanctyn" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/grdsanctyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="purctrsmyn" type="combo" visibility="visible">
- <choices>
- <itemset nodeset="/root/init/purctrsmyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="chrgpsncmt" visibility="hidden" style="text-align:left; "/>
- <col ref="purcaprvdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="purcaprvpsnid" visibility="hidden" style="text-align:center; "/>
- <col ref="purcaprvpsnnm" visibility="hidden" style="text-align:center; "/>
- <col ref="sanctdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="chrgpsnid" visibility="hidden"/>
- <col ref="genrdd" visibility="hidden"/>
- <col ref="estimateamt" visibility="hidden"/>
- <col ref="rpirflag2" visibility="hidden"/>
- <col ref="sanctid" visibility="hidden"/>
- <col ref="sanctnm" visibility="hidden"/>
- <col ref="reductionamt" visibility="hidden"/>
- <col disabled="true" ref="lastrpirstat" visibility="hidden"/>
- <col ref="nonworkdayno" visibility="hidden"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="hdrncspec" visibility="hidden"/>
- <col ref="lastrpirrslt" visibility="hidden"/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqpsnnm" visibility="hidden"/>
- <col ref="genrtm" visibility="hidden"/>
- <col ref="acpttm" visibility="hidden"/>
- <col ref="acptpsnid" visibility="hidden"/>
- <col ref="acptpsnnm" visibility="hidden"/>
- <col ref="acptdeptcd" visibility="hidden"/>
- <col ref="acptdeptnm" visibility="hidden"/>
- <col ref="itemnm" visibility="hidden"/>
- <col ref="acptpsncnfm" visibility="hidden"/>
- <col ref="deptacptdd" visibility="hidden"/>
- <col ref="deptacptpsnid" visibility="hidden"/>
- <col ref="deptacptpsnnm" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="emaildeliveyn" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="installplcenm" visibility="hidden"/>
- <col ref="sancttrsmyn" visibility="hidden"/>
- <col ref="chrgtel" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="stdysubjnm" visibility="hidden"/>
- <col ref="deptaprvyn" visibility="hidden"/>
- <col ref="deptaprvpsnid" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="rfehdabptotal" visibility="hidden"/>
- <col ref="reqtel" visibility="hidden"/>
- <col ref="acptflag" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="temppurcaprvyn" visibility="hidden"/>
- <col ref="accountcmt" visibility="hidden"/>
- <col ref="purcagredd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="purcagresnid" visibility="hidden" style="text-align:center; "/>
- <col ref="purcagresnnm" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if( grd_rfehemhtlist.colRef("purcagreyn") == grd_rfehemhtlist.col )
- {
- if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row,grd_rfehemhtlist.colRef("purcagreyn")) != grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row,grd_rfehemhtlist.colRef("temppurcaprvyn")))
- {
- if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row,grd_rfehemhtlist.colRef("purcagreyn")) == 'Y')
- {
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagredd")) = getCurrentDate();
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnid")) = getUserInfo("userid");
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnnm")) = getUserInfo("usernm");
- }else
- {
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagredd")) = "";
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnid")) = "";
- grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnnm")) = "";
- }
- }else{
- grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row) = 0;
- }
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grd_rfehemhtlist.dispatch("onmouseup");
-
- // 상세 내용을 컴포넌트에 설정.
- model.copyNode("/root/main/com_rfehemhtlist","/root/main/rfehemhtlist["+grd_rfehemhtlist.row+"]");
-
- // 수리일자별 목록 조회값 설정.
- model.copyNode("/root/send/grid/rfehemhtlist","/root/main/rfehemhtlist["+grd_rfehemhtlist.row+"]");
- model.makeValue("/root/send/grid/rfehemhtlist/scrnid", "SMRFR01000");
- submit("TRRFE00602");
- misfGridInit(grd_rfehdabplist);
-
- if(grd_rfemdamklist.rows > grd_rfemdamklist.fixedRows)
- {
- // 기본 Select 설정.
- grd_rfemdamklist.row = grd_rfemdamklist.fixedRows;
- grd_rfemdamklist.select(grd_rfemdamklist.fixedRows, grd_rfemdamklist.colRef("mainrpirpsnnm")) = true;
-
- grd_rfemdamklist.dispatch("onrowchanged");
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rfehemhtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="cap_rpiramt" class="cell_1" style="left:243px; top:349px; width:80px; height:23px; vertical-align:middle; ">확정 금액</caption>
- <caption id="cap_lastrpirrslt" class="cell_1" style="left:0px; top:575px; width:80px; height:75px; vertical-align:middle; ">최종수리결과</caption>
- <input id="ipt_rfehdabptotal" ref="/root/main/com_rfehemhtlist/rfehdabptotal" class="output_fix" disabled="true" format="#,###" style="left:82px; top:326px; width:159px; height:19px; text-align:right; "/>
- <line id="line22" class="line_3" style="x1:0px; y1:652px; x2:488px; y2:652px; "/>
- <textarea id="txt_hdrncspec" ref="/root/main/com_rfehemhtlist/hdrncspec" scroll="vertical" editable="false" style="left:82px; top:525px; width:403px; height:47px; "/>
- <caption id="cap_hdrncspec" class="cell_1" style="left:0px; top:525px; width:80px; height:49px; vertical-align:middle; ">의뢰내역</caption>
- <datagrid id="grd_rfehdabplist" nodeset="/root/main/rfehdabplist" caption="순번^수리일자^부품명^지급형태^유형^비용구분^규격^부품수량^단위^부품단가^금액^계산서금액" colsep="^" colwidth="43, 80, 190, 65, 65, 65, 150, 60, 70, 70, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:492px; top:485px; width:695px; height:168px; ">
- <col class="input_essential" disabled="true" ref="rpirseq" format="#,###" maxlength="3" _key="true" style="text-align:right; "/>
- <col class="input_essential" ref="rpirdd" visibility="hidden" format="yyyy-mm-dd" _key="true"/>
- <col ref="acsrsnm" style="left:500px; top:23px; width:300px; height:23px; "/>
- <col disabled="true" ref="paytype" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="kind" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="costflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="acsrsspec"/>
- <col ref="acsrsqty" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="acsrsunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="acsrsamt" format="#,###" style="text-align:right; "/>
- <col ref="acsrsmoney" format="#,###" style="text-align:right; "/>
- <col ref="accountamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
- <col ref="reqdd" visibility="hidden" _key="true"/>
- <col ref="reqno" visibility="hidden" _key="true"/>
- <col ref="delivedd" visibility="hidden"/>
- <col ref="deliveno" visibility="hidden"/>
- <col ref="deliveseqno" visibility="hidden"/>
- <col ref="acsrscd" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_rfemdamklist" nodeset="/root/main/rfemdamklist" allowselection="false" caption="수리일자^주수리자^보조수리자^작업시간^1^1^(의공)수리내역^1" colsep="^" colwidth="90, 109, 109, 54, 100, 50, 249, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" selectionmode="byrow" style="left:494px; top:325px; width:695px; height:139px; ">
- <col ref="rpirdd" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
- <col ref="mainrpirpsnnm" style="text-align:center; "/>
- <col ref="supprpirpsnnm" style="text-align:center; "/>
- <col ref="rpirtm" visibility="visible" format="hh:nn" _key="true" style="text-align:right; "/>
- <col ref="mainrpirpsn" visibility="hidden"/>
- <col ref="supprpirpsn" visibility="hidden"/>
- <col ref="rpirspec"/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
- <col ref="reqdd" visibility="hidden" _key="true"/>
- <col ref="reqno" visibility="hidden" _key="true"/>
- <col ref="paycond" type="input" visibility="hidden" _key="true"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grd_rfemdamklist.dispatch("onmouseup");
- // 상세 내용을 컴포넌트에 설정.
- model.setValue("/root/init/paycond", grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("paycond")));
-
- model.copyNode("/root/main/com_grd_rfemdamklist","/root/main/rfemdamklist["+ grd_rfemdamklist.row +"]");
-
- model.copyNode("/root/send/grid/rfemdamklist","/root/main/rfemdamklist["+ grd_rfemdamklist.row +"]");
- submit("TRRFE00603");
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:2px; top:303px; width:110px; height:13px; ">수리상세내용</caption>
- <caption id="caption4" class="tit_2" style="left:2px; top:4px; width:110px; height:14px; ">수리 결재 List</caption>
- <textarea id="txt_lastrpirrslt" ref="/root/main/com_rfehemhtlist/lastrpirrslt" scroll="vertical" editable="false" maxlength="600" style="left:82px; top:575px; width:403px; height:75px; "/>
- <caption id="caption5" class="tit_2" style="left:495px; top:303px; width:113px; height:13px; ">수리일자별 목록</caption>
- <line id="line17" class="line_1" style="x1:0px; y1:318px; x2:488px; y2:318px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:1187px; y2:20px; "/>
- <input id="ipt_reductionamt" ref="/root/main/com_rfehemhtlist/reductionamt" class="output_fix" disabled="true" format="#,###" style="left:82px; top:351px; width:159px; height:19px; text-align:right; "/>
- <line id="line2" class="line_1" style="x1:492px; y1:318px; x2:1188px; y2:318px; "/>
- <caption id="cap_rfehdabptotal" class="cell_1" style="left:0px; top:324px; width:80px; height:23px; vertical-align:middle; ">전 도 금</caption>
- <caption id="cap_reductionamt" class="cell_1" style="left:0px; top:349px; width:80px; height:23px; vertical-align:middle; ">절 감 액</caption>
- <caption id="caption7" class="tit_2" style="left:493px; top:466px; width:113px; height:13px; ">수리부품 목록</caption>
- <line id="line3" class="line_1" style="x1:492px; y1:481px; x2:1188px; y2:481px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:483px; x2:488px; y2:483px; "/>
- <input id="ipt_rpiramt" ref="/root/main/com_rfehemhtlist/rpiramt" class="output_fix" disabled="true" format="#,###" style="left:325px; top:351px; width:159px; height:19px; text-align:right; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:573px; x2:488px; y2:573px; "/>
- <caption id="cap_custcd" class="cell_1" style="left:0px; top:399px; width:80px; height:23px; vertical-align:middle; ">거래처</caption>
- <input id="ipt_custnm" ref="/root/main/com_rfehemhtlist/custnm" class="input_default" style="left:208px; top:399px; width:227px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_custnm.value != "")
- {
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- cmb_instcd.value + "," + "custnm," + ipt_custnm.value, "", "custcd,custnm",
- ipt_custcd, "SPRSD00220", "instcd","cmb_instcd");
- }else{
- ipt_custcd.value= "";
- }
-
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_custcd" class="icon_search" style="left:187px; top:399px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_custcd,"","custcd,custnm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_custcd" ref="/root/main/com_rfehemhtlist/custcd" class="input_default" style="left:82px; top:399px; width:102px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_custcd.value != "")
- {
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- cmb_instcd.value + "," + "entrregno," + ipt_custcd.value, "", "custcd,custnm",
- ipt_custcd, "SPRSD00220", "instcd","cmb_instcd");
- }else{
- ipt_custnm.value= "";
- }
-
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="che_paycond" ref="/root/init/paycond" visibility="visible" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:245px; top:450px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정상</label>
- <value>1</value>
- </item>
- <item>
- <label>지불필</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue(grd_rfemdamklist.nodeset+"["+grd_rfemdamklist.row+"]/paycond" , model.getValue("/root/init/paycond"));
- grd_rfemdamklist.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_acptflag" ref="/root/main/com_rfehemhtlist/acptflag" class="radio_search" visibility="visible" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:245px; top:425px; width:160px; height:20px; text-align:center; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_fixasetcd" ref="/root/main/com_rfehemhtlist/fixasetcd" class="input_essential" disabled="true" appearance="input" style="left:82px; top:374px; width:159px; height:19px; "/>
- <caption id="cap_fixasetcd" class="cell_1" style="left:0px; top:374px; width:80px; height:23px; vertical-align:middle; ">자산코드</caption>
- <input id="ipt_fixasetnm" ref="/root/main/com_rfehemhtlist/fixasetnm" class="input_essential" disabled="true" appearance="input" style="left:82px; top:426px; width:159px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:425px; width:80px; height:23px; vertical-align:middle; ">자산명</caption>
- <caption id="caption8" class="cell_1" visibility="visible" style="left:1px; top:450px; width:80px; height:23px; vertical-align:middle; ">계산서일</caption>
- <input id="ipt_accountdd" ref="/root/main/com_rfehemhtlist/accountdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:82px; top:451px; width:160px; height:19px; "/>
- <textarea id="txt_accountcmt" ref="/root/main/com_rfehemhtlist/accountcmt" scroll="vertical" style="left:82px; top:475px; width:403px; height:46px; "/>
- <caption id="caption9" class="cell_1" style="left:0px; top:475px; width:80px; height:48px; vertical-align:middle; ">구매수리내역</caption>
- <caption id="caption10" class="cell_1" style="left:243px; top:373px; width:80px; height:23px; vertical-align:middle; ">수리비용</caption>
- <input id="input1" ref="/root/main/com_rfehemhtlist/rpiramt" class="input_essential" format="#,###" style="left:325px; top:374px; width:160px; height:19px; text-align:right; "/>
- </case>
- </switch>
- </group>
- </xhtml:body>
- </xhtml:html>
|