123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519 |
- <?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>I/O 기준시간변경</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <timeinfo>
- <dfromtm/>
- <dtotm/>
- <efromtm/>
- <etotm/>
- <nfromtm/>
- <ntotm/>
- <lastupdtdt/>
- <lastupdtrid/>
- <valifromdd/>
- <valitodd/>
- <endyn/>
- <seqno/>
- <cncldt/>
- <srchflag/>
- <srchcd/>
- </timeinfo>
- </main>
- <send>
- </send>
- <temp>
- <mypatsettinginfo>
- <wardcdgrup>
- <wardcdgruplist>
- <wardcd/>
- <wardnm/>
- </wardcdgruplist>
- </wardcdgrup>
- </mypatsettinginfo>
- <srchflaginfo_pid>
- <itemlist>
- <label>공통</label>
- <value>C</value>
- </itemlist>
- <itemlist>
- <label>부서</label>
- <value>D</value>
- </itemlist>
- <itemlist>
- <label>환자</label>
- <value>P</value>
- </itemlist>
- </srchflaginfo_pid>
- <srchflaginfo_master>
- <itemlist>
- <label>공통</label>
- <value>C</value>
- </itemlist>
- <itemlist>
- <label>부서</label>
- <value>D</value>
- </itemlist>
- </srchflaginfo_master>
- </temp>
- <cond>
- <srchflag>C</srchflag>
- <pid/>
- <srchcd/>
- <roomcd/>
- <hngnm/>
- <age/>
- <workdd/>
- <paramflag/>
- <wardcd/>
- </cond>
- <hidden>
- <timeinfo/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNR01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/mypatsettinginfo/wardcdgrup"/>
- <submission id="TRMNR08501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden"/>
- <submission id="TXMNR08501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden"/>
- <script type="javascript">
- <![CDATA[
- var menuParam = "";
-
- function fInitialize(){
- fGetCareComWardList();
-
- var param_workdd = opener.javascript.getParameter("SMMNR05800_Param");
-
- if ( !isNull(param_workdd) ){//IO조회
- model.setValue("/root/cond/roomcd", getPatientInfoDetail("roomcd"));
- model.setValue("/root/cond/wardcd", getPatientInfoDetail("wardcd"));
- model.setValue("/root/cond/pid", getPatientId());
- model.setValue("/root/cond/hngnm", getPatientName());
- model.setValue("/root/cond/age", getPatientInfo("age"));
-
- model.setValue("/root/cond/paramflag", "Y");//환자만 저장삭제가능
- model.setValue("/root/cond/srchflag", "P");
- model.setValue("/root/cond/srchcd", getPatientId());
- model.setValue("/root/cond/workdd", param_workdd );
- model.setValue("/root/main/timeinfo/valifromdd", param_workdd);
- model.setValue("/root/main/timeinfo/valitodd", "99991231");
-
- rdo_srchflag.choices.itemset.attribute("nodeset") = "/root/temp/srchflaginfo_pid/itemlist" ;
-
- }else{
- menuParam = getScreenMenuParameter();
-
- if ( menuParam != "D" ){//superusers용
- //병동코드 조회
- fGetCareComWardList();
- model.setValue("/root/cond/paramflag", "N");//공통, 부서가 저장삭제가능
- model.setValue("/root/cond/srchflag", "C");
- model.setValue("/root/cond/srchcd", "COMM");
- model.setValue("/root/cond/wardcd", getUserInfo("dutplcecd"));
- model.setValue("/root/cond/workdd", getCurrentDate());
- model.setValue("/root/main/timeinfo/valifromdd", getCurrentDate());
- model.setValue("/root/main/timeinfo/valitodd", "99991231");
- }else{//간호부서장용
- //병동코드 조회
- fGetCareComWardList();
- model.setValue("/root/cond/paramflag", "D");//간호부서장용으로 들어오면 공통이 저장삭제되면 안됨.
- model.setValue("/root/cond/srchflag", "D");
- model.setValue("/root/cond/srchcd", getUserInfo("dutplcecd"));
- model.setValue("/root/cond/wardcd", getUserInfo("dutplcecd"));
- model.setValue("/root/cond/workdd", getCurrentDate());
- model.setValue("/root/main/timeinfo/valifromdd", getCurrentDate());
- model.setValue("/root/main/timeinfo/valitodd", "99991231");
-
- }
- }
- fSrchTimeInfo();
-
- }
-
- function fSrchTimeInfo(){
- model.makeNode("/root/send/reqdata");
- model.resetInstanceNode("/root/main/timeinfo");
- model.copyNode("/root/send/reqdata","/root/cond");
- if (submit("TRMNR08501") ){
- if ( getNodesetCnt(model, "/root/hidden/timeinfo") > 0 ){
- model.copyNode("/root/main/timeinfo","/root/hidden/timeinfo");
- model.setValue("/root/cond/srchflag", model.getValue("/root/main/timeinfo/srchflag"));
- model.setValue("/root/cond/srchcd", model.getValue("/root/main/timeinfo/srchcd"));
- }else{
- model.setValue("/root/main/timeinfo/valifromdd", model.getValue("/root/cond/workdd"));
- model.setValue("/root/main/timeinfo/valitodd", "99991231");
-
- }
- }
- if ( model.getValue("/root/main/timeinfo/endyn") == "true" ){//종료
- ipt_valitodd.disabled = "true";
- }else{
- ipt_valitodd.disabled = "false";
- }
- fChngSrchFlag(model.getValue("/root/cond/srchflag"));
- model.refresh();
- }
- function fSetTimeInfo(pFlag){
- if ((model.getValue("/root/main/timeinfo/dfromtm")).length < 4){
- messageBox("Day 시작시간을 입력","I008");
- return;
- }
- if ((model.getValue("/root/main/timeinfo/dtotm")).length < 4){
- messageBox("Day 종료시간을 입력","I008");
- return;
- }
- if ((model.getValue("/root/main/timeinfo/etotm")).length < 4){
- messageBox("Evening 종료시간을 입력","I008");
- return;
- }
- if ((model.getValue("/root/main/timeinfo/valifromdd")).length < 4){
- messageBox("적용시작일을 입력","I008");
- return;
- }
-
- model.removenode("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata","/root/main/timeinfo");
- model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/cond/srchflag"));
- model.makeValue("/root/send/reqdata/srchcd", model.getValue("/root/cond/srchcd"));
- model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/cond/wardcd"));
- model.makeValue("/root/send/reqdata/workdd", model.getValue("/root/cond/workdd"));
-
- if ( model.getValue("/root/main/timeinfo/endyn") == "true" ){//종료
- model.setValue("/root/send/reqdata/valitodd", model.getValue("/root/main/timeinfo/valitodd"));
- model.setValue("/root/send/reqdata/cncldt","");
- } else if ( pFlag == "D" ){//삭제인경우
- model.setValue("/root/send/reqdata/cncldt", getCurrentDate()+getCurrentTime());
- }else {
- model.setValue("/root/send/reqdata/cncldt","");
- if( model.getValue("/root/main/timeinfo/valifromdd") <= model.getValue("/root/main/timeinfo/valifromdd_back") ){
- model.makeValue("/root/send/reqdata/updtyn", "Y");
- }
- }
-
- if ( submit("TXMNR08501") ){
- model.resetInstanceNode("/root/main/timeinfo");
- if ( getNodesetCnt(model, "/root/hidden/timeinfo") > 0 ){
- model.copyNode("/root/main/timeinfo","/root/hidden/timeinfo");
- model.setValue("/root/cond/srchflag", model.getValue("/root/main/timeinfo/srchflag"));
- model.setValue("/root/cond/srchcd", model.getValue("/root/main/timeinfo/srchcd"));
-
- }
- }
- if ( model.getValue("/root/main/timeinfo/endyn") == "true" ){//종료
- ipt_valitodd.disabled = "true";
- }else{
- ipt_valitodd.disabled = "false";
- }
- fChngSrchFlag(model.getValue("/root/cond/srchflag"));
- model.refresh();
-
- }
-
- function fChngSrchFlag(pFlag){
- if ( pFlag == "C"){
- cmb_ward.disabled = "true";
- ipt_condpid.visible = false;
- grp_pid.visible = false;
- if ( model.getValue("/root/cond/paramflag") == "Y" || model.getValue("/root/cond/paramflag") == "D"){
- //D간호부서장용으로 들어오면 공통이 저장삭제되면 안됨.
- //Y IO조회화면에서 들어오면 환자만 수정가능
- btn_save.disabled = true;
- btn_del.disabled = true;
- } else {
- btn_save.disabled = false;
- btn_del.disabled = false;
-
- }
- }else if ( pFlag == "D"){
- cmb_ward.disabled = "false";
- ipt_condpid.visible = false;
- grp_pid.visible = false;
- if ( model.getValue("/root/cond/paramflag") == "Y"){
- btn_save.disabled = true;
- btn_del.disabled = true;
- } else {
- btn_save.disabled = false;
- btn_del.disabled = false;
-
- }
- }else if ( pFlag == "P"){
- btn_save.disabled = false;
- btn_del.disabled = false;
- cmb_ward.disabled = "true";
- ipt_condpid.visible =true;
- grp_pid.visible = true;
-
- }
- var flagNm = model.getValue("/root/temp/srchflaginfo_pid/itemlist[value = '"+ pFlag +"']/label");
- var flagNmSub = (pFlag == "P" ? "별" : "");
- var workdd = model.getValue("/root/cond/workdd").toDate("YYYYMMDD").getDateFormat("YYYY/MM/DD");
- if ( !isNull(model.getValue("/root/main/timeinfo/seqno")) ){
- opt_message.value = workdd + "일 현재 " + flagNm+flagNmSub +"\n I/O 기준시간으로 적용받고 있습니다.";
- }
-
- }
-
- ]]>
- </script>
- <bind id="bind_input1" ref="/root/main/timeinfo/valitodd" readonly=""99991231""/>
- </model>
- <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="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../emr/carerecweb/js/CareRec.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="321" pageheight="310" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_deptcd" style="left:0px; top:25px; width:305px; height:25px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:305px; height:25px; "/>
- <caption id="caption13" class="search_name" style="left:2px; top:3px; width:60px; height:17px; ">구분 :</caption>
- <select1 id="rdo_srchflag" ref="/root/cond/srchflag" appearance="full" cols="3" overflow="visible" style="left:60px; top:5px; width:135px; height:15px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/temp/srchflaginfo_master/itemlist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/cond/srchflag") == "C"){
- model.setValue("/root/cond/srchcd", "COMM");
- }else if ( model.getValue("/root/cond/srchflag") == "D"){
- model.setValue("/root/cond/srchcd", model.getValue("/root/cond/wardcd"));
- }else if ( model.getValue("/root/cond/srchflag") == "P"){
- model.setValue("/root/cond/srchcd", model.getValue("/root/cond/pid"));
- }
- model.resetInstanceNode("/root/main/timeinfo");
- model.setValue("/root/main/timeinfo/valifromdd", model.getValue("/root/cond/workdd"));
- model.setValue("/root/main/timeinfo/valitodd", "99991231");
-
- fChngSrchFlag(model.getValue("/root/cond/srchflag"));
- model.refresh();
- // fSrchTimeInfo();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_ward" ref="/root/cond/srchcd" class="combo_search" appearance="minimal" style="left:195px; top:3px; width:106px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/mypatsettinginfo/wardcdgrup/wardcdgruplist">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_condpid" ref="/root/cond/srchcd" visibility="hidden" style="left:195px; top:3px; width:105px; height:19px; "/>
- </group>
- <group id="grp_pid" style="left:0px; top:51px; width:305px; height:21px; ">
- <output id="opt_pid" ref="/root/cond/pid" style="left:85px; top:1px; width:89px; height:19px; font-weight:bold; text-align:center; border-color:#99ccff; border-left-style:solid; border-right-style:solid; "/>
- <caption id="cap_roomcd" ref="/root/cond/roomcd" class="cell_1" style="left:0px; top:0px; width:84px; height:20px; font-weight:bold; text-align:center; border-color:#99ccff; border-left-style:solid; "/>
- <caption id="cap_hngnm" ref="/root/cond/hngnm" class="cell_1" style="left:175px; top:0px; width:65px; height:20px; font-weight:bold; text-align:center; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:0px; x2:300px; y2:0px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:20px; x2:300px; y2:20px; "/>
- <output id="opt_age" ref="/root/cond/age" style="left:241px; top:1px; width:60px; height:19px; font-weight:bold; text-align:center; border-color:#99ccff; border-left-style:solid; border-right-style:solid; "/>
- </group>
- <caption id="caption4" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">I/O 기준시간변경</caption>
- <line id="line1" class="line_1" style="x1:24px; y1:95px; x2:274px; y2:95px; "/>
- <caption id="caption3" style="left:34px; top:79px; width:135px; height:15px; ">적용기준시간</caption>
- <caption id="caption5" class="cell_1" style="left:24px; top:100px; width:81px; height:20px; ">Day</caption>
- <line id="line4" class="line_3" style="x1:24px; y1:121px; x2:274px; y2:121px; "/>
- <caption id="caption6" class="cell_1" style="left:24px; top:123px; width:81px; height:20px; ">Evening</caption>
- <line id="line5" class="line_3" style="x1:24px; y1:144px; x2:274px; y2:144px; "/>
- <caption id="caption7" class="cell_1" style="left:24px; top:146px; width:81px; height:20px; ">Night</caption>
- <line id="line6" class="line_3" style="x1:24px; y1:190px; x2:274px; y2:190px; "/>
- <caption id="caption8" style="left:184px; top:104px; width:17px; height:15px; text-align:center; ">~</caption>
- <caption id="caption9" style="left:184px; top:127px; width:17px; height:15px; text-align:center; ">~</caption>
- <input id="opt_dfromtm" ref="/root/main/timeinfo/dfromtm" autonext="true" format="hh:nn" appearance="input" style="left:107px; top:101px; width:74px; height:19px; ">
- <!--script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var sDate =getCurrentDate()+model.getValue("/root/main/timeinfo/dfromtm");
- if ( (model.getValue("/root/main/timeinfo/dfromtm")).length >= 4 ){
- model.setValue("/root/main/timeinfo/dtotm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(7,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10) +"59");
- model.setValue("/root/main/timeinfo/efromtm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(8,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,12) );
- model.setValue("/root/main/timeinfo/etotm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(15,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10)+"59" );
- model.setValue("/root/main/timeinfo/nfromtm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(16,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,12) );
- model.setValue("/root/main/timeinfo/ntotm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(23,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10)+"59" );
- model.refresh();
- }
- ]]>
- </script-->
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sDate =getCurrentDate()+model.getValue("/root/main/timeinfo/dfromtm");
- if ( (model.getValue("/root/main/timeinfo/dfromtm")).length >= 4 ){
- /* 2010-02-28 JA
- model.setValue("/root/main/timeinfo/dtotm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(7,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10) +"59");
- model.setValue("/root/main/timeinfo/efromtm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(8,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,12) );
- model.setValue("/root/main/timeinfo/etotm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(15,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10)+"59" );
- model.setValue("/root/main/timeinfo/nfromtm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(16,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,12) );
- model.setValue("/root/main/timeinfo/ntotm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(23,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10)+"59" );
- */
-
- // 분단위 조정안되는 오류수정_2010-02-28 JA
- var efromtm = (sDate.toDate("YYYYMMDDhhmmss").getAddDate(8,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,12);
- var nfromtm = (sDate.toDate("YYYYMMDDhhmmss").getAddDate(16,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,12);
- model.makeValue("/root/main/timeinfo/dtotm", ((getCurrentDate()+efromtm).toDate("YYYYMMDDhhmmss").getAddDate(-1,"m").getDateFormat("YYYYMMDDhhmmss")).substring(8,12));
- model.makeValue("/root/main/timeinfo/efromtm", efromtm);
- model.makeValue("/root/main/timeinfo/etotm", ((getCurrentDate()+nfromtm).toDate("YYYYMMDDhhmmss").getAddDate(-1,"m").getDateFormat("YYYYMMDDhhmmss")).substring(8,12));
- model.makeValue("/root/main/timeinfo/nfromtm", nfromtm);
- model.makeValue("/root/main/timeinfo/ntotm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(-1,"m").getDateFormat("YYYYMMDDhhmmss")).substring(8,12));
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="output2" ref="/root/main/timeinfo/dtotm" autonext="true" format="hh:nn" appearance="input" style="left:202px; top:101px; width:72px; height:19px; ">
- <!--script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var sDate =getCurrentDate()+model.getValue("/root/main/timeinfo/dtotm");
- if ( (model.getValue("/root/main/timeinfo/dtotm")).length >= 4 ){
- model.setValue("/root/main/timeinfo/efromtm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(1,"m").getDateFormat("YYYYMMDDhhmmss")).substring(8,12) );
- model.setValue("/root/main/timeinfo/etotm", ( (getCurrentDate()+model.getValue("/root/main/timeinfo/efromtm")).toDate("YYYYMMDDhhmmss").getAddDate(7,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10)+"59" );
- model.setValue("/root/main/timeinfo/nfromtm", ( (getCurrentDate()+model.getValue("/root/main/timeinfo/etotm")).toDate("YYYYMMDDhhmmss").getAddDate(1,"m").getDateFormat("YYYYMMDDhhmmss")).substring(8,12) );
- model.setValue("/root/main/timeinfo/ntotm", ( (getCurrentDate()+model.getValue("/root/main/timeinfo/dfromtm")).toDate("YYYYMMDDhhmmss").getAddDate(23,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10)+"59" );
- model.refresh();
- }
- ]]>
- </script-->
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sDate =getCurrentDate()+model.getValue("/root/main/timeinfo/dtotm");
- if ( (model.getValue("/root/main/timeinfo/dtotm")).length >= 4 ){
- model.setValue("/root/main/timeinfo/efromtm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(1,"m").getDateFormat("YYYYMMDDhhmmss")).substring(8,12) );
- model.setValue("/root/main/timeinfo/etotm", ( (getCurrentDate()+model.getValue("/root/main/timeinfo/efromtm")).toDate("YYYYMMDDhhmmss").getAddDate(7,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10)+"59" );
- model.setValue("/root/main/timeinfo/nfromtm", ( (getCurrentDate()+model.getValue("/root/main/timeinfo/etotm")).toDate("YYYYMMDDhhmmss").getAddDate(1,"m").getDateFormat("YYYYMMDDhhmmss")).substring(8,12) );
- model.setValue("/root/main/timeinfo/ntotm", ( (getCurrentDate()+model.getValue("/root/main/timeinfo/dfromtm")).toDate("YYYYMMDDhhmmss").getAddDate(23,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10)+"59" );
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="output3" ref="/root/main/timeinfo/efromtm" disabled="true" autonext="true" format="hh:nn" appearance="input" style="left:107px; top:124px; width:74px; height:19px; "/>
- <input id="output4" ref="/root/main/timeinfo/etotm" autonext="true" format="hh:nn" appearance="input" style="left:202px; top:124px; width:72px; height:19px; ">
- <!--script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var sDate =getCurrentDate()+model.getValue("/root/main/timeinfo/etotm");
- if ( (model.getValue("/root/main/timeinfo/dtotm")).length >= 4 ){
- model.setValue("/root/main/timeinfo/nfromtm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(1,"m").getDateFormat("YYYYMMDDhhmmss")).substring(8,12) );
- model.setValue("/root/main/timeinfo/ntotm", ( (getCurrentDate()+model.getValue("/root/main/timeinfo/dfromtm")).toDate("YYYYMMDDhhmmss").getAddDate(23,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10)+"59" );
- model.refresh();
- }
- ]]>
- </script-->
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sDate =getCurrentDate()+model.getValue("/root/main/timeinfo/etotm");
- if ( (model.getValue("/root/main/timeinfo/dtotm")).length >= 4 ){
- model.setValue("/root/main/timeinfo/nfromtm", (sDate.toDate("YYYYMMDDhhmmss").getAddDate(1,"m").getDateFormat("YYYYMMDDhhmmss")).substring(8,12) );
- model.setValue("/root/main/timeinfo/ntotm", ( (getCurrentDate()+model.getValue("/root/main/timeinfo/dfromtm")).toDate("YYYYMMDDhhmmss").getAddDate(23,"h").getDateFormat("YYYYMMDDhhmmss")).substring(8,10)+"59" );
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="output6" ref="/root/main/timeinfo/nfromtm" disabled="true" autonext="true" format="hh:nn" appearance="input" style="left:107px; top:147px; width:74px; height:19px; "/>
- <input id="output5" ref="/root/main/timeinfo/ntotm" disabled="true" format="hh:nn" appearance="input" style="left:202px; top:147px; width:72px; height:19px; "/>
- <caption id="caption10" style="left:184px; top:150px; width:17px; height:15px; text-align:center; ">~</caption>
- <line id="line7" class="line_1" style="x1:24px; y1:217px; x2:274px; y2:217px; "/>
- <caption id="caption11" class="cell_1" style="left:24px; top:222px; width:81px; height:20px; ">최종수정일시</caption>
- <output id="output7" ref="/root/main/timeinfo/lastupdtdt" class="output_fix" format="yyyy-mm-dd hh:nn" style="left:107px; top:222px; width:166px; height:19px; "/>
- <line id="line8" class="line_3" style="x1:24px; y1:243px; x2:274px; y2:243px; "/>
- <output id="output8" ref="/root/main/timeinfo/lastupdtrid" class="output_fix" style="left:107px; top:245px; width:166px; height:19px; text-align:center; "/>
- <caption id="caption12" class="cell_1" style="left:24px; top:245px; width:81px; height:20px; text-align:center; ">최종수정자</caption>
- <line id="line9" class="line_1" style="x1:24px; y1:266px; x2:274px; y2:266px; "/>
- <button id="button1" class="btn4_letter2" style="left:249px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_save" class="btn5_letter2" style="left:189px; top:74px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetTimeInfo();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter2" style="left:232px; top:74px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetTimeInfo("D");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter2" style="left:146px; top:74px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchTimeInfo();
- ]]>
- </script>
- </button>
- <input id="output9" ref="/root/main/timeinfo/valifromdd" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:107px; top:170px; width:115px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // if ( model.getValue("/root/main/timeinfo/valifromdd") < getCurrentDate() ){
- // messageBox("적용시작일은 현재일자 이후만 입력","I006");//가능합니다
- // }
- ]]>
- </script>
- </input>
- <caption id="caption15" class="cell_1" style="left:24px; top:169px; width:81px; height:20px; ">적용시작일</caption>
- <line id="line10" class="line_3" style="x1:24px; y1:167px; x2:274px; y2:167px; "/>
- <caption id="caption2" class="cell_1" style="left:24px; top:192px; width:81px; height:20px; ">적용종료일</caption>
- <bool id="bool1" ref="/root/main/timeinfo/endyn" style="left:102px; top:194px; width:25px; height:15px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/main/timeinfo/endyn") == "true" ){//종료
- model.setValue("/root/main/timeinfo/valitodd", ( model.getValue("/root/main/timeinfo/valifromdd") > getCurrentDate()
- ? model.getValue("/root/main/timeinfo/valifromdd")
- : getCurrentDate()) );
- }else{
- model.setValue("/root/main/timeinfo/valitodd", "99991231");
- ipt_valitodd.disabled = "false";
- }
-
- model.refresh();
- ]]>
- </script>
- </bool>
- <line id="line11" class="line_3" style="x1:24px; y1:213px; x2:274px; y2:213px; "/>
- <input id="ipt_valitodd" ref="/root/main/timeinfo/valitodd" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:124px; top:193px; width:97px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // model.setValue("/root/main/timeinfo/valitodd", ( model.getValue("/root/main/timeinfo/valifromdd") > getCurrentDate()
- // ? model.getValue("/root/main/timeinfo/valifromdd")
- // : getCurrentDate()) );
- if ( model.getValue("/root/main/timeinfo/valifromdd") > model.getValue("/root/main/timeinfo/valitodd") ){
- messageBox("적용종료일은 적용시작일 이후만 입력","I006");//가능합니다
- model.setValue("/root/main/timeinfo/valitodd", model.getValue("/root/main/timeinfo/valifromdd") );
- }
- ipt_valitodd.refresh();
- ]]>
- </script>
- </input>
- <caption id="opt_message" class="hand" appearance="caption" style="left:18px; top:275px; width:281px; height:35px; "/>
- </xhtml:body>
- </xhtml:html>
|