123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419 |
- <?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>QC 결과 확인</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <cnfmlist>
- <userflag/>
- </cnfmlist>
- <getUsernm>
- <usernm/>
- </getUsernm>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <userid/>
- <data1/>
- <refflag>1</refflag>
- <eqmtcd/>
- <testcdlist/>
- <levlcdlist/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <resncd>16000</resncd>
- <resn/>
- </ref>
- <param>
- <cnfmfromdd/>
- <cnfmtodd/>
- <userflag/>
- <eqmtcd/>
- <testcdlist/>
- <testnmlist/>
- <levlcdlist/>
- <levlnmlist/>
- <matrcdlist/>
- <lotnolist/>
- <viewtestnmlist/>
- <viewlevlnmlist/>
- </param>
- <temptxt/>
- </hidden>
- </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" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.makeValue("/root/send/codeflag","0101|"); //0101:사유코드
- submit("TRLZZ00101");
-
- if(isPopup()){
- //그래프 조회에서 띄우는 팝업이라면~
-
-
- }
-
- if(model.getValue("/root/hidden/param/userflag") != ""){
- //저장
- model.toggle("case2");
- }else{
- //조회
- model.toggle("case1");
- fGetCnfmList();
- }
-
- ]]>
- </script>
- <submission id="TRLQP90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cnfmlist"/>
- <submission id="TXLQP90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
- <submission id="TXLQP90402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fKeyEvent(){
-
- //등록자
- if(event.keyCode == "13"){
- if(event.target == "ipt_testpsn"){
-
- model.setvalue("/root/send/userid",ipt_testpsn.currentText.toUpperCase());
-
- if(model.getvalue("/root/send/userid") != ""){
- submit("TRLZZ00104");
- }
- ipt_testpsn.selBegin = 0;
- ipt_testpsn.selEnd = ipt_testpsn.currentText.length;
- model.setFocus("ipt_testpsn");
- }
- }
- }
-
- function fSetCnfm(){
-
- if( model.getValue("/root/main/getUsernm/usernm") == "" || model.getValue("/root/send/userid") == ""){
- messageBox("등록자를 입력하세요", "E");
- return;
- }
-
- if( model.getValue("/root/hidden/ref/resncd") == "16000" ){
- messageBox("종합적 보고 사유를 선택하세요", "E");
- return;
- }
-
- if(model.getValue("/root/hidden/ref/resn") == ""){
- messageBox("종합적 보고 사유를 입력하세요", "E");
- return;
- }
-
- var sText = "m▦eqmtcd▦testcd▦levlcd▦userflag▦cnfmrgstrid▦matrcd▦lotno▦cnfmfromdd▦cnfmtodd▦cnfmfactcd▦cnfmfactcnts▩";
- var sEqmtcd = model.getValue("/root/hidden/param/eqmtcd");
- var sUserflag = model.getValue("/root/hidden/param/userflag");
- var sCnfmrgstrid = model.getValue("/root/send/userid");
- var sCnfmfromdd = model.getValue("/root/hidden/param/cnfmfromdd");
- var sCnfmtodd = model.getValue("/root/hidden/param/cnfmtodd");
- var sCnfmfactcd = model.getValue("/root/hidden/ref/resncd");
- var sCnfmfactcnts = model.getValue("/root/hidden/ref/resn");
- var sTestcd = model.getValue("/root/hidden/param/testcdlist").split("▦");
- var sLevlcd = model.getValue("/root/hidden/param/levlcdlist").split("▦");
- var sMatrcd = model.getValue("/root/hidden/param/matrcdlist").split("▦");
- var sLotno = model.getValue("/root/hidden/param/lotnolist").split("▦");
-
- for(i = 0; i < sTestcd.length; i++){
- sText += "i▦" + sEqmtcd + "▦" + sTestcd[i] + "▦" + sLevlcd[i] + "▦" + sUserflag + "▦" + sCnfmrgstrid + "▦" + sMatrcd[i]
- + "▦" + sLotno[i] + "▦" + sCnfmfromdd + "▦" + sCnfmtodd + "▦" + sCnfmfactcd + "▦" + sCnfmfactcnts + "▩";
- }
-
- model.setValue("/root/send/data1", sText);
- if(submit("TXLQP90401")){
- messageBox("정상처리 되었습니다", "I");
- button2.disabled = true;
- }
-
- }
- function fSetCnfm_save(){
-
- // if( model.getValue("/root/main/getUsernm/usernm") == "" || model.getValue("/root/send/userid") == ""){
- // messageBox("등록자를 입력하세요", "E");
- // return;
- // }
- //
- // if( model.getValue("/root/hidden/ref/resncd") == "16000" ){
- // messageBox("종합적 보고 사유를 선택하세요", "E");
- // return;
- // }
- //
- // if(model.getValue("/root/hidden/ref/resn") == ""){
- // messageBox("종합적 보고 사유를 입력하세요", "E");
- // return;
- // }
-
-
- // for(i = 0; i < sTestcd.length; i++){
- // sText += "i▦" + sEqmtcd + "▦" + sTestcd[i] + "▦" + sLevlcd[i] + "▦" + sUserflag + "▦" + sCnfmrgstrid + "▦" + sMatrcd[i]
- // + "▦" + sLotno[i] + "▦" + sCnfmfromdd + "▦" + sCnfmtodd + "▦" + sCnfmfactcd + "▦" + sCnfmfactcnts + "▩";
- // }
- model.setValue("/root/send/data1", grd_cnfm.getUpdateData());
- if(submit("TXLQP90402")){
- messageBox("정상처리 되었습니다", "I");
- // button2.disabled = true;
- }
-
- }
-
- function fGetCnfmList(){
-
- model.setValue("/root/hidden/temptxt", "");
-
- model.setValue("/root/send/eqmtcd" , model.getValue("/root/hidden/param/eqmtcd"));
- model.setValue("/root/send/testcdlist" , model.getValue("/root/hidden/param/testcdlist"));
- model.setValue("/root/send/levlcdlist" , model.getValue("/root/hidden/param/levlcdlist"));
- model.setValue("/root/send/fromdd" , model.getValue("/root/hidden/param/cnfmfromdd"));
- model.setValue("/root/send/todd" , model.getValue("/root/hidden/param/cnfmtodd"));
-
- submit("TRLQP90401");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="630" pageheight="330" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <button id="btn_swacpt" class="btn_sw" visibility="hidden" group="tab" selected="true" style="left:0px; top:18px; width:70px; height:22px; ">
- <caption>조회</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <button id="btn_swref" class="btn_sw" visibility="hidden" group="tab" style="left:70px; top:18px; width:70px; height:22px; ">
- <caption>확인</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <switch id="switch3" class="sw_box" style="left:0px; top:19px; width:610px; height:300px; ">
- <case id="case1" selected="true">
- <group id="group1" scroll="auto" style="left:0px; top:0px; width:605px; height:296px; ">
- <datagrid id="grd_cnfm" nodeset="/root/main/cnfmlist" caption="확인구분^적용구간^적용구간^장비^검사명^레벨명^확인일시^확인자^사유 및 종합적보고^코드^코드2^등록일" colsep="^" colwidth="60, 70, 70, 45, 90, 60, 110, 60, 200,0,0,0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:60px; width:600px; height:185px; ">
- <col disabled="true" ref="userflag" type="combo" disable="true" style="text-align:center; ">
- <choices>
- <item>
- <label>UM</label>
- <value>1</value>
- </item>
- <item>
- <label>팀장</label>
- <value>2</value>
- </item>
- <item>
- <label>전문의</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="cnfmfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cnfmtodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eqmtcd" style="text-align:center; "/>
- <col ref="testcd"/>
- <col ref="levlcd"/>
- <col ref="cnfmrgstdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="cnfmrgstrid" style="text-align:center; "/>
- <col ref="cnfmfactcnts" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cnfm.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/hidden/temptxt", model.getValue("/root/main/cnfmlist[" + grd_cnfm.row +"]/cnfmfactcnts"));
- textarea2.refresh();
- ]]>
- </script>
- <col ref="levl"/>
- <col ref="test"/>
- <col ref="cnfmrgstdt2"/>
- </datagrid>
- <line id="line10" class="line_1" style="x1:0px; y1:55px; x2:600px; y2:55px; "/>
- <caption id="caption32" class="tit_2" style="left:0px; top:40px; width:167px; height:14px; ">정도관리 확인 내역</caption>
- <group id="grp_sea" style="left:0px; top:0px; width:603px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:600px; height:35px; "/>
- <line id="line13" class="line_4" style="x1:525px; y1:5px; x2:525px; y2:27px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:10px; width:94px; height:17px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:533px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCnfmList();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_no_b" style="left:245px; top:8px; width:15px; height:17px; ">~</caption>
- <input id="input1" ref="/root/hidden/param/cnfmfromdd" class="input_s_essential" inputtype="date" style="left:145px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="input2" ref="/root/hidden/param/cnfmtodd" class="input_s_essential" inputtype="date" style="left:264px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:401px; top:9px; width:49px; height:17px; "/>
- <input id="ipt_pid" ref="/root/hidden/ref/abc" visibility="hidden" inputtype="button" style="left:420px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <select1 id="cmb_flag" ref="/root/send/refflag" class="combo_default" appearance="minimal" style="left:37px; top:8px; width:92px; height:19px; ">
- <choices>
- <item>
- <label>적용일자</label>
- <value>1</value>
- </item>
- <item>
- <label>확인일자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="button1" class="btn4_letter2" style="left:545px; top:246px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "");
- window.close();
- ]]>
- </script>
- </button>
- <textarea id="textarea2" ref="/root/hidden/temptxt" style="left:0px; top:246px; width:540px; height:50px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </textarea>
- <button id="button4" class="btn4_letter2" style="left:380px; top:10px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetCnfm_save();
- ]]>
- </script>
- </button>
- </group>
- </case>
- <case id="case2">
- <group id="grp_cnfm" scroll="auto" style="left:0px; top:0px; width:605px; height:210px; ">
- <caption id="cap_cnf" class="tit_2" style="left:0px; top:6px; width:123px; height:13px; ">결과 확인</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:600px; y2:20px; "/>
- <caption id="cap_1" class="cell_1" style="left:0px; top:25px; width:80px; height:23px; ">확인기준일</caption>
- <caption id="caption7" class="cell_1" style="left:321px; top:25px; width:80px; height:23px; ">장비코드</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:51px; width:80px; height:23px; ">검사항목</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:77px; width:80px; height:23px; ">사유코드</caption>
- <caption id="caption5" class="cell_1" visibility="hidden" style="left:237px; top:183px; width:80px; height:23px; ">레벨명</caption>
- <line id="line2" class="line_2" style="x1:0px; y1:49px; x2:600px; y2:49px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:75px; x2:600px; y2:75px; "/>
- <input id="input26" ref="/root/hidden/param/cnfmfromdd" class="input_s_essential" inputtype="date" style="left:83px; top:27px; width:105px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="input4" ref="/root/hidden/param/cnfmtodd" class="input_s_essential" inputtype="date" style="left:213px; top:27px; width:105px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption10" class="search_no_b" style="left:194px; top:28px; width:15px; height:17px; ">~</caption>
- <input id="input5" ref="/root/hidden/param/eqmtcd" disabled="true" style="left:404px; top:27px; width:195px; height:19px; "/>
- <input id="input6" ref="/root/hidden/param/viewtestnmlist" style="left:83px; top:53px; width:516px; height:19px; "/>
- <input id="input7" ref="/root/hidden/param/viewlevlnmlist" visibility="hidden" style="left:320px; top:185px; width:195px; height:19px; "/>
- <select1 id="radio1" ref="/root/hidden/param/userflag" disabled="true" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:85px; top:5px; width:170px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>UM</label>
- <value>1</value>
- </item>
- <item>
- <label>팀장</label>
- <value>2</value>
- </item>
- <item>
- <label>전문의</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_sect" ref="/root/hidden/ref/resncd" appearance="minimal" style="left:83px; top:79px; width:190px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0101[etc01 = '16']">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(model.getValue("/root/hidden/ref/resncd") == "16000"){
- model.setValue("/root/hidden/ref/resn", "");
- }else{
- var sResn = model.getValue("/root/hidden/ref/resn") + " ";
- model.setValue("/root/hidden/ref/resn", sResn + cmb_sect.label);
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line4" class="line_2" style="x1:0px; y1:101px; x2:600px; y2:101px; "/>
- <textarea id="textarea1" ref="/root/hidden/ref/resn" style="left:0px; top:103px; width:600px; height:80px; "/>
- <caption id="caption8" class="cell_1" style="left:276px; top:77px; width:80px; height:23px; ">등록자</caption>
- <input id="ipt_testpsn" ref="/root/send/userid" inputtype="button" style="left:359px; top:79px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <input id="input8" ref="/root/main/getUsernm/usernm" disabled="true" style="left:446px; top:79px; width:97px; height:19px; "/>
- <button id="button2" class="btn4_letter2" style="left:545px; top:78px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetCnfm();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:545px; top:184px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "");
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </case>
- <case id="case3"/>
- </switch>
- <group id="grp_tle" style="left:0px; top:0px; width:605px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:179px; height:14px; ">정도관리 결과 확인</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|