123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHB00100.xrw
- * 설 명 : 검사코드관리
- * 설 계 자 : 손주연
- * 작 성 자 : 박원희
- * 작 성 일 : 2007.03.13
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <inqrlst>
- <item>
- <inqrcd/>
- <inqrnm/>
- <answflag/>
- <answcnt/>
- <useyn/>
- <defltval/>
- <inqrdipseq/>
- <inqretcflag1/>
- <inqretcflag2/>
- <lastupdtrid/>
- <lastupdtdt/>
- </item>
- </inqrlst>
- <anslst>
- <item>
- <answcd/>
- <answcnts/>
- <reminptyn/>
- <lastupdtrid/>
- <lastupdtdt/>
- </item>
- </anslst>
- </main>
- <send>
- <srchinqrflag/>
- <srchinqrcd/>
- <srchinqrcnts/>
- <srchinstcd/>
- <save>
- <saveinqrcd/>
- <instcd/>
- <inqrflag/>
- <userid/>
- <saveinqrans/>
- <inqrcd/>
- </save>
- <ansinqrcd/>
- </send>
- <init>
- <baseinfo>
- <inqrflaglst/>
- <answflaglst/>
- </baseinfo>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <submission id="TRAHA03161" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/inqrlst"/>
- <submission id="TRAHA03162" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/anslst"/>
- <submission id="TXAHA03161" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
- <submission id="TRZBC00101"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- btn_search. disabled = ! checkAuth("R") ;
- btn_save. disabled = ! checkAuth("X") ;
- btn_print. disabled = ! checkAuth("P") ;
- fGetInqrFlag();
-
-
-
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function fGetInqrlst(){
-
- var tmp = model.getvalue("root/send/srchinqrflag");
- var selRow = grd_inqrlst.row;
- //var tmp = cmb_inqrflag.value ;
- if ( tmp == ""){
- messageBox("문진분류를 ", "C001")
- return;
- }
- model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
-
- if(submit("TRAHA03161")) {
- if(selRow > 0) {
- fGetInqrAns();
- }
- }
- }
- /**
- * 문진 답안내역 가져오기
- */
- function fGetInqrAns(){
-
- var tmpinqrflag = model.getvalue("root/send/srchinqrflag");
-
- model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
- model.setValue("/root/send/srchinqrflag" , tmpinqrflag);
- model.setValue("/root/send/ansinqrcd" , grd_inqrlst.valueMatrix(grd_inqrlst.row, 1) );
-
- //var tmp = model.getValue("/root/send/inqrcd" );
- //alert(tmp );
-
- submit("TRAHA03162");
- }
-
-
-
- /**
- * 문진분류 가져오기
- */
- function fGetInqrFlag(){
- model.removeNodeset("/root/init/baseinfo/inqrflaglst/A0106");
- zbcfGetCodeList( new Array("A0106","A0066" ),
- new Array("/root/init/baseinfo/inqrflaglst"
- ,"/root/init/baseinfo/answflaglst" ) );
- submit("TRZBC00101");
-
- }
- /**
- * 초기화
- */
- function fInitInqrLst(){
-
- model.removeNodeset("/root/main/inqrlst/item");
- model.removeNodeset("/root/main/anslst/item");
- //model.reset();
- //. model.resetInstanceNode("/root/send/srchinqrflag");
- model.refresh();
- }
- /**
- * Save function,문진코드
- */
- function fSaveInqrCd() {
- var ret = false;
- if( messageBox("문진코드정보를","Q002") == 6){
-
- var inqrfg = model.getvalue("root/send/srchinqrflag");
-
- if( inqrfg == "") return ;
-
- // var idx = grd_answlst.row;
- // if( idx < 1) return ;
-
- model.setValue("/root/send/save/inqrflag" , cmb_inqrflag.value);
-
- //alert("inqrfg: "+inqrfg);
- //alert(getUserInfo("posinstcd"));
- //alert(getUserInfo("posuserid"));
-
- model.setValue("/root/send/save/instcd" , getUserInfo("posinstcd"));
- model.setValue("/root/send/save/userid" , getUserInfo("userid"));
- model.setValue("/root/send/save/saveinqrcd", grd_inqrlst.getUpdateData());
- model.setValue("/root/send/save/inqrcd", grd_inqrlst.valueMatrix(grd_inqrlst.row, 1) );
-
- //var tmp = model.getValue("/root/send/save/inqrcode" );
- //alert(tmp );
- model.setValue("/root/send/save/saveinqrans", grd_answlst.getUpdateData());
- ret = submit("TXAHA03161");
-
- return ret;
- }
- return ret;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" 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:119px; height:14px; ">문진코드관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <datagrid id="grd_answlst" nodeset="/root/main/anslst/item" caption="코드^답안^비고필수^최종수정자^최종수정일시" colsep="^" colwidth="100, 421, 55, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:594px; top:75px; width:600px; height:660px; ">
- <col ref="answcd" type="input" style="left:0px; top:23px; width:100px; height:23px; "/>
- <col ref="answcnts" type="input" style="left:100px; top:23px; width:441px; height:23px; "/>
- <col checkvalue="Y,N" ref="reminptyn" type="checkbox" style="left:541px; top:23px; width:53px; height:23px; "/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- </datagrid>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:87px; height:17px; ">문진분류 :</caption>
- <caption id="caption3" class="search_name" style="left:361px; top:9px; width:112px; height:17px; ">문진코드 :</caption>
- <input id="ipt_inqrcnts" ref="/root/send/srchinqrcnts" class="input_search" style="left:755px; top:8px; width:340px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/anslst");
- model.removenode("/root/main/inqrlst");
-
- fGetInqrlst();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <caption id="caption5" class="search_name" style="left:666px; top:9px; width:87px; height:17px; ">문진내역 :</caption>
- <input id="ipt_inqrcd" ref="/root/send/srchinqrcd" class="input_search" style="left:450px; top:8px; width:160px; height:19px; "/>
- <select1 id="cmb_inqrflag" ref="/root/send/srchinqrflag" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/inqrflaglst/A0106">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:78px; height:14px; ">문진코드</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:590px; y2:70px; "/>
- <datagrid id="grd_inqrlst" nodeset="/root/main/inqrlst/item" caption="코드^문진내역^문진답안구분^답안선택수^사용여부^기본값^출력순서^기타구분1^기타구분2^최종수정자^최종수정일시" colsep="^" colwidth="70, 260, 80, 80, 50, 80, 60, 80, 80, 100, 100" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:590px; height:660px; ">
- <col ref="inqrcd" type="input"/>
- <col ref="inqrnm" type="input"/>
- <col ref="answflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/answflaglst/A0066">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="answcnt" type="input"/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col ref="defltval" type="input"/>
- <col ref="inqrdipseq" type="input"/>
- <col ref="inqretcflag1" type="input"/>
- <col ref="inqretcflag2" type="input"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" type="input"/>
- <script type="javascript" ev:event="ondbclick">
- <![CDATA[
- //fGetInqrAns();
- alert(grd_inqrlst.valueMatrix(grd_inqrlst.row, grd_inqrlst.col));
-
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- var colType = grd_inqrlst.colType(grd_inqrlst.col);
- if(colType == "input") {
- grd_inqrlst.editCell();
- }
- fGetInqrAns();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:599px; top:55px; width:107px; height:14px; ">선택형답안</caption>
- <line id="line2" class="line_1" style="x1:594px; y1:70px; x2:1194px; y2:70px; "/>
- <button id="btn_grddel" class="btn2_letter3" style="left:537px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_inqrlst.addStatus(grd_inqrlst.row,"delete");
- deleteSelectedRows(grd_inqrlst,true);
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:482px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_inqrlst.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_ansadd" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_answlst.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_ansdel" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_answlst.addStatus(grd_answlst.row,"delete");
- deleteSelectedRows(grd_answlst,true);
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitInqrLst();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fSaveInqrCd()) {
- fGetInqrlst();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|