123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- <?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>
- <cond>
- <fromdd/>
- <todd/>
- <fixasetcd/>
- <fixasetdivs/>
- </cond>
- <repairinfo>
- <repairlist/>
- </repairinfo>
- </main>
- <send>
- <instcd/>
- <useyn/>
- </send>
- <init>
- </init>
- <code>
- <codeinfo>
- <codelist/>
- </codeinfo>
- </code>
- <temp>
- <titleinfo/>
- <chkinfo>
- <chklist/>
- </chkinfo>
- </temp>
- <init>
- <codeinfo/>
- </init>
- </root>
- </instance>
- <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" ev:event="xforms-ready">
- <![CDATA[
-
- fInitialize();
-
- ]]>
- </script>
- <submission id="TRMNG04801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/repairinfo"/>
- <submission id="TXMNG04801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/codeinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- var curdd = getCurrentDate();
-
- model.makeValue("/root/send/reqdata/srchdd", curdd);
- model.makeValue("/root/send/reqdata/cdgrupid", "'U12', 'U18'");
- model.makeValue("/root/send/reqdata/flag", "1");
-
- model.setValue(ipt_fromdd.attribute("ref"), curdd);
- model.setValue(ipt_todd.attribute("ref"), curdd);
-
- submit("TRMNW00001");
-
-
- addComboItem("cmb_fixasetcd", "", "");
-
- fSearch();
- }
- function fSearch(){
- model.makeNode("/root/send/reqdata");
-
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- submit("TRMNG04801");
- }
-
- function fSave() {
- var rprddnode = instance1.selectNodes(grd_repairlist.nodeset + "[rprdd='']");
- if(rprddnode.length > 0 ) {
- messageBox("수리일자를 입력하십시오.", "E");
- return;
- }
-
- var fixasetnode = instance1.selectNodes(grd_repairlist.nodeset + "[fixasetcd='']");
- if(fixasetnode.length > 0 ) {
- messageBox("장비를 입력하십시오.", "E");
- return;
- }
-
- var rprresnnode = instance1.selectNodes(grd_repairlist.nodeset + "[rprresn='']");
- if(rprresnnode.length > 0 ) {
- messageBox("수리요청사유를 입력하십시오.", "E");
- return;
- }
-
- var updtdata = getGridUpdateData(grd_repairlist);
-
- if(updtdata == "" || updtdata == null) {
- messageBox("저장할 데이터가 존재하지 않습니다.", "E");
- return;
- }
-
- model.makeValue("/root/send/savedata/repairlist", updtdata);
- submit("TXMNG04801");
-
- messageBox("저장하였습니다.", "E");
-
- fSearch();
- }
-
-
- function fPrint() {
- exeReportPreview("RPMNG04800", "XMLSTR");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:220px; height:15px; ">장비 비정기 수리일지</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:747px; ">
- <datagrid id="grd_repairlist" nodeset="/root/main/repairinfo/repairlist" autoresize="true" caption="수리요청일^장비^수리요청사유^수리요청자^수리내역^수리완료일^점검자^확인자^확인자^caption1^caption2^caption3^caption4|수리요청일^장비^수리요청사유^수리요청자^수리내역^수리완료일^점검자^의공학^진료재료^caption1^caption2^caption3^caption4" colsep="^" colwidth="100, 100, 270, 83, 261, 100, 79, 78, 81, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:70px; width:1193px; height:669px; ">
- <col ref="rprdd" type="inputdate"/>
- <col ref="fixasetcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdid!='']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rprresn" type="input"/>
- <col ref="rprreqnm" type="inputbutton"/>
- <col ref="rprcnt" type="input"/>
- <col ref="rprenddd" type="inputdate"/>
- <col ref="inspctrnm" type="input"/>
- <col ref="purcertnm" type="inputbutton"/>
- <col ref="csrcertnm" type="inputbutton"/>
- <col ref="rprreqid" visibility="hidden"/>
- <col ref="inspctrid" visibility="hidden"/>
- <col ref="csrcertid" visibility="hidden"/>
- <col ref="purcertid" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_repairlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- var iCol = grd_repairlist.col;
- var iRow = grd_repairlist.row;
-
-
- if(iCol == grd_repairlist.colRef("rprreqnm")) {
- grd_repairlist.valueMatrix(iRow, grd_repairlist.colRef("rprreqnm")) = getUserInfo("usernm");
- grd_repairlist.valueMatrix(iRow, grd_repairlist.colRef("rprreqid")) = getUserInfo("userid");
- } else if(iCol == grd_repairlist.colRef("inspctrnm")) {
- grd_repairlist.valueMatrix(iRow, grd_repairlist.colRef("inspctrnm")) = getUserInfo("usernm");
- } else if(iCol == grd_repairlist.colRef("csrcertnm")) {
- grd_repairlist.valueMatrix(iRow, grd_repairlist.colRef("csrcertnm")) = getUserInfo("usernm");
- grd_repairlist.valueMatrix(iRow, grd_repairlist.colRef("csrcertid")) = getUserInfo("userid");
- } else if(iCol == grd_repairlist.colRef("purcertnm")) {
- grd_repairlist.valueMatrix(iRow, grd_repairlist.colRef("purcertnm")) = getUserInfo("usernm");
- grd_repairlist.valueMatrix(iRow, grd_repairlist.colRef("purcertid")) = getUserInfo("userid");
- }
-
- if(grd_repairlist.rowStatus(iRow) == "0" ) {
- grd_repairlist.rowStatus(iRow) = "2";
- }
-
- ]]>
- </script>
- </datagrid>
- <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption9" class="search_name" style="left:10px; top:7px; width:89px; height:17px; ">수리일자 :</caption>
- <button id="button2" class="btn1_letter2" navindex="7" style="left:1055px; top:5px; width:56px; height:22px; text-align:left; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSearch();
- ]]>
- </script>
- </button>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:215px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:100px; top:9px; width:100px; height:19px; "/>
- <caption id="caption2" style="left:203px; top:12px; width:12px; height:17px; ">~</caption>
- <line id="line2" class="line_4" style="x1:1045px; y1:5px; x2:1045px; y2:25px; "/>
- <select1 id="cmb_fixasetcd" ref="/root/main/cond/fixasetcd" appearance="minimal" style="left:575px; top:10px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='U12' or cdid='']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:515px; top:10px; width:59px; height:17px; ">장비 :</caption>
- <button id="button5" class="btn1_letter2" navindex="7" style="left:1115px; top:5px; width:56px; height:22px; text-align:left; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fPrint();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:330px; top:10px; width:59px; height:17px; ">장비 :</caption>
- <select1 id="cmb_fixasetdivs" ref="/root/main/cond/fixasetdivs" appearance="minimal" style="left:390px; top:10px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='U18' or cdid='']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1193px; y2:65px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:50px; width:100px; height:15px; ">수리일지</caption>
- <button id="button3" class="btn2_letter3" style="left:1040px; top:45px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_repairlist.addRow();
- grd_repairlist.valueMatrix(grd_repairlist.row, grd_repairlist.colRef("rprdd")) = getCurrentDate();
- grd_repairlist.valueMatrix(grd_repairlist.row, grd_repairlist.colRef("rprreqid")) = getUserInfo("userid");
- grd_repairlist.valueMatrix(grd_repairlist.row, grd_repairlist.colRef("rprreqnm")) = getUserInfo("usernm");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:1095px; top:45px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_repairlist.rowStatus(grd_repairlist.row) = "4";
- ]]>
- </script>
- </button>
- <button id="button1" class="btn5_letter2" navindex="7" style="left:1150px; top:45px; width:42px; height:19px; text-align:left; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|