1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366 |
- <?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>
- <list>
- <reqmngt>
- <prcscd/>
- <fstrgstdt/>
- <usernm/>
- <reqnm/>
- <reqdd/>
- <instnm/>
- <reqdeptnm/>
- <requsernm/>
- <telno/>
- <prcstitl/>
- <itcconf/>
- <infoconfmng/>
- <prcsmsg/>
- <statnm/>
- <itcagryn/>
- <deptagryn/>
- <reqpart/>
- <impnm/>
- <secuflag/>
- <emgflag/>
- <projcd/>
- <filegrpno/>
- <tftno/>
- <statcd/>
- <fstrpttxt/>
- <rpttxt/>
- <fstrnm/>
- <fstrdt/>
- <lastnm/>
- <lastdt/>
- <userid/>
- <instcd/>
- <reqgubun/>
- <updateuserid/>
- <posdeptnm/>
- <posinstnm/>
- <attach/>
- <itcconfnm/>
- <infomngconfnm/>
- <preprcscd/>
- <itcconfgrpno/>
- <infomnggrpno/>
- <appinst/>
- <priocd/>
- <prionm/>
- <impcd/>
- <deptagrlst/>
- </reqmngt>
- </list>
- <data>
- <prcscd/>
- <reqdd/>
- <reqdeptnm/>
- <requsernm/>
- <telno/>
- <prcstitl/>
- <prcsmsg/>
- <itcagryn/>
- <deptagryn/>
- <reqpart/>
- <secuflag/>
- <emgflag/>
- <filegrpno/>
- <statcd/>
- <fstrpttxt/>
- <rpttxt/>
- <reqgubun/>
- <impcd/>
- <fstrgstrid/>
- <instcd/>
- <posinstnm/>
- <posdeptnm/>
- <usernm/>
- <userid/>
- <updateuserid/>
- <attach/>
- <itcconfnm/>
- <infomngconfnm/>
- <preprcscd/>
- <itcconfgrpno/>
- <infomnggrpno/>
- <appinst/>
- <priocd/>
- <prionm/>
- <deptagrlst/>
- <projcd/>
- </data>
- <mode>
- <modestatus/>
- <modelabel/>
- </mode>
- <ftpfilelist>
- <filelist>
- </filelist>
- <itcconffilelist/>
- <infomngfilelist/>
- </ftpfilelist>
- <newfilegrpno>
- <filegrpno/>
- </newfilegrpno>
- <newfileno>
- <fileno/>
- </newfileno>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <instcd/>
- <reqdeptnm/>
- <requsernm/>
- <statcd/>
- <reqgubun/>
- <ismine/>
- <searchtxt/>
- <fstrgstrid/>
- <gpcd/>
- <prcscd/>
- <itcconftxt/>
- <infomngconftxt/>
- <priocd/>
- <data>
- </data>
- <filegrpno/>
- <req>
- <filelist/>
- <itcconffilelist/>
- <infomngfilelist/>
- </req>
- </send>
- <hidden>
- <temp>
- </temp>
- </hidden>
- <init>
- <list>
- <C0008>
- <cdid/>
- <cdnm/>
- </C0008>
- <C0001>
- <cdid/>
- <cdnm/>
- </C0001>
- <C0010>
- <cdid/>
- <cdnm/>
- </C0010>
- <C0015>
- <cdid/>
- <cdnm/>
- </C0015>
- <I0008>
- <cdid/>
- <cdnm/>
- </I0008>
- <I0010>
- <cdid/>
- <cdnm/>
- </I0010>
- <I0003>
- <cdid/>
- <cdnm/>
- </I0003>
- <I0015>
- <cdid/>
- <cdnm/>
- </I0015>
- </list>
- <itcstat/>
- <ftppath>
- <pathid/>
- <host/>
- <port/>
- <usr/>
- <passwd/>
- <path/>
- </ftppath>
- <userauth>
- <auth/>
- </userauth>
- </init>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/reqmngtweb/js/ZRM001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 조회 조건의 콤보박스 출력
- model.setValue("/root/send/gpcd","0001|0008|0010|0003|0015");
- submit("TRZRM00102");
-
- combo1.select(0);
- combo2.select(0);
- radio1.select(0);
- combo4.select(0);
- combo5.select(0);
- combo6.select(0);
-
- combo7.select(0);
- combo8.select(0);
-
-
- // 조회일자 초기화
- ipt_fromdd.value = getCurrentDate();
- ipt_todd.value = getCurrentDate();
- ipt_reqdd.value = getCurrentDate();
-
- // 파일 첨부 경로 가져오기
- submit("TRZRM00105");
-
- // 추가할 수 있는 상태로 초기화
- fInsertMode();
-
- switch1.selectedIndex = 0
-
- //버튼초기화
- button2.disabled = true;
- button3.disabled = true;
-
- //사용자의 권한 셋팅..
- model.makeValue("/root/send/userid", getUserInfo("userid"));
- submit("TRZRM00108");
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZRM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TRZRM00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/list"/>
- <submission id="TRZRM00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- <submission id="TRZRM00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ftpfilelist"/>
- <submission id="TRZRM00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ftppath"/>
- <submission id="TRZRM00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/newfilegrpno"/>
- <submission id="TRZRM00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TRZRM00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userauth"/>
- <submission id="TXZRM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TXZRM00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TXZRM00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/newfileno"/>
- <submission id="TXZRM00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data"/>
- <submission id="TXZRM00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data"/>
- <submission id="TXZRM00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data"/>
- </model>
- <object id="objSFT" visibility="hidden" clsid="{2831e72c-9640-44ea-87dc-ddb462d5796c}" visible="false" style="left:0px; top:0px; width:40px; height:20px; "/>
- <script type="javascript">
- <![CDATA[
- // 화면 초기화
- function fInitMainData(disabled){
- model.removeNodeset("/root/main/ftpfilelist/filelist");
- model.removeNodeset("/root/main/ftpfilelist/itcconffilelist");
- model.removeNodeset("/root/main/ftpfilelist/infomngfilelist");
-
- model.makeValue("/root/main/data/prcscd", "");
- //model.makeValue("/root/main/data/reqdd", "");
- model.makeValue("/root/main/data/reqdeptnm", "");
- model.makeValue("/root/main/data/requsernm", "");
- model.makeValue("/root/main/data/telno", "");
- model.makeValue("/root/main/data/prcstitl", "");
- model.makeValue("/root/main/data/prcsmsg", "");
- model.makeValue("/root/main/data/itcagryn", "");
- model.makeValue("/root/main/data/deptagryn", "");
- model.makeValue("/root/main/data/reqpart", "");
- model.makeValue("/root/main/data/secuflag", "");
- model.makeValue("/root/main/data/emgflag", "");
- model.makeValue("/root/main/data/filegrpno", "");
- model.makeValue("/root/main/data/itcconfgrpno", "");
- model.makeValue("/root/main/data/infomnggrpno", "");
- model.makeValue("/root/main/data/statcd", "");
- model.makeValue("/root/main/data/fstrpttxt", "");
- model.makeValue("/root/main/data/rpttxt", "");
- model.makeValue("/root/main/data/reqgubun", "");
- model.makeValue("/root/main/data/impcd", "");
- model.makeValue("/root/main/data/fstrgstrid", "");
- model.makeValue("/root/main/data/instcd", "");
- model.makeValue("/root/main/data/posinstnm",getUserInfo("posinstnm"));
- model.makeValue("/root/main/data/posdeptnm", getUserInfo("posdeptnm"));
- model.makeValue("/root/main/data/usernm", getUserInfo("usernm"));
- model.makeValue("/root/main/data/userid", getUserInfo("userid"));
- model.makeValue("/root/main/data/updateuserid", "");
- model.makeValue("/root/main/data/itcconfnm", "");
- model.makeValue("/root/main/data/infomngconfnm", "");
- model.makeValue("/root/init/itcstat", "");
-
-
-
- //model.makeValue("/root/main/ftpfilelist/filelist", "");
- //model.makeValue("/root/main/ftpfilelist/itcconffilelist", "");
- //model.makeValue("/root/main/ftpfilelist/infomngfilelist", "");
-
- model.removeNodeset("/root/send/data");
- model.makeValue("/root/send/data", "");
- model.refresh();
- fDisableMainDataControls(disabled);
-
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,783;1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <object id="objSFT" clsid="{2831e72c-9640-44ea-87dc-ddb462d5796c}" style="left:5px; top:91px; width:10px; height:0px; "/>
- <line id="line2" class="line_2" style="x1:595px; y1:315px; x2:1192px; y2:315px; "/>
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1192px; height:771px; ">
- <group id="grp_sea" style="left:0px; top:15px; width:1192px; height:80px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1192px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption8" class="search_name" style="left:15px; top:5px; width:104px; height:17px; ">등록일자 :</caption>
- <caption id="caption7" class="search_no_b" style="left:192px; top:6px; width:12px; height:17px; ">~</caption>
- <caption id="caption1" class="search_name" style="left:300px; top:5px; width:100px; height:17px; ">발의기관 :</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="2" inputtype="date" style="left:105px; top:5px; width:85px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="3" inputtype="date" style="left:205px; top:5px; width:85px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/fstrgstrid", getUserInfo("userid"));
- submit("TRZRM00107");
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/send/instcd" class="combo_search" navindex="4" appearance="minimal" style="left:390px; top:5px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list/C0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:575px; top:5px; width:100px; height:17px; ">요청부서 :</caption>
- <caption id="caption3" class="search_name" style="left:845px; top:5px; width:100px; height:17px; ">요청자 :</caption>
- <caption id="caption4" class="search_name" style="left:15px; top:28px; width:90px; height:17px; ">진행상태 :</caption>
- <caption id="caption5" class="search_name" style="left:300px; top:28px; width:100px; height:17px; ">요청구분 :</caption>
- <input id="input2" ref="/root/send/requsernm" class="input_search" navindex="6" style="left:940px; top:5px; width:150px; height:19px; "/>
- <input id="input1" ref="/root/send/reqdeptnm" class="input_search" navindex="5" style="left:665px; top:5px; width:145px; height:19px; "/>
- <select id="chk_ismine" ref="/root/send/ismine" navindex="9" overflow="visible" appearance="full" style="left:1067px; top:28px; width:125px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>본인이 등록한것만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select1 id="radio1" ref="/root/send/reqgubun" navindex="8" overflow="visible" appearance="full" cols="10" style="left:390px; top:28px; width:385px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/list/C0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/send/statcd" class="combo_search" navindex="7" appearance="minimal" style="left:105px; top:28px; width:185px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list/C0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo7" ref="/root/send/priocd" class="combo_search" navindex="4" appearance="minimal" style="left:940px; top:28px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list/C0015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption35" class="search_name" style="left:845px; top:28px; width:100px; height:17px; ">우선순위 :</caption>
- <caption id="caption42" class="search_name" style="left:15px; top:50px; width:100px; height:17px; ">요청번호 :</caption>
- <caption id="caption43" class="search_name" style="left:300px; top:50px; width:166px; height:17px; ">요청제목 or 요청내용 :</caption>
- <input id="input4" ref="/root/send/prcscd" class="input_search" style="left:105px; top:50px; width:185px; height:19px; "/>
- <input id="input5" ref="/root/send/searchtxt" class="input_search" style="left:465px; top:50px; width:345px; height:19px; "/>
- </group>
- <line id="line1" class="line_1" style="x1:1px; y1:116px; x2:585px; y2:116px; "/>
- <button id="btn_excel" class="btn2_letter4" style="left:475px; top:95px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "요구사항관리_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_reqmngtlist.saveExcel(fileName, "SheetName", true, true, "", "", "false");
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter7" visibility="hidden" style="left:1090px; top:177px; width:97px; height:19px; ">
- <caption>등록자와 동일</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/main/data/reqdeptnm", model.getValue("/root/main/data/posdeptnm"));
- model.setValue("/root/main/data/requsernm", model.getValue("/root/main/data/usernm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_fileattach" class="btn2_letter4" visibility="hidden" style="left:1125px; top:506px; width:64px; height:19px; ">
- <caption>파일첨부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pos;
- var filename;
- var n;
- var temp;
-
- files = window.fileDialog("open", "|", true);
- filelist = files.split("|");
- for(var i = 0 ; i < filelist.length ; i++ ) {
- if(filelist[i] != "")
- {
- grd_attach.addItem();
- n = grd_attach.rows - 1;
-
- pos=filelist[i].lastIndexOf("\\");
- filename=filelist[i].substring(pos+1);
-
- grd_attach.valueMatrix(n, 1) = "I";
- grd_attach.valueMatrix(n, 2) = filelist[i];
- grd_attach.valueMatrix(n, 3) = filename;
- grd_attach.valueMatrix(n, 4) = model.getValue("/root/init/ftppath/host");
- grd_attach.valueMatrix(n, 5) = model.getValue("/root/init/ftppath/port");
- grd_attach.valueMatrix(n, 6) = model.getValue("/root/init/ftppath/usr");
- grd_attach.valueMatrix(n, 7) = model.getValue("/root/init/ftppath/passwd");
- grd_attach.valueMatrix(n, 8) = model.getValue("/root/init/ftppath/pathid");
- grd_attach.valueMatrix(n, 9) = model.getValue("/root/init/ftppath/path");
- grd_attach.valueMatrix(n, 10) = filename.substring(filename.indexOf(".")+1);
- grd_attach.valueMatrix(n, 11) = getUserInfo("userid");
- grd_attach.valueMatrix(n, 12) = getUserInfo("userid");
- grd_attach.valueMatrix(n, 13) = model.getValue("/root/main/data/filegrpno");
- grd_attach.valueMatrix(n, 14) = "0";
- }
- }
-
- ]]>
- </script>
- </button>
- <input id="ipt_requsernm" ref="/root/main/data/requsernm" class="input_essential" style="left:700px; top:230px; width:210px; height:19px; "/>
- <textarea id="tar_prcsmsg" ref="/root/main/data/prcsmsg" class="input_essential" style="left:660px; top:365px; width:375px; height:130px; "/>
- <input id="ipt_telno" ref="/root/main/data/telno" class="input_essential" style="left:1010px; top:230px; width:178px; height:19px; "/>
- <output id="opt_modellabel" ref="/root/main/mode/modelabel" class="tit_2" style="left:595px; top:100px; width:269px; height:13px; "/>
- <input id="ipt_reqdd" ref="/root/main/data/reqdd" class="input_search" inputtype="date" style="left:660px; top:290px; width:90px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:595px; top:338px; width:61px; height:23px; vertical-align:middle; ">요청제목</caption>
- <caption id="caption21" class="cell_1" style="left:595px; top:525px; width:61px; height:23px; vertical-align:middle; ">요청분야</caption>
- <caption id="caption10" class="cell_1" style="left:1020px; top:140px; width:50px; height:23px; vertical-align:middle; ">성명</caption>
- <caption id="caption22" class="cell_1" style="left:595px; top:365px; width:61px; height:130px; vertical-align:middle; ">요청내용</caption>
- <img id="img_cdgrup_search_popup" class="icon_search" visibility="hidden" style="left:1019px; top:527px; width:16px; height:16px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SSZRM00100", 1, 0, 0 ,"", "", "");
- ]]>
- </script>
- </img>
- <caption id="caption12" class="cell_1" style="left:915px; top:200px; width:90px; height:23px; vertical-align:middle; ">요청부서</caption>
- <upload id="upload_attach" nodeset="/root/main/data/attach/file" filecount="5" filesize="100000000" validate="true" style="left:1040px; top:485px; width:25px; height:20px; "/>
- <input id="ipt_prcstitl" ref="/root/main/data/prcstitl" class="input_essential" style="left:660px; top:340px; width:375px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:595px; top:200px; width:100px; height:23px; vertical-align:middle; ">요청자 발의기관</caption>
- <caption id="caption24" class="cell_1" style="left:595px; top:140px; width:60px; height:23px; vertical-align:middle; ">소속기관</caption>
- <button id="btn_filedelete" class="btn2_letter4" visibility="hidden" style="left:1060px; top:526px; width:64px; height:19px; ">
- <caption>파일삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_attach, true);
-
- ]]>
- </script>
- </button>
- <select1 id="combo4" ref="/root/main/data/instcd" class="combo_essential" appearance="minimal" style="left:700px; top:202px; width:210px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list/I0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption25" class="cell_1" style="left:915px; top:228px; width:90px; height:23px; vertical-align:middle; ">전화번호</caption>
- <caption id="caption14" class="cell_1" style="left:595px; top:288px; width:61px; height:23px; vertical-align:middle; ">요청일자</caption>
- <select1 id="combo5" ref="/root/main/data/reqgubun" class="combo_essential" appearance="minimal" style="left:815px; top:290px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list/I0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption15" class="cell_1" style="left:754px; top:288px; width:58px; height:23px; vertical-align:middle; ">요청구분</caption>
- <input id="ipt_cdid" ref="/root/main/data/posdeptnm" class="input_essential" disabled="true" style="left:875px; top:142px; width:140px; height:19px; "/>
- <select1 id="combo6" ref="/root/main/data/impcd" class="combo_essential" appearance="minimal" style="left:1110px; top:290px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list/I0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_reqpart" ref="/root/main/data/reqpart" class="input_essential" style="left:660px; top:527px; width:370px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:1050px; top:288px; width:55px; height:23px; vertical-align:middle; ">중요도</caption>
- <input id="ipt_instcd" ref="/root/main/data/posinstnm" class="input_essential" disabled="true" style="left:660px; top:142px; width:144px; height:19px; "/>
- <input id="ipt_reqdeptnm" ref="/root/main/data/reqdeptnm" class="input_essential" style="left:1010px; top:202px; width:178px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:810px; top:140px; width:60px; height:23px; vertical-align:middle; ">소속부서</caption>
- <caption id="caption19" class="cell_1" style="left:595px; top:228px; width:100px; height:23px; vertical-align:middle; ">요청자명</caption>
- <input id="ipt_cdnm" ref="/root/main/data/usernm" class="input_essential" disabled="true" style="left:1075px; top:142px; width:115px; height:19px; "/>
- <datagrid id="grd_attach" nodeset="/root/main/ftpfilelist/filelist" caption="status^경로^첨부파일^host^port^usr^passwd^pathid^remotepath^ext^fstrgstrid^lastupdtrid^filegrpno^fileno" colwidth="0,0,150,0,0,0,0,0,0,0,0,0,0,0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" tooltip="true" style="left:1040px; top:365px; width:150px; height:130px; ">
- <col ref="status"/>
- <col ref="localpath"/>
- <col ref="filename"/>
- <col ref="host"/>
- <col ref="port"/>
- <col ref="usr"/>
- <col ref="passwd"/>
- <col ref="pathid"/>
- <col ref="remotepath"/>
- <col ref="ext"/>
- <col ref="fstrgstrid"/>
- <col ref="lastupdtrid"/>
- <col ref="filegrpno"/>
- <col ref="fileno"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_attach.row <= 0) { return;}
- if (grd_attach.col <= 0) { return;}
-
- // 해당파일 다운로드 정보 셋팅
- var row = grd_attach.row;
- var host = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/host");
- var port = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/port");
- var user = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/usr");
- var pass = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/passwd");
- var pathRemote = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/remotepath");
- var filename = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/localpath");
-
- fFileExcute(host, port, user, pass, pathRemote, filename);
-
- //fFilePreview();
- ]]>
- </script>
- </datagrid>
- <line id="line9" class="line_2" style="x1:595px; y1:313px; x2:1192px; y2:313px; "/>
- <line id="line5" class="line_2" style="x1:595px; y1:225px; x2:1192px; y2:225px; "/>
- <line id="line4" class="line_2" style="x1:595px; y1:522px; x2:1192px; y2:522px; "/>
- <caption id="caption30" class="tit_2" style="left:595px; top:268px; width:126px; height:13px; vertical-align:middle; ">요청 내용</caption>
- <line id="line6" class="line_1" style="x1:595px; y1:116px; x2:1192px; y2:116px; "/>
- <line id="line7" class="line_3" style="x1:595px; y1:137px; x2:1192px; y2:137px; "/>
- <line id="line8" class="line_3" style="x1:595px; y1:165px; x2:1192px; y2:165px; "/>
- <line id="line10" class="line_3" style="x1:595px; y1:198px; x2:1192px; y2:198px; "/>
- <line id="line11" class="line_3" style="x1:595px; y1:225px; x2:1192px; y2:225px; "/>
- <line id="line12" class="line_3" style="x1:595px; y1:285px; x2:1192px; y2:285px; "/>
- <line id="line13" class="line_3" style="x1:595px; y1:550px; x2:1192px; y2:550px; "/>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/data/itcagryn" style="left:595px; top:317px; width:20px; height:20px; "/>
- <bool id="bool2" checkvalue="Y,N" ref="/root/main/data/deptagryn" style="left:770px; top:317px; width:22px; height:20px; "/>
- <caption id="caption11" style="left:615px; top:317px; width:70px; height:20px; ">ITC협의여부</caption>
- <caption id="caption23" style="left:795px; top:317px; width:100px; height:20px; ">연계부서협의여부</caption>
- <caption id="caption26" visibility="hidden" style="left:1130px; top:315px; width:50px; height:20px; ">비공개</caption>
- <caption id="caption27" style="left:715px; top:317px; width:50px; height:20px; ">응급여부</caption>
- <bool id="bool3" visibility="hidden" checkvalue="Y,N" ref="/root/main/data/secuflag" style="left:1110px; top:315px; width:15px; height:20px; "/>
- <bool id="bool4" checkvalue="Y,N" ref="/root/main/data/emgflag" style="left:694px; top:317px; width:25px; height:20px; "/>
- <caption id="caption28" class="tit_2" style="left:595px; top:120px; width:126px; height:13px; vertical-align:middle; ">등록자 정보</caption>
- <caption id="caption29" class="tit_2" style="left:595px; top:180px; width:126px; height:13px; vertical-align:middle; ">요청자 정보</caption>
- <line id="line3" class="line_2" style="x1:595px; y1:362px; x2:1192px; y2:362px; "/>
- <line id="line15" class="line_2" style="x1:595px; y1:335px; x2:1192px; y2:335px; "/>
- <button id="btn_expan" class="btn2_letter2" style="left:540px; top:95px; width:42px; height:19px; ">
- <caption>
- <![CDATA[>>]]>
- </caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //alert(grd_reqmngtlist.attribute ( "width" ));
- var tmp = btn_expan.text
- //alert(tmp);
- if ( tmp == ">>"){
- grd_reqmngtlist.attribute ( "width" ) = 1190;
- btn_expan.text = "<<";
- } else {
- grd_reqmngtlist.attribute ( "width" ) = 585;
- btn_expan.text = ">>"
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="combo3" ref="/root/main/data/statcd" class="combo_search" disabled="true" appearance="minimal" style="left:1040px; top:527px; width:152px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list/C0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tmp = model.getValue("/root/main/data/statcd");
- model.setValue("/root/init/itcstat", tmp);
-
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <input id="ipt_preprcs" ref="/root/main/data/preprcscd" class="input_essential" style="left:986px; top:290px; width:60px; height:19px; "/>
- <caption id="caption38" class="cell_1" style="left:898px; top:288px; width:86px; height:23px; vertical-align:middle; ">기존요청번호</caption>
- <switch id="switch1" style="left:590px; top:580px; width:602px; height:188px; ">
- <case id="rpt" selected="true" style="left:0px; top:0px; width:602px; height:213px; ">
- <datagrid id="grd_itc_attach" nodeset="/root/main/ftpfilelist/itcconffilelist" caption="status^경로^첨부파일^host^port^usr^passwd^pathid^remotepath^ext^fstrgstrid^lastupdtrid^filegrpno^fileno" colwidth="0,0,150,0,0,0,0,0,0,0,0,0,0,0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" tooltip="true" style="left:445px; top:47px; width:150px; height:115px; ">
- <col ref="status"/>
- <col ref="localpath"/>
- <col ref="filename" style="left:20px; top:23px; width:150px; height:23px; "/>
- <col ref="host"/>
- <col ref="port"/>
- <col ref="usr"/>
- <col ref="passwd"/>
- <col ref="pathid"/>
- <col ref="remotepath"/>
- <col ref="ext"/>
- <col ref="fstrgstrid"/>
- <col ref="lastupdtrid"/>
- <col ref="filegrpno"/>
- <col ref="fileno"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var fs;
-
- if (grd_itc_attach.row <= 0) { return;}
- if (grd_itc_attach.col <= 0) { return;}
-
- // 해당파일 다운로드 정보 셋팅
- var row = grd_itc_attach.row;
-
- var localpath = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/localpath");
-
- fs = new ActiveXObject("Scripting.FileSystemObject");
-
- if (fs.FileExists(localpath) == false){
- var host = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/host");
- var port = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/port");
- var user = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/usr");
- var pass = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/passwd");
- var pathRemote = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/remotepath");
- var filename = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/localpath");
-
- fFileExcute(host, port, user, pass, pathRemote, filename);
- } else {
- window.exec(localpath, "");
- }
-
- fs = null;
-
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn5_letter2" style="left:550; top:5; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var stat = model.getValue("/root/main/data/statcd");
- if (stat <= "0010") {
- messageBox("처리상태가 지정되지", "I004");
- return;
- }
-
- var mode = model.getValue("/root/main/mode/modestatus");
- model.makeValue("/root/main/data/updateuserid", getUserInfo("userid"));
- model.copyNode("/root/send/data", "/root/main/data");
- model.refresh();
-
-
- // 삽입 --------------------------------------------------------------------------------------------------
- //if (mode == "insert" ) {
- // 첨부파일이 있는가?
- if (grd_itc_attach.rows > 1 ) {
-
- // filegrpno 읽기
- var grpno = model.getValue("/root/main/data/itcconfgrpno");
-
- if (grpno == 0 || grpno == null ){
- submit("TRZRM00106");
- model.makeValue("/root/send/data/itcconfgrpno", model.getValue("/root/main/newfilegrpno/filegrpno"));
-
- } else {
- //alert(grpno);
- model.makeValue("/root/send/data/itcconfgrpno", grpno);
- model.makeValue("/root/main/newfilegrpno/filegrpno", grpno)
- }
-
- // 첨부파일 수만큼 테이블에 insert시키고, 파일 업로드
- for (var i=1; i< grd_itc_attach.rows; i++) {
-
- var status = model.getValue("/root/main/ftpfilelist/itcconffilelist[" + i + "]/status");
-
- if(status == "I") {
- // ztrmfile 테이블 insert
- model.copyNode("/root/send/req/itcconffilelist", "/root/main/ftpfilelist/itcconffilelist[" + i + "]");
- model.setValue("/root/send/req/itcconffilelist/filegrpno", model.getValue("/root/main/newfilegrpno/filegrpno"));
-
- submit("TXZRM00103");
-
- // 업로드 파일 정보 set
- var host = model.getValue("/root/main/ftpfilelist/itcconffilelist[" + i + "]/host");
- var port= model.getValue("/root/main/ftpfilelist/itcconffilelist[" + i + "]/port");
- var user = model.getValue("/root/main/ftpfilelist/itcconffilelist[" + i + "]/usr");
- var pass = model.getValue("/root/main/ftpfilelist/itcconffilelist[" + i + "]/passwd");
- var fileno = model.getValue("/root/main/newfileno/fileno");
- var dirstr = flpad(fileno, 3, "0");
-
- var pathRemote = model.getValue("/root/main/ftpfilelist/itcconffilelist[" + i + "]/remotepath") + "\\" + dirstr + "\\" + fileno + "." + model.getValue("/root/main/ftpfilelist/itcconffilelist[" + i + "]/ext");
- var pathLocal = model.getValue("/root/main/ftpfilelist/itcconffilelist[" + i + "]/localpath");
-
- var ret = putFiles(host, port, user, pass, pathRemote, pathLocal);
-
- if (ret == false) {
- messageBox("파일 업로드에 ", "E009");
- return;
- }
-
- }
-
- }
-
- } else {
- model.makeValue("/root/send/data/filegrpno", "");
- }
-
- // ztrmprcs 테이블 insert
- submit("TXZRM00104");
-
- btn_search.dispatch("DOMActivate");
-
-
- grd_reqmngtlist.row = 1;
- fInitMainData(true);
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter4" visibility="visible" style="left:450px; top:165px; width:64px; height:19px; ">
- <caption>파일첨부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pos;
- var filename;
- var n;
- var temp;
-
- var fs = new ActiveXObject("Scripting.FileSystemObject");
-
-
- files = window.fileDialog("open", "|", true);
- filelist = files.split("|");
- for(var i = 0 ; i < filelist.length ; i++ ) {
- if(filelist[i] != "")
- {
-
- pos=filelist[i].lastIndexOf("\\");
- filename=filelist[i].substring(pos+1);
-
- if (fCheckFileOpen(filelist[i]) == false){
- return;
- }
-
- grd_itc_attach.addItem();
- n = grd_itc_attach.rows - 1;
-
-
- grd_itc_attach.valueMatrix(n, 1) = "I";
- grd_itc_attach.valueMatrix(n, 2) = filelist[i];
- grd_itc_attach.valueMatrix(n, 3) = filename;
- grd_itc_attach.valueMatrix(n, 4) = model.getValue("/root/init/ftppath/host");
- grd_itc_attach.valueMatrix(n, 5) = model.getValue("/root/init/ftppath/port");
- grd_itc_attach.valueMatrix(n, 6) = model.getValue("/root/init/ftppath/usr");
- grd_itc_attach.valueMatrix(n, 7) = model.getValue("/root/init/ftppath/passwd");
- grd_itc_attach.valueMatrix(n, 8) = model.getValue("/root/init/ftppath/pathid");
- grd_itc_attach.valueMatrix(n, 9) = model.getValue("/root/init/ftppath/path");
-
- if (fs != null){
- grd_itc_attach.valueMatrix(n, 10) = fs.GetExtensionName (filelist[i]);
- }
-
- //grd_itc_attach.valueMatrix(n, 10) = filename.substring(filename.indexOf(".")+1);
- grd_itc_attach.valueMatrix(n, 11) = getUserInfo("userid");
- grd_itc_attach.valueMatrix(n, 12) = getUserInfo("userid");
- grd_itc_attach.valueMatrix(n, 13) = model.getValue("/root/main/data/itcconfgrpno");
- grd_itc_attach.valueMatrix(n, 14) = "0";
- }
- }
-
- fs = null;
-
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter4" visibility="visible" style="left:520px; top:165px; width:64px; height:19px; ">
- <caption>파일삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var row = grd_itc_attach.row;
-
- var host = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/host");
- var port = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/port");
- var user = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/usr");
- var pass = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/passwd");
- var pathRemote = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/remotepath");
- var filename = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/localpath");
- var fileno = model.getValue("/root/main/ftpfilelist/itcconffilelist["+row+"]/fileno");
-
- var ret = delRemoteFiles(host, port, user, pass, pathRemote);
-
- if ( ret ) {
- model.makeValue("/root/main/data/updateuserid", getUserInfo("userid"));
- model.copyNode("/root/send/data", "/root/main/data");
-
- model.makeValue("/root/send/data/fileno", fileno);
- model.refresh();
-
- submit("TXZRM00106");
-
- deleteSelectedRows(grd_itc_attach, false);
- }
-
- //grd_reqmngtlist.dispatch("ondblclick");
-
-
- ]]>
- </script>
- </button>
- <caption id="caption31" class="tit_2" style="left:5; top:6; width:126px; height:13px; vertical-align:middle; ">대표ITC</caption>
- <line id="line14" class="line_3" style="x1:5px; y1:25px; x2:597px; y2:25px; "/>
- <caption id="caption33" ref="/root/main/data/itcconfnm" style="left:440px; top:30px; width:150px; height:15px; "/>
- <select1 id="opt_itcstat" ref="/root/init/itcstat" navindex="13" overflow="visible" appearance="full" cols="4" style="left:75px; top:30px; width:180px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>등록</label>
- <value>0010</value>
- </item>
- <item>
- <label>검토</label>
- <value>0020</value>
- </item>
- <item>
- <label>반려</label>
- <value>0030</value>
- </item>
- <item>
- <label>승인</label>
- <value>0040</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.makeValue("/root/main/data/statcd" , model.getValue("/root/init/itcstat"));
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption17" class="cell_1" style="left:10px; top:30px; width:61px; height:155px; vertical-align:middle; ">확인내용</caption>
- <textarea id="tar_fstrpttxt" ref="/root/main/data/fstrpttxt" navindex="14" editable="true" style="left:75px; top:47px; width:365px; height:138px; "/>
- </case>
- <case id="confirm" style="left:0px; top:0px; width:940px; height:769px; ">
- <button id="button3" class="btn5_letter2" style="left:550px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var stat = model.getValue("/root/main/data/statcd");
- if (stat <= "0010") {
- messageBox("처리상태가 지정되지", "I004");
- return;
- }
-
-
- var mode = model.getValue("/root/main/mode/modestatus");
-
- model.makeValue("/root/main/data/updateuserid", getUserInfo("userid"));
- model.copyNode("/root/send/data", "/root/main/data");
- model.refresh();
-
-
- // 삽입 --------------------------------------------------------------------------------------------------
-
- if (grd_info_attach.rows > 1) {
-
- // filegrpno 읽기
- var grpno = model.getValue("/root/main/data/infomnggrpno");
-
- if (grpno == 0 || grpno == null ){
- submit("TRZRM00106");
- model.makeValue("/root/send/data/infomnggrpno", model.getValue("/root/main/newfilegrpno/filegrpno"));
-
- } else {
- //alert(grpno);
- model.makeValue("/root/send/data/infomnggrpno", grpno);
- model.makeValue("/root/main/newfilegrpno/filegrpno", grpno)
- }
-
- // 첨부파일 수만큼 테이블에 insert시키고, 파일 업로드
- for (var i=1; i< grd_info_attach.rows; i++) {
-
- var status = model.getValue("/root/main/ftpfilelist/infomngfilelist[" + i + "]/status");
-
- if(status == "I") {
- // ztrmfile 테이블 insert
- model.copyNode("/root/send/req/infomngfilelist", "/root/main/ftpfilelist/infomngfilelist[" + i + "]");
- model.setValue("/root/send/req/infomngfilelist/filegrpno", model.getValue("/root/main/newfilegrpno/filegrpno"));
-
- submit("TXZRM00103");
-
- // 업로드 파일 정보 set
- var host = model.getValue("/root/main/ftpfilelist/infomngfilelist[" + i + "]/host");
- var port= model.getValue("/root/main/ftpfilelist/infomngfilelist[" + i + "]/port");
- var user = model.getValue("/root/main/ftpfilelist/infomngfilelist[" + i + "]/usr");
- var pass = model.getValue("/root/main/ftpfilelist/infomngfilelist[" + i + "]/passwd");
- var fileno = model.getValue("/root/main/newfileno/fileno");
- var dirstr = flpad(fileno, 3, "0");
-
- var pathRemote = model.getValue("/root/main/ftpfilelist/infomngfilelist[" + i + "]/remotepath") + "\\" + dirstr + "\\" + fileno + "." + model.getValue("/root/main/ftpfilelist/infomngfilelist[" + i + "]/ext");
- var pathLocal = model.getValue("/root/main/ftpfilelist/infomngfilelist[" + i + "]/localpath");
-
- var ret = putFiles(host, port, user, pass, pathRemote, pathLocal);
-
- if (ret == false) {
- messageBox("파일 업로드에 ", "E009");
- return;
- }
-
- }
-
- }
-
- } else {
- model.makeValue("/root/send/data/filegrpno", "");
- }
-
- // ztrmprcs 테이블 insert
- submit("TXZRM00105");
-
- btn_search.dispatch("DOMActivate");
-
-
- grd_reqmngtlist.row = 1;
- fInitMainData(true);
-
-
-
-
- model.makeValue("/root/main/data/updateuserid", getUserInfo("userid"));
- model.copyNode("/root/send/data", "/root/main/data");
-
- submit("TXZRM00105");
- btn_search.dispatch("DOMActivate");
- //inputEnterKey("btn_search", "DOMActivate");
- grd_reqmngtlist.row = 1;
- fInitMainData(true);
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter4" visibility="visible" style="left:450px; top:165px; width:64px; height:19px; ">
- <caption>파일첨부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pos;
- var filename;
- var n;
- var temp;
- var fs = new ActiveXObject("Scripting.FileSystemObject");
-
- files = window.fileDialog("open", "|", true);
- filelist = files.split("|");
- for(var i = 0 ; i < filelist.length ; i++ ) {
- if(filelist[i] != "")
- {
- pos=filelist[i].lastIndexOf("\\");
- filename=filelist[i].substring(pos+1);
-
- if (fCheckFileOpen(filelist[i]) == false){
- return;
- }
-
- grd_info_attach.addItem();
- n = grd_info_attach.rows - 1;
-
-
-
- grd_info_attach.valueMatrix(n, 1) = "I";
- grd_info_attach.valueMatrix(n, 2) = filelist[i];
- grd_info_attach.valueMatrix(n, 3) = filename;
- grd_info_attach.valueMatrix(n, 4) = model.getValue("/root/init/ftppath/host");
- grd_info_attach.valueMatrix(n, 5) = model.getValue("/root/init/ftppath/port");
- grd_info_attach.valueMatrix(n, 6) = model.getValue("/root/init/ftppath/usr");
- grd_info_attach.valueMatrix(n, 7) = model.getValue("/root/init/ftppath/passwd");
- grd_info_attach.valueMatrix(n, 8) = model.getValue("/root/init/ftppath/pathid");
- grd_info_attach.valueMatrix(n, 9) = model.getValue("/root/init/ftppath/path");
- if (fs != null){
- grd_itc_attach.valueMatrix(n, 10) = fs.GetExtensionName (filelist[i]);
- }
- //grd_info_attach.valueMatrix(n, 10) = filename.substring(filename.indexOf(".")+1);
- grd_info_attach.valueMatrix(n, 11) = getUserInfo("userid");
- grd_info_attach.valueMatrix(n, 12) = getUserInfo("userid");
- grd_info_attach.valueMatrix(n, 13) = model.getValue("/root/main/data/infomnggrpno");
- grd_info_attach.valueMatrix(n, 14) = "0";
- }
- }
-
- fs = null;
-
- ]]>
- </script>
- </button>
- <caption id="caption32" class="tit_2" style="left:5px; top:6px; width:139px; height:13px; vertical-align:middle; ">변경관리 실무협의체</caption>
- <datagrid id="grd_info_attach" nodeset="/root/main/ftpfilelist/infomngfilelist" caption="status^경로^첨부파일^host^port^usr^passwd^pathid^remotepath^ext^fstrgstrid^lastupdtrid^filegrpno^fileno" colwidth="0,0,150,0,0,0,0,0,0,0,0,0,0,0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" tooltip="true" style="left:445px; top:47px; width:150px; height:115px; ">
- <col ref="status"/>
- <col ref="localpath"/>
- <col ref="filename" style="left:20px; top:23px; width:150px; height:33px; "/>
- <col ref="host"/>
- <col ref="port"/>
- <col ref="usr"/>
- <col ref="passwd"/>
- <col ref="pathid"/>
- <col ref="remotepath"/>
- <col ref="ext"/>
- <col ref="fstrgstrid"/>
- <col ref="lastupdtrid"/>
- <col ref="filegrpno"/>
- <col ref="fileno"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var fs;
-
- if (grd_info_attach.row <=0) { return;}
- if (grd_info_attach.col <=0) { return;}
-
- // 해당파일 다운로드 정보 셋팅
- var row = grd_info_attach.row;
- var localpath = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/localpath");
-
- fs = new ActiveXObject("Scripting.FileSystemObject");
-
- if (fs.FileExists(localpath) == false){
-
- var host = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/host");
- var port = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/port");
- var user = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/usr");
- var pass = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/passwd");
- var pathRemote = model.getValue("/root/main/infomngfilelist/filelist["+row+"]/remotepath");
- var filename = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/localpath");
-
- fFileExcute(host, port, user, pass, pathRemote, filename);
- } else {
- window.exec(localpath, "");
- }
-
- fs = null;
-
- ]]>
- </script>
- </datagrid>
- <button id="button7" class="btn2_letter4" visibility="visible" style="left:520px; top:165px; width:64px; height:19px; ">
- <caption>파일삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_info_attach.row;
-
- var host = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/host");
- var port = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/port");
- var user = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/usr");
- var pass = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/passwd");
- var pathRemote = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/remotepath");
- var filename = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/localpath");
- var fileno = model.getValue("/root/main/ftpfilelist/infomngfilelist["+row+"]/fileno");
-
- var ret = delRemoteFiles(host, port, user, pass, pathRemote);
-
- if ( ret ) {
-
- model.makeValue("/root/main/data/updateuserid", getUserInfo("userid"));
- model.copyNode("/root/send/data", "/root/main/data");
- model.makeValue("/root/send/data/fileno", fileno);
- model.refresh();
-
- submit("TXZRM00106");
-
- deleteSelectedRows(grd_info_attach, false);
-
- }
-
-
-
- //grd_reqmngtlist.dispatch("ondblclick");
-
- ]]>
- </script>
- </button>
- <select1 id="opt_infomng" ref="/root/init/itcstat" navindex="11" overflow="visible" appearance="full" cols="5" style="left:75px; top:30px; width:265px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>대표ITC승인</label>
- <value>0040</value>
- </item>
- <item>
- <label>검토</label>
- <value>0050</value>
- </item>
- <item>
- <label>보류</label>
- <value>0060</value>
- </item>
- <item>
- <label>반려</label>
- <value>0070</value>
- </item>
- <item>
- <label>승인</label>
- <value>0080</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var tmp = model.getValue ("/root/init/itcstat");
- var strUsr = getUserInfo("userid");
- var strauth = model.getValue("/root/init/userauth/auth");
-
- //변경협의체승인의 경우 변경협의체(AUTH=0006)만 변경가능
- if(tmp == "0080" && strauth != "0006" ){
- messageBox("승인처리를 할 수 있는 권한이", "I004");
- opt_infomng.value = "";
- model.refresh();
- return;
- }
- /*
- //승인 처리 조건 - 배영란, 김미선
- if(tmp == "0080" && (strUsr != "92040226" && strUsr != "97055522") ){
- messageBox("승인처리를 할 수 있는 권한이", "I004");
- opt_infomng.value = "";
- model.refresh();
- return;
- }
- */
- model.setValue("/root/main/data/statcd" , model.getValue("/root/init/itcstat"));
-
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption34" ref="/root/main/data/infomngconfnm" style="left:440px; top:30px; width:150px; height:15px; "/>
- <line id="line16" class="line_3" style="x1:5px; y1:25px; x2:597px; y2:25px; "/>
- <textarea id="tar_rpttxt" ref="/root/main/data/rpttxt" navindex="12" editable="true" style="left:75px; top:47px; width:365px; height:138px; "/>
- <caption id="caption18" class="cell_1" style="left:10px; top:30px; width:61px; height:155px; vertical-align:middle; ">확인내용</caption>
- </case>
- </switch>
- <button id="btn_rpt" class="btn_sw" group="tab" selected="true" style="left:590px; top:555px; width:80px; height:22px; ">
- <caption>대표ITC</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- switch1.selectedIndex = 0
- ]]>
- </script>
- </button>
- <button id="btn_confirm" class="btn_sw" group="tab" style="left:670px; top:555px; width:80px; height:22px; ">
- <caption>변경관리</caption>
- <toggle case="confirm" ev:event="onclick"/>
- </button>
- <line id="line17" class="line_2" style="x1:595px; y1:497px; x2:1192px; y2:497px; "/>
- <input id="input3" ref="/root/main/data/appinst" class="input_essential" imemode="hangul" maxlength="85" style="left:660px; top:501px; width:530px; height:19px; "/>
- <caption id="caption39" class="cell_1" style="left:595px; top:499px; width:61px; height:23px; vertical-align:middle; ">적용병원</caption>
- <caption id="caption36" class="cell_1" style="left:1040px; top:338px; width:65px; height:23px; vertical-align:middle; ">우선순위</caption>
- <select1 id="combo8" ref="/root/main/data/priocd" class="combo_essential" disabled="true" appearance="minimal" style="left:1110px; top:340px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list/I0015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption37" class="cell_1" style="left:898px; top:315px; width:86px; height:23px; vertical-align:middle; ">협의연계부서</caption>
- <input id="input6" ref="/root/main/data/deptagrlst" class="input_essential" style="left:986px; top:317px; width:204px; height:19px; "/>
- <datagrid id="grd_reqmngtlist" nodeset="/root/main/list/reqmngt" allowselection="true" caption="번호^우선순위^등록일자^등록자^발의기관^요청부서^요청자^상태^구분^요청일자^전화번호^요청제목^ITC^변경관리^요청내용^ITC협의여부^연계부서협의여부^업무범위^중요도^비밀여부^응급여부^1차답변내용^최종전달사항^최초등록자^최초등록일^최종수정자^최종수정일^대표ITC^정보관리팀^요청자명^caption2^caption3^완료예정일^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18^caption19^caption1" colsep="^" colwidth="44, 31, 70, 48, 79, 100, 58, 41, 36, 77, 60, 159, 50, 56, 198, 72, 98, 118, 98, 60, 60, 228, 220, 70, 115, 70, 115, 100, 100, 100, 100, 100, 66, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sort" frozencols="11" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="50" rowsep="|" tooltip="true" style="left:0px; top:120px; width:585px; height:651px; text-align:center; ">
- <col ref="prcscd" style="text-align:right; "/>
- <col ref="prionm" style="text-align:center; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd" style="left:64px; top:23px; width:70px; height:23px; text-align:center; "/>
- <col ref="usernm" style="text-align:left; "/>
- <col ref="instnm" style="text-align:left; "/>
- <col ref="reqdeptnm" style="text-align:left; "/>
- <col ref="requsernm" style="text-align:left; "/>
- <col ref="statnm" style="left:450px; top:23px; width:41px; height:23px; text-align:center; "/>
- <col ref="reqnm" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="telno" visibility="hidden"/>
- <col ref="prcstitl" style="text-align:left; "/>
- <col ref="itcconf" style="text-align:center; "/>
- <col ref="infomngconf" style="text-align:center; "/>
- <col ref="prcsmsg" style="text-align:left; "/>
- <col ref="itcagryn" style="text-align:center; "/>
- <col ref="deptagryn" style="text-align:center; "/>
- <col ref="reqpart" style="text-align:left; "/>
- <col ref="impnm" style="text-align:left; "/>
- <col ref="secuflag" style="text-align:center; "/>
- <col ref="emgflag" style="text-align:center; "/>
- <col ref="fstrpttxt" style="text-align:left; "/>
- <col ref="rpttxt" style="text-align:left; "/>
- <col ref="fstrnm" style="left:2096px; top:23px; width:70px; height:23px; text-align:left; "/>
- <col ref="fstrdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="lastnm" style="text-align:left; "/>
- <col ref="lastdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="itcconfnm" style="text-align:left; "/>
- <col ref="infomngconfnm" style="text-align:left; "/>
- <col ref="requsernm" visibility="hidden" style="text-align:left; "/>
- <col ref="infoconfmng" visibility="hidden" style="text-align:left; "/>
- <col ref="secuflag" visibility="hidden" style="text-align:left; "/>
- <col ref="projcd" style="text-align:center; "/>
- <col ref="filegrpno" visibility="hidden" style="text-align:left; "/>
- <col ref="tftno" visibility="hidden" style="text-align:left; "/>
- <col ref="statcd" visibility="hidden" style="text-align:left; "/>
- <col ref="userid" visibility="hidden" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="reqgubun" visibility="hidden" style="text-align:left; "/>
- <col ref="updateuserid" visibility="hidden" style="text-align:left; "/>
- <col ref="posdeptnm" visibility="hidden" style="text-align:left; "/>
- <col ref="posinstnm" visibility="hidden" style="text-align:left; "/>
- <col ref="attach" visibility="hidden" style="text-align:left; "/>
- <col ref="preprcscd" visibility="hidden" style="text-align:left; "/>
- <col ref="itcconfgrpno" visibility="hidden" style="text-align:left; "/>
- <col ref="infomnggrpno" visibility="hidden" style="text-align:left; "/>
- <col ref="appinst" visibility="hidden" style="left:4351px; top:23px; width:100px; height:23px; text-align:left; "/>
- <col ref="priocd" visibility="hidden" style="text-align:left; "/>
- <col ref="impcd" visibility="hidden" style="text-align:left; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqmngtlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- // 클릭한 요청번호로 db select한다.
- var row = grd_reqmngtlist.row;
- var prcscd = grd_reqmngtlist.valueMatrix(row, grd_reqmngtlist.colRef("prcscd"));
- // 비정상적인 조회금지
- if (row <=0) { return;}
- if(grd_reqmngtlist.col < 0 ) {return;}
-
- // 수정할수 있는 상태로 초기화
- fUpdateMode();
-
- /*
- // select 하기전에 그냥 copy로 처리
- model.makeValue("/root/send/prcscd", prcscd);
- submit("TRZRM00103");
- */
- model.copyNode ("/root/main/data","/root/main/list/reqmngt["+row+"]");
- model.setValue("/root/main/data/prcscd", prcscd);
-
- //각 첨부파일 초기화
- model.makeValue("/root/send/filegrpno", "");
- model.makeValue("/root/send/itc_filegrpno", "");
- model.makeValue("/root/send/infomng_filegrpno", "");
-
-
- // 첨부파일 있으면 목록 읽어오기
- var tmpGrpNo = model.getValue("/root/main/data/filegrpno");
- if (tmpGrpNo >0 ) {
- model.makeValue("/root/send/filegrpno", tmpGrpNo);
- }
-
- // ITC첨부파일 있으면 목록 읽어오기
- var tmpGrpNo = model.getValue("/root/main/data/itcconfgrpno");
- if (tmpGrpNo >0 ) {
- model.makeValue("/root/send/itc_filegrpno", tmpGrpNo);
- }
-
- // 정보관리 첨부파일 있으면 목록 읽어오기
- var tmpGrpNo = model.getValue("/root/main/data/infomnggrpno");
- if (tmpGrpNo >0 ) {
- model.makeValue("/root/send/infomng_filegrpno", tmpGrpNo);
- }
-
- submit("TRZRM00104");
-
- var tmp = btn_expan.text
- //alert(tmp);
- if ( tmp == "<<"){
- grd_reqmngtlist.attribute ( "width" ) = 585;
- btn_expan.text = ">>"
- }
-
- var tmp = model.getValue("/root/main/data/statcd");
- model.setValue("/root/init/itcstat", tmp);
-
- if( tmp >= 40){
- opt_itcstat.disabled = true;
- } else {
- opt_itcstat.disabled = false;
- }
-
- if(tmp >= 80){
- opt_infomng.disabled = true;
- } else {
- opt_infomng.disabled = false;
- }
-
- //버튼초기화
- button2.disabled = true;
- button3.disabled = true;
- switch (tmp) {
- case "0010":
- case "0020":
- case "0030":
- button2.disabled = false;
- button3.disabled = false;
- break;
- case "0040":
- case "0050":
- case "0060":
- case "0070":
- button3.disabled = false;
- break;
- }
-
- var strauth = model.getValue("/root/init/userauth/auth");
- var strUsr = getUserInfo("userid");
- /*
- alert(tmp);
- alert(strauth);
- alert(strUsr);
- */
-
- //변경협의체승인일 경우 변경협의체(AUTH=0006)는 수정가능
- if(tmp <= 80 && strauth == "0006" ){
- button2.disabled = false;
- opt_itcstat.disabled = false;
- button3.disabled = false;
- opt_infomng.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <input id="input7" ref="/root/main/data/projcd" class="input_essential" visibility="hidden" style="left:1116px; top:556px; width:75px; height:19px; "/>
- <caption id="caption40" class="cell_1" visibility="hidden" style="left:1039px; top:555px; width:71px; height:21px; vertical-align:middle; ">완료예정일</caption>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">요구사항관리</caption>
- </xhtml:body>
- </xhtml:html>
|