123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZMI01100" classname="SPZMI01100_환자확인메시지" inheritanceid="" position="absolute 0 0 608 308" titletext="환자확인메시지" oninit="SPZMI01100_oninit" onload="SPZMI01100_onload" style="background:transparent; :focused {shadow:outer 5,5 5 gray;}" onclose="SPZMI01100_onclose">
- <Layouts>
- <Layout>
- <WebBrowser id="wb_tts" position="absolute 508 276 508 276" anchor="default" taborder="5" useautobitmapcache="1" visible="true"/>
- <Div id="div_contents" taborder="3" position="absolute 0 0 600 300" style="background:ivory;border:10 solid steelblue ;bordertype:round 10 10 ;shadow:outer 8,8 8 gray;">
- <Layouts>
- <Layout>
- <Static id="stt_msgcnts" position="absolute 0 163 580 265" style="linespace:12;color:#202020ff;align:center top;font:HY헤드라인M,32,bold;" anchor="default" transparenthittest="true"/>
- <Button id="btn_text" taborder="1" text="성함이 어떻게 되십니까?" position="absolute 42 60 542 144" style="font:HY견명조,30,bold;" onclick="div_contents_btn_text_onclick" anchor="default" tooltiptext="클릭 시 창이 닫힙니다" class="btn_patcheck"/>
- </Layout>
- </Layouts>
- </Div>
- <ImageViewer id="ImageViewer00" taborder="4" position="absolute 171 25 207 55" style="background:transparent;border:0 none #e5e5e5ff ;" image="URL('IMG::patcheck_032.ico')" stretch="fixaspectratio"/>
- <Static id="caption00" text="환자확인 메시지" class="sta_POP_title" transparenthittest="true" position="absolute 212 26 441 54" style="color:black;font:굴림,20,bold;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="msgno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_patcheckmsginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="msgno" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="recvrid" type="STRING" size="256"/>
- <Column id="msgcnts" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="reqdt" type="STRING" size="256"/>
- <Column id="recvcnfmdt" type="STRING" size="256"/>
- <Column id="recvcnfmyn" type="STRING" size="256"/>
- <Column id="recvcnfmnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_confirm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="msgno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
- function SPZMI01100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPZMI01100_onload(obj:Form, e:LoadEventInfo)
- {
- this.parent.winlevel = "topmost";
- this.parent.activate();
-
- ds_search.setColumn(0, "msgno", arg_msgNo);
-
- var oParam = {};
- oParam.id = "TRZMI01100";
- oParam.service = "instantmsgapp.InstantMsg";
- oParam.method = "reqGetPatCheckMsgInfo";
- oParam.inds = "req=ds_search";
- oParam.outds = "ds_patcheckmsginfo=patcheckmsginfo";
- oParam.async = true;
- oParam.force = true;
- oParam.callback = "cf_TRZMI01100";
- tranf_submit(oParam);
-
- ImageViewer00.setFocus();
- }
- function cf_TRZMI01100(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- if(utlf_isNull(ds_patcheckmsginfo.getColumn(0, "hngnm"))) {
- div_contents.stt_msgcnts.text = "오류입니다. 등록번호를 확인해주세요.";
- } else {
- div_contents.stt_msgcnts.text = ds_patcheckmsginfo.getColumn(0, "msgcnts");
-
- var text = "";
- var hngnm = utlf_transNullToEmpty(ds_patcheckmsginfo.getColumn(0, "hngnm"));
- if(utlf_isAlphabet(hngnm)) {
- text = hngnm;
- } else {
- for(var i = 0; i < hngnm.length; i++) {
- text += hngnm.charAt(i) + "! ";
- }
- }
-
- if(!utlf_isNull(text)) {
- text += "님! 입실하셨습니다";
- wb_tts.url = ttsf_getTTSUrl(text);
- } else {
- div_contents.stt_msgcnts.text = "오류입니다. 등록번호를 확인해주세요.";
- }
- }
- }
- function SPZMI01100_onclose(obj:Form, e:CloseEventInfo)
- {
- // 확인 여부를 서버에 Y 로 저장한다.
- var confirmyn = ds_patcheckmsginfo.getColumn(0, "recvcnfmyn");
- if (confirmyn == "N") {
- ds_confirm.setColumn(0, "msgno", ds_patcheckmsginfo.getColumn(0, "msgno"));
- var oParam = {};
- oParam.id = "TXZMI00205";
- oParam.service = "instantmsgapp.InstantMsg";
- oParam.method = "reqSetConfirm";
- oParam.inds = "req=ds_confirm";
- oParam.async = false;
- oParam.force = true;
- tranf_submit(oParam);
- }
- }
- function div_contents_btn_text_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|