123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <limcond>
- <limno/>
- <limhistno/>
- </limcond>
- <limheaderinfo>
- <cpgno/>
- <cpghistseq/>
- <limno/>
- <limhistno/>
- <stepsetupflag>U</stepsetupflag>
- <stepno/>
- <alertstndpntnflag/>
- <alerttrgtno/>
- <alerttrgtdetlno/>
- <alerttrgtdetlcnts/>
- <prcpstatcd/>
- <limhh/>
- <limmm/>
- <limtm/>
- <limtmunitflag/>
- <alertcnt/>
- <limtermtm/>
- <alertgrde/>
- </limheaderinfo>
- <limlist>
- </limlist>
- <limdetaillist>
- </limdetaillist>
- </main>
- <temp/>
- <limpoplist>
- <menu>
- <item>
- <name>삭제</name>
- <func>fDelLimTime</func>
- </item>
- </menu>
- </limpoplist>
- </root>
- </instance>
- <submission id="TRMQP03601" mediatype="application/x-www-form-urlencoded" method="post" ref="root/init/cpginfo" resultref="/root/main/limlist"/>
- <submission id="TRMQP03602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/limheaderinfo" resultref="/root/main/limdetaillist"/>
- <submission id="TXMQP03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/limtimelist"/>
- <submission id="TXMQP03602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/limittimelist" resultref="/root/main/limlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- limInit();
- fSelStepLimtInfo();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function limInit() {
- model.setValue("/root/main/limheaderinfo/cpgno", model.getValue("root/init/cpginfo/cpgno"));
- model.setValue("/root/main/limheaderinfo/cpghistseq", model.getValue("root/init/cpginfo/cpghistseq"));
-
- submit("TRMQP03601", true);
- grd_limittmlist.refresh();
- }
-
- function fGetLimDetailList( popFlag ){
- // popFlag : From (기준시점 대상) ~To(Action이 행해져야하는 대상)
- if( isNull(popFlag) ) popFlag = "T";
-
- if( popFlag == "T" && ( model.getValue("/root/main/limheaderinfo/stepsetupflag") == "U" || isNull(model.getValue("/root/main/limheaderinfo/stepno")) ) ){
- //모니터링 정보 없음
- return;
- }
-
- //제한시간리스트 재조회
- var leftPos = window.screenleft - (500+8);
- if( leftPos < 0 ) leftPos = window.screenleft + (745+8);
- var topPos = window.screenTop;
- var coord = getRelativeCoordinate ( leftPos, topPos );
- var mon = coord[0];
- setParameter("SPMQP03600_stepno", model.getValue("/root/main/limheaderinfo/stepno"));
- setParameter("SPMQP03600_stepnm", cmb_limstepno.label);
- setParameter("SPMQP03600_getflag", popFlag);
- modal("SPMQP03100", mon, leftPos, topPos ); //status▦checkyn▦stepno▦settypecd▦setno▦setcdno▦prcpcd▦prcpnm▦
-
- var prcpListCVS = getParameter( "SPMQP03600_prcplist" );
-
- if( isNull(prcpListCVS) ) return;
-
- if( popFlag == "T" ){
- //설정 구분 자동 선택
- if( model.getValue("/root/main/limheaderinfo/stepsetupflag") == "U" ){
- model.setValue("/root/main/limheaderinfo/stepsetupflag", "S");
- rdo_limstepsetupflag.refresh();
- }
-
- model.removeNodeset("/root/main/limdetaillist/limdetailinfo");
-
- var prcpList = prcpListCVS.split("▩");
- var iPrcpList = "";
-
- for( var i=1; i<prcpList.length; i++ ){
- iPrcpList = prcpList[i].split("▦");
-
- model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/m", iPrcpList[0]);
- model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/checkyn", iPrcpList[1]);
- model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/istepno", iPrcpList[2]);
- model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/settypecd", iPrcpList[3]);
- model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/setno", iPrcpList[4]);
- model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/setcdno", iPrcpList[5]);
- model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/prcpcd", iPrcpList[6]);
- model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/prcpnm", iPrcpList[7]);
- }
-
- grd_limittmlistdetl.refresh();
-
- }else if( popFlag == "F" ){
- var prcpList = prcpListCVS.split("▩");
- var iPrcpList = prcpList[1].split("▦");
-
- model.setValue("/root/main/limheaderinfo/alerttrgtno", iPrcpList[2]); //istepno
- model.setValue("/root/main/limheaderinfo/alerttrgtdetlno", iPrcpList[5]); //setcdno
- model.setValue("/root/main/limheaderinfo/alerttrgtdetlcnts", iPrcpList[8] + "(" + iPrcpList[7] + ")");
- ipt_alerttrgtdetl.refresh();
- }
-
- clearParameter("SPMQP03600_stepno");
- clearParameter("SPMQP03600_stepnm");
- clearParameter("SPMQP03600_getflag");
- clearParameter("SPMQP03600_prcplist");
- }
-
- /* case에 따라 각 컨트롤의 속성 설정 변경 */
- function fSetupControls( setupFlag ){
- if( isNull(setupFlag) ) var allSetupYN = "Y";
- else var allSetupYN = "N";
-
- if( allSetupYN == "Y" || setupFlag == "alertstndpntnflag" ){
- var alertstndpntnflag = model.getValue("/root/main/limheaderinfo/alertstndpntnflag");
- if( alertstndpntnflag == "3" ){
- btn_alerttrgtdetl.disabled = false;
- ipt_alerttrgtdetl.disabled = false;
- }else{
- btn_alerttrgtdetl.disabled = true;
- ipt_alerttrgtdetl.disabled = true;
- model.setValue("/root/main/limheaderinfo/alerttrgtdetlcnts", "");
- ipt_alerttrgtdetl.refresh();
- }
- }
-
- if( allSetupYN == "Y" || setupFlag == "stepsetupflag" ){
- var stepsetupflag = model.getValue("/root/main/limheaderinfo/stepsetupflag");
- if (stepsetupflag == "S") {
- cmb_limstepno.disabled = false;
- } else {
- cmb_limstepno.disabled = true;
- }
- }
-
- if( allSetupYN == "Y" || setupFlag == "limtmunitflag" ){
- var limtmunitflag = model.getValue("/root/main/limheaderinfo/limtmunitflag");
- if( limtmunitflag == "H" ){
- ipt_limtmunithh.disabled = false;
- ipt_limtmunitmm.disabled = true;
- model.setFocus("ipt_limtmunithh");
- }else{
- ipt_limtmunithh.disabled = true;
- ipt_limtmunitmm.disabled = false;
- model.setFocus("ipt_limtmunitmm");
- }
- }
-
- if( allSetupYN == "Y" || setupFlag == "limtm" ){
- var limhh = model.getValue("/root/main/limheaderinfo/limhh");
- var limmm = model.getValue("/root/main/limheaderinfo/limmm");
- if(limhh == "0"){
- ipt_limtmunithh.disabled = true;
- ipt_limtmunitmm.disabled = false;
- //model.setValue("/root/main/limheaderinfo/limhh", "");
- }
- if(limmm == "0" ){
- ipt_limtmunithh.disabled = false;
- ipt_limtmunitmm.disabled = true;
- //model.setValue("/root/main/limheaderinfo/limmm", "");
- }
- }
- }
-
- //필수값 체크
- function fLimChkEssVal(){
- if ( ! isRequiredControls("rdo_limstepsetupflag", "rdo_limalertstndpntnflag", "rdo_limtm", "rdo_limtimes", "rdo_limalertgrde") ){
- return false;
- }
-
- if( model.getValue("/root/main/limheaderinfo/stepsetupflag") == "S" ){
- if( isNull(model.getValue("/root/main/limheaderinfo/stepno")) ){
- messageBox ( "스텝을", "C002" );
- return false;
- }
- }
-
- if( model.getValue("/root/main/limheaderinfo/alertstndpntnflag") == "3" ){
- if( isNull(model.getValue("/root/main/limheaderinfo/alerttrgtdetlno")) ){
- messageBox ( "기준시점(특정처방)을", "C002" );
- return false;
- }
- }
-
- if( model.getValue("/root/main/limheaderinfo/limtmunitflag") == "M" ){
- if( isNull(model.getValue("/root/main/limheaderinfo/limmm")) ){
- messageBox ( "설정 시간(분)을", "C001" );
- model.setFocus("ipt_limtmunitmm");
- return false;
- }
- }else{
- if( isNull(model.getValue("/root/main/limheaderinfo/limhh")) ){
- messageBox ( "설정 시간을", "C001" );
- model.setFocus("ipt_limtmunithh");
- return false;
- }
- }
- }
-
- function fSaveLimTime() {
- var selRow = grd_limittmlist.row;
- var iRow = 0;
- if( grd_limittmlist.isSelected(selRow) ){
- iRow = selRow;
- }
-
- if( fLimChkEssVal() == false ) return false;
-
- model.removeNodeset("/root/send/savedata/limittimelist/limdetailinfo");
- model.removeNodeset("/root/send/savedata/limittimelist/limittimehlist");
-
- model.copyNode("/root/send/savedata/limittimelist", "/root/main/limdetaillist");
- model.makeNode("/root/send/savedata/limittimelist/limittimehlist");
- model.copyNode("/root/send/savedata/limittimelist/limittimehlist", "/root/main/limheaderinfo");
-
- if( !submit("TXMQP03602", true) ) return false;
-
- model.refresh();
-
- if( iRow <= 0 ){
- iRow = grd_limittmlist.rows - 1;
- }
- grd_limittmlist.select(iRow, 1) = true;
- grd_limittmlist.row = grd_limittmlist.selectedRow(0);
- }
-
- function fDelLimTime() {
- var tmpstr = "limno▦limhistno▩";
- var rows = grd_limittmlist.rows;
- for (var row = 1; row < rows; row++ ) {
- if(grd_limittmlist.isSelected(row)) {
- var limno = model.getValue("/root/main/limlist/liminfo[" + row + "]/limno");
- var limhistno = model.getValue("/root/main/limlist/liminfo[" + row + "]/limhistno");
- tmpstr += limno + "▦" + limhistno+ "▩";
- }
- }
- model.makeValue("/root/send/savedata/limtimelist" , tmpstr);
- if( !submit("TXMQP03601", false) ) return false;
- opener.window.javascript.fInitAttList();
- limInit() ;
- }
-
- /**
- * @group :
- * @ver : 2009.02
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : CPG일 경우만 수행되는 부분으로, 특정 스텝에 해당되는 특정 슬립 정보 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSelStepLimtInfo(){
- var stepNo = opener.window.javascript.getParameter("stepattadmin");
- var no = 0;
- if( !isNull(stepNo) ){
- var Nodes = instance1.selectNodes("/root/main/limlist/liminfo");
- for( var i=0; i<Nodes.length; i++ ){
- var node = Nodes.item(i);
- var limtStepNode = node.selectSingleNode("stepno");
- if( limtStepNode != null && limtStepNode.text == stepNo ){
- no = i + 1;
- grd_limittmlist.select(no, 1) = true;
- grd_limittmlist.row = grd_limittmlist.selectedRow(0);
- fSelLimtInfo();
- return;
- }
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2009.01.18
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 제한시간 속성 상세 정보 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSelLimtInfo(){
- var iRow = grd_limittmlist.row;
-
- if ( iRow >= grd_limittmlist.fixedRows && iRow <grd_limittmlist.rows ) {
- var limno = model.getValue("/root/main/limlist/liminfo[" + iRow + "]/limno");
- var limhistno = model.getValue("/root/main/limlist/liminfo[" + iRow + "]/limhistno");
-
- //copyNodeListType("/root/main/limheaderinfo", "/root/main/limlist/liminfo[" + iRow + "]", "replace", model, model);
- model.copyNode("/root/main/limheaderinfo", "/root/main/limlist/liminfo[" + iRow + "]");
-
- if( submit("TRMQP03602", true) ){
- model.refresh();
- fSetupControls();
- }
- }
- }
-
- function fAddLimTmList() {
- copyNodeListType("/root/main/limdetaillist", "/root/temp/limdetailinfo", "after");
- model.setValue("/root/main/limheaderinfo/cpgno" , opener.model.getValue("/root/main/cond/cpgno"));
- model.setValue("/root/main/limheaderinfo/cpghistseq", opener.model.getValue("/root/main/cond/cpghistseq"));
- model.setValue("/root/main/limheaderinfo/limno", "");
- model.setValue("/root/main/limheaderinfo/limhistno", "");
-
- //설정된 스텝번호를 파라메터로 셋팅해서 outline의 아이콘 불이 들어오도록 (2009.04.14)
- setParameter("SPMQP00300_before_stepno", "0");
- setParameter("SPMQP00300_after_stepno", model.getValue("/root/main/limheaderinfo/stepno"));
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <line id="line8" class="line_1" style="x1:0px; y1:215px; x2:345px; y2:215px; "/>
- <select1 id="rdo_limalertgrde" ref="/root/main/limheaderinfo/alertgrde" appearance="full" cellspacing="10" cols="1" rows="3" vcellspacing="3" overflow="visible" style="left:435px; top:398px; width:285px; height:58px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/M0507/M0507">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line9" class="line_1" style="x1:348px; y1:215px; x2:724px; y2:215px; "/>
- <line id="line12" class="line_2" style="x1:349px; y1:395px; x2:720px; y2:395px; "/>
- <caption id="cap_limstepsetupflag" class="cell_1" style="left:348px; top:220px; width:85px; height:40px; ">설정</caption>
- <select1 id="rdo_limtimes" ref="/root/main/limheaderinfo/alertcnt" navindex="10" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:435px; top:373px; width:145px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>1회</label>
- <value>1</value>
- </item>
- <item>
- <label>2회</label>
- <value>2</value>
- </item>
- <item>
- <label>3회</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <line id="line14" class="line_2" style="x1:349px; y1:343px; x2:720px; y2:343px; "/>
- <select1 id="cmb_limstepno" ref="/root/main/limheaderinfo/stepno" disabled="true" navindex="1" appearance="minimal" style="left:514px; top:220px; width:210px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/stepinfo/info">
- <label ref="stepnm"/>
- <value ref="stepno"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetLimDetailList("T");
- var keyNo = model.getValue("/root/main/limheaderinfo/limno");
- if( !isNull(keyNo) ){
- setParameter("SPMQP00300_before_stepno", model.getValue("/root/main/limlist/liminfo[" + grd_limittmlist.row + "]/stepno"));
- }else{
- setParameter("SPMQP00300_before_stepno", "0");
- }
- setParameter("SPMQP00300_after_stepno", cmb_limstepno.value);
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="tit_2" style="left:0px; top:4px; width:165px; height:13px; ">제한시간 리스트</caption>
- <datagrid id="grd_limittmlist" nodeset="/root/main/limlist/liminfo" caption="스텝명^기준시점(코드)^기준시점^알람방법^설정" colsep="^" colwidth="139, 0, 382, 145, 39" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:725px; height:172px; ">
- <col ref="stepnm"/>
- <col disabled="true" ref="alertstndpntnflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/M0511/M0511">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="title"/>
- <col disabled="true" ref="alertgrde" type="combo">
- <choices>
- <itemset nodeset="/root/init/M0507/M0507">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="stepsetupflag" type="combo">
- <choices>
- <item>
- <label>STEP 선택</label>
- <value>S</value>
- </item>
- <item>
- <label>해제</label>
- <value>U</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSelLimtInfo();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_limittmlist", false, "/root/limpoplist/menu/item", "name", "func");
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_limittmlistdetl" nodeset="/root/main/limdetaillist/limdetailinfo" autoresize="true" caption="선택^처방명^caption1^caption2^caption3^caption4" colsep="^" colwidth="34, 293, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:220px; width:345px; height:237px; ">
- <col checkvalue="Y,N" ref="checkyn" type="checkbox"/>
- <col ref="prcpnm"/>
- <col ref="prcpcd"/>
- <col ref="setcdno"/>
- <col ref="settypecd"/>
- <col ref="setno"/>
- </datagrid>
- <caption id="cap_limtm" class="cell_1" style="left:348px; top:345px; width:85px; height:23px; ">설정완료</caption>
- <select1 id="rdo_limalertstndpntnflag" ref="/root/main/limheaderinfo/alertstndpntnflag" navindex="11" appearance="full" cellspacing="10" cols="1" rows="3" vcellspacing="3" overflow="visible" style="left:435px; top:265px; width:290px; height:58px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/M0511/M0511">
- <label ref="cdnm"/>
- <value ref="cdid">ㄷ</value>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControls("alertstndpntnflag");
- ]]>
- </script>
- </select1>
- <caption id="cap_limtimes" class="cell_1" style="left:349px; top:371px; width:85px; height:23px; ">알람횟수</caption>
- <line id="line4" class="line_2" style="x1:349px; y1:456px; x2:720px; y2:456px; "/>
- <select1 id="rdo_limtm" ref="/root/main/limheaderinfo/limtmunitflag" navindex="12" appearance="full" cellspacing="120" cols="2" overflow="visible" style="left:435px; top:347px; width:280px; height:19px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/M0512/M0512">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControls("limtmunitflag");
- ]]>
- </script>
- </select1>
- <caption id="caption28" class="tit_2" style="left:350px; top:200px; width:142px; height:13px; ">모니터링 상세내역</caption>
- <caption id="cap_limalertgrde" class="cell_1" style="left:349px; top:397px; width:85px; height:58px; ">알람방법</caption>
- <caption id="caption29" class="tit_2" style="left:0px; top:200px; width:165px; height:13px; ">제한시간 리스트</caption>
- <caption id="cap_limalertstndpntnflag" class="cell_1" style="left:348px; top:263px; width:85px; height:79px; ">기준시점</caption>
- <line id="line6" class="line_2" style="x1:349px; y1:369px; x2:720px; y2:369px; "/>
- <line id="line7" class="line_2" style="x1:348px; y1:261px; x2:720px; y2:261px; "/>
- <button id="btn_alerttrgtdetl" class="icon_search" style="left:558px; top:306px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetLimDetailList("F");
- ]]>
- </script>
- </button>
- <input id="ipt_alerttrgtdetl" ref="/root/main/limheaderinfo/alerttrgtdetlcnts" disabled="true" navindex="8" style="left:580px; top:303px; width:145px; height:19px; "/>
- <select1 id="rdo_limstepsetupflag" ref="/root/main/limheaderinfo/stepsetupflag" navindex="9" appearance="full" cellspacing="10" cols="1" rows="3" vcellspacing="3" overflow="visible" style="left:435px; top:220px; width:80px; height:40px; border-style:none; ">
- <choices>
- <item>
- <label>STEP 선택</label>
- <value>S</value>
- </item>
- <item>
- <label>해제</label>
- <value>U</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetupControls("stepsetupflag");
- ]]>
- </script>
- </select1>
- <input id="ipt_limtmunithh" ref="/root/main/limheaderinfo/limhh" style="left:643px; top:347px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/limheaderinfo/limtm", model.getValue("/root/main/limheaderinfo/limhh"));
- ]]>
- </script>
- </input>
- <input id="ipt_limtmunitmm" ref="/root/main/limheaderinfo/limmm" style="left:478px; top:347px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/limheaderinfo/limtm", model.getValue("/root/main/limheaderinfo/limmm"));
- ]]>
- </script>
- </input>
- <button id="btn_addlimattr" class="btn2_letter2" style="left:682px; top:196px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow = grd_limittmlist.row;
- if(iRow > 0){
- grd_limittmlist.isselected(iRow) = false;
- grd_limittmlist.row = -1;
- }
-
- model.resetInstanceNode("/root/main/limheaderinfo");
- model.removeNodeset("/root/main/limdetaillist/limdetailinfo");
-
- model.setValue("/root/main/limheaderinfo/cpgno", model.getValue("root/init/cpginfo/cpgno"));
- model.setValue("/root/main/limheaderinfo/cpghistseq", model.getValue("root/init/cpginfo/cpghistseq"));
- model.setValue("/root/main/limheaderinfo/stepsetupflag", "U");
-
- model.refresh();
- fSetupControls();
- ]]>
- </script>
- </button>
- <button id="btn_addlimdetaillist" class="btn2_letter2" style="left:302px; top:196px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetLimDetailList("T");
- ]]>
- </script>
- </button>
- <caption id="cap_limtermtm" class="cell_1" style="left:580px; top:371px; width:85px; height:23px; ">알람간격</caption>
- <input id="ipt_limtermtm" ref="/root/main/limheaderinfo/limtermtm" format="###" style="left:667px; top:373px; width:35px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //model.setValue("/root/main/limheaderinfo/limtm", model.getValue("/root/main/limheaderinfo/limhh"));
-
- var totalM = "";
- var inputTerm = model.getValue("/root/main/limheaderinfo/limtermtm");
-
- if( isNull(inputTerm) ) return;
-
- if( isNull(model.getValue("/root/main/limheaderinfo/limtmunitflag")) ) {
- messageBox ( "알람 설정 단위(시간/분)를 먼저", "C001" );
- return;
-
- }else if( model.getValue("/root/main/limheaderinfo/limtmunitflag") == "M" ){
- var mm = model.getValue("/root/main/limheaderinfo/limmm");
- if( isNull(mm) ){
- messageBox ( "설정 시간(분)을 먼저", "C001" );
- return;
- }
- totalM = parseInt(mm);
-
- }else{
- var hh = model.getValue("/root/main/limheaderinfo/limhh");
- if( isNull( hh) ){
- messageBox ( "설정 시간을 먼저", "C001" );
- return;
- }
- totalM = parseInt( hh) * 60;
- }
-
- if( parseInt(inputTerm) >= totalM ){
- messageBox ( "알람 설정 시간(분)을", "E003" );
- model.setValue("/root/main/limheaderinfo/limtermtm", "");
- ipt_limtermtm.refresh();
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:703px; top:374px; width:15px; height:20px; ">분</caption>
- </xhtml:body>
- </xhtml:html>
|