123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <?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>
- <prvnchkmanual>
- <prvnchkmanuallist/>
- </prvnchkmanual>
- <zz/>
- </main>
- <send>
- <search>
- <fixasetnm/>
- <goodspec/>
- </search>
- <save>
- <prvnchkmanuallist/>
- </save>
- </send>
- <init>
- </init>
- <hidden>
- <file/>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- misfGridInit(grd_prvnchkmanuallist);
- misfMsterDetailSet(grd_prvnchkmanuallist, null, "TRRFE02201" ,"Y","free");
- //misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- //model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
-
- misfMsterDetailRetrieve();
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRFE02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" add="top" resultref="/root/main/prvnchkmanual"/>
- <submission id="TXRFE02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRFE02202" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/hidden/file" resultref="/root/main/filepath"/>
- <submission id="TRRFE02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- //조회조건 변경시 Grid 초기화
- function fSearchCondChanged() {
- model.removeNodeset(grd_stock.nodeset);
- model.removeNodeset(grd_win.nodeset);
- model.removeNodeset(grd_delive.nodeset);
- model.removeNodeset(grd_deptstock.nodeset);
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">예방점검 매뉴얼 등록</caption>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1193px; 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[
- // for(i = 1 ; i < grd_fixedassetsconflist.rows ; i++){
- // var confyn = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("confyn"));
- // var confdt = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("confdt"));
- // if(confyn == "Y" && confdt == ""){
- // messageBox(i+"번째행에 승인은 되었지만 승인일자가 없습니다. 입력하여주십시오.", "E999", "");
- // grd_fixedassetsconflist.row = i;
- // grd_fixedassetsconflist.col = grd_fixedassetsconflist.colRef("confdt");
- // grd_fixedassetsconflist.editCell();
- // return;
- // }
- // }
- misfSave("TXRFE02201");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_search" style="left:0px; top:9px; width:1195px; height:36px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1127px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_prvnchkmanuallist);
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <caption id="cap_instcd" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">장비명</caption>
- <line id="line30" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:29px; "/>
- <caption id="cap_mngtdeptcd_search" class="search_name" style="left:385px; top:9px; width:92px; height:17px; ">규격</caption>
- <input id="ipt_fixasetnm" ref="/root/send/search/fixasetnm" style="left:79px; top:8px; width:255px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_fixasetnm.value = ipt_fixasetnm.currentText;
- if(ipt_fixasetnm.value != "")
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_goodspec" ref="/root/send/search/goodspec" style="left:439px; top:8px; width:200px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_goodspec.value = ipt_goodspec.currentText;
- if(ipt_goodspec.value != "")
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:1193px; y2:67px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:50px; width:180px; height:14px; ">예방점검 매뉴얼</caption>
- <datagrid id="grd_prvnchkmanuallist" nodeset="/root/main/prvnchkmanual/prvnchkmanuallist" caption="장비명^규격^서비스 매뉴얼^서비스 매뉴얼^예방점검 매뉴얼^예방점검 매뉴얼^비고^" colsep="^" colwidth="250, 120, 150, 21, 150, 21, 477" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:72px; width:1193px; height:663px; ">
- <col disabled="true" ref="fixasetnm" type="input"/>
- <col disabled="true" ref="goodspec" type="input"/>
- <col ref="service"/>
- <col ref="servicepath" type="inputbutton"/>
- <col ref="prvnchk"/>
- <col ref="prvnchkpath" type="inputbutton"/>
- <col ref="cmt" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prvnchkmanuallist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_prvnchkmanuallist.colAttribute(grd_prvnchkmanuallist.col,"ref") == "servicepath")
- {
- if(model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/servicepath") == ""){
- var files = window.fileDialog("open", ",", false);
- if ( files.length <= 0 ) return;
- model.makeValue("/root/hidden/file" , files); //전체파일경로와이름을 셋팅
- var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
- model.setValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/service" , filename);
-
- submit("TXRFE02202");
- if(model.getValue("/root/main/filepath[1]/filepath") != ""){
- model.setValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/servicepath",model.getValue("/root/main/filepath[1]/filepath"));
- if(grd_prvnchkmanuallist.rowStatus(grd_prvnchkmanuallist.row) == 0) grd_prvnchkmanuallist.rowStatus(grd_prvnchkmanuallist.row) = 2;
- }
- }else{
- var filepath = model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/servicepath");
- var filenm = model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/service");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRRWC03003")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- }
-
- }
- if(grd_prvnchkmanuallist.colAttribute(grd_prvnchkmanuallist.col,"ref") == "prvnchkpath")
- {
- if(model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/prvnchkpath") == ""){
- var files = window.fileDialog("open", ",", false);
- if ( files.length <= 0 ) return;
- model.makeValue("/root/hidden/file" , files); //전체파일경로와이름을 셋팅
- var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
- model.setValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/prvnchk" , filename);
-
- submit("TXRFE02202");
- if(model.getValue("/root/main/filepath[1]/filepath") != ""){
- model.setValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/prvnchkpath",model.getValue("/root/main/filepath[1]/filepath"));
- if(grd_prvnchkmanuallist.rowStatus(grd_prvnchkmanuallist.row) == 0) grd_prvnchkmanuallist.rowStatus(grd_prvnchkmanuallist.row) = "2";
- }
- }else{
- var filepath = model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/prvnchkpath");
- var filenm = model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/prvnchk");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRRWC03003")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- }
-
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <upload id="upload1" nodeset="/root/hidden/file" style="left:670px; top:40px; width:100px; height:20px; "/>
- </group>
- <button id="btn_delrow" class="btn2_letter3" style="left:1140px; top:87px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_prvnchkmanuallist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_dutcdflag" class="btn2_letter3" style="left:1086px; top:87px; width:53px; height:19px; text-align:left; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_prvnchkmanuallist,"A");
-
- //grd_dutschelist.valueMatrix(grd_dutschelist.row, grd_dutschelist.colRef("deptcd")) = model.getValue("/root/send/dutunitcd");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|