SPZMI01100_환자확인메시지.xfdl 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <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">
  5. <Layouts>
  6. <Layout>
  7. <WebBrowser id="wb_tts" position="absolute 508 276 508 276" anchor="default" taborder="5" useautobitmapcache="1" visible="true"/>
  8. <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;">
  9. <Layouts>
  10. <Layout>
  11. <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"/>
  12. <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"/>
  13. </Layout>
  14. </Layouts>
  15. </Div>
  16. <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"/>
  17. <Static id="caption00" text="환자확인 메시지" class="sta_POP_title" transparenthittest="true" position="absolute 212 26 441 54" style="color:black;font:굴림,20,bold;"/>
  18. </Layout>
  19. </Layouts>
  20. <Objects>
  21. <Dataset id="ds_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  22. <ColumnInfo>
  23. <Column id="msgno" type="STRING" size="256"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row/>
  27. </Rows>
  28. </Dataset>
  29. <Dataset id="ds_patcheckmsginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  30. <ColumnInfo>
  31. <Column id="msgno" type="STRING" size="256"/>
  32. <Column id="pid" type="STRING" size="256"/>
  33. <Column id="hngnm" type="STRING" size="256"/>
  34. <Column id="recvrid" type="STRING" size="256"/>
  35. <Column id="msgcnts" type="STRING" size="256"/>
  36. <Column id="deptcd" type="STRING" size="256"/>
  37. <Column id="deptnm" type="STRING" size="256"/>
  38. <Column id="orddeptcd" type="STRING" size="256"/>
  39. <Column id="orddeptnm" type="STRING" size="256"/>
  40. <Column id="reqdt" type="STRING" size="256"/>
  41. <Column id="recvcnfmdt" type="STRING" size="256"/>
  42. <Column id="recvcnfmyn" type="STRING" size="256"/>
  43. <Column id="recvcnfmnm" type="STRING" size="256"/>
  44. </ColumnInfo>
  45. </Dataset>
  46. <Dataset id="ds_confirm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  47. <ColumnInfo>
  48. <Column id="msgno" type="STRING" size="256"/>
  49. </ColumnInfo>
  50. <Rows>
  51. <Row/>
  52. </Rows>
  53. </Dataset>
  54. </Objects>
  55. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
  56. function SPZMI01100_oninit(obj:Form, e:InitEventInfo)
  57. {
  58. frmf_initForm(obj);
  59. }
  60. function SPZMI01100_onload(obj:Form, e:LoadEventInfo)
  61. {
  62. this.parent.winlevel = "topmost";
  63. this.parent.activate();
  64. ds_search.setColumn(0, "msgno", arg_msgNo);
  65. var oParam = {};
  66. oParam.id = "TRZMI01100";
  67. oParam.service = "instantmsgapp.InstantMsg";
  68. oParam.method = "reqGetPatCheckMsgInfo";
  69. oParam.inds = "req=ds_search";
  70. oParam.outds = "ds_patcheckmsginfo=patcheckmsginfo";
  71. oParam.async = true;
  72. oParam.force = true;
  73. oParam.callback = "cf_TRZMI01100";
  74. tranf_submit(oParam);
  75. ImageViewer00.setFocus();
  76. }
  77. function cf_TRZMI01100(sSvcId, nErrorCode, sErrorMsg) {
  78. if(nErrorCode < 0) return;
  79. if(utlf_isNull(ds_patcheckmsginfo.getColumn(0, "hngnm"))) {
  80. div_contents.stt_msgcnts.text = "오류입니다. 등록번호를 확인해주세요.";
  81. } else {
  82. div_contents.stt_msgcnts.text = ds_patcheckmsginfo.getColumn(0, "msgcnts");
  83. var text = "";
  84. var hngnm = utlf_transNullToEmpty(ds_patcheckmsginfo.getColumn(0, "hngnm"));
  85. if(utlf_isAlphabet(hngnm)) {
  86. text = hngnm;
  87. } else {
  88. for(var i = 0; i < hngnm.length; i++) {
  89. text += hngnm.charAt(i) + "! ";
  90. }
  91. }
  92. if(!utlf_isNull(text)) {
  93. text += "님! 입실하셨습니다";
  94. wb_tts.url = ttsf_getTTSUrl(text);
  95. } else {
  96. div_contents.stt_msgcnts.text = "오류입니다. 등록번호를 확인해주세요.";
  97. }
  98. }
  99. }
  100. function SPZMI01100_onclose(obj:Form, e:CloseEventInfo)
  101. {
  102. // 확인 여부를 서버에 Y 로 저장한다.
  103. var confirmyn = ds_patcheckmsginfo.getColumn(0, "recvcnfmyn");
  104. if (confirmyn == "N") {
  105. ds_confirm.setColumn(0, "msgno", ds_patcheckmsginfo.getColumn(0, "msgno"));
  106. var oParam = {};
  107. oParam.id = "TXZMI00205";
  108. oParam.service = "instantmsgapp.InstantMsg";
  109. oParam.method = "reqSetConfirm";
  110. oParam.inds = "req=ds_confirm";
  111. oParam.async = false;
  112. oParam.force = true;
  113. tranf_submit(oParam);
  114. }
  115. }
  116. function div_contents_btn_text_onclick(obj:Button, e:ClickEventInfo)
  117. {
  118. this.close();
  119. }
  120. ]]></Script>
  121. </Form>
  122. </FDL>