123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>검사예약</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <deptlist>
- <srchinfo>
- <cd/>
- <nm/>
- </srchinfo>
- </deptlist>
- </init>
- <main>
- <ctrllist>
- <ctrlinfo>
- <ctrlseq/>
- <fromdd/>
- <todd/>
- <roomcd/>
- <room/>
- <orddrid/>
- <orddr/>
- <specdrid/>
- <specdr/>
- <fromtm/>
- <totm/>
- <capa/>
- <excd/>
- <expt/>
- <exptnm/>
- <exnm/>
- <ctrldesc/>
- </ctrlinfo>
- </ctrllist>
- </main>
- <send>
- <srch>
- <suppdeptcd>2010302030</suppdeptcd>
- <deptcd>2010302030</deptcd>
- <srchdd/>
- <histflag>Y</histflag>
- <srchflag/>
- <excuroomcd>T</excuroomcd>
- <srchcd/>
- <srchnm/>
- </srch>
- <rgst>
- <rsrvplce>A</rsrvplce>
- <suppdeptcd>2010302030</suppdeptcd>
- <excuroomcd>T</excuroomcd>
- <excucd>T</excucd>
- <ctrlseq/>
- <ctrlflag>A</ctrlflag>
- <ctrldesc/>
- <fromdd/>
- <todd/>
- <termlist>
- <terminfo>
- <ctrlseq/>
- <termseq/>
- <itemtype/>
- <itemseq/>
- <opcode/>
- <valtype/>
- <valseq/>
- <val/>
- <valnm/>
- <inflag/>
- <aoflag/>
- </terminfo>
- </termlist>
- </rgst>
- <del>
- <rsrvplce/>
- <suppdeptcd/>
- <excuroomcd/>
- <excucd/>
- <ctrlseq/>
- </del>
- </send>
- <temp>
- <ctrlseq/>
- <srchlist>
- <srchinfo>
- <cd/>
- <nm/>
- </srchinfo>
- </srchlist>
- <fromdd/>
- <todd/>
- <roomarr/>
- <roomlist>
- <roominfo>
- <cd/>
- <nm/>
- </roominfo>
- </roomlist>
- <orddrarr/>
- <orddrlist>
- <orddrinfo>
- <cd/>
- <nm/>
- </orddrinfo>
- </orddrlist>
- <specdrarr/>
- <specdrlist>
- <specdrinfo>
- <cd/>
- <nm/>
- </specdrinfo>
- </specdrlist>
- <ptflag/>
- <ptarr/>
- <ptlist>
- <ptinfo>
- <cd/>
- <nm/>
- </ptinfo>
- </ptlist>
- <fromhh/>
- <frommm/>
- <tohh/>
- <tomm/>
- <capa/>
- <excdlist>
- <excdinfo>
- <cd/>
- <nm/>
- </excdinfo>
- </excdlist>
- <ctrldesc/>
- <rslt>
- <ctrlseq/>
- </rslt>
- </temp>
- </root>
- </instance>
- <submission id="TRPEA00212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/main/ctrllist/ctrlinfo"/>
- <submission id="TRPEA00207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/temp/srchlist/srchinfo"/>
- <submission id="TXPEA00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rgst" resultref="/root/temp/rslt"/>
- <submission id="TXPEA00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/del"/>
- <script type="javascript">
- <![CDATA[
-
- var ITEM_FLAG = "";
-
- function fInit() {
-
- model.setValue("/root/send/rgst/ctrlseq", "");
- model.resetInstanceNode("/root/send/rgst/termlist/terminfo");
-
- model.setValue("/root/send/del/ctrlseq", "");
-
- model.resetInstanceNode("/root/temp");
- model.resetInstanceNode("/root/temp/srchlist/srchinfo");
- model.resetInstanceNode("/root/temp/roomlist/roominfo");
- model.resetInstanceNode("/root/temp/orddrlist/orddrinfo");
- model.resetInstanceNode("/root/temp/specdrlist/specdrinfo");
- model.resetInstanceNode("/root/temp/ptlist/ptinfo");
- model.resetInstanceNode("/root/temp/excdlist/excdinfo");
-
- model.setValue("/root/temp/fromdd", getCurrentDate());
- model.setValue("/root/temp/ctrldesc", "");
-
- model.setValue("/root/temp/rslt/ctrlseq", "");
-
- btn_save.value = "등록";
-
- model.refresh();
- }
-
- function fSearch() {
- submit("TRPEA00212");
-
- fInit();
- }
-
- function fSrchItem(flag) {
-
- model.resetInstanceNode("/root/temp/srchlist/srchinfo");
- grd_srch.refresh();
-
- cap_srch.visible = false;
- cap_srch.attribute("width") = "75px";
-
- cmb_srchcd.visible = false;
- ipt_srchnm.visible = false;
- rdo_ptflag.visible = false;
-
- grd_srch.fixedcellischeck(0, 0) = false;
-
- if (flag == "room") {
- model.setValue("/root/send/srch/srchflag", "room");
-
- grd_srch.caption = "^검사실^검사실";
-
- submit("TRPEA00207");
-
- } else if (flag == "orddr") {
-
- model.setValue("/root/send/srch/srchflag", "ordr");
-
- grd_srch.caption = "^처방의^처방의";
- cap_srch.visible = true;
- cap_srch.value = "진료과 : ";
- cmb_srchcd.visible = true;
-
- } else if (flag == "specdr") {
-
- model.setValue("/root/send/srch/srchflag", "ordr");
-
- grd_srch.caption = "^지정의^지정의";
- cap_srch.visible = true;
- cap_srch.value = "진료과 : ";
- cmb_srchcd.visible = true;
-
- } else if (flag == "excd") {
-
- model.setValue("/root/send/srch/srchflag", "excd");
-
- grd_srch.caption = "^검사코드^검사명";
- cap_srch.visible = true;
- cap_srch.value = "검사명 : ";
- ipt_srchnm.visible = true;
-
- submit("TRPEA00207");
-
- } else if (flag == "pt") {
-
- cap_srch.attribute("width") = "89px";
- cap_srch.value = "환자검색 :";
- cap_srch.visible = true;
-
- ipt_srchnm.visible = true;
- rdo_ptflag.visible = true;
-
- grd_srch.caption = "^등록번호^이름";
-
- for (var i = 1; i <= instance1.selectNodes("/root/temp/ptlist/ptinfo[cd!='']").length; i++) {
- model.makeValue("/root/temp/srchlist/srchinfo[" + i + "]/chk", "true");
- model.makeValue("/root/temp/srchlist/srchinfo[" + i + "]/cd", model.getValue("/root/temp/ptlist/ptinfo[" + i + "]/cd"));
- model.makeValue("/root/temp/srchlist/srchinfo[" + i + "]/nm", model.getValue("/root/temp/ptlist/ptinfo[" + i + "]/nm"));
- }
-
- grp_srch.visible = true;
- grd_srch.refresh();
-
- model.setFocus("ipt_srchnm");
- }
-
- grp_srch.visible = true;
-
- ITEM_FLAG = flag;
- }
- ]]>
- </script>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/send/srch/srchdd", getCurrentDate());
-
- cmb_srchcd.attribute("top") = "10px";
-
- grd_srch.fixedcellcheckbox(0, 0) = true;
-
- model.setValue("/root/send/srch/srchflag", "orddept");
- submit("TRPEA00207", false);
-
- model.copyNode("/root/init/deptlist", "/root/temp/srchlist");
- model.resetInstanceNode("/root/temp/srchlist/srchinfo");
-
- cmb_srchcd.refresh();
- cmb_srchcd.select(0);
-
- fInit();
-
- fSearch();
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <line id="line3" style="x1:0px; y1:734px; x2:1195px; y2:734px; border-color:#c0c0c0; "/>
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:340px; height:14px; ">실시 의사 일정 및 검사 예약 제한 관리 (내시경검사실)</caption>
- <caption id="caption18" class="tit_2" style="left:0px; top:30px; width:105px; height:13px; ">제한 등록 내역</caption>
- <select id="chk_histflag" ref="/root/send/srch/histflag" overflow="visible" appearance="full" style="left:120px; top:29px; width:100px; height:14px; border-style:none; ">
- <choices>
- <item>
- <label>과거 내역 제외</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select>
- <line id="line2" class="line_1" style="x1:0px; y1:45px; x2:1195px; y2:45px; "/>
- <datagrid id="grd_ctrl" nodeset="/root/main/ctrllist/ctrlinfo" caption="예약일^예약일^검사실^처방의^지정의^제한 시각^제한 시각^허용 인원^예외 환자^예외 코드^제한 사유" colsep="^" colwidth="80, 80, 120, 100, 100, 50, 50, 60, 100,220,220" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:50px; width:1195px; height:470px; text-align:center; ">
- <col ref="fromdd" format="yyyy-mm-dd"/>
- <col ref="todd" format="yyyy-mm-dd"/>
- <col ref="room"/>
- <col ref="orddr"/>
- <col ref="specdr"/>
- <col ref="fromtm" format="hh:nn"/>
- <col ref="totm" format="hh:nn"/>
- <col ref="capa"/>
- <col ref="exptnm"/>
- <col ref="exnm" maxlength="200"/>
- <col ref="ctrldesc"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- if (!grd_ctrl.isCell(event.target)) {
- return;
- }
-
- var row = grd_ctrl.row;
-
- if (row < 1) {
- return;
- }
-
- fInit();
-
- var path = "/root/main/ctrllist/ctrlinfo[" + row + "]/";
-
- model.setValue("/root/temp/ctrlseq", model.getValue(path + "ctrlseq"));
- model.setValue("/root/temp/fromdd", model.getValue(path + "fromdd"));
- model.setValue("/root/temp/todd", model.getValue(path + "todd"));
- model.setValue("/root/temp/roomarr", model.getValue(path + "room"));
- model.setValue("/root/temp/orddrarr", model.getValue(path + "orddr"));
- model.setValue("/root/temp/specdrarr", model.getValue(path + "specdr"));
- model.setValue("/root/temp/capa", model.getValue(path + "capa"));
- model.setValue("/root/temp/ptarr", model.getValue(path + "exptnm"));
- model.setValue("/root/temp/ctrldesc", model.getValue(path + "ctrldesc"));
-
- var fromtm = model.getValue(path + "fromtm");
- if (fromtm.length == 4) {
- model.setValue("/root/temp/fromhh", fromtm.substr(0, 2));
- model.setValue("/root/temp/frommm", fromtm.substr(2, 2));
- }
-
- var totm = model.getValue(path + "totm");
- if (totm.length == 4) {
- model.setValue("/root/temp/tohh", totm.substr(0, 2));
- model.setValue("/root/temp/tomm", totm.substr(2, 2));
- }
-
- var cdArr = model.getValue(path + "roomcd").split("│");
- var nmArr = model.getValue(path + "room").split("│");
- for (var i = 0; i < cdArr.length; i++) {
- model.makeValue("/root/temp/roomlist/roominfo[" + ( i + 1 ) + "]/cd", cdArr[i]);
- model.makeValue("/root/temp/roomlist/roominfo[" + ( i + 1 ) + "]/nm", nmArr[i]);
- }
-
- cdArr = model.getValue(path + "orddrid").split("│");
- nmArr = model.getValue(path + "orddr").split("│");
- for (var i = 0; i < cdArr.length; i++) {
- model.makeValue("/root/temp/orddrlist/orddrinfo[" + ( i + 1 ) + "]/cd", cdArr[i]);
- model.makeValue("/root/temp/orddrlist/orddrinfo[" + ( i + 1 ) + "]/nm", nmArr[i]);
- }
-
- cdArr = model.getValue(path + "specdrid").split("│");
- nmArr = model.getValue(path + "specdr").split("│");
- for (var i = 0; i < cdArr.length; i++) {
- model.makeValue("/root/temp/specdrlist/specdrinfo[" + ( i + 1 ) + "]/cd", cdArr[i]);
- model.makeValue("/root/temp/specdrlist/specdrinfo[" + ( i + 1 ) + "]/nm", nmArr[i]);
- }
-
- cdArr = model.getValue(path + "expt").split("│");
- nmArr = model.getValue(path + "exptnm").split("│");
- for (var i = 0; i < cdArr.length; i++) {
- model.makeValue("/root/temp/ptlist/ptinfo[" + ( i + 1 ) + "]/cd", cdArr[i]);
- model.makeValue("/root/temp/ptlist/ptinfo[" + ( i + 1 ) + "]/nm", nmArr[i]);
- }
-
- cdArr = model.getValue(path + "excd").split("│");
- nmArr = model.getValue(path + "exnm").split("│");
- for (var i = 0; i < cdArr.length; i++) {
- model.makeValue("/root/temp/excdlist/excdinfo[" + ( i + 1 ) + "]/cd", cdArr[i]);
- model.makeValue("/root/temp/excdlist/excdinfo[" + ( i + 1 ) + "]/nm", nmArr[i]);
- }
-
- btn_save.value = "수정";
-
- model.refresh();
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption11" class="tit_2" style="left:0px; top:540px; width:154px; height:13px; ">예약 제한 등록 및 수정</caption>
- <caption id="caption12" style="left:175px; top:540px; width:110px; height:14px; ">( : 필수 항목 )</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:185px; top:539px; width:15px; height:15px; background-color:#ffffa0; border-color:gray; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:555px; x2:1195px; y2:555px; "/>
- <caption id="caption20" class="cell_1" style="left:0px; top:560px; width:108px; height:23px; ">예약일</caption>
- <input id="ipt_fromdd" ref="/root/temp/fromdd" inputtype="date" style="left:110px; top:562px; width:89px; height:19px; background-color:#ffffa0; "/>
- <caption id="caption19" style="left:200px; top:560px; width:19px; height:23px; text-align:center; ">~</caption>
- <input id="ipt_todd" ref="/root/temp/todd" inputtype="date" style="left:220px; top:562px; width:89px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:585px; width:108px; height:23px; ">검사실</caption>
- <caption id="cap_room" ref="/root/temp/roomarr" ellipsis="true" style="left:110px; top:587px; width:445px; height:19px; padding-left:3; background-color:#ffffa0; border-color:#c0c0c0; border-style:solid; "/>
- <button id="btn_srch_room" class="icon_search" style="left:564px; top:588px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchItem("room");
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell_1" style="left:0px; top:610px; width:108px; height:23px; ">처방의</caption>
- <caption id="cap_orddr" ref="/root/temp/orddrarr" ellipsis="true" style="left:110px; top:612px; width:445px; height:19px; padding-left:3; border-color:#c0c0c0; border-style:solid; "/>
- <button id="btn_srch_orddr" class="icon_search" style="left:564px; top:613px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchItem("orddr");
- ]]>
- </script>
- </button>
- <caption id="caption5" class="cell_1" style="left:0px; top:635px; width:108px; height:23px; ">지정의</caption>
- <caption id="cap_specdr" ref="/root/temp/specdrarr" ellipsis="true" style="left:110px; top:637px; width:445px; height:19px; padding-left:3; border-color:#c0c0c0; border-style:solid; "/>
- <button id="btn_srch_specdr" class="icon_search" style="left:564px; top:638px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchItem("specdr");
- ]]>
- </script>
- </button>
- <caption id="caption6" class="cell_1" style="left:0px; top:660px; width:108px; height:23px; ">제한 시각</caption>
- <input id="ipt_fromhh" ref="/root/temp/fromhh" maxlength="2" style="left:110px; top:662px; width:29px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var str = model.getValue("/root/temp/fromhh");
- str = str.length == 1 ? "0" + str : str;
- model.setValue("/root/temp/fromhh", str);
- ipt_fromhh.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption14" style="left:140px; top:660px; width:14px; height:23px; text-align:center; ">:</caption>
- <input id="ipt_frommm" ref="/root/temp/frommm" maxlength="2" style="left:155px; top:662px; width:29px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var str = model.getValue("/root/temp/frommm");
- str = str.length == 1 ? "0" + str : str;
- model.setValue("/root/temp/frommm", str);
- ipt_frommm.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption15" style="left:185px; top:660px; width:19px; height:23px; text-align:center; ">~</caption>
- <input id="ipt_tohh" ref="/root/temp/tohh" maxlength="2" style="left:205px; top:662px; width:29px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var str = model.getValue("/root/temp/tohh");
- str = str.length == 1 ? "0" + str : str;
- model.setValue("/root/temp/tohh", str);
- ipt_tohh.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption16" style="left:235px; top:660px; width:14px; height:23px; text-align:center; ">:</caption>
- <input id="ipt_tomm" ref="/root/temp/tomm" maxlength="2" style="left:250px; top:662px; width:29px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var str = model.getValue("/root/temp/tomm");
- str = str.length == 1 ? "0" + str : str;
- model.setValue("/root/temp/tomm", str);
- ipt_tomm.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption17" style="left:285px; top:660px; width:125px; height:24px; ">( ※ 24 시간 형식 )</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:685px; width:108px; height:23px; ">허용 인원</caption>
- <input id="ipt_capa" ref="/root/temp/capa" maxlength="1" style="left:110px; top:687px; width:29px; height:19px; text-align:center; "/>
- <caption id="caption10" style="left:145px; top:685px; width:200px; height:24px; ">명 ( ※ 기존 가용 인원 초과 불가 )</caption>
- <caption id="cap_pt" class="cell_1" style="left:0px; top:710px; width:108px; height:23px; ">예외(허용) 환자</caption>
- <caption id="cap_ptarr" ref="/root/temp/ptarr" ellipsis="true" style="left:110px; top:712px; width:445px; height:19px; padding-left:3; border-color:#c0c0c0; border-style:solid; "/>
- <button id="btn_srch_pt" class="icon_search" style="left:564px; top:713px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/temp/ptflag") == "") {
- model.setValue("/root/temp/ptflag", "pid");
- rdo_ptflag.refresh();
- }
-
- fSrchItem("pt");
- ]]>
- </script>
- </button>
- <caption id="caption8" class="cell_1" style="left:590px; top:560px; width:108px; height:123px; text-align:left; ">
- <![CDATA[예외(허용) 코드]]>
- </caption>
- <button id="btn_srch_excd" class="icon_search" style="left:635px; top:638px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchItem("excd");
- ]]>
- </script>
- </button>
- <datagrid id="grd_excd" nodeset="/root/temp/excdlist/excdinfo" autoresize="true" colsep="^" colwidth="0,410" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:700px; top:560px; width:495px; height:123px; ">
- <col ref="cd"/>
- <col ref="nm"/>
- </datagrid>
- <caption id="cap_desc" class="cell_1" style="left:590px; top:685px; width:108px; height:48px; text-align:left; ">예약 제한 사유</caption>
- <textarea id="tar_desc" ref="/root/temp/ctrldesc" scroll="autovscroll" style="left:700px; top:685px; width:495px; height:48px; padding-left:3; background-color:#ffffa0; "/>
- <button id="btn_init" class="btn2_letter3" style="left:1142px; top:535px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:743px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // ctrl 정보 생성
- model.setValue("/root/send/rgst/ctrlseq", model.getValue("/root/temp/ctrlseq"));
- model.setValue("/root/send/rgst/fromdd", getCurrentDate());
- model.setValue("/root/send/rgst/todd", "99991231");
-
- // 입력값 확인
- var fromdd = model.getValue("/root/temp/fromdd");
- if (fromdd == "") {
- messageBox("예약일을 입력해 주십시오.", "E999");
- return;
- }
-
- var roomarr = model.getValue("/root/temp/roomarr");
- if (roomarr == "") {
- messageBox("검사실을 지정해 주십시오.", "E999");
- return;
- }
-
- var fromtm = model.getValue("/root/temp/fromhh") + model.getValue("/root/temp/frommm");
- if (fromtm != "" ) {
- if (!isValidDateTime(fromtm, "hhmm")) {
- messageBox("제한 시작 시각을 정확히 입력해 주십시오.", "E999");
- return;
- }
- }
-
- var totm = model.getValue("/root/temp/tohh") + model.getValue("/root/temp/tomm");
- if (totm != "") {
- if (!isValidDateTime(totm, "hhmm")) {
- messageBox("제한 종료 시각을 정확히 입력해 주십시오.", "E999");
- return;
- }
-
- if (fromtm == "") {
- messageBox("제한 시작 시각을 입력해 주십시오.", "E999");
- return;
- }
- }
-
- var ctrldesc = model.getValue("/root/temp/ctrldesc");
- if (ctrldesc == "") {
- messageBox("예약 제한 사유를 입력해 주십시오.", "E999");
- return;
- }
-
- // comment 생성
- model.setValue("/root/send/rgst/ctrldesc", ctrldesc);
-
- // term 정보 생성
- model.resetInstanceNode("/root/send/rgst/termlist/terminfo");
-
- var termseq = 1;
-
- // 예약일
- var todd = model.getValue("/root/temp/todd");
- var opcode = ( todd != "" ? "OV" : "EQ" );
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 4);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", opcode);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "D");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", fromdd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", fromdd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
-
- if (todd != "") {
-
- termseq++;
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 4);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "BW");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "D");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", todd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", todd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
- }
-
- var cnt = 0;
- var cd = "";
- var nm = "";
- var inflag = "";
-
- // 검사실
- cnt = instance1.selectNodes("/root/temp/roomlist/roominfo[cd!='']").length;
- if (cnt == 1) {
-
- termseq++;
-
- cd = model.getValue("/root/temp/roomlist/roominfo/cd");
- nm = model.getValue("/root/temp/roomlist/roominfo/nm");
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 2);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "EQ");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "S");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", cd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", nm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
-
- } else {
-
- for (var i = 1; i <= cnt; i++) {
-
- termseq++;
-
- cd = model.getValue("/root/temp/roomlist/roominfo[" + i + "]/cd");
- nm = model.getValue("/root/temp/roomlist/roominfo[" + i + "]/nm");
-
- inflag = ( i == 1 ? "B" : ( i == cnt ? "E" : "I" ) );
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 2);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "IN");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "S");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", cd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", nm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", inflag);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "O");
- }
- }
-
- // 처방의
- cnt = instance1.selectNodes("/root/temp/orddrlist/orddrinfo[cd!='']").length;
- if (cnt == 1) {
-
- termseq++;
-
- cd = model.getValue("/root/temp/orddrlist/orddrinfo/cd");
- nm = model.getValue("/root/temp/orddrlist/orddrinfo/nm");
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 16);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "EQ");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "S");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", cd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", nm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
-
- } else if (cnt > 1) {
-
- for (var i = 1; i <= cnt; i++) {
-
- termseq++;
-
- cd = model.getValue("/root/temp/orddrlist/orddrinfo[" + i + "]/cd");
- nm = model.getValue("/root/temp/orddrlist/orddrinfo[" + i + "]/nm");
-
- inflag = ( i == 1 ? "B" : ( i == cnt ? "E" : "I" ) );
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 16);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "IN");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "S");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", cd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", nm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", inflag);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "O");
- }
- }
-
- // 지정의
- cnt = instance1.selectNodes("/root/temp/specdrlist/specdrinfo[cd!='']").length;
- if (cnt == 1) {
-
- termseq++;
-
- cd = model.getValue("/root/temp/specdrlist/specdrinfo/cd");
- nm = model.getValue("/root/temp/specdrlist/specdrinfo/nm");
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 70);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "EQ");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "S");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", cd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", nm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
-
- } else if (cnt > 1) {
-
- for (var i = 1; i <= cnt; i++) {
-
- termseq++;
-
- cd = model.getValue("/root/temp/specdrlist/specdrinfo[" + i + "]/cd");
- nm = model.getValue("/root/temp/specdrlist/specdrinfo[" + i + "]/nm");
-
- inflag = ( i == 1 ? "B" : ( i == cnt ? "E" : "I" ) );
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 70);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "IN");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "S");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", cd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", nm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", inflag);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "O");
- }
- }
-
- // 제한 시각
- if (fromtm != "") {
-
- termseq++;
-
- opcode = ( totm != "" ? "OV" : "EQ" );
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 5);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", opcode);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "D");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", fromtm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", fromtm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
- }
-
- if (totm != "") {
-
- termseq++;
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 5);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "BW");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "D");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", totm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", totm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
- }
-
- // 허용 인원
- var capa = model.getValue("/root/temp/capa");
- if (capa != "") {
-
- termseq++;
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 134);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "EX");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "D");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", capa);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", capa);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
- }
-
- // 예외 환자
- cnt = instance1.selectNodes("/root/temp/ptlist/ptinfo[cd!='']").length;
- if (cnt == 1) {
-
- termseq++;
-
- cd = model.getValue("/root/temp/ptlist/ptinfo/cd");
- nm = model.getValue("/root/temp/ptlist/ptinfo/nm");
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 114);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "NE");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "D");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", cd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", nm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
-
- } else if (cnt > 1) {
-
- for (var i = 1; i <= cnt; i++) {
-
- termseq++;
-
- cd = model.getValue("/root/temp/ptlist/ptinfo[" + i + "]/cd");
- nm = model.getValue("/root/temp/ptlist/ptinfo[" + i + "]/nm");
-
- inflag = ( i == 1 ? "B" : ( i == cnt ? "E" : "I" ) );
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 114);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "NI");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "D");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", cd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", nm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", inflag);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "O");
- }
- }
-
- // 예외(허용) 코드
- cnt = instance1.selectNodes("/root/temp/excdlist/excdinfo[cd!='']").length;
- if (cnt == 1) {
-
- termseq++;
-
- cd = model.getValue("/root/temp/excdlist/excdinfo/cd");
- nm = model.getValue("/root/temp/excdlist/excdinfo/nm");
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 3);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "NE");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "S");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", cd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", nm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
-
- } else if (cnt > 1) {
-
- for (var i = 1; i <= cnt; i++) {
-
- termseq++;
-
- cd = model.getValue("/root/temp/excdlist/excdinfo[" + i + "]/cd");
- nm = model.getValue("/root/temp/excdlist/excdinfo[" + i + "]/nm");
-
-
- inflag = ( i == 1 ? "B" : ( i == cnt ? "E" : "I" ) );
-
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "R");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 3);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "NI");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "S");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", cd);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", nm);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", inflag);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "O");
- }
- }
-
- // 예약 제어
- termseq++;
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/ctrlseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/termseq", termseq);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemtype", "C");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/itemseq", 39);
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/opcode", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valtype", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valseq", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/val", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/valnm", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/inflag", "");
- model.makeValue("/root/send/rgst/termlist/terminfo[" + termseq + "]/aoflag", "");
-
- if (messageBox("예약 제한 정보를 " + btn_save.value + "하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- submit("TXPEA00203");
-
- fSearch();
-
- ]]>
- </script>
- </button>
- <group id="grp_srch" visibility="hidden" style="left:410px; top:85px; width:370px; height:420px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:370px; height:420px; border-color:#b0b0b0; "/>
- <caption id="cap_srch" class="search_name" style="left:10px; top:11px; width:89px; height:17px; ">환자검색 :</caption>
- <datagrid id="grd_srch" nodeset="/root/temp/srchlist/srchinfo" caption="^코드^이름" colsep="^" colwidth="30, 90, 220" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:35px; width:350px; height:347px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="cd" style="text-align:center; "/>
- <col ref="nm"/>
- </datagrid>
- <input id="ipt_srchnm" ref="/root/send/srch/srchnm" style="left:100px; top:10px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == "13") {
- inputEnterKey("btn_srch", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_srchcd" ref="/root/send/srch/srchcd" appearance="minimal" style="left:90px; top:30px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/srchinfo">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_srch" class="btn1_letter2" style="left:304px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (ITEM_FLAG == "pt") {
-
- model.setValue("/root/send/srch/srchflag", model.getValue("/root/temp/ptflag"));
-
- submit("TRPEA00207", false);
-
- var pPath = "/root/temp/ptlist/ptinfo";
- var sPath = "/root/temp/srchlist/srchinfo";
-
- var cnt = instance1.selectNodes(pPath + "[cd!='']").length;
-
- for (var i = instance1.selectNodes(sPath).length + cnt; i > 0; i--) {
- if (i > cnt) {
- model.makeValue(sPath + "[" + i + "]/chk", "false");
- model.makeValue(sPath + "[" + i + "]/cd", model.getValue(sPath + "[" + ( i - cnt ) + "]/cd"));
- model.makeValue(sPath + "[" + i + "]/nm", model.getValue(sPath + "[" + ( i - cnt ) + "]/nm"));
- } else {
- model.makeValue(sPath + "[" + i + "]/chk", "true");
- model.makeValue(sPath + "[" + i + "]/cd", model.getValue(pPath + "[" + i + "]/cd"));
- model.makeValue(sPath + "[" + i + "]/nm", model.getValue(pPath + "[" + i + "]/nm"));
- }
- }
-
- grd_srch.refresh();
-
- } else {
- submit("TRPEA00207");
- }
- ]]>
- </script>
- </button>
- <button id="btn_input" class="btn4_letter2" style="left:244px; top:390px; width:56px; height:22px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var path = "";
-
- if (ITEM_FLAG == "room") {
- path = "/root/temp/roomlist/roominfo";
- } else if (ITEM_FLAG == "orddr") {
- path = "/root/temp/orddrlist/orddrinfo";
- } else if (ITEM_FLAG == "specdr") {
- path = "/root/temp/specdrlist/specdrinfo";
- } else if (ITEM_FLAG == "excd") {
- path = "/root/temp/excdlist/excdinfo";
- } else if (ITEM_FLAG == "pt") {
- path = "/root/temp/ptlist/ptinfo";
- }
-
- model.resetInstanceNode(path);
-
- var cnt = instance1.selectNodes("/root/temp/srchlist/srchinfo").length;
- var arr = "";
- var idx = 0;
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue("/root/temp/srchlist/srchinfo[" + i + "]/chk") != "true") {
- continue;
- }
-
- idx++;
-
- model.makeValue(path + "[" + idx + "]/cd", model.getValue("/root/temp/srchlist/srchinfo[" + i + "]/cd"));
- model.makeValue(path + "[" + idx + "]/nm", model.getValue("/root/temp/srchlist/srchinfo[" + i + "]/nm"));
-
- arr += ( idx > 1 ? "│" : "" );
- arr += model.getValue("/root/temp/srchlist/srchinfo[" + i + "]/nm");
- }
-
- model.resetInstanceNode("/root/temp/srchlist/srchinfo");
-
- if (ITEM_FLAG == "room") {
-
- model.setValue("/root/temp/roomarr", arr);
- cap_room.refresh();
- cap_room.hint = arr;
-
- } else if (ITEM_FLAG == "orddr") {
-
- model.setValue("/root/temp/orddrarr", arr);
- cap_orddr.refresh();
- cap_orddr.hint = arr;
-
- } else if (ITEM_FLAG == "specdr") {
-
- model.setValue("/root/temp/specdrarr", arr);
- cap_specdr.refresh();
- cap_specdr.hint = arr;
-
- } else if (ITEM_FLAG == "excd") {
-
- grd_excd.refresh();
-
- } else if (ITEM_FLAG == "pt") {
-
- model.setValue("/root/temp/ptarr", arr);
- cap_ptarr.refresh();
- cap_ptarr.hint = arr;
- }
-
- grp_srch.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:304px; top:390px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_srch.visible = false;
- ]]>
- </script>
- </button>
- <select1 id="rdo_ptflag" ref="/root/temp/ptflag" appearance="full" cellspacing="3" cols="2" overflow="visible" style="left:180px; top:12px; width:115px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>pid</value>
- </item>
- <item>
- <label>이름</label>
- <value>hngnm</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="btn_del" class="btn2_letter2" style="left:1153px; top:25px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var row = grd_ctrl.row;
-
- if (grd_ctrl.row < 1) {
- messageBox("삭제할 내역을 선택해 주십시오.", "E999");
- return;
- }
-
- if (messageBox("선택된 제한 내역을 삭제하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- model.setValue("/root/send/del/rsrvplce", model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/rsrvplce"));
- model.setValue("/root/send/del/suppdeptcd", model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/suppdeptcd"));
- model.setValue("/root/send/del/excuroomcd", model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/excuroomcd"));
- model.setValue("/root/send/del/excucd", model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/excucd"));
- model.setValue("/root/send/del/ctrlseq", model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/ctrlseq"));
-
- submit("TXPEA00205");
-
- fSearch();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|