123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- <?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>
- <rpireqmtlist>
- <item>
- <rgstrdt/>
- <excuroomcd/>
- <eqcd/>
- <eqcdnm/>
- <rectrpirdd/>
- <rpirdd/>
- <alertdayno/>
- <alertcnfmyn/>
- <rpircnfmyn/>
- <suppdeptcd/>
- <rpirtm/>
- <rpircmpynm/>
- <rpircmt/>
- <rpircnts/>
- <excuroomnm/>
- </item>
- </rpireqmtlist>
- </main>
- <send>
- <basecd/>
- <basecdflagdesc/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <data/>
- </req>
- </send>
- <init>
- <eqmtlist>
- <item>
- <basecd/>
- <basecdflagdesc/>
- </item>
- </eqmtlist>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom>
- </cmb_info>
- <popupmenu>
- <grid01>
- <item>
- <name>장비이력대장</name>
- <func>fPopupRpirList</func>
- </item>
- </grid01>
- </popupmenu>
- </init>
- <hidden/>
- </root>
- </instance>
- <submission id="TRAEQ01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/eqmtlist"/>
- <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
- <submission id="TXAEQ01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAEQ01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rpireqmtlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
-
- model.removeNodeset("/root/main/rpireqmtlist/item");
- model.refresh();
-
- submit("TRAEQ01202"); // 장비코드
- submit("TRAEA01301"); // 검사실코드
-
- readfunc(); // 검교정관리 조회
-
- model.setFocus("input8");
- ]]>
- </script>
- </model>
- </xhtml:head>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 장비검교정관리
- * @ver : 2008.03.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회를 위한 Function
- */
- function readfunc() {
-
- submit("TRAEQ01201"); // 검교정관리 조회
-
- var srchLength1 = model.instances(0).selectNodes( "/root/main/rpireqmtlist/item" ).length;
- if ( srchLength1 > 0 ) {
-
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- if ( model.getValue("/root/main/rpireqmtlist/item[" + i + "]/rpirdd").getTrim() == "00000000" ) {
- grd_rpireqmtlist.rowstyle( i , "data" , "background-color" ) = "#ffffff";
- }else {
- grd_rpireqmtlist.rowstyle( i , "data" , "background-color" ) = "#49e5fb";
- }
- }
- }
- }
-
- /* @group : 장비검교정관리
- * @ver : 2008.03.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 장비이력대장 조회를 위한 Function
- */
- function fPopupRpirList() {
-
- var rowidx = grd_rpireqmtlist.row
- if ( model.getValue("/root/main/rpireqmtlist/item[" + grd_rpireqmtlist.row + "]/rpirdd") == "00000000" ) {
- messageBox("점검일자가 존재하지 않습니다. \n\n 장비이력대장 출력은 점검일자가 존재해야 합니다.", "E999", "");
- return;
- }
- model.setValue("/root/main/rpireqmtlist/item["+rowidx+"]/excuroomnm", grd_rpireqmtlist.labelMatrix(grd_rpireqmtlist.row, 2) );
-
- if(window.children.item("SPAEQ01201") == null)
- {
- var xpt = 0;
- var ypt = 0;
- aezfTopMost("SPAEQ01201",1,xpt,ypt,"SPAEQ01201","/root/main/rpireqmtlist/item["+ rowidx +"]","/root/main/rpireqmtlist/item","",0,0);
- }else {
- copyNodesetType("/root/main/rpireqmtlist/item", "/root/main/rpireqmtlist/item["+ rowidx +"]", "replace" , window.children.item("SPAEQ01201").model, model);
- window.children.item("SPAEQ01201").model.refresh();
- //window.children.item("SPAEQ01201").model.dispatch("xforms-ready");
- }
- }
-
- ]]>
- </script>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">검교정 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- readfunc();
-
- ]]>
- </script>
- </button>
- <input id="input8" ref="/root/send/basecdflagdesc" class="input_search" style="left:359px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- readfunc(); // 검교정관리 조회
- }
- ]]>
- </script>
- </input>
- <caption id="caption25" class="search_name" style="left:255px; top:9px; width:100px; height:17px; ">장비코드명 :</caption>
- <input id="input1" ref="/root/send/basecd" class="input_search" style="left:124px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- readfunc(); // 검교정관리 조회
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:30px; top:9px; width:100px; height:17px; ">장비코드 :</caption>
- </group>
- <datagrid id="grd_rpireqmtlist" nodeset="/root/main/rpireqmtlist/item" caption="등록일시^검사/촬영실명^장비명^장비명2^검교정예정일자^실제 점검일자^알람적용일^알람확인여부^점검확인여부^부서코드^점검시간^수리회사^수리소견^수리내용^검사실명" colsep="^" colwidth="150, 124, 375, 78, 120, 120, 70, 90, 87, 100, 60, 100, 200, 200, 100" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:79px; width:1195px; height:665px; ">
- <col ref="rgstrdt" format="yyyy-mm-dd hh:nn:ss" validateformat="true" style="text-align:center; "/>
- <col ref="excuroomcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="eqcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/eqmtlist/item">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col ref="eqcdnm" visibility="hidden"/>
- <col ref="rectrpirdd" type="inputdate" format="yyyy-mm-dd" validateformat="true" style="text-align:center; "/>
- <col ref="rpirdd" type="inputdate" format="yyyy-mm-dd" validateformat="true" style="text-align:center; "/>
- <col ref="alertdayno" type="input" format="#,###" maxlength="9999" style="text-align:center; "/>
- <col ref="alertcnfmyn" style="text-align:center; "/>
- <col ref="rpircnfmyn" style="text-align:center; "/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="rpirtm"/>
- <col ref="rpircmpynm"/>
- <col ref="rpircmt"/>
- <col ref="rpircnts"/>
- <col ref="excuroomnm" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var colidx = grd_rpireqmtlist.col;
- var rowidx = grd_rpireqmtlist.row
-
- if(grd_rpireqmtlist.colAttribute(colidx, "ref") == "eqcd") {
-
- model.setValue("/root/main/rpireqmtlist/item["+rowidx+"]/eqcdnm", grd_rpireqmtlist.labelMatrix(grd_rpireqmtlist.row, 3) );
- model.refresh();
- }
-
- if(grd_rpireqmtlist.colAttribute(colidx, "ref") == "excuroomcd") {
-
- model.setValue("/root/main/rpireqmtlist/item["+rowidx+"]/excuroomnm", grd_rpireqmtlist.labelMatrix(grd_rpireqmtlist.row, 2) );
- model.refresh();
- }
-
- if(grd_rpireqmtlist.colAttribute(colidx, "ref") == "rpirdd") {
-
- model.setValue("/root/main/rpireqmtlist/item["+rowidx+"]/excuroomnm", grd_rpireqmtlist.labelMatrix(grd_rpireqmtlist.row, 2) );
- model.refresh();
- }
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if ( (grd_rpireqmtlist.row >= grd_rpireqmtlist.fixedRows) && (grd_rpireqmtlist.isCell(event.target))) {
-
- if ( model.getValue("/root/main/rpireqmtlist/item[" + grd_rpireqmtlist.row + "]/rpirdd") != "" ) {
- setPopupMenu("grd_rpireqmtlist", false, "/root/init/popupmenu/grid01/item", "name", "func");
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:1px; y1:73px; x2:1195px; y2:73px; "/>
- <button id="button51" class="btn2_letter2" style="left:1150px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_rpireqmtlist.saveExcel(file);
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1036px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_rpireqmtlist.addRow();
- grd_rpireqmtlist.row = grd_rpireqmtlist.bottomRow;
-
- var cnt = parseInt(grd_rpireqmtlist.row);
- //var datetime = getCurrentDateTime();
- model.makeValue("/root/main/rpireqmtlist/item[" + cnt + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
-
- model.makeValue("/root/main/rpireqmtlist/item[" + cnt + "]/alertcnfmyn", "N" );
- model.makeValue("/root/main/rpireqmtlist/item[" + cnt + "]/rpircnfmyn", "N" );
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1093px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_rpireqmtlist, true);
- ]]>
- </script>
- </button>
- <button id="button27" class="btn2_letter6" style="left:925px; top:50px; width:86px; height:19px; ">
- <caption>장비이력대장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if ( model.getValue("/root/main/rpireqmtlist/item[" + grd_rpireqmtlist.row + "]/rpirdd") != "00000000" ) {
- fPopupRpirList();
- }else {
- messageBox("점검일자가 존재하지 않습니다. \n\n 장비이력대장 출력은 점검일자가 존재해야 합니다.", "E999", "");
- return;
- }
-
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:762px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("","Q002")==6 ) {
- var update = getGridUpdateData(grd_rpireqmtlist);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue("/root/send/req/data", update);
- submit("TXAEQ01201");
-
- }
- }
- readfunc(); // 검교정관리 조회
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|