SPMMO25200_임플란트변경해지신청서.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. <main>
  10. <implantinfo>
  11. <instcd/>
  12. <genrdd/>
  13. <genrno/>
  14. <histno/>
  15. <pid/>
  16. <hngnm/>
  17. <tootfact/>
  18. <regstatus/>
  19. <canceltodd/>
  20. <cancelgubun/>
  21. <cancelitem/>
  22. <cancelresn/>
  23. <cancelbefore/>
  24. <cancelafter/>
  25. <cancelgubunB/>
  26. <cancelgubunC/>
  27. <cancelresnC/>
  28. <cancelresnD/>
  29. <cancelresnE/>
  30. </implantinfo>
  31. </main>
  32. <hidden/>
  33. <temp/>
  34. <init>
  35. </init>
  36. <send>
  37. <savedata>
  38. </savedata>
  39. <reqdata/>
  40. </send>
  41. </root>
  42. </instance>
  43. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  44. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  45. <submission id="TRMMO25101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/implantinfo"/>
  46. <submission id="TXMMO25201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/result/serdiagappinfo"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. var sRegStatus = model.getValue("/root/main/implantinfo/regstatus"); // 등록상태(A:등록, B:시술중지, C:변경, D:해지, E:취소)
  50. model.makeValue("/root/main/implantinfo/cancelgubunB", "");
  51. model.makeValue("/root/main/implantinfo/cancelgubunC", "");
  52. model.makeValue("/root/main/implantinfo/cancelresnC", "");
  53. model.makeValue("/root/main/implantinfo/cancelresnD", "");
  54. model.makeValue("/root/main/implantinfo/cancelresnE", "");
  55. fDisabledCheck(sRegStatus);
  56. if (sRegStatus == "B") {
  57. model.setValue("/root/main/implantinfo/cancelgubunB", model.getValue("/root/main/implantinfo/cancelgubun"));
  58. } else if (sRegStatus == "C") {
  59. model.setValue("/root/main/implantinfo/cancelresnC", model.getValue("/root/main/implantinfo/cancelresn"));
  60. model.setValue("/root/main/implantinfo/cancelgubunC", model.getValue("/root/main/implantinfo/cancelgubun"));
  61. } else if (sRegStatus == "D") {
  62. model.setValue("/root/main/implantinfo/cancelresnD", model.getValue("/root/main/implantinfo/cancelresn"));
  63. } else if (sRegStatus == "E") {
  64. model.setValue("/root/main/implantinfo/cancelresnE", model.getValue("/root/main/implantinfo/cancelresn"));
  65. }
  66. model.refresh();
  67. ]]>
  68. </script>
  69. </model>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  75. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  76. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  77. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  78. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04200.js"/>
  79. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  80. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  81. <script type="javascript">
  82. <![CDATA[
  83. function fDisabledCheck(sRegStatus) { // 등록상태(A:등록, B:시술중지, C:변경, D:해지, E:취소)
  84. if(sRegStatus == "A") {
  85. grp_implantB.disabled = true;
  86. grp_implantC.disabled = true;
  87. grp_implantD.disabled = true;
  88. grp_implantE.disabled = true;
  89. }else if(sRegStatus == "B") {
  90. grp_implantB.disabled = false;
  91. grp_implantC.disabled = true;
  92. grp_implantD.disabled = true;
  93. grp_implantE.disabled = true;
  94. model.setValue("/root/main/implantinfo/cancelgubunB", "A");
  95. rdo_cancelgubunC.disabled = true;
  96. } else if (sRegStatus == "C") {
  97. grp_implantB.disabled = true;
  98. grp_implantC.disabled = false;
  99. grp_implantD.disabled = true;
  100. grp_implantE.disabled = true;
  101. } else if (sRegStatus == "D") {
  102. grp_implantB.disabled = true;
  103. grp_implantC.disabled = true;
  104. grp_implantD.disabled = false;
  105. grp_implantE.disabled = true;
  106. } else if (sRegStatus == "E") {
  107. grp_implantB.disabled = true;
  108. grp_implantC.disabled = true;
  109. grp_implantD.disabled = true;
  110. grp_implantE.disabled = false;
  111. }
  112. model.refresh();
  113. }
  114. ]]>
  115. </script>
  116. </xhtml:head>
  117. <xhtml:body pagewidth="480" pageheight="380" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  118. <caption id="caption14" class="tit_2" style="left:0px; top:0px; width:240px; height:13px; vertical-align:middle; ">임플란트 중단/변경/해지/취소 신청서</caption>
  119. <line id="line1" class="line_1" style="x1:0px; y1:15px; x2:450px; y2:15px; "/>
  120. <caption id="caption13" class="cell_1" style="left:230px; top:20px; width:85px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
  121. <caption id="caption15" class="cell_1" style="left:0px; top:45px; width:85px; height:23px; text-align:center; vertical-align:middle; ">치식번호</caption>
  122. <caption id="caption16" class="cell_1" style="left:0px; top:70px; width:85px; height:23px; text-align:center; vertical-align:middle; ">등록구분</caption>
  123. <input id="ipt_pid" ref="/root/main/implantinfo/pid" disabled="true" disable.background-color="#ffffff" style="left:90px; top:22px; width:130px; height:19px; "/>
  124. <input id="ipt_hngnm" ref="/root/main/implantinfo/hngnm" disabled="true" disable.background-color="#ffffff" style="left:319px; top:22px; width:130px; height:19px; "/>
  125. <input id="ipt_tootfact1" ref="/root/main/implantinfo/tootfact" disabled="true" disable.background-color="#ffffff" style="left:90px; top:46px; width:70px; height:19px; "/>
  126. <select1 id="sel_regkind1" ref="/root/main/implantinfo/regstatus" appearance="full" cols="5" rows="1" overflow="visible" style="left:90px; top:71px; width:325px; height:15px; border-style:none; ">
  127. <choices>
  128. <item>
  129. <label>등록</label>
  130. <value>A</value>
  131. </item>
  132. <item>
  133. <label>시술중지</label>
  134. <value>B</value>
  135. </item>
  136. <item>
  137. <label>변경</label>
  138. <value>C</value>
  139. </item>
  140. <item>
  141. <label>해지</label>
  142. <value>D</value>
  143. </item>
  144. <item>
  145. <label>취소</label>
  146. <value>E</value>
  147. </item>
  148. </choices>
  149. <script type="javascript" ev:event="xforms-value-changed">
  150. <![CDATA[
  151. var sRegStatus = model.getValue("root/main/implantinfo/regstatus"); // 등록상태(A:등록, B:시술중지, C:변경, D:해지, E:취소)
  152. fDisabledCheck(sRegStatus);
  153. ]]>
  154. </script>
  155. </select1>
  156. <group id="grp_implantB" overflow="hidden" style="left:0px; top:95px; width:450px; height:50px; ">
  157. <caption id="caption6" class="cell_1" style="left:0px; top:0px; width:85px; height:50px; text-align:center; vertical-align:middle; ">시술중지</caption>
  158. <caption id="caption1" class="cell_1" style="left:90px; top:1px; width:85px; height:23px; text-align:center; vertical-align:middle; ">시술중지일</caption>
  159. <caption id="caption2" class="cell_1" style="left:90px; top:26px; width:85px; height:23px; text-align:center; vertical-align:middle; ">사유</caption>
  160. <input id="input1" ref="/root/main/implantinfo/canceltodd" inputtype="date" style="left:178px; top:4px; width:130px; height:19px; "/>
  161. <select1 id="radio1" ref="/root/main/implantinfo/cancelgubunB" appearance="full" cols="1" rows="1" overflow="visible" style="left:178px; top:30px; width:235px; height:15px; border-style:none; ">
  162. <choices>
  163. <item>
  164. <label>2단계 시술 실패(골유착 실패)</label>
  165. <value>A</value>
  166. </item>
  167. </choices>
  168. </select1>
  169. </group>
  170. <group id="grp_implantC" overflow="hidden" style="left:0px; top:147px; width:450px; height:123px; ">
  171. <caption id="caption7" class="cell_1" style="left:0px; top:0px; width:85px; height:120px; text-align:center; vertical-align:middle; ">변경</caption>
  172. <caption id="caption8" class="cell_1" style="left:90px; top:0px; width:85px; height:23px; text-align:center; vertical-align:middle; ">신청구분</caption>
  173. <caption id="caption9" class="cell_1" style="left:90px; top:25px; width:85px; height:23px; text-align:center; vertical-align:middle; ">사유</caption>
  174. <caption id="caption17" class="cell_1" style="left:90px; top:49px; width:85px; height:23px; text-align:center; vertical-align:middle; ">항목</caption>
  175. <caption id="caption18" class="cell_1" style="left:90px; top:74px; width:85px; height:23px; text-align:center; vertical-align:middle; ">변경 전</caption>
  176. <caption id="caption19" class="cell_1" style="left:90px; top:98px; width:85px; height:23px; text-align:center; vertical-align:middle; ">변경 후</caption>
  177. <select1 id="rdo_cancelgubunC" ref="/root/main/implantinfo/cancelgubunC" appearance="full" cols="3" rows="1" overflow="visible" style="left:178px; top:5px; width:235px; height:15px; border-style:none; ">
  178. <choices>
  179. <item>
  180. <label>수진자 요청</label>
  181. <value>A</value>
  182. </item>
  183. <item>
  184. <label>요양기관 요청</label>
  185. <value>B</value>
  186. </item>
  187. <item>
  188. <label>기타</label>
  189. <value>C</value>
  190. </item>
  191. </choices>
  192. </select1>
  193. <input id="input2" ref="/root/main/implantinfo/cancelresnC" style="left:178px; top:27px; width:272px; height:19px; "/>
  194. <input id="input3" ref="/root/main/implantinfo/cancelitem" style="left:178px; top:51px; width:107px; height:19px; "/>
  195. <input id="input4" ref="/root/main/implantinfo/cancelbefore" style="left:178px; top:76px; width:272px; height:19px; "/>
  196. <input id="input5" ref="/root/main/implantinfo/cancelafter" style="left:178px; top:101px; width:272px; height:19px; "/>
  197. </group>
  198. <group id="grp_implantD" overflow="hidden" style="left:0px; top:272px; width:450px; height:25px; ">
  199. <caption id="caption10" class="cell_1" style="left:0px; top:0px; width:85px; height:23px; text-align:center; vertical-align:middle; ">해지</caption>
  200. <caption id="caption12" class="cell_1" style="left:90px; top:0px; width:85px; height:23px; text-align:center; vertical-align:middle; ">사유</caption>
  201. <input id="input6" ref="/root/main/implantinfo/cancelresnD" style="left:178px; top:4px; width:272px; height:19px; "/>
  202. </group>
  203. <group id="grp_implantE" overflow="hidden" style="left:0px; top:296px; width:450px; height:29px; ">
  204. <caption id="caption3" class="cell_1" style="left:0px; top:2px; width:85px; height:23px; text-align:center; vertical-align:middle; ">취소</caption>
  205. <caption id="caption5" class="cell_1" style="left:90px; top:2px; width:85px; height:23px; text-align:center; vertical-align:middle; ">사유</caption>
  206. <input id="input7" ref="/root/main/implantinfo/cancelresnE" style="left:178px; top:4px; width:272px; height:19px; "/>
  207. </group>
  208. <caption id="caption26" class="cell_1" style="left:1px; top:20px; width:85px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
  209. <button id="btn_save" class="btn4_letter2" style="left:333px; top:330px; width:56px; height:22px; ">
  210. <caption>저장</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. var sRegStatus = model.getValue("root/main/implantinfo/regstatus"); // 등록상태(A:등록, B:시술중지, C:변경, D:해지, E:취소)
  214. if(sRegStatus =="") {
  215. messageBox ( "등록구분이 없습니다.", "C" );
  216. return;
  217. } else if (sRegStatus == "A") {
  218. model.setValue("/root/main/implantinfo/cancelresn", "");
  219. model.setValue("/root/main/implantinfo/canceltodd", "");
  220. model.setValue("/root/main/implantinfo/cancelgubun", "");
  221. model.setValue("/root/main/implantinfo/cancelitem", "");
  222. model.setValue("/root/main/implantinfo/cancelbefore", "");
  223. model.setValue("/root/main/implantinfo/cancelafter", "");
  224. } else if (sRegStatus == "B") {
  225. if(model.getValue("root/main/implantinfo/canceltodd") == "") {
  226. messageBox ( "시술중지 일자가 없습니다.", "C" );
  227. return;
  228. }
  229. model.setValue("/root/main/implantinfo/cancelresn", "2단계 시술 실패(골유착 실패)");
  230. model.setValue("/root/main/implantinfo/canceltodd", model.getValue("root/main/implantinfo/canceltodd"));
  231. model.setValue("/root/main/implantinfo/cancelgubun", model.getValue("root/main/implantinfo/cancelgubunB"));
  232. model.setValue("/root/main/implantinfo/cancelitem", "");
  233. model.setValue("/root/main/implantinfo/cancelbefore", "");
  234. model.setValue("/root/main/implantinfo/cancelafter", "");
  235. } else if (sRegStatus == "C") {
  236. if(model.getValue("root/main/implantinfo/cancelgubunC") == "") {
  237. messageBox ( "변경요청 신청구분이 없습니다.", "C" );
  238. return;
  239. }
  240. if(model.getValue("root/main/implantinfo/cancelitem") == "") {
  241. messageBox ( "변경요청 변경항목이 없습니다.", "C" );
  242. return;
  243. }
  244. if(model.getValue("root/main/implantinfo/cancelbefore") == "") {
  245. messageBox ( "변경요청 변경전 항목이 없습니다.", "C" );
  246. return;
  247. }
  248. if(model.getValue("root/main/implantinfo/cancelafter") == "") {
  249. messageBox ( "변경요청 변경후 항목이 없습니다.", "C" );
  250. return;
  251. }
  252. if(model.getValue("root/main/implantinfo/cancelresnC") == "") {
  253. messageBox ( "변경요청 변경사유 항목이 없습니다.", "C" );
  254. return;
  255. }
  256. model.setValue("/root/main/implantinfo/cancelresn", model.getValue("root/main/implantinfo/cancelresnC"));
  257. model.setValue("/root/main/implantinfo/canceltodd", "");
  258. model.setValue("/root/main/implantinfo/cancelgubun", model.getValue("root/main/implantinfo/cancelgubunC"));
  259. model.setValue("/root/main/implantinfo/cancelitem", model.getValue("root/main/implantinfo/cancelitem"));
  260. model.setValue("/root/main/implantinfo/cancelbefore", model.getValue("root/main/implantinfo/cancelbefore"));
  261. model.setValue("/root/main/implantinfo/cancelafter", model.getValue("root/main/implantinfo/cancelafter"));
  262. } else if (sRegStatus == "D") {
  263. if(model.getValue("root/main/implantinfo/cancelresnD") == "") {
  264. messageBox ( "변경요청 해지사유 항목이 없습니다.", "C" );
  265. return;
  266. }
  267. model.setValue("/root/main/implantinfo/cancelresn", model.getValue("root/main/implantinfo/cancelresnD"));
  268. model.setValue("/root/main/implantinfo/canceltodd", "");
  269. model.setValue("/root/main/implantinfo/cancelgubun", "");
  270. model.setValue("/root/main/implantinfo/cancelitem", "");
  271. model.setValue("/root/main/implantinfo/cancelbefore", "");
  272. model.setValue("/root/main/implantinfo/cancelafter", "");
  273. } else if (sRegStatus == "E") {
  274. if(model.getValue("root/main/implantinfo/cancelresnE") == "") {
  275. messageBox ( "변경요청 취소사유 항목이 없습니다.", "C" );
  276. return;
  277. }
  278. model.setValue("/root/main/implantinfo/cancelresn", model.getValue("root/main/implantinfo/cancelresnE"));
  279. model.setValue("/root/main/implantinfo/canceltodd", "");
  280. model.setValue("/root/main/implantinfo/cancelgubun", "");
  281. model.setValue("/root/main/implantinfo/cancelitem", "");
  282. model.setValue("/root/main/implantinfo/cancelbefore", "");
  283. model.setValue("/root/main/implantinfo/cancelafter", "");
  284. }
  285. model.copyNode("/root/send/savedata", "/root/main/implantinfo");
  286. if(submit("TXMMO25201")) {
  287. messageBox ( "저장 되었습니다.", "I" );
  288. }
  289. window.close();
  290. ]]>
  291. </script>
  292. </button>
  293. <button id="btn_exit" class="btn4_letter2" style="left:393px; top:330px; width:56px; height:22px; ">
  294. <caption>종료</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. window.close();
  298. ]]>
  299. </script>
  300. </button>
  301. </xhtml:body>
  302. </xhtml:html>