123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.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>
- <reqeqmt>
- <reqeqmtlist/>
- <reqeqinfolist>
- <instcd/>
- <reqdd/>
- <reqseqno/>
- <reqflag/>
- <mngtdeptcd/>
- <mngtdeptnm/>
- <usernm/>
- <usepose/>
- <hp/>
- <tel/>
- <email/>
- <eqtype/>
- <status/>
- <aprvpsnid/>
- <aprvpsnnm/>
- <reqid/>
- <reqnm/>
- </reqeqinfolist>
- <reqmseqlist/>
- </reqeqmt>
- </main>
- <send>
- <search>
- <instcd/>
- <reqid/>
- <reqnm/>
- <reqdd/>
- <reqflag>Y</reqflag>
- <emplno/>
- <mngtdeptcd/>
- <reqseqno/>
- </search>
- <save>
- <reqeqinfolist>
- </reqeqinfolist>
- <reqeqmtlist/>
- </save>
- </send>
- <hidden/>
- <temp>
- <userinfo/>
- <authinfo/>
- </temp>
- <init/>
- <combo>
- <dcusrslt/>
- <purcprcsstat/>
- </combo>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSC20701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/reqeqmt"/>
- <submission id="TRRSC20702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/reqeqmt"/>
- <submission id="TXRSC20701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
- <submission id="TXRSC20702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
- <submission id="TXRSC20703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
- <submission id="TRRSD04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp/authinfo"/>
- </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/reqeqmt/reqeqmtlist");
-
- misfComboComCdList("Z0007",cmb_instcd);
-
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
-
- model.setValue("/root/send/search/reqdd", getCurrentDate());
- model.setValue("/root/send/search/reqflag", "Y");
- model.setValue("/root/main/reqeqmt/reqeqinfolist/reqdd", getCurrentDate());
- model.setValue("/root/main/reqeqmt/reqeqinfolist/reqflag", "Y");
- model.setValue("/root/send/search/mngtdeptcd", getUserInfo("dutplcecd") );
- model.setValue("/root/main/reqeqmt/reqeqinfolist/mngtdeptcd",getUserInfo("dutplcecd"));
- model.setValue("/root/main/reqeqmt/reqeqinfolist/mngtdeptnm",getUserInfo("dutplcenm"));
-
- model.setValue("/root/main/reqeqmt/reqeqinfolist/reqid", getUserInfo("userid"));
- model.setValue("/root/main/reqeqmt/reqeqinfolist/reqnm", getUserInfo("usernm"));
-
- model.refresh();
- }
- function fInitialize2()
- {
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/instcd");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/reqdd");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/reqseqno");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/reqflag");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/mngtdeptcd");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/mngtdeptnm");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/usernm");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/usepose");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/hp");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/tel");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/email");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/eqtype");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/status");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/aprvpsnid");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/aprvpsnnm");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/reqid");
- model.makeNode("/root/main/reqeqmt/reqeqinfolist/reqnm");
- }
-
- //========================================================================================
- // 전자결재
- //========================================================================================
- function fOutEquipmentval(){
- var aprvpsnid = model.getValue("/root/main/reqeqmt/reqeqinfolist/aprvpsnid")
- if (aprvpsnid == ""){
- messageBox("부서장 승인 후 ", "C003", "");
- }else{
-
- var instcd = model.getValue("/root/main/reqeqmt/reqeqinfolist/instcd");
- var reqdd = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqdd");
- var reqseqno = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqseqno");
-
- var pmaprefcol = "knuhdomain,instId";
- var pmaprefvalue = "KnuhMisOutEquipment,"+instcd+"-"+reqdd+"-"+reqseqno;
-
- misfMakeElctSanct("outEquipment",pmaprefcol,pmaprefvalue);
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,-12;2,8;" 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:175px; height:13px; ">외부출처 전산장비 관리</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:720px; x2:1195px; y2:720px; "/>
- <caption id="caption9" class="tit_2" style="left:280px; top:65px; width:100px; height:13px; ">신청정보</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="순번^신청일^신청번호^동^층^사용위치(상세하게 기록)^사용기간(FROMDD)^사용기간(TODD)^IP Address" colsep="^" colwidth="40, 50, 50, 40, 40, 420, 130, 130, 168" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="13" style="left:280px; top:269px; width:910px; height:411px; ">
- <col ref="outeseqno" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdd" visibility="hidden" style="text-align:center; "/>
- <col ref="reqseqno" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="dong" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- <item>
- <label>5</label>
- <value>5</value>
- </item>
- <item>
- <label>6</label>
- <value>6</value>
- </item>
- <item>
- <label>7</label>
- <value>7</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="floor" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- <item>
- <label>5</label>
- <value>5</value>
- </item>
- <item>
- <label>6</label>
- <value>6</value>
- </item>
- <item>
- <label>7</label>
- <value>7</value>
- </item>
- <item>
- <label>8</label>
- <value>8</value>
- </item>
- <item>
- <label>9</label>
- <value>9</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="usesite" type="input" style="text-align:center; "/>
- <col ref="fromdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ipaddr" style="color:#ff0000; text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqeqmtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:280px; y1:255px; x2:1200px; y2:256px; "/>
- <!--</group>-->
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRSC20701");
- var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
- var resultNode = instance1.selectNodes("/root/main/reqeqmt/reqmseqlist");
- if(resultNode.length == 0){
- messageBox("조회내역이 없습니다.", "E999", "");
- fInitialize2();
- fInitialize();
- return;
- }
- // var reqseqno = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqseqno") ;
- // var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
- // if(reqseqno == ""){
- // messageBox("조회내역이 없습니다.", "E999", "");
- // fInitialize2();
- // fInitialize();
- // }
- model.setValue("/root/send/search/emplno", getUserInfo("userid") );
-
- submit("TRRSD04701"); //권한조회
- var cnt1 = model.getValue("/root/temp/authinfo/cnt");
- var userid1 =model.getValue("/root/send/search/emplno");
-
- if(cnt1 != 0 || userid1 == "99207"){
- btn_acpt.disabled = false ;
-
- }else{
- btn_acpt.disabled = true ;
- }
- if (reqflag == "N"){
- rdo_reqflag.disabled = true;
- btn_save.disabled = true;
- }else{
- rdo_reqflag.disabled = false;
- btn_save.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:10px; top:19px; width:117px; height:17px; ">기관코드 :</caption>
- <line id="line18" class="line_4" style="x1:1109px; y1:15px; x2:1109px; y2:45px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_reqid" ref="/root/main/reqeqmt/reqeqinfolist/reqid" class="input_s_essential" disabled="true" navindex="4" style="left:373px; top:92px; width:80px; 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", cmb_instcd.value, "instcd" );
-
- ipt_reqdeptcd_search.refresh();
- opt_reqdeptnm_search.refresh();
-
- // 권한설정.
- //fSetReqAuth();
-
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:495px; top:20px; width:117px; height:17px; ">신청자 :</caption>
- <output id="opt_reqnm" ref="/root/main/reqeqmt/reqeqinfolist/reqnm" class="output_fix" appearance="output" style="left:455px; top:92px; width:123px; height:19px; "/>
- <caption id="caption14" class="search_name" style="left:280px; top:20px; width:117px; height:17px; ">신청일자 :</caption>
- <input id="ipt_reqdd" ref="/root/send/search/reqdd" class="input_s_essential" navindex="2" inputtype="date" style="left:365px; top:19px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // var reqdd = model.getValue("/root/send/search/reqdd");
- // model.setValue("/root/main/reqeqmt/reqeqinfolist/reqdd",reqdd);
- // model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:95px; top:20px; width:160px; 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>
- <button id="btn_delrow" class="btn2_letter3" style="left:1140px; top:233px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var req = messageBox("선택하신 자료에 관련된 모든 데이터가 삭제됩니다.", "Q003");
- if(req == 6){
- misfGridIUD(grd_reqeqmtlist, "D");
- }else{
- return;
- }
- ]]>
- </script>
- </button>
- <select1 id="rdo_reqflag" ref="/root/send/search/reqflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:860px; top:20px; width:115px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>신청</label>
- <value>Y</value>
- </item>
- <item>
- <label>해제</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var reqflag = model.getValue("/root/send/search/reqflag");
- model.setValue("/root/main/reqeqmt/reqeqinfolist/reqflag",reqflag);
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:770px; top:20px; width:117px; height:17px; ">신청구분 :</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:280px; top:80px; width:910px; height:150px; border-color:#99ccff; "/>
- <caption id="caption20" class="cell_1" style="left:290px; top:123px; width:80px; height:23px; text-align:center; vertical-align:middle; ">부 서 명</caption>
- <caption id="caption2" class="cell_1" style="left:290px; top:153px; width:80px; height:23px; text-align:center; vertical-align:middle; ">휴대전화</caption>
- <input id="input1" ref="/root/main/reqeqmt/reqeqinfolist/hp" disabled="false" navindex="4" style="left:373px; top:155px; width:120px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:515px; top:153px; width:80px; height:23px; text-align:center; vertical-align:middle; ">원내전화</caption>
- <input id="ipt_tel" ref="/root/main/reqeqmt/reqeqinfolist/tel" class="input_s_essential" disabled="false" navindex="4" style="left:597px; top:155px; width:120px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:730px; top:150px; width:80px; height:23px; text-align:center; vertical-align:middle; ">사 용 자</caption>
- <caption id="caption7" class="cell_1" style="left:730px; top:180px; width:80px; height:23px; text-align:center; vertical-align:middle; ">E-Mail</caption>
- <caption id="caption10" class="cell_1" style="left:730px; top:88px; width:80px; height:23px; text-align:center; vertical-align:middle; ">사용목적</caption>
- <caption id="caption11" class="cell_1" style="left:730px; top:118px; width:80px; height:23px; text-align:center; vertical-align:middle; ">장비종류</caption>
- <input id="ipt_usernm" ref="/root/main/reqeqmt/reqeqinfolist/usernm" class="input_s_essential" disabled="false" navindex="4" style="left:812px; top:152px; width:120px; height:19px; "/>
- <input id="input5" ref="/root/main/reqeqmt/reqeqinfolist/email" disabled="false" navindex="4" style="left:812px; top:182px; width:170px; height:19px; "/>
- <input id="ipt_usepose" ref="/root/main/reqeqmt/reqeqinfolist/usepose" class="input_s_essential" disabled="false" navindex="4" style="left:812px; top:90px; width:305px; height:19px; "/>
- <input id="ipt_eqtype" ref="/root/main/reqeqmt/reqeqinfolist/eqtype" class="input_s_essential" disabled="false" navindex="4" style="left:812px; top:120px; width:305px; height:19px; "/>
- <button id="button2" class="btn2_letter3" style="left:1085px; top:233px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_reqeqmtlist, "A");
- var outeseqno = grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row-1, grd_reqeqmtlist.colRef("outeseqno"));
- var reqseqno = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqseqno");
- grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("reqseqno")) = reqseqno;
- var reqdd = model.getValue("/root/send/search/reqdd");
- grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("reqdd")) = reqdd;
- if (outeseqno == "순번"){
- grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("outeseqno")) = "1";
- }else{
- grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("outeseqno")) = parseInt(outeseqno) + parseInt("1")
- }
- ]]>
- </script>
- </button>
- <output id="opt_mngtdeptnm" ref="/root/main/reqeqmt/reqeqinfolist/mngtdeptnm" class="output_fix" appearance="output" style="left:499px; top:125px; width:191px; height:19px; "/>
- <input id="ipt_mngtdeptcd" ref="/root/main/reqeqmt/reqeqinfolist/mngtdeptcd" class="input_s_essential" disabled="true" navindex="4" style="left:373px; top:125px; width:120px; height:19px; "/>
- <input id="input2" ref="/root/main/reqeqmt/reqeqinfolist/instcd" class="input_s_essential" disabled="false" navindex="4" visibility="hidden" style="left:635px; top:55px; width:45px; height:19px; "/>
- <input id="input8" ref="/root/main/reqeqmt/reqeqinfolist/reqdd" class="input_s_essential" disabled="false" navindex="4" visibility="hidden" style="left:685px; top:55px; width:105px; height:19px; "/>
- <input id="input9" ref="/root/main/reqeqmt/reqeqinfolist/reqseqno" class="input_s_essential" disabled="false" navindex="4" visibility="hidden" style="left:795px; top:55px; width:45px; height:19px; "/>
- <input id="input10" ref="/root/main/reqeqmt/reqeqinfolist/reqflag" class="input_s_essential" disabled="false" navindex="4" visibility="hidden" style="left:850px; top:55px; width:45px; height:19px; "/>
- <caption id="caption12" class="tit_2" style="left:280px; top:239px; width:120px; height:13px; ">사용정보 목록</caption>
- <button id="btn_acpt" class="btn2_letter6" disabled="true" navindex="17" style="left:290px; top:205px; width:86px; height:19px; ">
- <caption>부서장승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn = messageBox("승인 하시겠습니까?", "Q");
-
- if(rtn == "6") {
- model.setValue("/root/main/reqeqmt/reqeqinfolist/aprvpsnid", getUserInfo("userid") );
- model.setValue("/root/main/reqeqmt/reqeqinfolist/aprvpsnnm", getUserInfo("usernm"));
-
- model.copyNode("/root/send/save/reqeqinfolist","/root/main/reqeqmt/reqeqinfolist");
- if(submit("TXRSC20703")) {
- messageBox("승인이 완료되었습니다.", "E");
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption13" class="cell_1" style="left:385px; top:204px; width:80px; height:23px; text-align:center; vertical-align:middle; background-color:#ccffff; ">부서승인자</caption>
- <input id="input3" ref="/root/main/reqeqmt/reqeqinfolist/aprvpsnid" disabled="false" navindex="4" style="left:470px; top:205px; width:70px; height:19px; "/>
- <input id="input4" ref="/root/main/reqeqmt/reqeqinfolist/aprvpsnnm" disabled="false" navindex="4" style="left:545px; top:205px; width:110px; height:19px; "/>
- <caption id="caption15" class="cell_1" style="left:290px; top:90px; width:80px; height:23px; text-align:center; vertical-align:middle; ">신 청 자</caption>
- <button id="btn_winpsn" class="icon_search" navindex="8" style="left:643px; top:22px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqid,reqnm";
- misfOpenPopUpList("12", ipt_emplno_search,"",recv_list); // 사용자 조회
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplno_search" ref="/root/send/search/reqid" class="input_search" navindex="7" maxlength="10" appearance="input" style="left:570px; top:20px; width:68px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "reqid,reqnm";
- misfValidationCheck("01-1","", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_emplnm_search" ref="/root/send/search/reqnm" class="output_fix" navindex="-1" editable="false" style="left:663px; top:20px; width:72px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "reqid,reqnm";
- misfValidationCheck("01-2","", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="button4" class="btn5_letter9" style="left:975px; top:20px; width:119px; height:19px; ">
- <caption>부서신청리스트조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var mngtdeptcd = getUserInfo("dutplcecd") ;
- model.setValue("/root/send/search/mngtdeptcd", mngtdeptcd)
- submit("TRRSC20702");
-
- var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
- var resultNode = instance1.selectNodes("/root/main/reqeqmt/reqmseqlist");
- if(resultNode.length == 0){
- messageBox("조회내역이 없습니다.", "E999", "");
- fInitialize2();
- fInitialize();
- return;
- }
- ]]>
- </script>
- </button>
- <caption id="caption16" class="tit_2" style="left:5px; top:65px; width:100px; height:15px; ">신청리스트</caption>
- <datagrid id="grd_reqmseqlist" nodeset="/root/main/reqeqmt/reqmseqlist" caption="순번^결재번호/상태^결재번호/상태^신청일^신청자ID^신청자^신청구분" colsep="^" colwidth="51, 55, 55, 77, 50, 50,50" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="13" style="left:5px; top:85px; width:265px; height:590px; ">
- <col ref="reqseqno" visibility="hidden" style="text-align:center; "/>
- <col ref="docregno" style="text-align:center; "/>
- <col ref="docstatus" style="text-align:center; "/>
- <col ref="reqdd" style="text-align:center; "/>
- <col ref="reqid" visibility="hidden" style="text-align:center; "/>
- <col ref="reqnm" style="text-align:center; "/>
- <col ref="reqflag" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqmseqlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var idx = grd_reqmseqlist.Row;
- if( idx < 1) return ;
-
- model.setValue("/root/send/search/reqdd", model.getValue("/root/main/reqeqmt/reqmseqlist["+idx+"]/reqdd"));
- model.setValue("/root/send/search/reqid", model.getValue("/root/main/reqeqmt/reqmseqlist["+idx+"]/reqid"));
- model.setValue("/root/send/search/reqflag", model.getValue("/root/main/reqeqmt/reqmseqlist["+idx+"]/reqflag"));
- model.setValue("/root/send/search/reqseqno", model.getValue("/root/main/reqeqmt/reqmseqlist["+idx+"]/reqseqno"));
- submit("TRRSC20701");
-
- var reqseqno = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqseqno") ;
- var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
- model.setValue("/root/send/search/emplno", getUserInfo("userid") );
-
- submit("TRRSD04701"); //권한조회
- var cnt1 = model.getValue("/root/temp/authinfo/cnt");
- var userid1 =model.getValue("/root/send/search/emplno");
-
- if(cnt1 != 0 || userid1 == "99207"){
- btn_acpt.disabled = false ;
-
- }else{
- btn_acpt.disabled = true ;
- }
- if (reqflag == "N"){
- rdo_reqflag.disabled = true;
- btn_save.disabled = true;
- }else{
- rdo_reqflag.disabled = false;
- btn_save.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </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:1137px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_mngtdeptcd.value == ""){
- messageBox("부서코드는 필수 입력입니다.", "E999", "");
- model.setFocus("ipt_mngtdeptcd");
- return;
- }
-
- if(opt_mngtdeptnm.value == ""){
- messageBox("부서명는 필수 입력입니다.", "E999", "");
- return;
- }
-
- if(ipt_usernm.value == ""){
- messageBox("사용자는 필수 입력입니다.", "E999", "");
- model.setFocus("ipt_usernm");
- return;
- }
-
- if(ipt_usepose.value == ""){
- messageBox("사용목적은 필수 입력입니다.", "E999", "");
- model.setFocus("ipt_usepose");
- return;
- }
-
- if(ipt_tel.value == ""){
- messageBox("원내전화는 필수 입력입니다.", "E999", "");
- model.setFocus("ipt_tel");
- return;
- }
-
- if(ipt_eqtype.value == ""){
- messageBox("장비종류는 필수 입력입니다.", "E999", "");
- model.setFocus("ipt_eqtype");
- return;
- }
-
- if(grd_reqeqmtlist.rows == "1"){
- messageBox("사용정보는 하나이상 필수 입력입니다.", "E999", "");
- return;
- }
-
- var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
- var aprvpsnid = model.getValue("/root/main/reqeqmt/reqeqinfolist/aprvpsnid");
- if(reqflag == "Y" && aprvpsnid != ""){
- messageBox("부서승인 완료된 내역으로 수정 할 수", "I004", "");
- }else{
- model.setValue("/root/send/search/reqdd", getCurrentDate());
- var reqseqno = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqseqno");
- if(reqseqno == ""){
- model.setValue("/root/main/reqeqmt/reqeqinfolist/status","i");
- }else{
- model.setValue("/root/main/reqeqmt/reqeqinfolist/status","u");
- }
- model.copyNode("/root/send/save/reqeqinfolist","/root/main/reqeqmt/reqeqinfolist");
-
- if(grd_reqeqmtlist.rows != "1") model.setValue("/root/send/save/reqeqmtlist" ,grd_reqeqmtlist.getUpdateData());
- // alert(model.getValue("/root/send/save/reqeqinfolist/status"));
- var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
- if(reqflag =="N"){
- var ret = messageBox("해제신청을", "Q003");
- if ( ret == "6" ) {
- submit("TXRSC20702");
- btn_search.dispatch("DOMActivate");
- messageBox(" ", "I002", "");
- }
- }else{
- if( submit("TXRSC20701") ) {
- btn_search.dispatch("DOMActivate");
- messageBox(" ", "I001", "");
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_reqapp" class="btn6_letter4" visibility="visible" style="left:2px; top:3px; width:80px; height:22px; ">
- <caption>전자결재</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOutEquipmentval();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter3" style="left:1068px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/reqeqmt/reqeqmtlist");
- model.resetInstanceNode("/root/main/reqeqmt/reqeqinfolist");
- fInitialize2();
- fInitialize();
- rdo_reqflag.disabled = false;
- btn_save.disabled = false;
- btn_acpt.disabled = true;
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|