123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <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>환자정보 저장</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <example>Sample</example>
- <source>
- <a>1</a>
- </source>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- </xhtml:head>
- <xhtml:body>
- <button id="button1" style="left:300px; top:40px; width:100px; height:20px; ">
- <caption>setPatientInfo</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert( setPatientInfo("pid", "12345678"));
- // setPatientInfo("pname", "12345678|향단이");
- // setPatientInfo("age", "12345678|54/M");
- // setPatientInfo("addr", "12345678|서울시 반포구 반포12동");
- // setPatientInfo("insukind", "12345678|건강보험");
- // setPatientInfo("ininfo", "12345678|74병동 0725호 입원일 2006-01-10 HD[10]");
- // setPatientInfo("body", "12345678|Ht165cm 67k이g");
- // setPatientInfo("btype", "12345678|A+");
- // setPatientInfo("orddept", "12345678|(심장내과)내과");
- // setPatientInfo("apntdr", "12345678|성춘향");
- // setPatientInfo("attndr", "12345678|홍길동");
- // setPatientInfo("diagnosis", "12345678|확정(주)진단 정보........................................................");
- // setPatientInfo("operation", "12345678|수술1\n수술2");
- // setPatientInfo("allergy", "12345678|알러지정보");
- // setPatientInfo("infection", "12345678|감염정보");
- // setPatientInfo("intncare", "12345678|Y");
- // setPatientInfo("cp", "12345678|Y");
- ]]>
- </script>
- </button>
- <button id="button2" style="left:300px; top:75px; width:100px; height:20px; ">
- <caption>setPatientInfos</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setPatientInfos("12345678|향단이|54/M|서울시 반포구 반포12동|건강보험|74병동 0725호 입원일 2006-01-10 HD[10]|Ht165cm 67kg|A+|(심장내과)내과|성춘향|홍길동|확정(주)진단 정보........................................................|수술1\r\n수술2|알러지정보|감염정보|Y|Y");
- ]]>
- </script>
- </button>
- <button id="button3" style="left:455px; top:40px; width:100px; height:20px; ">
- <caption>getPatientInfo</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert(getPatientInfo("pid"));
- // alert(getPatientInfo("pname"));
- // alert(getPatientInfo("age"));
- // alert(getPatientInfo("addr"));
- // alert(getPatientInfo("insukind"));
- // alert(getPatientInfo("ininfo"));
- // alert(getPatientInfo("body"));
- // alert(getPatientInfo("btype"));
- // alert(getPatientInfo("orddept"));
- // alert(getPatientInfo("apntdr"));
- // alert(getPatientInfo("attndr"));
- // alert(getPatientInfo("diagnosis"));
- // alert(getPatientInfo("operation"));
- // alert(getPatientInfo("allergy"));
- // alert(getPatientInfo("infection"));
- // alert(getPatientInfo("intncare"));
- // alert(getPatientInfo("cp"));
- ]]>
- </script>
- </button>
- <button id="button4" style="left:455px; top:75px; width:100px; height:20px; ">
- <caption>getPatientInfos</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert(getPatientInfos());
- ]]>
- </script>
- </button>
- <button id="button5" style="left:455px; top:115px; width:100px; height:20px; ">
- <caption>getPatientId</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert(getPatientId())
- ]]>
- </script>
- </button>
- <button id="button6" style="left:455px; top:150px; width:115px; height:20px; ">
- <caption>getPatientName</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert(getPatientName());
- ]]>
- </script>
- </button>
- <button id="button7" style="left:635px; top:40px; width:133px; height:20px; ">
- <caption>navigateMain</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var main = getMainViewer();
- if (main != null){
- var nodeObj = instance1.selectSingleNode("/root/source").cloneNode(true);
- main.model.makeNode("/root/source");
- main.model.copyNode("/root/source", nodeObj);
-
- alert(main.instance1.xml);
- main.javascript.navigate("SMTMP01100", "", "", "", "", "/root/source", "/root/target");
- }
- ]]>
- </script>
- </button>
- <button id="button8" style="left:635px; top:80px; width:125px; height:20px; ">
- <caption>setGlobalVariable</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setGlobalVariable("consult", model.getValue("/root/example")) ;
- ]]>
- </script>
- </button>
- <button id="button9" style="left:635px; top:120px; width:125px; height:20px; ">
- <caption>getGlobalVariable</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert(getGlobalVariable("consult"));
- ]]>
- </script>
- </button>
- <button id="button10" style="left:635px; top:150px; width:125px; height:20px; ">
- <caption>setGlobalVariable</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setGlobalVariable("consult", model.getValue("/root/source/a"), "p") ;
- ]]>
- </script>
- </button>
- <button id="button11" style="left:635px; top:190px; width:125px; height:20px; ">
- <caption>getGlobalVariable</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert(getGlobalVariable("consult", "p"));
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|