123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="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>
- <reqeqmt>
- <reqeqmtlist/>
- </reqeqmt>
- </main>
- <send>
- <search>
- <instcd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqfrmdd/>
- <reqtodd/>
- <prcsstat/>
- <emplno/>
- </search>
- <save>
- <reqeqmtlist/>
- </save>
- </send>
- <hidden/>
- <temp>
- </temp>
- <init/>
- <combo>
- <dcusrslt/>
- <purcprcsstat/>
- <reqdeptcd>
- <reqdeptcdlist>
- <value/>
- <label/>
- </reqdeptcdlist>
- </reqdeptcd>
- </combo>
- <emplno>
- <emplno/>
- </emplno>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSC20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/reqeqmt"/>
- <submission id="TRRSC20102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/emplno" resultref="/root/temp"/>
- <submission id="TXRSC20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/deprtmangr"/>
- <submission id="TRRSC20103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/emplno" resultref="/root/combo/reqdeptcd"/>
- </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()
- {
- misfGridInit(grd_reqeqmtlist);
-
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
-
- misfComboComCdList("Z0007",cmb_instcd);
- misfComboComCdList("030R0025",cmb_prcsstat_search);
- misfGridComboComCdList("030R0026",grd_reqeqmtlist,"dcusrslt");
- misfComboCopyItemSet(cmb_prcsstat_search, "", grd_reqeqmtlist, "prcsstat");
- addComboItem( "cmb_prcsstat_search", "전체", "", "above");
- model.setValue(cmb_prcsstat_search.attribute("ref"), "");
-
- // misfGridComboComCdList("030R0025",grd_reqeqmtlist,"prcsstat");
- // misfGridComboComCdList("030R0026",grd_reqeqmtlist,"dcusrslt");
- // misfGridComboComCdList("030R0027",grd_reqeqmtlist,"purcprcsstat");
-
- //misfComboComCdListMulti("030R0025","cmb_prcsstat_search");
- // 전체
- //rszfComboAppendBlankChild("cmb_prcsstat_search");
-
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- // model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- // model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
-
- misfMsterDetailSet(grd_reqeqmtlist ,null, "TRRSC20101", "Y");
-
- //btn_search.dispatch("DOMActivate");
-
- model.setValue("/root/emplno/emplno", getUserInfo("userid"));
- submit("TRRSC20102");
- var deprtmangr = model.getValue("/root/deprtmangr/deprtmangr");
- if(getUserInfo("userid") == "MIS" || getUserInfo("userid") == "99207" || getUserInfo("userid") == "97089" || getUserInfo("userid") == "95034" || getUserInfo("userid") == "15016"|| getUserInfo("userid") == "15352"){
-
- }else{
- ipt_reqdeptcd_search.disabled = true;
- button5.disabled = true;
- opt_reqdeptnm_search.disabled = true;
-
- submit("TRRSC20103");
- cmb_deptcd.visible = true;
- cmb_deptcd.refresh();
-
- if(deprtmangr == ""){
- messageBox("접속하신 아이디는 화면권한이 없습니다.", "E999", "");
- btn_search.disabled = true;
- btn_save.disabled = true;
- btnselect.disabled = true;
- btn_cancel.disabled = true;
- cmb_deptcd.disabled = true;
- return;
- }
-
- }
- model.setValue("/root/send/search/reqfrmdd", getCurrentDate().substr(0,4)+"0101");
- model.setValue("/root/send/search/reqtodd", getCurrentDate().substr(0,8));
-
- model.setValue("/root/send/search/reqdeptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/send/search/reqdeptnm", getUserInfo("dutplcenm"));
-
- cmb_prcsstat_search.value = "1";
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,-12;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:14px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">장비신청 부서장승인</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
- <line id="line12" class="line_2" style="x1:0px; y1:531px; x2:1195px; y2:531px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:79px; width:100px; height:14px; ">장비신청 목록</caption>
- <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
- <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
- <datagrid id="grd_reqeqmtlist" nodeset="/root/main/reqeqmt/reqeqmtlist" caption="부서장승인^진행상태^신청번호^신청자^장비명^설치장소^신청수량^단위^원화총금액^외화총금액^심의결과^심의비고^구매기준일자^구매진행상태^구매비고" colsep="^" colwidth="80, 140, 95, 60, 150, 130, 55, 70, 80, 80, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="13" style="left:0px; top:99px; width:1195px; height:636px; ">
- <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox"/>
- <col disabled="true" ref="prcsstat" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="reqno" style="text-align:center; "/>
- <col ref="reqpsnnm" style="text-align:center; "/>
- <col ref="goodflagengnm"/>
- <col ref="installplcenm"/>
- <col ref="appqty" style="text-align:center; "/>
- <col ref="bugtforgnamtunitnm" style="text-align:center; "/>
- <col ref="bugtwncurncy" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- <col ref="bugtforgnamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- <col disabled="true" ref="dcusrslt" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="dcuscmt"/>
- <col ref="badd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="purcprcsstat" style="text-align:center; "/>
- <col ref="purcprcscmt"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="acptflag" visibility="hidden"/>
- <col ref="goodflaghngnm" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <col ref="workflagnm" visibility="hidden"/>
- <col ref="welfcd" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqdeptnm" visibility="hidden"/>
- <col ref="mngtdeptcd" visibility="hidden"/>
- <col ref="mngtdeptnm" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="usemthd" visibility="hidden"/>
- <col ref="usemthdnm" visibility="hidden"/>
- <col ref="fcstuseyearno" visibility="hidden"/>
- <col ref="goodunitcost" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="bugtforgnamtunit" visibility="hidden"/>
- <col ref="chgrate" visibility="hidden"/>
- <col ref="addmnpwrdr" visibility="hidden"/>
- <col ref="addmnpwrnurs" visibility="hidden"/>
- <col ref="addmnpwrengr" visibility="hidden"/>
- <col ref="addmnpwretc" visibility="hidden"/>
- <col ref="installspcepossnyn" visibility="hidden"/>
- <col ref="calcscorgenryn" visibility="hidden"/>
- <col ref="usgepurcneed" visibility="hidden"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="possesdocucd" visibility="hidden"/>
- <col ref="comusedept" visibility="hidden"/>
- <col ref="smkindeqyn" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="rowstatus" visibility="hidden"/>
- <col ref="adyn" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqeqmtlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_reqeqmtlist.rows == "1"){
- return;
- }
- model.setValue("/root/main/reqeqmt/reqeqmtlist[" + grd_reqeqmtlist.row + "]/rowstatus","disabled");
- window.load("SMRSC20200_장비신청상세내역(경북대).xrw", "modal","", "left:300; top:300;", "/root/main/reqeqmt/reqeqmtlist[" + grd_reqeqmtlist.row + "]","/root/main/reqeqmtlist");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_reqeqmtlist.row;
- if(grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("deptaprvyn")) == "N"){
- if(grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("acptflag")) == "Y"){
- messageBox("이미 접수 완료된 자료 입니다.", "E999", "");
- grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("deptaprvyn")) = "Y"
- grd_reqeqmtlist.rowStatus(row) = 0;
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:96px; "/>
- <!--</group>-->
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <button id="button5" class="icon_search" disabled="false" navindex="5" style="left:538px; top:21px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, cmb_instcd.value, "instcd") ;
- model.refresh();
- // 권한설정.
- //fSetReqAuth();
-
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:15px; top:19px; width:117px; height:17px; ">기관코드 :</caption>
- <line id="line18" class="line_4" style="x1:1109px; y1:20px; x2:1109px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_reqdeptcd_search" ref="/root/send/search/reqdeptcd" class="input_s_essential" disabled="false" navindex="4" style="left:425px; top:20px; width:110px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd_search.value.length == 0)
- opt_reqdeptnm_search.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd" );
-
- model.refresh();
-
- // 권한설정.
- //fSetReqAuth();
-
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:340px; top:20px; width:117px; height:17px; ">신청부서 :</caption>
- <output id="opt_reqdeptnm_search" ref="/root/send/search/reqdeptnm" class="output_fix" appearance="output" style="left:557px; top:20px; width:148px; height:19px; "/>
- <caption id="caption14" class="search_name" style="left:15px; top:45; width:117px; height:17px; ">신청일자 :</caption>
- <input id="ipt_reqfrmdd_search" ref="/root/send/search/reqfrmdd" class="input_s_essential" navindex="2" inputtype="date" style="left:100px; top:44; width:95px; height:19px; "/>
- <caption id="caption42" style="left:199px; top:45px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <input id="ipt_reqtodd_search" ref="/root/send/search/reqtodd" class="input_s_essential" navindex="3" inputtype="date" style="left:215px; top:44; width:95px; height:19px; "/>
- <select1 id="cmb_prcsstat_search" ref="/root/send/search/prcsstat" class="combo_default" navindex="7" appearance="minimal" style="left:425px; top:44px; width:190px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption45" class="search_name" style="left:340px; top:45px; width:117px; height:17px; ">진행상태 :</caption>
- <button id="btnselect" class="btn2_letter4" navindex="11" style="left:1063px; top:73px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i = 1 ; i < grd_reqeqmtlist.rows ; i++)
- {
- if(grd_reqeqmtlist.valueMatrix(i, grd_reqeqmtlist.colRef("acptflag")) == "N"){
- grd_reqeqmtlist.valueMatrix(i, grd_reqeqmtlist.colRef("deptaprvyn")) = "Y";
- grd_reqeqmtlist.rowStatus(i) = 2;
- }
- }
- grd_reqeqmtlist.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:100px; top:20px; width:210px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- opt_instcd.value = cmb_instcd.value;
- ]]>
- </script>
- </select1>
- <select1 id="ipt_dcusrslt" ref="/root/combo/dcusrslt" visibility="hidden" appearance="minimal" style="left:825px; top:50px; width:30px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="ipt_purcprcsstat" ref="/root/combo/purcprcsstat" visibility="hidden" appearance="minimal" style="left:855px; top:50px; width:30px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_cancel" class="btn2_letter4" navindex="11" style="left:1128px; top:73px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i = 1 ; i < grd_reqeqmtlist.rows ; i++)
- {
- if(grd_reqeqmtlist.valueMatrix(i, grd_reqeqmtlist.colRef("acptflag")) == "N"){
- grd_reqeqmtlist.valueMatrix(i, grd_reqeqmtlist.colRef("deptaprvyn")) = "N";
- grd_reqeqmtlist.rowStatus(i) = 2;
- }
- }
- grd_reqeqmtlist.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_deptcd" ref="/root/combo/reqdeptcd" visibility="hidden" appearance="minimal" style="left:425px; top:20px; width:280px; height:19px; ">
- <choices>
- <itemset nodeset="/root/combo/reqdeptcd/reqdeptcdlist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/search/reqdeptcd",cmb_deptcd.value);
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i = 1 ; i < grd_reqeqmtlist.rows ; i++){
- if(grd_reqeqmtlist.rowStatus(i) == "2"){
- model.setValue("/root/main/reqeqmt/reqeqmtlist["+i+"]/adyn","dept");
- }
- }
-
- var req = messageBox("부서장승인된 자료를 승인하거나 취소합니다.", "Q003");
- if(req == 6){
- misfSave("TXRSC20101");
- btn_search.dispatch("DOMActivate");
- }else{
- return;
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|