SPMNR06100_확장명입력.xrw 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>부위/확장명 입력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <cond>
  10. <pid/>
  11. <cretno/>
  12. <orddd/>
  13. <carerecseqno/>
  14. <status/>
  15. <itemorigincd/>
  16. <itemnm/>
  17. </cond>
  18. <main>
  19. <chngitemnm/>
  20. </main>
  21. <stay>
  22. <itemnm/>
  23. </stay>
  24. <send/>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. finit();
  30. ]]>
  31. </script>
  32. <submission id="TXMNR06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/rtnvalue"/>
  33. </model>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  37. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  38. <script type="javascript">
  39. <![CDATA[
  40. function finit(){
  41. var sParamMsgInfo = "";
  42. sParamMsgInfo = opener.javascript.getParameter("SPMNR06100_Param");
  43. model.setValue("/root/cond/status", getArrayData(sParamMsgInfo, 0 ,0) );
  44. model.setValue("/root/cond/itemorigincd", getArrayData(sParamMsgInfo, 0 ,1) );
  45. model.setValue("/root/cond/carerecseqno", getArrayData(sParamMsgInfo, 0 ,2) );
  46. model.setValue("/root/cond/pid", getArrayData(sParamMsgInfo, 0 ,3) );
  47. model.setValue("/root/cond/orddd", getArrayData(sParamMsgInfo, 0 ,4) );
  48. model.setValue("/root/cond/cretno", getArrayData(sParamMsgInfo, 0 ,5) );
  49. model.setValue("/root/cond/itemnm", getArrayData(sParamMsgInfo, 0 ,6) );
  50. model.setFocus("ipt_chngitemnm");
  51. }
  52. function fSaveExtNm(){
  53. var sRtnParamInfo = "";
  54. var sChngNm = "";
  55. var sChagYn = false;
  56. if(model.getValue("/root/cond/itemorigincd") == "04"){
  57. sChngNm = model.getValue("/root/cond/itemnm")+"("+ model.getValue("/root/main/chngitemnm") +")" ;
  58. }else{
  59. sChngNm = model.getValue("/root/main/chngitemnm");
  60. }
  61. if(model.getValue("/root/cond/status") == "upd"){
  62. model.copyNode("/root/send", "/root/cond");
  63. model.makeValue("/root/send/chngitemnm", sChngNm );
  64. submit("TXMNR06101") ;
  65. sChagYn = model.getValue("/root/temp/rtnvalue/rtninfo");
  66. }
  67. sRtnParamInfo += model.getValue("/root/cond/status") + "▦"
  68. + model.getValue("/root/cond/carerecseqno") + "▦"
  69. + model.getValue("/root/cond/itemnm")+"("+ model.getValue("/root/main/chngitemnm") +")" + "▦"
  70. + sChngNm + "▦"
  71. + sChagYn + "▩";
  72. opener.javascript.setParameter("SPMNR06100_RtnParam", sRtnParamInfo);
  73. window.close();
  74. }
  75. ]]>
  76. </script>
  77. </xhtml:head>
  78. <xhtml:body pagewidth="265" pageheight="70" guideline="1,1190;1,240;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  79. <group id="group2" style="left:0px; top:0px; width:245px; height:70px; ">
  80. <button id="btn_close" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:184px; top:45px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  81. <caption>닫기</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. window.close();
  85. ]]>
  86. </script>
  87. </button>
  88. <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:124px; top:45px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  89. <caption>확인</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. fSaveExtNm();
  93. ]]>
  94. </script>
  95. </button>
  96. <shape id="roundrect3" class="roundrect_btnset" appearance="roundrect" style="left:0px; top:0px; width:241px; height:40px; background-color:#f2fafe; border-color:#7cbbdd; "/>
  97. <caption id="caption2" style="left:15px; top:12px; width:40px; height:20px; ">확장명</caption>
  98. <input id="ipt_chngitemnm" ref="/root/main/chngitemnm" style="left:57px; top:11px; width:170px; height:19px; ">
  99. <script type="javascript" ev:event="onkeyup">
  100. <![CDATA[
  101. if(event.keyCode == "13"){
  102. setInputNodeCurText();
  103. btn_save.dispatch("DOMActivate");
  104. }
  105. ]]>
  106. </script>
  107. </input>
  108. </group>
  109. </xhtml:body>
  110. </xhtml:html>