123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <rsdhdinflist>
- <instcd/>
- <workdd/>
- <fixasetcd/>
- <goodflag/>
- <usetims/>
- <usetm/>
- <funtngtm/>
- <expsurtmpr/>
- <expsurtm/>
- <dinftmpr/>
- <dinfitemspec/>
- <purfctm/>
- <userid/>
- <useridnm/>
- <totm/>
- <endpsnid/>
- <endpsnnm/>
- <cheindint/>
- <cheindext/>
- <biindng/>
- <biindg/>
- <bowdicok/>
- <bowdicic/>
- <bowdicna/>
- <incubtm/>
- <incubcnfmr/>
- <incubcnfmrnm/>
- <rsltcnfmtm/>
- <rsltcnfmpsn/>
- <rsltcnfmpsnnm/>
- <reading/>
- <spclmentfact/>
- <chrgid/>
- <chrgnm/>
- <cmt/>
- </rsdhdinflist>
- <reqcollcdeptlist>
- <instcd/>
- <fixasetcd/>
- <fixasetnm/>
- <dinfkind/>
- <useyn/>
- <cmt/>
- </reqcollcdeptlist>
- <prndatalist/>
- <list>
- <temp/>
- </list>
- </main>
- <send>
- <instcd/>
- <goodflag/>
- <dinfkind/>
- <workdd/>
- <usernm/>
- <true/>
- <fixasetcd/>
- <rsdhdinflist/>
- <test/>
- </send>
- <init>
- <radio1>
- <label>고압증기</label>
- <value>1</value>
- <label>건열</label>
- <value>2</value>
- <label>EO gas</label>
- <value>3</value>
- <label>STERRAD</label>
- <value>4</value>
- <label>전체</label>
- <value/>
- </radio1>
- <biindflag>
- <label>No growth</label>
- <value>1</value>
- <label>Growth</label>
- <value>2</value>
- </biindflag>
- <bowdicflag1>
- <label>OK</label>
- <value>1</value>
- <label>IC</label>
- <value>2</value>
- <label>NA</label>
- <value>3</value>
- </bowdicflag1>
- <bowdicflag2>
- <label>No growth</label>
- <value>1</value>
- <label>Growth</label>
- <value>2</value>
- </bowdicflag2>
- </init>
- <temp>
- <nodeset/>
- </temp>
- </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="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TXRSE01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRRSE01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsdhdinflist"/>
- <submission id="TRRSE01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqcollcdeptlist"/>
- <submission id="TRRSE01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prndatalist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- misfComboComCdList("Z0007", cmb_instcd); //기관코드
-
- //기관코드 설정
- rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"5","B");
-
- misfGridInit(grd_reqcollcdeptlist);
- misfGridInit(grd_rsdhdinflist);
-
- misfMsterDetailSet(grd_rsdhdinflist, null, "TRRSE01101", "Y");
-
- model.removeNodeset("/root/main/rsdhdinflist");
- model.removeNodeset("/root/main/reqcollcdeptlist");
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/usernm", getUserInfo("usernm")); // 사용자 이름 설정
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
- model.setValue("/root/send/goodflag", "EQ"); // 물품 설정
- model.setValue("/root/send/true", "Y"); // 사용유무 설정.
- model.setValue("/root/send/dinfkind", rdo_dinfkind.value); // 멸균 구분
- // model.setValue("/root/send/cntrdeptcd", getUserInfo("dutplcecd")); // 귀속부서 설정
-
- model.setValue("/root/send/workdd", getCurrentDate());
-
- //화면 권한 설정
- // btn_save.disabled = !(checkAuth("X"));
- // btn_prt.disabled= !(checkAuth("P"));
-
- submit("TRRSE01102");
-
- // rszfModeGetComboList( '012', , "grd_rsdhdinflist.csrfixasetmdnm");
-
- // var obj = document.controls(grd_rsdhdinflist.colAttribute(grd_rsdhdinflist.colRef("csrfixasetmdnm"), "id"));
- // alert(obj.choices.itemset.attribute("nodeset"));
- misfSetReadOnlyCol(grd_reqcollcdeptlist, "fixasetcd,fixasetnm", true);
- }
-
- function fModeCheck()
- {
- if( grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("dinfkind")) == 3 )
- {
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = false;
- }else if( grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("dinfkind")) == 4 )
- {
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = false;
- }else{
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = true;
- }
- }
- function fCheckTime(ftimeset)
- {
- if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef(ftimeset))
- {
- var sTime = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset));
-
- if(sTime.length != 4)
- {
- messageBox("네자리를 ","C001");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
- return;
- }
-
- var sFrontTime = sTime.substr(0, 2);
- var sBackTime = sTime.substr(2, 2);
-
- if(parseInt(sFrontTime) > 24)
- {
- messageBox("24시를 ","E003");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
- return;
- }
-
- if(parseInt(sBackTime) > 59)
- {
- messageBox("59분을 ","E003");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
- return;
- }
- }
- }
-
- // 장비코드 조회
- function fsearch()
- {
-
- var updtdata = getGridUpdateData(grd_rsdhdinflist);
- if ( updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- misfGridInit(grd_rsdhdinflist);
-
- submit("TRRSE01102");
-
- misfSetReadOnlyCol(grd_reqcollcdeptlist, "fixasetcd,fixasetnm", true);
- }
-
- // 세부내역 조회
- function fsearchGrid()
- {
- var updtdata = getGridUpdateData(grd_rsdhdinflist);
- if ( updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
-
- model.setValue("/root/send/instcd", grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd")));
- model.setValue("/root/send/fixasetcd", grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")));
- model.setValue("/root/send/workdd", ipt_workdd.value);
- model.setValue("/root/send/dinfkind", rdo_dinfkind.value); // 멸균 구분
- submit("TRRSE01101");
- misfSetReadOnlyCol(grd_rsdhdinflist, "instcd,workdd,fixasetcd,goodflag", true);
- }
-
- //행 추가
- function finsert()
- {
- if(grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")) == "")
- {
- messageBox("장비코드를","C002");
- }else{
- misfGridIUD(grd_rsdhdinflist, "A");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
- }
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("usetims") ) = grd_rsdhdinflist.row;
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgid") ) = getUserInfo("userid");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgnm") ) = opt_usernm.value;
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("workdd")) = ipt_workdd.value;
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("goodflag")) = "EQ";
-
- if(grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd")) == "")
- {
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = cmb_instcd.value;
- }else{
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd"));
- }
-
- misfSetReadOnlyCol(grd_rsdhdinflist, "instcd,fixasetcd,goodflag", true);
- }
-
-
- function fModeComboNodeSetGet()
- {
- //////////////////////////모드코드 콤보설정//////////////////////////////////////////
- // 모드 콤보 설정되기전에 콤보에 nodeset이 지정되어 있으며 화면상에 나타내어 지고 있으면 콤보의 노드를 변경할 수가 없다.
- // 그리드를 초기화 시켜줌으로써 nodeset을 재설정 할수있도록 해준다.
- misfGridInit(grd_rsdhdinflist);
- grd_rsdhdinflist.rebuild();
-
- // 모드코드 콤보를 설정한다.
- rszfModeGetComboList( grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd")), grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")), "grd_rsdhdinflist.csrfixasetmd");
-
- /* 모드콤보에 설정된 nodeset을 임시저장소에 담아둔다.
- 이유 : 임시저장소에 저장된 nodeset은 모드코드콤보를 선택했을시
- 콤보값에 맞는 노출시간과 멸균온도를 가져오기위한 위치를 나타낼때 사용됨.
- */
- var obj = document.controls(grd_rsdhdinflist.colAttribute(grd_rsdhdinflist.colRef("csrfixasetmd"), "id"));
- model.removenode("/root/temp/nodeset");
- model.makeNode("/root/temp/nodeset");
- model.setValue("/root/temp/nodeset", obj.choices.itemset.attribute("nodeset"));
- //////////////////////////모드코드 콤보설정//////////////////////////////////////////
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:186px; height:14px; ">일일 멸균일지</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_workdd" class="search_name" style="left:15px; top:35; width:86px; height:17px; ">작업일자 :</caption>
- <caption id="cap_dinfkind" class="search_name" style="left:294px; top:9; width:102px; height:17px; ">멸균구분 :</caption>
- <input id="ipt_workdd" ref="/root/send/workdd" class="input_default" inputtype="date" style="left:100px; top:34; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fsearchGrid();
- ]]>
- </script>
- </input>
- <caption id="cap_usernm" class="search_name" visibility="hidden" style="left:297px; top:35px; width:83px; height:17px; ">담 당 자 :</caption>
- <output id="opt_usernm" ref="/root/send/usernm" class="output_fix" visibility="hidden" appearance="output" style="left:380px; top:34; width:130px; height:19px; "/>
- <line id="line30" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:51px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fsearch();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:100px; top:8; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/instcd", cmb_instcd.value);
- fsearch();
- ]]>
- </script>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:90px; height:17px; ">기관코드 :</caption>
- <select1 id="rdo_dinfkind" ref="/root/send/dinfkind" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:380px; top:10px; width:219px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/radio1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fsearch();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="cap_fixasetcdlist" class="tit_2" style="left:5px; top:80px; width:80px; height:13px; ">장비코드</caption>
- <line id="line1" class="line_1" style="x1:205px; y1:94px; x2:1195px; y2:94px; "/>
- <datagrid id="grd_rsdhdinflist" nodeset="/root/main/rsdhdinflist" visibility="visible" autoresize="true" caption="횟수^모드^노출시간^멸균온도^작동시간^Biological ind^Bowie-Dick^정화시간^멸균품내역^작동자ID^작동자ID^종료자ID^종료자ID^Chemical indicator Internal^Chemical indicator External^Incubator 시간^Incubator 확인자ID^Incubator 확인자ID^결과확인시간^결과확인자ID^결과확인자ID^reading^특기사항^담당자ID^담당자ID^비고^비고^기관코드^작업일자^고정자산코드^물품구분^종료시간^사용시간^노출온도" colsep="^" colwidth="36, 129, 55, 55, 55, 83, 73, 55, 192, 80, 70, 80, 70, 60, 60, 100, 160, 169, 130, 120, 120, 120, 100, 100, 120, 311, 100, 100, 100, 130, 250, 100, 300" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:205px; top:100px; width:990px; height:635px; ">
- <col ref="usetims" format="9" _key="true" style="left:20px; top:23px; width:36px; height:23px; text-align:center; "/>
- <col ref="csrfixasetmd" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="expsurtm" type="input" format="hh:nn" style="text-align:right; "/>
- <col ref="dinftmpr" type="input" maxlength="4" style="text-align:right; "/>
- <col ref="funtngtm" type="input" format="hh:nn"/>
- <col ref="biindflag" type="combo" visibility="visible">
- <choices>
- <itemset nodeset="/root/init/biindflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col id="bowdicflag" ref="bowdicflag" type="combo" visibility="visible">
- <choices>
- <itemset nodeset="/root/init/bowdicflag1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="purfctm" type="input" format="hh:nn"/>
- <col ref="dinfitemspec" type="inputbutton" maxlength="96"/>
- <col ref="userid" type="inputbutton" maxlength="10"/>
- <col ref="useridnm"/>
- <col ref="endpsnid" type="inputbutton" maxlength="10"/>
- <col ref="endpsnnm"/>
- <col ref="cheindint" type="input" visibility="hidden" maxlength="24"/>
- <col ref="cheindext" type="input" visibility="hidden" maxlength="24"/>
- <col ref="incubtm" type="input" visibility="hidden" format="hh:nn"/>
- <col ref="incubcnfmr" type="inputbutton" visibility="hidden" maxlength="10"/>
- <col ref="incubcnfmrnm" visibility="hidden"/>
- <col ref="rsltcnfmtm" type="input" visibility="hidden" format="hh:nn"/>
- <col ref="rsltcnfmpsn" type="inputbutton" maxlength="10"/>
- <col ref="rsltcnfmpsnnm"/>
- <col ref="reading" type="input" visibility="hidden" maxlength="24"/>
- <col ref="spclmentfact" type="input" visibility="hidden" maxlength="36"/>
- <col ref="chrgid" type="inputbutton" visibility="hidden" maxlength="10"/>
- <col ref="chrgnm" visibility="hidden"/>
- <col ref="cmt" type="input" maxlength="100"/>
- <col ref="instcd" type="input" visibility="hidden" maxlength="3" _key="true"/>
- <col class="input_default" ref="workdd" type="inputdate" visibility="hidden" maxlength="8" _key="true"/>
- <col ref="fixasetcd" type="input" visibility="hidden" maxlength="20" _key="true"/>
- <col ref="goodflag" type="input" visibility="hidden" maxlength="1" _key="true"/>
- <col disabled="true" ref="usetm" visibility="hidden" format="hh:nn"/>
- <col ref="expsurtmpr" type="input" visibility="hidden" maxlength="4"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- fCheckTime("usetm");
- fCheckTime("funtngtm");
- fCheckTime("expsurtm");
- fCheckTime("purfctm");
- fCheckTime("totm");
- fCheckTime("incubtm");
- fCheckTime("rsltcnfmtm");
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("userid")) {//작동자 ID 버튼을 눌렀을 때
- misfOpenPopUpList("12", grd_rsdhdinflist, "", "userid,useridnm", cmb_instcd.value + "," + getUserInfo("dutplcecd") + "," + getUserInfo("dutplcenm"), "instcd,deptcd,depthngnm");
- }
- else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("endpsnid")) {//종료자ID 버튼을 눌렀을 때
- misfOpenPopUpList("12", grd_rsdhdinflist, "", "endpsnid,endpsnnm", cmb_instcd.value + "," + getUserInfo("dutplcecd") + "," + getUserInfo("dutplcenm"), "instcd,deptcd,depthngnm");
- }
- else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("incubcnfmr")) {//Incubator 확인자ID 버튼을 눌렀을 때
- misfOpenPopUpList("12", grd_rsdhdinflist, "", "incubcnfmr,incubcnfmrnm", cmb_instcd.value + "," + getUserInfo("dutplcecd") + "," + getUserInfo("dutplcenm"), "instcd,deptcd,depthngnm");
- }
- else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("rsltcnfmpsn")) {//결과확인자ID 버튼을 눌렀을 때
- misfOpenPopUpList("12", grd_rsdhdinflist, "", "rsltcnfmpsn,rsltcnfmpsnnm", cmb_instcd.value + "," + getUserInfo("dutplcecd") + "," + getUserInfo("dutplcenm"), "instcd,deptcd,depthngnm");
- }
- else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("chrgid")) {//담당자ID 버튼을 눌렀을 때
- misfOpenPopUpList("12", grd_rsdhdinflist, "", "chrgid,chrgnm", cmb_instcd.value + "," + getUserInfo("dutplcecd") + "," + getUserInfo("dutplcenm"), "instcd,deptcd,depthngnm");
- }
- // else if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("csrfixasetmdnm")){
- // misfOpenPopUpList("42", grd_rsdhdinflist, "", "fixasetcd,csrfixasetmd,csrfixasetmdnm,expsurtm,dinftmpr", grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) + "," + grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")),"instcd,fixasetcd");
- // //rszfOpenPopUpListByWndName(grd_rsdhdinflist,"","csrfixasetmd,expsurtm,dinftmpr","SPRSD00300", "instcd,fixasetcd", sins+ "," + sfix, "Y");
- // }
- else if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("dinfitemspec")){
- misfOpenPopUpList("43", grd_rsdhdinflist, "", "dinfitemspec", grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd")) + "," + grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("dinfkind")),"instcd,dinfkind");
-
- grd_rsdhdinflist.autoResize = true;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("csrfixasetmdnm")){
- // rszfValidationCheck("TRRSS01304", "rscmeqmdlist", "instcd,fixasetcd,csrfixasetmdnm",
- // grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) + "," + grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")) + "," + grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("csrfixasetmdnm")) ,
- // "", "fixasetcd,csrfixasetmd,csrfixasetmdnm,expsurtm,dinftmpr",
- // grd_rsdhdinflist, "SPRSD00300",
- // "instcd,fixasetcd","cmb_instcd," + grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")) ,"Y");
- //
- // var nono = instance1.selectNodes("/root/init/main/rscmeqmdlist");
- //
- // if(nono.length == 1)
- // {
- // grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("csrfixasetmd")) = model.getValue("/root/init/main/rscmeqmdlist/csrfixasetmd");
- // grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("csrfixasetmdnm")) = model.getValue("/root/init/main/rscmeqmdlist/csrfixasetmdnm");
- // grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("expsurtm")) = model.getValue("/root/init/main/rscmeqmdlist/expsurtm");
- // grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinftmpr")) = model.getValue("/root/init/main/rscmeqmdlist/dinftmpr");
- // }
- // }
-
-
- if( grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("csrfixasetmd") )
- {
- //선택되어진 모드코드와 연관되는 노출시간과 멸균온도를 가져오기 위한 흐름.
- var node = model.getValue("/root/temp/nodeset");
- var nodeguide = instance1.selectNodes( node);
-
- for(var s = 1; s <= nodeguide.length; s++)
- {
- if( grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("csrfixasetmd")) == model.getValue(node + "[" +s +"]/csrfixasetmd") )
- {
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("expsurtm")) = model.getValue(node + "[" +s +"]/expsurtm");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinftmpr")) = model.getValue(node + "[" +s +"]/dinftmpr");
-
- grd_rsdhdinflist.refresh();
- return;
- }
- }
- }
-
-
- if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("funtngtm") || grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("totm"))
- {
- var sFuntngtm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("funtngtm"));
- var sTotm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("totm"));
-
- if(sTotm.length > 0 && sFuntngtm.length > 0)
- {
- if(sFuntngtm > sTotm)
- {
- messageBox("종료시간은 작동시간보다 작을 수","I004")
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("totm")) = "";
- return;
- }
- else if(sFuntngtm <= sTotm)
- {
- var hTotm = sTotm.substr(0, 2); // 종료시간의 시간
- var mTotm = sTotm.substr(2,2); // 종료시간의 분
-
- var hFuntngtm = sFuntngtm.substr(0, 2); // 작동시간의 시간
- var mFuntngtm = sFuntngtm.substr(2,2); // 작동시간의 분
-
- // 작동 시간의 분이 종료시간의 분보다 클때
- if(mFuntngtm > mTotm)
- {
- hTotm = hTotm - 1;
- mTotm = parseInt(mTotm) + 60;
-
- sTotm = String(hTotm) + String(mTotm);
- }
-
- sTime = new String(sTotm - sFuntngtm);
-
- if(sTime.length == 3) {
- sTime = "0" + sTime;
- }
-
- else if(sTime.length == 2) {
- sTime = "00" + sTime;
- }
-
- else if(sTime.length == 1) {
- sTime = "000" + sTime;
- }
-
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("usetm")) = sTime;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_delete" class="btn2_letter3" style="left:1142px; top:73px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rsdhdinflist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" style="left:1086px; top:73px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- finsert();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:210px; top:80px; width:70px; height:13px; ">세부내역</caption>
- <datagrid id="grd_reqcollcdeptlist" nodeset="/root/main/reqcollcdeptlist" caption="기관코드^장비코드^장비명^CSR청구부서코드^사용유무^비고" colsep="^" colwidth="3, 71, 147, 70, 58, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:99px; width:200; height:635px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="csrfixasetnm"/>
- <col ref="dinfkind" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="fixasetnm" visibility="hidden"/>
- <col ref="csrfixaset"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(grd_reqcollcdeptlist.row > 0){
-
- fModeCheck();
-
- // 모드콤보 설정.
- fModeComboNodeSetGet();
-
-
- // var column_no = grd_rsdhdinflist.colRef("biindflag");
- // var column_name = grd_rsdhdinflist.colAttribute(column_no, "id");
- // var column_obj = document.controls(column_name);
-
- // var fDinfKind = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("dinfkind"));
- //
- // if(fDinfKind == 1)
- // {
- // grd_rsdhdinflist.bowdicflag.choices.itemset.attribute("nodeset") = "/root/init/bowdicflag1";
- //
- // }
- // else{
- // grd_rsdhdinflist.bowdicflag.choices.itemset.attribute("nodeset") = "/root/init/bowdicflag2";
- //
- // }
-
- // grd_rsdhdinflist.refresh();
- fsearchGrid();
-
- // if(fDinfKind == 1 || fDinfKind == 2)
- // {
- // grd_rsdhdinflist.colHidden(7) = true;
- // }
- // else if(fDinfKind == 3 || fDinfKind == 4)
- // {
- // grd_rsdhdinflist.colHidden(7) = false;
- // }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:94px; x2:200; y2:94px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line19" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <line id="line22" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_rsdhdinflist);
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- if(!checkKeyColumn("grd_rsdhdinflist")) return;
-
- rtn = messageBox("", "Q002");
- if(rtn != "6" ) return false;
-
- misfSave("TXRSE01101");
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btm_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRSE01103");
-
- var fDinfKind = rdo_dinfkind.value;
-
- exeReportPreview("RPRSE01101","XMLSTR");
-
- // if(fDinfKind == 1 || fDinfKind == 2 || fDinfKind == "")
- // {
- // exeReportPreview("RPRSE01101","XMLSTR");
- // }
- // else if(fDinfKind == 3 || fDinfKind == 4)
- // {
- // exeReportPreview("RPRSE01102","XMLSTR");
- // }
-
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|