SPPIZ00600_상병및처방별치식.xrw 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPIZ00600_상병및처방별치식.xrw
  4. * 수정이력
  5. * - 2007.05.08 / 최초작성 / 정주미
  6. *
  7. -->
  8. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>상병별, 처방별 치식 입력</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. <list1>
  17. <toothlist>
  18. <flag/>
  19. <cd/>
  20. <cdnm/>
  21. <rightupper/>
  22. <leftupper/>
  23. <rightlower/>
  24. <leftlower/>
  25. <orddd/>
  26. <toot/>
  27. </toothlist>
  28. </list1>
  29. <list2>
  30. <toothapplist>
  31. <chos/>
  32. <flag/>
  33. <cd/>
  34. <cdnm/>
  35. <rightupper/>
  36. <leftupper/>
  37. <rightlower/>
  38. <leftlower/>
  39. <orddd/>
  40. <toot/>
  41. <row/>
  42. </toothapplist>
  43. </list2>
  44. </main>
  45. <send>
  46. <toothapplist/>
  47. </send>
  48. <init>
  49. <termlist>
  50. <refterm>3</refterm>
  51. </termlist>
  52. </init>
  53. <hidden>
  54. <cond>
  55. <pid/>
  56. <indd/>
  57. <cretno/>
  58. <toot/>
  59. <clamym/>
  60. <clamdg/>
  61. <pidsn/>
  62. <flag/>
  63. <list/>
  64. </cond>
  65. <rslt>
  66. <toothYN/>
  67. <toot/>
  68. <toot1/>
  69. <list/>
  70. </rslt>
  71. <chkflag>
  72. <scndtooth>
  73. <rightupperA/>
  74. <leftupperA/>
  75. <rightlowerA/>
  76. <leftlowerA/>
  77. <trisectionA1/>
  78. <trisectionA2/>
  79. <trisectionA3/>
  80. <trisectionA4/>
  81. <trisectionA5/>
  82. <trisectionA6/>
  83. </scndtooth>
  84. <milktooth>
  85. <rightupperC/>
  86. <leftupperC/>
  87. <rightlowerC/>
  88. <leftlowerC/>
  89. <trisectionC1/>
  90. <trisectionC2/>
  91. <trisectionC3/>
  92. <trisectionC4/>
  93. <trisectionC5/>
  94. <trisectionC6/>
  95. </milktooth>
  96. </chkflag>
  97. <selectedtooth>
  98. <editoothnum>
  99. <rightupper/>
  100. <leftupper/>
  101. <rightlower/>
  102. <leftlower/>
  103. </editoothnum>
  104. <selectednum>
  105. <rightupper/>
  106. <leftupper/>
  107. <rightlower/>
  108. <leftlower/>
  109. </selectednum>
  110. </selectedtooth>
  111. </hidden>
  112. </root>
  113. </instance>
  114. <script type="javascript" ev:event="xforms-ready">
  115. <![CDATA[
  116. fInitialize(); // 화면을 초기화한다.
  117. fCheckAuth(); // 화면 권한을 설정한다.
  118. ]]>
  119. </script>
  120. <submission id="TRPIZ00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/cond" resultref="/root/main"/>
  121. <submission id="TXPIZ00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  122. </model>
  123. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  125. <script type="javascript">
  126. <![CDATA[
  127. var teethArray = new Array(32);
  128. // 화면 권한을 설정한다.
  129. function fCheckAuth() {
  130. /*
  131. if (getAuth() == "") { // (common.js) 현재 화면의 권한 정보를 확인
  132. // 메뉴에서 열리는 화면이 아닌 경우 메뉴가 없는 Local Test를 위해 임시로 설정함
  133. model.setValue("/root/hidden/properties/auth", "11100000"); // RXP권한이 모두 있는 경우
  134. }
  135. */
  136. var xAuth = !checkAuth("X");
  137. btn_confirm.disabled = xAuth; // 확인
  138. btn_unselect.disabled = xAuth;
  139. btn_allscndtooth.disabled = xAuth;
  140. btn_allmilktooth.disabled = xAuth;
  141. trisectionA1.disabled = xAuth;
  142. trisectionA2.disabled = xAuth;
  143. trisectionA3.disabled = xAuth;
  144. trisectionA4.disabled = xAuth;
  145. trisectionA5.disabled = xAuth;
  146. trisectionA6.disabled = xAuth;
  147. trisectionC1.disabled = xAuth;
  148. trisectionC2.disabled = xAuth;
  149. trisectionC3.disabled = xAuth;
  150. trisectionC4.disabled = xAuth;
  151. trisectionC5.disabled = xAuth;
  152. trisectionC6.disabled = xAuth;
  153. rightupperA.disabled = xAuth;
  154. rightupperC.disabled = xAuth;
  155. rightlowerC.disabled = xAuth;
  156. rightlowerA.disabled = xAuth;
  157. leftupperA.disabled = xAuth;
  158. leftupperC.disabled = xAuth;
  159. leftlowerC.disabled = xAuth;
  160. leftlowerA.disabled = xAuth;
  161. /*
  162. // 이전 명세서 조회에서 open 시에 선택되지 않기 위해 각 치식버튼에 권한을 설정해 보았으나
  163. // ev:event="onmousedown"로 인해 선택상태를 변경할 수 있으며
  164. // 이전 명세서 화면이 아닌 일반 심사화면에서 사용시에 초기화 상태가 선택된 상태가 되는 문제점이 있음
  165. buttonA1.disabled = xAuth;
  166. buttonA2.disabled = xAuth;
  167. buttonA3.disabled = xAuth;
  168. buttonA4.disabled = xAuth;
  169. buttonA5.disabled = xAuth;
  170. buttonA6.disabled = xAuth;
  171. buttonA7.disabled = xAuth;
  172. buttonA8.disabled = xAuth;
  173. buttonA9.disabled = xAuth;
  174. buttonA10.disabled = xAuth;
  175. buttonA11.disabled = xAuth;
  176. buttonA12.disabled = xAuth;
  177. buttonA13.disabled = xAuth;
  178. buttonA14.disabled = xAuth;
  179. buttonA15.disabled = xAuth;
  180. buttonA16.disabled = xAuth;
  181. buttonA17.disabled = xAuth;
  182. buttonA18.disabled = xAuth;
  183. buttonA19.disabled = xAuth;
  184. buttonA20.disabled = xAuth;
  185. buttonA21.disabled = xAuth;
  186. buttonA22.disabled = xAuth;
  187. buttonA23.disabled = xAuth;
  188. buttonA24.disabled = xAuth;
  189. buttonA25.disabled = xAuth;
  190. buttonA26.disabled = xAuth;
  191. buttonA27.disabled = xAuth;
  192. buttonA28.disabled = xAuth;
  193. buttonA29.disabled = xAuth;
  194. buttonA30.disabled = xAuth;
  195. buttonA31.disabled = xAuth;
  196. buttonA32.disabled = xAuth;
  197. */
  198. }
  199. // 화면을 초기화한다.
  200. function fInitialize() {
  201. //copyNodeType("/root/main/list2","/root/hidden/cond/list","replace");
  202. //model.refresh();
  203. model.removeNodeset("/root/main/list1/toothlist");
  204. //if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  205. // [2007.05.16] 테스트를 위해 pid 체크를 임시로 주석처리함
  206. var pid = model.getValue("/root/hidden/cond/pid");
  207. if (pid) {
  208. // 20100416 조회기간 추가
  209. model.makeValue("/root/hidden/cond/refterm",model.getValue("/root/init/termlist/refterm"));
  210. submit("TRPIZ00601", false);
  211. var toothlistcnt = getNodesetCount("/root/main/list1/toothlist");
  212. if (toothlistcnt > 0 ) {
  213. var milktoothstr = "ABCDE000";
  214. var toothList = instance1.selectSingleNode("/root/main/list1");
  215. var toothNode = toothList.childNodes; //root/main/list1/toothlist
  216. for (var i = 1; i <= toothNode.length; i++) {
  217. var toot = model.getValue("/root/main/list1/toothlist[" + i + "]/toot");
  218. var subTootStr = "";
  219. for (var inx = 0; inx < toot.length; inx++) {
  220. var tootnum = toot.substr(inx,1);
  221. if (tootnum == "*") { // 선택된 영구치의 경우 1~8 사이 숫자로 표시한다.
  222. if (inx < 8) {
  223. subTootStr += (8 - inx);
  224. }
  225. else if (inx > 7 && inx < 16) {
  226. subTootStr += (inx - 7);
  227. }
  228. else if (inx > 15 && inx < 24) {
  229. subTootStr += (24 - inx);
  230. } else {
  231. subTootStr += (inx - 23);
  232. }
  233. } else if (tootnum == "#") { // 선택된 유치의 경우 A~E 사이 알파벳으로 표시한다.
  234. if (inx < 8) {
  235. subTootStr += milktoothstr.charAt(7 - inx);
  236. }
  237. else if (inx > 7 && inx < 16) {
  238. subTootStr += milktoothstr.charAt(inx - 8);
  239. }
  240. else if (inx > 15 && inx < 24) {
  241. subTootStr += milktoothstr.charAt(23 - inx);
  242. } else {
  243. subTootStr += milktoothstr.charAt(inx - 24);
  244. }
  245. } else { // if (tootnum == "0") 선택되지 않은 경우 공백으로 처리한다.
  246. subTootStr += " ";
  247. }
  248. }
  249. model.setValue("/root/main/list1/toothlist[" + i + "]/rightupper", subTootStr.substr(0, 8));
  250. model.setValue("/root/main/list1/toothlist[" + i + "]/leftupper", subTootStr.substr(8, 8));
  251. model.setValue("/root/main/list1/toothlist[" + i + "]/rightlower", subTootStr.substr(16, 8));
  252. model.setValue("/root/main/list1/toothlist[" + i + "]/leftlower", subTootStr.substr(24, 8));
  253. }
  254. }
  255. var toothapplistcnt = getNodesetCount("/root/main/list2/toothapplist");
  256. if (toothapplistcnt > 0 ) {
  257. var milktoothstr = "ABCDE000";
  258. var toothList = instance1.selectSingleNode("/root/main/list2");
  259. var toothNode = toothList.childNodes; //root/main/list1/toothlist
  260. for (var i = 1; i <= toothNode.length; i++) {
  261. var toot = model.getValue("/root/main/list2/toothapplist[" + i + "]/toot");
  262. var subTootStr = "";
  263. for (var inx = 0; inx < toot.length; inx++) {
  264. var tootnum = toot.substr(inx,1);
  265. if (tootnum == "*") { // 선택된 영구치의 경우 1~8 사이 숫자로 표시한다.
  266. if (inx < 8) {
  267. subTootStr += (8 - inx);
  268. }
  269. else if (inx > 7 && inx < 16) {
  270. subTootStr += (inx - 7);
  271. }
  272. else if (inx > 15 && inx < 24) {
  273. subTootStr += (24 - inx);
  274. } else {
  275. subTootStr += (inx - 23);
  276. }
  277. } else if (tootnum == "#") { // 선택된 유치의 경우 A~E 사이 알파벳으로 표시한다.
  278. if (inx < 8) {
  279. subTootStr += milktoothstr.charAt(7 - inx);
  280. }
  281. else if (inx > 7 && inx < 16) {
  282. subTootStr += milktoothstr.charAt(inx - 8);
  283. }
  284. else if (inx > 15 && inx < 24) {
  285. subTootStr += milktoothstr.charAt(23 - inx);
  286. } else {
  287. subTootStr += milktoothstr.charAt(inx - 24);
  288. }
  289. } else { // if (tootnum == "0") 선택되지 않은 경우 공백으로 처리한다.
  290. subTootStr += " ";
  291. }
  292. }
  293. model.setValue("/root/main/list2/toothapplist[" + i + "]/rightupper", subTootStr.substr(0, 8));
  294. model.setValue("/root/main/list2/toothapplist[" + i + "]/leftupper", subTootStr.substr(8, 8));
  295. model.setValue("/root/main/list2/toothapplist[" + i + "]/rightlower", subTootStr.substr(16, 8));
  296. model.setValue("/root/main/list2/toothapplist[" + i + "]/leftlower", subTootStr.substr(24, 8));
  297. }
  298. copyNodeType("/root/main/list2","/root/hidden/cond/list","before");
  299. } else {
  300. copyNodeType("/root/main/list2","/root/hidden/cond/list","replace");
  301. }
  302. model.refresh();
  303. }
  304. var openerteeth = model.getValue("/root/hidden/cond/toot");
  305. fSetToothInput(openerteeth); // 입력된 치식 번호를 img에 맞춰 표시한다.
  306. }
  307. // 입력된 치식 번호를 img에 맞춰 표시한다.
  308. function fSetToothInput(openerteeth) {
  309. if (openerteeth) {
  310. if (openerteeth == "-" || openerteeth.length != 32) { // 치식 해당사항 없음의 경우임
  311. for (var i = 0; i < 32; i++) {
  312. teethArray[i] = "0";
  313. var btnInx = i + 1;
  314. var btnObj = document.controls("buttonC"+btnInx);
  315. if (btnObj != null) {
  316. btnObj.disabled = true;
  317. }
  318. btnObj = document.controls("buttonA"+btnInx);
  319. btnObj.disabled = true;
  320. }
  321. model.setValue("/root/hidden/selectedtooth/editoothnum/rightupper", "00000000");
  322. model.setValue("/root/hidden/selectedtooth/editoothnum/leftupper", "00000000");
  323. model.setValue("/root/hidden/selectedtooth/editoothnum/rightlower", "00000000");
  324. model.setValue("/root/hidden/selectedtooth/editoothnum/leftlower", "00000000");
  325. model.refresh();
  326. return;
  327. }
  328. for (var i = 0; i < openerteeth.length; i++) {
  329. var subStr = openerteeth.substr(i,1);
  330. teethArray[i] = subStr;
  331. var btnInx = i + 1;
  332. if (subStr == "#") { // 유치에 대한 선택을 초기 설정한다.
  333. var btnObj = document.controls("buttonC"+btnInx);
  334. if (btnObj != null) {
  335. btnObj.disabled = false;
  336. }
  337. btnObj = document.controls("buttonA"+btnInx);
  338. btnObj.disabled = true;
  339. }
  340. else if (subStr == "*") { // 영구치에 대한 선택을 초기 설정한다.
  341. var btnObj = document.controls("buttonC"+btnInx);
  342. if (btnObj != null) {
  343. btnObj.disabled = true;
  344. }
  345. btnObj = document.controls("buttonA"+btnInx);
  346. btnObj.disabled = false;
  347. } else {
  348. var btnObj = document.controls("buttonC"+btnInx);
  349. if (btnObj != null) {
  350. btnObj.disabled = true;
  351. }
  352. btnObj = document.controls("buttonA"+btnInx);
  353. btnObj.disabled = true;
  354. }
  355. }
  356. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  357. } else { // opener에서 전달받은 치식 값이 null 인 경우
  358. for (var i = 0; i < 32; i++) {
  359. teethArray[i] = "0";
  360. var btnInx = i + 1;
  361. var btnObj = document.controls("buttonC"+btnInx);
  362. if (btnObj != null) {
  363. btnObj.disabled = true;
  364. }
  365. btnObj = document.controls("buttonA"+btnInx);
  366. btnObj.disabled = true;
  367. }
  368. model.setValue("/root/hidden/selectedtooth/editoothnum/rightupper", "00000000");
  369. model.setValue("/root/hidden/selectedtooth/editoothnum/leftupper", "00000000");
  370. model.setValue("/root/hidden/selectedtooth/editoothnum/rightlower", "00000000");
  371. model.setValue("/root/hidden/selectedtooth/editoothnum/leftlower", "00000000");
  372. model.refresh();
  373. }
  374. }
  375. // 영구치를 선택한 경우
  376. function fClickScndTooth(btnInx) {
  377. fSelectTooth("*", "#", btnInx); // 영구치로 선택을 설정한다.
  378. }
  379. // 유치를 선택한 경우
  380. function fClickMilkTooth(btnInx) {
  381. fSelectTooth("#", "*", btnInx);
  382. }
  383. function fSelectTooth(selchar, delchar, btnInx) {
  384. var btnObj = document.controls(event.target);
  385. btnInx--;
  386. var teethVal = teethArray[btnInx];
  387. if (teethVal == "0") { // 선택되지 않은 상태였음
  388. btnObj.disabled = false;
  389. teethArray[btnInx] = selchar;
  390. } else if (teethVal == selchar) { // 기존에 동일한 치아가 선택되어 있어, 선택을 취소하는 경우임
  391. btnObj.disabled = true;
  392. teethArray[btnInx] = "0";
  393. } else if (teethVal == delchar) { // 치식번호가 동일한 영구치(유치)가 선택된 경우, 기존 선택을 취소하고 설정한다.
  394. btnObj.disabled = false;
  395. teethArray[btnInx++] = selchar;
  396. if (delchar == "*") {
  397. btnObj = document.controls("buttonA" + btnInx);
  398. btnObj.disabled = true;
  399. } else if (delchar == "#") {
  400. btnObj = document.controls("buttonC" + btnInx);
  401. btnObj.disabled = true;
  402. }
  403. }
  404. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  405. }
  406. // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  407. function fSetTootCd() {
  408. var milktoothstr = "ABCDE000";
  409. var subTootStr = "";
  410. var tmpStr = "";
  411. for (var i = 0; i < 32; i++) {
  412. tmpStr += teethArray[i];
  413. if (teethArray[i] == "*") {
  414. if (i < 8) {
  415. subTootStr += (8 - i);
  416. }
  417. else if (i > 7 && i < 16) {
  418. subTootStr += (i - 7);
  419. }
  420. else if (i > 15 && i < 24) {
  421. subTootStr += (24 - i);
  422. } else {
  423. subTootStr += (i - 23);
  424. }
  425. } else if (teethArray[i] == "#") {
  426. if (i < 8) {
  427. subTootStr += milktoothstr.charAt(7 - i);
  428. }
  429. else if (i > 7 && i < 16) {
  430. subTootStr += milktoothstr.charAt(i - 8);
  431. }
  432. else if (i > 15 && i < 24) {
  433. subTootStr += milktoothstr.charAt(23 - i);
  434. } else {
  435. subTootStr += milktoothstr.charAt(i - 24);
  436. }
  437. } else { // if (teethArray[i] == "0")
  438. subTootStr += " ";
  439. }
  440. }
  441. // 명세서에 표시되는 EDI청구용 치식 표기를 설정한다.
  442. model.setValue("/root/hidden/selectedtooth/editoothnum/rightupper", tmpStr.substr(0, 8));
  443. model.setValue("/root/hidden/selectedtooth/editoothnum/leftupper", tmpStr.substr(8, 8));
  444. model.setValue("/root/hidden/selectedtooth/editoothnum/rightlower", tmpStr.substr(16, 8));
  445. model.setValue("/root/hidden/selectedtooth/editoothnum/leftlower", tmpStr.substr(24, 8));
  446. // 현재 치식 입력화면에서 보여지는 번호를 표시한다.
  447. model.setValue("root/hidden/selectedtooth/selectednum/rightupper", subTootStr.substr(0, 8));
  448. model.setValue("/root/hidden/selectedtooth/selectednum/leftupper", subTootStr.substr(8, 8));
  449. model.setValue("/root/hidden/selectedtooth/selectednum/rightlower", subTootStr.substr(16, 8));
  450. model.setValue("/root/hidden/selectedtooth/selectednum/leftlower", subTootStr.substr(24, 8));
  451. model.refresh();
  452. }
  453. // "전체취소" Btn
  454. function fUnSelectAllTooth() {
  455. model.resetInstanceNode("/root/hidden/chkflag/scndtooth");
  456. model.resetInstanceNode("/root/hidden/chkflag/milktooth");
  457. model.resetInstanceNode("/root/hidden/selectedtooth/selectednum");
  458. for (var i = 0; i < 32; i++) {
  459. var btnInx = i + 1;
  460. var btnObj = document.controls("buttonC"+btnInx); // 유치에 대한 선택을 초기화 한다.
  461. if (btnObj != null) {
  462. btnObj.disabled = true;
  463. }
  464. btnObj = document.controls("buttonA"+btnInx); // 영구치에 대한 선택을 초기화 한다.
  465. btnObj.disabled = true;
  466. teethArray[i] = "0";
  467. }
  468. model.setValue("/root/hidden/selectedtooth/editoothnum/rightupper", "00000000");
  469. model.setValue("/root/hidden/selectedtooth/editoothnum/leftupper", "00000000");
  470. model.setValue("/root/hidden/selectedtooth/editoothnum/rightlower", "00000000");
  471. model.setValue("/root/hidden/selectedtooth/editoothnum/leftlower", "00000000");
  472. model.refresh();
  473. }
  474. // "전악 (영구치)" Btn
  475. function fSelectAllScndTooth() {
  476. model.resetInstanceNode("/root/hidden/chkflag/milktooth");
  477. model.setValue("/root/hidden/chkflag/scndtooth/rightupperA", "Y");
  478. model.setValue("/root/hidden/chkflag/scndtooth/leftupperA", "Y");
  479. model.setValue("/root/hidden/chkflag/scndtooth/rightlowerA", "Y");
  480. model.setValue("/root/hidden/chkflag/scndtooth/leftlowerA", "Y");
  481. model.setValue("/root/hidden/chkflag/scndtooth/trisectionA1", "Y");
  482. model.setValue("/root/hidden/chkflag/scndtooth/trisectionA2", "Y");
  483. model.setValue("/root/hidden/chkflag/scndtooth/trisectionA3", "Y");
  484. model.setValue("/root/hidden/chkflag/scndtooth/trisectionA4", "Y");
  485. model.setValue("/root/hidden/chkflag/scndtooth/trisectionA5", "Y");
  486. model.setValue("/root/hidden/chkflag/scndtooth/trisectionA6", "Y");
  487. for (var i = 0; i < 32; i++) {
  488. var btnInx = i + 1;
  489. // 유치에 대한 선택을 초기화 한다.
  490. var btnObj = document.controls("buttonC"+btnInx);
  491. if (btnObj != null) {
  492. btnObj.disabled = true;
  493. }
  494. // 영구치에 대한 선택을 설정한다.
  495. btnObj = document.controls("buttonA"+btnInx);
  496. btnObj.disabled = false;
  497. teethArray[i] = "*";
  498. }
  499. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  500. }
  501. // "전악 (유치)" Btn
  502. function fSelectAllMilkTooth() {
  503. model.resetInstanceNode("/root/hidden/chkflag/scndtooth");
  504. model.setValue("/root/hidden/chkflag/milktooth/rightupperC", "Y");
  505. model.setValue("/root/hidden/chkflag/milktooth/leftupperC", "Y");
  506. model.setValue("/root/hidden/chkflag/milktooth/rightlowerC", "Y");
  507. model.setValue("/root/hidden/chkflag/milktooth/leftlowerC", "Y");
  508. model.setValue("/root/hidden/chkflag/milktooth/trisectionC1", "Y");
  509. model.setValue("/root/hidden/chkflag/milktooth/trisectionC2", "Y");
  510. model.setValue("/root/hidden/chkflag/milktooth/trisectionC3", "Y");
  511. model.setValue("/root/hidden/chkflag/milktooth/trisectionC4", "Y");
  512. model.setValue("/root/hidden/chkflag/milktooth/trisectionC5", "Y");
  513. model.setValue("/root/hidden/chkflag/milktooth/trisectionC6", "Y");
  514. for (var i = 0; i < 32; i++) {
  515. var btnInx = i + 1;
  516. // 영구치에 대한 선택을 초기화 한다.
  517. var btnObj = document.controls("buttonA"+btnInx);
  518. btnObj.disabled = true;
  519. // 유치에 대한 선택을 설정한다.
  520. btnObj = document.controls("buttonC"+btnInx);
  521. if (btnObj != null) {
  522. btnObj.disabled = false;
  523. teethArray[i] = "#";
  524. } else {
  525. teethArray[i] = "0";
  526. }
  527. }
  528. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  529. }
  530. // 지정된 영역의 영구치를 선택한다.
  531. function fSelectToothGroupA(from, to) {
  532. var chkObj = document.controls(event.target);
  533. var chkId = chkObj.attribute("id");
  534. var chkFlag = "/root/hidden/chkflag/scndtooth/"+chkId;
  535. var isSelected = model.getValue(chkFlag);
  536. if (isSelected == "") {
  537. model.setValue(chkFlag, "Y");
  538. for (var i = from; i < to; i++) {
  539. var btnInx = i + 1;
  540. // 유치에 대한 선택을 초기화 한다.
  541. var btnObj = document.controls("buttonC"+btnInx);
  542. if (btnObj != null) {
  543. btnObj.disabled = true;
  544. }
  545. // 영구치에 대한 선택을 설정한다.
  546. btnObj = document.controls("buttonA"+btnInx);
  547. btnObj.disabled = false;
  548. teethArray[i] = "*";
  549. }
  550. } else {
  551. model.resetInstanceNode(chkFlag);
  552. for (var i = from; i < to; i++) {
  553. var btnInx = i + 1;
  554. // 영구치에 대한 선택을 취소한다.
  555. var btnObj = document.controls("buttonA"+btnInx);
  556. btnObj.disabled = true;
  557. teethArray[i] = "0";
  558. }
  559. }
  560. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  561. }
  562. // 지정된 영역의 유치를 선택한다.
  563. function fSelectToothGroupC(from, to) {
  564. var chkObj = document.controls(event.target);
  565. var chkId = chkObj.attribute("id");
  566. var chkFlag = "/root/hidden/chkflag/milktooth/"+chkId;
  567. var isSelected = model.getValue(chkFlag);
  568. if (isSelected == "") {
  569. model.setValue(chkFlag, "Y");
  570. for (var i = from; i < to; i++) {
  571. var btnInx = i + 1;
  572. // 영구치에 대한 선택을 초기화 한다.
  573. var btnObj = document.controls("buttonA"+btnInx);
  574. btnObj.disabled = true;
  575. // 유치에 대한 선택을 설정한다.
  576. btnObj = document.controls("buttonC"+btnInx);
  577. if (btnObj != null) {
  578. btnObj.disabled = false;
  579. teethArray[i] = "#";
  580. } else {
  581. teethArray[i] = "0";
  582. }
  583. }
  584. } else {
  585. model.resetInstanceNode(chkFlag);
  586. for (var i = from; i < to; i++) {
  587. var btnInx = i + 1;
  588. // 유치에 대한 선택을 취소한다.
  589. var btnObj = document.controls("buttonC"+btnInx);
  590. if (btnObj != null) {
  591. btnObj.disabled = true;
  592. }
  593. teethArray[i] = "0";
  594. }
  595. }
  596. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  597. }
  598. ]]>
  599. </script>
  600. </xhtml:head>
  601. <xhtml:body pagewidth="741" pageheight="772" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  602. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:724px; height:745px; ">
  603. <caption id="caption0" class="tit_2" style="left:5px; top:10px; width:74px; height:13px; ">치식 입력</caption>
  604. <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:724px; y2:25px; "/>
  605. <caption id="caption4" class="cell_1" style="left:0px; top:30px; width:75px; height:23px; ">EDI 치식</caption>
  606. <output id="opt_toot1" ref="/root/hidden/selectedtooth/editoothnum/rightupper" class="output_fix" style="left:78px; top:31px; width:58px; height:19px; "/>
  607. <output id="opt_toot2" ref="/root/hidden/selectedtooth/editoothnum/leftupper" class="output_fix" style="left:139px; top:31px; width:58px; height:19px; "/>
  608. <output id="opt_toot3" ref="/root/hidden/selectedtooth/editoothnum/rightlower" class="output_fix" style="left:200px; top:31px; width:58px; height:19px; "/>
  609. <output id="opt_toot4" ref="/root/hidden/selectedtooth/editoothnum/leftlower" class="output_fix" style="left:261px; top:31px; width:58px; height:19px; "/>
  610. <caption id="caption2" class="cell_1" style="left:377px; top:30px; width:75px; height:23px; ">선택된 번호</caption>
  611. <output id="opt_rightupper" ref="/root/hidden/selectedtooth/selectednum/rightupper" class="output_fix" style="left:455px; top:31px; width:65px; height:19px; "/>
  612. <output id="opt_leftupper" ref="/root/hidden/selectedtooth/selectednum/leftupper" class="output_fix" style="left:523px; top:31px; width:65px; height:19px; "/>
  613. <output id="opt_rightlower" ref="/root/hidden/selectedtooth/selectednum/rightlower" class="output_fix" style="left:656px; top:31px; width:65px; height:19px; "/>
  614. <output id="opt_leftlower" ref="/root/hidden/selectedtooth/selectednum/leftlower" class="output_fix" style="left:590px; top:31px; width:65px; height:19px; "/>
  615. <line id="line45" class="line_2" style="x1:0px; y1:52px; x2:574px; y2:52px; "/>
  616. <shape id="rectangle1" class="roundrect_group" appearance="rectangle" style="left:0px; top:52px; width:724px; height:308px; "/>
  617. <line id="line5" class="line_2" style="x1:481px; y1:62px; x2:481px; y2:350px; "/>
  618. <line id="line4" class="line_2" style="x1:243px; y1:62px; x2:243px; y2:350px; "/>
  619. <line id="line1" class="line_3" style="x1:362px; y1:113px; x2:362px; y2:299px; "/>
  620. <line id="line2" class="line_3" style="x1:60px; y1:206px; x2:664px; y2:206px; "/>
  621. <button id="btn_unselect" class="btn2_letter4" style="left:482px; top:5px; width:64px; height:19px; ">
  622. <caption>전체취소</caption>
  623. <script type="javascript" ev:event="DOMActivate">
  624. <![CDATA[
  625. fUnSelectAllTooth();
  626. ]]>
  627. </script>
  628. </button>
  629. <button id="btn_allscndtooth" class="btn2_letter6" style="left:549px; top:5px; width:86px; height:19px; ">
  630. <caption>전악 (영구치)</caption>
  631. <script type="javascript" ev:event="DOMActivate">
  632. <![CDATA[
  633. fSelectAllScndTooth();
  634. ]]>
  635. </script>
  636. </button>
  637. <button id="btn_allmilktooth" class="btn2_letter6" style="left:638px; top:5px; width:86px; height:19px; ">
  638. <caption>전악 (유치)</caption>
  639. <script type="javascript" ev:event="DOMActivate">
  640. <![CDATA[
  641. fSelectAllMilkTooth();
  642. ]]>
  643. </script>
  644. </button>
  645. <button id="buttonA8" class="btnt_left_top_1" style="left:319px; top:113px; width:35px; height:40px; ">
  646. <caption/>
  647. <script type="javascript" ev:event="onmousedown">
  648. <![CDATA[
  649. fClickScndTooth(8);
  650. ]]>
  651. </script>
  652. </button>
  653. <button id="buttonA7" class="btnt_left_top_2" style="left:282px; top:113px; width:35px; height:40px; ">
  654. <caption/>
  655. <script type="javascript" ev:event="onmousedown">
  656. <![CDATA[
  657. fClickScndTooth(7);
  658. ]]>
  659. </script>
  660. </button>
  661. <button id="buttonA6" class="btnt_left_top_3" style="left:245px; top:113px; width:35px; height:40px; ">
  662. <caption/>
  663. <script type="javascript" ev:event="onmousedown">
  664. <![CDATA[
  665. fClickScndTooth(6);
  666. ]]>
  667. </script>
  668. </button>
  669. <button id="buttonA5" class="btnt_left_top_4" style="left:208px; top:113px; width:35px; height:40px; ">
  670. <caption/>
  671. <script type="javascript" ev:event="onmousedown">
  672. <![CDATA[
  673. fClickScndTooth(5);
  674. ]]>
  675. </script>
  676. </button>
  677. <button id="buttonA4" class="btnt_left_top_5" style="left:171px; top:113px; width:35px; height:40px; ">
  678. <caption/>
  679. <script type="javascript" ev:event="onmousedown">
  680. <![CDATA[
  681. fClickScndTooth(4);
  682. ]]>
  683. </script>
  684. </button>
  685. <button id="buttonA3" class="btnt_left_top_6" style="left:134px; top:113px; width:35px; height:40px; ">
  686. <caption/>
  687. <script type="javascript" ev:event="onmousedown">
  688. <![CDATA[
  689. fClickScndTooth(3);
  690. ]]>
  691. </script>
  692. </button>
  693. <button id="buttonA2" class="btnt_left_top_7" style="left:97px; top:113px; width:35px; height:40px; ">
  694. <caption/>
  695. <script type="javascript" ev:event="onmousedown">
  696. <![CDATA[
  697. fClickScndTooth(2);
  698. ]]>
  699. </script>
  700. </button>
  701. <button id="buttonA1" class="btnt_left_top_8" style="left:60px; top:113px; width:35px; height:40px; ">
  702. <caption/>
  703. <script type="javascript" ev:event="onmousedown">
  704. <![CDATA[
  705. fClickScndTooth(1);
  706. ]]>
  707. </script>
  708. </button>
  709. <button id="buttonA9" class="btnt_right_top_1" style="left:370px; top:113px; width:35px; height:40px; ">
  710. <caption/>
  711. <script type="javascript" ev:event="onmousedown">
  712. <![CDATA[
  713. fClickScndTooth(9);
  714. ]]>
  715. </script>
  716. </button>
  717. <button id="buttonA10" class="btnt_right_top_2" style="left:407px; top:113px; width:35px; height:40px; ">
  718. <caption/>
  719. <script type="javascript" ev:event="onmousedown">
  720. <![CDATA[
  721. fClickScndTooth(10);
  722. ]]>
  723. </script>
  724. </button>
  725. <button id="buttonA11" class="btnt_right_top_3" style="left:444px; top:113px; width:35px; height:40px; ">
  726. <caption/>
  727. <script type="javascript" ev:event="onmousedown">
  728. <![CDATA[
  729. fClickScndTooth(11);
  730. ]]>
  731. </script>
  732. </button>
  733. <button id="buttonA12" class="btnt_right_top_4" style="left:481px; top:113px; width:35px; height:40px; ">
  734. <caption/>
  735. <script type="javascript" ev:event="onmousedown">
  736. <![CDATA[
  737. fClickScndTooth(12);
  738. ]]>
  739. </script>
  740. </button>
  741. <button id="buttonA13" class="btnt_right_top_5" style="left:518px; top:113px; width:35px; height:40px; ">
  742. <caption/>
  743. <script type="javascript" ev:event="onmousedown">
  744. <![CDATA[
  745. fClickScndTooth(13);
  746. ]]>
  747. </script>
  748. </button>
  749. <button id="buttonA14" class="btnt_right_top_6" style="left:555px; top:113px; width:35px; height:40px; ">
  750. <caption/>
  751. <script type="javascript" ev:event="onmousedown">
  752. <![CDATA[
  753. fClickScndTooth(14);
  754. ]]>
  755. </script>
  756. </button>
  757. <button id="buttonA15" class="btnt_right_top_7" style="left:592px; top:113px; width:35px; height:40px; ">
  758. <caption/>
  759. <script type="javascript" ev:event="onmousedown">
  760. <![CDATA[
  761. fClickScndTooth(15);
  762. ]]>
  763. </script>
  764. </button>
  765. <button id="buttonA16" class="btnt_right_top_8" style="left:629px; top:113px; width:35px; height:40px; ">
  766. <caption/>
  767. <script type="javascript" ev:event="onmousedown">
  768. <![CDATA[
  769. fClickScndTooth(16);
  770. ]]>
  771. </script>
  772. </button>
  773. <button id="buttonA24" class="btnt_left_bottom_1" style="left:319px; top:259px; width:35px; height:40px; ">
  774. <caption/>
  775. <script type="javascript" ev:event="onmousedown">
  776. <![CDATA[
  777. fClickScndTooth(24);
  778. ]]>
  779. </script>
  780. </button>
  781. <button id="buttonA23" class="btnt_left_bottom_2" style="left:282px; top:259px; width:35px; height:40px; ">
  782. <caption/>
  783. <script type="javascript" ev:event="onmousedown">
  784. <![CDATA[
  785. fClickScndTooth(23);
  786. ]]>
  787. </script>
  788. </button>
  789. <button id="buttonA22" class="btnt_left_bottom_3" style="left:245px; top:259px; width:35px; height:40px; ">
  790. <caption/>
  791. <script type="javascript" ev:event="onmousedown">
  792. <![CDATA[
  793. fClickScndTooth(22);
  794. ]]>
  795. </script>
  796. </button>
  797. <button id="buttonA21" class="btnt_left_bottom_4" style="left:208px; top:259px; width:35px; height:40px; ">
  798. <caption/>
  799. <script type="javascript" ev:event="onmousedown">
  800. <![CDATA[
  801. fClickScndTooth(21);
  802. ]]>
  803. </script>
  804. </button>
  805. <button id="buttonA20" class="btnt_left_bottom_5" style="left:171px; top:259px; width:35px; height:40px; ">
  806. <caption/>
  807. <script type="javascript" ev:event="onmousedown">
  808. <![CDATA[
  809. fClickScndTooth(20);
  810. ]]>
  811. </script>
  812. </button>
  813. <button id="buttonA19" class="btnt_left_bottom_6" style="left:134px; top:259px; width:35px; height:40px; ">
  814. <caption/>
  815. <script type="javascript" ev:event="onmousedown">
  816. <![CDATA[
  817. fClickScndTooth(19);
  818. ]]>
  819. </script>
  820. </button>
  821. <button id="buttonA18" class="btnt_left_bottom_7" style="left:97px; top:259px; width:35px; height:40px; ">
  822. <caption/>
  823. <script type="javascript" ev:event="onmousedown">
  824. <![CDATA[
  825. fClickScndTooth(18);
  826. ]]>
  827. </script>
  828. </button>
  829. <button id="buttonA17" class="btnt_left_bottom_8" style="left:60px; top:259px; width:35px; height:40px; ">
  830. <caption/>
  831. <script type="javascript" ev:event="onmousedown">
  832. <![CDATA[
  833. fClickScndTooth(17);
  834. ]]>
  835. </script>
  836. </button>
  837. <button id="buttonA25" class="btnt_right_bottom_1" style="left:370px; top:259px; width:35px; height:40px; ">
  838. <caption/>
  839. <script type="javascript" ev:event="onmousedown">
  840. <![CDATA[
  841. fClickScndTooth(25);
  842. ]]>
  843. </script>
  844. </button>
  845. <button id="buttonA26" class="btnt_right_bottom_2" style="left:407px; top:259px; width:35px; height:40px; ">
  846. <caption/>
  847. <script type="javascript" ev:event="onmousedown">
  848. <![CDATA[
  849. fClickScndTooth(26);
  850. ]]>
  851. </script>
  852. </button>
  853. <button id="buttonA27" class="btnt_right_bottom_3" style="left:444px; top:259px; width:35px; height:40px; ">
  854. <caption/>
  855. <script type="javascript" ev:event="onmousedown">
  856. <![CDATA[
  857. fClickScndTooth(27);
  858. ]]>
  859. </script>
  860. </button>
  861. <button id="buttonA28" class="btnt_right_bottom_4" style="left:481px; top:259px; width:35px; height:40px; ">
  862. <caption/>
  863. <script type="javascript" ev:event="onmousedown">
  864. <![CDATA[
  865. fClickScndTooth(28);
  866. ]]>
  867. </script>
  868. </button>
  869. <button id="buttonA29" class="btnt_right_bottom_5" style="left:518px; top:259px; width:35px; height:40px; ">
  870. <caption/>
  871. <script type="javascript" ev:event="onmousedown">
  872. <![CDATA[
  873. fClickScndTooth(29);
  874. ]]>
  875. </script>
  876. </button>
  877. <button id="buttonA30" class="btnt_right_bottom_6" style="left:555px; top:259px; width:35px; height:40px; ">
  878. <caption/>
  879. <script type="javascript" ev:event="onmousedown">
  880. <![CDATA[
  881. fClickScndTooth(30);
  882. ]]>
  883. </script>
  884. </button>
  885. <button id="buttonA31" class="btnt_right_bottom_7" style="left:592px; top:259px; width:35px; height:40px; ">
  886. <caption/>
  887. <script type="javascript" ev:event="onmousedown">
  888. <![CDATA[
  889. fClickScndTooth(31);
  890. ]]>
  891. </script>
  892. </button>
  893. <button id="buttonA32" class="btnt_right_bottom_8" style="left:629px; top:259px; width:35px; height:40px; ">
  894. <caption/>
  895. <script type="javascript" ev:event="onmousedown">
  896. <![CDATA[
  897. fClickScndTooth(32);
  898. ]]>
  899. </script>
  900. </button>
  901. <button id="buttonC8" class="btnt_left_top_A" style="left:319px; top:158px; width:35px; height:40px; ">
  902. <caption/>
  903. <script type="javascript" ev:event="onmousedown">
  904. <![CDATA[
  905. fClickMilkTooth(8);
  906. ]]>
  907. </script>
  908. </button>
  909. <button id="buttonC7" class="btnt_left_top_B" style="left:282px; top:158px; width:35px; height:40px; ">
  910. <caption/>
  911. <script type="javascript" ev:event="onmousedown">
  912. <![CDATA[
  913. fClickMilkTooth(7);
  914. ]]>
  915. </script>
  916. </button>
  917. <button id="buttonC6" class="btnt_left_top_C" style="left:245px; top:158px; width:35px; height:40px; ">
  918. <caption/>
  919. <script type="javascript" ev:event="onmousedown">
  920. <![CDATA[
  921. fClickMilkTooth(6);
  922. ]]>
  923. </script>
  924. </button>
  925. <button id="buttonC5" class="btnt_left_top_D" style="left:208px; top:158px; width:35px; height:40px; ">
  926. <caption/>
  927. <script type="javascript" ev:event="onmousedown">
  928. <![CDATA[
  929. fClickMilkTooth(5);
  930. ]]>
  931. </script>
  932. </button>
  933. <button id="buttonC4" class="btnt_left_top_E" style="left:171px; top:158px; width:35px; height:40px; ">
  934. <caption/>
  935. <script type="javascript" ev:event="onmousedown">
  936. <![CDATA[
  937. fClickMilkTooth(4);
  938. ]]>
  939. </script>
  940. </button>
  941. <button id="buttonC9" class="btnt_right_top_A" style="left:370px; top:158px; width:35px; height:40px; ">
  942. <caption/>
  943. <script type="javascript" ev:event="onmousedown">
  944. <![CDATA[
  945. fClickMilkTooth(9);
  946. ]]>
  947. </script>
  948. </button>
  949. <button id="buttonC10" class="btnt_right_top_B" style="left:407px; top:158px; width:35px; height:40px; ">
  950. <caption/>
  951. <script type="javascript" ev:event="onmousedown">
  952. <![CDATA[
  953. fClickMilkTooth(10);
  954. ]]>
  955. </script>
  956. </button>
  957. <button id="buttonC11" class="btnt_right_top_C" style="left:444px; top:158px; width:35px; height:40px; ">
  958. <caption/>
  959. <script type="javascript" ev:event="onmousedown">
  960. <![CDATA[
  961. fClickMilkTooth(11);
  962. ]]>
  963. </script>
  964. </button>
  965. <button id="buttonC12" class="btnt_right_top_D" style="left:481px; top:158px; width:35px; height:40px; ">
  966. <caption/>
  967. <script type="javascript" ev:event="onmousedown">
  968. <![CDATA[
  969. fClickMilkTooth(12);
  970. ]]>
  971. </script>
  972. </button>
  973. <button id="buttonC13" class="btnt_right_top_E" style="left:518px; top:158px; width:35px; height:40px; ">
  974. <caption/>
  975. <script type="javascript" ev:event="onmousedown">
  976. <![CDATA[
  977. fClickMilkTooth(13);
  978. ]]>
  979. </script>
  980. </button>
  981. <button id="buttonC24" class="btnt_left_bottom_A" style="left:319px; top:214px; width:35px; height:40px; ">
  982. <caption/>
  983. <script type="javascript" ev:event="onmousedown">
  984. <![CDATA[
  985. fClickMilkTooth(24);
  986. ]]>
  987. </script>
  988. </button>
  989. <button id="buttonC23" class="btnt_left_bottom_B" style="left:282px; top:214px; width:35px; height:40px; ">
  990. <caption/>
  991. <script type="javascript" ev:event="onmousedown">
  992. <![CDATA[
  993. fClickMilkTooth(23);
  994. ]]>
  995. </script>
  996. </button>
  997. <button id="buttonC22" class="btnt_left_bottom_C" style="left:245px; top:214px; width:35px; height:40px; ">
  998. <caption/>
  999. <script type="javascript" ev:event="onmousedown">
  1000. <![CDATA[
  1001. fClickMilkTooth(22);
  1002. ]]>
  1003. </script>
  1004. </button>
  1005. <button id="buttonC21" class="btnt_left_bottom_D" style="left:208px; top:214px; width:35px; height:40px; ">
  1006. <caption/>
  1007. <script type="javascript" ev:event="onmousedown">
  1008. <![CDATA[
  1009. fClickMilkTooth(21);
  1010. ]]>
  1011. </script>
  1012. </button>
  1013. <button id="buttonC20" class="btnt_left_bottom_E" style="left:171px; top:214px; width:35px; height:40px; ">
  1014. <caption/>
  1015. <script type="javascript" ev:event="onmousedown">
  1016. <![CDATA[
  1017. fClickMilkTooth(20);
  1018. ]]>
  1019. </script>
  1020. </button>
  1021. <button id="buttonC25" class="btnt_right_bottom_A" style="left:370px; top:214px; width:35px; height:40px; ">
  1022. <caption/>
  1023. <script type="javascript" ev:event="onmousedown">
  1024. <![CDATA[
  1025. fClickMilkTooth(25);
  1026. ]]>
  1027. </script>
  1028. </button>
  1029. <button id="buttonC26" class="btnt_right_bottom_B" style="left:407px; top:214px; width:35px; height:40px; ">
  1030. <caption/>
  1031. <script type="javascript" ev:event="onmousedown">
  1032. <![CDATA[
  1033. fClickMilkTooth(26);
  1034. ]]>
  1035. </script>
  1036. </button>
  1037. <button id="buttonC27" class="btnt_right_bottom_C" style="left:444px; top:214px; width:35px; height:40px; ">
  1038. <caption/>
  1039. <script type="javascript" ev:event="onmousedown">
  1040. <![CDATA[
  1041. fClickMilkTooth(27);
  1042. ]]>
  1043. </script>
  1044. </button>
  1045. <button id="buttonC28" class="btnt_right_bottom_D" style="left:481px; top:214px; width:35px; height:40px; ">
  1046. <caption/>
  1047. <script type="javascript" ev:event="onmousedown">
  1048. <![CDATA[
  1049. fClickMilkTooth(28);
  1050. ]]>
  1051. </script>
  1052. </button>
  1053. <button id="buttonC29" class="btnt_right_bottom_E" style="left:518px; top:214px; width:35px; height:40px; ">
  1054. <caption/>
  1055. <script type="javascript" ev:event="onmousedown">
  1056. <![CDATA[
  1057. fClickMilkTooth(29);
  1058. ]]>
  1059. </script>
  1060. </button>
  1061. <caption id="caption1" class="tit_2" style="left:5px; top:370px; width:100px; height:13px; ">치식 이력</caption>
  1062. <line id="line6" class="line_1" style="x1:0px; y1:385px; x2:724px; y2:385px; "/>
  1063. <datagrid id="grd_toothapplist" nodeset="/root/main/list2/toothapplist" caption="선택^구분^코드^코드명^우상(1)^좌상(2)^우하(4)^좌하(3)^진료일^전체치식^row^환자 등록번호^입원일자^환자 일련번호^기관코드^실시일자^계산 일련번호^수가별 일련번호" colsep="^" colwidth="30, 30, 97, 140, 59, 59, 59, 59, 80, 84, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:390px; width:724px; height:150px; ">
  1064. <col ref="chos" type="checkbox"/>
  1065. <col ref="flag"/>
  1066. <col ref="cd"/>
  1067. <col ref="cdnm"/>
  1068. <col ref="rightupper"/>
  1069. <col ref="leftupper"/>
  1070. <col ref="rightlower"/>
  1071. <col ref="leftlower"/>
  1072. <col ref="orddd" format="yyyy-mm-dd"/>
  1073. <col ref="toot"/>
  1074. <col ref="row" visibility="hidden"/>
  1075. <col ref="pid" visibility="hidden"/>
  1076. <col ref="indd" visibility="hidden"/>
  1077. <col ref="cretno" visibility="hidden"/>
  1078. <col ref="instcd" visibility="hidden"/>
  1079. <col ref="execdd" visibility="hidden"/>
  1080. <col ref="calcseqno" visibility="hidden"/>
  1081. <col ref="calcscorseqno" visibility="hidden"/>
  1082. <script type="javascript" ev:event="onmousedown">
  1083. <![CDATA[
  1084. if (grd_toothlist.isCell(event.target) && grd_toothlist.mouseRow >= grd_toothlist.fixedrows) {
  1085. var openerteeth = model.getValue("/root/main/list1/toothlist[" + grd_toothlist.mouseRow + "]/toot");
  1086. fSetToothInput(openerteeth); // 입력된 치식 번호를 img에 맞춰 표시한다.
  1087. }
  1088. ]]>
  1089. </script>
  1090. <script type="javascript" ev:event="onclick">
  1091. <![CDATA[
  1092. var row = grd_toothapplist.mouseRow;
  1093. var col = grd_toothapplist.mouseCol;
  1094. if(grd_toothapplist.isCell(event.target) && grd_toothapplist.row >= grd_toothapplist.fixedRows) {
  1095. if (col != grd_toothapplist.colRef("chos")) {
  1096. var openerteeth = model.getValue("/root/main/list2/toothapplist[" + row +"]/toot");
  1097. fSetToothInput(openerteeth); // 입력된 치식 번호를 img에 맞춰 표시한다.
  1098. }
  1099. }
  1100. ]]>
  1101. </script>
  1102. </datagrid>
  1103. <button id="rightupperA" class="btn2_letter2" style="left:10px; top:134px; width:42px; height:19px; ">
  1104. <caption>우상</caption>
  1105. <script type="javascript" ev:event="DOMActivate">
  1106. <![CDATA[
  1107. model.resetInstanceNode("/root/hidden/chkflag/milktooth/rightupperC");
  1108. fSelectToothGroupA(0, 8); // 지정된 영역의 영구치를 선택한다.
  1109. ]]>
  1110. </script>
  1111. </button>
  1112. <button id="leftupperA" class="btn2_letter2" style="left:672px; top:134px; width:42px; height:19px; ">
  1113. <caption>좌상</caption>
  1114. <script type="javascript" ev:event="DOMActivate">
  1115. <![CDATA[
  1116. model.resetInstanceNode("/root/hidden/chkflag/milktooth/leftupperC");
  1117. fSelectToothGroupA(8, 16); // 지정된 영역의 영구치를 선택한다.
  1118. ]]>
  1119. </script>
  1120. </button>
  1121. <button id="rightlowerA" class="btn2_letter2" style="left:10px; top:259px; width:42px; height:19px; ">
  1122. <caption>우하</caption>
  1123. <script type="javascript" ev:event="DOMActivate">
  1124. <![CDATA[
  1125. model.resetInstanceNode("/root/hidden/chkflag/milktooth/rightlowerC");
  1126. fSelectToothGroupA(16, 24); // 지정된 영역의 영구치를 선택한다.
  1127. ]]>
  1128. </script>
  1129. </button>
  1130. <button id="leftlowerA" class="btn2_letter2" style="left:672px; top:259px; width:42px; height:19px; ">
  1131. <caption>좌하</caption>
  1132. <script type="javascript" ev:event="DOMActivate">
  1133. <![CDATA[
  1134. model.resetInstanceNode("/root/hidden/chkflag/milktooth/leftlowerC");
  1135. fSelectToothGroupA(24, 32); // 지정된 영역의 영구치를 선택한다.
  1136. ]]>
  1137. </script>
  1138. </button>
  1139. <button id="rightupperC" class="btn2_letter4" style="left:10px; top:179px; width:64px; height:19px; ">
  1140. <caption>우상유치</caption>
  1141. <script type="javascript" ev:event="DOMActivate">
  1142. <![CDATA[
  1143. model.resetInstanceNode("/root/hidden/chkflag/scndtooth/rightupperA");
  1144. fSelectToothGroupC(0, 8); // 지정된 영역의 유치를 선택한다.
  1145. ]]>
  1146. </script>
  1147. </button>
  1148. <button id="leftupperC" class="btn2_letter4" style="left:650px; top:179px; width:64px; height:19px; ">
  1149. <caption>좌상유치</caption>
  1150. <script type="javascript" ev:event="DOMActivate">
  1151. <![CDATA[
  1152. model.resetInstanceNode("/root/hidden/chkflag/scndtooth/leftupperA");
  1153. fSelectToothGroupC(8, 16); // 지정된 영역의 유치를 선택한다.
  1154. ]]>
  1155. </script>
  1156. </button>
  1157. <button id="rightlowerC" class="btn2_letter4" style="left:10px; top:214px; width:64px; height:19px; ">
  1158. <caption>우하유치</caption>
  1159. <script type="javascript" ev:event="DOMActivate">
  1160. <![CDATA[
  1161. model.resetInstanceNode("/root/hidden/chkflag/scndtooth/rightlowerA");
  1162. fSelectToothGroupC(16, 24); // 지정된 영역의 유치를 선택한다.
  1163. ]]>
  1164. </script>
  1165. </button>
  1166. <button id="leftlowerC" class="btn2_letter4" style="left:650px; top:214px; width:64px; height:19px; ">
  1167. <caption>좌하유치</caption>
  1168. <script type="javascript" ev:event="DOMActivate">
  1169. <![CDATA[
  1170. model.resetInstanceNode("/root/hidden/chkflag/scndtooth/leftlowerA");
  1171. fSelectToothGroupC(24, 32); // 지정된 영역의 유치를 선택한다.
  1172. ]]>
  1173. </script>
  1174. </button>
  1175. <button id="trisectionA1" class="btn2_letter6" style="left:60px; top:62px; width:86px; height:19px; ">
  1176. <caption>1/3 (영구치)</caption>
  1177. <script type="javascript" ev:event="DOMActivate">
  1178. <![CDATA[
  1179. model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC1");
  1180. fSelectToothGroupA(0, 5); // 지정된 영역의 영구치를 선택한다.
  1181. ]]>
  1182. </script>
  1183. </button>
  1184. <button id="trisectionA2" class="btn2_letter6" style="left:319px; top:62px; width:86px; height:19px; ">
  1185. <caption>1/3 (영구치)</caption>
  1186. <script type="javascript" ev:event="DOMActivate">
  1187. <![CDATA[
  1188. model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC2");
  1189. fSelectToothGroupA(5, 11); // 지정된 영역의 영구치를 선택한다.
  1190. ]]>
  1191. </script>
  1192. </button>
  1193. <button id="trisectionA3" class="btn2_letter6" style="left:578px; top:62px; width:86px; height:19px; ">
  1194. <caption>1/3 (영구치)</caption>
  1195. <script type="javascript" ev:event="DOMActivate">
  1196. <![CDATA[
  1197. model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC3");
  1198. fSelectToothGroupA(11, 16); // 지정된 영역의 영구치를 선택한다.
  1199. ]]>
  1200. </script>
  1201. </button>
  1202. <button id="trisectionA4" class="btn2_letter6" style="left:60px; top:331px; width:86px; height:19px; ">
  1203. <caption>1/3 (영구치)</caption>
  1204. <script type="javascript" ev:event="DOMActivate">
  1205. <![CDATA[
  1206. model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC4");
  1207. fSelectToothGroupA(16, 21); // 지정된 영역의 영구치를 선택한다.
  1208. ]]>
  1209. </script>
  1210. </button>
  1211. <button id="trisectionA5" class="btn2_letter6" style="left:319px; top:331px; width:86px; height:19px; ">
  1212. <caption>1/3 (영구치)</caption>
  1213. <script type="javascript" ev:event="DOMActivate">
  1214. <![CDATA[
  1215. model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC5");
  1216. fSelectToothGroupA(21, 27); // 지정된 영역의 영구치를 선택한다.
  1217. ]]>
  1218. </script>
  1219. </button>
  1220. <button id="trisectionA6" class="btn2_letter6" style="left:578px; top:331px; width:86px; height:19px; ">
  1221. <caption>1/3 (영구치)</caption>
  1222. <script type="javascript" ev:event="DOMActivate">
  1223. <![CDATA[
  1224. model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC6");
  1225. fSelectToothGroupA(27, 32); // 지정된 영역의 영구치를 선택한다.
  1226. ]]>
  1227. </script>
  1228. </button>
  1229. <button id="trisectionC1" class="btn2_letter6" style="left:60px; top:84px; width:86px; height:19px; ">
  1230. <caption>1/3 (유치)</caption>
  1231. <script type="javascript" ev:event="DOMActivate">
  1232. <![CDATA[
  1233. model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA1");
  1234. fSelectToothGroupC(0, 5); // 지정된 영역의 유치를 선택한다.
  1235. ]]>
  1236. </script>
  1237. </button>
  1238. <button id="trisectionC2" class="btn2_letter6" style="left:319px; top:84px; width:86px; height:19px; ">
  1239. <caption>1/3 (유치)</caption>
  1240. <script type="javascript" ev:event="DOMActivate">
  1241. <![CDATA[
  1242. model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA2");
  1243. fSelectToothGroupC(5, 11); // 지정된 영역의 유치를 선택한다.
  1244. ]]>
  1245. </script>
  1246. </button>
  1247. <button id="trisectionC3" class="btn2_letter6" style="left:578px; top:84px; width:86px; height:19px; ">
  1248. <caption>1/3 (유치)</caption>
  1249. <script type="javascript" ev:event="DOMActivate">
  1250. <![CDATA[
  1251. model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA3");
  1252. fSelectToothGroupC(11, 16); // 지정된 영역의 유치를 선택한다.
  1253. ]]>
  1254. </script>
  1255. </button>
  1256. <button id="trisectionC4" class="btn2_letter6" style="left:60px; top:309px; width:86px; height:19px; ">
  1257. <caption>1/3 (유치)</caption>
  1258. <script type="javascript" ev:event="DOMActivate">
  1259. <![CDATA[
  1260. model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA4");
  1261. fSelectToothGroupC(16, 21); // 지정된 영역의 유치를 선택한다.
  1262. ]]>
  1263. </script>
  1264. </button>
  1265. <button id="trisectionC5" class="btn2_letter6" style="left:319px; top:309px; width:86px; height:19px; ">
  1266. <caption>1/3 (유치)</caption>
  1267. <script type="javascript" ev:event="DOMActivate">
  1268. <![CDATA[
  1269. model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA5");
  1270. fSelectToothGroupC(21, 27); // 지정된 영역의 유치를 선택한다.
  1271. ]]>
  1272. </script>
  1273. </button>
  1274. <button id="trisectionC6" class="btn2_letter6" style="left:578px; top:309px; width:86px; height:19px; ">
  1275. <caption>1/3 (유치)</caption>
  1276. <script type="javascript" ev:event="DOMActivate">
  1277. <![CDATA[
  1278. model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA6");
  1279. fSelectToothGroupC(27, 32); // 지정된 영역의 유치를 선택한다.
  1280. ]]>
  1281. </script>
  1282. </button>
  1283. <caption id="caption3" class="tit_2" style="left:5px; top:550px; width:100px; height:13px; ">치식 종합조회</caption>
  1284. <datagrid id="grd_toothlist" nodeset="/root/main/list1/toothlist" caption="구분^코드^코드명^우상(1)^좌상(2)^우하(4)^좌하(3)^진료일^전체치식" colsep="^" colwidth="30, 105, 165, 59, 59, 59, 59, 79, 84" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:570px; width:724px; height:173px; ">
  1285. <col ref="flag"/>
  1286. <col ref="cd"/>
  1287. <col ref="cdnm"/>
  1288. <col ref="rightupper"/>
  1289. <col ref="leftupper"/>
  1290. <col ref="rightlower"/>
  1291. <col ref="leftlower"/>
  1292. <col ref="orddd" format="yyyy-mm-dd"/>
  1293. <col ref="toot"/>
  1294. <script type="javascript" ev:event="onmousedown">
  1295. <![CDATA[
  1296. if (grd_toothlist.isCell(event.target) && grd_toothlist.mouseRow >= grd_toothlist.fixedrows) {
  1297. var openerteeth = model.getValue("/root/main/list1/toothlist[" + grd_toothlist.mouseRow + "]/toot");
  1298. fSetToothInput(openerteeth); // 입력된 치식 번호를 img에 맞춰 표시한다.
  1299. }
  1300. ]]>
  1301. </script>
  1302. </datagrid>
  1303. <line id="line7" class="line_1" style="x1:0px; y1:565px; x2:724px; y2:565px; "/>
  1304. <button id="btn_trans" class="btn2_letter2" style="left:682px; top:365px; width:42px; height:19px; ">
  1305. <caption>전달</caption>
  1306. <script type="javascript" ev:event="DOMActivate">
  1307. <![CDATA[
  1308. var rows = grd_toothapplist.rows;
  1309. // EDI표기
  1310. var tooth = model.getValue("/root/hidden/selectedtooth/editoothnum/rightupper")
  1311. + model.getValue("/root/hidden/selectedtooth/editoothnum/leftupper")
  1312. + model.getValue("/root/hidden/selectedtooth/editoothnum/rightlower")
  1313. + model.getValue("/root/hidden/selectedtooth/editoothnum/leftlower");
  1314. var rightupper = model.getValue("/root/hidden/selectedtooth/selectednum/rightupper");
  1315. var leftupper = model.getValue("/root/hidden/selectedtooth/selectednum/leftupper");
  1316. var rightlower = model.getValue("/root/hidden/selectedtooth/selectednum/rightlower");
  1317. var leftlower = model.getValue("/root/hidden/selectedtooth/selectednum/leftlower");
  1318. var chos ="";
  1319. for (var i=1; i<rows; i++) {
  1320. chos = model.getValue("/root/main/list2/toothapplist["+ i +"]/chos");
  1321. if (chos == "true") {
  1322. model.setValue("/root/main/list2/toothapplist["+ i +"]/rightupper",rightupper);
  1323. model.setValue("/root/main/list2/toothapplist["+ i +"]/leftupper",leftupper);
  1324. model.setValue("/root/main/list2/toothapplist["+ i +"]/rightlower",rightlower);
  1325. model.setValue("/root/main/list2/toothapplist["+ i +"]/leftlower",leftlower);
  1326. model.setValue("/root/main/list2/toothapplist["+ i +"]/toot",tooth);
  1327. }
  1328. }
  1329. model.refresh();
  1330. ]]>
  1331. </script>
  1332. </button>
  1333. <button id="btn_delete" class="btn2_letter2" style="left:637px; top:365px; width:42px; height:19px; ">
  1334. <caption>삭제</caption>
  1335. <script type="javascript" ev:event="DOMActivate">
  1336. <![CDATA[
  1337. var rows = grd_toothapplist.rows;
  1338. for (var i=1; i<rows; i++) {
  1339. chos = model.getValue("/root/main/list2/toothapplist["+ i +"]/chos");
  1340. if (chos == "true") {
  1341. model.setValue("/root/main/list2/toothapplist["+ i +"]/rightupper","");
  1342. model.setValue("/root/main/list2/toothapplist["+ i +"]/leftupper","");
  1343. model.setValue("/root/main/list2/toothapplist["+ i +"]/rightlower","");
  1344. model.setValue("/root/main/list2/toothapplist["+ i +"]/leftlower","");
  1345. model.setValue("/root/main/list2/toothapplist["+ i +"]/toot","");
  1346. }
  1347. }
  1348. model.refresh();
  1349. ]]>
  1350. </script>
  1351. </button>
  1352. <select1 id="rdo_refterm" ref="/root/init/termlist/refterm" appearance="full" cellspacing="6" cols="6" overflow="visible" style="left:115px; top:548px; width:260px; height:17px; border-style:none; ">
  1353. <choices>
  1354. <item>
  1355. <label>전체</label>
  1356. <value>-</value>
  1357. </item>
  1358. <item>
  1359. <label>3개월</label>
  1360. <value>3</value>
  1361. </item>
  1362. <item>
  1363. <label>6개월</label>
  1364. <value>6</value>
  1365. </item>
  1366. <item>
  1367. <label>1년</label>
  1368. <value>12</value>
  1369. </item>
  1370. <item>
  1371. <label>2년</label>
  1372. <value>24</value>
  1373. </item>
  1374. </choices>
  1375. <script type="javascript" ev:event="xforms-value-changed">
  1376. <![CDATA[
  1377. fInitialize();
  1378. ]]>
  1379. </script>
  1380. </select1>
  1381. </group>
  1382. <group id="grp_btn" scroll="auto" style="left:0px; top:745px; width:724px; height:27px; ">
  1383. <button id="btn_cancel" class="btn4_letter2" style="left:667px; top:5px; width:56px; height:22px; ">
  1384. <caption>취소</caption>
  1385. <close ev:event="DOMActivate"/>
  1386. </button>
  1387. <button id="btn_confirm" class="btn4_letter2" style="left:608px; top:5px; width:56px; height:22px; ">
  1388. <caption>확인</caption>
  1389. <script type="javascript" ev:event="DOMActivate">
  1390. <![CDATA[
  1391. if (checkOpener()) {
  1392. var rows = grd_toothapplist.rows;
  1393. var chos ="";
  1394. var flag ="";
  1395. var chos ="";
  1396. var row ="";
  1397. var toot ="";
  1398. var toot1 = "";
  1399. var prcflag = model.getValue("/root/hidden/cond/flag");
  1400. // 사전 재원심사 상병
  1401. if (prcflag == "AID") {
  1402. model.setValue("/root/send/toothapplist",grd_toothapplist.getUpdateData());
  1403. submit("TXPIZ00601");
  1404. }
  1405. for (var i=1; i<rows; i++) {
  1406. chos = model.getValue("/root/main/list2/toothapplist["+ i +"]/chos");
  1407. row = model.getValue("/root/main/list2/toothapplist["+ i +"]/row");
  1408. flag = model.getValue("/root/main/list2/toothapplist["+ i +"]/flag");
  1409. toot = model.getValue("/root/main/list2/toothapplist["+ i +"]/toot");
  1410. // 의사입력방식으로 교체(우상-좌상-좌하-우하)
  1411. if (toot.length == 32 && toot != "00000000000000000000000000000000") {
  1412. var str1 = toot.substr(0,8);
  1413. var str2 = toot.substr(8,8);
  1414. var str4 = toot.substr(16,8);
  1415. var str3 = toot.substr(24,8);
  1416. var subTootStr = "";
  1417. // 우상(1)
  1418. for (var idx1 = 0; idx1 < 8; idx1++) {
  1419. var tootnum = str1.substr(idx1,1);
  1420. var point = 0;
  1421. if (tootnum == "*") {
  1422. point = 8 - idx1;
  1423. if (subTootStr != "") subTootStr += ",1" + point;
  1424. else subTootStr = "1" + point;
  1425. } else if (tootnum == "#") {
  1426. point = 5 - idx1 + 3;
  1427. if (subTootStr != "") subTootStr += ",5" + point;
  1428. else subTootStr = "5" + point;
  1429. }
  1430. }
  1431. // 좌상(2)
  1432. for (var idx2 = 0; idx2 < 8; idx2++) {
  1433. var tootnum = str2.substr(idx2,1);
  1434. var point = 0;
  1435. if (tootnum == "*") {
  1436. point = idx2 + 1;
  1437. if (subTootStr != "") subTootStr += ",2" + point;
  1438. else subTootStr = "2" + point;
  1439. } else if (tootnum == "#") {
  1440. point = idx2 + 1;
  1441. if (subTootStr != "") subTootStr += ",6" + point;
  1442. else subTootStr = "6" + point;
  1443. }
  1444. }
  1445. // 우하(4)
  1446. for (var idx4 = 0; idx4 < 8; idx4++) {
  1447. var tootnum = str4.substr(idx4,1);
  1448. var point = 0;
  1449. if (tootnum == "*") {
  1450. point = 8 - idx4;
  1451. if (subTootStr != "") subTootStr += ",4" + point;
  1452. else subTootStr = "4" + point;
  1453. } else if (tootnum == "#") {
  1454. point = 5 - idx4 + 3;
  1455. if (subTootStr != "") subTootStr += ",8" + point;
  1456. else subTootStr = "8" + point;
  1457. }
  1458. }
  1459. // 좌하(3)
  1460. for (var idx3 = 0; idx3 < 8; idx3++) {
  1461. var tootnum = str3.substr(idx3,1);
  1462. var point = 0;
  1463. if (tootnum == "*") {
  1464. point = idx3 + 1;
  1465. if (subTootStr != "") subTootStr += ",3" + point;
  1466. else subTootStr = "3" + point;
  1467. } else if (tootnum == "#") {
  1468. point = idx3 + 1;
  1469. if (subTootStr != "") subTootStr += ",7" + point;
  1470. else subTootStr = "7" + point;
  1471. }
  1472. }
  1473. if (subTootStr == "" ) toot1 = "-";
  1474. else toot1 = subTootStr;
  1475. } else {
  1476. toot1 = "-";
  1477. }
  1478. // 의사입력방식으로 교체 끝
  1479. // 사전 재원심사 상병
  1480. if (prcflag == "AID") {
  1481. if (flag == "상병") {
  1482. model.makevalue("/root/hidden/rslt/list["+ i +"]/flag", "1");
  1483. if (toot == "" || toot == "00000000000000000000000000000000") {
  1484. toot = "-";
  1485. }
  1486. model.makevalue("/root/hidden/rslt/list["+ i +"]/toot", toot);
  1487. model.makevalue("/root/hidden/rslt/list["+ i +"]/toot1", toot1);
  1488. model.makevalue("/root/hidden/rslt/list["+ i +"]/row", row);
  1489. model.makevalue("/root/hidden/rslt/list["+ i +"]/toothYN", "Y");
  1490. }
  1491. } else {
  1492. if (flag == "상병") {
  1493. model.makevalue("/root/hidden/rslt/list["+ i +"]/flag", "1");
  1494. } else if (flag == "처방") {
  1495. model.makevalue("/root/hidden/rslt/list["+ i +"]/flag", "2");
  1496. }
  1497. if (toot == "" || toot == "00000000000000000000000000000000") {
  1498. toot = "-";
  1499. }
  1500. model.makevalue("/root/hidden/rslt/list["+ i +"]/toot", toot);
  1501. model.makevalue("/root/hidden/rslt/list["+ i +"]/toot1", toot1);
  1502. model.makevalue("/root/hidden/rslt/list["+ i +"]/row", row);
  1503. model.makevalue("/root/hidden/rslt/list["+ i +"]/toothYN", "Y");
  1504. }
  1505. }
  1506. model.copyNode(opener.root.hidden.sppiz00600, "/root/hidden");
  1507. } else {
  1508. messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004");
  1509. }
  1510. if ( model.getValue("/root/hidden/cond/popyn") == "SMPID20500"
  1511. && checkOpener()
  1512. && window.type == "modeless"
  1513. ) {
  1514. opener.javascript.fGetToothPop();
  1515. } else {
  1516. window.close();
  1517. }
  1518. ]]>
  1519. </script>
  1520. </button>
  1521. </group>
  1522. </xhtml:body>
  1523. </xhtml:html>