123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <cond>
- <instcd/>
- <fromdd/>
- <todd/>
- <chrgid/>
- </cond>
- <workinfo>
- <worklist/>
- </workinfo>
- <workdetlinfo>
- <workdetllist/>
- </workdetlinfo>
- </main>
- <temp/>
- <send/>
- <init>
- <mlist>
- </mlist>
- <chrgid>
- <cdid/>
- <cdnm/>
- </chrgid>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXZHI01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TXZHI01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRZHI01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/workinfo"/>
- <submission id="TRZHI01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata2" resultref="/root/main/workdetlinfo"/>
- <submission id="TRZHI00001" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZHI00002" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZHA20607" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/filedown"/>
- </model>
- <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/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/irmsweb/js/IrmsCom.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
-
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- zbcfGetCodeList( new Array ( "Z0007", "Z0021")
- , new Array ( "/root/init/mlist","/root/init/mlist")
-
- );
-
- fGetCodeInfo("05", "Y", true);
- //fGetDetlCodeInfo("02", "", "Y", true);
-
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
-
- model.removeNodeset(grd_worklist.nodeset);
- model.removeNodeset(grd_workdetllist.nodeset);
-
- addComboItem("cmb_chrgid", getUserInfo("usernm"), getUserInfo("userid"));
- addComboItem("cmb_chrgid", "전체", "", "above");
-
-
- model.setValue(cmb_chrgid.attribute("ref"), getUserInfo("userid"));
-
- fSearch();
- }
-
- function fSearch() {
- model.makeNode("/root/send/reqdata");
-
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- model.removeNodeset(grd_workdetllist.nodeset);
- submit("TRZHI01001");
- }
-
- function fSearchDetl() {
-
-
- model.makeValue("/root/send/reqdata2/workseq", grd_worklist.valueMatrix(grd_worklist.row, grd_worklist.colRef("workseq")));
-
- submit("TRZHI01002");
- }
-
- function fFileDown(filenm,filepathcolnm, reqno) {
-
- //파일명이 있는 경우 다운로드
- if(filenm != ""){
- //파일명의 확장자만 받아옴
- var fileext = filenm.lastIndexOf(".");
- var ext = filenm.substring(fileext +1);
- //파일을 다운로드 하기 위해 저장할 창을 띄움
- var filesave = window.fileDialog("save","|",false,filenm,ext,"All Files(*.*)|*.*");
-
- //키값을 가지고 DB에 저장된 데이타를 조회하러 간다
- if (filesave != "") {
- model.download(getActionURL("TRZHA20607")+"&reqno="+reqno+"&filepathcolnm="+filepathcolnm ,filesave);
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1210;2,768;">
- <group id="grp_tle" style="left:0px; top:0px; width:915px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:217px; height:15px; ">작업일지 관리</caption>
- </group>
- <group id="grp_dev" style="left:0px; top:15px; width:1210px; height:45px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1210px; height:45px; font-family:돋움체; "/>
- <button id="btn_search" class="btn1_letter2" navindex="15" style="left:1145px; top:12px; width:56px; height:22px; font-family:돋움체; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSearch();
-
- ]]>
- </script>
- </button>
- <caption id="cap_workdd" class="search_name" style="left:225px; top:15px; width:100px; height:17px; font-family:돋움체; ">작업일자 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" navindex="6" inputtype="date" style="left:315px; top:15px; width:85px; height:19px; font-family:돋움체; "/>
- <caption id="cap_instcd" class="search_name" style="left:5px; top:15px; width:85px; height:17px; font-family:돋움체; ">기 관:</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" navindex="7" inputtype="date" style="left:420px; top:15px; width:85px; height:19px; font-family:돋움체; "/>
- <caption id="caption25" style="left:405px; top:15px; width:15px; height:20px; font-family:돋움체; ">~</caption>
- <select1 id="cmb_instcd" ref="/root/main/cond/instcd" class="combo_search" appearance="minimal" style="left:95px; top:15px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/Z0007[cdid='031' or cdid='032']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_4" style="x1:1135px; y1:10px; x2:1135px; y2:38px; "/>
- <caption id="caption1" class="search_name" style="left:519px; top:15px; width:80px; height:17px; font-family:돋움체; ">작업자 :</caption>
- <select1 id="cmb_chrgid" ref="/root/main/cond/chrgid" class="combo_search" appearance="minimal" style="left:600px; top:15px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/chrgidlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line4" class="line_1" style="x1:0px; y1:87px; x2:830px; y2:87px; "/>
- <caption id="caption9" class="tit_2" style="left:0px; top:73px; width:180px; height:15px; ">작업일지 정보</caption>
- <datagrid id="grd_worklist" nodeset="/root/main/workinfo/worklist" caption="작업순번^작업일자^작업구분 ^작업구분 ^작업구분 ^작업구분 ^작업내용^작업상세내용^요청자^요청자^SR구분^caption2^caption1^SR요청번호^첨부
파일^담당자^담당자^완료일자^완료여부|작업순번^작업일자^작업구분^작업구분^작업상세구분^작업상세구분^작업내용^작업상세내용^요청자^요청자^SR구분^caption2^caption1^SR요청번호^첨부
파일^담당자^담당자^완료일자^완료여부" colsep="^" colwidth="1, 85, 0, 80, 0, 80, 146, 225, 0, 69, 69, 100, 100, 101, 45, 0, 69, 85, 58" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:92px; width:830px; height:676px; ">
- <col ref="workseq"/>
- <col ref="workdd" type="inputdate"/>
- <col ref="worktype" type="output"/>
- <col ref="worktypenm" type="inputbutton"/>
- <col ref="workdetltype" type="output"/>
- <col ref="workdetltypenm" type="inputbutton"/>
- <col ref="worktitl" type="input"/>
- <col ref="workcont" type="input"/>
- <col ref="reqid"/>
- <col ref="reqnm"/>
- <col disabled="true" ref="srtype" type="combo">
- <choices>
- <item>
- <label>전산장비지원</label>
- <value>01</value>
- </item>
- <item>
- <label>통신지원</label>
- <value>02</value>
- </item>
- </choices>
- </col>
- <col ref="attfilenm"/>
- <col ref="attfilepath"/>
- <col ref="srseqno" type="inputbutton"/>
- <col ref="fileyn" type="inputbutton" style="text-align:center; "/>
- <col ref="chrgid"/>
- <col ref="chrgnm"/>
- <col ref="enddd" type="inputdate"/>
- <col ref="endyn"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var worktype;
-
- if(grd_worklist.col == grd_worklist.colRef("worktype")) {
-
- }
-
- if(grd_worklist.col == grd_worklist.colRef("enddd")) {
- if(grd_worklist.valueMatrix(grd_worklist.row, grd_worklist.col) != "") {
- grd_worklist.valueMatrix(grd_worklist.row, grd_worklist.colRef("endyn")) = "Y";
- } else {
- grd_worklist.valueMatrix(grd_worklist.row, grd_worklist.colRef("endyn")) = "N";
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_worklist.isCell(event.target) && grd_worklist.mouseRow >= grd_worklist.fixedrows){
- fSearchDetl();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var attfilenm = grd_worklist.valueMatrix(grd_worklist.row, grd_worklist.colRef("attfilenm"));
- var attfilepath= grd_worklist.valueMatrix(grd_worklist.row, grd_worklist.colRef("attfilepath"));
- var srseqno = grd_worklist.valueMatrix(grd_worklist.row, grd_worklist.colRef("srseqno"));
-
- if(grd_worklist.col== grd_worklist.colRef("worktypenm") || grd_worklist.col== grd_worklist.colRef("workdetltypenm")) {
-
- fPopUpComCodeInfo("worktype", "worktypenm", "workdetltype", "workdetltypenm", "grd_worklist", "02", event.clientX, event.clientY);
-
- } else if(grd_worklist.col== grd_worklist.colRef("srseqno") ) {
- fPopUpSrInfo("srseqno", "srtype", "reqnm", "fileyn", "grd_worklist");
- } else if(grd_worklist.col== grd_worklist.colRef("fileyn")) {
- if(grd_worklist.valueMatrix(grd_worklist.row, grd_worklist.colRef("fileyn")) == "Y") {
-
- fFileDown(attfilenm,"attfilepath", srseqno);
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_workdetllist" nodeset="/root/main/workdetlinfo/workdetllist" class="datagrid2" caption="workseq^구분^장비/부품
코드^장비/부품명^사용
구분^수량^이전
수량^재고
수량" colsep="^" colwidth="0, 54, 72, 125, 62, 35, 0, 0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:835px; top:92px; width:375px; height:676px; ">
- <col ref="workseq"/>
- <col ref="flag" type="combo">
- <choices>
- <itemset nodeset="/root/init/mlist/Z0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="eqmtitemcd"/>
- <col ref="eqmtitemnm"/>
- <col ref="usetype" type="combo">
- <choices>
- <itemset nodeset="/root/init/lrgcodeinfo/codelist[supcd='05']">
- <label ref="lrgnm"/>
- <value ref="lrgcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="qty" type="input"/>
- <col ref="bfqty" visibility="hidden"/>
- <col ref="stokqty" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var iRow = grd_workdetllist.row;
- var qty = parseInt(grd_workdetllist.valueMatrix(iRow, grd_workdetllist.colRef("qty")));
- var bfqty = parseInt(grd_workdetllist.valueMatrix(iRow, grd_workdetllist.colRef("bfqty")));
- var stokqty = parseInt(grd_workdetllist.valueMatrix(iRow, grd_workdetllist.colRef("stokqty")));
-
- if(grd_workdetllist.col == grd_workdetllist.colRef("qty")) {
- if(parseInt(qty) > parseInt(stokqty)) {
- messageBox("재고량보다 많은 수량을 입력할 수 업습니다.", "E");
- grd_workdetllist.valueMatrix(iRow, grd_workdetllist.colRef("qty")) = bfqty;
- return;
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:835px; y1:87px; x2:1210px; y2:87px; "/>
- <group id="grp_work" style="left:700px; top:66px; width:130px; height:20px; ">
- <button id="button2" class="btn5_letter2" style="left:88px; top:0px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/worklist", getGridUpdateData(grd_worklist));
- if( submit("TXZHI01001") ) {
- messageBox("저장되었습니다.", "I");
- fSearch();
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:0px; top:0px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- grd_worklist.addRow();
- var iRow = grd_worklist.row;
-
- grd_worklist.valueMatrix(iRow, grd_worklist.colRef("workdd")) = getCurrentDate();
- grd_worklist.valueMatrix(iRow, grd_worklist.colRef("endyn")) = "N";
- grd_worklist.valueMatrix(iRow, grd_worklist.colRef("chrgid")) = getUserInfo("userid");
- grd_worklist.valueMatrix(iRow, grd_worklist.colRef("chrgnm")) = getUserInfo("usernm");
-
- grd_worklist.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter2" style="left:44px; top:0px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_worklist.rowStatus(grd_worklist.row) = "4";
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_workdetl" style="left:1080px; top:66px; width:130px; height:20px; ">
- <button id="button1" class="btn5_letter2" style="left:88px; top:0px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var flag;
- var qty;
-
- for(var i = grd_workdetllist.fixedRows; i < grd_workdetllist.rows; i++) {
- flag = grd_worklist.valueMatrix(i, grd_worklist.colRef("flag"));
- qty = grd_worklist.valueMatrix(i, grd_worklist.colRef("qty"));
-
- if(flag == "02") {
- if(qty == 0 || qty == null) {
- messageBox("부품은 수량을 입력하셔야합니다. ", "E");
- return;
- }
- }
- }
-
- model.makeValue("/root/send/savedata/workdetllist", getGridUpdateData(grd_workdetllist));
- if( submit("TXZHI01002") ) {
- messageBox("저장되었습니다.", "I");
- fSearchDetl();
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter2" style="left:0px; top:0px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_worklist.row > 0){
-
- } else {
- messageBox("작업내역을 선택한 후 작업상세 내역을 등록하십시오.", "I");
- return;
- }
- setParameter("SPZHI0100_workdd", grd_worklist.valueMatrix(grd_worklist.row, grd_worklist.colRef("workdd")));
- open("SPZHI00110");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter2" style="left:44px; top:0px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // grd_workdetllist.rowstatus(grd_workdetllist.row) = 4;
- status = grd_workdetllist.rowstatus(grd_workdetllist.row);
- if(status == 0 || status == 2 || status == 4) {
- grd_workdetllist.rowstatus(grd_workdetllist.row) = 4;
- } else {
- grd_workdetllist.deleteRow(grd_workdetllist.row);
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|